* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--vlak); color: var(--inkt); font: 400 16px/1.4 var(--letter);
  overflow: hidden; overscroll-behavior: none; touch-action: manipulation;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-text-size-adjust: 100%;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; touch-action: manipulation; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.app { height: 100%; display: flex; flex-direction: column; }
.kop { flex: none; padding: calc(var(--boven) + 10px) 20px 10px; }
.kopregel { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.dag { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--inkt3); }
h1 { margin: 1px 0 0; font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.stand { display: flex; align-items: center; gap: 6px; min-height: 44px; font-size: 13px; color: var(--inkt2); font-variant-numeric: tabular-nums; }
.stand i { width: 7px; height: 7px; border-radius: 50%; background: var(--goed); }
.stand.zonder i { background: var(--let-op); }

.inhoud { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 4px 20px calc(var(--onder) + 28px); display: flex; flex-direction: column; gap: 22px; }
h2 { margin: 0 2px 9px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 10px; color: var(--inkt2); }
.kaart { background: var(--kaart); border-radius: 16px; box-shadow: var(--schaduw); overflow: hidden; }
.vulling { padding: 16px; }

.knop { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; padding: 0 18px; border-radius: 14px; font-size: 17px; font-weight: 600; background: var(--accent); color: var(--accent-op); }
.knop.rustig { background: var(--kaart2); color: var(--inkt); box-shadow: inset 0 0 0 1px var(--lijn); }
.knop.gevaar { background: none; color: var(--let-op); }
.knop:disabled { opacity: 0.45; }
.knoppen { display: flex; flex-direction: column; gap: 10px; }

.veld { display: block; width: 100%; min-height: 50px; padding: 0 14px; margin: 0 0 12px; border-radius: 12px; border: 1px solid var(--lijn); background: var(--kaart2); color: var(--inkt);
  font: 600 22px/1 var(--letter); letter-spacing: 0.18em; text-align: center; -webkit-user-select: text; user-select: text; }
label { display: block; font-size: 14px; font-weight: 600; color: var(--inkt2); margin: 0 2px 6px; }

.rij { display: flex; gap: 12px; align-items: center; min-height: 52px; padding: 9px 16px; }
.rij + .rij { border-top: 1px solid var(--lijn); }
.rij .tekst { flex: 1; min-width: 0; }
.rij .titel { font-size: 16px; font-weight: 500; }
.rij .sub { font-size: 13px; color: var(--inkt2); margin-top: 1px; overflow-wrap: anywhere; }
.merk { flex: none; min-width: 58px; text-align: center; padding: 3px 9px; border-radius: 9px; font-size: 12px; font-weight: 700; background: var(--kaart2); color: var(--inkt3); }
.merk.goed { background: color-mix(in srgb, var(--goed) 16%, transparent); color: var(--goed); }
.merk.fout { background: var(--let-op-vlak); color: var(--let-op); }

.schakel { flex: none; position: relative; width: 52px; height: 44px; }
.schakel::before { content: ""; position: absolute; left: 0; top: 6px; width: 52px; height: 32px; border-radius: 16px; background: var(--lijn); }
.schakel::after { content: ""; position: absolute; left: 3px; top: 9px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.schakel[aria-checked="true"]::before { background: var(--goed); }
.schakel[aria-checked="true"]::after { left: 23px; }

.melding { padding: 12px 14px; border-radius: 12px; font-size: 15px; font-weight: 500; background: var(--kaart2); color: var(--inkt); box-shadow: inset 0 0 0 1px var(--lijn); }
.melding.fout { background: var(--let-op-vlak); color: var(--let-op); box-shadow: none; }

.midden { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: calc(var(--boven) + 24px) 28px calc(var(--onder) + 32px); max-width: 480px; width: 100%; margin: 0 auto; }
.midden img { width: 84px; height: 84px; border-radius: 19px; box-shadow: var(--schaduw); }
.midden h1 { font-size: 34px; }

/* Meet de vrije randen van het scherm voor de proefpagina. */
.meetlat { position: fixed; left: 0; top: 0; width: 0; height: 0; visibility: hidden; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }

@media (prefers-reduced-motion: no-preference) {
  .knop, .schakel::after, .schakel::before { transition: background-color 0.18s ease, left 0.18s ease, transform 0.12s ease; }
  .knop:active { transform: scale(0.98); }
}
