/* Vrienden van AthenA – huisstijl (rood en navy uit het logo) */
:root {
  --rood: #f51b1b;
  --rood-donker: #d01212;
  --navy: #000670;
  --navy-donker: #00044a;
  --inkt: #141a3a;
  --muted: #5b6080;
  --lijn: #e3e5ee;
  --vlak: #f5f6fa;
  --wit: #ffffff;
  --ok: #1f7a4a;
  --ok-bg: #e7f5ed;
  --err-bg: #fdecec;
  --radius: 14px;
  --kop: "Lexend Deca", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tekst: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --schaduw: 0 10px 30px rgba(11, 20, 112, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--tekst); color: var(--inkt); background: var(--wit); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--kop); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

/* ---------- knoppen en formulieren ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 22px; font: 600 15px/1.2 var(--kop); cursor: pointer; text-decoration: none; background: var(--navy); color: #fff; transition: background .15s, transform .15s; }
.btn:hover { background: var(--navy-donker); }
.btn:active { transform: translateY(1px); }
.btn.rood { background: var(--rood); }
.btn.rood:hover { background: var(--rood-donker); }
.btn.wit { background: #fff; color: var(--navy); }
.btn.wit:hover { background: #eef0fb; }
.btn.lijn { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--lijn); }
.btn.lijn:hover { background: var(--vlak); }
.btn.klein { padding: 7px 14px; font-size: 13px; }
.btn.gevaar { background: transparent; color: var(--rood-donker); box-shadow: inset 0 0 0 1.5px #f3c4c5; }
.btn.gevaar:hover { background: var(--err-bg); }
.btn[disabled] { opacity: .6; cursor: wait; }

label { display: block; font-size: 13px; font-weight: 600; color: var(--inkt); }
label small { font-weight: 400; color: var(--muted); }
input, select, textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 13px; border: 1.5px solid var(--lijn); border-radius: 10px; font: 15px var(--tekst); color: var(--inkt); background: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11, 20, 112, .12); }
textarea { min-height: 80px; resize: vertical; }
.req { color: var(--rood); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 14px; }
.stack > * + * { margin-top: 14px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 400; cursor: pointer; }
.check input { width: auto; margin: 0; accent-color: var(--navy); }
.keuzes { display: grid; gap: 10px; margin-top: 8px; }
.keuze { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--lijn); border-radius: 12px; padding: 13px 15px; cursor: pointer; font-weight: 600; }
.keuze input { width: 18px; height: 18px; margin: 0; accent-color: var(--rood); }
.keuze:has(input:checked) { border-color: var(--rood); background: #fff6f6; }
.keuze .prijs { margin-left: auto; font-family: var(--kop); color: var(--rood); white-space: nowrap; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.alert.err { background: var(--err-bg); color: var(--rood-donker); }
.okc { color: var(--ok); } .noc { color: var(--rood-donker); }

/* ---------- kopbalk ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.topbar.scrolled { border-bottom-color: var(--lijn); }
.topbar .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font: 700 17px var(--kop); letter-spacing: .02em; }
.brand img { width: 40px; height: 40px; border-radius: 8px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--inkt); font: 500 15px var(--kop); }
.nav a:hover { color: var(--rood); }
.nav .btn { color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 85% 10%, #0a1a9c 0%, var(--navy) 45%, var(--navy-donker) 100%); color: #fff; }
.hero::before { content: ""; position: absolute; inset: auto -10% -45% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: rgba(245, 27, 27, .14); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--rood); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.eyebrow { display: inline-block; font: 600 13px var(--kop); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; color: #ff8a8a; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 700; }
.hero p.lead { font-size: 19px; max-width: 34em; opacity: .96; margin: 0 0 28px; }
.hero .acties { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .logo-kaart { filter: drop-shadow(0 28px 40px rgba(0, 0, 0, .45)); }


/* ---------- secties ---------- */
section.blok { padding: 88px 0; }
section.blok.vlak { background: var(--vlak); }
.sectiekop { max-width: 720px; margin-bottom: 40px; }
.sectiekop h2 { font-size: clamp(28px, 3.6vw, 40px); color: var(--navy); }
.sectiekop .eyebrow { color: var(--rood); opacity: 1; }
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.intro p { font-size: 18px; margin: 0 0 18px; }
.intro .citaat { font: 600 clamp(22px, 2.6vw, 30px)/1.3 var(--kop); color: var(--navy); border-left: 5px solid var(--rood); padding: 4px 0 4px 22px; margin: 0; }
.kaarten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.kaart { background: #fff; border: 1px solid var(--lijn); border-radius: var(--radius); padding: 26px; box-shadow: var(--schaduw); }
.kaart .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; margin-bottom: 16px; }
.kaart:nth-child(2) .ico { background: var(--rood); }
.kaart h3 { font-size: 20px; color: var(--navy); }
.kaart p { margin: 0; color: var(--muted); }

/* aanmelden */
.aanmeld { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.aanmeld .uitleg h2 { font-size: clamp(30px, 4vw, 44px); color: var(--navy); }
.aanmeld .uitleg ul { padding: 0; list-style: none; margin: 24px 0 0; }
.aanmeld .uitleg li { display: flex; gap: 12px; margin-bottom: 12px; }
.aanmeld .uitleg li::before { content: ""; flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--rood) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat; margin-top: 2px; }
.formkaart { background: #fff; border-radius: 20px; padding: 32px; box-shadow: var(--schaduw); border: 1px solid var(--lijn); }
.formkaart .voet { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.formkaart .voet small { color: var(--muted); }
.bedankt { text-align: center; padding: 30px 10px; }
.bedankt .vink { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin: 0 auto 16px; }

/* footer */
.footer { background: var(--navy-donker); color: #cdd1ef; padding: 48px 0 32px; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .brand { color: #fff; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; }
.social a:hover { background: var(--rood); }
.footer .copy { width: 100%; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 20px; font-size: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer .copy a { color: #cdd1ef; }

/* ---------- dialoog (inloggen) ---------- */
dialog { border: 0; border-radius: 20px; padding: 0; width: min(440px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(7, 13, 74, .35); color: var(--inkt); }
dialog.breed { width: min(720px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(7, 13, 74, .55); backdrop-filter: blur(2px); }
.dlg { padding: 28px; }
.dlg-kop { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.dlg-kop img { width: 44px; height: 44px; border-radius: 10px; }
.dlg-kop h2 { margin: 0; font-size: 22px; color: var(--navy); }
.dlg-sluit { margin-left: auto; background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; }
.code-input { font: 700 28px var(--kop); letter-spacing: .5em; text-align: center; padding-left: .5em; }
.dlg .acties { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.linkknop { background: none; border: 0; color: var(--navy); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

/* ---------- ledenomgeving ---------- */
body.app { background: var(--vlak); min-height: 100vh; }
.appbar { background: var(--navy); color: #fff; }
.appbar .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.appbar .brand { color: #fff; }
.appbar-sub { font: 500 14px var(--kop); opacity: .75; }
.appbar .rechts { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.appbar .btn.lijn { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.appbar .btn.lijn:hover { background: rgba(255, 255, 255, .08); }
.tabs { background: #fff; border-bottom: 1px solid var(--lijn); }
.tabs .wrap { display: flex; gap: 4px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 15px 16px 12px; font: 600 15px var(--kop); color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--rood); }
.tabs .teller { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--rood); color: #fff; font-size: 12px; line-height: 20px; margin-left: 6px; text-align: center; }
.paneel { padding-top: 32px; padding-bottom: 64px; }
.card { background: #fff; border: 1px solid var(--lijn); border-radius: var(--radius); padding: 24px; }
.card + .card { margin-top: 18px; }
.card h2 { font-size: 20px; color: var(--navy); }
.card h2 small { font: 400 13px var(--tekst); color: var(--muted); }
.welkom h1 { font-size: clamp(26px, 3.4vw, 36px); color: var(--navy); }
.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.module { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--lijn); border-radius: var(--radius); padding: 22px; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; min-height: 160px; }
a.module:hover { box-shadow: var(--schaduw); transform: translateY(-2px); }
.module .ico { width: 42px; height: 42px; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; margin-bottom: 12px; font: 700 18px var(--kop); }
.module h3 { font-size: 18px; color: var(--navy); margin-bottom: 4px; }
.module p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.module .label { margin-top: auto; font-size: 12px; font-weight: 600; color: var(--muted); }
.module .label.open { color: var(--rood); }
.leeg { text-align: center; padding: 40px 20px; color: var(--muted); border: 2px dashed var(--lijn); border-radius: var(--radius); background: #fff; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .zoek { flex: 1 1 220px; max-width: 340px; margin: 0; }
.toolbar .rechts { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.segment { display: inline-flex; background: var(--vlak); border-radius: 999px; padding: 3px; }
.segment button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font: 600 13px var(--kop); color: var(--muted); cursor: pointer; }
.segment button[aria-pressed="true"] { background: #fff; color: var(--navy); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.tabel-wrap { overflow-x: auto; border: 1px solid var(--lijn); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font: 600 12px var(--kop); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--lijn); background: #fafbfd; white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--lijn); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td .sub { color: var(--muted); font-size: 13px; }
td.acties { white-space: nowrap; text-align: right; }
td.acties .btn + .btn { margin-left: 6px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font: 600 12px var(--kop); background: var(--vlak); color: var(--muted); white-space: nowrap; }
.badge.lid { background: #e8ebfb; color: var(--navy); }
.badge.superadmin { background: var(--navy); color: #fff; }
.badge.aspirant { background: #fff1e0; color: #a5560b; }
.badge.uit { background: var(--vlak); color: var(--muted); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: #fff6f6; color: var(--rood-donker); border: 1px solid #f7d2d3; }
.vinklijst { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-top: 8px; max-height: 260px; overflow: auto; padding: 2px; }
.vinklijst .check { border: 1.5px solid var(--lijn); border-radius: 10px; padding: 9px 12px; font-size: 14px; }
.vinklijst .check:has(input:checked) { border-color: var(--navy); background: #f3f5fe; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--inkt); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; opacity: 0; transition: .25s; z-index: 100; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.toon { opacity: 1; transform: translateX(-50%); }
.toast.err { background: var(--rood-donker); }
.gegevens { display: grid; grid-template-columns: 140px 1fr; gap: 6px 16px; font-size: 15px; margin: 0; }
.gegevens dt { color: var(--muted); }
.gegevens dd { margin: 0; }

/* ---------- responsive ---------- */
/* ---------- foto's ---------- */
.mozaiek { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 56px; aspect-ratio: 2.6 / 1; }
.mozaiek figure { margin: 0; border-radius: 16px; overflow: hidden; background: var(--vlak); }
.mozaiek img { width: 100%; height: 100%; object-fit: cover; }
.mozaiek .m-groot { grid-row: span 2; }
.mozaiek .m-hoog { grid-row: span 2; }
.mozaiek .m-hoog img { object-position: 50% 20%; }
.fotoband { position: relative; height: clamp(280px, 42vw, 520px); overflow: hidden; color: #fff; display: flex; align-items: flex-end; }
.fotoband img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.fotoband::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 6, 112, 0) 35%, rgba(0, 4, 70, .85) 100%); z-index: 1; }
.fotoband::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--rood); z-index: 1; }
.fotoband .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: 40px; }
.fotoband p { margin: 0; font: 700 clamp(22px, 3vw, 36px)/1.2 var(--kop); max-width: 22em; }
.uitleg-foto { width: 100%; max-width: 360px; aspect-ratio: 1; object-fit: cover; border-radius: 16px; margin-top: 28px; }
@media (max-width: 900px) {
  .mozaiek { grid-template-columns: 1fr 1fr; grid-template-rows: auto; aspect-ratio: auto; margin-top: 40px; }
  .mozaiek .m-groot { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 3 / 2; }
  .mozaiek .m-hoog { grid-row: span 2; }
  .mozaiek figure:not(.m-groot):not(.m-hoog) { aspect-ratio: 1; }
  .uitleg-foto { display: none; }
}

@media (max-width: 900px) {
  .hero .wrap, .intro, .aanmeld { grid-template-columns: 1fr; gap: 32px; }
  .hero .logo-kaart { max-width: 520px; }
  .kaarten { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
  section.blok { padding: 64px 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .formkaart { padding: 22px; }
  .brand span { display: none; }
  .appbar .rechts .naam { display: none; }
  .gegevens { grid-template-columns: 1fr; }
  .gegevens dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.btn.lijn-wit { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.btn.lijn-wit:hover { background: rgba(255, 255, 255, .1); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-size: 13px; font-weight: 600; padding: 0; }
.bedankt:focus { outline: none; }
.toolbar h2 { margin: 0; font-size: 22px; color: var(--navy); }
.toolbar h2 small { display: block; font: 400 14px var(--tekst); color: var(--muted); margin-top: 4px; }
b.label { display: block; font-size: 13px; }
.rollijst { display: grid; gap: 6px; margin-top: 8px; max-height: 300px; overflow: auto; padding: 2px; }
.rolrij { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1.5px solid var(--lijn); border-radius: 10px; padding: 6px 8px 6px 12px; font-size: 14px; }
.rolrij select { width: auto; margin: 0; padding: 6px 10px; font-size: 14px; }
.chip.beheer { background: var(--navy); color: #fff; border-color: var(--navy); }
.rolrij.meer { flex-wrap: wrap; }
.rolvinkjes { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.rolvinkjes .check { font-size: 13px; }
[hidden] { display: none !important; }

/* modules + rollen in het gebruikersoverzicht: compacte lijst i.p.v. pillen */
.modlijst { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; min-width: 260px; }
.modlijst li { display: grid; grid-template-columns: 112px 1fr; gap: 8px; align-items: start; font-size: 13px; line-height: 20px; }
.modlijst .mnaam { color: var(--inkt); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modlijst .rtags { display: flex; flex-wrap: wrap; gap: 4px; }
.rtag { display: inline-block; font: 600 11px/18px var(--kop); padding: 0 7px; border-radius: 5px; background: #eef0fb; color: var(--navy); white-space: nowrap; }
.rtag.beheer { background: var(--navy); color: #fff; }
td.nowrap { white-space: nowrap; }
