/* Thuispoort — Apple-stijl (gevraagd door Daan): systeemschrift, liquid glass op zwevende lagen, veren. Zie ONTWERP.md. */
:root {
  --canvas: #ECECF1; --vlak: #FFFFFF; --vlak2: #F6F6F9; --inkt: #141418; --inkt2: #62626D; --inkt3: #6C6C78; --lijn: rgba(20, 20, 24, .10);
  --accent: #3F3DC8; --accent-zacht: rgba(63, 61, 200, .12); --ja: #14874A; --ja-zacht: rgba(20, 135, 74, .13); --nee: #D23B42; --nee-zacht: rgba(210, 59, 66, .12); --let: #A86200; --let-zacht: rgba(184, 110, 0, .14);
  --glas: rgba(250, 250, 253, .62); --glas-sterk: rgba(250, 250, 253, .80); --glas-rand: rgba(255, 255, 255, .65); --glas-schaduw: 0 10px 40px rgba(20, 20, 40, .16), 0 1px 3px rgba(20, 20, 40, .10);
  --glans: linear-gradient(160deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .05) 38%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, .18));
  --scrim: rgba(10, 10, 20, .32);
  --r-kaart: 30px; --r-blad: 28px; --r-groep: 14px;
  --veilig-onder: env(safe-area-inset-bottom, 0px); --veilig-boven: env(safe-area-inset-top, 0px);
  --tabbalk-h: 64px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", sans-serif;
  --rond: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0A0A0D; --vlak: #1A1A1F; --vlak2: #232329; --inkt: #F2F2F6; --inkt2: #A4A4B0; --inkt3: #8E8E9A; --lijn: rgba(255, 255, 255, .10);
    --accent: #8B8AFF; --accent-zacht: rgba(139, 138, 255, .16); --ja: #3CCB7F; --ja-zacht: rgba(60, 203, 127, .16); --nee: #FF6B70; --nee-zacht: rgba(255, 107, 112, .15); --let: #FFB443; --let-zacht: rgba(255, 180, 67, .14);
    --glas: rgba(38, 38, 46, .55); --glas-sterk: rgba(32, 32, 40, .78); --glas-rand: rgba(255, 255, 255, .14); --glas-schaduw: 0 12px 44px rgba(0, 0, 0, .5), 0 1px 2px rgba(0, 0, 0, .4);
    --glans: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .06));
    --scrim: rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; min-height: 100dvh; background: var(--canvas); color: var(--inkt); font: 17px/1.4 var(--sans); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; overflow-x: clip; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.getal { font-family: var(--rond); font-variant-numeric: tabular-nums; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ── glas ── */
.glas { position: relative; background: var(--glas); -webkit-backdrop-filter: blur(22px) saturate(185%); backdrop-filter: blur(22px) saturate(185%);
  box-shadow: var(--glas-schaduw), inset 0 0 0 .5px var(--glas-rand), inset 0 1px 0 var(--glas-rand); isolation: isolate; }
.glas::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--glans); pointer-events: none; z-index: -1; mix-blend-mode: soft-light; }
@media (prefers-reduced-transparency: reduce) { .glas { background: var(--glas-sterk); -webkit-backdrop-filter: none; backdrop-filter: none; } .glas::before { display: none; } }
@media (prefers-contrast: more) { .glas { background: var(--vlak); box-shadow: 0 0 0 1.5px var(--inkt); } }

/* ── app-raamwerk ── */
#app { min-height: 100dvh; }
.scherm { display: none; padding: calc(var(--veilig-boven) + 8px) 16px calc(var(--tabbalk-h) + var(--veilig-onder) + 32px); max-width: 760px; margin: 0 auto; }
.scherm.actief { display: block; }
.kop { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 14px 4px 10px; }
.kop h1 { margin: 0; font-size: 34px; line-height: 1.05; font-weight: 700; letter-spacing: -.025em; }
.kop .sub { color: var(--inkt2); font-size: 15px; margin-top: 4px; letter-spacing: 0; }
.rondknop { width: 44px; height: 44px; border-radius: 22px; display: grid; place-items: center; color: var(--inkt); flex: none; }
.rondknop:active { transform: scale(.94); }
.draai svg { animation: draai 1s linear infinite; }
@keyframes draai { to { transform: rotate(360deg); } }

/* tabbalk: zwevende capsule */
.tabbalk { position: fixed; left: 50%; bottom: calc(var(--veilig-onder) + 12px); transform: translateX(-50%); z-index: 40; display: flex; gap: 2px; padding: 5px;
  border-radius: 34px; width: min(calc(100% - 28px), 440px); }
.tab { text-decoration: none; flex: 1; min-height: 54px; border-radius: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--inkt2);
  font-size: 11px; font-weight: 600; letter-spacing: .01em; position: relative; transition: color .2s; }
.tab svg.i { width: 24px; height: 24px; }
.tab[aria-current="page"] { color: var(--accent); background: var(--accent-zacht); }
.tab:active { transform: scale(.95); }
.tab .stip { position: absolute; top: 6px; left: calc(50% + 9px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--nee); color: #fff;
  font: 700 11px/18px var(--rond); text-align: center; }

/* meldingsbalk (fout / hint) */
.balk { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; margin: 4px 0 14px; font-size: 15px; line-height: 1.35; }
.balk.fout { background: var(--nee-zacht); }
.balk.hint { background: var(--accent-zacht); }
.balk.let { background: var(--let-zacht); }
.balk b { display: block; font-weight: 650; margin-bottom: 2px; }
.balk .knopjes { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* knoppen */
.knop { text-decoration: none; min-height: 44px; padding: 0 18px; border-radius: 22px; font-weight: 600; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; transition: transform .12s, opacity .2s; }
@media (prefers-color-scheme: dark) { .knop { color: #0A0A12; } }
.knop.twee { background: var(--accent-zacht); color: var(--accent); }
.knop.rood { background: var(--nee); color: #fff; }
.knop.groen { background: var(--ja); color: #fff; }
@media (prefers-color-scheme: dark) { .knop.groen, .knop.rood { color: #0A0A12; } }
.knop.vol { width: 100%; min-height: 52px; border-radius: 16px; font-size: 17px; }
.knop:active { transform: scale(.97); }
.knop[disabled] { opacity: .45; pointer-events: none; }

/* ── swipen: kolom die precies het scherm vult (kop · stapel · knoppen · tabbalk) ── */
#swipen.actief { display: flex; flex-direction: column; height: 100dvh; padding-bottom: calc(var(--tabbalk-h) + var(--veilig-onder) + 22px); }
#swipen .swipe-raam { flex: 1; min-height: 0; }
#swipen .swipe-raam > div:first-child { height: 100%; display: flex; flex-direction: column; }
.stapel-veld { position: relative; flex: 1; min-height: 330px; margin: 4px 0 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.kaart { position: absolute; inset: 0; border-radius: var(--r-kaart); overflow: hidden; background: var(--vlak2); box-shadow: 0 18px 50px rgba(20, 20, 40, .22), 0 2px 6px rgba(20, 20, 40, .12);
  will-change: transform; transform-origin: 50% 90%; cursor: grab; touch-action: none; }
.kaart:active { cursor: grabbing; }
.kaart.onder { pointer-events: none; }
.kaart .foto { position: absolute; inset: 0; background: linear-gradient(135deg, var(--vlak2), var(--canvas)); }
.kaart .foto img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; pointer-events: none; }
.kaart .foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, .35) 100%); }
.fotostreepjes { position: absolute; top: 10px; left: 14px; right: 14px; display: flex; gap: 4px; z-index: 2; }
.fotostreepjes i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .42); }
.fotostreepjes i.aan { background: #fff; }
.fototik { position: absolute; top: 0; bottom: 45%; width: 38%; z-index: 2; }
.fototik.l { left: 0; } .fototik.r { right: 0; }
.kaart .bovenin { position: absolute; top: 24px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 8px; z-index: 2; color: #fff; }
.pil { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 14px; font-size: 13px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.pil.donker { background: rgba(0, 0, 0, .38); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; }
.pil.nieuw { background: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .pil.nieuw { color: #0A0A12; } }
.tab[aria-current="page"] .stip { display: none; }
.kaart .paneel { background: var(--glas-sterk); position: absolute; left: 10px; right: 10px; bottom: 10px; border-radius: 22px; padding: 14px 16px 15px; z-index: 3; }
.paneel .rij1 { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.prijs { font-family: var(--rond); font-variant-numeric: tabular-nums; font-size: 34px; line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.prijs small { font-size: 15px; font-weight: 600; color: var(--inkt2); letter-spacing: 0; margin-left: 3px; }
.paneel h2 { margin: 8px 0 2px; font-size: 19px; line-height: 1.2; font-weight: 650; letter-spacing: -.01em; }
.paneel .waar { color: color-mix(in srgb, var(--inkt) 78%, transparent); font-size: 15px; }
.paneel .sluit { color: color-mix(in srgb, var(--inkt) 78%, transparent); }
.feitjes { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 14px; font-weight: 550; color: var(--inkt); }
.feitjes span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.feitjes svg.i { width: 17px; height: 17px; color: var(--inkt2); }
.elabel { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 5px; border-radius: 5px; font: 700 12px/1 var(--rond); color: #fff; background: #3c9a3c; }
.elabel[data-l^="B"] { background: #7cb342; } .elabel[data-l^="C"] { background: #c0a000; color: #1a1a1a; } .elabel[data-l^="D"] { background: #f0a020; color: #1a1a1a; }
.elabel[data-l^="E"] { background: #ee7b22; } .elabel[data-l^="F"], .elabel[data-l^="G"] { background: #d63b2f; }
.sluit { margin-top: 10px; font-size: 13px; color: var(--inkt2); display: flex; gap: 6px; align-items: center; }
.sluit.krap { color: var(--nee); font-weight: 600; }

/* handtekening: het volgnummer-bonnetje */
.bon { position: relative; flex: none; display: grid; justify-items: center; padding: 6px 12px 7px; min-width: 70px; border-radius: 10px; color: var(--accent);
  background: var(--vlak); box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
  -webkit-mask: radial-gradient(circle 4px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 4px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 4px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 4px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat; }
.bon::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; border-top: 1.5px dashed currentColor; opacity: .0; }
.bon .t { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.bon .n { font: 700 24px/1.05 var(--rond); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.bon .v { font-size: 11px; font-weight: 600; color: var(--inkt2); white-space: nowrap; }
.bon.loting { color: var(--inkt2); }
.bon.loting .n { font-size: 15px; line-height: 1.6; }
.bon.top { color: var(--ja); }

/* stempels tijdens het slepen */
.stempel { position: absolute; top: 42px; z-index: 4; padding: 6px 14px; border-radius: 12px; border: 3.5px solid currentColor; font: 800 26px/1 var(--rond); letter-spacing: .04em;
  text-transform: uppercase; opacity: 0; pointer-events: none; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.stempel.ja { left: 22px; color: #3FE08A; transform: rotate(-12deg); }
.stempel.nee { right: 22px; color: #FF6268; transform: rotate(12deg); }
.stempel.info { left: 50%; top: auto; bottom: 46%; transform: translateX(-50%); color: #fff; font-size: 20px; }

/* actieknoppen onder de stapel */
.acties { display: flex; justify-content: center; align-items: center; gap: 22px; margin: 14px 0 0; flex: none; }
.actie { width: 64px; height: 64px; border-radius: 32px; display: grid; place-items: center; transition: transform .12s; }
.actie svg.i { width: 28px; height: 28px; stroke-width: 2.3; }
.actie.nee { color: var(--nee); } .actie.ja { width: 72px; height: 72px; border-radius: 36px; color: #fff; background: var(--ja); box-shadow: 0 10px 28px color-mix(in srgb, var(--ja) 45%, transparent); }
.actie.ja::before { display: none; }
@media (prefers-color-scheme: dark) { .actie.ja { color: #06140C; } }
.actie.klein { width: 50px; height: 50px; color: var(--inkt2); }
.actie.klein svg.i { width: 23px; height: 23px; stroke-width: 2; }
.actie:active { transform: scale(.9); }
.actie[disabled] { opacity: .35; pointer-events: none; }

.leeg { text-align: center; padding: 48px 20px; color: var(--inkt2); }
.leeg .groot { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 38px; display: grid; place-items: center; background: var(--accent-zacht); color: var(--accent); }
.leeg .groot svg.i { width: 36px; height: 36px; }
.leeg h2 { margin: 0 0 6px; color: var(--inkt); font-size: 22px; letter-spacing: -.015em; }
.leeg p { margin: 0 auto 16px; max-width: 32ch; font-size: 15px; }

/* desktop: stapel links, details rechts */
.swipe-raam { display: block; }
.zijdetail { display: none; }
@media (min-width: 1000px) {
  #swipen.scherm { max-width: 1120px; }
  .swipe-raam { display: grid; grid-template-columns: 420px 1fr; gap: 36px; align-items: stretch; }
  .zijdetail { display: block; background: var(--vlak); border-radius: 24px; padding: 22px 26px; min-height: 0; height: 100%; overflow: auto; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
  .zijdetail .groep { background: var(--vlak2); }
  .zijdetail .cijfers div { background: var(--vlak2); }
}

/* toast (ongedaan maken) */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbalk-h) + var(--veilig-onder) + 26px); z-index: 60; width: min(calc(100% - 28px), 440px); transform: translate(-50%, 0);
  border-radius: 22px; padding: 12px 12px 12px 16px; display: flex; align-items: center; gap: 12px; font-size: 15px; }
.toast .tekst { flex: 1; min-width: 0; }
.toast .tekst b { display: block; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast .tekst span { color: var(--inkt2); font-size: 13px; }
.toast .ring { width: 30px; height: 30px; flex: none; }
.toast .ring circle { fill: none; stroke-width: 3; }
.toast .ring .baan { stroke: var(--lijn); } .toast .ring .loop { stroke: var(--accent); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.toast .knop { min-height: 38px; padding: 0 14px; font-size: 15px; }

/* ── lijsten (inset grouped) ── */
.segment { display: flex; padding: 3px; border-radius: 12px; background: var(--lijn); margin: 4px 0 16px; }
.segment button { flex: 1; min-height: 40px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--inkt2); }
.segment button[aria-pressed="true"] { background: var(--vlak); color: var(--inkt); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.groepkop { font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--inkt2); margin: 22px 16px 7px; }
.groepvoet { font-size: 13px; color: var(--inkt2); margin: 7px 16px 0; line-height: 1.4; }
.groep { background: var(--vlak); border-radius: var(--r-groep); overflow: hidden; }
.regel { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 10px 16px; position: relative; width: 100%; text-align: left; }
.regel + .regel::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: .5px solid var(--lijn); }
.regel.met-beeld + .regel::before, .regel.met-icoon + .regel::before { left: 62px; }
button.regel:active, a.regel:active { background: var(--vlak2); }
.regel .midden { flex: 1; min-width: 0; }
.regel .t1 { font-size: 16px; font-weight: 500; }
.regel .t2 { font-size: 13.5px; color: var(--inkt2); margin-top: 1px; }
.regel .rechts { color: var(--inkt2); font-size: 15px; text-align: right; flex: none; max-width: 52%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.regel .pijl { width: 14px; height: 14px; color: var(--inkt3); stroke-width: 2.4; }
.regel .icoon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: var(--accent); flex: none; }
.regel .icoon svg.i { width: 20px; height: 20px; }
.regel .duim { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; flex: none; background: var(--vlak2); }
a.regel { color: inherit; text-decoration: none; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; margin-top: 5px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: currentColor; }
.status.goed { color: var(--ja); } .status.let { color: var(--let); } .status.slecht { color: var(--nee); } .status.neutraal { color: var(--inkt2); } .status.blauw { color: var(--accent); }
.nodig { margin-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--let); }
.plekje { text-align: right; flex: none; }
.plekje .n { font: 700 22px/1 var(--rond); font-variant-numeric: tabular-nums; color: var(--accent); }
.plekje .v { font-size: 12px; color: var(--inkt2); }

/* schakelaar */
.schakel { position: relative; width: 51px; height: 31px; flex: none; }
.schakel input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.schakel span { position: absolute; inset: 0; border-radius: 16px; background: var(--lijn); transition: background .25s; }
.schakel span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 14px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .22);
  transition: transform .32s cubic-bezier(.3, 1.3, .5, 1); }
.schakel input:checked + span { background: var(--ja); }
.schakel input:checked + span::after { transform: translateX(20px); }
.schakel input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.stapper { display: inline-flex; align-items: center; border-radius: 10px; background: var(--vlak2); flex: none; }
.stapper button { width: 44px; height: 44px; font-size: 21px; font-weight: 500; color: var(--inkt); }
.stapper output { min-width: 64px; text-align: center; font: 600 16px var(--rond); font-variant-numeric: tabular-nums; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 14px; }
.chip { min-height: 44px; padding: 0 14px; border-radius: 18px; background: var(--vlak2); font-size: 14.5px; font-weight: 550; color: var(--inkt); border: 1px solid transparent; }
.chip[aria-pressed="true"] { background: var(--accent-zacht); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }

/* invoer in formulieren */
.veld { display: block; padding: 10px 16px 12px; position: relative; }
.veld + .veld::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: .5px solid var(--lijn); }
.veld label, .veld .lbl { display: block; font-size: 13px; color: var(--inkt2); margin-bottom: 4px; }
.veld input, .veld select, .veld textarea { width: 100%; min-height: 40px; border: 0; border-radius: 10px; background: var(--vlak2); padding: 8px 12px; font-size: 16px; }
.veld .waarde { font-size: 16px; white-space: pre-line; }
.veld .help { font-size: 12.5px; color: var(--inkt3); margin-top: 4px; }
.veld .veldfout { font-size: 13px; color: var(--nee); margin-top: 5px; font-weight: 600; }
.veld .rij { display: flex; gap: 8px; }
.veld.uit .waarde { color: var(--inkt2); }

/* ── bladen (bottom sheet) ── */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 70; opacity: 0; }
.blad { position: fixed; left: 0; right: 0; bottom: 0; z-index: 71; max-height: calc(100dvh - var(--veilig-boven) - 10px); border-radius: var(--r-blad) var(--r-blad) 0 0;
  display: flex; flex-direction: column; margin: 0 auto; max-width: 760px; background: var(--canvas); box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); will-change: transform; }
@media (min-width: 800px) { .blad { bottom: 24px; border-radius: var(--r-blad); max-height: calc(100dvh - 48px); width: min(720px, calc(100% - 48px)); } }
.blad .greep { padding: 8px 0 2px; display: grid; place-items: center; touch-action: none; cursor: grab; }
.blad .greep i { width: 38px; height: 5px; border-radius: 3px; background: var(--inkt3); opacity: .5; }
.blad .bladkop { display: flex; align-items: center; gap: 10px; padding: 4px 12px 8px 20px; touch-action: none; }
.blad .bladkop h2 { flex: 1; margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.blad .inhoud { overflow: auto; padding: 4px 16px calc(var(--veilig-onder) + 22px); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.blad .voet { padding: 10px 16px calc(var(--veilig-onder) + 12px); display: flex; gap: 10px; border-top: .5px solid var(--lijn); }
.blad .voet .knop { flex: 1; }

/* details van een woning */
.galerij { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; border-radius: 20px; margin: 0 -4px 14px; padding: 0 4px; scrollbar-width: none; }
.galerij::-webkit-scrollbar { display: none; }
.galerij img { flex: none; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; scroll-snap-align: center; background: var(--vlak2); }
.detailkop { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.detailkop h3 { margin: 0; font-size: 24px; line-height: 1.15; letter-spacing: -.02em; }
.detailkop .waar { color: var(--inkt2); margin-top: 3px; font-size: 15px; }
.cijfers { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin: 16px 0 6px; }
.cijfers div { background: var(--vlak); border-radius: 14px; padding: 10px 12px; }
.cijfers b { display: block; white-space: nowrap; font: 700 20px/1.1 var(--rond); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.cijfers span { font-size: 12.5px; color: var(--inkt2); }
.omschrijving { font-size: 15.5px; line-height: 1.55; white-space: pre-line; color: var(--inkt); }
.omschrijving.dicht { max-height: 9.3em; overflow: hidden; -webkit-mask: linear-gradient(#000 60%, transparent); mask: linear-gradient(#000 60%, transparent); }
.tekstknop { color: var(--accent); font-weight: 600; font-size: 15px; min-height: 44px; }
.reden { font-size: 14px; color: var(--let); font-weight: 600; margin-top: 8px; }

/* tijdlijn */
.tijdlijn { list-style: none; margin: 0; padding: 4px 16px 10px 16px; }
.tijdlijn li { position: relative; padding: 9px 0 9px 22px; font-size: 15px; }
.tijdlijn li::before { content: ""; position: absolute; left: 3px; top: 15px; width: 9px; height: 9px; border-radius: 5px; background: var(--accent); }
.tijdlijn li::after { content: ""; position: absolute; left: 7px; top: 26px; bottom: -9px; border-left: 1.5px solid var(--lijn); }
.tijdlijn li:last-child::after { display: none; }
.tijdlijn time { display: block; font-size: 12.5px; color: var(--inkt2); }

/* inloggen */
.inlog { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.inlog .doos { width: min(100%, 380px); text-align: center; }
.inlog .logo { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 18px; box-shadow: 0 10px 30px rgba(63, 61, 200, .3); }
.inlog h1 { font-size: 28px; margin: 0 0 6px; letter-spacing: -.02em; }
.inlog p { color: var(--inkt2); margin: 0 0 22px; font-size: 15px; }
.code-invoer { width: 100%; height: 64px; border-radius: 16px; border: 0; background: var(--vlak); text-align: center; font: 700 30px var(--rond); letter-spacing: .5em; padding-left: .5em;
  font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1px var(--lijn); }
.inlog .fout { color: var(--nee); font-weight: 600; min-height: 24px; margin-top: 10px; font-size: 15px; }

.skelet { background: linear-gradient(90deg, var(--vlak2), var(--vlak), var(--vlak2)); background-size: 200% 100%; animation: glim 1.4s ease-in-out infinite; border-radius: 12px; }
@keyframes glim { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .12s !important; }
}
@media (min-width: 1000px) { .scherm { padding-top: 28px; } .kop h1 { font-size: 40px; } }

/* compacte hintbalk (meldingen aanzetten) */
.balk.compact { align-items: center; padding: 10px 10px 10px 14px; margin: 0 0 10px; }
.balk.compact > div { flex: 1; min-width: 0; }
.balk.compact b { margin: 0; font-size: 15px; }
.balk.compact span { display: block; font-size: 13px; color: var(--inkt2); }
.balk.compact .knop { min-height: 40px; padding: 0 14px; font-size: 15px; }
.balk.compact .kruisje { width: 40px; height: 40px; border-radius: 20px; display: grid; place-items: center; color: var(--inkt2); flex: none; }
.blad:focus { outline: none; }
.zoekveld { width: 100%; min-height: 44px; border: 0; border-radius: 12px; background: var(--vlak); padding: 0 14px; font-size: 16px; margin-bottom: 4px; }

[hidden] { display: none !important; }
@media (max-width: 420px) { .balk.compact span { display: none; } }
