@font-face { font-family: 'DM Sans'; src: url('fonts/dm-sans-latin-normal.woff2') format('woff2'); font-weight: 100 1000; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; src: url('fonts/dm-sans-latin-ext-normal.woff2') format('woff2'); font-weight: 100 1000; font-style: normal; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --navy: #102d59; --navy-diep: #06162e; --blauw: #247eb2; --blauw-knop: #2178aa;
  --turq: #42b8b6; --turq-licht: #61cfc4; --turq-zacht: #e3f5f4;
  --ink: #102d59; --tekst: #2b3a52; --zacht: #5d6b80; --lijn: #dbe3ec; --vlak: #f3f6f9; --wit: #fff;
  --oranje: #d9822b;
  --r: 10px;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--tekst);
  background: var(--vlak);
  font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
small { font-size: .82em; color: var(--zacht); font-weight: 400; }

/* kop */
.kop { background: linear-gradient(120deg, var(--navy-diep), var(--navy) 70%); color: #fff; }
.kop-binnen { max-width: 1320px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.kop-logo { height: 44px; width: auto; }
.kop-tekst { flex: 1; min-width: 220px; border-left: 1px solid rgba(255,255,255,.18); padding-left: 24px; }
.kop h1 { color: #fff; font-size: 26px; font-weight: 700; }
.kop-label { margin: 0 0 2px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--turq-licht); font-weight: 600; }
.kop-label.donker { color: var(--blauw); }
.badge { font-size: 12.5px; padding: 6px 12px; border-radius: 999px; background: rgba(97,207,196,.14); border: 1px solid rgba(97,207,196,.45); color: var(--turq-licht); font-weight: 600; }

/* werkvlak */
.werkvlak { max-width: 1320px; margin: 0 auto; padding: 24px; display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; }
.invoer { background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--r); padding: 6px 20px 18px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
fieldset { border: 0; border-bottom: 1px solid var(--lijn); margin: 0; padding: 16px 0 14px; display: grid; gap: 10px; }
fieldset:last-child { border-bottom: 0; }
legend { font-weight: 700; color: var(--ink); font-size: 14.5px; padding: 0; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; float: left; width: 100%; }
legend + * { clear: both; }
.nr { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--navy); color: #fff; font-size: 12px; }
label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--zacht); }
input, select { font: inherit; font-size: 14px; color: var(--ink); font-weight: 500; width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--lijn); border-radius: 8px; background: var(--wit); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23102d59' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; }
input:focus-visible, select:focus-visible, button:focus-visible { outline: 2px solid var(--blauw); outline-offset: 1px; }
select:disabled { background-color: var(--vlak); color: var(--zacht); }
.rij { display: grid; grid-template-columns: 1fr 110px; gap: 10px; }
.rij.drie { grid-template-columns: repeat(3, 1fr); }
.eenheid { position: relative; display: block; }
.eenheid i { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--zacht); font-size: 13px; pointer-events: none; }
.eenheid input { padding-right: 34px; }
.hulp { margin: 0; font-size: 12.5px; color: var(--zacht); }
.keuze { display: grid; gap: 6px; }
.optie { grid-template-columns: auto 1fr; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--lijn); border-radius: 8px; cursor: pointer; font-weight: 500; }
.optie input { width: 16px; min-height: 0; height: 16px; accent-color: var(--navy); margin: 0; }
.optie span { display: flex; justify-content: space-between; gap: 8px; color: var(--ink); }
.optie b { font-weight: 600; }
.optie em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--blauw); font-weight: 700; }
.optie:has(input:checked) { border-color: var(--navy); background: #f2f6fb; box-shadow: inset 3px 0 0 var(--turq); }
.link { justify-self: start; background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--blauw-knop); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* uitkomst */
.uitkomst { display: grid; gap: 18px; min-width: 0; }
.hoofdgetal { background: var(--navy); color: #fff; border-radius: var(--r); padding: 22px 26px; position: relative; overflow: hidden; }
.hoofdgetal::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(97,207,196,.35), transparent 70%); }
.hoofdgetal .label { margin: 0; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--turq-licht); font-weight: 600; }
.getal { margin: 2px 0 4px; font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.getal small { font-size: 24px; color: #cfe2f0; margin-left: 8px; letter-spacing: 0; }
.sub { margin: 0; color: #cfe2f0; max-width: 62ch; }
.mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; }
.mini div { background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--r); padding: 12px 14px; }
.mini dt { font-size: 12.5px; color: var(--zacht); }
.mini dd { margin: 2px 0 0; font-size: 20px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

.grafiek { margin: 0; background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--r); padding: 16px 18px 12px; }
.grafiek figcaption { font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.grafiek svg { width: 100%; height: auto; display: block; font-family: inherit; }
.g-raster { stroke: #edf1f5; stroke-width: 1; }
.g-as { fill: var(--zacht); font-size: 11px; }
.g-mark { stroke: #b9c6d4; stroke-width: 1; stroke-dasharray: 3 4; }
.g-mark.actief { stroke: var(--navy); stroke-dasharray: none; stroke-width: 1.5; }
.g-marklabel { fill: var(--zacht); font-size: 10.5px; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.g-marklabel.actief { fill: var(--navy); font-weight: 700; }
.g-vraag { stroke: var(--navy); stroke-width: 3; stroke-linecap: round; }
.g-punt { fill: var(--navy); stroke: #fff; stroke-width: 2; }
.g-waarde { fill: var(--navy); font-size: 13px; font-weight: 700; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.g-waarde.zacht { fill: var(--blauw); font-size: 12px; }
.g-zacht { stroke: var(--blauw); stroke-dasharray: 2 3; }
.g-punt-zacht { fill: var(--blauw); stroke: #fff; stroke-width: 2; }
.g-toestel { fill: none; stroke: var(--turq); stroke-width: 3; stroke-linejoin: round; }
.g-min { stroke: var(--turq); stroke-width: 2; stroke-dasharray: 6 4; }
.g-biv { fill: var(--oranje); stroke: #fff; stroke-width: 2; }
.legenda { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--zacht); }
.legenda i { display: inline-block; width: 18px; height: 3px; vertical-align: middle; margin-right: 6px; border-radius: 2px; }
.l-vraag { background: var(--navy); } .l-toestel { background: var(--turq); }
.l-min { background: repeating-linear-gradient(90deg, var(--turq) 0 5px, transparent 5px 8px); }
.l-biv { width: 10px !important; height: 10px !important; border-radius: 50% !important; background: var(--oranje); }

.verdeling { background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--r); padding: 16px 18px; }
.verdeling h2 { font-size: 16px; margin-bottom: 10px; }
.verdeling ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.verdeling li { display: grid; grid-template-columns: 150px 1fr 64px 40px; gap: 12px; align-items: center; font-size: 14px; }
.v-naam { color: var(--ink); font-weight: 500; }
.v-balk { height: 10px; background: var(--vlak); border-radius: 6px; overflow: hidden; }
.v-balk i { display: block; height: 100%; background: linear-gradient(90deg, var(--blauw), var(--turq)); border-radius: 6px; transition: width .35s cubic-bezier(.2,.7,.2,1); }
.v-w, .v-p { text-align: right; font-variant-numeric: tabular-nums; }
.v-w { font-weight: 700; color: var(--ink); } .v-p { color: var(--zacht); }

.uitleg { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.kaart { background: var(--wit); border: 1px solid var(--lijn); border-top: 3px solid var(--turq); border-radius: var(--r); padding: 14px 16px; }
.kaart h3 { font-size: 15px; margin-bottom: 6px; }
.kaart p { margin: 0; font-size: 14px; }
.kaart:nth-child(4) { border-top-color: var(--oranje); grid-column: 1 / -1; }

/* offerte-sectie */
.offerte-wrap { max-width: 1320px; margin: 8px auto 0; padding: 24px; border-top: 1px solid var(--lijn); }
.offerte-balk { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; max-width: 794px; margin: 0 auto 16px; }
.offerte-balk h2 { font-size: 20px; }
.knop { font: inherit; font-weight: 600; font-size: 14px; color: #fff; background: var(--blauw-knop); border: 0; border-radius: 8px; padding: 11px 18px; min-height: 44px; cursor: pointer; }
.knop:hover { background: var(--navy); }
.offerte { width: 794px; max-width: 100%; min-height: 1123px; margin: 0 auto; background: #fff; box-shadow: 0 1px 2px rgba(16,45,89,.06), 0 12px 32px rgba(16,45,89,.10); padding: 48px 56px 36px; color: #24324a; font-size: 12.5px; line-height: 1.5; display: flex; flex-direction: column; gap: 18px; }
.o-kop { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 3px solid var(--navy); position: relative; }
.o-kop::after { content: ''; position: absolute; left: 0; bottom: -3px; width: 90px; height: 3px; background: var(--turq); }
.o-kop img { height: 46px; width: auto; }
.o-kop-r { text-align: right; }
.o-soort { margin: 0; font-size: 18px; font-weight: 700; color: var(--navy); }
.o-meta { margin: 2px 0 0; color: var(--zacht); font-size: 12px; }
.offerte h2 { font-size: 17px; margin-bottom: 6px; }
.offerte h3 { font-size: 13.5px; margin-bottom: 8px; color: var(--navy); }
.offerte p { margin: 0 0 8px; }
.o-hoofd { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--turq-zacht); border-radius: 8px; padding: 18px 20px; }
.o-hoofd p { margin: 0; }
.o-getal { text-align: right; color: var(--navy); font-weight: 700; font-size: 18px; white-space: nowrap; }
.o-getal span { font-size: 46px; letter-spacing: -0.03em; line-height: 1; }
.o-getal small { display: block; font-size: 12px; color: var(--zacht); font-weight: 500; }
.o-temps, .o-gegevens { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.o-temps th, .o-temps td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--lijn); }
.o-temps th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--zacht); font-weight: 600; }
.o-temps td:nth-child(n+2), .o-temps th:nth-child(n+2) { text-align: right; }
.o-temps tr.actief td { font-weight: 700; color: var(--navy); background: #f2f6fb; }
.o-temps tr.actief td:first-child { box-shadow: inset 3px 0 0 var(--turq); }
.o-twee { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; }
.o-gegevens th, .o-gegevens td { text-align: left; padding: 4px 0; border-bottom: 1px solid #eef2f6; vertical-align: top; }
.o-gegevens th { color: var(--zacht); font-weight: 500; width: 38%; padding-right: 10px; }
.o-verdeling { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 7px; }
.o-verdeling li { display: grid; grid-template-columns: 1fr auto 34px; grid-template-rows: auto 6px; column-gap: 8px; }
.o-verdeling b { color: var(--navy); font-variant-numeric: tabular-nums; }
.o-verdeling em { font-style: normal; color: var(--zacht); text-align: right; }
.o-verdeling i { grid-column: 1 / -1; grid-row: 2; height: 6px; border-radius: 4px; background: linear-gradient(90deg, var(--blauw), var(--turq)); }
.o-klein { font-size: 11.5px; color: var(--zacht); }
.o-toestel { background: #fbf6ef; border-left: 3px solid var(--oranje); padding: 8px 12px; border-radius: 0 6px 6px 0; }
.o-aannames { border: 1px dashed #c5d1de; border-radius: 8px; padding: 12px 16px; background: #fafcfd; }
.o-aannames h3 { color: var(--zacht); }
.o-aannames ul { margin: 0; padding-left: 18px; font-size: 11.5px; color: #4a586c; }
.o-aannames li { margin-bottom: 2px; }
.o-voet { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--lijn); font-size: 10.5px; color: var(--zacht); }

/* bron */
.bron { max-width: 1320px; margin: 0 auto; padding: 32px 24px 8px; }
.bron h2 { font-size: 20px; margin-bottom: 6px; }
.bron > p { max-width: 90ch; color: var(--zacht); font-size: 13.5px; overflow-wrap: anywhere; }
.tabel-scroll { overflow-x: auto; background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--r); }
#regiotabel { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
#regiotabel th, #regiotabel td { padding: 8px 12px; text-align: left; border-bottom: 1px solid #eef2f6; white-space: nowrap; }
#regiotabel th { font-size: 12px; color: var(--zacht); font-weight: 600; background: #f8fafc; vertical-align: bottom; }
#regiotabel td.num { text-align: right; font-weight: 600; color: var(--ink); }
#regiotabel tbody tr:hover { background: #f6f9fc; }
.voetnoot { font-size: 12.5px !important; }
.voet { max-width: 1320px; margin: 0 auto; padding: 16px 24px 40px; font-size: 12.5px; color: var(--zacht); }

@media (max-width: 1080px) {
  .werkvlak { grid-template-columns: 1fr; }
  .invoer { position: static; max-height: none; }
  .mini { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .offerte { padding: 28px 22px; min-height: 0; }
  .o-twee, .o-hoofd { grid-template-columns: 1fr; }
  .o-getal { text-align: left; }
}
@media (max-width: 560px) {
  .kop-binnen, .werkvlak, .offerte-wrap, .bron { padding-left: 16px; padding-right: 16px; }
  .kop-tekst { border-left: 0; padding-left: 0; }
  .getal { font-size: 52px; }
  .verdeling li { grid-template-columns: 1fr 64px 36px; }
  .v-balk { grid-column: 1 / -1; grid-row: 2; }
  .rij.drie { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .v-balk i { transition: none; } }

/* print: alleen de offerte-sectie, A4 */
@page { size: A4; margin: 0; }
@media print {
  :root { background: #fff; }
  body > *:not(.offerte-wrap) { display: none !important; }
  .offerte-wrap { padding: 0; margin: 0; border: 0; max-width: none; }
  .offerte-balk { display: none; }
  .offerte { box-shadow: none; width: 210mm; height: 297mm; overflow: hidden; padding: 11mm 15mm 9mm; margin: 0; font-size: 11.2px; line-height: 1.42; gap: 11px; }
  .o-kop img { height: 40px; }
  .o-hoofd { padding: 12px 16px; }
  .o-getal span { font-size: 40px; }
  .o-temps th, .o-temps td { padding: 4px 10px; }
  .o-gegevens th, .o-gegevens td { padding: 2.5px 0; }
  .o-verdeling { gap: 5px; }
  .offerte p { margin-bottom: 5px; }
  .o-aannames { padding: 8px 14px; }
  .o-aannames ul { font-size: 10.5px; }
  .o-twee { grid-template-columns: 1.15fr 1fr; }
  .o-hoofd { grid-template-columns: 1fr auto; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
