/* ─── Ontwerptokens ─── */
:root {
  --paper: #EFF3EE;
  --card: #FFFFFF;
  --ink: #15241C;
  --ink-soft: #4A5C51;
  --pine: #0F5A44;
  --pine-soft: #E2EEE8;
  --amber: #C77E14;
  --amber-soft: #F7ECD9;
  --line: #D9E1D8;
  --moss: #8FAE97;
  --mono: 'IBM Plex Mono', monospace;
  --display: 'Space Grotesk', sans-serif;
  --body: 'Public Sans', sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 40px 20px 80px; }
.mono { font-family: var(--mono); }

/* ─── Kop ─── */
.kop { margin-bottom: 36px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--pine); margin: 0; font-weight: 500; }
.eyebrow-licht { color: #BFE0CF; letter-spacing: .1em; font-weight: 600; margin-bottom: 6px; }
h1 { font-family: var(--display); font-size: clamp(28px, 4.5vw, 44px); font-weight: 700; margin: 6px 0 8px; line-height: 1.1; }
.intro { max-width: 640px; color: var(--ink-soft); font-size: 15px; line-height: 1.55; margin: 0; }
.t-pine { color: var(--pine); } .t-amber { color: var(--amber); }
.t-pine-licht { color: #9FD6BC; } .t-amber-licht { color: #EFC98A; }

.scenariobalk { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.scenariobalk select, .scenariobalk input[type=text] {
  font-family: var(--body); font-size: 14px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
}
#scenario-naam { width: 180px; }
#opslag-status { font-size: 13px; color: var(--pine); }

/* ─── Layout ─── */
.kolommen { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
.kolom { display: flex; flex-direction: column; gap: 20px; }

/* ─── Kaarten ─── */
.kaart { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.kaart h2 { font-family: var(--display); font-size: 17px; margin: 0 0 14px; }
.kaartkop { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.kaartkop h2 { margin: 0; }
.sub { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 14px; }
.kaart-donker { background: var(--ink); color: #fff; border: none; padding: 22px; }
.kaart-donker h2 { margin-bottom: 4px; }
.sub-licht { color: #B9C8BE; font-size: 13px; margin-bottom: 18px; }
.kaart-pine { background: var(--pine); color: #fff; border: none; padding: 26px 24px; }

/* ─── Velden ─── */
.veldrij { display: flex; flex-wrap: wrap; gap: 12px; }
.veld { display: flex; flex-direction: column; gap: 4px; flex: 1 1 140px; }
.veldlabel { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.veldlabel-licht { color: #BFE0CF; }
.invoer { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; }
.invoer input { border: none; width: 64px; font-size: 15px; font-family: var(--mono); color: var(--ink); background: transparent; outline: none; }
.invoer em { font-style: normal; font-size: 12px; color: var(--moss); white-space: nowrap; }

input:focus-visible, button:focus-visible, select:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; }

/* ─── Knoppen ─── */
.btn { font-family: var(--body); font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 8px; padding: 8px 14px; cursor: pointer; }
.btn-pine { background: var(--pine); border-color: var(--pine); color: #fff; }
.btn-stil { border-color: transparent; background: transparent; color: var(--ink-soft); }
.btn:hover { filter: brightness(.96); }

/* ─── Adoptiehendel ─── */
.hendel { margin-bottom: 18px; }
.hendelkop { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.hendelkop .mono { font-weight: 600; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: rgba(255,255,255,.25); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255,255,255,.25); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 22px; width: 22px; border-radius: 50%; margin-top: -8px; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
input[type=range]::-moz-range-thumb { height: 16px; width: 16px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
input.nu::-webkit-slider-thumb, input.nu::-moz-range-thumb { background: var(--amber); }
input.doel::-webkit-slider-thumb, input.doel::-moz-range-thumb { background: var(--pine); }
input[type=range]:focus-visible { outline: 2px solid #9FD6BC; outline-offset: 4px; }
.hendel-samenvatting { padding: 10px 14px; background: rgba(159,214,188,.12); border-radius: 10px; font-size: 13px; color: #D7E6DC; }

/* ─── Activiteiten ─── */
.activiteit { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #fff; margin-bottom: 10px; }
.activiteit.uit { opacity: .45; background: var(--paper); }
.activiteit-kop { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.activiteit-kop input[type=checkbox] { accent-color: var(--pine); width: 16px; height: 16px; }
.activiteit-kop input[type=text] { flex: 1; border: none; border-bottom: 1px dashed var(--line); font-size: 14.5px; font-weight: 600; font-family: var(--body); color: var(--ink); background: transparent; padding: 2px 0; }
.activiteit-kop .verwijder { background: none; border: none; color: var(--moss); cursor: pointer; font-size: 16px; line-height: 1; }
.activiteit .veld { flex: 0 1 auto; }

/* ─── Resultaat ─── */
.groot-getal { font-size: clamp(40px, 6vw, 62px); font-weight: 600; line-height: 1; }
.groot-getal small { font-size: 22px; font-weight: 500; }
.statrij { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.22); }
.stat { display: flex; flex-direction: column; gap: 2px; }
.statwaarde { font-size: 22px; font-weight: 600; }
.statsub { font-size: 12px; opacity: .85; }
.kaart-pine .statsub { color: #D7E6DC; }

.vergelijk { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.blok { border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.blok-amber { background: var(--amber-soft); }
.blok-pine { background: var(--pine-soft); }
.blok .statsub { color: var(--ink-soft); }

.staaf { margin-bottom: 12px; }
.staaf-kop { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 4px; }
.staaf-kop strong { font-weight: 600; }
.staaf-kop .mono { color: var(--pine); font-weight: 600; }
.staaf-baan { height: 8px; background: var(--paper); border-radius: 4px; overflow: hidden; }
.staaf-vulling { height: 100%; background: var(--pine); border-radius: 4px; transition: width .35s ease; }

#curve { width: 100%; height: auto; display: block; }
.curve-voet { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-soft); margin-top: 4px; }
.curve-voet .t-pine { font-weight: 600; }

.voetnoot { font-size: 12px; color: var(--ink-soft); margin: 0; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 480px) { .vergelijk { grid-template-columns: 1fr; } }

/* ═══════════════════════ Nulmeting / intake ═══════════════════════ */

/* ─── Navigatie ─── */
.nav { display: flex; gap: 18px; align-items: center; margin-bottom: 26px; font-size: 13px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.nav a.actief { color: var(--pine); border-color: var(--pine); }
.nav .nav-merk { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--pine); margin-right: auto; }
.kruimel { font-size: 13px; color: var(--ink-soft); margin: 0 0 6px; }
.kruimel a { color: var(--pine); text-decoration: none; }

/* ─── Algemene extra's ─── */
.rij { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rij-uit { justify-content: space-between; }
.tekstveld, textarea.tekstveld, select.tekstveld {
  font-family: var(--body); font-size: 14px; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%;
}
textarea.tekstveld { min-height: 70px; resize: vertical; }
.veld .tekstveld { width: auto; min-width: 120px; }
.chip { display: inline-block; font-family: var(--mono); font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: var(--pine-soft); color: var(--pine); font-weight: 600; white-space: nowrap; }
.chip-amber { background: var(--amber-soft); color: var(--amber); }
.chip-grijs { background: var(--paper); color: var(--ink-soft); }
.chip-rood { background: #F6E0DC; color: #A3341F; }
.chip-donker { background: var(--ink); color: #fff; }
.melding { font-size: 13px; color: var(--pine); min-height: 1.2em; }
.melding.fout { color: #A3341F; }
.leeg { padding: 26px; text-align: center; color: var(--ink-soft); font-size: 14px; border: 1px dashed var(--line); border-radius: 12px; }
.klein { font-size: 12px; color: var(--ink-soft); }
.btn-klein { padding: 5px 10px; font-size: 12px; }
.btn-rood { color: #A3341F; border-color: #EBC9C2; background: #fff; }
.btn-schakel { display: inline-flex; align-items: center; gap: 8px; }

/* ─── Bedrijvenlijst ─── */
.tabel { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabel th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tabel td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabel tr:last-child td { border-bottom: none; }
.tabel .r { text-align: right; }
.tabel a { color: var(--pine); font-weight: 600; text-decoration: none; }
.tabel-wrap { overflow-x: auto; }
.tabel input[type=number], .tabel input[type=text] { font-family: var(--mono); font-size: 13.5px; border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; width: 74px; color: var(--ink); }
.tabel input[type=text] { font-family: var(--body); width: 200px; }
.tabel select { font-family: var(--body); font-size: 13px; border: 1px solid var(--line); border-radius: 6px; padding: 5px 6px; }
.link-cel { display: flex; gap: 6px; align-items: center; }
.link-cel code { font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ─── Vragenlijst (intake en enquête) ─── */
.smal { max-width: 760px; }
.vraag { padding: 16px 0; border-bottom: 1px solid var(--line); }
.vraag:last-child { border-bottom: none; }
.vraag-tekst { font-size: 15px; font-weight: 500; margin: 0 0 10px; line-height: 1.4; }
.vraag-tekst .nr { font-family: var(--mono); color: var(--moss); font-size: 12px; margin-right: 6px; }
.opties { display: flex; flex-direction: column; gap: 6px; }
.opties label { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: #fff; }
.opties label:hover { border-color: var(--moss); }
.opties label:has(input:checked) { border-color: var(--pine); background: var(--pine-soft); }
.opties input { accent-color: var(--pine); margin-top: 2px; flex: none; }
.opties-rij { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; }
.likert { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.likert label { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 11.5px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: #fff; color: var(--ink-soft); }
.likert label:has(input:checked) { border-color: var(--pine); background: var(--pine-soft); color: var(--ink); }
.likert input { accent-color: var(--pine); }
.likert .cijfer { font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--ink); }
.schaal-uitersten { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-soft); margin-top: 4px; }
.sectie-kop { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.sectie-kop h2 { margin: 0; }
.sectie-kop .stap { font-family: var(--mono); font-size: 12px; color: var(--moss); }
.voortgang { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin: 14px 0 22px; }
.voortgang div { height: 100%; background: var(--pine); transition: width .3s ease; }
.dimensie-score { font-family: var(--mono); font-size: 13px; color: var(--pine); font-weight: 600; margin-left: auto; }
.dank { text-align: center; padding: 50px 20px; }
.dank h1 { font-size: 30px; }
.enquete-kop { background: var(--ink); color: #fff; border-radius: 14px; padding: 24px; margin-bottom: 20px; }
.enquete-kop h1 { color: #fff; margin: 4px 0 8px; font-size: clamp(22px, 3.5vw, 30px); }
.enquete-kop p { color: #B9C8BE; font-size: 14px; margin: 0; line-height: 1.5; max-width: 600px; }

/* ─── Rapport ─── */
.rapport-kop { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: flex-end; }
.niveau-badge { display: inline-flex; align-items: center; gap: 10px; }
.niveau-badge .cijfer { font-family: var(--display); font-size: 52px; font-weight: 700; line-height: 1; }
.niveau-badge .naam { font-family: var(--display); font-size: 20px; font-weight: 600; }
.niveau-schaal { display: flex; gap: 4px; margin-top: 10px; }
.niveau-schaal span { flex: 1; height: 8px; border-radius: 4px; background: rgba(255,255,255,.2); }
.niveau-schaal span.vol { background: #9FD6BC; }
.kpi-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi { background: var(--paper); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.kpi .statwaarde { font-size: 26px; }
.kpi-pine { background: var(--pine-soft); } .kpi-amber { background: var(--amber-soft); }
.matrix { width: 100%; height: auto; display: block; }
.matrix text { font-family: var(--body); }
.matrix .as { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; fill: var(--ink-soft); text-transform: uppercase; }
.matrix .kw { font-family: var(--display); font-size: 12px; font-weight: 700; fill: var(--ink-soft); opacity: .55; }
.matrix .teamlabel { font-size: 10.5px; fill: var(--ink); font-weight: 600; }
.matrix .benchlabel { font-size: 9.5px; fill: var(--ink-soft); }
.legenda { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--ink-soft); margin-top: 8px; }
.legenda span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; background: var(--pine); }
.legenda .l-org::before { background: var(--ink); }
.legenda .l-bench::before { background: transparent; border: 2px dashed var(--ink-soft); width: 8px; height: 8px; }
.staaf-kop .sub-label { color: var(--ink-soft); font-weight: 400; font-size: 12px; margin-left: 6px; }
.staaf-baan .bench-lijn { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--ink); opacity: .6; }
.staaf-baan { position: relative; overflow: visible; }
.staaf-vulling.laag { background: var(--amber); }
.kwadrant-blok { border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; border-left: 4px solid var(--pine); background: var(--paper); }
.kwadrant-blok.roekeloos { border-color: var(--amber); }
.kwadrant-blok.afwachtend { border-color: var(--moss); }
.kwadrant-blok.voorzichtig { border-color: #5B8DB8; }
.kwadrant-blok h3 { font-family: var(--display); font-size: 15px; margin: 0 0 4px; }
.kwadrant-blok p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.kloof { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.kloof:last-child { border-bottom: none; }
.kloof .mono { font-weight: 600; font-size: 16px; }
.kloof .pijl { color: var(--moss); font-size: 18px; }
.kloof .zegt { color: var(--amber); } .kloof .doet { color: var(--pine); }
.delta-pos { color: var(--pine); font-weight: 600; } .delta-neg { color: #A3341F; font-weight: 600; }
.citaten { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.citaten li { font-size: 13.5px; padding: 8px 12px; background: var(--paper); border-radius: 8px; color: var(--ink-soft); font-style: italic; }
.bron { font-size: 11px; color: var(--moss); line-height: 1.4; }
.print-alleen { display: none; }

@media print {
  body { background: #fff; }
  .wrap { padding: 0; max-width: none; }
  .nav, .geen-print, .btn { display: none !important; }
  .kaart { break-inside: avoid; border-color: #ccc; }
  .kolommen { display: block; }
  .kolom { display: block; }
  .kolom .kaart { margin-bottom: 14px; }
  .print-alleen { display: block; }
}

.tabel-compact { font-size: 12.5px; }
.tabel-compact td, .tabel-compact th { padding: 7px 6px; }
.tabel-compact .chip { font-size: 10.5px; padding: 2px 7px; }
#teams input[type=number] { width: 58px; }
#teams input[type=text] { width: 170px; }
#teams .btn-klein { white-space: nowrap; }

/* ─── Login ─── */
.nav-gebruiker { font-size: 12.5px; color: var(--ink-soft); font-weight: 400; }
.nav-gebruiker a { font-weight: 600; }
.login-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; }
.login-kaart { width: 100%; max-width: 440px; }
.login-kaart h1 { color: #fff; font-size: 24px; margin: 4px 0 8px; }
.login-form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.login-form .veld .tekstveld { width: 100%; }
.login-form .veld { flex: none; }
.gebruikers-acties { flex-wrap: nowrap; }
