/* Samen Meesturen: opmaak. Tokens volgens site-plan/ontwerp.md; geen externe aanvragen; lettertype via assets/fonts.css (SIL OFL). */
:root {
  --papier: #f7f9fb; --inkt: #0d1b2a; --gedempt: #40556b; --stuur: #1747c9; --aandacht: #e8a200;
  --lijn: #c9d3df; --focus: #0b3bb8; --op-stuur: #ffffff; --op-aandacht: #0d1b2a;
  --niveau-0: #167a6b; --niveau-1: #2a58a3; --niveau-2: #9a6200; --niveau-3: #b13a29;
}
@media (prefers-color-scheme: dark) {
  :root {
    --papier: #0c1624; --inkt: #e8eef7; --gedempt: #a9b8cc; --stuur: #7ea2ff; --aandacht: #ffc83d;
    --lijn: #2a3a52; --focus: #b9ccff; --op-stuur: #0c1624; --op-aandacht: #0d1b2a;
    --niveau-0: #4fc3b0; --niveau-1: #86a8e6; --niveau-2: #e0a33a; --niveau-3: #f0897a;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--inkt);
  font-family: 'Atkinson Hyperlegible', system-ui, sans-serif; font-size: 1.125rem; line-height: 1.6; }
a { color: var(--stuur); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--papier); padding: .5rem 1rem; z-index: 9; }
.wrap { max-width: 74rem; margin: 0 auto; padding: 0 1.25rem; }
.tekst { max-width: 42rem; padding: 1rem 0 2.5rem; }
.tekst h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); line-height: 1.05; letter-spacing: -.03em; margin: 1.5rem 0 1rem; }
.tekst h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); line-height: 1.15; letter-spacing: -.02em; margin: 2.5rem 0 .75rem; }
.tekst h3 { font-size: 1.35rem; margin: 2rem 0 .5rem; }
.tekst p, .tekst li { max-width: 40rem; }
blockquote { margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 4px solid var(--stuur); color: var(--gedempt); }
blockquote p { margin: .5rem 0; }

/* kop en menu */
header.top { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem 2rem; padding: 1.25rem 0; }
.mark { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--inkt); text-decoration: none; }
.mark .s { color: var(--stuur); }
.mk { width: 2.2rem; height: 2.2rem; flex: none; }
/* merk (symbol #merk, in elke pagina) */
.mr { fill: none; stroke: var(--stuur); stroke-width: 28; }
.mh { fill: var(--stuur); }
.ma { fill: var(--aandacht); }
.mn { fill: var(--papier); stroke: var(--stuur); stroke-width: 14; }
nav { display: flex; flex-wrap: wrap; gap: .1rem 1.25rem; }
nav a { color: var(--gedempt); text-decoration: none; }
nav a:hover, nav a[aria-current] { color: var(--inkt); text-decoration: underline; text-underline-offset: .25em; }

/* knoppen */
.acties { margin: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.btn { display: inline-block; background: var(--stuur); color: var(--op-stuur); padding: .85rem 1.4rem;
  border-radius: .3rem; text-decoration: none; font-weight: 700; }
.btn:hover { text-decoration: underline; }
.btn.ghost { background: transparent; color: var(--inkt); box-shadow: inset 0 0 0 2px var(--stuur); }

/* hero */
.hero { position: relative; min-height: min(40rem, 82vh); display: flex; align-items: center; overflow: hidden; }
.hero .wrap { width: 100%; }
.hero .copy { position: relative; z-index: 1; max-width: 36rem; padding: 3rem 0 4rem; }
h1 { font-size: clamp(3.2rem, 9.5vw, 7.5rem); line-height: .92; letter-spacing: -.035em; margin: 0 0 1.5rem; font-weight: 700; }
.tekst h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); line-height: 1.05; }
h1 .s { color: var(--stuur); }
.sub { font-size: clamp(1.2rem, 2.2vw, 1.5rem); color: var(--gedempt); margin: 0 0 2rem; max-width: 30rem; }
.hero .wheel { position: absolute; right: -7rem; top: 50%; width: min(34rem, 56vw); transform: translateY(-50%) rotate(-14deg); }

/* stuur (SVG) */
.wheel svg, .w-sticky svg { width: 100%; height: auto; display: block; overflow: visible; }
.rim { fill: none; stroke: var(--stuur); stroke-width: 14; }
.rim2 { fill: none; stroke: var(--lijn); stroke-width: 2; }
.spoke { stroke: var(--stuur); stroke-width: 12; stroke-linecap: round; }
.hub { fill: var(--stuur); }
.node { fill: var(--papier); stroke: var(--stuur); stroke-width: 5; transition: fill .4s, stroke .4s; }
.node.on { fill: var(--aandacht); stroke: var(--stuur); }
.pointer { fill: var(--aandacht); stroke: var(--stuur); stroke-width: 3; stroke-linejoin: round; }

/* raamwerk: het stuur blijft staan, de stappen scrollen */
.frame { border-top: 1px solid var(--lijn); padding: 3rem 0; }
.frame h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .75rem; }
.frame .wrap > p { color: var(--gedempt); max-width: 40rem; margin: 0 0 2rem; }
.drive { display: grid; grid-template-columns: minmax(16rem, 26rem) 1fr; gap: 4rem; align-items: start; }
.w-sticky { position: sticky; top: 5.5rem; }
.w-sticky .rot { transition: transform .9s cubic-bezier(.3, .7, .2, 1); transform-origin: 200px 200px;
  transform: rotate(calc(var(--stap, 0) * -60deg)); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 1.5rem 0 1.5rem 3.5rem; border-top: 1px solid var(--lijn); position: relative; }
.js .steps li { min-height: 55vh; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 1.35rem; width: 2.4rem; height: 2.4rem;
  border-radius: 50%; border: 3px solid var(--stuur); display: grid; place-items: center; font-weight: 700; color: var(--stuur); }
.steps li.on::before { background: var(--aandacht); border-color: var(--stuur); color: var(--op-aandacht); }
.steps h3 { font-size: 1.7rem; margin: .15rem 0 .5rem; letter-spacing: -.01em; }
.steps p { margin: 0 0 .75rem; color: var(--gedempt); max-width: 30rem; }
.steps .wie { display: block; margin-top: .75rem; font-weight: 400; color: var(--inkt); }
.steps .wie::before { content: "Wie: "; font-weight: 700; }

/* tabellen: scrollen binnen het blok, niet de pagina */
.tabel { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--lijn); border-radius: .3rem; max-width: 100%; }
.tabel table { border-collapse: collapse; width: 100%; min-width: 30rem; font-size: 1rem; line-height: 1.45; }
.tabel th, .tabel td { text-align: left; vertical-align: top; padding: .65rem .85rem; border-bottom: 1px solid var(--lijn); }
.tabel th { border-bottom: 2px solid var(--stuur); font-weight: 700; }
.tabel tr:last-child td { border-bottom: 0; }

/* bronnenlijst, chips, filters */
.bronnen { padding: 0 0 2.5rem 1.5rem; max-width: 46rem; }
.bronnen li { padding: .6rem 0; border-top: 1px solid var(--lijn); }
.bronnen li:target { outline: 3px solid var(--aandacht); outline-offset: 4px; }
.bronnen li[hidden] { display: none; }
.chip { display: inline-block; font-size: .85rem; line-height: 1.3; padding: .05rem .55rem; border-radius: 1rem;
  border: 1px solid var(--gedempt); color: var(--gedempt); white-space: nowrap; }
.filters { max-width: 46rem; padding: 1rem 0; }
.filters[hidden] { display: none; }
.filters .groep { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.filters .kop { font-weight: 700; min-width: 5.5rem; }
.filters button { font: inherit; font-size: 1rem; color: var(--inkt); background: transparent; cursor: pointer;
  border: 2px solid var(--stuur); border-radius: 1.5rem; padding: .25rem .9rem; min-height: 2.5rem; }
.filters button[aria-pressed="true"] { background: var(--stuur); color: var(--op-stuur); }
.filters .telling { margin: .25rem 0 0; color: var(--gedempt); font-size: 1rem; }

footer { border-top: 1px solid var(--lijn); padding: 1.25rem 0 2.5rem; color: var(--gedempt); font-size: .95rem; margin-top: 1rem; }
footer p { margin: 0; }

@media (max-width: 52rem) {
  header.top { flex-direction: column; gap: .4rem; }
  .hero { min-height: auto; display: block; }
  .hero .copy { padding: 2rem 0 1rem; }
  .hero .wheel { position: relative; right: auto; top: auto; width: 120%; margin: 0 -10% -35%; transform: rotate(-14deg); }
  .drive { grid-template-columns: 1fr; gap: 1rem; }
  .w-sticky { top: 0; background: var(--papier); padding: .75rem 0 .5rem; z-index: 2; border-bottom: 1px solid var(--lijn); }
  .w-sticky svg { width: 8rem; margin: 0 auto; }
  .js .steps li { min-height: 40vh; }
  .steps li { padding-left: 3.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .w-sticky .rot, .node { transition: none; }
}
@media print {
  * { background: none !important; color: #000 !important; box-shadow: none !important; }
  nav, .skip, .w-sticky, .wheel, .filters, .acties { display: none !important; }
  body { font-size: 11pt; }
  .hero { min-height: 0; display: block; }
  .steps li { min-height: 0 !important; }
  .tabel { overflow: visible; border-color: #000; }
  a { text-decoration: underline; }
  .tekst, .bronnen { max-width: none; }
}

/* referentielijst (onderzoek): hangende inspringing */
.ref-lijst { list-style: none; padding: 0; margin: 1rem 0; }
.ref-lijst li { padding-left: 2rem; text-indent: -2rem; margin: 0 0 .75rem; overflow-wrap: anywhere; }
@media print {
  header.top { display: none !important; }
  .ref-lijst li { break-inside: avoid; }
  .tabel table { break-inside: auto; }
  tr { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
}
