/* De Brink 4. Polderblauw: het diepe blauw van de sloot en de lucht boven het hof.
   inkt #16252F, grafiet #4F6371, lijn #D9E4EA, hemel #EDF3F6, polder #1E3A4C, water #2F6E8E */

@font-face { font-family: "DM Serif Display"; src: url(fonts/dm-serif-display-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(fonts/dm-sans-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(fonts/dm-sans-500.woff2) format("woff2"); font-weight: 500 600; font-display: swap; }

:root {
  --inkt: #16252F;
  --grafiet: #4F6371;
  --lijn: #D9E4EA;
  --mist: #EDF3F6;
  --polder: #1E3A4C;
  --water: #2F6E8E;
  --wit: #FFFFFF;
  --rand: clamp(1.25rem, 4vw, 3rem);
  --maat: 76rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--wit);
  color: var(--inkt);
  font: 400 1.0625rem/1.65 "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid #E0A458; outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; margin: 0; letter-spacing: -0.015em; line-height: 1.1; }
h3 { letter-spacing: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.overslaan { position: absolute; left: -999px; top: 0; background: var(--inkt); color: #fff; padding: .6rem 1rem; z-index: 20; }
.overslaan:focus { left: 0; }

/* ---------- held: de foto is de pagina ---------- */
.held { position: relative; min-height: min(92vh, 60rem); display: flex; flex-direction: column; justify-content: space-between; color: #fff; background: var(--inkt); isolation: isolate; }
.held picture, .held img { position: absolute; inset: 0; width: 100%; height: 100%; }
.held img { object-fit: cover; object-position: 50% 38%; z-index: -2; }
.held::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,24,28,.45) 0%, rgba(20,24,28,0) 22%),
    linear-gradient(0deg, rgba(20,24,28,.82) 0%, rgba(20,24,28,.55) 40%, rgba(20,24,28,.15) 65%, rgba(20,24,28,0) 80%);
}
.menu { display: flex; align-items: center; gap: 2rem; padding: 1.4rem max(var(--rand), calc((100% - var(--maat)) / 2)); }
.merk { font-family: "DM Serif Display", Georgia, serif; font-size: 1.25rem; font-weight: 400; text-decoration: none; letter-spacing: -0.01em; }
.menu ul { display: flex; gap: 1.6rem; list-style: none; margin: 0 0 0 auto; padding: 0; }
.menu ul a { text-decoration: none; font-size: .95rem; opacity: .9; }
.menu ul a:hover { opacity: 1; text-decoration: underline; }

.held-tekst { text-shadow: 0 1px 12px rgba(0,0,0,.25); padding: 0 max(var(--rand), calc((100% - var(--maat)) / 2)) clamp(2.5rem, 7vh, 5rem); }
.held-tekst > * { max-width: 46rem; }
.knop { text-shadow: none; }
.plaats { font-size: 1.1rem; font-weight: 500; letter-spacing: .01em; margin-bottom: .7rem; text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 0 18px rgba(0,0,0,.45); }
.held h1 { font-size: clamp(3.6rem, 11vw, 9rem); letter-spacing: -0.02em; line-height: .95; margin-bottom: 1.2rem; }
.intro { font-size: clamp(1.15rem, 2vw, 1.45rem); max-width: 30rem; opacity: .95; margin-bottom: 2rem; }
.held-acties { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.held-acties p { font-size: .95rem; opacity: .85; margin: 0; }

.knop {
  display: inline-block; background: #fff; color: var(--polder);
  font-weight: 500; text-decoration: none; padding: .85rem 1.4rem; border-radius: 999px;
}
.knop:hover { background: #ECEEEB; }

/* hamburger: zonder JavaScript, een verborgen keuzevakje dat het menu open- en dichtklapt */
.menu-schakel, .verborgen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hamburger { display: none; }
@media (max-width: 700px) {
  .menu { position: relative; justify-content: space-between; }
  .hamburger { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-right: -.6rem; cursor: pointer; border-radius: 50%; }
  .streepjes, .streepjes::before, .streepjes::after { display: block; width: 1.4rem; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  .streepjes { position: relative; }
  .streepjes::before, .streepjes::after { content: ""; position: absolute; left: 0; }
  .streepjes::before { top: -7px; }
  .streepjes::after { top: 7px; }
  .menu-schakel:checked + .hamburger .streepjes { background: transparent; }
  .menu-schakel:checked + .hamburger .streepjes::before { transform: translateY(7px) rotate(45deg); }
  .menu-schakel:checked + .hamburger .streepjes::after { transform: translateY(-7px) rotate(-45deg); }
  .menu-schakel:focus-visible + .hamburger { outline: 2px solid #E0A458; outline-offset: 2px; }
  .menu ul {
    display: none; position: absolute; top: calc(100% - .4rem); left: var(--rand); right: var(--rand); z-index: 5;
    flex-direction: column; gap: 0; margin: 0; padding: .4rem 0;
    background: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25);
  }
  .menu-schakel:checked ~ ul { display: flex; }
  .menu ul a { display: block; padding: .85rem 1.2rem; color: var(--inkt); opacity: 1; font-size: 1.05rem; }
  .menu ul li + li a { border-top: 1px solid var(--lijn); }
}
@media (max-width: 700px) and (prefers-reduced-motion: reduce) { .streepjes, .streepjes::before, .streepjes::after { transition: none; } }

@media (max-width: 700px) {
  .held { min-height: 100svh; }
  .held img { object-position: 42% 50%; }
  .held h1 { margin-bottom: .8rem; }
  .intro { margin-bottom: 1.4rem; }
}

/* ---------- blokken ---------- */
/* één linkerlijn: de rand groeit mee zodat de inhoud nooit breder wordt dan --maat */
.blok { padding: clamp(4.5rem, 10vw, 8rem) max(var(--rand), calc((100% - var(--maat)) / 2)); }
.blok h2 { color: var(--polder); font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 1.2rem; }
.blok h3 { color: var(--polder); font-size: 1.25rem; margin-bottom: .6rem; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--grafiet); max-width: 38rem; margin-bottom: 3rem; }
.blok-licht { background: var(--mist); }
.blok-donker { background: var(--polder); color: #fff; }
.blok-donker h2 { color: #fff; }
.blok-donker .lead, .blok-donker p { color: rgba(255,255,255,.82); }
.blok-donker .lead { margin-bottom: 1.5rem; }

/* preventie */
.twee { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.stappen { list-style: none; counter-reset: stap; margin: 0; padding: 0; }
.stappen li { counter-increment: stap; display: grid; grid-template-columns: 3rem 1fr; padding: 1.4rem 0; border-top: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.82); }
.stappen li:last-child { border-bottom: 1px solid rgba(255,255,255,.2); }
.stappen li::before { content: counter(stap); grid-row: span 2; font-family: "DM Serif Display", Georgia, serif; font-size: 1.7rem; font-weight: 400; color: #fff; line-height: 1.2; }
.stappen strong { font-weight: 500; color: #fff; font-size: 1.15rem; }
@media (max-width: 800px) { .twee { grid-template-columns: 1fr; } }

/* buurt */
.buurt { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; margin-bottom: 5rem; }
.kaart { margin: 0; }
.kaart img { border-radius: 6px; }
.kaart figcaption { font-size: .8rem; color: var(--grafiet); margin-top: .6rem; }
.afstanden { margin: 0; }
.afstanden div { padding: 1.1rem 0; border-top: 1px solid var(--lijn); }
.afstanden dt { font-weight: 500; font-size: 1.1rem; }
.afstanden dd { margin: .2rem 0 0; color: var(--grafiet); }
.afstand { display: block; color: var(--inkt); font-variant-numeric: tabular-nums; }
.beeld { margin: 0 0 4rem; }
.beeld img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 55%; border-radius: 6px; }
figcaption { font-size: .85rem; color: var(--grafiet); margin-top: .7rem; }
.naam { display: grid; grid-template-columns: minmax(0, 28rem) minmax(0, 40rem); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.naam-beeld { margin: 0; }
.hof { display: grid; grid-template-columns: minmax(0, 26rem) minmax(0, 36rem); gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-bottom: 5rem; }
.plan { margin: 0; }
.plan img { border-radius: 6px; border: 1px solid var(--lijn); }
.hof h3 { margin-bottom: .8rem; }
.naam-beeld img { border-radius: 6px; }
@media (max-width: 900px) { .naam, .hof { grid-template-columns: 1fr; } .beeld img { aspect-ratio: 3 / 2; } }
@media (max-width: 900px) { .buurt { grid-template-columns: 1fr; } }

/* agenda */
.agenda { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 0 3rem; }
.agenda li { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; padding: 1.3rem 0; border-top: 1px solid #DCDFDB; }
.agenda time { display: flex; flex-direction: column; line-height: 1.05; }
.agenda .nr { order: 1; color: var(--water); font-family: "DM Serif Display", Georgia, serif; font-size: 2.1rem; font-weight: 400; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.agenda .dag { order: 2; font-size: .85rem; color: var(--grafiet); margin-top: .25rem; }
.agenda .mnd { order: 0; font-size: .85rem; color: var(--grafiet); }
.agenda a { font-weight: 500; text-decoration: none; font-size: 1.05rem; }
.agenda a:hover { text-decoration: underline; }
.agenda p { margin: .2rem 0 0; color: var(--grafiet); font-size: .95rem; }
.agenda .extra { font-size: .88rem; }
.leeg { color: var(--grafiet); }

/* bouw: horizontale tijdlijn, randloos */
.tijdlijn {
  list-style: none; margin: 0; padding: 0 var(--rand) 1.5rem;
  width: 100vw; max-width: none; margin-left: calc(50% - 50vw);
  padding-left: max(var(--rand), calc(50vw - var(--maat) / 2));
  scroll-padding-left: max(var(--rand), calc(50vw - var(--maat) / 2));
  display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: #B9BEB8 transparent;
}
.tijdlijn li { flex: 0 0 min(21rem, 80vw); scroll-snap-align: start; }
.tijdlijn img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--mist); margin-bottom: 1rem; }
.tijdlijn time { display: block; font-weight: 500; margin-bottom: .2rem; }
.tijdlijn p { color: var(--grafiet); font-size: .98rem; }
.tijdlijn .zonder-foto { flex-basis: min(17rem, 72vw); align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; background: var(--mist); border-radius: 6px; }
.tijdlijn .zonder-foto time { font-size: 1.6rem; letter-spacing: -0.025em; margin-bottom: .5rem; }

.lucht { margin-top: 4rem; }
.lucht p { max-width: 38rem; color: var(--grafiet); }
.films { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.film { margin: 0; }
.film video { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--inkt); border-radius: 6px; }
.film figcaption { color: var(--inkt); font-weight: 500; margin-top: .5rem; font-size: .95rem; }
.lucht .nog { margin-top: 2rem; }
.lucht ul { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.lucht li a { display: inline-block; padding: .4rem .85rem; border: 1px solid var(--lijn); border-radius: 999px; text-decoration: none; font-size: .92rem; }
.lucht li a:hover { border-color: var(--inkt); }

/* voet */
.voet { background: var(--inkt); color: rgba(255,255,255,.75); padding: 3.5rem max(var(--rand), calc((100% - var(--maat)) / 2)) 3rem; }
.voet-inhoud { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 3rem; }
.voet-naam { color: #fff; font-weight: 500; font-size: 1.15rem; }
.voet-klein { grid-column: 1 / -1; font-size: .82rem; color: rgba(255,255,255,.5); }
@media (max-width: 600px) { .voet-inhoud { grid-template-columns: 1fr; } }
