/* Boscos website - huisstijl vzw Boscos (Torhout)
   Wit en rustig, oranje als vrolijk accent, donkergrijs en zwart als houvast.
   Koppen: Fredoka. Tekst: Nunito Sans. Zachte hoeken, cirkels en wimpels. */

:root {
  --oranje: #F7941D;
  --oranje-tekst: #B84F00;
  --oranje-tint: #FFF1E0;
  --grond: #FFFFFF;
  --ink: #111111;
  --donkergrijs: #3A3A3A;
  --grijs-tekst: #6B6B6B;
  --vlak-licht: #F4F4F4;
  --lijn: #E2E2E2;
  --op-oranje: #111111;
  --oranje-op-zwart: #FFB35C;

  --font-display: "Fredoka", "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-sans: "Nunito Sans", "Segoe UI", Arial, system-ui, sans-serif;

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 28px;
  --r-pill: 999px;

  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 40px; --s6: 64px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--grond);
  color: var(--donkergrijs);
  font: 400 16px/24px var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
[id] { scroll-margin-top: 72px; }
[hidden] { display: none !important; }
a { color: var(--oranje-tekst); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; color: var(--ink); margin: 0 0 var(--s3); }
h1 { font-size: 40px; line-height: 44px; }
h2 { font-size: clamp(28px, 3.2vw, 36px); line-height: 1.2; }
h3 { font-size: 20px; line-height: 26px; }
p { margin: 0 0 var(--s3); }
.display { font-size: clamp(40px, 6.4vw, 64px); line-height: 1.04; font-weight: 600; letter-spacing: -0.01em; }
.lead { font-size: 20px; line-height: 30px; max-width: 34rem; color: var(--donkergrijs); }
.label { font: 700 12px/16px var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--oranje-tekst); margin: 0 0 var(--s2); }
.muted { color: var(--grijs-tekst); font-size: 14px; line-height: 20px; }
.muted-light { color: #D4D4D4; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.section-dark :focus-visible, .site-footer :focus-visible, .lightbox :focus-visible { outline-color: #FFFFFF; }

.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 300; background: var(--oranje); color: var(--op-oranje); padding: 12px 20px; border-radius: var(--r-md); font-weight: 700; text-decoration: none; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 700px) { .wrap { padding-inline: 32px; } }

/* ---------- Knoppen en labels ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 12px 24px; border-radius: var(--r-md); border: 2px solid transparent;
  font: 600 16px/1.2 var(--font-display); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(17, 17, 17, .18); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-primary { background: var(--oranje); border-color: var(--oranje); color: var(--op-oranje); }
.btn-primary:hover { color: var(--op-oranje); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #FFFFFF; }
.btn-quiet { background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.btn-quiet:hover { box-shadow: none; transform: none; color: var(--oranje-tekst); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.pill {
  display: inline-block; background: var(--oranje); color: var(--op-oranje);
  font: 600 .46em/1 var(--font-display); padding: .22em .6em .28em; border-radius: var(--r-pill);
  vertical-align: middle; transform: rotate(-3deg); margin-left: .15em; letter-spacing: 0;
}
.pill-light { font-size: 16px; margin: 0; transform: none; }

/* ---------- Wimpelslinger (dynamisch) ---------- */
.bunting { height: 56px; background: url("../img/wimpels-tile.svg") repeat-x left top / 210px 56px; }
.page-error .bunting { margin-bottom: var(--s5); }

/* ---------- Hoofding ---------- */
.site-header { padding: 0 0 var(--s3); }
.header-row { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s3) var(--s4); }
.brand { display: inline-flex; align-items: center; gap: var(--s3); text-decoration: none; color: var(--ink); }
.brand-logo { width: 70px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font: 600 clamp(34px, 5vw, 46px)/1 var(--font-display); color: var(--ink); }
.brand-slogan { font: 500 14px/20px var(--font-display); color: var(--donkergrijs); margin-top: 2px; }
.brand-light .brand-name { color: #FFFFFF; }
.brand-light .brand-slogan { color: #E8E8E8; }
.brand:hover .brand-name { color: var(--oranje-tekst); }
.brand-light:hover .brand-name { color: var(--oranje-op-zwart); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s1); }
.nav a { display: inline-block; padding: 10px 16px; border-radius: var(--r-pill); font: 600 16px/1.2 var(--font-display); color: var(--ink); text-decoration: none; }
.nav a:hover { background: var(--oranje-tint); color: var(--ink); }
.nav a.nav-cta { background: var(--oranje); color: var(--op-oranje); }
.nav a.nav-cta:hover { background: var(--ink); color: #FFFFFF; }

.nav-toggle { display: none; margin-left: auto; align-items: center; gap: 10px; min-height: 48px; padding: 8px 18px; border: 2px solid var(--ink); background: transparent; border-radius: var(--r-md); font: 600 16px/1 var(--font-display); color: var(--ink); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2.5px; background: currentColor; border-radius: 2px; content: ""; position: relative; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

@media (min-width: 900px) { .header-row .nav { margin-left: auto; } }
@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .header-row > .nav { display: none; flex-basis: 100%; }
  .header-row > .nav.is-open { display: block; }
  .header-row > .nav ul { flex-direction: column; background: var(--vlak-licht); border-radius: var(--r-lg); padding: var(--s3); }
  .header-row > .nav a { display: block; padding: 14px 16px; }
}

/* Compact menu tijdens scrollen */
.quickbar {
  position: fixed; inset: 0 0 auto 0; z-index: 90; background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--lijn);
  transform: translateY(-100%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s;
}
.quickbar.is-visible { transform: none; visibility: visible; transition-delay: 0s; }
.quickbar-row { display: flex; align-items: center; gap: var(--s3); min-height: 60px; }
.quick-brand { font: 600 26px/1 var(--font-display); color: var(--ink); text-decoration: none; }
.quickbar .nav { margin-left: auto; }
.quick-top { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #FFFFFF; text-decoration: none; font-weight: 700; flex: none; }
.quick-top:hover { background: var(--oranje); color: var(--op-oranje); }
@media (max-width: 899px) { .quickbar .nav li:not(:last-child) { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: var(--s3) 0 var(--s6); overflow: hidden; }
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.dot { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; animation: zweef var(--dur) ease-in-out var(--delay) infinite alternate; }
.dot-o { background: var(--oranje); }
.dot-g { background: #C9C9C9; }
.twinkle { position: absolute; left: var(--x); top: var(--y); animation: twinkle 3s ease-in-out var(--delay) infinite; }
@keyframes zweef { from { transform: translate(0, 0); } to { transform: translate(10px, -16px); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.72) rotate(18deg); opacity: .65; } }
@media (max-width: 1099px) { .confetti .dot:nth-child(-n+4) { display: none; } }
@media (max-width: 699px) { .confetti .dot { display: none; } }

.hero-grid { position: relative; z-index: 1; display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s4); }
.hero-art { position: relative; }
.sun { position: absolute; width: 66%; aspect-ratio: 1; left: 26%; top: -12%; border-radius: 50%; background: var(--oranje); animation: opkomst 1.4s cubic-bezier(.2, .8, .2, 1) both; }
.hero-img { position: relative; z-index: 1; width: 100%; height: auto; animation: inschuiven 1s ease-out both; }
@keyframes opkomst { from { transform: translateY(40px) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes inschuiven { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

.next { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s5); padding: var(--s3) var(--s4) var(--s3) var(--s3); background: var(--oranje-tint); border-radius: var(--r-lg); text-decoration: none; color: var(--ink); max-width: 34rem; transition: transform .15s ease; }
.next:hover { transform: translateY(-2px); color: var(--ink); }
.next-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #FFFFFF; flex: none; }
.next-body { display: flex; flex-direction: column; min-width: 0; }
.next-body .label { margin: 0; }
.next-title { font: 600 20px/26px var(--font-display); }
.next-when { font-size: 14px; line-height: 20px; color: var(--donkergrijs); }
.next-count { margin-left: auto; background: var(--ink); color: #FFFFFF; border-radius: var(--r-pill); padding: 6px 14px; font: 600 14px/20px var(--font-display); white-space: nowrap; }
.next-count:empty { display: none; }
@media (max-width: 520px) { .next { flex-wrap: wrap; } .next-count { margin-left: 72px; } }

.wave { height: 16px; background: url("../img/golf.svg") repeat-x center / 64px 16px; }

/* ---------- Secties ---------- */
.section { padding-block: var(--s6); }
@media (max-width: 699px) { .section { padding-block: var(--s5); } }
.section-soft { background: var(--vlak-licht); }
.section-tint { background: var(--oranje-tint); }
.section-dark { background: var(--ink); color: #FFFFFF; }
.section-dark h2, .section-dark h3 { color: #FFFFFF; }
.section-dark .label { color: var(--oranje-op-zwart); }
.section-dark a { color: var(--oranje-op-zwart); }
.section-head { max-width: 44rem; margin-bottom: var(--s5); }
.section-intro { font-size: 18px; line-height: 28px; margin: 0; }

.about-grid { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.15fr .85fr; gap: var(--s6); align-items: start; } }
.about-copy p { font-size: 18px; line-height: 28px; max-width: 40rem; }
.goal { display: flex; gap: var(--s3); align-items: flex-start; margin-top: var(--s4); padding: var(--s4); background: var(--oranje-tint); border-radius: var(--r-lg); }
.goal-icon { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #FFFFFF; flex: none; }
.goal h3 { margin-bottom: var(--s1); }
.goal p { margin: 0; font-size: 16px; line-height: 24px; }

.facts { border: 2px solid var(--lijn); border-radius: var(--r-lg); padding: var(--s4); }
.facts-img { border-radius: var(--r-md); margin-bottom: var(--s3); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.facts h3 { margin-bottom: var(--s2); }
.facts dl, .footer-legal, .legal-dl { margin: 0; }
.facts dl > div { padding: 12px 0; border-top: 1px solid var(--lijn); }
.facts dt { font: 700 12px/16px var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--grijs-tekst); }
.facts dd { margin: 2px 0 0; color: var(--ink); }

.pillars { list-style: none; margin: var(--s6) 0 0; padding: 0; display: grid; gap: var(--s4); }
@media (min-width: 800px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { background: var(--vlak-licht); border-radius: var(--r-lg); padding: var(--s4); transition: transform .2s ease; }
.pillar:hover { transform: translateY(-4px); }
.pillar-icon { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: #FFFFFF; margin-bottom: var(--s3); }
.pillar:hover .icon { animation: wiebel .6s ease; }
.pillar p { margin: 0; }
@keyframes wiebel { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-10deg); } 70% { transform: rotate(8deg); } }

/* ---------- Activiteiten ---------- */
.events { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.event { display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid var(--lijn); border-radius: var(--r-lg); overflow: hidden; }
.event-media { position: relative; aspect-ratio: 3 / 2; background: var(--oranje-tint); }
.event-media img { width: 100%; height: 100%; object-fit: cover; }
.event-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.date-badge { position: absolute; left: var(--s3); top: var(--s3); min-width: 64px; padding: 8px 12px 10px; background: var(--oranje); color: var(--op-oranje); border-radius: var(--r-md); text-align: center; font-family: var(--font-display); line-height: 1; box-shadow: 0 4px 0 rgba(17, 17, 17, .15); }
.date-badge .d { display: block; font-size: 30px; font-weight: 600; }
.date-badge .m { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.event-body { padding: var(--s4); display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.event-body h3 { font-size: 22px; line-height: 28px; margin: 0; }
.meta { display: flex; align-items: flex-start; gap: var(--s2); margin: 0; font-size: 15px; line-height: 22px; color: var(--ink); }
.meta .icon { flex: none; width: 24px; height: 24px; margin-top: -1px; }
.event-summary p { margin: 0 0 var(--s2); }
.program { margin-top: var(--s1); border-top: 1px solid var(--lijn); padding-top: var(--s2); }
.program summary { cursor: pointer; font: 600 16px/24px var(--font-display); color: var(--ink); padding: 6px 0; list-style: none; display: flex; align-items: center; gap: var(--s2); }
.program summary::-webkit-details-marker { display: none; }
.program summary::before { content: "+"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--oranje); color: var(--op-oranje); font-weight: 700; line-height: 1; }
.program[open] summary::before { content: "−"; }
.program ol { list-style: none; margin: var(--s2) 0 0; padding: 0; display: grid; gap: 6px; }
.program li { display: flex; gap: var(--s3); font-size: 15px; line-height: 22px; }
.program .t { flex: none; min-width: 52px; font-weight: 700; color: var(--oranje-tekst); font-variant-numeric: tabular-nums; }
.event-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: auto; padding-top: var(--s3); }
.event:target { box-shadow: 0 0 0 4px var(--oranje); }

.empty { text-align: center; padding: var(--s5) var(--s4); background: #FFFFFF; border-radius: var(--r-lg); border: 2px dashed var(--lijn); }
.empty h3 { margin-top: var(--s2); }
.empty p { margin: 0 auto; max-width: 32rem; }

.past { margin-top: var(--s5); }
.past summary { cursor: pointer; font: 600 18px/26px var(--font-display); color: var(--ink); }
.past ul { list-style: none; padding: 0; margin: var(--s3) 0 0; display: grid; gap: 1px; background: var(--lijn); border-radius: var(--r-md); overflow: hidden; }
.past li { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); padding: 12px var(--s3); background: #FFFFFF; }
.past-date { color: var(--grijs-tekst); min-width: 12rem; }
.past-title { font-weight: 700; color: var(--ink); }

/* ---------- Sfeerfoto's ---------- */
.mosaic { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-auto-flow: dense; grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(120px, 34vw, 210px); }
@media (min-width: 600px) { .mosaic { grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(130px, 22vw, 210px); } }
@media (min-width: 900px) { .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 15vw, 220px); } }
.tile { border-radius: var(--r-md); overflow: hidden; background: var(--donkergrijs); }
.tile-w { grid-column: span 2; }
.tile-t { grid-row: span 2; }
.tile-b { grid-column: span 2; grid-row: span 2; }
.tile a { display: block; width: 100%; height: 100%; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s ease; }
.tile a:hover img { transform: scale(1.06); }
.tile a:focus-visible { outline-offset: -4px; }

.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: rgba(17, 17, 17, .97); color: #FFFFFF; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: var(--s3); max-width: 92vw; }
.lb-figure img { max-width: min(92vw, 1500px); max-height: 80vh; max-height: 80dvh; width: auto; height: auto; object-fit: contain; border-radius: var(--r-md); background: var(--donkergrijs); }
.lb-figure figcaption { font-size: 15px; line-height: 22px; color: #E8E8E8; text-align: center; max-width: 60ch; min-height: 22px; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--oranje); color: var(--op-oranje); cursor: pointer; transition: transform .15s ease; }
.lb-btn:hover { transform: scale(1.08); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; margin-top: -26px; }
.lb-next { right: 16px; top: 50%; margin-top: -26px; }
.lb-count { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center; font-size: 14px; color: #D4D4D4; }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 36px; margin-top: 0; } .lb-prev { left: 16px; } .lb-next { right: 16px; } }

/* ---------- Sponsors ---------- */
.sponsors { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.sponsor a, .sponsor-static { display: flex; flex-direction: column; align-items: center; gap: var(--s2); height: 100%; padding: var(--s3); background: #FFFFFF; border: 2px solid var(--lijn); border-radius: var(--r-md); text-decoration: none; color: var(--ink); transition: border-color .15s ease, transform .15s ease; }
.sponsor a:hover { border-color: var(--oranje); transform: translateY(-3px); color: var(--ink); }
.sponsor img { width: 100%; max-width: 240px; aspect-ratio: 2 / 1; object-fit: contain; }
.sponsor-name { font: 600 15px/20px var(--font-display); text-align: center; }
.sponsors-cta { margin: var(--s4) 0 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .8fr 1.2fr; gap: var(--s6); align-items: start; } }
.contact-list { list-style: none; margin: var(--s4) 0; padding: 0; display: grid; gap: var(--s3); }
.contact-list li { display: flex; gap: var(--s3); align-items: center; }
.contact-list .icon { flex: none; background: #FFFFFF; border-radius: 50%; padding: 8px; width: 48px; height: 48px; }
.contact-list a { color: var(--ink); font-weight: 700; }
.route { font-weight: 700; }

.contact-form-wrap { background: #FFFFFF; border-radius: var(--r-lg); padding: var(--s4); box-shadow: 0 6px 0 rgba(17, 17, 17, .08); }
@media (min-width: 700px) { .contact-form-wrap { padding: var(--s5); } }
.field { margin-bottom: var(--s3); }
.field-row { display: grid; gap: 0 var(--s3); }
@media (min-width: 700px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label:not(.check) { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: 400 16px/24px var(--font-sans); color: var(--ink);
  background: #FFFFFF; border: 2px solid var(--grijs-tekst); border-radius: var(--r-sm);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--ink); outline-offset: 2px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--oranje-tekst); border-width: 3px; }
.field-error { margin: 6px 0 0; color: var(--oranje-tekst); font-weight: 700; font-size: 14px; line-height: 20px; }
.field-error:empty { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 22px; cursor: pointer; }
.check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-bottom: var(--s3); padding: var(--s3); border-radius: var(--r-md); font-weight: 700; }
.form-status:empty { display: none; }
.form-status.is-ok { background: var(--oranje-tint); border-left: 8px solid var(--oranje); color: var(--ink); }
.form-status.is-error { background: var(--ink); color: #FFFFFF; }
.rc-box { margin-bottom: var(--s3); padding: var(--s3); background: var(--vlak-licht); border-radius: var(--r-md); }
.rc-box p { margin: 0 0 var(--s2); }
.rc-note { margin: var(--s3) 0 0; font-size: 12px; line-height: 18px; color: var(--grijs-tekst); }
.form-actions { margin-top: var(--s3); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.grecaptcha-badge { visibility: hidden; }

/* ---------- Voet ---------- */
.site-footer { background: var(--oranje-tint); color: #FFFFFF; }
.page-legal .site-footer, .page-error .site-footer { background: #FFFFFF; }
.footer-wave { height: 36px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='36' viewBox='0 0 96 36'%3E%3Cpath d='M0 36 V18 Q24 0 48 18 T96 18 V36 Z' fill='%233A3A3A'/%3E%3C/svg%3E") repeat-x bottom / 96px 36px; }
.footer-body { background: var(--donkergrijs); padding-block: var(--s5) var(--s4); }
.footer-grid { display: grid; gap: var(--s5) var(--s4); }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.1fr .9fr 1.2fr .9fr; } }
.footer-title { font: 600 18px/24px var(--font-display); color: #FFFFFF; margin-bottom: var(--s3); }
.footer-address { font-style: normal; }
.site-footer a { color: #FFFFFF; }
.site-footer a:hover { color: var(--oranje-op-zwart); }
.footer-legal > div { padding: 6px 0; font-size: 14px; line-height: 20px; }
.footer-legal dt { color: #D4D4D4; font-size: 12px; line-height: 16px; letter-spacing: 0.04em; }
.footer-legal dd { margin: 1px 0 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-social { margin: var(--s3) 0 0; display: flex; gap: var(--s3); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid rgba(255, 255, 255, .25); font-size: 14px; }
.footer-bottom p { margin: 0; }
.is-placeholder { border-bottom: 2px dashed currentColor; opacity: .95; }
.site-footer .is-placeholder { color: var(--oranje-op-zwart); }
.legal .is-placeholder { color: var(--oranje-tekst); }

/* ---------- Cookiebanner en dialogen ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; display: flex; justify-content: center; pointer-events: none; }
.cookie-card { pointer-events: auto; width: 100%; max-width: 820px; background: #FFFFFF; border: 3px solid var(--ink); border-radius: var(--r-lg); padding: var(--s4); box-shadow: 0 10px 0 rgba(17, 17, 17, .12); animation: inschuiven .5s ease-out both; }
.cookie-title { font: 600 20px/26px var(--font-display); margin-bottom: var(--s2); }
.cookie p { margin: 0 0 var(--s3); font-size: 15px; line-height: 22px; }
.cookie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }
.modal { border: 0; border-radius: var(--r-lg); padding: 0; width: calc(100% - 32px); max-width: 560px; color: var(--donkergrijs); }
.modal::backdrop { background: rgba(17, 17, 17, .65); }
.modal-body { padding: var(--s4); margin: 0; }
.modal h2 { font-size: 26px; }
.cs-row { padding: var(--s3) 0; border-top: 1px solid var(--lijn); }
.modal-actions { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); align-items: center; margin-top: var(--s3); }
.switch { display: flex; gap: var(--s3); align-items: flex-start; cursor: pointer; font-size: 15px; line-height: 22px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { position: relative; flex: none; width: 48px; height: 28px; border-radius: var(--r-pill); background: #8C8C8C; margin-top: 2px; transition: background-color .2s ease; }
.switch-ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; transition: transform .2s ease; }
.switch input:checked + .switch-ui { background: var(--ink); }
.switch input:checked + .switch-ui::after { transform: translateX(20px); background: var(--oranje); }
.switch input:disabled + .switch-ui { opacity: .6; }
.switch input:focus-visible + .switch-ui { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- Juridische pagina's ---------- */
.legal { padding-block: var(--s5) var(--s6); }
.prose { max-width: 820px; }
.prose h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; margin-bottom: var(--s2); }
.prose h2 { font-size: 26px; line-height: 32px; margin: var(--s5) 0 var(--s2); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.table-scroll { overflow-x: auto; margin: var(--s3) 0; border: 1px solid var(--lijn); border-radius: var(--r-md); }
.legal-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; min-width: 640px; }
.legal-table th, .legal-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--lijn); }
.legal-table thead th { background: var(--vlak-licht); font-family: var(--font-display); color: var(--ink); }
.legal-table tbody th { font-weight: 700; color: var(--ink); width: 26%; }
.legal-table tr:last-child th, .legal-table tr:last-child td { border-bottom: 0; }
.legal-dl > div { display: grid; gap: 0 var(--s3); padding: 10px 0; border-bottom: 1px solid var(--lijn); }
@media (min-width: 700px) { .legal-dl > div { grid-template-columns: 14rem 1fr; } }
.legal-dl dt { font-weight: 700; color: var(--ink); }
.legal-dl dd { margin: 0; }
code { background: var(--vlak-licht); border-radius: 4px; padding: 1px 6px; font-size: .92em; }

/* ---------- Foutpagina ---------- */
.error-wrap { max-width: 640px; margin: 0 auto; padding: var(--s5) 20px var(--s6); text-align: center; display: grid; justify-items: center; gap: var(--s2); }

/* ---------- Beweging ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.in, .no-js-fallback .reveal { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
