:root {
    --bg: #f2f6f5;
    --card: #ffffff;
    --ink: #1d2b2a;
    --muted: #586a67;
    --brand: #1f6b66;
    --brand2: #2e8a82;
    --accent: #d9822b;
    --line: #d9e4e1;
    --soft: #eaf3f1;
    --warnbg: #fdf3e3;
    --warnline: #efd3a4;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6; color: var(--ink); background: var(--bg); min-height: 100vh;
}
a { color: var(--brand); }
img, svg { max-width: 100%; }
.container { max-width: 860px; margin: 0 auto; padding: 16px; }
.topnav { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: space-between; padding: 4px 0 16px; font-size: .95em; }
.topnav .logo { font-weight: 700; color: var(--brand); text-decoration: none; font-size: 1.15em; }
.topnav nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.topnav nav a { color: var(--brand); text-decoration: none; }
.topnav nav a:hover { text-decoration: underline; }
.header { text-align: center; margin-bottom: 18px; }
.header h1 { font-size: 2.1em; line-height: 1.2; color: var(--brand); margin-bottom: 8px; }
.header p { font-size: 1.05em; color: var(--muted); max-width: 640px; margin: 0 auto; }
.card { background: var(--card); border-radius: 14px; padding: 24px; box-shadow: 0 4px 18px rgba(20,60,55,.08); margin-bottom: 20px; }
.card h2 { color: var(--brand); font-size: 1.45em; line-height: 1.25; margin-bottom: 12px; }
.card h3 { font-size: 1.12em; margin: 20px 0 6px; }
.card p { margin-bottom: 12px; }
.card ul, .card ol { margin: 0 0 12px 22px; }
.card li { margin-bottom: 6px; }

/* Formulier */
label, .seg legend { display: block; font-weight: 600; margin-bottom: 4px; font-size: .95em; }
input, select { width: 100%; padding: 11px 12px; border: 2px solid var(--line); border-radius: 10px; font-size: 16px; font-family: inherit; background: #fff; color: var(--ink); }
input:focus, select:focus { outline: none; border-color: var(--brand2); }
input[aria-invalid="true"] { border-color: #b3261e; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 12px; }
.seg { border: 0; margin-bottom: 12px; min-width: 0; }
.seg-knoppen { display: flex; gap: 10px; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { flex: 1; text-align: center; border: 2px solid var(--line); border-radius: 10px; padding: 10px; cursor: pointer; margin: 0; background: #fff; }
.seg input:checked + label { background: var(--brand); border-color: var(--brand); color: #fff; }
.seg input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.err { display: block; color: #b3261e; font-size: .88em; min-height: 0; }
.err:empty { display: none; }
.meet { margin: 0 0 12px; }
.meet summary { cursor: pointer; color: var(--brand); font-size: .95em; margin-bottom: 6px; }
.hint { font-size: .88em; color: var(--muted); margin: 6px 0 14px; }
.btn { background: var(--brand); color: #fff; border: 0; border-radius: 10px; padding: 13px 22px; font-size: 17px; font-weight: 600; font-family: inherit; cursor: pointer; }
.btn:hover { background: var(--brand2); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn.wide { width: 100%; }

/* Uitslag */
.uitslag { scroll-margin-top: 12px; }
.uitslag:not(:empty) { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.uitslag h2.th { font-size: 1.7em; margin-bottom: 2px; }
.uitslag .sub { color: var(--muted); }
.uitslag .stat { font-size: 1.12em; margin-bottom: 4px; }
.uitslag .leeg { background: var(--soft); border-radius: 10px; padding: 10px 14px; }
.signaal { background: var(--warnbg); border: 1px solid var(--warnline); border-radius: 12px; padding: 14px 16px; margin: 14px 0; }
.signaal strong { display: block; margin-bottom: 4px; }
.twijfel { background: var(--soft); border-radius: 10px; padding: 10px 14px; }
.legenda { font-size: .88em; color: var(--muted); }
.legenda .dot, .legenda .bar { display: inline-block; vertical-align: middle; background: var(--accent); }
.legenda .dot { width: 10px; height: 10px; border-radius: 50%; }
.legenda .bar { width: 6px; height: 14px; border-radius: 2px; opacity: .55; }

/* Groeicurve */
svg.curve { width: 100%; height: auto; display: block; margin: 12px 0 4px; }
.curve text { font-family: inherit; font-size: 12px; fill: var(--muted); }
.curve .lbl { font-size: 12px; fill: var(--ink); }
/* De SVG schaalt op mobiel naar ongeveer de helft; grotere letters houden de labels leesbaar. */
@media (max-width: 640px) { .curve text, .curve .lbl { font-size: 19px; } .curve .kind { r: 9px; } }
.curve .grid { stroke: #e6eeec; stroke-width: 1; }
.curve .sd { fill: none; stroke: var(--brand2); }
.curve .sd0 { stroke: var(--brand); stroke-width: 2.6; }
.curve .sd1 { stroke-width: 1.6; }
.curve .sd2 { stroke-width: 1.4; stroke-dasharray: 5 4; }
.curve .band { fill: var(--accent); opacity: .35; }
.curve .th { stroke: var(--accent); stroke-width: 3; }
.curve .kind { fill: var(--accent); stroke: #fff; stroke-width: 2; }

.note { font-size: .88em; color: var(--muted); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-size: .97em; }
table.t th, table.t td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
table.t th { background: var(--soft); color: var(--brand); }
table.t td.num, table.t th.num { text-align: right; white-space: nowrap; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 0 0 20px; }
.mini { background: var(--card); border-radius: 12px; padding: 16px 18px; box-shadow: 0 4px 14px rgba(20,60,55,.07); text-decoration: none; color: var(--ink); display: block; border: 1px solid transparent; }
.mini:hover { border-color: var(--brand2); }
.mini h3 { color: var(--brand); font-size: 1.05em; margin: 0 0 4px; }
.mini p { color: var(--muted); font-size: .92em; margin: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { font-weight: 600; cursor: pointer; color: var(--brand); }
.faq details p { margin: 8px 0 0; }
.stelling { font-size: 1.15em; font-weight: 600; text-align: center; max-width: 640px; margin: 8px auto 24px; color: var(--brand); }
.disclaimer { font-size: .9em; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: 12px; padding: 14px 16px; margin: 10px 0 18px; }
.footer { text-align: center; padding: 10px 0 20px; font-size: .86em; color: var(--muted); }
.footer a { color: var(--brand); }
.breadcrumb { font-size: .9em; color: var(--muted); margin-bottom: 8px; }
.breadcrumb a { color: var(--brand); text-decoration: none; }

@media (max-width: 640px) {
    .container { padding: 12px 16px; }
    .header { margin-bottom: 14px; }
    .header h1 { font-size: 1.65em; }
    .header p { font-size: 1em; }
    .card { padding: 18px 16px; }
    .row { grid-template-columns: 1fr; gap: 10px; }
    .topnav nav { width: 100%; gap: 4px 14px; font-size: .92em; }
    table.t { font-size: .9em; }
    table.t th, table.t td { padding: 7px 6px; }
}
