:root {
  --tekst: #15201A; --zacht: #55625A; --lijn: #DDE3DE; --lijn2: #EEF1EE; --vlak: #F4F6F3;
  --groen: #0B5D3B; --groen-licht: #E3F1EA;
  --kop: 'Space Grotesk', Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #FFFFFF; color: var(--tekst); font-family: Inter, system-ui, sans-serif; font-size: 15px; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: var(--groen); }
#app { max-width: 480px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
.laden { padding: 40px 20px; color: var(--zacht); }
main { flex: 1; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

/* Kop */
.kop { padding: 20px 20px 8px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.kop h1 { font-family: var(--kop); font-size: 26px; font-weight: 700; margin: 0; }
.kop .datum { font-size: 13px; color: var(--zacht); white-space: nowrap; }
.pil { border-radius: 14px; padding: 8px 11px; font-size: 13px; font-weight: 600; white-space: nowrap; }

.zin { padding: 0 20px 12px; line-height: 1.45; }
.balk { margin: 0 20px 12px; padding: 12px 14px; border-radius: 14px; }
.balk b { display: block; font-size: 15px; }
.balk span { display: block; font-size: 13px; line-height: 1.45; margin-top: 3px; }

/* Plan */
.kaart { margin: 0 20px; padding: 14px; border: 1px solid var(--lijn); border-radius: 14px; }
.kaart-kop { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.kaart-kop .titel { font-weight: 600; }
.wissel { display: flex; background: var(--vlak); border-radius: 10px; padding: 2px; font-size: 12px; }
.wissel button { padding: 5px 10px; border-radius: 8px; color: var(--zacht); }
.wissel button[aria-pressed="true"] { background: #FFFFFF; color: var(--tekst); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.wissel button:disabled { opacity: .45; cursor: default; }
.rij { display: flex; align-items: center; margin-top: 6px; }
.rij:first-of-type { margin-top: 0; }
.rij .label { width: 96px; flex-shrink: 0; font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.rij .label.zacht { font-size: 12px; font-weight: 400; color: var(--zacht); }
.stip { width: 8px; height: 8px; border-radius: 4px; flex-shrink: 0; }
.prijsrij { flex: 1; display: flex; gap: 1px; height: 18px; }
.prijsrij button { flex: 1; border-radius: 2px; position: relative; }
.prijsrij button.nu::after { content: ''; position: absolute; inset: -3px -1px; border: 2px solid var(--tekst); border-radius: 3px; }
.prijsrij button.gekozen { outline: 2px solid var(--tekst); outline-offset: 1px; z-index: 1; }
.spoor { flex: 1; position: relative; height: 18px; background: var(--vlak); border-radius: 4px; }
.blok { position: absolute; top: 2px; bottom: 2px; border-radius: 3px; }
.as { display: flex; margin-top: 6px; }
.as .getallen { flex: 1; display: flex; justify-content: space-between; font-size: 11px; color: var(--zacht); }
.uurinfo { margin: 8px 0 0 96px; font-size: 12px; color: var(--tekst); min-height: 16px; }
.legenda { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: #3E4A42; margin-top: 10px; }
.legenda span { display: flex; align-items: center; gap: 5px; }
.legenda i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.legenda i.breed { width: 14px; }
.legenda i.rand { border: 2px dashed #3E4A42; }
.klein { font-size: 11px; color: var(--zacht); margin-top: 5px; line-height: 1.4; }

/* Keuzes */
.sectie-titel { margin: 14px 20px 0; font-weight: 600; }
.keuzes { margin: 6px 20px 0; border: 1px solid var(--lijn); border-radius: 14px; overflow: hidden; }
.keuze { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--lijn2); width: 100%; text-align: left; font-size: 14px; }
.keuze:last-child { border-bottom: 0; }
.keuze[aria-checked="true"] { background: #F3F8F5; }
.rondje { width: 18px; height: 18px; border-radius: 9px; border: 2px solid #AEB8B0; flex-shrink: 0; margin-top: 1px; }
.keuze[aria-checked="true"] .rondje { border: 5px solid var(--groen); }
.keuze small { display: block; font-size: 12px; color: var(--zacht); margin-top: 2px; }

/* Akkoord */
.akkoord { margin: 14px 20px 6px; }
.akkoord button { width: 100%; display: flex; align-items: center; justify-content: space-between; background: var(--groen); color: #FFFFFF; border-radius: 14px; padding: 15px 18px; font-size: 16px; font-weight: 600; }
.akkoord button span:last-child { font-weight: 500; opacity: .9; }
.akkoord p { font-size: 12px; color: var(--zacht); margin: 6px 0 0; line-height: 1.45; }

/* Lijsten */
.groep { font-size: 12px; font-weight: 600; color: var(--zacht); text-transform: uppercase; letter-spacing: .04em; padding: 8px 20px 6px; background: var(--vlak); margin-top: 12px; }
.item { display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--lijn2); }
.item .streep { width: 12px; height: 32px; border-radius: 4px; border: 2px dashed; flex-shrink: 0; }
.item .tekst { flex: 1; }
.item .tekst div:first-child { font-weight: 500; }
.item .tekst div + div { font-size: 13px; color: var(--zacht); }
.item .wie { font-size: 18px; }
.leeg { padding: 12px 20px; color: var(--zacht); font-size: 14px; }

/* Andere tabbladen */
.pagina { padding: 0 20px; }
.pagina h2 { font-family: var(--kop); font-size: 18px; margin: 18px 0 8px; }
.pagina p { line-height: 1.5; }
.voorbeeld { display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; background: #FFF4D6; color: #6B4E00; border-radius: 6px; padding: 2px 6px; }
.staafjes { display: flex; align-items: flex-end; gap: 4px; height: 120px; margin-top: 10px; }
.staafjes div { flex: 1; background: #AEB8B0; border-radius: 3px 3px 0 0; }
.tabel { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabel td { padding: 8px 0; border-bottom: 1px solid var(--lijn2); }
.tabel td:last-child { text-align: right; color: var(--zacht); }
.knop2 { display: inline-block; margin-top: 12px; padding: 10px 14px; border: 1px solid var(--lijn); border-radius: 12px; font-weight: 500; }

/* Navigatie */
nav.tabs { position: fixed; bottom: 0; left: 0; right: 0; background: #FFFFFF; border-top: 1px solid var(--lijn); display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); z-index: 5; }
nav.tabs > div { max-width: 480px; }
nav.tabs button { height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; color: var(--zacht); }
nav.tabs button[aria-current="page"] { color: var(--groen); font-weight: 600; }
nav.tabs svg { width: 22px; height: 22px; }

/* Login */
.login { padding: 48px 24px; }
.login h1 { font-family: var(--kop); font-size: 28px; margin: 0 0 6px; }
.login p { color: var(--zacht); margin: 0 0 22px; }
.login label { display: block; font-size: 13px; font-weight: 500; margin: 12px 0 4px; }
.login input { width: 100%; padding: 12px; border: 1px solid var(--lijn); border-radius: 12px; font: inherit; }
.login button { width: 100%; margin-top: 18px; background: var(--groen); color: #FFFFFF; padding: 14px; border-radius: 12px; font-weight: 600; }
.login .fout { color: #A9440A; font-size: 14px; margin-top: 10px; min-height: 18px; }

#toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--tekst); color: #FFFFFF; padding: 12px 16px; border-radius: 12px; font-size: 14px; max-width: 340px; line-height: 1.4; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 10; }
#toast.zichtbaar { opacity: 1; }
