/* ==========================================================================
   Voedselbank Texel — main.css
   Huisstijl van de oude site (oranje / blauwgroen / bordeaux / donkerbruin,
   Open Sans), gemoderniseerd: luchtiger, groter lettertype, afgeronde vormen.
   ========================================================================== */

/* ---------- Fonts (self-hosted, variabel 300–800) ---------- */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-latin-wght-italic.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  /* merk */
  --orange: #f47a20;          /* logo-oranje: vlakken, accenten */
  --orange-text: #c2560a;     /* oranje voor tekst/knoppen (AA-contrast op wit) */
  --orange-soft: #fdeee2;
  --teal: #468d9d;
  --teal-dark: #2f6b78;       /* AA-contrast met witte tekst */
  --teal-soft: #e6f1f3;
  --wine: #823a3a;
  --dark: #342e2c;
  --sand: #f7f2ec;
  --sand-dark: #ece3d8;

  /* tekst */
  --text: #3a3431;
  --text-muted: #6b625d;
  --line: #e7e0d8;
  --white: #fff;

  /* typografie — clamp tussen 375px en 1280px */
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-body: clamp(1rem, 0.974rem + 0.11vw, 1.0625rem);      /* 16 → 17 */
  --fs-small: 0.875rem;
  --fs-h1: clamp(2rem, 1.59rem + 1.77vw, 3rem);                /* 32 → 48 */
  --fs-h2: clamp(1.5rem, 1.293rem + 0.884vw, 2rem);            /* 24 → 32 */
  --fs-h3: clamp(1.25rem, 1.146rem + 0.442vw, 1.5rem);         /* 20 → 24 */
  --fs-tile: clamp(1.625rem, 1.315rem + 1.326vw, 2.375rem);    /* 26 → 38 */

  /* ruimte & vorm */
  --gutter: clamp(1rem, 0.48rem + 2.2vw, 2rem);
  --section: clamp(3rem, 2rem + 4.4vw, 6rem);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(52 46 44 / .06), 0 8px 24px rgb(52 46 44 / .08);
  --shadow-lift: 0 2px 4px rgb(52 46 44 / .08), 0 18px 40px rgb(52 46 44 / .14);

  /* beweging */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 200ms;
  --duration-base: 500ms;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 9rem;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
picture { display: contents; }

a { color: var(--teal-dark); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--orange-text); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  line-height: 1.2;
  color: var(--dark);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.15; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; }

p { margin: 0 0 1em; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--duration-fast);
}
.skip-link:focus { top: 1rem; color: var(--white); }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container.narrow { max-width: 860px; }

.icon { flex-shrink: 0; }

/* Animatie: nooit content verbergen zonder JS */
[data-animate] { opacity: 0; }
html.no-js [data-animate] { opacity: 1; }
[data-animate="stagger"] { opacity: 1; }

/* ---------- Knoppen & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out-expo), background-color var(--duration-fast), box-shadow var(--duration-fast), gap var(--duration-fast);
}
.btn .icon-arrow { transition: transform var(--duration-fast) var(--ease-out-expo); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:hover .icon-arrow { transform: translateX(4px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--orange-text); color: var(--white); }
.btn-primary:hover { background: #a94a07; color: var(--white); }
.btn-secondary { background: transparent; color: var(--dark); border-color: currentColor; }
.btn-secondary:hover { color: var(--orange-text); }
.btn-light { background: var(--white); color: var(--dark); }
.btn-light:hover { color: var(--orange-text); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 650;
  color: var(--orange-text);
  transition: gap var(--duration-fast) var(--ease-out-expo);
}
.link-arrow .icon { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: clamp(1rem, .6rem + 1.6vw, 1.75rem);
  /* jute-textuur uit de oude header */
  background: #a48d72 url("../images/burlap.jpg") repeat-x center top;
  box-shadow: inset 0 -1px 0 rgb(52 46 44 / .12);
  transition: box-shadow var(--duration-fast);
}
.site-header .container { max-width: 1280px; }
.site-header.is-scrolled { box-shadow: inset 0 -1px 0 rgb(52 46 44 / .12), 0 6px 20px rgb(52 46 44 / .12); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 84px;
  padding: .5rem clamp(1rem, .5rem + 1.6vw, 2rem);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgb(52 46 44 / .12), 0 10px 30px rgb(52 46 44 / .12);
}

.logo { flex-shrink: 0; display: block; }
.logo img { width: clamp(200px, 170px + 6vw, 260px); }

/* Navigatie */
.nav-list, .subnav { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; align-items: center; gap: .15rem; }
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .55rem .7rem;
  border-radius: 999px;
  color: var(--dark);
  font-weight: 600;
  font-size: .975rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--duration-fast), color var(--duration-fast);
}
.nav-link:hover { background: var(--sand); color: var(--dark); }
.nav-item.is-active > .nav-link { background: var(--orange-soft); color: var(--orange-text); }
.icon-chevron { transition: transform var(--duration-fast); }

.subnav {
  position: absolute;
  top: calc(100% + .4rem);
  left: 0;
  min-width: 260px;
  padding: .5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--duration-fast), transform var(--duration-fast) var(--ease-out-expo), visibility var(--duration-fast);
}
.subnav::before { content: ""; position: absolute; inset: -.6rem 0 auto; height: .6rem; }
.subnav a {
  display: block;
  padding: .55rem .8rem;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
}
.subnav a:hover, .subnav a[aria-current] { background: var(--sand); color: var(--orange-text); }

@media (min-width: 1241px) {
  .has-children:hover > .subnav,
  .has-children:focus-within > .subnav { opacity: 1; visibility: visible; transform: none; }
  .has-children:hover .icon-chevron,
  .has-children:focus-within .icon-chevron { transform: rotate(180deg); }
}

/* Mobiel menu */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--sand);
  color: var(--dark);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.menu-toggle-bars { display: grid; gap: 4px; width: 18px; }
.menu-toggle-bars span {
  display: block; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform var(--duration-fast), opacity var(--duration-fast);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 1241px) {
  .menu-toggle { display: none; }
}

@media (max-width: 1240px) {
  .site-nav {
    position: absolute;
    top: calc(100% + .5rem);
    left: var(--gutter); right: var(--gutter);
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    padding: .5rem 1.25rem 1.25rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lift);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--duration-fast), transform var(--duration-fast) var(--ease-out-expo), visibility var(--duration-fast);
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link { padding: .9rem .25rem; border-radius: 0; font-size: 1.05rem; }
  .nav-link:hover, .nav-item.is-active > .nav-link { background: none; }
  .nav-link .icon-chevron { display: none; }
  .subnav {
    position: static;
    min-width: 0;
    padding: 0 0 .75rem .75rem;
    border: 0;
    box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .subnav a { padding: .45rem .5rem; color: var(--text-muted); }
}

/* ---------- Home: tegels ---------- */
.home-hero {
  padding-block: clamp(1.25rem, .8rem + 2vw, 2.5rem) var(--section);
  background:
    radial-gradient(1200px 400px at 50% 0, var(--sand) 0, transparent 70%),
    var(--white);
}
.tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1rem, .6rem + 1.6vw, 2rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tile {
  --tile-color: var(--teal-dark);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--tile-color);
  color: var(--white);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform var(--duration-base) var(--ease-out-expo), box-shadow var(--duration-base) var(--ease-out-expo);
}
.tile-wine   { --tile-color: var(--wine); }
.tile-dark   { --tile-color: var(--dark); }
.tile-orange { --tile-color: var(--orange-text); }
.tile-label-top { flex-direction: column-reverse; }

.tile-media { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--sand-dark); }
.tile-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease-out-expo);
}
.tile-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.1rem, .9rem + .8vw, 1.6rem) clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-size: var(--fs-tile);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.tile-label .icon {
  width: 2.25rem; height: 2.25rem;
  padding: .45rem;
  border-radius: 50%;
  background: rgb(255 255 255 / .16);
  transition: transform var(--duration-base) var(--ease-out-expo), background-color var(--duration-fast);
}
.tile:hover, .tile:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-lift); color: var(--white); }
.tile:hover .tile-media img { transform: scale(1.05); }
.tile:hover .tile-label .icon { transform: translateX(4px); background: rgb(255 255 255 / .28); }
@media (max-width: 699px) {
  .tiles { grid-template-columns: 1fr; gap: .9rem; }
  .tile, .tile-label-top { flex-direction: row; align-items: stretch; }
  .tile-media { width: 36%; flex-shrink: 0; }
  .tile-label { flex: 1; font-size: 1.6rem; }
}

/* ---------- Home: welkom ---------- */
.home-welcome { padding-block: 0 var(--section); }
.home-welcome .prose > h2:first-child {
  font-size: var(--fs-h1);
  color: var(--orange-text);
  font-weight: 600;
}
.home-welcome .content-image {
  float: right;
  margin: .25rem 0 1rem 2rem;
  max-width: 40%;
}
.home-welcome .content-image img { width: 132px; }
.home-welcome .prose::after { content: ""; display: table; clear: both; }
.home-video { padding-block: 0 var(--section); }

/* ---------- Paginakop ---------- */
.page-header {
  padding-block: clamp(2rem, 1.4rem + 2.6vw, 3.75rem) clamp(1.75rem, 1.3rem + 2vw, 3rem);
  background: var(--sand);
  border-bottom: 1px solid var(--sand-dark);
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}
.page-title { margin: 0; color: var(--orange-text); font-weight: 600; max-width: 22ch; }

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .5rem;
  margin: 0 0 .75rem;
  padding: 0;
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: #b5aaa1; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange-text); text-decoration: underline; }

/* ---------- Paginalayout ---------- */
.page-layout {
  display: grid;
  gap: clamp(2.5rem, 2rem + 2vw, 4rem);
  padding-bottom: var(--section);
}
@media (min-width: 960px) {
  .page-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
  .sidebar { position: sticky; top: 130px; }
}
.page-layout > :first-child { min-width: 0; max-width: 760px; }

/* ---------- Prose (tekstinhoud) ---------- */
.prose > * + * { margin-top: 0; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.prose li { margin-bottom: .55em; padding-left: .3em; }
.prose li::marker { color: var(--orange); font-weight: 700; }
.prose ul > li::marker { content: "●  "; font-size: .7em; }
.prose blockquote {
  margin: 2em 0;
  padding: .25em 0 .25em 1.25em;
  border-left: 4px solid var(--orange);
  font-size: 1.15em;
  color: var(--dark);
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose strong { color: var(--dark); font-weight: 650; }

.content-image { margin: 2em 0; }
.content-image img { border-radius: var(--radius-sm); }
.content-image figcaption { margin-top: .6em; font-size: var(--fs-small); color: var(--text-muted); }

/* ---------- Blokken ---------- */
.callout {
  --c: var(--orange);
  --c-bg: var(--orange-soft);
  margin: 2em 0;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem) clamp(1.25rem, 1rem + 1.2vw, 2rem);
  border-radius: var(--radius);
  background: var(--c-bg);
  border-left: 5px solid var(--c);
}
.callout-teal { --c: var(--teal); --c-bg: var(--teal-soft); }
.callout-sand { --c: var(--sand-dark); --c-bg: var(--sand); }
.callout-title { margin: 0 0 .5em; font-size: 1.2rem; }
.callout-text > :last-child { margin-bottom: 0; }

.steps { margin: 3em 0 2em; }
.steps-list { list-style: none; counter-reset: step; padding: 0 !important; margin: 0; display: grid; gap: .9rem; }
.steps-list li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 1.1rem 1.25rem 1.1rem 4.25rem !important;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.steps-list li:hover { border-color: var(--orange); box-shadow: var(--shadow); }
.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 1.1rem; top: 1rem;
  display: grid;
  place-items: center;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  background: var(--orange-text);
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
}

.data-table { margin: 2.5em 0; }
.data-table table {
  width: 100%;
  max-width: 520px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.data-table th, .data-table td { padding: .7rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: 0; }
.data-table tr:nth-child(even) { background: var(--sand); }
.data-table th { font-weight: 500; }
.data-table td { text-align: right; font-weight: 700; color: var(--dark); white-space: nowrap; font-variant-numeric: tabular-nums; }
.data-table figcaption { margin-top: .5rem; font-size: var(--fs-small); color: var(--text-muted); }

.downloads { margin: 2.5em 0; }
.download-list { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: .75rem; }
.download-list li { margin: 0; padding: 0; }
.download {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--dark);
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-out-expo), box-shadow var(--duration-fast), border-color var(--duration-fast);
}
.download:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--orange); color: var(--dark); }
.download-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--orange-soft); color: var(--orange-text); }
.download-name { font-weight: 650; }
.download-meta { font-size: var(--fs-small); color: var(--text-muted); }

/* ---------- Externe inhoud (klik om te laden) ---------- */
.embed {
  position: relative;
  aspect-ratio: var(--ratio, 16/9);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--sand);
}
.embed[style*="auto"] { aspect-ratio: auto; }
.embed iframe { width: 100%; height: 100%; border: 0; }
.embed-placeholder {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .9rem;
  height: 100%;
  min-height: 220px;
  padding: 1.5rem;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgb(52 46 44 / .025) 14px 28px),
    var(--sand);
}
.embed-notice { max-width: 38ch; margin: 0; font-size: var(--fs-small); color: var(--text-muted); line-height: 1.5; }
.embed.is-loaded .consent-placeholder { display: none; }
.embed-elfsight.is-loaded { background: var(--white); padding: .5rem; }

.video-block { margin: 2em 0; }
.video-block figcaption { margin-top: .6em; font-size: var(--fs-small); color: var(--text-muted); }

.map-block .side-title { margin-bottom: .75rem; }
.map-address { display: flex; gap: .5rem; margin: .9rem 0 0; font-size: var(--fs-small); line-height: 1.5; color: var(--text-muted); }
.map-address .icon { width: 18px; height: 18px; margin-top: .1rem; color: var(--orange-text); }

/* ---------- Zijbalk ---------- */
.sidebar { display: grid; gap: 1.5rem; }
.side-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--sand);
}
.side-title { margin: 0 0 1rem; font-size: 1.15rem; }
.side-title a { color: inherit; text-decoration: none; }
.side-title a:hover { color: var(--orange-text); }
.side-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.side-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .6rem .85rem;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  line-height: 1.35;
  transition: background-color var(--duration-fast), color var(--duration-fast);
}
.side-nav a .icon { width: 16px; height: 16px; opacity: 0; transform: translateX(-4px); transition: opacity var(--duration-fast), transform var(--duration-fast) var(--ease-out-expo); }
.side-nav a:hover { background: var(--white); color: var(--orange-text); }
.side-nav a:hover .icon { opacity: 1; transform: none; }
.side-nav a[aria-current] { background: var(--white); color: var(--orange-text); font-weight: 650; box-shadow: inset 3px 0 0 var(--orange); }
.side-nav a[aria-current] .icon { opacity: 1; transform: none; }
.side-block > :first-child { margin-top: 0; }
.side-block > :last-child { margin-bottom: 0; }
.side-logo { background: var(--white); border: 1px solid var(--line); }
.logo-block img { margin-inline: auto; }
.logo-block a { display: block; transition: opacity var(--duration-fast); }
.logo-block a:hover { opacity: .8; }

/* ---------- Overzichtskaarten ---------- */
.section-intro { margin-bottom: 2rem; }
.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 1.2rem + .8vw, 1.9rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  text-decoration: none;
  transition: transform var(--duration-base) var(--ease-out-expo), box-shadow var(--duration-base) var(--ease-out-expo), border-color var(--duration-fast);
}
.card-title { margin: 0 0 .6rem; font-size: 1.25rem; transition: color var(--duration-fast); }
.card-text { margin: 0 0 1.25rem; color: var(--text-muted); font-size: .95rem; line-height: 1.6; }
.card .link-arrow { margin-top: auto; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: transparent; color: var(--text); }
.card:hover .card-title { color: var(--orange-text); }
.card:hover .link-arrow { gap: .75rem; }

/* ---------- Sponsoren ---------- */
.sponsor-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.sponsor {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 1rem;
  height: 100%;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--dark);
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-out-expo), box-shadow var(--duration-fast), border-color var(--duration-fast);
}
.sponsor-name { font-weight: 650; font-size: .95rem; letter-spacing: .01em; line-height: 1.35; }
.sponsor-place { grid-column: 1; font-size: var(--fs-small); color: var(--text-muted); line-height: 1.4; }
.sponsor .icon { grid-column: 2; grid-row: 1 / span 2; width: 18px; height: 18px; color: var(--orange-text); transition: transform var(--duration-fast) var(--ease-out-expo); }
a.sponsor:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--orange); color: var(--dark); }
a.sponsor:hover .icon { transform: translateX(3px); }

/* ---------- Contactpagina ---------- */
.contact-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  margin-bottom: 2.5rem;
}
.contact-card {
  display: block;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--sand);
  color: var(--text);
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-out-expo), box-shadow var(--duration-fast);
}
a.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.contact-card h2 { margin: .9rem 0 .35rem; font-size: 1.05rem; }
.contact-card p { margin: 0; line-height: 1.55; font-size: .95rem; overflow-wrap: anywhere; }
.contact-card-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--white); color: var(--orange-text); }

/* ---------- Contactblok (onderaan elke pagina) ---------- */
.contact-band {
  padding-block: var(--section);
  background: var(--teal-dark);
  color: var(--white);
}
.contact-band h2 { color: var(--white); }
.contact-band a { color: var(--white); }
.contact-band a:hover { color: var(--orange-soft); }
.contact-band-grid { display: grid; gap: clamp(2rem, 1.5rem + 2vw, 4rem); }
@media (min-width: 900px) {
  .contact-band-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
}
.contact-band-lead { opacity: .9; }
.contact-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .9rem; line-height: 1.55; }
.contact-list .icon {
  width: 2.5rem; height: 2.5rem;
  padding: .6rem;
  border-radius: 50%;
  background: rgb(255 255 255 / .12);
}
.contact-list li > a, .contact-list li > span { align-self: center; }
.contact-band .embed { background: rgb(255 255 255 / .08); }
.contact-band .embed-placeholder { background: transparent; color: var(--white); min-height: 280px; }
.contact-band .embed-notice { color: rgb(255 255 255 / .82); }
.contact-band .embed-elfsight.is-loaded { background: var(--white); color: var(--text); }
.contact-band .btn-primary { background: var(--white); color: var(--dark); }
.contact-band .btn-primary:hover { background: var(--orange-soft); }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 2rem;
  background: var(--dark);
  color: rgb(255 255 255 / .78);
  font-size: var(--fs-small);
  border-top: 4px solid var(--orange);
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-links a { color: var(--white); font-weight: 600; text-decoration: none; }
.footer-links a:hover { color: var(--orange); text-decoration: underline; }
.footer-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: .25rem .6rem;
  margin: 0;
  flex: 1 1 280px;
  text-align: right;
}
.footer-sep { opacity: .6; }
.footer-legal { margin-top: 1.25rem; text-align: center; }
.footer-legal p {
  margin: 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgb(255 255 255 / .1);
  font-size: .8125rem;
  color: rgb(255 255 255 / .6);
}

/* Webjongens-credit met typemachine-effect (zoals op webjongens.nl) */
.wj-copyright { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.wj-copyright .wj-heart { color: #f47a20; flex-shrink: 0; }
.wj-copyright a { color: var(--white); text-decoration: none; letter-spacing: .02em; }
.wj-copyright a strong { font-weight: 800; }
.wj-copyright a:hover { color: #f47a20; }
.wj-copyright .wj-type { display: inline-flex; align-items: center; min-width: 4.8em; text-align: left; }
.wj-copyright .cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  background-color: currentColor;
  animation: wj-blink 1s infinite;
}
@keyframes wj-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.to-top {
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: rgb(255 255 255 / .1);
  color: var(--white);
  transition: transform var(--duration-fast) var(--ease-out-expo), background-color var(--duration-fast);
}
.to-top:hover { transform: translateY(-3px); background: var(--orange-text); color: var(--white); }
@media (max-width: 700px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-note { flex-basis: auto; justify-content: center; text-align: center; flex-direction: column; }
  .footer-sep { display: none; }
}

/* ---------- Foutpagina ---------- */
.error-page { padding-bottom: var(--section); }

/* ---------- Print ---------- */
@media print {
  .site-header, .contact-band, .site-footer, .sidebar, .embed { display: none !important; }
  [data-animate] { opacity: 1 !important; transform: none !important; }
}
