/* RijkBegin: gedeelde opmaak voor alle pagina's (kleuren, lettertypen, menu, knoppen, kaarten, tools, footer).
   Opmaak die maar op één pagina voorkomt, staat in die pagina zelf. Zie DESIGN.md en LEESMIJ.md. */
:root {
  --gold: #e8c547;
  --gold-light: #f8e08a;
  --gold-dark: #b8962e;
  --cream: #f8f4ec;
  --muted: #c8c0b0;
  --border: rgba(232,197,71,0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
/* groot logo in de nav mag niet voor zijwaarts scrollen zorgen */
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--cream);
  line-height: 1.65;
  background: #06120c url('background.webp') center top / cover no-repeat fixed;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,18,12,0.55) 0%, rgba(6,18,12,0.75) 100%);
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6,18,12,0.65);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 7%;
  display: flex; justify-content: space-between; align-items: center;
  height: 70px;
  overflow: visible;
}
nav .logo {
  position: relative;
  width: 200px;
  height: 70px;
  z-index: 101;
}
nav .logo img {
  height: 350px;
  width: auto;
  position: absolute;
  top: 100%;
  left: -10px;
  transform: translateY(-50%);
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.55));
  pointer-events: none;
}
nav ul { display: flex; list-style: none; gap: 2.6rem; }
nav a { color: var(--cream); text-decoration: none; font-weight: 500; font-size: 0.96rem; }
nav a:hover { color: var(--gold); }

.page-header {
  text-align: center;
  padding: 8rem 7% 4rem;
}
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}
.page-header p {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

.tools-container {
  max-width: 900px;
  margin: 0 auto 6rem;
  padding: 0 7%;
}

.tool-card {
  background: rgba(6,18,12,0.55);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 2.8rem 2.4rem;
  backdrop-filter: blur(16px);
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.8;
}
.tool-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  margin-bottom: 0.6rem;
  text-align: left;
}
.tool-card .tool-desc {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 1.02rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.4rem;
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}
label {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
  font-weight: 500;
}
input[type="number"], input[type="text"], select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(6,18,12,0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--cream);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
input[type="number"]:focus, input[type="text"]:focus, select:focus {
  border-color: var(--gold);
}
.btn-calc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.8rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #06120c;
  border: none;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease, border-color .3s ease, color .3s ease, opacity .3s ease;
}
.btn-calc:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(232,197,71,0.4);
}

.result-box {
  margin-top: 2rem;
  padding: 1.6rem;
  background: rgba(6,18,12,0.4);
  border-radius: 16px;
  border: 1px solid rgba(232,197,71,0.2);
  display: none;
}
.result-box.show { display: block; }
.result-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--gold);
}
.result-item {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(232,197,71,0.15);
  font-size: 1.02rem;
}
.result-item:last-child { border-bottom: none; }
.result-item .label { color: var(--muted); }
.result-item .value { font-weight: 600; color: var(--cream); }
.result-item .value.negative { color: #f87171; }
.result-item .value.positive { color: #4ade80; }

footer {
  text-align: center;
  padding: 3rem 7% 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
footer a { color: var(--gold); text-decoration: none; }
footer a:hover, footer a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* Mobiele navigatie: tot 899px breed. Desktop blijft ongewijzigd. */
.nav-toggle { display: none; }
@media (max-width: 979px) {
  html { scroll-padding-top: 76px; }
  nav {
    flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 0; height: auto; min-height: 64px; padding: 0.4rem 1rem;
  }
  nav .logo { width: auto; height: 52px; display: flex; align-items: center; }
  nav .logo img {
    position: static; transform: none; left: auto; top: auto;
    height: 50px; width: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
  }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; padding: 0;
    background: transparent; border: 1px solid var(--border); border-radius: 12px;
    color: var(--gold); cursor: pointer;
  }
  .nav-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
  nav ul { display: none; flex-direction: column; flex-wrap: nowrap; width: 100%; gap: 0; padding: 0.3rem 0 0.5rem; }
  nav.open ul { display: flex; }
  nav ul li a { display: block; padding: 0.85rem 0.3rem; font-size: 1.05rem; border-top: 1px solid rgba(232,197,71,0.15); }
}

/* Inflatietool */
.form-row.drie { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .form-row.drie { grid-template-columns: 1fr; } }
.result-item { gap: 1rem; }
.result-item .label { flex: 1; }
.result-item .value { text-align: right; white-space: nowrap; }
.result-item .value.positive { color: #4ade80; }
.result-item .value.negative { color: #f87171; }
.verdict { text-align: center; padding: 1.4rem 1rem; border-radius: 16px; margin-bottom: 1rem; border: 1px solid var(--border); }
.verdict.loss { background: rgba(248,113,113,0.1); border-color: rgba(248,113,113,0.5); }
.verdict.win { background: rgba(74,222,128,0.1); border-color: rgba(74,222,128,0.5); }
.verdict-label { color: var(--muted); font-size: 0.95rem; }
.verdict-value { font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 7vw, 3.2rem); font-weight: 700; line-height: 1.2; }
.verdict-pct { font-weight: 600; }
.verdict.loss .verdict-value, .verdict.loss .verdict-pct { color: #f87171; }
.verdict.win .verdict-value, .verdict.win .verdict-pct { color: #4ade80; }
.verdict-uitleg { color: var(--muted); font-size: 0.98rem; margin-bottom: 1.2rem; }
#inflatie-chart { width: 100%; height: 280px; display: block; margin-top: 0.6rem; }
@media (max-width: 640px) { #inflatie-chart { height: 230px; } .tool-card { padding: 2rem 1.2rem; } }
.legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; font-size: 0.82rem; color: var(--muted); margin: 0.6rem 0 1.4rem; }
.legend span { display: inline-flex; align-items: center; gap: 0.45rem; }
.legend i { display: inline-block; width: 22px; height: 0; border-top: 3px solid; }
.legend i.stip { border-top-style: dashed; border-top-width: 2px; }
.legend i.dun { border-top-width: 2px; }
.legend i.vlak { height: 10px; border: 0; border-radius: 3px; width: 14px; }
.disclaimer { color: var(--muted); font-size: 0.82rem; margin-top: 1.2rem; }
.verdict { transition: background-color .5s ease, border-color .5s ease; }
.verdict-value, .verdict-pct { transition: color .5s ease; }
.verdict-value { font-variant-numeric: tabular-nums; }
#inflatie-chart { touch-action: pan-y; cursor: ew-resize; }
.tijd-hint { color: var(--muted); font-size: 0.85rem; margin-top: 0.9rem; }
.tijd { display: flex; align-items: center; gap: 0.9rem; margin: 0.6rem 0 0.2rem; }
.btn-play { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--gold); background: transparent; color: var(--gold); font-size: 0.95rem; cursor: pointer; transition: background .2s; }
.btn-play:hover { background: rgba(232,197,71,0.15); }
.btn-play:focus-visible, #tijdschuif:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
#tijdschuif { flex: 1; -webkit-appearance: none; appearance: none; height: 6px; padding: 0; border: 0; border-radius: 3px; cursor: pointer;
  background: linear-gradient(90deg, #e8c547 var(--vul, 100%), rgba(248,244,236,0.18) var(--vul, 100%)); }
#tijdschuif::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #f8e08a; border: 3px solid #06120c; box-shadow: 0 0 0 1.5px #e8c547; }
#tijdschuif::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #f8e08a; border: 3px solid #06120c; box-shadow: 0 0 0 1.5px #e8c547; }
#tijdschuif::-moz-range-track { background: transparent; }
.moment { background: rgba(6,18,12,0.4); border: 1px solid rgba(232,197,71,0.2); border-radius: 14px; padding: 1rem 1.1rem; margin: 0.8rem 0 1rem; }
.m-titel { font-weight: 600; color: var(--gold); margin-bottom: 0.7rem; }
.m-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
.m-grid span { display: block; color: var(--muted); font-size: 0.76rem; line-height: 1.3; margin-bottom: 0.2rem; }
.m-grid b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.m-grid b.negative { color: #f87171; }
.m-grid b.positive { color: #4ade80; }
@media (max-width: 640px) { .m-grid { grid-template-columns: 1fr 1fr; } }

/* Toegankelijkheid en bediening (geen visuele wijziging in rusttoestand) */
html { color-scheme: dark; }
a, button, .btn, .btn-calc, .period-btn { touch-action: manipulation; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .btn-calc:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
input:focus-visible, select:focus-visible { box-shadow: 0 0 0 3px rgba(232,197,71,0.35); }
/* Menu: klikbaar logo en gouden brochureknop */
nav .logo-link { position: absolute; z-index: 2; border-radius: 12px;
  /* precies over het zichtbare RB-logo, ook het deel dat onder de balk hangt (logo.png: 350px, zichtbaar deel 28-72% x 33-67%) */
  left: calc(-10px + 350px * .284); top: calc(100% - 175px + 350px * .327); width: calc(350px * .435); height: calc(350px * .347); }
@media (max-width: 979px) { nav .logo-link { inset: 0; width: auto; height: auto; border-radius: 8px; } }
nav .logo-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
nav ul { align-items: center; }
nav a[aria-current="page"] { color: var(--gold); }
nav .nav-cta a { display: inline-block; padding: 10px 18px; border-radius: 6px; color: #06120c; font-weight: 600;
  background: linear-gradient(135deg, #fff1b8 0%, #f8e08a 18%, #e8c547 45%, #cba755 72%, #f8e08a 100%);
  border: 1px solid #f8e08a; box-shadow: 0 4px 16px rgba(232,197,71,.3); transition: transform .2s ease, box-shadow .2s ease; }
nav .nav-cta a:hover { color: #06120c; transform: translateY(-1px); box-shadow: 0 6px 22px rgba(232,197,71,.45); }
nav .nav-cta a:focus-visible { outline: 2px solid #fff1b8; outline-offset: 3px; }
@media (max-width: 979px) {
  nav ul { align-items: stretch; }
  nav ul li.nav-cta a { display: block; margin: 12px 0 4px; padding: 0.95rem; text-align: center; border-top: 1px solid #f8e08a; }
}
@media (prefers-reduced-motion: reduce) { nav .nav-cta a { transition: none; } }
@media (min-width: 980px) and (max-width: 1199px) { nav ul { gap: 1.35rem; } nav a { font-size: 0.92rem; } nav .nav-cta a { padding: 9px 14px; } }
@media (min-width: 980px) and (max-width: 1079px) { nav ul { gap: 1rem; } nav a { font-size: 0.88rem; } nav .nav-cta a { padding: 8px 12px; } }
.tool-sprong-oud { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 1.2rem; }
.tool-sprong a { padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(232,197,71,.55); color: var(--cream); text-decoration: none; font-size: .95rem; background: rgba(6,18,12,.45); }
.tool-sprong a:hover { border-color: var(--gold); color: var(--gold); }
#inflatie, #ditjes { scroll-margin-top: 150px; }
@media (max-width: 979px) { #inflatie, #ditjes { scroll-margin-top: 80px; } }
/* Ditjes en datjes */
.uit-raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.uit-tegel { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto auto; column-gap: 10px; row-gap: 6px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: rgba(6,18,12,.45); transition: border-color .2s ease, background .2s ease; }
.uit-tegel { position: relative; transition: border-color .25s ease, background .25s ease, box-shadow .25s ease, transform .25s ease; }
.uit-tegel.gekozen { border-color: var(--gold); background: rgba(232,197,71,.08); }
.uit-tegel:hover, .uit-tegel:focus-within { border-color: var(--gold); background: rgba(232,197,71,.1); box-shadow: 0 0 0 1px rgba(232,197,71,.35), 0 8px 26px rgba(0,0,0,.35), 0 0 24px rgba(232,197,71,.18); transform: translateY(-2px); }
.uit-tegel:hover .uit-icoon { filter: drop-shadow(0 0 6px rgba(232,197,71,.6)); }
.uit-icoon { transition: filter .25s ease; }
.uit-naam-invoer { display: block; resize: none; overflow: hidden; width: 100%; min-width: 0; height: auto; padding: 2px 6px; margin: -2px 0 0 -6px; font: 600 .95rem/1.3 Inter, system-ui, sans-serif; text-align: left; color: var(--cream); background: transparent; border: 1px dashed rgba(232,197,71,.35); border-radius: 6px; box-shadow: none; }
.uit-naam-invoer::placeholder { color: var(--cream); opacity: .9; }
.uit-naam-invoer:focus { outline: none; border-color: var(--gold); border-style: solid; box-shadow: none; }
.uit-weg { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(232,197,71,.4); background: rgba(6,18,12,.8); color: var(--muted); font-size: 1rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.uit-weg:hover { color: #f87171; border-color: #f87171; }
.uit-weg:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.uit-tegel[data-toegevoegd] .uit-naam-invoer { width: calc(100% - 28px); }
.uit-toevoegen { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 120px; padding: 14px; border: 1.5px dashed rgba(232,197,71,.55); border-radius: 14px; background: transparent; color: var(--gold); font: 600 .95rem Inter, system-ui, sans-serif; cursor: pointer; transition: border-color .25s ease, background .25s ease, box-shadow .25s ease, transform .25s ease; }
.uit-toevoegen:hover, .uit-toevoegen:focus-visible { border-color: var(--gold); border-style: solid; background: rgba(232,197,71,.1); box-shadow: 0 0 24px rgba(232,197,71,.18); transform: translateY(-2px); outline: none; }
.uit-toevoegen-plus { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(232,197,71,.6); font-size: 1.5rem; line-height: 1; }
.uit-toevoegen[hidden] { display: none; }
@keyframes uitin { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.uit-tegel.nieuw { animation: uitin .35s ease both; }
.uit-icoon { grid-row: 1 / 3; width: 34px; height: 34px; color: var(--gold); }
.uit-naam { font-weight: 600; font-size: .95rem; line-height: 1.3; color: var(--cream); }
.uit-prijs { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-size: .9rem; color: var(--muted); }
.uit-prijs input[type="text"] { width: 4.6em; padding: 3px 6px; font-size: .9rem; border-radius: 6px; background: transparent; border: 1px dashed rgba(232,197,71,.35); color: var(--cream); }
.uit-teller { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.uit-teller button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(232,197,71,.6); background: transparent; color: var(--gold); font-size: 1.25rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.uit-teller button:hover { background: rgba(232,197,71,.12); }
.uit-teller button:focus-visible, .uit-knoppen button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.uit-aantal { min-width: 1.4em; text-align: center; font-weight: 700; font-size: 1.15rem; color: var(--cream); }
.uit-pw { flex: 1; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.uit-hint { font-size: .85rem; color: var(--muted); margin: .8rem 0 1.6rem; }
.uit-keuzes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 1.2rem 0 1rem; }
.uit-keuze-label { display: block; font-size: .92rem; color: var(--muted); margin-bottom: 6px; }
.uit-knoppen { display: flex; flex-wrap: wrap; gap: 8px; }
.uit-knoppen button { padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(232,197,71,.45); background: transparent; color: var(--cream); font-size: .92rem; cursor: pointer; }
.uit-knoppen button.actief { background: var(--gold); border-color: var(--gold); color: #06120c; font-weight: 600; }
.uit-zin { color: var(--cream); font-size: 1.05rem; margin: .4rem 0 1rem; }
.uit-zin b { color: var(--gold); }
.uit-scenarios { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 1rem; }
.uit-sc { padding: 12px 10px; border: 1px solid var(--border); border-radius: 12px; text-align: center; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.uit-sc span { font-size: .8rem; color: var(--muted); line-height: 1.35; }
.uit-sc em { display: block; font-style: normal; opacity: .8; }
.uit-sc b { font-family: 'Playfair Display', serif; font-size: 1.25rem; color: var(--cream); white-space: nowrap; }
.uit-sc-mid { border-color: var(--gold); background: rgba(232,197,71,.08); }
.uit-sc-mid b { color: var(--gold); }
#uit-grafiek { width: 100%; height: auto; display: block; overflow: visible; }
#uit-grafiek text { font: 12px Inter, system-ui, sans-serif; fill: #c8c0b0; }
.uit-perweek { display: none; font-size: .9rem; color: var(--muted); margin: 0 0 .6rem; }
@media (max-width: 760px) {
  .uit-raster { grid-template-columns: 1fr 1fr; gap: 10px; }
  .uit-perweek { display: block; }
  .uit-tegel { grid-template-columns: 26px 1fr; padding: 12px 10px; column-gap: 8px; }
  .uit-icoon { width: 26px; height: 26px; grid-row: auto; }
  .uit-naam, .uit-naam-invoer { font-size: .88rem; }
  .uit-toevoegen { min-height: 100px; }
  .uit-prijs { grid-column: 1 / -1; }
  .uit-pw { display: none; }
  .uit-teller { justify-content: space-between; }
  .uit-teller button { width: 40px; height: 40px; }
  .uit-scenarios { grid-template-columns: 1fr 1fr; }
  .uit-scenarios .uit-sc:first-child { grid-column: 1 / -1; }
  .uit-keuzes { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .uit-tegel, .uit-toevoegen, .uit-icoon { transition: none; } .uit-tegel:hover, .uit-tegel:focus-within, .uit-toevoegen:hover { transform: none; } .uit-tegel.nieuw { animation: none; } }
.rbt-grafiek { width: 100%; height: auto; display: block; overflow: visible; margin-top: .4rem; }
.rbt-grafiek text { font: 12px Inter, system-ui, sans-serif; fill: #c8c0b0; }
/* Nieuwe tools: velden, balk, vragenlijst, staven */
.rbt-veldhulp { display: block; font-size: .85rem; color: var(--muted); margin-top: 6px; }
.rbt-keuzes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: .4rem 0 1.4rem; }
.rbt-keuzes.een { grid-template-columns: 1fr; }
.rbt-uitkomst { margin-top: .6rem; }
.verdict.neutraal { background: rgba(232,197,71,.06); border-color: rgba(232,197,71,.45); }
.verdict.neutraal .verdict-value { color: var(--gold); }
.verdict.neutraal .verdict-pct { color: var(--cream); font-weight: 500; }
.uit-sc small { display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; }
.uit-scenarios.vier { grid-template-columns: repeat(4, 1fr); }
.uit-scenarios.drie { grid-template-columns: repeat(3, 1fr); }
.rbt-balk { position: relative; height: 18px; border-radius: 999px; background: rgba(248,244,236,.08); border: 1px solid var(--border); overflow: hidden; margin: .4rem 0 .5rem; }
.rbt-balk-vul { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, #b8962e, #e8c547 60%, #f8e08a); box-shadow: 0 0 14px rgba(232,197,71,.45); }
.rbt-balk-vul.vol { background: linear-gradient(90deg, #2f8a55, #4ade80); box-shadow: 0 0 14px rgba(74,222,128,.4); }
.rbt-balk-labels { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); }
.rbt-advies { margin: 1rem 0 1.2rem; padding: 1rem 1.2rem; border-radius: 14px; border: 1px solid var(--border); background: rgba(6,18,12,.45); color: var(--cream); }
.rbt-advies b { color: var(--gold); }
.rbt-opbouw { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.rbt-opbouw li { display: flex; justify-content: space-between; gap: 12px; padding: .55rem 0; border-bottom: 1px solid rgba(232,197,71,.12); color: var(--muted); font-size: .95rem; }
.rbt-opbouw li b { color: var(--cream); white-space: nowrap; }
.rbt-opbouw li.totaal { color: var(--cream); font-weight: 600; border-bottom: 0; }
.rbt-opbouw li.totaal b { color: var(--gold); }
.rbt-pillen { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: .4rem 0 1.4rem; }
.rbt-pil { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(6,18,12,.45); color: var(--cream); font-size: .95rem; text-align: left; cursor: pointer; transition: border-color .25s ease, background .25s ease, box-shadow .25s ease, transform .25s ease; }
.rbt-pil:hover, .rbt-pil:focus-visible { border-color: var(--gold); background: rgba(232,197,71,.08); box-shadow: 0 0 22px rgba(232,197,71,.16); transform: translateY(-2px); outline: none; }
.rbt-pil .vinkje { flex: 0 0 22px; height: 22px; border-radius: 6px; border: 1.5px solid rgba(232,197,71,.7); display: inline-flex; align-items: center; justify-content: center; transition: background .2s ease; }
.rbt-pil[aria-pressed="true"] { border-color: var(--gold); background: rgba(232,197,71,.12); }
.rbt-pil[aria-pressed="true"] .vinkje { background: var(--gold); }
.rbt-pil[aria-pressed="true"] .vinkje::after { content: ''; width: 10px; height: 6px; border-left: 2px solid #06120c; border-bottom: 2px solid #06120c; transform: rotate(-45deg) translate(1px, -1px); }
/* staven */
.rbt-staven { margin: .6rem 0 1.2rem; }
.rbt-staaf { display: grid; grid-template-columns: 11rem 1fr 7.5rem; align-items: center; gap: 14px; padding: .6rem 0; }
.rbt-staaf-label { display: block; font-size: .92rem; color: var(--muted); line-height: 1.3; }
.rbt-staaf-label em { display: block; font-style: normal; font-size: .8rem; opacity: .8; }
.rbt-staaf-baan { display: block; height: 16px; border-radius: 999px; background: rgba(248,244,236,.06); overflow: hidden; }
.rbt-staaf-vul { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #b8962e, #e8c547); }
.rbt-staaf.mid .rbt-staaf-vul { background: linear-gradient(90deg, #e8c547, #f8e08a); box-shadow: 0 0 12px rgba(232,197,71,.45); }
.rbt-staaf.spaar .rbt-staaf-vul { background: #8f897c; }
.rbt-staaf-waarde { display: block; text-align: right; font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--cream); white-space: nowrap; }
.rbt-staaf.mid .rbt-staaf-waarde { color: var(--gold); }
.rbt-staaf-waarde small { display: block; font-family: Inter, system-ui, sans-serif; font-size: .75rem; color: var(--muted); }
.quiz-balk { height: 8px; border-radius: 999px; background: rgba(248,244,236,.08); overflow: hidden; margin-bottom: 1.8rem; }
.quiz-balk-vul { height: 100%; width: 0; background: linear-gradient(90deg, #b8962e, #e8c547, #f8e08a); border-radius: 999px; transition: width .45s cubic-bezier(.22,.61,.36,1); }
.quiz-podium { position: relative; min-height: 340px; }
.quiz-vraag { font-family: 'Playfair Display', serif; font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.3; color: var(--cream); margin: 0 0 1.2rem; }
.quiz-antwoorden { display: grid; gap: 12px; }
.quiz-antwoord { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border); background: rgba(6,18,12,.45); color: var(--cream); font-size: 1rem; text-align: left; cursor: pointer; transition: border-color .25s ease, background .25s ease, box-shadow .25s ease, transform .25s ease; }
.quiz-antwoord:hover, .quiz-antwoord:focus-visible { border-color: var(--gold); background: rgba(232,197,71,.08); box-shadow: 0 0 24px rgba(232,197,71,.16); transform: translateY(-2px); outline: none; }
.quiz-antwoord .letter { flex: 0 0 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(232,197,71,.6); display: inline-flex; align-items: center; justify-content: center; color: var(--gold); font-weight: 600; }
.quiz-antwoord.gekozen { border-color: var(--gold); background: rgba(232,197,71,.14); }
.quiz-antwoord.gekozen .letter { background: var(--gold); color: #06120c; }
.quiz-nav { display: flex; justify-content: space-between; margin-top: 1.2rem; }
.quiz-nav button { background: none; border: 0; color: var(--gold); font-weight: 600; cursor: pointer; padding: 6px 0; font-size: .95rem; }
.quiz-nav button[disabled] { opacity: .35; cursor: default; }
.quiz-scherm { animation: quizin .4s cubic-bezier(.22,.61,.36,1) both; }
.quiz-scherm.terug { animation-name: quizterug; }
@keyframes quizin { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes quizterug { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.quiz-uitslag { text-align: center; }
.quiz-ring { width: 150px; height: 150px; margin: 0 auto 1rem; display: block; }
.quiz-niveau { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 600; color: var(--gold); margin: 0 0 .5rem; }
.quiz-uitleg { color: var(--muted); max-width: 54ch; margin: 0 auto 1.6rem; }
.quiz-punten { list-style: none; padding: 0; margin: 0 0 1.6rem; text-align: left; }
.quiz-punten li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: .8rem 0; border-bottom: 1px solid rgba(232,197,71,.12); }
.quiz-punten .teken { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; }
.quiz-punten .goed .teken { background: rgba(74,222,128,.18); color: #4ade80; }
.quiz-punten .let .teken { background: rgba(232,197,71,.18); color: var(--gold); }
.quiz-punten .stop .teken { background: rgba(248,113,113,.18); color: #f87171; }
.quiz-punten b { display: block; color: var(--cream); font-weight: 600; margin-bottom: 2px; }
.quiz-punten span.tip { color: var(--muted); font-size: .95rem; }
.quiz-punten a { color: var(--gold); }
.quiz-opnieuw { background: none; border: 0; color: var(--gold); font-weight: 600; cursor: pointer; margin-top: 1rem; text-decoration: underline; text-underline-offset: 3px; }
/* overzicht: brede tegel bovenaan */
.tool-tegels .tool-tegel.tool-tegel-breed { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 24px; }
.tool-tegel-breed .tool-tegel-icoon { width: 76px; height: 76px; }
.tool-tegel-breed .tool-tegel-icoon svg { width: 40px; height: 40px; }
.tool-tegel-label { display: inline-block; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--gold); color: #06120c; font-size: .78rem; font-weight: 700; letter-spacing: .03em; }
@media (max-width: 760px) {
  .rbt-keuzes, .rbt-pillen { grid-template-columns: 1fr; }
  .uit-scenarios.vier { grid-template-columns: 1fr 1fr; }
  .uit-scenarios.drie { grid-template-columns: 1fr; }
  .rbt-staaf { grid-template-columns: 1fr auto; row-gap: 6px; }
  .rbt-staaf-baan { grid-column: 1 / -1; grid-row: 2; }
  .tool-tegels .tool-tegel.tool-tegel-breed { flex-direction: column; align-items: flex-start; }
  .quiz-podium { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .rbt-pil, .quiz-antwoord { transition: none; } .rbt-pil:hover, .quiz-antwoord:hover { transform: none; } .quiz-scherm { animation: none; } .quiz-balk-vul { transition: none; } }
/* Tools-overzicht en tegels */
.tool-tegels { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.tool-tegel { display: flex; gap: 18px; align-items: flex-start; padding: 2rem 1.8rem; border-radius: 22px; text-decoration: none; color: var(--cream);
  background: rgba(6,18,12,.55); border: 1px solid var(--border); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease, background .25s ease; }
.tool-tegel:hover, .tool-tegel:focus-visible { border-color: var(--gold); background: rgba(232,197,71,.07); box-shadow: 0 0 0 1px rgba(232,197,71,.35), 0 14px 40px rgba(0,0,0,.4), 0 0 34px rgba(232,197,71,.18); transform: translateY(-3px); outline: none; color: var(--cream); }
.tool-tegel-icoon { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #1c4329;
  background: radial-gradient(circle at 32% 28%, #fff6cf 0%, #f8e08a 22%, #e8c547 48%, #b8962e 78%, #8a6a1f 100%); box-shadow: 0 0 20px rgba(232,197,71,.3); }
.tool-tegel-icoon svg { width: 34px; height: 34px; }
.tool-tegel-tekst { display: flex; flex-direction: column; gap: 8px; }
.tool-tegel-titel { margin: 0; font-family: 'Playfair Display', serif; font-weight: 600; font-size: 1.6rem; line-height: 1.2; color: var(--cream); text-align: left; }
.tool-tegel-uitleg { color: var(--muted); font-size: 1rem; line-height: 1.55; }
.tool-tegel-voorproef { color: var(--gold); font-weight: 600; font-size: .98rem; }
.tool-tegel-open { margin-top: 6px; font-weight: 600; color: var(--cream); }
.tool-tegel-open span { display: inline-block; transition: transform .25s ease; }
.tool-tegel:hover .tool-tegel-open span { transform: translateX(4px); }
.tool-tegel-kicker { font-size: .85rem; font-weight: 600; color: var(--gold); letter-spacing: .02em; }
.tool-tegel-klein { margin-top: 0; }
.tool-tegel-klein .tool-tegel-titel { font-size: 1.35rem; }
.tools-meer { text-align: center; color: var(--muted); margin: 2rem 0 0; font-size: .98rem; }
.tools-meer a { color: var(--gold); }
.tool-tegels .tool-tegel { flex-direction: column; gap: 16px; }
.tool-tegels .tool-tegel-titel { font-size: 1.75rem; }
.terug { margin: 0 0 .8rem; }
.terug a { color: var(--gold); text-decoration: none; font-weight: 600; font-size: .98rem; }
.terug a:hover { text-decoration: underline; }
@media (max-width: 760px) { .tool-tegels { grid-template-columns: 1fr; } .tool-tegel { padding: 1.5rem 1.2rem; gap: 14px; } .tool-tegel-icoon { width: 52px; height: 52px; } .tool-tegel-icoon svg { width: 28px; height: 28px; } .tool-tegel-titel { font-size: 1.4rem; } }
@media (prefers-reduced-motion: reduce) { .tool-tegel, .tool-tegel-open span { transition: none; } .tool-tegel:hover, .tool-tegel:focus-visible { transform: none; } }
/* Uitnodiging na de berekening */
.tool-cta { margin-top: 1.8rem; padding: 1.6rem 1.5rem; border: 1px solid rgba(232,197,71,.4); border-radius: 14px; background: rgba(232,197,71,.06); text-align: center; }
.tool-cta-kop { margin: 0 0 .4rem; font-family: 'Playfair Display', serif; font-weight: 600; font-size: 1.5rem; color: var(--cream); }
div.tool-cta p { color: var(--muted); max-width: 52ch; margin: 0 auto .9rem; }
.tool-cta-knop { display: inline-block; padding: 15px 26px; border-radius: 6px; font-weight: 600; font-size: 1.05rem; color: #06120c !important; text-decoration: none;
  background: linear-gradient(135deg, #fff1b8 0%, #f8e08a 18%, #e8c547 45%, #cba755 72%, #f8e08a 100%); border: 1px solid #f8e08a; box-shadow: 0 8px 24px rgba(232,197,71,.3); transition: transform .2s ease; }
.tool-cta-knop:hover { transform: translateY(-2px); }
.tool-cta-link { display: block; margin-top: .8rem; color: var(--gold); font-size: .95rem; }
@media (prefers-reduced-motion: reduce) { .tool-cta-knop { transition: none; } }
/* Zwevende WhatsApp-knop */
.rb-wa { position: fixed; z-index: 90; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 9px; height: 56px; padding: 0 22px 0 16px; border-radius: 999px; text-decoration: none;
  font: 600 16px/1 Inter, system-ui, sans-serif; color: #06120c; border: 1px solid #f8e08a;
  background: linear-gradient(135deg, #fff1b8 0%, #f8e08a 18%, #e8c547 45%, #cba755 72%, #f8e08a 100%);
  box-shadow: 0 0 0 4px rgba(6,18,12,.55), 0 10px 28px rgba(0,0,0,.45), 0 0 26px rgba(232,197,71,.35);
  transition: transform .2s ease, box-shadow .2s ease; animation: rbwain .6s cubic-bezier(.16,1,.3,1) 1s backwards; }
.rb-wa svg { width: 26px; height: 26px; color: #1c4329; flex-shrink: 0; }
.rb-wa:hover { transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(6,18,12,.55), 0 14px 34px rgba(0,0,0,.5), 0 0 34px rgba(232,197,71,.5); color: #06120c; }
.rb-wa:focus-visible { outline: 2px solid #fff1b8; outline-offset: 4px; }
/* WhatsApp-knop: meer glans bij aanwijzen */
.rb-wa { overflow: hidden; isolation: isolate; transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, filter .25s ease; }
.rb-wa::after { content: ''; position: absolute; top: -10%; left: -70%; width: 45%; height: 120%; pointer-events: none; z-index: 1; opacity: 0;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.85), transparent); transform: skewX(-20deg); }
.rb-wa > * { position: relative; z-index: 2; }
.rb-wa:hover, .rb-wa:focus-visible { transform: translateY(-3px) scale(1.07); filter: brightness(1.08) saturate(1.1);
  box-shadow: 0 0 0 5px rgba(6,18,12,.55), 0 18px 40px rgba(0,0,0,.5), 0 0 46px rgba(248,224,138,.9), 0 0 90px rgba(232,197,71,.5); }
.rb-wa:hover::after, .rb-wa:focus-visible::after { animation: rbwaglans .85s ease-out; }
.rb-wa:hover svg, .rb-wa:focus-visible svg { animation: rbwatik .6s ease; }
.rb-wa:active { transform: translateY(-1px) scale(1.02); }
@keyframes rbwaglans { 0% { left: -70%; opacity: 1; } 100% { left: 135%; opacity: 1; } }
@keyframes rbwatik { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 55% { transform: rotate(10deg); } 80% { transform: rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .rb-wa:hover, .rb-wa:focus-visible { transform: none; } .rb-wa:hover::after, .rb-wa:focus-visible::after, .rb-wa:hover svg { animation: none; } }
@keyframes rbwain { from { opacity: 0; transform: translateY(16px) scale(.9); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) { .rb-wa { width: 58px; height: 58px; padding: 0; justify-content: center; right: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); } .rb-wa svg { width: 30px; height: 30px; } .rb-wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } footer { padding-bottom: 96px !important; } }
@media (prefers-reduced-motion: reduce) { .rb-wa { animation: none; transition: none; } }
@media print { .rb-wa { display: none; } }
.geen-afbreek { white-space: nowrap; }

/* Footer: op elke pagina gelijk. Let op: deze regels staan ook in index.html, want de homepage laadt rijkbegin.css niet. */
.rb-foot { padding: 3.5rem 24px 2.2rem; text-align: center; color: var(--muted); background: rgba(6,18,12,.6); border-top: 1px solid var(--border); font-size: 1rem; line-height: 1.6; }
.rb-foot-logo { display: inline-block; border-radius: 12px; }
.rb-foot-logo img { display: block; height: 76px; width: auto; margin: 0; }
.rb-foot-slogan { margin: .9rem 0 1.1rem; font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--cream); }
.rb-foot ul { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; display: flex; flex-wrap: wrap; justify-content: center; column-gap: 26px; }
.rb-foot li { margin: 0; padding: 0; }
.rb-foot a { display: inline-flex; align-items: center; min-height: 44px; margin: 0; color: var(--gold); font-size: 1rem; text-decoration: none; white-space: nowrap; }
.rb-foot a:hover, .rb-foot a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.rb-foot a[aria-current] { color: var(--cream); }
.rb-foot-lijn { width: 64px; height: 1px; margin: .9rem auto; border: 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.rb-foot ul.rb-foot-klein a { font-size: .92rem; }
.rb-foot p.rb-foot-klein { max-width: 60ch; margin: .5rem auto 0; font-size: .875rem; }
@media (max-width: 600px) { .rb-foot { padding: 2.8rem 18px 5.5rem; } .rb-foot ul { column-gap: 20px; } }
