/* hft-kaak 1.1.0 (v2): alleen geladen op page 76 met marker. Wit, bosgroen donker, terracotta als signaal.
   Kleuren staan expliciet, dus licht en donker (prefers-color-scheme) tonen dezelfde pagina.
   v2: visuele handleiding. Beeld eerst, korte tekst, geen kaarten: haarlijnen en witruimte. */
html:has(body.hft-kaak) { overflow-x: clip; }
body.hft-kaak {
  --kw-wit: #ffffff; --kw-inkt: #1f2a24; --kw-zacht: #4f5d56; --kw-lijn: #e2e7e3; --kw-vlak: #f1f5f1;
  --kw-groen: #243329; --kw-akkoord: #b4552d; --kw-akkoord-vlak: #faeee7; --kw-groen-vlak: #eaf1ec;
  --kw-waarschuw: #9d3b22; --kw-waarschuw-vlak: #fbeae4;
  --kw-kopfont: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--kw-wit) !important; color: var(--kw-inkt);
}
body.hft-kaak main, body.hft-kaak #content, body.hft-kaak .article-shell, body.hft-kaak .hft-content-flow {
  background: var(--kw-wit) !important;
}
body.hft-kaak .article-shell { max-width: none; padding: 0; }
body.hft-kaak main { padding: 0 !important; }
body.hft-kaak main > * { max-width: none; }

.kw-band { position: relative; width: auto; max-width: none; margin-left: 0; margin-right: 0; padding: clamp(40px, 7vw, 76px) max(24px, calc(50vw - 560px)); box-sizing: border-box; }
body.hft-kaak main .kw-band { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; padding-left: max(24px, calc(50vw - 560px)) !important; padding-right: max(24px, calc(50vw - 560px)) !important; }
.kw-band--vlak { background: var(--kw-vlak); }
.kw-band--donker { background: var(--kw-groen); color: #f2f6f3; }
.kw-band p { max-width: 64ch; }
.kw-binnen-sm { max-width: 780px; }
.kw-band h1, .kw-band h2, .kw-band h3, .kw-faq summary { font-family: var(--kw-kopfont); }
.kw-band h2 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); line-height: 1.16; color: inherit; margin: 0 0 14px; max-width: 30ch; }
.kw-band h3 { font-size: 1.06rem; margin: 0 0 8px; }
.kw-band a { color: #9c4823; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.kw-band--donker a { color: #f7c9ae; }
.kw-eyebrow { font-size: 0.86rem; font-weight: 700; letter-spacing: 0.01em; color: #e0a683; margin: 0 0 12px; }
.kw-band figure { margin: 0; }
.kw-band figure img, .kw-band img { width: 100%; height: auto; display: block; border-radius: 14px; }
.kw-band figure figcaption { margin-top: 10px; font-size: 0.85rem; line-height: 1.5; color: var(--kw-zacht); }
.kw-band details { margin: 10px 0 0; }
.kw-band details summary { cursor: pointer; font-weight: 700; font-size: 0.92rem; color: #9c4823; }
.kw-band details > p { margin: 8px 0 0; font-size: 0.9rem; line-height: 1.55; color: var(--kw-zacht); }

/* Hero */
.kw-hero { background: var(--kw-groen); color: #f2f6f3; padding-top: clamp(28px, 4vw, 48px); }
.kw-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.kw-hero__grid > * { min-width: 0; }
.kw-hero__kruimel { font-size: 0.85rem; color: #c4d2c8; margin: 0 0 18px; }
.kw-hero__kruimel a { color: #c4d2c8; }
.kw-hero h1 { font-size: clamp(2.05rem, 4.4vw, 3.2rem); line-height: 1.1; font-weight: 800; margin: 0 0 18px; letter-spacing: -0.01em; color: #fff; }
.kw-hero__lead { font-size: 1.13rem; line-height: 1.62; color: #dde7e0; max-width: 56ch; }
.kw-hero__knoppen { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.kw-hero__knop { display: inline-block; font-weight: 700; padding: 13px 22px; border-radius: 9px; background: #fff; color: var(--kw-groen); text-decoration: none; }
.kw-hero__knop--lijn { background: transparent; border: 1px solid rgba(255, 255, 255, 0.5); color: #fff; }
.kw-hero__bron { margin-top: 14px; font-size: 0.9rem; color: #c4d2c8; }
.kw-hero__bron a { color: #e0a683; }
.kw-hero__beeld figcaption { color: #c4d2c8; }

/* Kerncijferstrook */
.kw-getallen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); }
.kw-getallen > * { min-width: 0; }
.kw-getal strong { display: block; font-size: clamp(2.2rem, 4.5vw, 3.2rem); line-height: 1.05; color: var(--kw-akkoord); font-variant-numeric: tabular-nums; font-family: var(--kw-kopfont); }
.kw-getal span { display: block; margin-top: 8px; font-size: 0.95rem; line-height: 1.5; color: var(--kw-zacht); }

/* Split-secties */
.kw-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.kw-split > * { min-width: 0; }
.kw-split--om .kw-beeldzijde { order: 2; }
.kw-split p { margin: 0 0 14px; }

/* Mechanisme-tekening: getekend voor een donkere ondergrond */
.kw-mechanisme { background: var(--kw-groen); border-radius: 16px; padding: clamp(16px, 2vw, 28px); }
.kw-mechanisme svg { width: 100%; height: auto; display: block; }
.kw-mechanisme figcaption { margin-top: 12px; font-size: 0.88rem; line-height: 1.5; color: #c4d2c8; }

/* Twee kolommen zonder kader, hooguit een haarlijn ertussen */
.kw-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(24px, 4vw, 56px); margin-top: clamp(22px, 3vw, 36px); }
.kw-duo > div { min-width: 0; }
.kw-duo > div + div { border-left: 1px solid var(--kw-lijn); padding-left: clamp(24px, 4vw, 56px); }
.kw-punten { list-style: none; margin: 0; padding: 0; }
.kw-punten li { position: relative; padding: 0 0 12px 20px; margin: 0; font-size: 0.96rem; line-height: 1.55; }
.kw-punten li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--kw-akkoord); }
.kw-punten li:last-child { padding-bottom: 0; }
.kw-duo p { font-size: 0.96rem; line-height: 1.55; }

/* Stappen: beeld, groot nummer, titel, korte tekst. Geen kaarten. */
.kw-stappen { list-style: none; counter-reset: st; margin: clamp(26px, 3vw, 40px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(30px, 4vw, 52px); }
.kw-stappen li { min-width: 0; }
.kw-stap__beeld { position: relative; }
.kw-stap__beeld img { box-shadow: 0 2px 4px rgba(20, 30, 25, 0.06), 0 18px 40px rgba(20, 30, 25, 0.12); }
.kw-stap__nr { display: block; margin-top: 16px; font-size: clamp(2.4rem, 4vw, 3rem); line-height: 1; font-weight: 800; color: var(--kw-akkoord); font-variant-numeric: tabular-nums; font-family: var(--kw-kopfont); }
.kw-stappen strong { display: block; margin-top: 6px; font-size: 1.12rem; font-family: var(--kw-kopfont); }
.kw-stappen li > p { margin: 6px 0 0; font-size: 0.96rem; line-height: 1.55; color: var(--kw-zacht); max-width: 46ch; }
.kw-stappen details summary { color: #9c4823; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .kw-stap__beeld { transition: transform 0.35s ease; transform: perspective(700px) rotateX(0deg) rotateY(0deg); }
  .kw-stap__beeld img { transition: box-shadow 0.35s ease; }
  .kw-stappen li:nth-child(odd):hover .kw-stap__beeld { transform: perspective(700px) rotateX(3deg) rotateY(5deg) translateY(-2px); }
  .kw-stappen li:nth-child(even):hover .kw-stap__beeld { transform: perspective(700px) rotateX(3deg) rotateY(-5deg) translateY(-2px); }
  .kw-stappen li:hover .kw-stap__beeld img { box-shadow: 0 4px 8px rgba(20, 30, 25, 0.08), 0 26px 56px rgba(20, 30, 25, 0.18); }
}

/* Herstel: horizontale tijdlijn met drie markeringen */
.kw-traject { position: relative; margin: 4px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.kw-traject::before { content: ""; position: absolute; top: 0; bottom: 0; left: 5px; width: 2px; background: var(--kw-lijn); }
.kw-traject li { position: relative; padding: 0 0 20px 28px; min-width: 0; }
.kw-traject li:last-child { padding-bottom: 0; }
.kw-traject p { max-width: 52ch; }
.kw-traject li::before { content: ""; position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--kw-akkoord); }
.kw-traject strong { display: block; font-family: var(--kw-kopfont); }
.kw-traject p { margin: 3px 0 0; font-size: 0.9rem; line-height: 1.5; color: var(--kw-zacht); }
.kw-herstel-tekst { margin-top: 18px; }

/* App-venster (tool) */
.kw-app { max-width: 620px; margin: 0 auto; background: var(--kw-wit); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 22px 54px rgba(0, 0, 0, 0.3); }
.kw-app__balk { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #eef2ee; }
.kw-app__balk i { width: 10px; height: 10px; border-radius: 50%; background: #c8d1c9; }
.kw-app__balk p { margin: 0 0 0 8px; font-size: 0.85rem; font-weight: 700; color: var(--kw-zacht); }
.kw-app__lijf { padding: 22px; color: var(--kw-inkt); }
.kw-app__label { display: block; font-weight: 700; margin: 0 0 8px; }
.kw-app__veld { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.kw-app input[type="text"] { width: 130px; font: inherit; font-size: 1.1rem; padding: 11px 12px; border: 1px solid #c5cdc6; border-radius: 8px; background: var(--kw-wit); color: var(--kw-inkt); box-sizing: border-box; }
.kw-app input[type="text"]:focus-visible { outline: 3px solid var(--kw-akkoord); outline-offset: 2px; }
.kw-app input[aria-invalid="true"] { border-color: #b3261e; }
.kw-app__hint { font-size: 0.88rem; color: var(--kw-zacht); flex: 1; min-width: 180px; }
.kw-app__chips { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.kw-chip { font: inherit; font-size: 0.95rem; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 1px solid #c5cdc6; background: var(--kw-wit); color: var(--kw-inkt); cursor: pointer; }
.kw-chip[aria-pressed="true"] { background: var(--kw-groen); border-color: var(--kw-groen); color: #fff; }
.kw-chip:focus-visible { outline: 3px solid var(--kw-akkoord); outline-offset: 2px; }
html body.hft-kaak .kw-app__start { font: inherit; font-weight: 700; padding: 12px 22px; border-radius: 8px; border: 0; background: var(--kw-akkoord) !important; color: #fff !important; cursor: pointer; }
.kw-app__start:focus-visible { outline: 3px solid var(--kw-groen); outline-offset: 2px; }
.kw-app__melding { margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--kw-waarschuw-vlak); color: var(--kw-waarschuw); font-size: 0.94rem; line-height: 1.5; }
.kw-uitslag { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--kw-lijn); }
.kw-uitslag__kop { font-weight: 800; font-size: 1.06rem; margin: 0 0 12px; }
.kw-uitslag dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 14px; }
.kw-uitslag dl > div { background: var(--kw-vlak); border-radius: 10px; padding: 12px 14px; }
.kw-uitslag dt { font-size: 0.85rem; color: var(--kw-zacht); margin: 0 0 4px; }
.kw-uitslag dd { margin: 0; font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.kw-uitslag dd small { display: block; font-size: 0.8rem; font-weight: 600; color: var(--kw-zacht); margin-top: 2px; }
.kw-uitslag__zin { margin: 0; font-size: 0.95rem; line-height: 1.55; }
.kw-uitslag__zin + .kw-uitslag__zin { margin-top: 8px; }
.kw-voetnoot { margin: 16px 0 0; font-size: 0.88rem; line-height: 1.55; color: var(--kw-zacht); }

/* Casusreeksen: lijst met haarlijn-scheiding, geen tabel, geen kaarten */
.kw-bronnenlijst { list-style: none; margin: clamp(20px, 3vw, 30px) 0 0; padding: 0; }
.kw-bronnenlijst li { min-width: 0; padding: 18px 0; border-top: 1px solid var(--kw-lijn); }
.kw-bronnenlijst li:last-child { border-bottom: 1px solid var(--kw-lijn); }
.kw-bron__kop { margin: 0; font-weight: 800; font-family: var(--kw-kopfont); }
.kw-bron__meta { margin: 4px 0 8px; font-size: 0.85rem; color: var(--kw-zacht); }
.kw-bronnenlijst li > p:not(.kw-bron__kop):not(.kw-bron__meta) { margin: 0; font-size: 0.95rem; line-height: 1.55; }

/* CTA-band */
.kw-cta .kw-split { align-items: center; }
.kw-cta p { color: #d8e2da; }
.kw-cta .kw-hero__knop { background: #fff; color: var(--kw-groen); }

/* FAQ */
.kw-faq details { border-bottom: 1px solid var(--kw-lijn); padding: 2px 0; margin: 0; }
.kw-faq details:first-of-type { border-top: 1px solid var(--kw-lijn); }
.kw-faq summary { cursor: pointer; font-weight: 700; padding: 15px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.kw-faq summary::-webkit-details-marker { display: none; }
.kw-faq summary::after { content: "+"; font-weight: 700; color: var(--kw-akkoord); }
.kw-faq details[open] summary::after { content: "−"; }
.kw-faq details p { margin: 0 0 16px; max-width: 66ch; }
.kw-faq details summary { color: inherit; }

/* Methodenoot */
.kw-methode details { margin: 0 0 8px; }
.kw-methode details summary { font-size: 1rem; }
.kw-methode details > p { max-width: 70ch; }
.kw-bronnen { margin: 10px 0 0; padding-left: 20px; font-size: 0.86rem; line-height: 1.6; color: var(--kw-zacht); }
.kw-bronnen li { margin-bottom: 8px; }

@media (min-width: 1100px) {
  .kw-stappen { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .kw-band, .kw-hero__knop, .kw-chip, .kw-app, .kw-stap__beeld, .kw-stap__beeld img { transition: none !important; animation: none !important; transform: none !important; }
}

@media (max-width: 860px) {
  .kw-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .kw-split { grid-template-columns: minmax(0, 1fr); }
  .kw-split--om .kw-beeldzijde { order: 0; }
  .kw-getallen { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .kw-uitslag dl { grid-template-columns: minmax(0, 1fr); }
  .kw-band { padding-left: 20px; padding-right: 20px; }
  .kw-app__veld { align-items: flex-start; flex-direction: column; gap: 6px; }
  .kw-app input[type="text"] { width: 100%; max-width: 220px; }
}

@media (max-width: 640px) {
  .kw-duo { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 18px; }
  .kw-duo > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--kw-lijn); margin-top: 22px; padding-top: 22px; }
  .kw-stappen { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .kw-traject { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .kw-traject::before { top: 0; bottom: 0; left: 5px; right: auto; width: 2px; height: auto; }
  .kw-traject li { padding: 0 0 18px 26px; }
  .kw-traject li:last-child { padding-bottom: 0; }
}

/* Contrastfix 28-10: .kw-band a / .kw-band figure figcaption wonnen op specificiteit */
.kw-band .kw-hero__knop { color: var(--kw-groen); }
.kw-band .kw-hero__knop--lijn { color: #fff; }
.kw-band .kw-hero__beeld figcaption, .kw-band .kw-mechanisme figcaption { color: #c4d2c8; }
.kw-band .kw-herstel-tekst { margin-top: 24px; }

/* Staafdiagram reeksen + bronnen in twee kolommen (28-10, design-check tekstmuur) */
.kw-staven { margin: clamp(20px, 3vw, 28px) 0 0; max-width: 640px; }
.kw-staven ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kw-staven li { display: grid; grid-template-columns: 7.2em minmax(0, 1fr) 2.2em; align-items: center; gap: 12px; margin: 0; padding: 0; font-size: 0.92rem; min-width: 0; }
.kw-staven li::before { content: none; display: none; }
.kw-staven__baan { display: block; height: 14px; border-radius: 7px; background: rgba(28, 46, 38, 0.08); overflow: hidden; }
.kw-staaf { display: block; height: 100%; border-radius: 7px; background: var(--kw-akkoord); }
.kw-staven li:nth-child(1) .kw-staaf { width: 59.2%; }
.kw-staven li:nth-child(2) .kw-staaf { width: 100%; }
.kw-staven li:nth-child(3) .kw-staaf { width: 36.7%; }
.kw-staven li:nth-child(4) .kw-staaf { width: 55.1%; }
.kw-staven__n { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .kw-bronnenlijst { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
  .kw-bronnenlijst li:last-child { border-bottom: 0; }
}
.kw-cta .kw-split > .kw-hero__knop { justify-self: start; align-self: center; width: auto; text-align: center; }
