/* LP-app en dashboard: mobiel eerst, minstens 16 px, tikdoelen minstens 44 px, contrast AA (brief §7.2).
   Huisstijl van volta.ventures (docs/jobs/stijlgids.md): inkt #132E23, Eggplant, Lilac, radius 10/5 px, geen schaduwen.
   Lettertype: Hanken Grotesk (OFL, zelf gehost), het vrije alternatief voor Acid Grotesk van de site. */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/HankenGrotesk.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --inkt: #132e23;
  --merk: #411740;
  --merk-donker: #2c0f2b;
  --lila: #d3ccff;
  --lila-zacht: #f3f0ff;
  --lime: #cff09d;
  --vlak: #f4f4f4;
  --grijs: #4a5550;
  --rand-zacht: #d5d9d7;
  /* namen die de rest van de CSS gebruikt */
  --tekst: var(--inkt);
  --achtergrond: #fff;
  --zacht: var(--vlak);
  --rand: #7a8580;
  --accent: var(--merk);
  --accent-tekst: #fff;
  --fout: #9b1c1c;
  --fout-zacht: #fdf1f1;
  --ok: #14532d;
  --radius: 10px;
  --radius-klein: 6px;
  --pijl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9M8.5 4l4 4-4 4' fill='none' stroke='%23411740' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --vink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23411740' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --vink-wit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8.5' fill='none' stroke='%23411740' stroke-width='1.5'/%3E%3Cpath d='M10 9v5' stroke='%23411740' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='10' cy='6.2' r='1.1' fill='%23411740'/%3E%3C/svg%3E");
  --slot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='3' y='7' width='10' height='7' rx='1.5' fill='none' stroke='%234a5550' stroke-width='1.4'/%3E%3Cpath d='M5.5 7V5a2.5 2.5 0 0 1 5 0v2' fill='none' stroke='%234a5550' stroke-width='1.4'/%3E%3C/svg%3E");
  --let-op: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8.5' fill='none' stroke='%239b1c1c' stroke-width='1.5'/%3E%3Cpath d='M10 5.5v5.5' stroke='%239b1c1c' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='10' cy='14.2' r='1.1' fill='%239b1c1c'/%3E%3C/svg%3E");
  color-scheme: light;
}
* { box-sizing: border-box; }
html { font-size: 18px; }
body {
  margin: 0;
  font-family: "Hanken Grotesk", Arial, sans-serif;
  line-height: 1.55;
  color: var(--inkt);
  background: var(--achtergrond);
  -webkit-font-smoothing: antialiased;
}
header, main, footer { max-width: 40rem; margin: 0 auto; padding: 1rem 1.1rem; }
main { padding-top: 1.5rem; padding-bottom: 2rem; }
header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.merk { display: flex; align-items: center; gap: 0.9rem; }
.merk img { display: block; height: 2rem; width: auto; }
.merktitel { font-size: 0.85rem; color: var(--grijs); border-left: 1px solid var(--rand-zacht); padding-left: 0.9rem; }
.taalpill { display: inline-flex; border: 1px solid var(--inkt); border-radius: 999px; padding: 2px; }
.taalpill button { width: auto; min-height: 44px; min-width: 44px; margin: 0; padding: 0 0.8rem; border: 0; border-radius: 999px;
  background: none; color: var(--inkt); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; }
.taalpill button[aria-pressed="true"] { background: var(--inkt); color: #fff; }
h1 { font-size: 1.55rem; line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; margin: 0.4rem 0 1.25rem; }
h1:focus { outline: none; }
h2 { font-size: 1.15rem; font-weight: 600; margin-top: 2rem; }
a { color: var(--merk); text-underline-offset: 3px; }
@media (min-width: 768px) {
  header, main, footer { padding-left: 0; padding-right: 0; }
  main { padding-top: 2.5rem; }
  h1 { font-size: 1.9rem; }
  .merk img { height: 2.3rem; }
}
/* Stapaanduiding: lila label zoals op de homepage, dunne balk met een punt per stap. */
.stapkop { margin-bottom: 0.5rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 0 0.9rem; padding: 4px 10px; border-radius: 5px;
  background: var(--lila); color: var(--inkt); font-size: 0.78rem; line-height: 1.4; }
.eyebrow::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--inkt); }
.voortgang { position: relative; margin: 0 0 1rem; }
.voortgang progress { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.stippen { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; }
.stippen li { flex: 1; height: 4px; border-radius: 2px; background: var(--rand-zacht); margin: 0; }
.stippen li.gedaan { background: var(--merk); }
label { display: block; font-weight: 600; margin: 1.1rem 0 0.35rem; }
input, select, textarea {
  width: 100%; min-height: 48px; font: inherit; font-size: 1rem; padding: 0.55rem 0.8rem; color: var(--inkt);
  border: 1px solid var(--rand); border-radius: var(--radius-klein); background: #fff; transition: border-color 0.2s;
}
input:hover, select:hover, textarea:hover { border-color: var(--inkt); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--merk); }
input#code, input#totp { letter-spacing: 0.3em; font-variant-numeric: tabular-nums; }
/* Knoppen in de stijl van de site: hoofdknop gevuld in Eggplant met een pijlvakje, secundair als outline. */
button {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem; width: 100%; min-height: 48px; margin: 1rem 0 0;
  font: inherit; font-size: 0.95rem; font-weight: 600; border-radius: var(--radius-klein); border: 1px solid var(--inkt);
  background: #fff; color: var(--inkt); cursor: pointer; padding: 0.5rem 1.1rem; transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
button.primair { background: var(--merk); border-color: var(--merk); color: #fff; justify-content: space-between; padding: 0.4rem 0.4rem 0.4rem 1.2rem; }
button.primair::after { content: ""; flex: none; width: 2.1rem; height: 2.1rem; border-radius: 4px; background: var(--lime) var(--pijl) center / 1rem no-repeat; }
button.primair:hover { background: var(--merk-donker); }
button.secundair { background: transparent; color: var(--inkt); }
button.secundair:hover { background: var(--inkt); color: #fff; }
button.link, button.taalknop { width: auto; display: inline-flex; background: none; border: none; color: var(--merk); text-decoration: underline;
  text-underline-offset: 3px; padding: 0.5rem 0; margin: 0; min-height: 44px; font-weight: 500; }
button.link:hover { background: none; color: var(--merk-donker); }
button[disabled] { opacity: 0.5; cursor: not-allowed; }
@media (min-width: 768px) {
  button.primair, button.secundair { width: auto; min-width: 11rem; display: inline-flex; }
  button.primair { gap: 1.5rem; }
}
:focus-visible { outline: 3px solid var(--merk); outline-offset: 3px; }
/* Meldingen: rustig, altijd met tekst en icoon, nooit enkel kleur. */
.melding { padding: 0.8rem 1rem; border-radius: var(--radius); margin: 1rem 0; }
.melding.info { background: var(--lila-zacht); }
.melding.fout { background: var(--fout-zacht); color: var(--fout); font-weight: 600; display: flex; gap: 0.6rem; align-items: flex-start; }
.melding.fout::before { content: ""; flex: none; width: 1.2rem; height: 1.2rem; margin-top: 0.15rem; background: var(--let-op) center / contain no-repeat; }
.kader { background: var(--vlak); padding: 1rem 1.2rem; border-radius: var(--radius); }
.klein, .stap { font-size: 0.88rem; color: var(--grijs); }
label .klein { font-weight: 400; }
progress { width: 100%; height: 0.5rem; accent-color: var(--merk); }
.qr { display: block; margin: 1rem auto; background: #fff; }
code { word-break: break-all; }
footer { margin-top: 1rem; padding-bottom: 2rem; font-size: 0.85rem; color: var(--grijs); border-top: 1px solid var(--rand-zacht); }
footer p { margin: 0.6rem 0 0; }
footer .slot { display: flex; align-items: center; gap: 0.45rem; }
footer .slot::before { content: ""; width: 1rem; height: 1rem; background: var(--slot) center / contain no-repeat; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
/* Formulier (fase 2): velden, keuzes, foutmeldingen bij het veld, navigatie. */
.veld { margin: 0.5rem 0 1rem; }
textarea { min-height: 6rem; }
fieldset { border: 0; margin: 1.25rem 0; padding: 0; min-width: 0; }
legend { font-weight: 600; padding: 0; margin-bottom: 0.4rem; }
/* Keuzes als klikbare kaarten. De echte radio of checkbox blijft erin (toetsenbord, schermlezer). */
.keuze { display: flex; align-items: center; gap: 0.85rem; min-height: 52px; margin: 0.5rem 0; padding: 0.7rem 1rem; font-weight: 400;
  border: 1px solid var(--rand-zacht); border-radius: var(--radius); background: #fff; cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.keuze:hover { border-color: var(--merk); }
.keuze input { appearance: none; flex: none; width: 1.3rem; height: 1.3rem; min-height: 0; margin: 0; padding: 0; border: 1.5px solid var(--rand);
  border-radius: 50%; background: #fff; display: grid; place-content: center; cursor: pointer; }
.keuze input[type="checkbox"] { border-radius: 4px; }
.keuze input:checked { border-color: var(--merk); background: radial-gradient(var(--merk) 0 42%, #fff 46%); }
.keuze input[type="checkbox"]:checked { background: var(--merk) var(--vink-wit) center / 0.9rem no-repeat; }
.keuze input:focus-visible { outline: none; }
.keuze:has(input:focus-visible) { outline: 3px solid var(--merk); outline-offset: 2px; }
.keuze:has(input:checked) { border-color: var(--merk); box-shadow: inset 0 0 0 1px var(--merk); background: var(--lila-zacht); }
.keuze:has(input:checked)::after { content: ""; margin-left: auto; flex: none; width: 1.1rem; height: 1.1rem; background: var(--vink) center / contain no-repeat; }
.keuze:has(input:disabled) { cursor: not-allowed; opacity: 0.6; }
[aria-invalid="true"] { border-color: var(--fout); border-width: 2px; }
.veldfout { color: var(--fout); font-weight: 600; margin: 0.35rem 0 0; font-size: 0.92rem; }
.veldfout::before { content: "⚠ "; }
/* "Wat betekent dit?": subtiele knop met een i-icoon, zacht lila paneel. */
.uitlegknop { width: auto; display: inline-flex; gap: 0.45rem; min-height: 44px; margin: 0.25rem 0; padding: 0; border: 0; background: none;
  color: var(--merk); font-weight: 500; font-size: 0.92rem; }
.uitlegknop::before { content: ""; width: 1.15rem; height: 1.15rem; background: var(--info) center / contain no-repeat; }
.uitlegknop:hover { background: none; text-decoration: underline; text-underline-offset: 3px; }
.uitlegknop[aria-expanded="true"] { text-decoration: underline; text-underline-offset: 3px; }
.uitlegpaneel { background: var(--lila-zacht); margin: 0.25rem 0 1rem; animation: openklap 0.2s ease-out; }
.uitlegpaneel p:last-child { margin-bottom: 0; }
@keyframes openklap { from { transform: translateY(-4px); } to { transform: none; } }
.uitlegtitel { font-weight: 600; margin-top: 0; }
.navigatie { display: flex; gap: 0.75rem; margin-top: 2rem; }
.navigatie > * { flex: 1; }
@media (min-width: 768px) {
  .navigatie { justify-content: space-between; align-items: center; }
  .navigatie > * { flex: 0 0 auto; }
  .navigatie button { margin-top: 0; }
}
.knoppenrij { margin-top: 1.5rem; }
@media (min-width: 768px) {
  .knoppenrij { display: flex; gap: 0.75rem; align-items: center; }
}
.bewaarstatus { min-height: 1.5em; }
.woonplaats { background: var(--zacht); }
/* Mobiel: de hoofdnavigatie (Vorige/Volgende) blijft onderaan in beeld. */
@media (max-width: 767px) {
  html { scroll-padding-bottom: 6rem; }
  .hoofdnav { position: sticky; bottom: 0; z-index: 5; background: #fff; margin: 1.5rem -1.1rem 0; border-top: 1px solid var(--rand-zacht);
    padding: 0.75rem 1.1rem calc(0.75rem + env(safe-area-inset-bottom)); }
  .hoofdnav button { margin-top: 0; }
}
.hoofdnav:not(:has(button)) { display: none; }
/* Zachte overgang bij een nieuwe stap (enkel beweging, de tekst blijft altijd volledig zichtbaar). */
main.stapwissel > * { animation: stapin 0.25s ease-out; }
@keyframes stapin { from { transform: translateY(8px); } to { transform: none; } }
/* Laadtoestand: een rustige draaiende ring in de merkkleuren. */
main[aria-busy="true"]::after { content: ""; display: block; width: 2rem; height: 2rem; margin: 1rem 0; border-radius: 50%;
  border: 3px solid var(--lila); border-top-color: var(--merk); animation: draai 0.8s linear infinite; }
@keyframes draai { to { transform: rotate(360deg); } }
/* Fase 2, onderdeel 3a: personenlijst */
.personen { list-style: none; padding: 0; margin: 1rem 0; }
.persoonkaart { border: 1px solid var(--rand-zacht); border-radius: var(--radius); padding: 0.75rem 1.1rem; margin: 0.75rem 0; background: #fff; }
.persoonkaart p { margin: 0.25rem 0; }
.persoonkaart button.link { margin-right: 1rem; }
.persoonformulier { margin-top: 0.75rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.documentblok { margin: 1rem 0; padding: 1rem 1.1rem; border: 1px solid var(--rand-zacht); border-radius: var(--radius); }
.documentblok h2 { margin-top: 0; }
.documentblok ul.bestanden { margin: 0.25rem 0 0.75rem; padding-left: 1.25rem; }
/* Bestandskeuze als knop in de eigen taal; het echte veld zit erin, onzichtbaar maar focusbaar. */
label.bestandknop { position: relative; display: flex; align-items: center; justify-content: center; min-height: 48px; margin: 0.5rem 0 0;
  font-weight: 600; border-radius: var(--radius-klein); border: 1px solid var(--inkt); background: #fff; color: var(--inkt);
  cursor: pointer; padding: 0.5rem 1rem; text-align: center; }
label.bestandknop:hover { background: var(--inkt); color: #fff; }
label.bestandknop:focus-within { outline: 3px solid var(--merk); outline-offset: 3px; }
label.bestandknop.uit { opacity: 0.5; cursor: not-allowed; }
label.bestandknop.uit:hover { background: #fff; color: var(--inkt); }
.bestandkeuze { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
/* Dashboard (fase 2, onderdeel 10a): breder, tabellen die opzij scrollen, kleuren zoals de Excel. */
body.breed header, body.breed main, body.breed footer { max-width: 80rem; }
@media (min-width: 768px) { body.breed header, body.breed main, body.breed footer { padding-left: 1.5rem; padding-right: 1.5rem; } }
.tabelrol { overflow-x: auto; max-width: 100%; margin: 0.5rem 0 1rem; border: 1px solid var(--rand-zacht); border-radius: var(--radius); }
.tabelrol:focus-visible { outline: 3px solid var(--merk); outline-offset: 2px; }
table { border-collapse: collapse; width: 100%; font-size: 0.88rem; }
th, td { border-bottom: 1px solid var(--rand-zacht); padding: 0.45rem 0.6rem; text-align: left; vertical-align: top; }
td + td, th + td, th + th, td + th { border-left: 1px solid var(--rand-zacht); }
tbody tr:last-child > * { border-bottom: 0; }
thead th { background: var(--vlak); white-space: nowrap; font-weight: 600; }
tbody tr:hover { background: #fafafa; }
table.overzicht td.kleur { white-space: nowrap; }
.statuslabel { display: inline-block; padding: 1px 9px; border-radius: 999px; background: var(--lila); color: var(--inkt); white-space: nowrap; }
.kleurlabel { font-weight: 600; }
.k-groen { background: #c6efce; color: #006100; }
.k-geel { background: #ffeb9c; color: #7a4f00; }
.k-oranje { background: #ffd966; color: #5e4600; }
.k-rood { background: #ffc7ce; color: #8a0005; }
.markering { display: inline-block; margin-left: 0.5em; padding: 0 0.5em; border-radius: 999px; font-size: 0.85em; font-weight: 600; }
.k-nvt, .k-aanwezig { background: #f2f2f2; color: #4d4d4d; font-style: italic; }
.k-leeg { background: transparent; }
td.score { text-align: center; font-weight: 700; }
.kerncijfers { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.75rem; }
.kerncijfers li { display: flex; flex-direction: column; margin: 0; padding: 0.8rem 1rem; border: 1px solid var(--rand-zacht); border-radius: var(--radius); }
.kerncijfers .getal { font-size: 1.7rem; font-weight: 500; color: var(--merk); }
.filters { display: flex; flex-wrap: wrap; gap: 0 1rem; align-items: flex-end; }
.filters h2 { flex-basis: 100%; }
.filter { min-width: 10rem; flex: 1 1 10rem; }
.legende dl { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.75rem; }
.legende dt { padding: 0.1rem 0.5rem; border-radius: 5px; }
dl.gegevens { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: 0.35rem 1rem; }
dl.gegevens dt { font-weight: 600; }
dl.gegevens dd { margin: 0; }
ul.stand { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
ul.stand li { padding: 0.25rem 0.6rem; border-radius: 999px; margin: 0; }
.aangemeld button.link { margin-left: 0.5rem; }
/* Identiteit (fase 2, onderdeel 5): uitkomst van de controle, met tekst en niet enkel kleur. */
li.controle { margin: 0.25rem 0; }
li.c-fout { color: #8a0005; font-weight: 600; }
li.c-waarschuwing { color: #6b4a00; }

/* Fase 2, onderdeel 7a: nakijken en ondertekenen */
.handtekeningvak canvas.handtekening { display: block; width: 100%; height: auto; aspect-ratio: 600 / 160; background: #fff;
  border: 1.5px dashed var(--rand); border-radius: var(--radius); margin: 0.75rem 0; touch-action: none; cursor: crosshair; }
.handtekeningvak canvas.getypt { cursor: default; }
.samenvatting dl { margin: 0.25rem 0 0.5rem; }
.samenvatting dt { font-weight: 600; margin-top: 0.5rem; }
.samenvatting dd { margin: 0; }
.samenvatting section { border-bottom: 1px solid var(--rand-zacht); padding-bottom: 0.75rem; }
.verklaring { font-size: 0.95rem; }
ul.formulieren { list-style: none; padding: 0; }
ul.formulieren li { margin: 0.5rem 0; }
a.knop { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 0.6rem 1rem;
  border: 1px solid var(--inkt); border-radius: var(--radius-klein); color: var(--inkt); font-weight: 600; text-decoration: none; margin: 0.25rem 0; }
a.knop:hover { background: var(--inkt); color: #fff; }
@media (min-width: 768px) { a.knop { display: inline-flex; } }

/* Fase 2, onderdeel 10b: knoppen naast elkaar in een tabelcel */
.knoppen > * { display: inline-block; margin: 0 1rem 0 0; }
