/* vieruur — basisstijl. --accent wordt per vereniging gezet (huisstijl). */
:root {
  /* vieruur-huisstijl: verloop blauw → paars → roze/rood → oranje */
  --brand-blue: #3f6bff;
  --brand-purple: #a65cf0;
  --brand-red: #e8384a;
  --brand-orange: #ff9a3c;
  --brand-gradient: linear-gradient(120deg, var(--brand-blue) 0%, var(--brand-purple) 30%, var(--brand-red) 62%, var(--brand-orange) 100%);
  --accent: var(--brand-red);
  /* Diepere variant van het verloop: overal waar witte tekst op het verloop staat (contrast minstens 4,5:1). */
  --brand-gradient-deep: linear-gradient(120deg, #2c4fd6 0%, #7a3bc8 30%, #c4283c 62%, #b4560f 100%);
  --link: #c9243a;

  --bg: #fffaf3;
  --bg-tint: #f7f0ff;
  --ink: #1c1530;
  --muted: #5b5470;
  --card: #ffffff;
  --line: rgba(28, 21, 48, 0.12);
  --green: #0e7a4b;
  --red: #d42a3c;

  --radius: 22px;
  --wrap: 1140px;
  --font-head: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--link); font-weight: 700; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.08; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.nowrap { white-space: nowrap; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.18em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.wrap-narrow { max-width: 520px; margin: 0 auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 250, 243, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: flex; align-items: center; gap: .6em; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; }
.logo img { width: 42px; height: 42px; border-radius: 50%; }
.logo small { display: block; font-family: var(--font-body); font-weight: 800; font-size: .72rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-top: -2px; }
.logo span { line-height: 1.05; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 800; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--link); }
.nav-out { display: inline-flex; align-items: center; gap: .35em; color: var(--muted) !important; }

/* Hero */
.page-hero {
  color: #fff; padding: clamp(28px, 6vw, 64px) 0 clamp(30px, 5vw, 56px);
  background:
    radial-gradient(circle at 0% 100%, #2c4fd6, transparent 45%), radial-gradient(circle at 100% 0%, #b4560f, transparent 50%), linear-gradient(135deg, #7a3bc8, #c4283c 55%, #b4560f);
}
.page-hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); transform: rotate(-2deg); transform-origin: left; margin: .15em 0 .35em; }
.page-hero .lead { margin: 0; font-weight: 700; font-size: 1.1rem; max-width: 36em; opacity: .95; }
.tag { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .9rem; background: #fff; color: var(--ink); padding: .25em .85em; border-radius: 999px; transform: rotate(-3deg); }

.main { flex: 1; padding: 28px 0 56px; }
body.has-tabs .main { padding-bottom: 110px; }
@media (min-width: 761px) { body.has-tabs .main { padding-bottom: 56px; } }

/* Knoppen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  background: var(--brand-gradient-deep); background-origin: border-box; color: #fff;
  padding: .7em 1.4em; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  box-shadow: 0 6px 18px rgba(166, 92, 240, .28); transition: transform .15s, box-shadow .15s, opacity .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-small { padding: .42em 1em; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-white { background: #fff; color: var(--ink); box-shadow: 0 4px 14px rgba(28, 21, 48, .12); border-color: var(--line); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn-danger { background: #fff; color: var(--red); border-color: rgba(212, 42, 60, .35); box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--link); font-weight: 800; cursor: pointer; text-decoration: underline; }

/* Kaarten */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.card > :last-child { margin-bottom: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; }
.grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.grid > * { min-width: 0; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .grid-3-1 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.grid > .card { margin-bottom: 0; }
/* Op gsm: kaarten uit beide kolommen in een eigen volgorde */
@media (max-width: 859px) {
  .reflow { gap: 0; } .reflow > .col { display: contents; }
  .reflow .o1 { order: 1; } .reflow .o2 { order: 2; } .reflow .o3 { order: 3; } .reflow .o4 { order: 4; } .reflow .o5 { order: 5; } .reflow .o6 { order: 6; } .reflow .o7 { order: 7; }
}

/* Saldo */
.saldo-card { position: relative; overflow: hidden; color: #fff; background: var(--brand-gradient-deep); border: 0; padding: 26px; }
.saldo-card.neg { background: linear-gradient(135deg, #3a1d2e, #d42a3c); }
.saldo-label { font-weight: 800; opacity: .9; margin: 0; }
.saldo-bedrag { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.8rem, 12vw, 4rem); line-height: 1; margin: .1em 0 .2em; letter-spacing: -.01em; }
.saldo-sub { margin: 0; font-weight: 700; opacity: .92; }
.saldo-card .btn { margin-top: 18px; }

.kids { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.kid { display: inline-flex; align-items: center; gap: .45em; background: rgba(255,255,255,.18); padding: .3em .8em; border-radius: 999px; font-weight: 800; }
.kid i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, #fff); box-shadow: 0 0 0 2px rgba(255,255,255,.6); }

/* Afdelingskleur: --c per afdeling (inline gezet), anders neutraal */
.afd { display: inline-block; background: var(--c, #6b5d8f); color: var(--on, #fff); font-weight: 800; font-size: .8rem; padding: .15em .7em; border-radius: 999px; white-space: nowrap; }
.kid i { background: var(--c, #fff); }

/* Lijst / tijdlijn */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .t { font-weight: 800; }
.list .s { color: var(--muted); font-size: .9rem; font-weight: 600; }
.amt { font-family: var(--font-head); font-weight: 600; white-space: nowrap; }
.amt.pos { color: var(--green); }
.amt.neg { color: var(--ink); }
.dot { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; font-size: 1.05rem; background: var(--bg-tint); }
.dot.up { background: #e3f7ec; color: var(--green); }
.empty { text-align: center; color: var(--muted); font-weight: 700; padding: 18px 0; }

/* Formulieren */
.field { margin-bottom: 14px; }
.field label, .lbl { display: block; font-weight: 800; margin-bottom: 6px; }
.field .hint { display: block; color: var(--muted); font-size: .88rem; font-weight: 600; margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], input[type=tel], select, textarea {
  width: 100%; font: inherit; font-weight: 700; color: var(--ink); background: #fff;
  border: 2px solid var(--line); border-radius: 14px; padding: .62em .9em; outline: none; transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none; min-height: 48px;
}
select { padding-right: 2.4em; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5 7 7l5.5-5.5' fill='none' stroke='%231c1530' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 1em center; }
input:focus, select:focus, textarea:focus { border-color: #7a3bc8; box-shadow: 0 0 0 4px rgba(122, 59, 200, .35); }
input[type=file] { font: inherit; font-weight: 700; width: 100%; max-width: 100%; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--brand-purple); flex: none; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.inline-form .field { margin: 0; flex: 1; min-width: 140px; }

/* Bedragkeuze (opladen) */
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 420px) { .amounts { grid-template-columns: repeat(2, 1fr); } }
.amounts label { position: relative; }
.amounts input { position: absolute; opacity: 0; pointer-events: none; }
.amounts span { display: block; text-align: center; padding: .7em 0; border-radius: 14px; border: 2px solid var(--line); font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; background: #fff; cursor: pointer; }
.amounts input:checked + span { border-color: var(--brand-purple); background: var(--bg-tint); color: #5a32c4; }
.amounts input:focus-visible + span { box-shadow: 0 0 0 4px rgba(28, 21, 48, .15); }

/* Meldingen */
.flash { border-radius: 16px; padding: 12px 16px; margin-bottom: 18px; font-weight: 800; }
.flash-ok { background: #e3f7ec; color: #0b6b40; }
.flash-err { background: #fde7ea; color: #a01d2c; }
.flash-info { background: var(--bg-tint); color: var(--ink); }
.note { background: var(--bg-tint); border-radius: 16px; padding: 14px 16px; font-weight: 600; }
.note.warn { background: #fff3df; color: #7a4a00; }

/* Pills */
.pill { display: inline-block; padding: .12em .65em; border-radius: 999px; font-size: .8rem; font-weight: 800; background: var(--bg-tint); color: var(--ink); white-space: nowrap; }
.pill.ok { background: #e3f7ec; color: #0b6b40; }
.pill.warn { background: #fff3df; color: #8a5300; }
.pill.bad { background: #fde7ea; color: #a01d2c; }
.pill.grey { background: #efedf3; color: var(--muted); }

/* Tabellen */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.tbl { width: 100%; border-collapse: collapse; font-size: .97rem; }
.tbl th, .tbl td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { font-family: var(--font-head); font-weight: 600; background: var(--bg-tint); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl a { text-decoration: none; }
.tbl tbody tr:hover { background: #fffcf8; }

/* Statistieken */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.8rem; line-height: 1.1; }
.stat span { color: var(--muted); font-weight: 700; font-size: .92rem; }
.stat.neg strong { color: var(--red); }

/* Subnavigatie beheer */
.subtabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 22px; padding: 2px 16px 6px; scrollbar-width: none; }
.subtabs::-webkit-scrollbar { display: none; }
.subtabs a { flex: none; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); padding: .4em .95em; border-radius: 999px; font-weight: 800; font-size: .95rem; }
.subtabs a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (min-width: 720px) { .subtabs { margin: 0 0 24px; padding: 2px 0 6px; flex-wrap: wrap; } }

/* Aanduiden (leiding) */
.afd-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; margin-bottom: 8px; scrollbar-width: none; }
.afd-tabs::-webkit-scrollbar { display: none; }
.afd-tabs a { flex: none; text-decoration: none; padding: .45em 1em; border-radius: 999px; font-weight: 800; background: #fff; color: var(--ink); border: 2px solid var(--line); }
.afd-tabs a[aria-current="page"] { background: var(--c, var(--ink)); color: var(--on, #fff); border-color: transparent; }
.dagbar { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.dagbar input { flex: 1; }
.dagbar .btn { padding: .55em .8em; }
.mark-list { list-style: none; margin: 0; padding: 0; }
.mark-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mark-row:last-child { border-bottom: 0; }
.mark-row .nm { flex: 1; min-width: 0; font-weight: 800; line-height: 1.25; }
.mark-row .nm small { display: block; font-weight: 700; color: var(--muted); font-size: .82rem; }
.mark-row .nm .neg { color: var(--red); }
.seg { display: inline-flex; background: #f1edf6; border-radius: 14px; padding: 3px; flex: none; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: grid; place-items: center; min-width: 46px; height: 42px; padding: 0 8px; border-radius: 11px; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--muted); cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(28,21,48,.15); }
.seg input:checked + span.on { background: var(--brand-gradient-deep); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid rgba(28, 21, 48, .3); }
.savebar { position: sticky; bottom: 12px; z-index: 20; display: flex; gap: 10px; align-items: center; justify-content: space-between; background: var(--ink); color: #fff; border-radius: 18px; padding: 10px 10px 10px 18px; margin-top: 16px; box-shadow: 0 10px 30px rgba(28,21,48,.25); }
.savebar strong { font-family: var(--font-head); font-weight: 600; }
body.has-tabs .savebar { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 761px) { body.has-tabs .savebar { bottom: 12px; } }

/* Aanduiden: snel en overzichtelijk */
html.js .nojs-only { display: none; }
html:not(.js) .mark-state { display: none; }
.mark-top { position: sticky; top: 64px; z-index: 30; background: var(--bg); margin: -28px -16px 12px; padding: 12px 16px 6px; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .mark-top { position: static; border-bottom: 0; } }
@media (min-width: 720px) { .mark-top { margin: -28px -32px 14px; padding: 14px 32px 8px; } }
.mark-top .afd-tabs { margin-bottom: 6px; }
.afd-tabs a { padding: .5em 1.05em; font-size: 1.02rem; }
.afd-tabs a { display: inline-flex; align-items: center; gap: .45em; white-space: nowrap; }
.afd-tabs .tel { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; padding: 0 .35em; border-radius: 999px; font-size: .75em; font-weight: 800; background: rgba(28,21,48,.1); }
.afd-tabs a[aria-current="page"] .tel { background: rgba(255,255,255,.35); }
.afd-tabs .tel.leeg { opacity: .45; }
.mark-top .dagbar { margin-bottom: 4px; }
.dag-lbl { flex: 1; position: relative; display: block; }
.dag-lbl span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; pointer-events: none; background: #fff; border: 2px solid var(--line); border-radius: 14px; }
.dag-lbl input { opacity: 0; min-height: 44px; }
.mark-card { padding: 16px 18px; }
.mark-row { position: relative; transition: background .4s; }
[hidden] { display: none !important; }
.mark-row.is-on .nm { color: var(--ink); }
.mark-row:not(.is-on) .nm { color: #3b3452; }
.mark-row .ln { color: var(--muted); font-weight: 700; }
.mark-row .vn { display: block; }
.mark-row .ln { white-space: nowrap; }
@media (max-width: 400px) { .mark-row .seg span { min-width: 46px; } }
.mark-row .seg span { min-width: 54px; height: 48px; font-size: 1.2rem; }
.ok-tick { position: absolute; left: -14px; top: 50%; margin-top: -.7em; color: var(--green); font-weight: 800; opacity: 0; transition: opacity .3s; pointer-events: none; }
.mark-row.saved .ok-tick { animation: tick 1.2s ease; }
.mark-row.failed { background: #fde7ea; }
@keyframes tick { 0% { opacity: 0; transform: scale(.6); } 20% { opacity: 1; transform: scale(1.15); } 70% { opacity: 1; } 100% { opacity: 0; } }
.mark-state { font-weight: 700; font-size: .85rem; opacity: .85; white-space: nowrap; }
.savebar strong { white-space: nowrap; }
.mark-state.err { color: #ffb3bd; opacity: 1; }
.savebar { gap: 12px; }

.dag-vast { margin: 2px 0 4px; font-size: .95rem; color: var(--muted); font-weight: 700; }
.dag-vast strong { color: var(--ink); }
.closed-card { text-align: center; padding: 36px 22px; }
.closed-ico { font-size: 2.6rem; display: block; margin-bottom: 6px; }

.test-card { border: 2px dashed rgba(28, 21, 48, .25); }
.test-row input { display: block; }
.test-row { display: flex; gap: 12px 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); }

/* Bewerkbare lijsten (instellingen) */
.ed-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.ed-row { display: grid; grid-template-columns: minmax(0, 2fr) 70px 90px 80px 44px 40px; gap: 8px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ed-row:last-child { border-bottom: 0; }
.ed-row-afd { grid-template-columns: minmax(0, 2fr) 90px 60px 36px; }
.ed-head { background: var(--bg-tint); font-family: var(--font-head); font-weight: 600; padding-top: 8px; padding-bottom: 8px; }
.ed-row label { display: block; min-width: 0; }
.ed-row input[type=text], .ed-row input[type=number] { min-height: 42px; padding: .45em .7em; }
.ed-row input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--brand-purple); }
.ed-lbl { display: none; }
.ed-tel { font-weight: 700; color: var(--muted); text-align: right; white-space: nowrap; font-size: .92rem; }
.ed-new { background: #fffcf8; }
@media (max-width: 600px) {
  .ed-head { display: none; }
  .ed-row { grid-template-columns: repeat(3, minmax(0, 1fr)) 44px 40px; row-gap: 8px; }
  .ed-row-afd { grid-template-columns: minmax(0, 1fr) 80px 64px 36px; }
  .ed-row-afd .ed-tel { align-self: end; line-height: 42px; text-align: right; }
  .ed-row .ed-naam { grid-column: 1 / -1; }
  .ed-row-afd .ed-naam { grid-column: auto; }
  .ed-lbl { display: block; font-size: .78rem; font-weight: 800; color: var(--muted); margin-bottom: 3px; }
  .ed-aan { text-align: center; }
}

/* Auth-pagina's */
.auth { max-width: 440px; margin: 10px auto 0; }
.auth .card { padding: 26px; }
.auth h1 { font-size: 2rem; transform: rotate(-2deg); transform-origin: left; }
.auth-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; font-size: .95rem; }

/* Footer */
.site-footer { background: var(--ink); color: #fff; border-top: 6px solid transparent; border-image: var(--brand-gradient) 1; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-top: 20px; padding-bottom: 20px; font-size: .95rem; }
.footer-inner p { margin: 0; }
.footer-inner a { color: #ffb86b; }
body.has-tabs .site-footer { padding-bottom: 70px; }
@media (min-width: 761px) { body.has-tabs .site-footer { padding-bottom: 0; } }

/* Tabbalk (gsm) */
.tabbar { display: none; }
@media (max-width: 760px) {
  .nav { display: none; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 2px; text-decoration: none; color: var(--muted); font-weight: 800; font-size: .74rem; border-radius: 12px; }
  .tabbar a .ico { width: 24px; height: 24px; }
  .tabbar a[aria-current="page"] { color: var(--link); }
}

/* Dialoog */
dialog.vu-dialog { border: 0; border-radius: 22px; padding: 24px; max-width: 420px; width: calc(100% - 32px); color: var(--ink); box-shadow: 0 20px 60px rgba(28,21,48,.35); }
dialog.vu-dialog::backdrop { background: rgba(28, 21, 48, .45); }
dialog.vu-dialog p { font-weight: 700; }

/* Hulp */
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; } .mt { margin-top: 18px; }
.right { text-align: right; }
.split { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
details.more summary { cursor: pointer; font-weight: 800; color: var(--link); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } .btn:hover { transform: none; } }

/* vieruur-aanvullingen */
.logo-accent { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo small { display: block; font-family: var(--font-body); font-weight: 800; font-size: .72rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-top: -2px; }
.logo img { border-radius: 12px; }
.nav-out-form { margin: 0; }
.nav-out { background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.code-input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .3em; font-size: 1.4rem; text-align: center; }
.qr { background: #fff; padding: 12px; border-radius: 16px; border: 1px solid var(--line); display: inline-block; }
.qr svg { display: block; width: 200px; height: 200px; }
.codes { columns: 2; font-family: ui-monospace, Menlo, monospace; font-weight: 700; }
.dag-vast { margin: 2px 0 4px; font-size: .95rem; color: var(--muted); font-weight: 700; }
.dag-vast strong { color: var(--ink); }
.closed-card { text-align: center; padding: 36px 22px; }
.closed-ico { font-size: 2.6rem; display: block; margin-bottom: 6px; }
.test-card { border: 2px dashed var(--line); }
.test-row { display: flex; gap: 12px 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); margin: 0; }
.test-row input { display: block; }
.ed-row-afd { grid-template-columns: minmax(0, 2fr) 90px 70px 40px !important; }
@media (max-width: 600px) { .ed-row-afd { grid-template-columns: minmax(0, 1fr) 70px 56px 40px !important; } .ed-row-afd .ed-naam { grid-column: auto !important; } }

/* ── Landingspagina ─────────────────────────────────────────────────────── */
.nav-guest a.btn { color: #fff; }
.lp-hero { position: relative; overflow: hidden; color: #fff; padding: clamp(40px, 8vw, 96px) 0 clamp(56px, 9vw, 110px);
  background: radial-gradient(circle at 0% 100%, #2c4fd6, transparent 45%), radial-gradient(circle at 100% 0%, #b4560f, transparent 50%), linear-gradient(135deg, #7a3bc8, #c4283c 55%, #b4560f); }
.lp-blob { position: absolute; border-radius: 50%; background: #fff; opacity: .09; pointer-events: none; animation: lp-float 14s ease-in-out infinite; }
.lp-blob.b1 { width: 320px; height: 320px; left: -80px; top: -90px; }
.lp-blob.b2 { width: 180px; height: 180px; right: 8%; bottom: -60px; animation-delay: -5s; }
.lp-blob.b3 { width: 90px; height: 90px; left: 45%; top: 12%; animation-delay: -9s; }
@keyframes lp-float { 50% { transform: translateY(-16px) scale(1.04); } }
.lp-hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .lp-hero-grid { grid-template-columns: 1.1fr .9fr; } }
.lp-hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); transform: rotate(-3deg); transform-origin: left; margin: .35em 0 .45em; line-height: 1.02; text-shadow: 0 2px 20px rgba(28,21,48,.15); }
.lp-under { position: relative; white-space: nowrap; }
.lp-under::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: .14em; background: #fff; border-radius: 99px; opacity: .85; transform: rotate(-1deg); }
.lp-hero .lead { margin: 0; max-width: 32em; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); box-shadow: none; }
.btn-outline:hover { background: #fff; color: var(--ink); }
.lp-free { display: inline-flex; gap: .5em; align-items: center; margin: 1.4rem 0 0; font-weight: 800; background: rgba(255,255,255,.18); padding: .4em .9em; border-radius: 999px; }

.lp-phone-wrap { position: relative; justify-self: center; padding: 20px 40px; }
.lp-phone { width: 270px; background: #1c1530; border-radius: 42px; padding: 12px; box-shadow: 0 30px 70px rgba(28,21,48,.45); transform: rotate(4deg); position: relative; }
.lp-notch { position: absolute; top: 18px; left: 50%; width: 80px; height: 20px; margin-left: -40px; background: #1c1530; border-radius: 0 0 14px 14px; z-index: 2; }
.lp-screen { background: var(--bg); border-radius: 32px; overflow: hidden; color: var(--ink); padding: 34px 12px 12px; font-size: .82rem; }
.lp-app-head { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 10px; }
.lp-app-head img { width: 24px; height: 24px; border-radius: 7px; }
.lp-app-head span { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.lp-tabs span { white-space: nowrap; padding: .3em .65em; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; font-weight: 800; font-size: .75rem; }
.lp-tabs span.on { background: #0e7a4b; color: #fff; border-color: transparent; }
.lp-tabs i { font-style: normal; opacity: .7; margin-left: 3px; }
.lp-rows { background: #fff; border-radius: 16px; padding: 4px 10px; border: 1px solid var(--line); }
.lp-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); }
.lp-row:last-child { border-bottom: 0; }
.lp-seg { display: inline-flex; background: #f1edf6; border-radius: 9px; padding: 2px; }
.lp-seg i { font-style: normal; width: 28px; height: 24px; display: grid; place-items: center; border-radius: 7px; font-family: var(--font-head); color: var(--muted); font-size: .8rem; }
.lp-seg i.sel { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(28,21,48,.15); }
.lp-seg i.on { background: var(--brand-gradient-deep); color: #fff; }
.lp-bar { display: flex; justify-content: space-between; margin-top: 8px; background: var(--ink); color: #fff; border-radius: 12px; padding: 8px 10px; font-size: .72rem; }
.lp-float { position: absolute; background: #fff; color: var(--ink); border-radius: 18px; box-shadow: 0 16px 40px rgba(28,21,48,.28); padding: 12px 14px; animation: lp-float 8s ease-in-out infinite; }
.lp-float-saldo { left: -6px; top: 34%; transform: rotate(-5deg); }
.lp-float-saldo small { display: block; color: var(--muted); font-weight: 800; font-size: .72rem; }
.lp-float-saldo strong { font-family: var(--font-head); font-size: 1.5rem; background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-float-push { right: -4px; bottom: 6%; display: flex; gap: 10px; align-items: center; max-width: 230px; animation-delay: -3s; }
.lp-float-push span { font-size: 1.4rem; }
.lp-float-push b { display: block; font-size: .8rem; } .lp-float-push small { color: var(--muted); font-size: .72rem; font-weight: 700; }
@media (max-width: 480px) { .lp-phone-wrap { padding: 10px 10px 30px; } .lp-phone { width: 250px; } .lp-tabs span { font-size: .68rem; padding: .3em .5em; } .lp-float-saldo { left: -10px; } .lp-float-push { right: -10px; } }

.lp-section { padding: clamp(56px, 8vw, 100px) 0; }
.lp-tint { background: var(--bg-tint); }
.lp-h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .3em; }
.lp-steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 22px; counter-reset: s; }
@media (min-width: 860px) { .lp-steps { grid-template-columns: repeat(3, 1fr); } }
.lp-steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; position: relative; }
.lp-steps p { color: var(--muted); margin: 0; }
.lp-num { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--brand-gradient-deep); color: #fff; font-family: var(--font-head); font-size: 1.5rem; transform: rotate(-6deg); margin-bottom: 14px; box-shadow: 0 8px 20px rgba(166,92,240,.3); }
.lp-roles { display: grid; gap: 20px; margin-top: 36px; }
@media (min-width: 860px) { .lp-roles { grid-template-columns: repeat(3, 1fr); } }
.lp-role { background: #fff; border-radius: var(--radius); padding: 26px; border-top: 10px solid; }
.lp-role.r1 { border-top-color: var(--brand-blue); } .lp-role.r2 { border-top-color: var(--brand-purple); } .lp-role.r3 { border-top-color: var(--brand-red); }
.lp-role-ico { font-size: 2rem; display: block; margin-bottom: 8px; }
.lp-role ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lp-role li { padding-left: 26px; position: relative; font-weight: 700; color: #3b3452; }
.lp-role li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.lp-dark { background: var(--ink); color: #fff; }
.lp-dark p { color: rgba(255,255,255,.8); }
.lp-safe { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .lp-safe { grid-template-columns: 1fr 1.1fr; } }
.lp-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lp-checks li { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 14px 18px 14px 52px; position: relative; font-weight: 700; }
.lp-checks li::before { content: "✓"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--brand-gradient); display: grid; place-items: center; font-size: .85rem; }
.lp-final { display: grid; gap: 22px; align-items: center; color: #fff; background: var(--brand-gradient-deep); border-radius: calc(var(--radius) * 1.4); padding: clamp(28px, 5vw, 56px); }
@media (min-width: 860px) { .lp-final { grid-template-columns: 1fr auto; } }
.lp-final h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); transform: rotate(-2deg); transform-origin: left; }
.lp-final p { margin: 0; font-weight: 700; font-size: 1.1rem; }
@media (prefers-reduced-motion: reduce) { .lp-blob, .lp-float { animation: none; } }
@media (max-width: 760px) { .nav-guest { display: flex !important; gap: .8rem; } .nav-guest a:not(.btn) { display: none; } }

.danger-row td { background: #fff7f7; border-top: 0 !important; }
.danger-form { border: 2px solid rgba(212, 42, 60, .25); border-radius: 16px; padding: 14px 16px; background: #fff; }

/* Passkeys */
.or { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--muted); font-weight: 700; font-size: .9rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pk-error { color: var(--red, #c62436); font-weight: 700; margin: 10px 0 0; }
.pk-list { list-style: none; padding: 0; margin: 14px 0 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.pk-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 6px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.pk-list li:last-child { border-bottom: 0; }
.pk-name { min-width: 0; display: grid; gap: 2px; }
.pk-del { flex: 1 1 100%; } .pk-del:not([open]) { flex: 0 0 auto; }
.card-accent { border-color: var(--brand-purple); box-shadow: 0 0 0 3px rgba(166, 92, 240, .15); }

/* Online opladen instellen (beheer) */
.setup-card { border: 2px solid var(--brand-purple); box-shadow: 0 0 0 4px rgba(166, 92, 240, .12); position: relative; }
.setup-card.setup-pending { border-color: #f0a640; box-shadow: 0 0 0 4px rgba(240, 166, 64, .15); }
.setup-card.setup-enable { border-color: #2fae6e; box-shadow: 0 0 0 4px rgba(47, 174, 110, .13); }
.setup-card h3 { margin: 8px 0 6px; }
.setup-list { margin: 6px 0 16px; padding-left: 1.3em; display: grid; gap: 4px; }
.setup-list li.done { color: var(--muted); text-decoration: line-through; }
.setup-hide { margin-top: 14px; text-align: right; }
.setup-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 18px; font-weight: 600; }
.setup-strip .grow { flex: 1 1 220px; }

/* Testomgeving */
.sandbox-bar { background: repeating-linear-gradient(-45deg, #1c1530 0 14px, #2a2040 14px 28px); color: #fff; font-size: .9rem; position: relative; z-index: 60; }
.sandbox-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding-top: 7px; padding-bottom: 7px; }
.sandbox-bar strong:first-child { background: #ffc02e; color: #1c1530; padding: .1em .55em; border-radius: 6px; letter-spacing: .04em; font-size: .8rem; }
.sandbox-bar .sb-txt { flex: 1 1 auto; opacity: .9; }
.sandbox-bar a, .sandbox-bar button { color: #fff; font-weight: 800; text-decoration: underline; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.sandbox-bar form { display: inline; }
.sb-count { display: inline-block; min-width: 1.5em; text-align: center; background: #e8384a; border-radius: 999px; padding: 0 .4em; text-decoration: none; margin-left: 2px; }
.inbox { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 18px; align-items: start; }
.inbox-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; max-height: 75vh; overflow-y: auto; }
.inbox-list a { display: grid; gap: 2px; padding: 10px 14px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.inbox-list a[aria-current] { background: var(--bg-tint); }
.inbox-list .unread { font-weight: 800; }
.inbox-list .s { font-size: .85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-frame { width: 100%; min-height: 560px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.who { display: flex; flex-wrap: wrap; gap: 8px; }
.who form { display: inline; }
@media (max-width: 760px) { .inbox { grid-template-columns: 1fr; } .inbox-list { max-height: 40vh; } }

/* Wachtwoordvereisten */
.pw-rules { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 4px; font-size: .92rem; font-weight: 700; color: var(--muted); }
.pw-rules li::before { content: "○"; display: inline-block; width: 1.4em; }
.pw-rules li.ok { color: #2e9e5b; }
.pw-rules li.ok::before { content: "✓"; }

/* Aanmelden met Google */
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-google img { flex: none; }

/* Andere aanmeldknoppen onder elkaar, met lucht ertussen en een rustige schaduw */
.alt-logins { display: grid; gap: 12px; }
.alt-logins .btn-white { box-shadow: 0 1px 3px rgba(28, 21, 48, .08); }
.alt-logins .passkey-alt[hidden] { display: none; }
.alt-logins .pk-error { margin: 8px 0 0; }
.alt-logins + .auth-links { margin-top: 18px; }

/* Landingspagina: voordelen, case, app, vragen */
.lp-benefits { display: grid; gap: 18px; margin-top: 32px; }
@media (min-width: 720px) { .lp-benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .lp-benefits { grid-template-columns: repeat(4, 1fr); } }
.lp-benefits article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.lp-benefits span { font-size: 1.8rem; }
.lp-benefits h3 { margin: 10px 0 6px; }
.lp-benefits p { color: var(--muted); margin: 0; }
.lp-case { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .lp-case { grid-template-columns: 3fr 2fr; } }
.lp-case blockquote { margin: 0; font-family: var(--font-head); font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.35; }
.lp-case blockquote footer { font-family: inherit; font-size: 1rem; color: var(--muted); margin-top: 14px; }
.lp-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.lp-stats div { background: var(--bg-tint); border-radius: var(--radius); padding: 18px; }
.lp-stats strong { display: block; font-family: var(--font-head); font-size: 1.8rem; }
.lp-stats span { color: var(--muted); font-weight: 700; font-size: .92rem; }
.lp-app p { max-width: 640px; color: var(--muted); font-size: 1.08rem; }
.lp-soon { cursor: default; background: #fff; color: var(--muted); border-color: var(--line); box-shadow: none; }
.lp-faq { max-width: 820px; }
.lp-faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; margin-top: 12px; }
.lp-faq summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+" / ""; float: right; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.lp-faq details[open] summary::after { content: "–" / ""; }
.lp-faq details p { margin: 0 0 16px; color: var(--muted); }
.lp-final-cta { display: grid; gap: 12px; justify-items: start; }
.lp-share { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; font-size: .95rem; }

/* Platform: groei */
.growth-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 16px; }
.growth-tiles .card strong { display: block; font-family: var(--font-head); font-size: 1.9rem; line-height: 1.1; color: var(--ink); }
.growth-tiles .card span { color: var(--muted); font-weight: 700; font-size: .92rem; }
.growth-tiles .card small { display: block; color: var(--muted); font-size: .82rem; margin-top: 4px; }
.growth-charts { display: grid; gap: 12px; }
@media (min-width: 720px) { .growth-charts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .growth-charts { grid-template-columns: repeat(4, 1fr); } }
.wb { margin: 0; }
.wb-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.wb-head span { font-weight: 800; color: var(--ink); }
.wb-head strong { margin-left: auto; font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); }
.wb-head small { flex-basis: 100%; color: var(--muted); font-size: .8rem; }
.wb svg { width: 100%; height: auto; display: block; overflow: visible; }
.wb-base { stroke: #e7e1ef; stroke-width: 1; }
.wb-fill { fill: #7c4ddb; }
.wb-hit { fill: transparent; }
.wb-bar:hover .wb-fill, .wb-bar:focus .wb-fill { fill: #5d33b8; }
.wb-bar:focus { outline: none; }
.wb-val { font-size: 11px; font-weight: 800; fill: var(--ink); }
.wb-axis { font-size: 10px; fill: var(--muted); }
.wb-table summary { cursor: pointer; font-size: .82rem; color: var(--muted); font-weight: 700; margin-top: 4px; }
.funnel { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.funnel li { display: grid; grid-template-columns: minmax(140px, 1.2fr) 2fr auto; gap: 10px; align-items: center; font-size: .92rem; }
.fl-label { font-weight: 700; }
.fl-track { background: #f1ecf8; border-radius: 4px; height: 12px; overflow: hidden; }
.fl-bar { display: block; height: 100%; background: #7c4ddb; border-radius: 4px; }
.fl-num { font-weight: 800; white-space: nowrap; min-width: 64px; text-align: right; }
.fl-num small { color: var(--muted); font-weight: 600; }

.hint.ok { color: #2e9e5b; }
.hint.bad { color: #a01d2c; }

/* Vereniging in afwachting: stappen */
.pending-card h3 { font-size: 1.25rem; }
.steps-status { list-style: none; padding: 0; margin: 16px 0 6px; display: grid; gap: 0; }
.steps-status li { position: relative; padding: 0 0 16px 34px; display: grid; gap: 2px; }
.steps-status li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); background: #fff; box-sizing: border-box; }
.steps-status li::after { content: ""; position: absolute; left: 9px; top: 24px; bottom: 2px; width: 2px; background: var(--line); }
.steps-status li:last-child::after { display: none; }
.steps-status li.done::before { content: "✓"; background: #2e9e5b; border-color: #2e9e5b; color: #fff; font-size: 12px; font-weight: 900; text-align: center; line-height: 16px; }
.steps-status li.now::before { border-color: #e08a00; background: #fff4e0; }
.steps-status li.now b { color: #b36b00; }
.steps-status span { color: var(--muted); font-size: .92rem; }
.todo-list { margin: 8px 0 14px; padding-left: 20px; display: grid; gap: 6px; }

/* Hulp bij Stripe */
.stripe-guide { background: var(--bg-tint); border-radius: 14px; padding: 14px 16px 6px; margin: 4px 0 14px; }
.stripe-guide ul { margin: 6px 0 0; padding-left: 1.1em; display: grid; gap: 4px; }

/* Ouder activeren: naam en rol */
.about-you { border: 0; padding: 0; margin: 0 0 6px; min-width: 0; }
.about-you legend { font-weight: 800; font-size: 1.05rem; margin-bottom: 8px; padding: 0; }
.seg-choice { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-choice label { display: inline-flex; margin: 0; font-weight: 700; cursor: pointer; }
.seg-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-choice span { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line, #e3dcef); background: #fff; }
.seg-choice input:checked + span { background: var(--brand-purple); border-color: var(--brand-purple); color: #fff; }
.seg-choice input:focus-visible + span { outline: 2px solid var(--brand-purple); outline-offset: 2px; }
/* Uitnodiging op een gsm: de app aanbieden */
.app-box { background: var(--bg-tint); border-radius: 16px; padding: 14px 16px; margin: 0 0 18px; display: grid; gap: 8px; }
.app-box p { margin: 0; }
/* Verwijderknop in de bewerklijsten (vieruurtjes, afdelingen): rustig prullenbakje, rood bij aanwijzen */
.ed-del { display: inline-grid; place-items: center; width: 40px; height: 42px; padding: 0; border: 0; border-radius: 12px;
  background: transparent; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.ed-del .ico { width: 19px; height: 19px; }
.ed-del:hover, .ed-del:focus-visible { background: rgba(212, 42, 60, .08); color: var(--red); }
@media (max-width: 600px) { .ed-del { align-self: end; } }
/* Leidingkas: kost verdelen */
.kas-people li { padding: 8px 0; }
.kas-people .check { display: flex; align-items: center; gap: 10px; margin: 0; flex: 1; min-width: 0; }
.kas-people .check input { width: 20px; height: 20px; flex: none; accent-color: var(--brand-purple); }
.kas-people input.kas-amt { width: 96px; flex: none; min-height: 38px; padding: .35em .6em; text-align: right; }
.kas-amt:disabled { opacity: .35; }
.stat.neg strong { color: var(--red); }

/* Uitnodigingsmails aanpassen (instellingen) */
.invite-edit { border-top: 1px solid var(--line); padding: 12px 0; }
.invite-edit summary { cursor: pointer; display: flex; align-items: center; gap: 8px; list-style: none; }
.invite-edit summary::-webkit-details-marker { display: none; }
.invite-edit summary::after { content: "▾"; margin-left: auto; color: var(--muted); }
.invite-edit[open] summary::after { content: "▴"; }
.invite-edit form { margin-top: 12px; }
.invite-edit textarea { width: 100%; resize: vertical; font: inherit; }
.invite-edit .row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.app-use span { display: block; white-space: nowrap; }
.app-use span + span { color: var(--muted); font-size: .9em; }

/* Betalingen */
.pay-filters { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: flex-end; }
.pay-filters .field { flex: 1 1 150px; min-width: 140px; }
.pay-actions { display: flex; gap: 8px; margin-bottom: 14px; }
.pay-quick { flex-basis: 100%; margin: 0; }
.pay-tbl .ref { font-family: ui-monospace, monospace; font-size: .75rem; }
.nowrap { white-space: nowrap; }
a.stat.stat-link { text-decoration: none; color: inherit; transition: transform .15s; }
a.stat.stat-link:hover { transform: translateY(-2px); }

/* Logboek: details */
.log-kv li { display: grid; grid-template-columns: minmax(120px, 30%) 1fr; gap: 12px; align-items: start; }
.log-kv .k { color: var(--muted); font-size: .9rem; }
.log-kv .v { overflow-wrap: anywhere; }
@media (max-width: 560px) { .log-kv li { grid-template-columns: 1fr; gap: 2px; } }

/* Platformbeheer werkt in een vereniging */
.platform-bar { background: #fff3df; border-bottom: 1px solid #f3d9a8; color: #6b4300; font-size: .9rem; }
.platform-bar-inner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.platform-bar a { font-weight: 800; color: #8a5300; white-space: nowrap; }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span { display: flex; align-items: center; padding: 0 10px; background: var(--bg-tint); border: 1px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; color: var(--muted); font-size: .95rem; }
.input-prefix input { border-radius: 0 12px 12px 0 !important; }
.role-list li { display: flex; gap: 8px; align-items: flex-start; }
.role-row { display: flex; gap: 8px; align-items: center; flex: 1; flex-wrap: wrap; }
.role-row .grow { flex-basis: 100%; font-weight: 700; }
.role-row select { width: auto; flex: 1 1 120px; min-width: 0; padding: 6px 10px; }
.danger-zone { border-color: #f3c4ca; }

/* ── Toegankelijkheid ───────────────────────────────────────────────────── */
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--ink); color: #fff; padding: .7em 1.1em; border-radius: 12px; font-weight: 800; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible { border-radius: 8px; }
.btn:focus-visible { border-radius: 999px; }
.lp-hero :focus-visible, .page-hero :focus-visible, .lp-dark :focus-visible, .lp-final :focus-visible, .site-footer :focus-visible, .saldo-card :focus-visible { outline-color: #fff; }
main:focus { outline: none; }
html { scroll-padding-top: 80px; }
.footer-small { font-size: .85rem; color: rgba(255,255,255,.75); margin-top: 4px !important; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.legal h1 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
.legal h2 { font-size: 1.3rem; font-weight: 600; margin-top: 1.4em; }
.legal h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 800; margin: 1.2em 0 .3em; line-height: 1.3; }

/* ── Publieke pagina's: definitie, onderdelen, subpagina's ──────────────── */
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 40em; }
.lp-what { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .lp-what { grid-template-columns: 1.3fr 1fr; gap: 56px; } }
.lp-def { font-size: 1.2rem; line-height: 1.6; }
.lp-what p { max-width: 38em; }
.lp-facts { margin: 0; display: grid; gap: 10px; }
.lp-facts div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; }
.lp-facts dt { font-size: .82rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.lp-facts dd { margin: 2px 0 0; font-weight: 700; }
.lp-pillars { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 860px) { .lp-pillars { grid-template-columns: repeat(2, 1fr); } }
.lp-pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.lp-pillar-ico { font-size: 2.2rem; }
.lp-pillar h3 { font-size: 1.6rem; margin: 8px 0 8px; }
.lp-pillar p { color: var(--muted); }
.lp-pillar ul, .lp-roles-2 ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.lp-pillar li { padding-left: 26px; position: relative; font-weight: 700; color: #3b3452; }
.lp-pillar li::before { content: "✓" / ""; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.lp-role li::before { content: "✓" / ""; }
.lp-checks li::before { content: "✓" / ""; }
.lp-more { margin-top: auto; }
@media (min-width: 860px) { .lp-steps:has(li:nth-child(4)) { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .lp-steps:has(li:nth-child(4)) { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 860px) { .lp-roles-2 { grid-template-columns: repeat(2, 1fr); } }
.lp-hero-sub { padding: clamp(28px, 5vw, 56px) 0 clamp(40px, 6vw, 72px); }
.lp-hero-sub h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); transform: none; max-width: 20em; margin: .4em 0 .45em; line-height: 1.1; }
.lp-hero-sub .lead { max-width: 40em; font-size: 1.15rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-weight: 700; font-size: .95rem; }
.crumbs li + li::before { content: "/" / ""; margin-right: 6px; opacity: .7; }
.crumbs a { color: #fff; }
.lp-example { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .lp-example { grid-template-columns: 1.2fr 1fr; gap: 56px; } }
.lp-example p { max-width: 38em; }
.lp-ledger { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.lp-ledger caption { text-align: left; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; padding: 0 0 10px; }
.lp-ledger th, .lp-ledger td { padding: 12px 18px; text-align: left; border-top: 1px solid var(--line); }
.lp-ledger thead th { border-top: 0; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.lp-ledger td:last-child, .lp-ledger th:last-child { text-align: right; white-space: nowrap; font-weight: 800; }
.lp-ledger tfoot th, .lp-ledger tfoot td { background: var(--bg-tint); font-weight: 800; }
.lp-faq summary h3 { display: inline; font: inherit; margin: 0; }
.lp-also { margin-top: 28px; font-weight: 700; }
@media (max-width: 760px) { .nav-guest a:not(.btn):nth-child(3) { display: none; } .nav-guest a:not(.btn) { display: inline !important; font-size: .95rem; } .nav-guest { gap: .7rem !important; } }
@media (max-width: 420px) { .nav-guest a:not(.btn) { display: none !important; } }
