/* Dierenbron: vormgeving
   Rustige natuurkleuren: papier, bosgroen, bamboe en het roestrood van de rode panda.
   Letter: Inter, met als alternatief de leesletter Atkinson Hyperlegible Next. */

@font-face {
  font-family: "Inter";
  src: url("../letters/inter-latin-opsz-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../letters/inter-latin-opsz-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../letters/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../letters/atkinson-hyperlegible-next-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 800; font-style: italic; font-display: swap;
}

:root {
  --papier: #F6F1E8;
  --papier-2: #EDE5D7;
  --papier-3: #E3D8C5;
  --kaart: #FFFDF9;
  --inkt: #1C2923;
  --inkt-2: #425047;
  --inkt-3: #57655D;
  --lijn: #D9CFBD;
  --lijn-zacht: #E6DDCE;
  --bos: #2D5A47;
  --bos-donker: #1F4436;
  --bos-diep: #16322A;
  --bos-licht: #E0EBE2;
  --bos-mist: #EDF3EE;
  --mos: #6A8B4B;
  --bamboe: #9DBB6C;
  --roest: #A94A23;
  --roest-donker: #873817;
  --roest-licht: #F6E3D5;
  --zand: #F3E7D1;
  --focus: #1A5FD0;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --schaduw-1: 0 1px 2px rgba(28, 41, 35, .05), 0 2px 10px rgba(28, 41, 35, .05);
  --schaduw-2: 0 2px 6px rgba(28, 41, 35, .06), 0 16px 40px rgba(28, 41, 35, .12);
  --letter: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --tekstmaat: 1.1875rem;
  --regel: 1.7;
  --tekstbreedte: 41rem;
  --rand: clamp(1rem, 3vw, 2rem);
  --breed: 1320px;
}
html.leesletter { --letter: "Atkinson Hyperlegible Next", "Inter", Verdana, sans-serif; }
html.tekst-groot { font-size: 112.5%; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--inkt);
  font-family: var(--letter);
  font-size: var(--tekstmaat);
  line-height: var(--regel);
  font-optical-sizing: auto;
  font-feature-settings: "cv05" 1, "cv08" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; outline: none; }
img { max-width: 100%; }

h1, h2, h3 {
  color: var(--inkt);
  font-weight: 720;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.3rem); letter-spacing: -0.03em; margin: 0 0 .35em; }
h2 { font-size: 1.62rem; margin: 2.2em 0 .55em; }
h3 { font-size: 1.28rem; margin: 1.8em 0 .45em; }
p { margin: 0 0 1.05em; }
strong { font-weight: 680; }
a { color: var(--bos); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--bos-donker); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 5px; }

.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sla-over {
  position: absolute; left: 1rem; top: -200px; z-index: 100;
  background: var(--bos-diep); color: #fff; padding: .75rem 1.1rem; border-radius: var(--r-s);
  font-weight: 650; text-decoration: none;
}
.sla-over:focus { top: 1rem; color: #fff; }
.extern-teken {
  display: inline-block; width: .68em; height: .68em; margin-left: .28em; vertical-align: .02em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") no-repeat center / contain;
}

.bovenkop {
  font-size: .82rem; font-weight: 720; letter-spacing: .085em; text-transform: uppercase;
  color: var(--roest); margin: 0 0 .9rem; line-height: 1.4;
}
.niveau-chip {
  display: inline-block; margin-left: .45rem; padding: .18rem .65rem; border-radius: 999px;
  background: var(--bos-licht); color: var(--bos-donker);
  font-size: .78rem; letter-spacing: .01em; text-transform: none; font-weight: 650; vertical-align: 1px;
}

/* ---------- Knoppen ---------- */
.knop {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 650; font-size: 1.05rem; line-height: 1.2;
  background: var(--bos); color: #fff; border: 0; border-radius: 13px;
  padding: .82rem 1.3rem; cursor: pointer; text-decoration: none;
  transition: background-color .15s ease, transform .15s ease;
}
.knop:hover { background: var(--bos-donker); color: #fff; }
.knop:active { transform: translateY(1px); }
.knop--zacht { background: var(--bos-licht); color: var(--bos-donker); }
.knop--zacht:hover { background: #CFE1D3; color: var(--bos-diep); }

/* ---------- Kopbalk ---------- */
.kopbalk {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246, 241, 232, .93);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--lijn-zacht);
}
.kopbalk-binnen {
  max-width: var(--breed); margin: 0 auto; padding: .65rem var(--rand);
  display: flex; align-items: center; gap: 1.1rem; min-height: 70px;
}
.merk {
  display: flex; align-items: center; gap: .62rem; flex: none;
  font-weight: 760; font-size: 1.22rem; letter-spacing: -0.025em;
  color: var(--inkt); text-decoration: none;
}
.merk:hover { color: var(--inkt); }
.merk .logo { width: 38px; height: 38px; display: block; }
.kruimel {
  margin: 0; font-size: 1rem; color: var(--inkt-2); font-weight: 560;
  display: flex; align-items: center; gap: .55rem; min-width: 0;
}
.kruimel::before { content: ""; width: 1px; height: 24px; background: var(--lijn); margin-right: .45rem; }
.kruimel a { color: var(--inkt-2); text-decoration: none; }
.kruimel a:hover { color: var(--inkt); text-decoration: underline; }
.kopbalk-rechts { margin-left: auto; display: flex; align-items: center; gap: .8rem; }

.niveaus { display: flex; align-items: center; gap: .65rem; }
.niveaus-label {
  font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--inkt-3);
}
.niveaus-knoppen {
  display: flex; gap: 3px; padding: 4px;
  background: var(--papier-2); border: 1px solid var(--lijn-zacht); border-radius: 999px;
}
.niveau-knop {
  padding: .5rem 1rem; border-radius: 999px; line-height: 1.2; white-space: nowrap;
  font-size: .95rem; font-weight: 620; color: var(--inkt-2); text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.niveau-knop:hover { background: var(--kaart); color: var(--inkt); }
.niveau-knop.is-actief { background: var(--bos); color: #fff; box-shadow: 0 1px 3px rgba(22, 50, 42, .25); }
.niveau-kort { display: none; }

.weergave { position: relative; }
.weergave-knop {
  width: 46px; height: 46px; border-radius: 13px; cursor: pointer;
  border: 1px solid var(--lijn); background: var(--kaart); color: var(--inkt);
  display: grid; place-items: center;
}
.weergave-knop:hover, .weergave-knop[aria-expanded="true"] { border-color: var(--bos); color: var(--bos); }
.weergave-knop .i { width: 26px; height: 26px; }
.weergave-paneel {
  position: absolute; right: 0; top: calc(100% + 10px); width: 310px; z-index: 50;
  background: var(--kaart); border: 1px solid var(--lijn); border-radius: var(--r-m);
  box-shadow: var(--schaduw-2); padding: 1.1rem 1.2rem 1.15rem;
}
.weergave-titel { font-weight: 720; margin: 0 0 .7rem; font-size: 1.05rem; }
.weergave-paneel fieldset { border: 0; padding: 0; margin: 0 0 .95rem; min-width: 0; }
.weergave-paneel legend { font-size: .92rem; font-weight: 640; margin-bottom: .45rem; padding: 0; }
.keuze { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--papier-2); padding: 4px; border-radius: 12px; }
.keuze button {
  font: inherit; font-size: .98rem; font-weight: 620; border: 0; background: transparent;
  padding: .55rem .5rem; border-radius: 9px; cursor: pointer; color: var(--inkt-2);
}
.keuze button:hover { color: var(--inkt); }
.keuze button[aria-pressed="true"] { background: var(--kaart); color: var(--inkt); box-shadow: var(--schaduw-1); }
.keuze .toon-leesletter { font-family: "Atkinson Hyperlegible Next", sans-serif; }
.weergave-uitleg { font-size: .86rem; color: var(--inkt-3); margin: 0; line-height: 1.5; }

/* ---------- Startpagina ---------- */
.held {
  max-width: var(--breed); margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) var(--rand) clamp(2rem, 4vw, 3.5rem);
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.held h1 { font-size: clamp(2.7rem, 1.7rem + 3.2vw, 4.4rem); line-height: 1.03; letter-spacing: -0.04em; margin-bottom: .4em; }
.held-intro { font-size: 1.3rem; line-height: 1.55; color: var(--inkt-2); max-width: 33rem; }
.held-foto { margin: 0; position: relative; }
.held-foto::before {
  content: ""; position: absolute; inset: auto -18px -18px 18px; height: 70%;
  background: var(--bos-licht); border-radius: 32px; z-index: -1;
}
.held-foto img {
  display: block; width: 100%; height: auto; aspect-ratio: 5 / 6; object-fit: cover;
  max-height: max(420px, calc(100vh - 170px));
  border-radius: 28px; box-shadow: var(--schaduw-2); background: var(--papier-2);
}
.held-foto figcaption {
  position: absolute; right: 14px; bottom: 14px; margin: 0;
  background: rgba(22, 50, 42, .72); color: #fff; border-radius: 999px; padding: .25rem .7rem;
}
.held-foto figcaption .credit, .held-foto figcaption a { color: #fff; }

.zoeken { margin-top: 2.1rem; max-width: 35rem; }
.zoeken label { display: block; font-weight: 680; font-size: 1.08rem; margin-bottom: .6rem; }
.zoeken-rij {
  display: flex; align-items: center; gap: .5rem;
  background: var(--kaart); border: 2px solid var(--lijn); border-radius: 18px;
  padding: 6px 6px 6px 16px; box-shadow: var(--schaduw-1);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.zoeken-rij:focus-within { border-color: var(--bos); box-shadow: 0 0 0 4px rgba(45, 90, 71, .16); }
.zoeken-icoon { display: grid; color: var(--inkt-3); }
.zoeken input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 1.2rem; color: var(--inkt); padding: .72rem .2rem;
}
.zoeken input::placeholder { color: #7D8982; }
.zoeken input::-webkit-search-cancel-button { cursor: pointer; }
.zoekresultaat { margin-top: 1rem; }
.zoekresultaat:empty { display: none; }
.melding {
  background: var(--kaart); border: 1px solid var(--lijn); border-left-width: 5px;
  border-radius: var(--r-m); padding: 1rem 1.2rem; box-shadow: var(--schaduw-1); font-size: 1.05rem;
}
.melding p { margin: 0 0 .5rem; }
.melding p:last-child { margin-bottom: 0; }
.melding--wel { border-left-color: var(--bos); }
.melding--niet { border-left-color: var(--roest); }
.melding-titel { font-weight: 700; }
.melding .knop { margin-top: .3rem; font-size: 1rem; padding: .65rem 1rem; }
.verder-lezen { margin: 1.2rem 0 0; font-size: 1.02rem; }
.verder-lezen a { font-weight: 650; }

.blok-stappen, .blok-dieren { max-width: var(--breed); margin: 0 auto; padding: 2rem var(--rand); }
.blok-stappen h2, .blok-dieren h2 { margin-top: 0; }
.blok-kop p { color: var(--inkt-2); margin: 0; }
.stappen { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.stappen li {
  display: flex; gap: 1rem; padding: 1.5rem 1.6rem;
  background: var(--kaart); border: 1px solid var(--lijn-zacht); border-radius: var(--r-l);
}
.stap-nr {
  flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 760; font-size: 1.12rem;
  background: var(--bos-licht); color: var(--bos-donker);
}
.stappen h3 { margin: .25rem 0 .3rem; font-size: 1.18rem; }
.stappen p { margin: 0; color: var(--inkt-2); font-size: 1.02rem; line-height: 1.55; }

.dierkaarten { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 600px), 1fr)); gap: 1.5rem; margin-top: 1.4rem; }
.dierkaart {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); overflow: hidden;
  background: var(--kaart); border: 1px solid var(--lijn-zacht); border-radius: var(--r-l); box-shadow: var(--schaduw-1);
}
.dierkaart-foto { display: block; }
.dierkaart-foto img { display: block; width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.dierkaart-tekst { padding: 1.5rem 1.7rem 1.7rem; }
.dierkaart h3 { margin: 0; font-size: 1.65rem; }
.dierkaart h3 a { color: var(--inkt); text-decoration: none; }
.dierkaart h3 a:hover { text-decoration: underline; }
.dierkaart p { color: var(--inkt-2); font-size: 1.02rem; line-height: 1.55; }
.wetenschappelijk { color: var(--inkt-3); margin: .15rem 0 .8rem; font-size: 1rem; }
.dierkaart-kies { font-weight: 660; color: var(--inkt) !important; margin: .6rem 0 .5rem; }
.dierkaart-knoppen { display: flex; flex-wrap: wrap; gap: .5rem; }
.dierkaart-knoppen .knop { font-size: 1rem; padding: .7rem 1.05rem; }
.dierkaart-knoppen .knop.is-laatst { box-shadow: inset 0 0 0 2px var(--bos); }

/* ---------- Dierpagina ---------- */
.dierheld { max-width: var(--breed); margin: 1.4rem auto 0; padding: 0 var(--rand); }
.dierheld-beeld { position: relative; border-radius: 28px; overflow: hidden; background: var(--papier-2); }
.dierheld-beeld img { display: block; width: 100%; height: clamp(250px, 38vh, 430px); object-fit: cover; }
.dierheld-beeld::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 25, 20, 0) 45%, rgba(10, 25, 20, .62) 100%);
}
.dierheld-tekst { position: absolute; left: clamp(1.4rem, 4vw, 2.8rem); bottom: clamp(1.2rem, 3vw, 2.2rem); z-index: 1; color: #fff; }
.dierheld-tekst .bovenkop { color: #F7D9C5; }
.dierheld-tekst h1 { color: #fff; font-size: clamp(2.8rem, 2rem + 3vw, 4.6rem); margin: 0 0 .15em; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.dierheld-tekst .wetenschappelijk { color: #EEF3EF; margin: 0; font-size: 1.1rem; }
.dierheld-credit { margin: .55rem 0 0; text-align: right; }
.niveaukeuze { max-width: 1020px; margin: 0 auto; padding: 1.2rem var(--rand) 3rem; text-align: center; }
.niveaukeuze h2 { margin: .4rem 0 .4rem; font-size: 2rem; }
.niveaukeuze > p { color: var(--inkt-2); max-width: 40rem; margin: 0 auto; }
.niveaukaarten { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.8rem; text-align: left; }
.niveaukaart {
  position: relative; display: flex; flex-direction: column; gap: .35rem;
  padding: 1.7rem 4.6rem 1.7rem 1.7rem; color: var(--inkt); text-decoration: none;
  background: var(--kaart); border: 2px solid var(--lijn-zacht); border-radius: var(--r-l); box-shadow: var(--schaduw-1);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.niveaukaart:hover { border-color: var(--bos); color: var(--inkt); transform: translateY(-2px); box-shadow: var(--schaduw-2); }
.niveaukaart.is-laatst { border-color: var(--bamboe); }
.niveaukaart-label { font-size: 1.5rem; font-weight: 740; letter-spacing: -0.02em; line-height: 1.2; }
.niveaukaart-leeftijd { color: var(--roest); font-weight: 660; font-size: 1rem; }
.niveaukaart-uitleg { color: var(--inkt-2); font-size: 1.02rem; line-height: 1.5; }
.niveaukaart-pijl {
  position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%);
  width: 2.8rem; height: 2.8rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--bos-licht); color: var(--bos-donker);
}

/* ---------- Overzicht van de hoofdstukken ---------- */
.overzicht { max-width: var(--breed); margin: 0 auto; padding: 2.4rem var(--rand) 3.5rem; }
.overzicht-kop { max-width: 50rem; }
.overzicht-kop h1 { margin-bottom: .4em; }
.overzicht-intro { font-size: 1.2rem; line-height: 1.6; color: var(--inkt-2); max-width: 44rem; }
.zoektips { background: var(--zand); border-radius: var(--r-l); padding: 1.3rem 1.6rem 1rem; margin-top: 1.4rem; }
.zoektips h2 { display: flex; align-items: center; gap: .55rem; margin: 0 0 .7rem; font-size: 1.2rem; color: var(--roest-donker); }
.zoektips ol { margin: 0; padding-left: 1.3rem; columns: 2 320px; column-gap: 3rem; }
.zoektips li { font-size: 1rem; line-height: 1.5; margin-bottom: .55rem; color: var(--inkt); break-inside: avoid; }
.zoektips li::marker { font-weight: 700; color: var(--roest-donker); }
.overzicht-sub { margin: 2.2rem 0 1rem; font-size: 1.4rem; }
.hoofdstukkaarten {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem;
}
.hoofdstukkaart {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: var(--kaart); border: 1px solid var(--lijn-zacht); border-radius: var(--r-m);
  color: var(--inkt); text-decoration: none; box-shadow: var(--schaduw-1);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.hoofdstukkaart:hover { color: var(--inkt); transform: translateY(-3px); box-shadow: var(--schaduw-2); border-color: var(--lijn); }
.hoofdstukkaart-foto { display: block; background: var(--papier-2); }
.hoofdstukkaart-foto img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hoofdstukkaart-tekst { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem 1.25rem; }
.hoofdstukkaart-nr { font-size: .78rem; font-weight: 720; letter-spacing: .075em; text-transform: uppercase; color: var(--roest); }
.hoofdstukkaart-titel { font-size: 1.16rem; font-weight: 710; line-height: 1.25; letter-spacing: -0.012em; }
.hoofdstukkaart-over { font-size: .94rem; line-height: 1.45; color: var(--inkt-2); }

/* ---------- Hoofdstuk ---------- */
.leeslaag {
  max-width: var(--breed); margin: 0 auto; padding: 2.2rem var(--rand) 3rem;
  display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 3.6rem;
}
.hoofdstuknav { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 116px); overflow: auto; padding-bottom: 1rem; }
.hoofdstuknav-knop { display: none; }
.hoofdstuknav-titel { font-size: .8rem; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; margin: .2rem 0 .7rem .7rem; }
.hoofdstuknav-titel a { color: var(--inkt-3); text-decoration: none; }
.hoofdstuknav-titel a:hover { color: var(--inkt); }
.hoofdstuknav ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.hoofdstuknav li a {
  display: flex; gap: .7rem; align-items: flex-start; padding: .58rem .75rem; border-radius: 12px;
  color: var(--inkt-2); text-decoration: none; font-size: .98rem; line-height: 1.35; font-weight: 540;
}
.hoofdstuknav li a:hover { background: var(--papier-2); color: var(--inkt); }
.hoofdstuknav li a[aria-current="page"] { background: var(--kaart); color: var(--inkt); font-weight: 660; box-shadow: var(--schaduw-1); }
.nav-nr {
  flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; margin-top: -.08rem;
  display: grid; place-items: center; font-size: .82rem; font-weight: 720;
  background: var(--papier-2); color: var(--inkt-2);
}
.hoofdstuknav li a[aria-current="page"] .nav-nr { background: var(--bos); color: #fff; }

.hoofdstuk { min-width: 0; max-width: 840px; }
.hoofdstuk-kop h1 { font-size: clamp(2.2rem, 1.5rem + 2.2vw, 3.3rem); margin-bottom: .3em; }
.hoofdstuk-over { font-size: 1.16rem; line-height: 1.55; color: var(--inkt-2); max-width: 42rem; margin: 0; }
.kopfoto { margin: 1.8rem 0 2.3rem; }
.kopfoto img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--r-l); background: var(--papier-2); }
figcaption { font-size: .92rem; line-height: 1.5; color: var(--inkt-2); margin-top: .65rem; }
.credit { color: var(--inkt-3); font-size: .8rem; }
.credit a { color: inherit; text-decoration-thickness: 1px; }

.tekst > p, .tekst > ul, .tekst > ol, .tekst > h2, .tekst > h3, .tekst > aside, .tekst > section { max-width: var(--tekstbreedte); }
.tekst > h2:first-child { margin-top: .4em; }
.tekst ul { padding-left: 1.35rem; margin: 0 0 1.1em; }
.tekst li { margin-bottom: .4em; }
.tekst li::marker { color: var(--mos); }
.foto { margin: 2.2rem 0; }
.foto img { display: block; width: 100%; height: auto; border-radius: var(--r-m); background: var(--papier-2); }
.foto--staand { float: right; width: min(300px, 42%); margin: .4rem 0 1.2rem 1.8rem; }
.foto--staand img { aspect-ratio: auto; }
.tekst > h2 { clear: both; }
.fotoduo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin: 2.2rem 0; }
.fotoduo .foto { margin: 0; }
.fotoduo img { height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

.weetje {
  position: relative; margin: 2.2rem 0; padding: 1.2rem 1.45rem .35rem;
  background: var(--zand); border-radius: var(--r-m);
}
.weetje-label {
  display: flex; align-items: center; gap: .45rem; margin: 0 0 .45rem;
  font-size: .82rem; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; color: var(--roest-donker);
}
.weetje p { font-size: 1.06rem; line-height: 1.62; }
.kader {
  margin: 2.2rem 0; padding: 1.25rem 1.45rem .35rem;
  background: var(--bos-mist); border: 1px solid #D3E1D6; border-radius: var(--r-m);
}
.kader-titel { display: flex; align-items: center; gap: .5rem; font-weight: 720; color: var(--bos-donker); margin: 0 0 .5rem; }

button.woord {
  font: inherit; color: inherit; background: none; border: 0; padding: 0 .04em; margin: 0;
  cursor: pointer; border-radius: 4px;
  text-decoration: underline dotted var(--mos); text-decoration-thickness: 2px; text-underline-offset: .24em;
}
button.woord:hover, button.woord[aria-expanded="true"] { background: var(--bos-licht); text-decoration-color: var(--bos); }
.woordkaart {
  position: absolute; z-index: 60; width: min(23rem, calc(100vw - 2rem));
  background: var(--kaart); border: 1px solid var(--lijn); border-radius: var(--r-m);
  box-shadow: var(--schaduw-2); padding: 1rem 1.15rem 1.1rem; font-size: 1.02rem; line-height: 1.55;
}
.woordkaart-term { font-weight: 740; font-size: 1.08rem; margin: 0 2.2rem .3rem 0; }
.woordkaart p { margin: 0; }
.woordkaart-sluit {
  position: absolute; top: .45rem; right: .45rem; width: 36px; height: 36px; border-radius: 10px;
  border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--inkt-2);
}
.woordkaart-sluit:hover { background: var(--papier-2); color: var(--inkt); }

.kaart, .schema {
  margin: 2.3rem 0; padding: 1.3rem 1.3rem 1.1rem;
  background: var(--kaart); border: 1px solid var(--lijn-zacht); border-radius: var(--r-l);
}
.kaart-titel, .schema-titel { font-weight: 720; font-size: 1.1rem; margin: 0 0 .9rem; }
.kaart-beeld svg { display: block; width: 100%; height: auto; border-radius: var(--r-s); }
.legenda { list-style: none; padding: 0; margin: .9rem 0 .5rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .98rem; color: var(--inkt); }
.legenda li { display: flex; align-items: center; gap: .55rem; }
.sleutel { flex: none; display: inline-block; width: 24px; height: 16px; border-radius: 4px; }
.sleutel--wild { background: #D05050; box-shadow: inset 0 0 0 1.5px #8E2F2A; }
.sleutel--land { background: #E9E2D2; box-shadow: inset 0 0 0 1.5px #A79D88; }
.sleutel--grens { height: 0; border-top: 3px solid #66671D; border-radius: 0; }
.sleutel--berg { background: #fff; width: 16px; height: 16px; clip-path: polygon(50% 8%, 96% 92%, 4% 92%); background: #6C5A43; }
.sleutel--belgie { width: 14px; height: 14px; border-radius: 50%; background: #2D5A47; box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px #2D5A47; margin: 0 5px; }
.sleutel--azie { background: #C9DBBE; box-shadow: inset 0 0 0 1.5px #8EAA80; }

.soorten { list-style: none; padding: 0; margin: 2.2rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 1rem; }
.soort figure { margin: 0; height: 100%; overflow: hidden; background: var(--kaart); border: 1px solid var(--lijn-zacht); border-radius: var(--r-m); }
.soort img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--papier-2); }
.soort figcaption { margin: 0; padding: .65rem .8rem .8rem; display: flex; flex-direction: column; gap: .15rem; }
.soort-naam { font-weight: 710; font-size: 1.02rem; color: var(--inkt); line-height: 1.3; }
.soort-extra { font-size: .88rem; color: var(--inkt-2); line-height: 1.35; }

.tijdlijn, .stroom { list-style: none; margin: 0; padding: 0; }
.tijdlijn { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1rem; }
.tijdlijn::before {
  content: ""; position: absolute; left: .5rem; right: .5rem; top: .95rem; height: 4px;
  background: linear-gradient(90deg, var(--bamboe), var(--mos)); border-radius: 4px;
}
.tijdlijn .stap { position: relative; padding-top: 2.4rem; }
.tijdlijn .stap::before {
  content: ""; position: absolute; top: .38rem; left: 0; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--kaart); border: 4px solid var(--bos);
}
.stap-wanneer { display: block; font-size: .78rem; font-weight: 740; letter-spacing: .06em; text-transform: uppercase; color: var(--roest); line-height: 1.35; }
.stap-wat { display: block; font-weight: 710; line-height: 1.3; margin: .2rem 0 .3rem; font-size: 1.02rem; }
.stap-uitleg { display: block; font-size: .93rem; line-height: 1.45; color: var(--inkt-2); }
.stroom { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2rem; }
.stroom .stap { position: relative; padding: .9rem 1rem 1rem; background: var(--bos-mist); border: 1px solid #D3E1D6; border-radius: var(--r-m); }
.stroom .stap:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -1.45rem; width: .9rem; height: .9rem;
  border-top: 3px solid var(--bos); border-right: 3px solid var(--bos); transform: translateY(-50%) rotate(45deg);
}
.stroom .stap-wanneer { color: var(--bos-donker); }

.hoofdstukbronnen {
  max-width: var(--tekstbreedte); margin: 2.6rem 0 0; padding-top: 1.2rem;
  border-top: 1px solid var(--lijn); font-size: .95rem; color: var(--inkt-2); line-height: 1.6;
}
.hoofdstukbronnen span { font-weight: 640; color: var(--inkt); }
.bladeren { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.2rem; }
.blader {
  display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 1.3rem;
  background: var(--kaart); border: 1px solid var(--lijn-zacht); border-radius: var(--r-m);
  color: var(--inkt); text-decoration: none; box-shadow: var(--schaduw-1);
  transition: border-color .15s ease, transform .15s ease;
}
.blader:hover { border-color: var(--bos); color: var(--inkt); transform: translateY(-2px); }
.blader--volgend { align-items: flex-end; text-align: right; }
.blader-richting { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 660; color: var(--bos); }
.blader-richting .i { width: 18px; height: 18px; }
.blader-titel { font-weight: 710; font-size: 1.06rem; line-height: 1.3; }

/* ---------- Bronnen, leerkracht, fout ---------- */
.bronnenpagina, .leerkracht { max-width: 1000px; margin: 0 auto; padding: 2.4rem var(--rand) 3rem; }
.smalle-kop { max-width: 46rem; }
.smalle-kop > p:not(.bovenkop) { font-size: 1.12rem; color: var(--inkt-2); }
.bronnenpagina h2 { font-size: 1.35rem; margin: 2.2em 0 .8em; }
.bronnenlijst, .beeldenlijst { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .75rem; }
.bronnenlijst li {
  display: flex; flex-direction: column; gap: .15rem; padding: 1rem 1.2rem;
  background: var(--kaart); border: 1px solid var(--lijn-zacht); border-radius: var(--r-m);
}
.bronnenlijst a { font-weight: 660; line-height: 1.4; }
.bron-wie { font-size: .95rem; color: var(--inkt-2); }
.bron-waarvoor { font-size: .92rem; color: var(--inkt-3); line-height: 1.5; }
.bron-paginas { list-style: none; margin: .45rem 0 0; padding: .45rem 0 0 .9rem; border-left: 2px solid var(--lijn-zacht); display: flex; flex-direction: column; gap: .2rem; }
.bron-paginas a { font-weight: 560; font-size: .93rem; }
.beeldenlijst li {
  display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 1.1rem; align-items: start; padding: .9rem;
  background: var(--kaart); border: 1px solid var(--lijn-zacht); border-radius: var(--r-m);
}
.beeld-mini img { display: block; width: 132px; height: 99px; object-fit: cover; border-radius: 10px; background: var(--papier-2); }
.beeld-info { display: flex; flex-direction: column; gap: .1rem; font-size: .93rem; line-height: 1.5; color: var(--inkt-2); min-width: 0; overflow-wrap: anywhere; }
.beeld-titel { font-weight: 700; font-size: 1rem; color: var(--inkt); }
li:target { outline: 3px solid var(--bamboe); outline-offset: 2px; }
section:target > h2 { color: var(--roest-donker); }

.leerkracht-kop {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 2rem; align-items: start;
  background: var(--roest-licht); border-radius: var(--r-l); padding: 2rem 2.2rem 1.6rem; margin-bottom: 2rem;
}
.leerkracht-kop > * { grid-column: 1; }
.leerkracht-kop .bovenkop { color: var(--roest-donker); }
.leerkracht-kop > p:not(.bovenkop) { color: var(--inkt); max-width: 44rem; }
.qr { grid-column: 2; grid-row: 1 / span 4; margin: 0; width: 190px; padding: .9rem; background: #fff; border-radius: var(--r-m); text-align: center; }
.qr svg { display: block; width: 100%; height: auto; }
.qr figcaption { font-size: .78rem; line-height: 1.4; overflow-wrap: anywhere; color: var(--inkt); }
.tekst--breed { max-width: none; }
.tekst--breed > p, .tekst--breed > ul, .tekst--breed > h2, .tekst--breed > h3 { max-width: 48rem; }
.tekst--breed h2 { font-size: 1.45rem; padding-top: 1.4rem; border-top: 1px solid var(--lijn); margin-top: 2.2rem; }
.tabel-kader { overflow-x: auto; margin: 1.1rem 0 1.8rem; background: var(--kaart); border: 1px solid var(--lijn); border-radius: var(--r-m); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: .7rem .9rem; border-bottom: 1px solid var(--lijn-zacht); }
thead th { background: var(--papier-2); font-size: .88rem; font-weight: 720; }
tbody th { font-weight: 640; }
tbody tr:last-child > * { border-bottom: 0; }
tr.totaal > * { font-weight: 700; background: var(--bos-mist); }
.gewone-lijst { padding-left: 1.3rem; }
.foutmelding { max-width: 44rem; margin: 0 auto; padding: 4rem var(--rand); }

/* ---------- Voet ---------- */
.voet { position: relative; background: var(--bos-diep); color: #DCE7DF; margin-top: 150px; }
.voet::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 130px; pointer-events: none;
  background: url("../beelden/bergen.svg") bottom center / 100% 100% no-repeat;
}
.voet-binnen {
  max-width: var(--breed); margin: 0 auto; padding: 2.6rem var(--rand) 2.8rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: flex-start;
}
.voet-merk { display: flex; gap: .95rem; max-width: 36rem; }
.voet-merk .logo { width: 42px; height: 42px; flex: none; border-radius: 11px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }
.voet-naam { font-weight: 760; font-size: 1.15rem; color: #fff; margin: 0 0 .2rem !important; }
.voet p { margin: 0; font-size: .96rem; line-height: 1.55; color: #C5D5CA; }
.voet ul { list-style: none; margin: .3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.voet a { color: #fff; font-weight: 600; font-size: 1rem; }
.voet a:hover { color: #E8F1EA; }

/* ---------- Kleinere schermen (tablet staand, gsm) ---------- */
@media (max-width: 1180px) {
  .leeslaag { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; padding-top: 1.4rem; }
  .hoofdstuk { max-width: 860px; margin: 0 auto; width: 100%; }
  .hoofdstuknav { position: relative; top: 0; max-height: none; overflow: visible; padding: 0; max-width: 860px; margin: 0 auto; width: 100%; }
  .hoofdstuknav-titel { display: none; }
  .js .hoofdstuknav-knop {
    display: flex; align-items: center; gap: .65rem; width: 100%;
    font: inherit; font-size: 1rem; font-weight: 650; color: var(--inkt); cursor: pointer;
    background: var(--kaart); border: 1px solid var(--lijn); border-radius: var(--r-m); padding: .8rem 1rem;
  }
  .hoofdstuknav-nu { margin-left: auto; color: var(--inkt-3); font-weight: 560; font-size: .92rem; }
  .js .hoofdstuknav ol { display: none; }
  .js .hoofdstuknav.is-open ol {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: .5rem; padding: .5rem;
    background: var(--kaart); border: 1px solid var(--lijn); border-radius: var(--r-m); box-shadow: var(--schaduw-2);
  }
  .hoofdstukkaarten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .held { grid-template-columns: minmax(0, 1fr); }
  .held-foto { max-width: 640px; }
  .held-foto img { aspect-ratio: 16 / 11; height: auto; }
  .stappen { grid-template-columns: minmax(0, 1fr); }
  .niveaukaarten { grid-template-columns: minmax(0, 1fr); }
  .niveau-lang { display: none; }
  .niveau-kort { display: inline; }
  .niveaus-label { display: none; }
  .tijdlijn { grid-auto-flow: row; gap: 1.1rem; padding-left: 2.2rem; }
  .tijdlijn::before { left: .55rem; right: auto; top: .3rem; bottom: .3rem; width: 4px; height: auto; background: linear-gradient(180deg, var(--bamboe), var(--mos)); }
  .tijdlijn .stap { padding-top: 0; }
  .tijdlijn .stap::before { left: -2.2rem; top: .1rem; }
  .stroom { grid-auto-flow: row; gap: 1.6rem; }
  .stroom .stap:not(:last-child)::after { top: auto; bottom: -1.3rem; right: auto; left: 50%; transform: translateX(-50%) rotate(135deg); }
}
@media (max-width: 680px) {
  body { --tekstmaat: 1.0625rem; }
  .kruimel { display: none; }
  .dierkaart { grid-template-columns: minmax(0, 1fr); }
  .dierkaart-foto img { min-height: 0; height: auto; aspect-ratio: 16 / 10; }
  .fotoduo { grid-template-columns: minmax(0, 1fr); }
  .foto--staand { float: none; width: auto; max-width: 340px; margin: 2rem auto; }
  .hoofdstukkaarten { grid-template-columns: minmax(0, 1fr); }
  .js .hoofdstuknav.is-open ol { grid-template-columns: minmax(0, 1fr); }
  .bladeren { grid-template-columns: minmax(0, 1fr); }
  .leerkracht-kop { grid-template-columns: minmax(0, 1fr); padding: 1.5rem; }
  .qr { grid-column: 1; grid-row: auto; margin-top: 1rem; }
  .beeldenlijst li { grid-template-columns: minmax(0, 1fr); }
  .weergave-paneel { position: fixed; left: 1rem; right: 1rem; top: 76px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .kopbalk, .hoofdstuknav, .bladeren, .voet, .sla-over, .weergave, .zoeken, .dierkaart-knoppen { display: none !important; }
  body { background: #fff; font-size: 11.5pt; display: block; }
  .leeslaag { display: block; padding: 0; }
  .kopfoto img { max-height: 8cm; }
  figure, .weetje, .kader, .schema, .kaart { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
  button.woord { text-decoration: none; }
}
