/* Cascade Complex – huisstijl van de VvE-presentaties */
:root {
  --ink: #1A1714;
  --ink-2: #262119;
  --paper: #FFFFFF;
  --paper-2: #FAF8F5;
  --terra: #B5563A;
  --terra-dark: #9A4730;
  --gold: #E0A458;
  --sand: #C9A272;
  --olive: #5F6B47;
  --muted: #787572;
  --muted-2: #A4A29F;
  --line: #E9E4DD;
  --on-dark-muted: #D5D5D4;
  --on-dark-faint: #918F8E;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .10);
  --font-head: "Source Serif 4", Cambria, "Times New Roman", Georgia, serif;
  --font-body: "Source Sans 3", Calibri, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 48px);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper-2);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terra); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.25rem, 7.5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.9rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.eyebrow {
  display: block; font-family: var(--font-body); font-weight: 700;
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 14px;
}
.dark .eyebrow { color: var(--gold); }
.lead { color: var(--muted); font-size: 1.125rem; max-width: 56ch; }
.dark .lead { color: var(--on-dark-muted); }

/* Knoppen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 1.35rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1; white-space: nowrap;
  border: 2px solid transparent; cursor: pointer; text-decoration: none !important;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn:active { transform: translateY(1px); }
.btn-terra { background: var(--terra); color: #fff; }
.btn-terra:hover { background: var(--terra-dark); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #d6964a; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.06); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.14); }
.btn-outline { border-color: var(--terra); color: var(--terra); background: transparent; }
.btn-outline:hover { background: var(--terra); color: #fff; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 14px 0; transition: background .25s, box-shadow .25s, padding .25s;
}
.site-header .wrap { display: flex; align-items: center; gap: 8px; }
@media (min-width: 480px) { .site-header .wrap { gap: 12px; } }
.site-header .login {
  order: 0; min-height: 44px; padding: 0 .85rem; font-size: .95rem;
  border-color: rgba(255,255,255,.7); color: #fff; background: rgba(26,23,20,.28); backdrop-filter: blur(8px);
}
.site-header .login:hover { background: #fff; color: var(--ink); border-color: #fff; }
.brand { order: 1; margin-left: 4px; display: inline-flex; align-items: baseline; gap: .35em; color: #fff; font-family: var(--font-head); font-size: 1rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.brand small { font-family: var(--font-body); font-weight: 700; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.brand:hover { text-decoration: none; }
.nav { order: 2; margin-left: auto; display: none; gap: 4px; }
.nav a { color: rgba(255,255,255,.88); font-weight: 600; padding: 10px 14px; border-radius: 999px; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.12); text-decoration: none; }
.menu-btn {
  order: 3; margin-left: auto; min-height: 44px; min-width: 44px; padding: 0 .9rem;
  border-radius: 999px; border: 2px solid rgba(255,255,255,.7); background: rgba(26,23,20,.28); backdrop-filter: blur(8px);
  color: #fff; font: 700 .95rem var(--font-body); display: inline-flex; align-items: center; gap: .5em; cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .label { display: none; }
@media (min-width: 480px) { .menu-btn .label { display: inline; } .brand { font-size: 1.15rem; } }
@media (max-width: 419px) { .site-header .brand small { display: none; } }
.site-header.scrolled { background: rgba(255,255,255,.94); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(0,0,0,.06); padding: 10px 0; }
.site-header.scrolled .login { border-color: var(--terra); color: var(--terra); background: transparent; }
.site-header.scrolled .login:hover { background: var(--terra); color: #fff; }
.site-header.scrolled .brand { color: var(--ink); }
.site-header.scrolled .nav a { color: var(--ink); }
.site-header.scrolled .nav a:hover { background: var(--paper-2); }
.site-header.scrolled .menu-btn { border-color: var(--terra); color: var(--terra); background: transparent; }
.mobile-nav {
  display: none; position: fixed; z-index: 49; left: var(--gutter); right: var(--gutter); top: 76px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; flex-direction: column;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 14px 16px; border-radius: 12px; color: var(--ink); font-weight: 600; font-size: 1.05rem; }
.mobile-nav a:hover { background: var(--paper-2); text-decoration: none; }
.mobile-nav a + a { border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; }
@media (min-width: 900px) { .nav { display: flex; } .menu-btn, .mobile-nav { display: none !important; } .brand { font-size: 1.3rem; } }

/* Hero */
.hero {
  position: relative; isolation: isolate; color: #fff; background: var(--ink-2);
  min-height: 100svh; display: flex; align-items: flex-end;
  padding: calc(96px + env(safe-area-inset-top)) 0 clamp(40px, 8vw, 96px);
}
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(26,23,20,.55) 0%, rgba(26,23,20,.15) 35%, rgba(26,23,20,.0) 55%),
    linear-gradient(0deg, rgba(26,23,20,.92) 0%, rgba(26,23,20,.65) 40%, rgba(26,23,20,.15) 75%, rgba(26,23,20,0) 100%);
}
.hero .wrap { max-width: 760px; margin-left: calc((100% - min(100% - 2 * var(--gutter), var(--max))) / 2); }
.hero .lead { margin-top: 20px; }
.hero .meta { margin-top: 18px; color: var(--on-dark-faint); font-size: .95rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 480px) { .hero .actions .btn { flex: 1 1 100%; } }

/* Secties */
section { padding: clamp(56px, 9vw, 112px) 0; scroll-margin-top: 72px; }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 5vw, 56px); }
.section-head .lead { margin-top: 16px; }
.light { background: var(--paper); }
.tint { background: var(--paper-2); }
.dark { background: var(--ink-2); color: #fff; }

.split { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split .media img { border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow); aspect-ratio: 4 / 4.4; object-fit: cover; width: 100%; }
.split.reverse .media { order: -1; }
@media (min-width: 820px) {
  .split { grid-template-columns: 1.05fr .95fr; }
  .split.reverse { grid-template-columns: .95fr 1.05fr; }
  .split.reverse .media { order: 0; }
  .split.reverse .copy { order: 1; }
}

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-top: 32px; }
.stat { background: var(--paper-2); border-radius: var(--radius); padding: 22px 20px; }
.light .stat { background: var(--paper-2); }
.tint .stat { background: #fff; box-shadow: var(--shadow); }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(2.2rem, 6vw, 3rem); font-weight: 600; line-height: 1; color: var(--terra); }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: .95rem; font-weight: 600; }

.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card {
  position: relative; background: #fff; border-radius: var(--radius); padding: 28px 26px 26px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; color: inherit;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.14); }
.icon { width: 54px; height: 54px; border-radius: 50%; background: var(--terra); display: grid; place-items: center; color: #fff; margin-bottom: 6px; }
.icon svg { width: 26px; height: 26px; }
.card p { color: var(--muted); flex: 1; }
.card .more { color: var(--terra); font-weight: 700; display: inline-flex; align-items: center; gap: .4em; margin-top: 4px; }
.card .more svg { width: 1em; height: 1em; transition: transform .2s; }
.card:hover .more svg { transform: translateX(4px); }

.points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.points li { display: flex; gap: 14px; align-items: flex-start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 14px 16px; color: var(--on-dark-muted); }
.points .num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--ink); font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.dark .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.contact { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.contact .card { padding: 26px; }
.contact .card b { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; }
.contact .card a.plain { color: var(--ink); font-weight: 600; word-break: break-word; }

/* Footer */
footer { background: var(--ink); color: var(--on-dark-faint); padding: 40px 0 calc(32px + env(safe-area-inset-bottom)); font-size: .95rem; }
footer .wrap { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
footer .brand { order: 0; color: #fff; font-size: 1.1rem; }
footer nav { order: 1; }
footer .copy { order: 2; }
@media (min-width: 700px) { footer .wrap { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; } }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer nav a { color: var(--on-dark-muted); font-weight: 600; }
footer nav a:hover { color: #fff; }
footer .copy { flex-basis: 100%; }

/* Inlogpagina */
.auth { min-height: 100svh; display: grid; background: var(--paper-2); }
.auth-visual { position: relative; isolation: isolate; color: #fff; padding: calc(96px + env(safe-area-inset-top)) var(--gutter) 40px; display: flex; align-items: flex-end; min-height: 42svh; }
.auth-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.auth-visual::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(26,23,20,.92), rgba(26,23,20,.35) 60%, rgba(26,23,20,.55)); }
.auth-visual h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
.auth-form { padding: clamp(32px, 6vw, 72px) var(--gutter); display: grid; align-content: center; }
.auth-form form { width: min(100%, 440px); margin-inline: auto; display: grid; gap: 18px; }
.auth-form h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
label { display: grid; gap: 8px; font-weight: 700; font-size: .95rem; }
input[type="email"], input[type="password"], input[type="text"] {
  font: inherit; font-size: 1.05rem; padding: 14px 16px; border-radius: 12px; border: 1.5px solid #D9D2C8; background: #fff; color: var(--ink); min-height: 52px; width: 100%;
}
input:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 4px rgba(181,86,58,.15); }
.form-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .95rem; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--muted); }
.check input { width: 20px; height: 20px; accent-color: var(--terra); }
.notice { background: #fff; border-radius: 14px; padding: 14px 16px; color: var(--muted); font-size: .95rem; border: 1px solid var(--line); }
@media (min-width: 900px) {
  .auth { grid-template-columns: 1fr 1fr; }
  .auth-visual { min-height: 100svh; padding: 120px clamp(32px, 5vw, 72px) 64px; }
}

/* ===== Portaal (na inloggen) ===== */
.portal-body { background: var(--paper-2); }
.portal-body .site-header { position: sticky; }
.portal-body .site-header .wrap { justify-content: space-between; }
.portal-body .brand { order: 0; margin-left: 0; }
.who { color: var(--muted); font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.portal { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 24px 0 56px; align-items: start; }
.portal-main { min-width: 0; display: grid; gap: 18px; }
.portal-main > * { min-width: 0; max-width: 100%; }
.portal-menu { order: -1; min-width: 0; }
.portal-menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.portal-menu ul::-webkit-scrollbar { display: none; }
.portal-menu li { flex: none; }
.portal-menu a, .portal-menu .soon, .portal-menu button {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px; border-radius: 999px;
  background: #fff; color: var(--ink); font: 600 .98rem var(--font-body); border: 1.5px solid var(--line); cursor: pointer; white-space: nowrap; text-decoration: none !important;
}
.portal-menu svg { width: 20px; height: 20px; color: var(--terra); flex: none; }
.portal-menu a:hover, .portal-menu button:hover { border-color: var(--terra); }
.portal-menu a.active { background: var(--terra); color: #fff; border-color: var(--terra); }
.portal-menu a.active svg { color: #fff; }
.portal-menu em { font-style: normal; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-left: 4px; }
.portal-menu a.active em { color: #fff; opacity: .85; }
.portal-menu .soon { color: var(--muted-2); border-style: dashed; cursor: default; }
.portal-menu .soon svg { color: var(--muted-2); }
.portal-menu .soon em { color: var(--muted-2); }
.portal-menu .logout form { margin: 0; }
@media (min-width: 900px) {
  .portal { grid-template-columns: 260px minmax(0, 1fr); gap: 32px; padding: 36px 0 80px; }
  .portal-menu { position: sticky; top: 84px; }
  .portal-menu ul { flex-direction: column; overflow: visible; gap: 6px; }
  .portal-menu li { flex: initial; }
  .portal-menu a, .portal-menu .soon, .portal-menu button { display: flex; width: 100%; border-radius: 14px; padding: 0 14px; min-height: 48px; background: transparent; border-color: transparent; }
  .portal-menu a:hover, .portal-menu button:hover { background: #fff; border-color: var(--line); }
  .portal-menu a.active { background: var(--terra); border-color: var(--terra); }
  .portal-menu em { margin-left: auto; }
  .portal-menu .logout { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
}
.panel { background: #fff; border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.panel h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.panel h2 { font-size: 1.35rem; margin-bottom: 10px; }
.panel .lead { margin-top: 10px; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--paper-2); color: var(--terra); vertical-align: middle; }
.badge.superadmin { background: var(--terra); color: #fff; }
.badge.admin { background: var(--gold); color: var(--ink); }
.badge.off { background: var(--line); color: var(--muted); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin-top: 14px; font-size: .98rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; word-break: break-word; }
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.tiles .card { padding: 22px; gap: 8px; }
.tiles .card h3 { font-size: 1.1rem; }
.alert { border-radius: 14px; padding: 14px 16px; font-weight: 600; border: 1px solid; }
.alert-error { background: #FBEDE9; border-color: #EBC2B6; color: #8A3A26; }
.alert-ok { background: #EEF3E8; border-color: #CBD7BB; color: #41532C; }
.table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 640px; }
table.data th, table.data td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { background: var(--paper-2); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num { color: var(--muted-2); }
.portal-footer { background: transparent; color: var(--muted-2); padding: 0 0 calc(28px + env(safe-area-inset-bottom)); font-size: .9rem; }
.auth-form .alert { margin-bottom: 4px; }

/* ===== Gebruikersbeheer ===== */
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.panel-head h1, .panel-head h2 { margin: 0; }
.btn-sm { min-height: 38px; padding: 0 .9rem; font-size: .9rem; }
.btn-danger { border-color: #B5563A; color: #B5563A; background: transparent; }
.btn-danger:hover { background: #B5563A; color: #fff; }
.btn-quiet { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-quiet:hover { border-color: var(--terra); color: var(--terra); }
.acties { display: flex; flex-wrap: wrap; gap: 6px; }
.acties form { margin: 0; display: inline; }
tr.inactief td { color: var(--muted-2); }
tr.inactief td .badge { opacity: .7; }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 18px; }
.form-grid .span2 { grid-column: 1 / -1; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .klein { grid-template-columns: initial; } }
.form-grid label small, label .hint { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.form-grid label.fout input, .form-grid label.fout select { border-color: #B5563A; box-shadow: 0 0 0 4px rgba(181,86,58,.12); }
.veldfout { color: #8A3A26; font-size: .88rem; font-weight: 600; }
select { font: inherit; font-size: 1.05rem; padding: 14px 16px; border-radius: 12px; border: 1.5px solid #D9D2C8; background: #fff; color: var(--ink); min-height: 52px; width: 100%; }
select:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 4px rgba(181,86,58,.15); }
.form-acties { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; align-items: center; }
.form-acties .spacer { flex: 1; }
.ww-box { background: var(--paper-2); border: 1px dashed var(--sand); border-radius: 14px; padding: 18px; margin-top: 16px; }
.ww-box code { display: block; font-size: 1.5rem; font-weight: 700; letter-spacing: .04em; color: var(--ink); word-break: break-all; margin-top: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.radio-list { display: grid; gap: 10px; margin-top: 14px; }
.radio-list label { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; font-weight: 600; cursor: pointer; }
.radio-list label:has(input:checked) { border-color: var(--terra); background: #fff; }
.radio-list input { width: 20px; height: 20px; accent-color: var(--terra); margin-top: 2px; flex: none; }
.radio-list .hint { font-weight: 400; color: var(--muted); font-size: .9rem; }
.check-row { display: flex; align-items: center; gap: 10px; font-weight: 600; min-height: 52px; }
.check-row input { width: 22px; height: 22px; accent-color: var(--terra); }

/* Iconknoppen voor acties in lijsten */
.btn-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--terra); cursor: pointer; padding: 0; text-decoration: none !important; transition: background .15s, border-color .15s, color .15s; }
.btn-icon svg { width: 20px; height: 20px; }
.btn-icon:hover, .btn-icon:focus-visible { background: var(--terra); border-color: var(--terra); color: #fff; }
.btn-icon.danger { color: #8A3A26; }
.btn-icon.danger:hover { background: #8A3A26; border-color: #8A3A26; color: #fff; }
.btn-icon.ok { color: var(--olive); }
.btn-icon.ok:hover { background: var(--olive); border-color: var(--olive); color: #fff; }
.acties { gap: 6px; flex-wrap: nowrap; }
table.data td.acties-cel { white-space: nowrap; }

/* Admin-tabbladen */
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none !important; }
.admin-tabs a svg { width: 18px; height: 18px; color: var(--terra); }
.admin-tabs a:hover { border-color: var(--terra); }
.admin-tabs a.active { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.admin-tabs a.active svg { color: var(--gold); }

/* Registratie en statussen */
.badge.pending { background: var(--gold); color: var(--ink); }
.badge.ok { background: #EEF3E8; color: #41532C; }
tr.pending td { background: #FFF8EC; }
.stappen { list-style: none; counter-reset: stap; display: flex; gap: 6px; padding: 0; margin: 0 0 6px; font-size: .85rem; font-weight: 600; color: var(--muted-2); flex-wrap: wrap; }
.stappen li { counter-increment: stap; display: inline-flex; align-items: center; gap: 6px; }
.stappen li::before { content: counter(stap); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--muted); font-size: .75rem; }
.stappen li.actief { color: var(--ink); }
.stappen li.actief::before { background: var(--terra); color: #fff; }
.stappen li.klaar { color: var(--olive); }
.stappen li.klaar::before { content: "✓"; background: var(--olive); color: #fff; }
.stappen li + li::after { content: ""; }
.code-input { font-size: 1.8rem !important; letter-spacing: .4em; text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
label.check.fout span { color: #8A3A26; }
.auth-form .form-grid { margin-top: 0; }
.auth-form .form-grid.klein { grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-form .form-grid.klein .span2 { grid-column: 1 / -1; }
@media (max-width: 420px) { .auth-form .form-grid.klein { grid-template-columns: 1fr; } }

/* Breder portaal: de lijsten hebben ruimte nodig */
.portal-body .wrap { --max: 1680px; }
@media (min-width: 900px) {
  .portal { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
  .portal-menu a, .portal-menu .soon, .portal-menu button { padding: 0 12px; min-height: 44px; font-size: .95rem; }
}
@media (min-width: 1100px) {
  .portal { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; }
}
/* Compacte datatabel */
table.data { font-size: .92rem; min-width: 0; }
table.data th, table.data td { padding: 10px 10px; }
table.data th:first-child, table.data td:first-child { padding-left: 14px; }
table.data th:last-child, table.data td:last-child { padding-right: 14px; }
table.data td.email { word-break: break-all; }
table.data td.nowrap { white-space: nowrap; }
table.data .badge { font-size: .7rem; padding: 3px 8px; white-space: nowrap; }
.acties { gap: 4px; }
.btn-icon { width: 36px; height: 36px; border-radius: 10px; }
.btn-icon svg { width: 18px; height: 18px; }
@media (max-width: 899px) { table.data { min-width: 640px; } }
.panel.panel-tabel { padding: 10px; }
.panel.panel-tabel .table-wrap { margin-top: 0; border: 0; }

/* Nog compacter voor schermen tussen 900 en 1400 pixels */
.portal-body { --gutter: clamp(16px, 2.5vw, 32px); }
table.data th, table.data td { padding: 9px 8px; }
table.data td .badge.pending { white-space: normal; line-height: 1.25; display: inline-block; max-width: 9em; }
table.data th { letter-spacing: .06em; font-size: .72rem; }
.btn-icon { width: 34px; height: 34px; }
td .id-klein { display: none; color: var(--muted-2); font-size: .8rem; margin-left: 4px; }
@media (min-width: 900px) and (max-width: 1199px) {
  .portal { grid-template-columns: 200px minmax(0, 1fr); gap: 20px; }
  table.data .kol-id { display: none; }
  td .id-klein { display: inline; }
}
@media (min-width: 900px) and (max-width: 1049px) { table.data .kol-login { display: none; } }

/* Op telefoons: elke tabelrij wordt een kaart */
.panel-tabel .tabel-titel { padding: 12px 14px 4px; }
@media (max-width: 699px) {
  .panel.panel-tabel { padding: 0; background: transparent; box-shadow: none; }
  .panel-tabel .tabel-titel { padding: 0 4px 10px; }
  .table-wrap { overflow: visible; border: 0; margin-top: 0; }
  table.data, table.data tbody, table.data tr, table.data td { display: block; min-width: 0; width: 100%; }
  table.data thead { display: none; }
  table.data tr { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 14px 16px 12px; margin-bottom: 12px; }
  table.data tr.pending { background: #FFF8EC; }
  table.data tr.inactief { background: #F6F4F1; }
  table.data tr:last-child td { border-bottom: 0; }
  table.data td { border: 0; padding: 5px 0; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; align-items: center; font-size: .97rem; }
  table.data td::before { content: attr(data-label); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
  table.data td.kol-id { display: none; }
  table.data td .id-klein { display: inline; }
  table.data td.naam { display: block; font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; padding: 0 0 8px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
  table.data td.naam::before { display: none; }
  table.data td.email { word-break: break-all; }
  table.data td.acties-cel { display: block; padding: 10px 0 0; margin-top: 6px; border-top: 1px solid var(--line); white-space: normal; }
  table.data td.acties-cel::before { display: none; }
  table.data td.acties-cel .acties { gap: 10px; flex-wrap: wrap; }
  table.data td.acties-cel .btn-icon { width: 44px; height: 44px; border-radius: 12px; }
  table.data td.acties-cel .btn-icon svg { width: 20px; height: 20px; }
  table.data td .badge.pending { max-width: none; }
}
