:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #16202e;
  --muted: #5c6b7d;
  --line: #e4e9f0;
  --brand: #1667d6;
  --brand-dark: #0f4ea8;
  --brand-tint: #eaf1fd;
  --accent: #12b886;
  --accent-tint: #e6f7f1;
  --warn-bg: #fff8e6;
  --warn-line: #f3dfa0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22,32,46,.05), 0 8px 24px rgba(22,32,46,.06);
  --maxw: 760px;
}
* { 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;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
a { color: var(--brand); }

/* Header */
header.site {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; max-width: 1060px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.logo b { color: var(--brand); }
.logo .tld { color: var(--accent); }
.logo-mark { width: 28px; height: 28px; flex: none; display: block; }
header.site nav { display: flex; align-items: center; }
header.site nav a { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 600; padding: 6px 0; margin-left: 22px; border-bottom: 2px solid transparent; }
header.site nav a:hover { color: var(--brand); }
header.site nav a.active { color: var(--ink); border-bottom-color: var(--brand); }

/* Burger + mobiel menu (CSS-only, checkbox hack) */
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; margin: -8px -8px -8px 0; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-backdrop { display: none; }
@media (max-width: 860px) {
  header.site .wrap { position: relative; }
  .burger { display: flex; }
  header.site nav {
    display: none; position: absolute; top: 60px; left: -20px; right: -20px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 6px 20px 12px; box-shadow: var(--shadow); z-index: 45;
  }
  .nav-toggle:checked ~ nav { display: flex; }
  header.site nav a { margin: 0; padding: 14px 2px; border-top: 1px solid var(--line); border-bottom: 0; font-size: 1.02rem; }
  header.site nav a:first-of-type { border-top: 0; }
  header.site nav a.active { color: var(--brand); }
  .nav-toggle:checked ~ .nav-backdrop { display: block; position: fixed; inset: 60px 0 0; background: rgba(22,32,46,.28); z-index: 35; }
  .nav-toggle:checked ~ .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero { padding: 46px 0 8px; text-align: center; }
.hero h1 { font-size: clamp(1.7rem, 5vw, 2.5rem); line-height: 1.15; letter-spacing: -.02em; }
.hero p { color: var(--muted); max-width: 560px; margin: 14px auto 0; font-size: 1.08rem; }

/* Breadcrumb */
.crumb { font-size: .85rem; color: var(--muted); padding: 18px 0 0; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--brand); }

/* Calculator card grid (hub) */
.grid-title { font-size: 1.4rem; letter-spacing: -.01em; margin: 30px 0 -4px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; padding: 18px 0 10px; }
.tool {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; text-decoration: none; color: inherit;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.tool:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #cfdcf0; }
.tool .ico { font-size: 1.5rem; }
.tool h3 { font-size: 1.05rem; margin: 8px 0 4px; }
.tool p { font-size: .9rem; color: var(--muted); }
.tool.soon { opacity: .6; pointer-events: none; }
.tool .badge { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; margin-top: 8px; }

/* Calculator panel */
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px; margin: 24px 0;
}
.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 7px; }
.hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.input-euro { position: relative; }
.input-euro::before {
  content: "€"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-weight: 600;
}
.input-euro input[type="text"], .input-euro input[type="number"] { padding-left: 30px; }
input[type="number"], input[type="text"], select {
  width: 100%; font-family: inherit; font-size: 1.05rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid #c9d4e2; border-radius: 10px; background: #fff;
}
input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }

/* Segmented toggle */
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button {
  font-family: inherit; font-size: .92rem; font-weight: 600; color: var(--muted);
  background: transparent; border: 0; border-radius: 7px; padding: 8px 16px; cursor: pointer;
}
.seg button.on { background: #fff; color: var(--brand); box-shadow: var(--shadow); }

/* Checkbox row */
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .95rem; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); flex: none; }
.check .sub { color: var(--muted); font-size: .85rem; }

/* Result */
.result { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 24px 26px; margin: 24px 0; }
.result .big { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.result .big .label { font-size: 1rem; opacity: .85; }
.result .big .val { font-size: 2.3rem; font-weight: 800; letter-spacing: -.02em; }
.result .sub { opacity: .8; font-size: .9rem; margin-top: 4px; }

/* Breakdown table */
.breakdown { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .96rem; }
.breakdown th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 6px 0; }
.breakdown td { padding: 9px 0; border-top: 1px solid var(--line); }
.breakdown td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.breakdown tr.total td { border-top: 2px solid var(--ink); font-weight: 800; }
.breakdown tr.sub td { color: var(--muted); }
.breakdown td.neg { color: #d6336c; }
.breakdown td.pos { color: var(--accent); }

/* Ad slot — leeg = onzichtbaar (geen lelijke placeholder tijdens review/pre-index).
   Wordt zichtbaar zodra er een advertentie in geladen wordt. */
.ad-slot { margin: 26px 0; text-align: center; }
.ad-slot:empty { display: none; margin: 0; }

/* Content prose */
.prose { margin: 34px 0; }
.prose h2 { font-size: 1.35rem; margin: 28px 0 10px; letter-spacing: -.01em; }
.prose h3 { font-size: 1.08rem; margin: 20px 0 6px; }
.prose p { margin-bottom: 12px; }
.prose ul { margin: 0 0 14px 20px; }
.prose li { margin-bottom: 6px; }

.prose.related { border-top: 1px solid var(--line); padding-top: 14px; }
.prose.related ul { margin-bottom: 0; }

/* "Laatst bijgewerkt" recency-regel */
.updated { font-size: .82rem; color: var(--muted); margin: 0 0 4px; font-weight: 600; }

/* Content-datatabel (bruto-netto tabel e.d.) */
.prose table.data { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: .95rem; }
.prose table.data th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 2px solid var(--line); }
.prose table.data td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
.prose table.data tbody tr:nth-child(odd) td { background: var(--bg); }
.prose table.data td.num, .prose table.data th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin-top: 10px; color: var(--muted); }

/* Disclaimer */
.disclaimer { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 10px; padding: 14px 18px; font-size: .88rem; color: #7a6212; margin: 20px 0; }

/* Footer */
footer.site { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; padding: 28px 0; font-size: .88rem; color: var(--muted); }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--brand); }
footer.site .row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 10px; }
footer.site .legal { margin-top: 6px; font-size: .85rem; }
footer.site .legal a { margin-right: 4px; }
footer.site .biz { margin-top: 8px; font-size: .82rem; color: var(--muted); }
footer.site .linkbtn { background: none; border: 0; padding: 0; margin-right: 4px; font: inherit; font-size: inherit; color: var(--muted); cursor: pointer; }
footer.site .linkbtn:hover { color: var(--brand); }
footer.site .foot-logo { color: var(--ink); font-size: 1.05rem; margin-bottom: 14px; }
footer.site .foot-logo b { color: var(--brand); }
footer.site .foot-logo .logo-mark { width: 26px; height: 26px; }

/* Cookie consent banner */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(22,32,46,.1); }
.consent-in { max-width: var(--maxw); margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.consent-in p { flex: 1 1 300px; margin: 0; font-size: .9rem; color: var(--muted); }
.consent-btns { display: flex; gap: 10px; flex: none; }
.consent button { font-family: inherit; font-weight: 700; font-size: .9rem; border-radius: 8px; padding: 11px 18px; cursor: pointer; }
.consent .btn-ghost { background: var(--bg); color: var(--ink); border: 1px solid #c9d4e2; font-weight: 600; }
.consent .btn-primary { background: var(--brand); color: #fff; border: 0; }
.consent .btn-primary:hover { background: var(--brand-dark); }
@media (max-width: 520px) { .consent-btns { width: 100%; } .consent button { flex: 1; } }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .result .big .val { font-size: 1.9rem; }
  .panel { padding: 20px; }
}
