/* Planckebeek. Huisstijl: diepgroen water, okeren plank, papierwit. */

@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --groen-diep: #1e4a3b;
  --groen: #2d6a55;
  --groen-licht: #e3ede6;
  --groen-mist: #f0f5f1;
  --oker: #c08a2e;
  --oker-donker: #7c5210;
  --oker-licht: #f6ead2;
  --papier: #f8f5ee;
  --wit: #ffffff;
  --inkt: #1c2621;
  --inkt-zacht: #4a5650;
  --lijn: #d5d9cf;
  --rood: #a33a24;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --tekst: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maat-0: 0.9rem;
  --maat-1: 1.0625rem;
  --maat-2: 1.3125rem;
  --maat-3: 1.75rem;
  --maat-4: clamp(1.9rem, 4.5vw, 2.5rem);
  --maat-5: clamp(2.4rem, 7vw, 4.25rem);

  --breed: 70rem;
  --smal: 44rem;
  --ruimte: clamp(3rem, 8vw, 5.5rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--tekst); font-size: var(--maat-1); line-height: 1.6; color: var(--inkt); background: var(--papier); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--groen-diep); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--oker-donker); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--oker-donker); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--oker-licht); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.06; color: var(--groen-diep); margin: 0 0 0.45em; text-wrap: balance; }
h1 { font-size: var(--maat-5); letter-spacing: -0.005em; }
h2 { font-size: var(--maat-4); }
h3 { font-size: var(--maat-2); font-weight: 600; line-height: 1.2; }
p, li { max-width: 40em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li + li { margin-top: 0.35em; }
.getal, td.bedrag { font-variant-numeric: tabular-nums; white-space: nowrap; }

.wrap { width: min(100% - 2.5rem, var(--breed)); margin-inline: auto; }
.wrap-smal { width: min(100% - 2.5rem, var(--smal)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--groen-diep); color: var(--wit); padding: 0.6rem 1rem; z-index: 10; border-radius: 0 0 6px 6px; }
.skip:focus { top: 0; color: var(--wit); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kop */
.kop { background: var(--papier); border-bottom: 1px solid var(--lijn); }
.kop .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; padding-block: 0.8rem; }
.logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--groen-diep); font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1; }
.logo svg { width: 2.4rem; height: 2.4rem; }
.logo:hover { color: var(--groen-diep); }
.menu { flex: 1 1 auto; min-width: 0; max-width: 100%; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.15rem 1.1rem; justify-content: flex-end; }
.menu li { margin: 0; }
.menu a { text-decoration: none; font-weight: 500; color: var(--inkt); padding: 0.4rem 0; display: inline-block; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--groen-diep); box-shadow: inset 0 -2px 0 var(--oker); }
.menu .menu-scan a { color: var(--groen-diep); font-weight: 600; }
@media (max-width: 52rem) {
  .menu { flex-basis: 100%; }
  .kop .wrap { display: grid; grid-template-columns: minmax(0, 1fr); }
  .menu ul { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; gap: 1.1rem; padding-bottom: 0.25rem; scrollbar-width: thin; }
  .menu a { white-space: nowrap; padding-block: 0.55rem; }
}

/* Knoppen */
.knop { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3rem; padding: 0.75rem 1.4rem; border-radius: 6px; border: 2px solid var(--groen-diep); background: var(--groen-diep); color: var(--wit); font: 600 1.0625rem/1.2 var(--tekst); text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s; }
.knop:hover { background: var(--groen); border-color: var(--groen); color: var(--wit); }
.knop.tweede { background: transparent; color: var(--groen-diep); }
.knop.tweede:hover { background: var(--groen-licht); color: var(--groen-diep); }
.knop[disabled] { opacity: 0.6; cursor: wait; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem; margin: 1.5rem 0 0; }
.cta .onder { margin: 0; color: var(--inkt-zacht); font-size: var(--maat-0); }
.cta-blok { margin-top: var(--ruimte); padding: 2rem; border-radius: 10px; background: var(--groen-diep); color: var(--wit); }
.cta-blok h2 { color: var(--wit); margin-bottom: 0.3em; }
.cta-blok p { color: #e3ede6; }
.cta-blok .knop { background: var(--oker-licht); border-color: var(--oker-licht); color: var(--groen-diep); }
.cta-blok .knop:hover { background: var(--wit); border-color: var(--wit); }
.cta-blok .onder { color: #d0e0d6; }

/* Secties */
main { display: block; }
.sectie { padding-block: var(--ruimte) 0; }
.sectie:last-child { padding-bottom: var(--ruimte); }
.paginakop { padding-block: clamp(2.5rem, 7vw, 4.5rem) 0; }
.paginakop .intro, .intro { font-size: var(--maat-2); line-height: 1.5; color: var(--inkt); max-width: 36em; }
.label { display: inline-block; font: 600 0.8rem/1 var(--tekst); letter-spacing: 0.06em; text-transform: uppercase; color: var(--oker-donker); margin-bottom: 0.8rem; }
.golf { display: block; width: 100%; height: 22px; margin: var(--ruimte) 0 0; color: var(--groen); opacity: 0.35; }

/* Held */
.held { padding-block: clamp(2.5rem, 8vw, 5rem) 0; }
.held .wrap { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60rem) { .held .wrap { grid-template-columns: 1.15fr 1fr; } }
.held h1 { max-width: 13ch; }
.schema { background: var(--wit); border: 1px solid var(--lijn); border-radius: 12px; padding: 1rem; }
.schema text { font-family: var(--tekst); }

/* Kaarten en rasters */
.raster { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); margin: 1.5rem 0 0; padding: 0; list-style: none; }
.raster > li { margin: 0; max-width: none; }
.kaart { background: var(--wit); border: 1px solid var(--lijn); border-radius: 10px; padding: 1.25rem 1.3rem; }
.kaart h3 { margin-bottom: 0.35em; }
.kaart p:last-child { margin-bottom: 0; }
.pijn { border-left: 4px solid var(--oker); }
.stappen { counter-reset: stap; list-style: none; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.stappen > li { counter-increment: stap; position: relative; padding-top: 3.2rem; margin: 0; }
.stappen > li::before { content: counter(stap); position: absolute; top: 1.1rem; left: 1.3rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--groen-diep); color: var(--wit); font: 700 1.1rem/2.1rem var(--display); text-align: center; }
.vinklijst { list-style: none; padding: 0; }
.vinklijst li { position: relative; padding-left: 1.9rem; }
.vinklijst li::before { content: ""; position: absolute; left: 0.1rem; top: 0.45em; width: 1.05rem; height: 0.6rem; border-left: 3px solid var(--groen); border-bottom: 3px solid var(--groen); transform: rotate(-45deg) translateY(-0.1rem); }
.kader { background: var(--groen-mist); border: 1px solid var(--groen-licht); border-radius: 10px; padding: 1.3rem 1.4rem; }
.kader > :last-child { margin-bottom: 0; }
.okerkader { background: var(--oker-licht); border-color: #ead7b0; }

/* Tabellen */
.tabel-wrap { overflow-x: auto; margin: 1.5rem 0 0; border: 1px solid var(--lijn); border-radius: 10px; background: var(--wit); }
table { border-collapse: collapse; width: 100%; min-width: 34rem; }
caption { text-align: left; padding: 1rem 1.2rem 0; font-weight: 600; }
th, td { text-align: left; padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--lijn); vertical-align: top; }
thead th { font-size: var(--maat-0); text-transform: uppercase; letter-spacing: 0.05em; color: var(--inkt-zacht); font-weight: 600; }
tbody tr:last-child > * { border-bottom: 0; }
td.bedrag, th.bedrag { text-align: right; }
.voetnoot { font-size: var(--maat-0); color: var(--inkt-zacht); margin-top: 0.8rem; }
.berekening { font: 600 var(--maat-2)/1.4 var(--tekst); color: var(--groen-diep); font-variant-numeric: tabular-nums; }

/* Status in de catalogus */
.status { display: inline-block; font: 600 0.82rem/1 var(--tekst); padding: 0.35rem 0.6rem; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.status-bruikbaar { color: #174133; background: #dcebe2; border-color: #a9cbb7; }
.status-in_voorbereiding { color: #5c3d08; background: var(--oker-licht); border-color: #e2c48a; }
.status-in_onderzoek { color: #3a4a6b; background: #e7ebf4; border-color: #bcc6dc; }
.status-niet_onderzocht { color: #4a5650; background: #eeeee9; border-color: #cfd1c8; }
.statusuitleg { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 1.5rem 0 0; }
.statusuitleg dt { margin: 0 0 0.35rem; }
.statusuitleg dd { margin: 0; font-size: 0.97rem; }
.pakket { display: flex; flex-direction: column; gap: 0.5rem; }
.pakket p { margin: 0; }
.pakket .meta { margin-top: auto; padding-top: 0.4rem; }
.pakket .kopregel { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.pakket h3 { margin: 0; }
.pakket .meta { font-size: var(--maat-0); color: var(--inkt-zacht); }
.pakket .voorwaarde { font-size: 0.97rem; margin: 0; }

/* Demo's */
.demo a.demolink { font-weight: 600; }
.demo .etiket { display: inline-block; font: 600 0.75rem/1 var(--tekst); letter-spacing: 0.06em; text-transform: uppercase; background: var(--groen-licht); color: var(--groen-diep); padding: 0.3rem 0.5rem; border-radius: 4px; margin-bottom: 0.7rem; }

/* Formulieren */
fieldset { border: 0; padding: 0; margin: 0 0 1.6rem; min-width: 0; }
legend { font: 700 var(--maat-3)/1.1 var(--display); color: var(--groen-diep); padding: 0; margin-bottom: 0.6rem; }
legend.klein { font: 600 var(--maat-2)/1.2 var(--display); }
.veld { margin: 0 0 1.2rem; }
.veld > label, .veldlabel { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.hulp { display: block; font-size: var(--maat-0); color: var(--inkt-zacht); margin: 0.1rem 0 0.4rem; }
input[type="text"], input[type="email"], input[type="number"], select, textarea { width: 100%; max-width: 32rem; font: inherit; color: var(--inkt); background: var(--wit); border: 2px solid #8b958e; border-radius: 6px; padding: 0.65rem 0.75rem; min-height: 3rem; }
input[type="number"] { max-width: 10rem; }
textarea { min-height: 8rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--groen-diep); outline: 3px solid var(--oker); outline-offset: 1px; }
[aria-invalid="true"] { border-color: var(--rood) !important; }
.foutmelding { display: block; color: var(--rood); font-weight: 600; margin-top: 0.35rem; }
.foutmelding:empty { display: none; }
.keuze { display: flex; gap: 0.65rem; align-items: flex-start; padding: 0.55rem 0; }
.keuze input { width: 1.35rem; height: 1.35rem; margin: 0.15rem 0 0; accent-color: var(--groen-diep); flex: none; }
.keuze label { font-weight: 500; }
.keuze .hulp { margin: 0.1rem 0 0; }
.keuzes-raster { display: grid; gap: 0 1.2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.meldingblok { border-left: 4px solid var(--rood); background: #fbeee9; padding: 0.9rem 1.1rem; border-radius: 0 8px 8px 0; margin: 0 0 1.2rem; }
.meldingblok:empty { display: none; }
.okblok { border-left: 4px solid var(--groen); background: var(--groen-mist); padding: 1rem 1.2rem; border-radius: 0 8px 8px 0; }
.ts-plaats { min-height: 65px; margin: 0 0 1.2rem; }

/* Snelscan */
.proces { background: var(--wit); border: 1px solid var(--lijn); border-radius: 10px; padding: 1.2rem 1.3rem 0.3rem; margin-bottom: 1.2rem; }
.proces[hidden] { display: none; }
.rapport { margin-top: 2.5rem; }
.rapport h2 { margin-top: 0; }
.rapport .regel { background: var(--wit); border: 1px solid var(--lijn); border-left: 4px solid var(--groen); border-radius: 0 10px 10px 0; padding: 1rem 1.2rem; margin: 0 0 1rem; }
.rapport .regel.beperkt { border-left-color: var(--oker); }
.rapport .regel h3 { margin-bottom: 0.3em; }
.rapport .regel p { margin-bottom: 0.5em; }
.rapport .totaal { font: 600 var(--maat-2)/1.4 var(--tekst); }
.rapport .software li { margin-bottom: 0.3rem; }

/* Voet */
.voet { margin-top: var(--ruimte); background: var(--groen-diep); color: #e3ede6; padding-block: 2.5rem; font-size: 0.97rem; }
.voet a { color: var(--wit); }
.voet a:hover { color: var(--oker-licht); }
.voet .wrap { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.voet p { margin: 0 0 0.4rem; }
.voet ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 1.5rem; }
.voet li { margin: 0 0 0.4rem; }
.voet h2 { font-size: 1.2rem; color: var(--wit); margin-bottom: 0.6rem; }
.voet .todo { background: #fff2b0; color: #3b2c00; }

/* Plaatshouders die Kobe nog moet invullen. Zichtbaar in de preview. */
.todo { background: #fff2b0; color: #3b2c00; border: 1px dashed #a07d00; padding: 0 0.3em; border-radius: 3px; font-weight: 600; }
.conceptbalk { background: #fff2b0; color: #3b2c00; border-bottom: 1px solid #d9b94a; padding: 0.6rem 0; font-weight: 600; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .kop, .voet, .menu, .skip, .geen-print, .cta, .cta-blok, #gesprek, .golf, .conceptbalk { display: none !important; }
  body { background: #fff; font-size: 11pt; color: #000; }
  .wrap, .wrap-smal { width: 100%; }
  .rapport { margin-top: 0; }
  .rapport .regel { break-inside: avoid; border: 1px solid #999; border-left: 4px solid #333; }
  #scanformulier { display: none !important; }
  a { color: #000; }
}

/* Kleine hulpklassen (geen inline stijlen, zodat de CSP zonder 'unsafe-inline' kan) */
.voetnoot.groot { font-size: 1rem; margin-top: 1.2rem; }
.hulp.inline { display: inline; }
.sectie.dicht { padding-top: 1.5rem; }
.kaarttitel { font-size: var(--maat-2); }
.over-raster { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); align-items: start; }
.portret { border-radius: 10px; }

.raster.vijf { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.raster.drie { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
@media (max-width: 40rem) {
  table.stapel { min-width: 0; }
  table.stapel thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stapel tr { display: block; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--lijn); }
  table.stapel tbody tr:last-child { border-bottom: 0; }
  table.stapel th, table.stapel td { display: block; padding: 0.15rem 0; border: 0; text-align: left; }
  table.stapel td.bedrag { text-align: left; font-weight: 600; color: var(--groen-diep); }
}
