/* Componenten van notarisspreekuur.nl. Kleuren, maten en lettertype komen uit tokens.css (kopie van
   docs/huisstijl/tokens.css; HostTests controleert dat ze gelijk zijn). Overgenomen uit het prototype (prompt 01),
   waar ze met axe op 375 en 1280 px zijn getoetst. Tabellen met class "stapel" krijgen hun ARIA-rollen in de markup. */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-basis);
  font-size: var(--tekst-basis);
  font-weight: var(--gewicht-normaal);
  line-height: var(--regelafstand);
  color: var(--kleur-tekst);
  background: var(--kleur-achtergrond);
  overflow-wrap: break-word;
  /* De voet onderaan het scherm, ook op een korte pagina. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

img { display: block; max-width: 100%; height: auto; }

.icoon {
  display: inline-block;
  flex: none;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.25em;
}

h1, h2, h3 {
  margin: 0 0 var(--ruimte-4);
  font-weight: var(--gewicht-vet);
  line-height: var(--regelafstand-kop);
}
h1 { font-size: var(--kop-1); }
h2 { font-size: var(--kop-2); margin-top: var(--ruimte-7); }
h3 { font-size: var(--kop-3); margin-top: var(--ruimte-5); }
h1 + h2, .kaart > h2:first-child, .kaart > h3:first-child { margin-top: 0; }

p, ul, ol, dl { margin: 0 0 var(--ruimte-4); max-width: var(--regelbreedte); }
li + li { margin-top: var(--ruimte-1); }

a { color: var(--kleur-primair); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--kleur-primair-hover); text-decoration-thickness: 2px; }

.intro { font-size: var(--tekst-groot); }
.gedempt { color: var(--kleur-tekst-gedempt); }
.klein { font-size: var(--tekst-klein); }

/* Ruimte en kolommen */
.binnen {
  max-width: var(--pagina-breedte);
  margin: 0 auto;
  padding-inline: var(--ruimte-4);
}
@media (min-width: 48rem) {
  .binnen { padding-inline: var(--ruimte-6); }
}

.kolommen { display: grid; gap: var(--ruimte-6); align-items: start; }
@media (min-width: 64rem) {
  .kolommen { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}
.kolommen > * > :first-child { margin-top: 0; }

/* Overslaan, prototypebalk, kop */
.sla-over {
  position: absolute;
  left: var(--ruimte-4);
  top: -10rem;
  z-index: 10;
  padding: var(--ruimte-3) var(--ruimte-4);
  background: var(--kleur-vlak);
  color: var(--kleur-tekst);
  font-weight: var(--gewicht-half);
}
.sla-over:focus { top: var(--ruimte-2); }

.kop { background: var(--kleur-vlak); border-bottom: 1px solid var(--kleur-rand); }
.kop-boven {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--ruimte-3) var(--ruimte-6);
  padding-block: var(--ruimte-4);
}
.logo { display: inline-block; }
.logo img { height: 40px; width: auto; }
.kop-bel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ruimte-1) var(--ruimte-3);
  margin: 0;
}
.kop-bel .icoon { color: var(--kleur-accent); }
.kop-tijden { color: var(--kleur-tekst-gedempt); }
.kop-wie p { margin: 0; font-size: var(--tekst-klein); }
.kop-wie .kop-omgeving { font-weight: var(--gewicht-vet); font-size: var(--tekst-basis); }
.kop-wie a { display: inline-block; padding-block: var(--ruimte-2); }

.hoofdmenu { border-top: 1px solid var(--kleur-rand); }
.hoofdmenu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--ruimte-5);
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: none;
}
.hoofdmenu li + li { margin-top: 0; }
.hoofdmenu a {
  display: inline-flex;
  align-items: center;
  min-height: var(--raakvlak-min);
  border-bottom: 4px solid transparent;
  color: var(--kleur-tekst);
  font-weight: var(--gewicht-half);
  text-decoration: none;
}
.hoofdmenu a:hover { text-decoration: underline; }
.hoofdmenu a[aria-current="page"] { border-bottom-color: var(--kleur-primair); color: var(--kleur-primair); }

.hulpbalk { background: var(--kleur-accent-tint); }
.hulpbalk p {
  display: flex;
  gap: var(--ruimte-2);
  align-items: flex-start;
  margin: 0;
  padding-block: var(--ruimte-2);
  font-size: var(--tekst-klein);
  max-width: none;
}
.hulpbalk .icoon { color: var(--kleur-accent); margin-top: 0.15em; }

main { display: block; padding-block: var(--ruimte-6) var(--ruimte-8); }
main:focus { outline: none; }

/* Snel inloggen (alleen Development): duidelijk anders dan de echte inlog. */
.snel-inloggen { margin-block: var(--ruimte-5); padding: var(--ruimte-4) var(--ruimte-5); border: 2px dashed var(--kleur-waarschuwing);
  border-radius: var(--hoek-kaart); background: var(--kleur-waarschuwing-tint); }
.snel-inloggen h2 { margin-top: 0; font-size: var(--kop-3); }
.snel-inloggen .knoppen { margin-bottom: 0; }

/* Taalkeuze in de kop en de melding bij een vertaalde pagina (Jan, 10-11-2026). */
/* Alleen voor schermlezers. */
.visueel-verborgen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.taalkeuze { position: relative; margin-inline-start: auto; }
.taalkeuze > summary { gap: var(--ruimte-2); list-style: none; cursor: pointer; }
.taalkeuze > summary::-webkit-details-marker { display: none; }
.taalkeuze-lijst {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + var(--ruimte-1));
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(2, minmax(9rem, 1fr));
  gap: var(--ruimte-1);
  width: max-content;
  max-width: calc(100vw - 2 * var(--ruimte-4));
  padding: var(--ruimte-2);
  border: 1px solid var(--kleur-rand);
  border-radius: var(--hoek-kaart);
  background: var(--kleur-vlak);
  box-shadow: var(--schaduw-kaart);
}
.taalkeuze-lijst button {
  min-height: var(--raakvlak-min);
  padding: var(--ruimte-1) var(--ruimte-3);
  border: 0;
  border-radius: var(--hoek);
  background: transparent;
  color: var(--kleur-tekst);
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.taalkeuze-lijst button { display: flex; align-items: center; gap: var(--ruimte-2); }
/* Taalcode in plaats van een vlag (Jan, 10-11-2026). */
.taalcode {
  display: inline-grid;
  place-items: center;
  min-width: 2.25rem;
  padding: 0.1rem 0.3rem;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: var(--tekst-klein);
  font-weight: var(--gewicht-vet);
  letter-spacing: 0.04em;
  line-height: 1.2;
  direction: ltr;
}
.taalkeuze-lijst button:hover { background: var(--kleur-accent-tint); }
.taalkeuze-lijst button[aria-current="true"] { font-weight: var(--gewicht-vet); background: var(--kleur-accent-tint); }
.vertaalbalk { background: var(--kleur-accent-tint); border-bottom: 1px solid var(--kleur-rand); padding-block: var(--ruimte-2); }
.vertaalbalk .binnen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ruimte-2) var(--ruimte-4); }
.vertaalbalk p { margin: 0; }

/* Demobalk (Demo:Aan): boven alles, niet weg te klikken. */
.demobalk { background: var(--kleur-waarschuwing-tint); border-bottom: 2px solid var(--kleur-waarschuwing); padding-block: var(--ruimte-2); font-weight: var(--gewicht-vet); }

/* Voet */
.voet {
  background: var(--kleur-vlak);
  border-top: 1px solid var(--kleur-rand);
  padding-block: var(--ruimte-6);
}
.voet-kolommen { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ruimte-5); }
@media (min-width: 48rem) {
  .voet-kolommen { grid-template-columns: 1fr 1fr; }
}
.voet-kop { font-size: var(--kop-3); margin-top: 0; }
/* Links naast elkaar laten doorlopen, ook op een telefoon: anders wordt de voet een lange lijst. */
.voet-links { padding-left: 0; margin-bottom: 0; list-style: none; display: flex; flex-wrap: wrap; column-gap: var(--ruimte-5); }
.voet-links li + li { margin-top: 0; }
.voet-links a { display: block; padding-block: var(--ruimte-2); }

/* Knoppen */
.knop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ruimte-2);
  min-height: var(--raakvlak-min);
  padding: var(--ruimte-2) var(--ruimte-5);
  border: 2px solid var(--kleur-primair);
  border-radius: var(--hoek);
  background: var(--kleur-primair);
  color: var(--kleur-op-primair);
  font: inherit;
  font-weight: var(--gewicht-half);
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.knop:hover { background: var(--kleur-primair-hover); border-color: var(--kleur-primair-hover); color: var(--kleur-op-primair); }
.knop-tweede { background: var(--kleur-vlak); border-color: var(--kleur-accent); color: var(--kleur-accent); }
.knop-tweede:hover { background: var(--kleur-accent-tint); border-color: var(--kleur-accent); color: var(--kleur-accent); }
.knoppen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ruimte-3) var(--ruimte-4);
  margin-block: var(--ruimte-5);
  padding-left: 0;
  list-style: none;
}
.knoppen > li { margin: 0; }

/* Vragenlijst ("Heb ik een notaris nodig?") */
.vragenlijst { display: grid; gap: var(--ruimte-3); margin: 0 0 var(--ruimte-6); padding: 0; list-style: none; counter-reset: vraag; }
.vragenlijst li { display: flex; gap: var(--ruimte-4); align-items: flex-start; margin: 0; padding: var(--ruimte-4) var(--ruimte-5);
  border-radius: var(--hoek-kaart); background: var(--kleur-vlak); box-shadow: var(--schaduw-kaart); counter-increment: vraag; }
.vragenlijst li::before { content: counter(vraag); flex: none; display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border-radius: 50%; background: var(--kleur-accent-tint); color: var(--kleur-accent); font-weight: var(--gewicht-vet); }
.vragenlijst .vraag { margin: 0.3rem 0 0; font-weight: var(--gewicht-half); }

/* Meldingen: altijd icoon + woord, nooit alleen kleur */
.melding {
  display: flex;
  gap: var(--ruimte-3);
  align-items: flex-start;
  max-width: 48rem;
  margin-block: var(--ruimte-5);
  padding: var(--ruimte-4) var(--ruimte-5);
  border-left: 6px solid var(--kleur-info);
  border-radius: var(--hoek);
  background: var(--kleur-info-tint);
}
.melding > .icoon { width: 1.5rem; height: 1.5rem; margin-top: 0.1em; color: var(--kleur-info); }
.melding > div > :last-child { margin-bottom: 0; }
.melding h2, .melding h3 { margin-top: 0; font-size: var(--kop-3); }
.melding--let-op { background: var(--kleur-waarschuwing-tint); border-color: var(--kleur-waarschuwing); }
.melding--let-op > .icoon { color: var(--kleur-waarschuwing); }
.melding--succes { background: var(--kleur-succes-tint); border-color: var(--kleur-succes); }
.melding--succes > .icoon { color: var(--kleur-succes); }
.melding--fout { background: var(--kleur-fout-tint); border-color: var(--kleur-fout); }
.melding--fout > .icoon { color: var(--kleur-fout); }
.melding:focus { outline: var(--focus-breedte) solid var(--focus-kleur); outline-offset: var(--focus-afstand); }

/* Kaarten en tegels */
.kaart {
  padding: var(--ruimte-5);
  border-radius: var(--hoek-kaart);
  background: var(--kleur-vlak);
  box-shadow: var(--schaduw-kaart);
}
.kaart > :last-child { margin-bottom: 0; }
.kaart + .kaart { margin-top: var(--ruimte-5); }
.kaart--uitgelicht { background: var(--kleur-primair-tint); box-shadow: none; }

.raster {
  display: grid;
  gap: var(--ruimte-4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  margin: 0 0 var(--ruimte-5);
  padding: 0;
  list-style: none;
  max-width: none;
}
.raster > li { margin: 0; }
.raster .kaart { height: 100%; }
.raster .kaart + .kaart { margin-top: 0; }
.kaart-kop { display: flex; gap: var(--ruimte-3); align-items: center; margin: 0 0 var(--ruimte-3); font-size: var(--kop-3); }
.kaart-kop .icoon { width: 2rem; height: 2rem; color: var(--kleur-accent); }

.tegel {
  display: flex;
  gap: var(--ruimte-4);
  align-items: center;
  height: 100%;
  min-height: 5rem;
  padding: var(--ruimte-4) var(--ruimte-5);
  border: 2px solid var(--kleur-vlak);
  border-radius: var(--hoek-kaart);
  background: var(--kleur-vlak);
  box-shadow: var(--schaduw-kaart);
  color: var(--kleur-tekst);
  font-weight: var(--gewicht-half);
  text-decoration: none;
}
.tegel:hover { border-color: var(--kleur-primair); color: var(--kleur-tekst); text-decoration: underline; }
.tegel .icoon { width: 2.25rem; height: 2.25rem; color: var(--kleur-accent); }

/* Lijst met kaarten in de omgevingen */
.rijen { margin: 0 0 var(--ruimte-5); padding: 0; list-style: none; max-width: none; }
.rijen > li + li { margin-top: var(--ruimte-3); }
.rij {
  display: grid;
  gap: var(--ruimte-2) var(--ruimte-5);
  padding: var(--ruimte-4) var(--ruimte-5);
  border-radius: var(--hoek-kaart);
  background: var(--kleur-vlak);
  box-shadow: var(--schaduw-kaart);
}
@media (min-width: 48rem) {
  .rij { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}
.rij p { margin: 0; }
.rij-titel { font-weight: var(--gewicht-vet); }
.rij-labels { display: flex; flex-wrap: wrap; gap: var(--ruimte-2); }

/* Labels (status, urgentie) */
.label {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.1em 0.65em;
  border-radius: 999px;
  font-size: var(--tekst-klein);
  font-weight: var(--gewicht-half);
  line-height: 1.5;
  white-space: nowrap;
}
.label .icoon { width: 1em; height: 1em; vertical-align: 0; }
.label--info { background: var(--kleur-accent-tint); color: var(--kleur-accent); }
.label--let-op { background: var(--kleur-waarschuwing-tint); color: var(--kleur-waarschuwing); }
.label--succes { background: var(--kleur-succes-tint); color: var(--kleur-succes); }
.label--fout { background: var(--kleur-fout-tint); color: var(--kleur-fout); }
.label--merk { background: var(--kleur-primair-tint); color: var(--kleur-primair-hover); }
.label--neutraal { background: var(--kleur-achtergrond); color: var(--kleur-tekst); box-shadow: inset 0 0 0 1px var(--kleur-rand-invoer); }

/* Gegevens */
.gegevens { display: grid; gap: var(--ruimte-1) var(--ruimte-5); max-width: none; }
.gegevens dt { font-weight: var(--gewicht-half); }
.gegevens dd { margin: 0 0 var(--ruimte-3); }
@media (min-width: 40rem) {
  .gegevens { grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr); }
  .gegevens dd { margin: 0; }
}

/* Tabellen */
.tabel-wrap {
  overflow-x: auto;
  max-width: 100%;
  margin-block: var(--ruimte-4) var(--ruimte-5);
  border-radius: var(--hoek-kaart);
  background: var(--kleur-vlak);
  box-shadow: var(--schaduw-kaart);
}
table { width: 100%; border-collapse: collapse; font-size: var(--tekst-klein); }
caption { padding: var(--ruimte-4) var(--ruimte-4) var(--ruimte-2); font-weight: var(--gewicht-vet); text-align: left; }
th, td { padding: var(--ruimte-3) var(--ruimte-4); border-bottom: 1px solid var(--kleur-rand); text-align: left; vertical-align: top; }
thead th { background: var(--kleur-achtergrond); white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
td.getal, th.getal { text-align: right; font-variant-numeric: tabular-nums; }
tr.te-laat > :first-child { box-shadow: inset 6px 0 0 var(--kleur-fout); }
td a { display: inline-block; padding-block: var(--ruimte-1); font-weight: var(--gewicht-half); }
.nowrap { white-space: nowrap; }

/* Formulieren */
.formulier { max-width: 40rem; }
.veld { margin: 0 0 var(--ruimte-6); }
.veld > label, .veld > legend, fieldset.veld > legend {
  display: block;
  margin-bottom: var(--ruimte-1);
  font-weight: var(--gewicht-half);
}
.hulp { display: block; margin: 0 0 var(--ruimte-2); color: var(--kleur-tekst-gedempt); max-width: var(--regelbreedte); }
.optioneel { font-weight: var(--gewicht-normaal); color: var(--kleur-tekst-gedempt); }
fieldset { min-width: 0; margin: 0 0 var(--ruimte-6); padding: 0; border: 0; }
legend { padding: 0; }

input[type="text"], input[type="tel"], input[type="email"], input[type="password"], input[type="date"], input[type="time"],
input[type="number"], select, textarea {
  display: block;
  width: 100%;
  min-height: var(--raakvlak-min);
  padding: var(--ruimte-2) var(--ruimte-3);
  border: var(--rand-breedte-invoer) solid var(--kleur-rand-invoer);
  border-radius: var(--hoek);
  background: var(--kleur-vlak);
  color: var(--kleur-tekst);
  font: inherit;
}
textarea { min-height: 8rem; resize: vertical; }
/* Bij datum en tijd zit de focus in de deelvelden; het veld zelf matcht dan alleen :focus-within. */
input[type="date"]:focus-within, input[type="time"]:focus-within {
  outline: var(--focus-breedte) solid var(--focus-kleur);
  outline-offset: var(--focus-afstand);
}
.invoer-kort { max-width: 10rem; }
.invoer-midden { max-width: 24rem; }

/* Velden die bij elkaar horen naast elkaar; op een smal scherm onder elkaar. De invoervakken staan onderaan gelijk,
   ook als het ene veld een hulptekst heeft en het andere niet. */
.veldrij { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0 var(--ruimte-5); align-items: end; }
.veldrij--breed-smal { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
@media (min-width: 40rem) { .veldrij--breed-smal { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.veldrij--postcode { grid-template-columns: 8rem minmax(0, 1fr); }
.veldrij .invoer-kort, .formulier--compact .invoer-midden { max-width: none; }
.formulier--compact { max-width: 44rem; }
.formulier--compact .veld, .formulier--compact fieldset { margin-bottom: var(--ruimte-4); }
.formulier--compact fieldset fieldset { margin-bottom: 0; }
.formulier--compact fieldset > legend h2 { margin-top: var(--ruimte-5); margin-bottom: var(--ruimte-2); }

/* Een keuzerij is over de hele breedte klikbaar en minstens 48px hoog (herontwerp 10-11-2026). */
.keuze { display: flex; gap: var(--ruimte-3); align-items: center; min-height: 3rem; }
.keuze input { flex: none; width: 1.5rem; height: 1.5rem; margin: 0; accent-color: var(--kleur-primair); }
.keuze label { flex: 1; align-self: stretch; display: flex; flex-direction: column; justify-content: center; min-height: 3rem; padding-block: var(--ruimte-1); cursor: pointer; }
.keuze input:disabled + label { color: var(--kleur-tekst-gedempt); cursor: not-allowed; }
.keuze .hulp { margin: 0; }
.keuzes-naast { display: flex; flex-wrap: wrap; gap: 0 var(--ruimte-6); }
/* De ALTCHA-controle als een eigen keuzevakje: even groot, het label klikbaar (verkenning 09 BEV-001). */
altcha-widget { --altcha-checkbox-size: 1.5rem; }

.veld--fout { padding-left: var(--ruimte-4); border-left: 4px solid var(--kleur-fout); }
.foutmelding {
  display: flex;
  gap: var(--ruimte-2);
  align-items: flex-start;
  margin: 0 0 var(--ruimte-2);
  color: var(--kleur-fout);
  font-weight: var(--gewicht-half);
}
[aria-invalid="true"] { border-color: var(--kleur-fout); }
.foutsamenvatting {
  max-width: 40rem;
  margin: 0 0 var(--ruimte-6);
  padding: var(--ruimte-5);
  border: 4px solid var(--kleur-fout);
  border-radius: var(--hoek);
  background: var(--kleur-vlak);
}
.foutsamenvatting h2 { display: flex; gap: var(--ruimte-2); align-items: center; margin-top: 0; font-size: var(--kop-3); }
.foutsamenvatting h2 .icoon { color: var(--kleur-fout); }
.foutsamenvatting ul { margin-bottom: 0; }
.foutsamenvatting a { color: var(--kleur-fout); font-weight: var(--gewicht-half); }
.foutsamenvatting:focus { outline: var(--focus-breedte) solid var(--focus-kleur); outline-offset: var(--focus-afstand); }

details { margin-block: var(--ruimte-5); max-width: 48rem; }
summary {
  display: flex;
  align-items: center;
  min-height: var(--raakvlak-min);
  color: var(--kleur-primair);
  font-weight: var(--gewicht-half);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
details[open] > summary { margin-bottom: var(--ruimte-3); }
.details-inhoud { padding-left: var(--ruimte-4); border-left: 4px solid var(--kleur-rand); }

/* Zo werkt het: vier stappen met icoon en nummer; naast elkaar op een breed scherm, onder elkaar op een telefoon. */
.zo-werkt-het { margin-block: var(--ruimte-6); }
.zo-werkt-het ol {
  display: grid;
  gap: var(--ruimte-5);
  grid-template-columns: 1fr;
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: zo-stap;
}
.zo-werkt-het li { position: relative; margin: 0; padding-top: var(--ruimte-2); counter-increment: zo-stap; }
.zo-werkt-het h3 { margin: var(--ruimte-3) 0 var(--ruimte-1); font-size: 1.125rem; }
/* Het nummer is alleen beeld; de lijst zelf telt al voor een schermlezer. */
.zo-werkt-het h3::before { content: counter(zo-stap) ". " / ""; color: var(--kleur-primair); }
.zo-werkt-het p { margin: 0; }
.stap-beeld {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--kleur-primair-tint);
  color: var(--kleur-primair);
}
.stap-beeld .icoon { width: 1.75rem; height: 1.75rem; }
/* Naast elkaar, met een lijn van stap naar stap, alleen als er ruimte is voor alle drie. */
@media (min-width: 56rem) {
  .zo-werkt-het ol { grid-template-columns: repeat(3, 1fr); }
  .zo-werkt-het li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: calc(var(--ruimte-2) + 1.75rem);
    left: 4.25rem;
    right: calc(-1 * var(--ruimte-5) + 0.75rem);
    border-top: 2px dashed var(--kleur-rand-invoer);
  }
}

/* Het onderwerp van een hulppagina: hetzelfde icoon als de tegel op de homepage. */
.kop-met-beeld { display: flex; align-items: center; gap: var(--ruimte-4); }
.kop-met-beeld h1 { margin: 0; }
.kop-met-beeld + .intro { margin-top: var(--ruimte-4); }

/* Uitlegvideo's bij een hulponderwerp */
.uitlegvideos { margin-block: var(--ruimte-6); max-width: 48rem; }
.uitlegvideo { margin-block: var(--ruimte-2); }
.uitlegvideo > summary { justify-content: space-between; gap: var(--ruimte-3); }
.uitlegvideo > summary .klein { color: var(--kleur-tekst-gedempt); font-weight: normal; text-decoration: none; }
.uitlegvideo video { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--kleur-tekst); }
.uitlegvideo-talen { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ruimte-2) var(--ruimte-4); }
.uitlegvideo-talen a { display: inline-flex; align-items: center; min-height: var(--raakvlak-min); }
.uitlegvideo-talen a[aria-current="true"] { font-weight: var(--gewicht-half); text-decoration: none; }

/* Stappen van de kantooraanmelding */
.stappen {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ruimte-2) var(--ruimte-5);
  margin: 0 0 var(--ruimte-6);
  padding: 0;
  list-style: none;
  max-width: none;
  counter-reset: stap;
}
.stappen li { display: flex; gap: var(--ruimte-2); align-items: flex-start; margin: 0; color: var(--kleur-tekst-gedempt); counter-increment: stap; }
.stappen li::before {
  content: counter(stap);
  /* Niet laten krimpen naast een lange regel: anders wordt het rondje een ovaal. */
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-weight: var(--gewicht-vet);
}
.stappen li[aria-current="step"] { color: var(--kleur-primair); font-weight: var(--gewicht-vet); }
.stappen li[aria-current="step"]::before { background: var(--kleur-primair); border-color: var(--kleur-primair); color: var(--kleur-op-primair); }
.stappen li.klaar { color: var(--kleur-succes); }

/* Tijdlijn (status, geschiedenis, wat gebeurt er nu) */
.tijdlijn { margin: 0 0 var(--ruimte-5); padding: 0; list-style: none; }
.tijdlijn li { display: flex; gap: var(--ruimte-3); align-items: flex-start; margin: 0; padding-block: var(--ruimte-2); }
.tijdlijn li + li { border-top: 1px solid var(--kleur-rand); }
.tijdlijn .icoon { margin-top: 0.15em; color: var(--kleur-accent); }
.tijdlijn p { margin: 0; }

/* Cijfers in de monitor */
.cijfer { display: flex; flex-direction: column; gap: var(--ruimte-1); }
.cijfer-naam { margin: 0; font-weight: var(--gewicht-half); }
.cijfer-waarde { margin: 0; font-size: 2.25rem; font-weight: var(--gewicht-vet); line-height: 1.1; font-variant-numeric: tabular-nums; }
.cijfer-uitleg { margin: 0; color: var(--kleur-tekst-gedempt); }

[hidden] { display: none !important; }

/* Tabellen met class "stapel": op een smal scherm elke rij als kaart, met de kolomnaam boven elk gegeven. */
@media (max-width: 47.99rem) {
  .stapel, .stapel caption, .stapel tbody, .stapel tr, .stapel th, .stapel td { display: block; }
  .stapel thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .stapel tbody tr { padding: var(--ruimte-3) var(--ruimte-4); border-bottom: 1px solid var(--kleur-rand); }
  .stapel tbody tr:last-child { border-bottom: 0; }
  .stapel tbody th, .stapel td { padding: var(--ruimte-1) 0; border: 0; white-space: normal; }
  .stapel td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--kleur-tekst-gedempt);
    font-weight: var(--gewicht-half);
  }
  .stapel td.getal { text-align: left; }
  .stapel tr.te-laat { box-shadow: inset 6px 0 0 var(--kleur-fout); }
  .stapel tr.te-laat > :first-child { box-shadow: none; }
}

/* Lijsten in de omgevingen: filters boven de lijst, pagina's eronder (review 10-11-2026). */
.lijstfilter { max-width: none; margin-block: var(--ruimte-4); }
.lijstfilter .veldrij { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.lijstfilter .veld { margin-bottom: var(--ruimte-4); }
.lijstfilter .knoppen { margin-block: 0 var(--ruimte-4); }
.paginering ul { display: flex; flex-wrap: wrap; gap: var(--ruimte-2); margin: var(--ruimte-4) 0 var(--ruimte-6); padding: 0; list-style: none; }
.paginering li { display: inline-flex; align-items: center; min-height: var(--raakvlak-min); margin: 0; }
.paginering a {
  display: inline-flex; align-items: center; justify-content: center; min-width: var(--raakvlak-min); min-height: var(--raakvlak-min);
  padding: 0 var(--ruimte-3); border: 1px solid var(--kleur-rand-invoer); border-radius: var(--hoek); background: var(--kleur-vlak);
}
.paginering a[aria-current="page"] {
  border-color: var(--kleur-primair); background: var(--kleur-primair); color: var(--kleur-op-primair);
  font-weight: var(--gewicht-vet); text-decoration: none;
}

/* Prompt 04: account in de kop, QR-code en herstelcodes. */
.kop-account { display: flex; align-items: center; gap: var(--ruimte-3); flex-wrap: wrap; margin-inline-start: auto; }
.qr { display: block; width: 14rem; max-width: 100%; height: auto; image-rendering: pixelated; background: #fff; padding: 0.5rem; }
.sleutel, .herstelcodes code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 1.125rem; letter-spacing: 0.05em; overflow-wrap: anywhere; }
.herstelcodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.5rem; padding-inline-start: 0; list-style: none; }

/* Vrije tekst met regelovergangen (omschrijving). */
.witruimte { white-space: pre-line; }

/* ---- Publieke site, herontwerp 10-11-2026 ---- */

/* Opening: kop, uitleg en de postcodecontrole naast een rustig beeld. */
.opening { display: grid; gap: var(--ruimte-6); align-items: center; padding-block: 0 var(--ruimte-6); }
.opening h1 { margin-top: 0; max-width: 20ch; }
.opening .intro { max-width: 46ch; }
.opening-anders { color: var(--kleur-tekst-gedempt); }
/* Op een telefoon eerst de tekst en de hoofdactie, het beeld daarna (de volgorde in de HTML). */
@media (min-width: 56rem) {
  .opening { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
.sfeerbeeld { margin: 0; }
.sfeerbeeld img { display: block; width: 100%; height: auto; border-radius: var(--hoek-kaart); }
.sfeerbeeld figcaption { margin-top: var(--ruimte-2); font-size: var(--tekst-klein); color: var(--kleur-tekst-gedempt); }
@media (max-width: 40rem) {
  .opening h1 { font-size: 1.75rem; }
  .opening .intro { font-size: var(--tekst-basis); }
}

/* De postcodecontrole: veld en knop naast elkaar, op een telefoon onder elkaar. */
.postcode-check .veld { margin-bottom: var(--ruimte-4); }
.postcode-rij { display: flex; flex-wrap: wrap; gap: var(--ruimte-3); align-items: center; }
.postcode-rij input { width: 8rem; }
.uitkomst { margin-block: var(--ruimte-4); max-width: 48rem; }
.uitkomst h2 { margin-top: 0; font-size: 1.375rem; }
.uitkomst:focus { outline: 3px solid var(--focus-kleur); outline-offset: 2px; }
.vaste-postcode { margin-bottom: var(--ruimte-4); }

/* Banden over de volle breedte, afwisselend wit en papier, zonder horizontaal scrollen. */
.band { padding-block: var(--ruimte-7, 3rem); }
.band--vlak { background: var(--kleur-vlak); box-shadow: 0 0 0 100vmax var(--kleur-vlak); clip-path: inset(0 -100vmax); }
.band > h2:first-child, .band > .zo-werkt-het > h2:first-child { margin-top: 0; }
.band--pro { padding-block: var(--ruimte-5); }
.band--pro h2 { font-size: 1.25rem; margin: 0 0 var(--ruimte-2); }
.band--pro p { margin: 0; }

/* Situaties: icoon, korte titel en één zin; de hele kaart is de link. */
.situaties { display: grid; gap: var(--ruimte-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); max-width: none; padding: 0; list-style: none; }
.situaties li { margin: 0; }
.situatie {
  display: flex; gap: var(--ruimte-3); align-items: center; height: 100%; min-height: 4.5rem;
  padding: var(--ruimte-3) var(--ruimte-4); border: 1px solid var(--kleur-rand); border-radius: var(--hoek-kaart);
  background: var(--kleur-achtergrond); color: var(--kleur-tekst); text-decoration: none;
}
.situatie:hover { border-color: var(--kleur-primair); }
.situatie strong { display: block; color: var(--kleur-primair); text-decoration: underline; text-underline-offset: 0.2em; }
.situatie-tekst { display: block; color: var(--kleur-tekst-gedempt); }

/* Kosten: drie losse antwoorden. */
.kostenkaarten { display: grid; gap: var(--ruimte-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); max-width: none; padding: 0; list-style: none; }
.kostenkaarten .kaart { margin: 0; }
.kostenkaarten h3 { margin-top: 0; }

.faq { max-width: 48rem; }
.faq details { margin-block: 0; border-bottom: 1px solid var(--kleur-rand); }

/* Andere hulp: naam, uitleg en klikbare telefoon en website. */
.alternatieven { padding-left: 1.25rem; }
.alternatieven li { margin-bottom: var(--ruimte-3); }
.alternatief-links { display: flex; flex-wrap: wrap; gap: 0 var(--ruimte-4); }
.alternatief-links a { display: inline-flex; align-items: center; min-height: var(--raakvlak-min); }
