/* Fonkelfoto's — gedeelde stylesheet, herontwerp v0.1.
   De vorm komt uit het Gloeicentrum (gloei.css): dezelfde tokens, en de fz-*-patronen nagebouwd als eigen
   ef-*-klassen. Er wordt niets uit het Gloeicentrum geladen: dit is een losse dienst (B3).
   Geen inline styles in templates (CSP): variaties zitten in modifiers. De levende lijst staat op /styleguide/. */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/montserrat-v31-latin-ext.d16dfe26bcd7.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/montserrat-v31-latin.311d352d9323.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== Tokens ===== */
:root {
  --ink: #1c2b2c;
  --ink-2: #43595b;
  --ink-3: #607476;
  /* --muted en --faint halen op wit geen 4,5:1 (3,4 en 2,4). Alleen voor iconen, randen en tekst ≥ 24 px;
     kleine tekst gebruikt --ink-3. */
  --muted: #788f91;
  --faint: #9caaab;
  --line: #e5ebeb;
  --line-2: #ebefef;
  --bg: #eef1f1;
  --surface: #ffffff;

  --primair-100: #e3f1f2;
  --primair-300: #89c8cc;
  --primair-500: #46a6ac;
  --primair-700: #337d82;
  --primair-800: #275f63;
  --secundair-700: #e4c800;
  --succes-100: #e4f2ec;
  --succes-700: #48aa85;
  --succes-800: #29614c;
  --fout-100: #fee2e2;
  --fout-300: #fca5a5;
  --fout-600: #dc2626;
  --fout-800: #991b1b;
  --aandacht-bg: #fef3c7;
  --aandacht-rand: #fde68a;
  --aandacht-rand-sterk: #fcd34d;
  --aandacht-ink: #92400e;
  --aandacht-ic: #d97706;

  --r-sm: 7px;
  --r-md: 11px;
  --r-lg: 16px;
  --r-pil: 20px;
  --shadow-card: 0 1px 2px rgba(28, 42, 43, .04), 0 6px 22px rgba(28, 42, 43, .05);
  --shadow-pop: 0 8px 30px rgba(28, 42, 43, .14);
  --focus-ring: 0 0 0 3px rgba(51, 125, 130, .14);

  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-32: 32px;

  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Het enige verloop in het ontwerp: de zes logokleuren. */
  --merkbalk: linear-gradient(90deg, #f2e559, #e4c800, #8dd0e1, #337d82, #48aa85, #a2d0aa);
  --kop-h: 68px; /* merkbalk 4 + kopbalk 64 */
}

/* ===== Basis ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  letter-spacing: -0.01em;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd, figure, fieldset { margin: 0; }
fieldset { padding: 0; border: 0; min-width: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
input, select, textarea, button { font-family: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--primair-700); outline-offset: 2px; }
[hidden] { display: none !important; }
.ef-verborgen { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Merk ===== */
.ef-merkbalk { height: 4px; flex: 0 0 auto; background: var(--merkbalk); }
.ef-merkbalk--dik { height: 6px; }
.ef-logo { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; color: var(--primair-700); }
.ef-logo__beeld { width: 32px; height: 32px; flex: 0 0 auto; }
.ef-logo--klein { font-size: 15px; }
.ef-logo--klein .ef-logo__beeld { width: 26px; height: 26px; }
.ef-logo--groot { gap: 10px; font-size: 20px; }
.ef-logo--groot .ef-logo__beeld { width: 40px; height: 40px; }

/* ===== Knoppen =====
   Basis = beheer: 40 px, hoek 7. --groot = gast: 52 px, hoek 11. Eén primaire knop per scherm. */
.ef-knop {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 13.5px; font-weight: 600; line-height: 1.2; white-space: nowrap;
  cursor: pointer; text-decoration: none;
}
.ef-knop:hover { background: var(--line-2); }
.ef-knop svg { width: 15px; height: 15px; flex: 0 0 auto; }
.ef-knop--primair { background: var(--primair-700); border-color: var(--primair-700); color: #fff; }
.ef-knop--primair:hover { background: var(--primair-800); border-color: var(--primair-800); }
.ef-knop--secundair { border-color: var(--primair-700); color: var(--primair-700); }
.ef-knop--secundair:hover { background: var(--primair-100); }
.ef-knop--gevaar { color: var(--fout-600); }
.ef-knop--gevaar:hover { background: var(--fout-100); border-color: var(--fout-300); color: var(--fout-800); }
.ef-knop--gevaar-vol { background: var(--fout-600); border-color: var(--fout-600); color: #fff; }
.ef-knop--gevaar-vol:hover { background: var(--fout-800); border-color: var(--fout-800); }
.ef-knop--klein { height: 36px; padding: 0 12px; font-size: 13px; }
.ef-knop--icoon { width: 40px; padding: 0; }
.ef-knop--icoon svg { width: 18px; height: 18px; }
.ef-knop--blok { display: flex; width: 100%; }
.ef-knop--gelukt, .ef-knop--gelukt:hover { background: var(--succes-100); border-color: #8bcab3; color: var(--succes-800); }
.ef-knop--groot { height: 52px; min-width: 52px; padding: 0 20px; border-radius: var(--r-md); font-size: 16px; gap: 10px; }
.ef-knop--groot svg { width: 20px; height: 20px; }
.ef-knop--groot.ef-knop--icoon { width: 52px; padding: 0; }
.ef-knop--groot.ef-knop--icoon svg { width: 22px; height: 22px; }
.ef-knop--op-donker { background: transparent; border-color: rgba(255, 255, 255, .4); color: #fff; }
.ef-knop--op-donker:hover { background: rgba(255, 255, 255, .12); }
.ef-knop--op-donker:focus-visible { outline-color: #fff; }
.ef-knop:disabled, .ef-knop[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* Tekstlink en terug-link */
.ef-link { color: var(--primair-700); font-weight: 600; text-decoration: none; }
.ef-link:hover { color: var(--primair-800); text-decoration: underline; }
.ef-terug { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; color: var(--primair-700); font-weight: 600; }
.ef-terug:hover { color: var(--primair-800); }
.ef-terug svg { width: 16px; height: 16px; }

/* ===== Pillen, teller, avatar ===== */
.ef-pil { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--r-pil); font-size: 12.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.ef-pil--open { background: var(--succes-100); color: var(--succes-800); }
.ef-pil--aandacht { background: var(--aandacht-bg); color: var(--aandacht-ink); border: 1px solid var(--aandacht-rand); padding: 2px 9px; }
.ef-pil--fout { background: var(--fout-100); color: var(--fout-800); }
.ef-pil--wit { background: #fff; color: var(--ink-2); font-size: 11.5px; padding: 2px 8px; }
.ef-teller { display: inline-block; min-width: 22px; padding: 2px 7px; border-radius: 4px; border: 1px solid var(--aandacht-rand); background: var(--aandacht-bg); color: var(--aandacht-ink); font-size: 12px; font-weight: 700; text-align: center; line-height: 1.3; }
.ef-avatar { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; background: var(--primair-700); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; text-transform: uppercase; }

/* ===== Spinner (de enige beweging) ===== */
@keyframes ef-draai { to { transform: rotate(360deg); } }
.ef-spinner { display: inline-block; width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%; border: 2.5px solid var(--primair-300); border-top-color: var(--primair-700); animation: ef-draai .9s linear infinite; }
.ef-spinner--klein { width: 14px; height: 14px; border-width: 2px; }
@media (prefers-reduced-motion: reduce) {
  .ef-spinner { animation: none; }
}

/* ===== Formulier ===== */
.ef-formulier { display: flex; flex-direction: column; gap: 22px; }
.ef-veld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ef-veldrij { display: flex; flex-wrap: wrap; gap: 16px; }
.ef-veldrij > .ef-veld { flex: 1 1 200px; }
.ef-label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.ef-hulp { font-size: 12.5px; line-height: 18px; color: var(--ink-3); }
.ef-fout { font-size: 12.5px; line-height: 18px; color: var(--fout-800); }
.ef-invoer {
  width: 100%; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font-size: 13.5px; font-weight: 400; color: var(--ink);
}
textarea.ef-invoer { height: auto; min-height: 80px; padding: 10px 12px; resize: vertical; }
.ef-veld > select.ef-invoer { align-self: flex-start; }
select.ef-invoer { width: auto; max-width: 100%; height: 36px; padding: 0 30px 0 12px; font-weight: 500; cursor: pointer; }
.ef-invoer::placeholder { color: var(--faint); }
.ef-invoer:focus { outline: none; border-color: var(--primair-500); box-shadow: var(--focus-ring); }
.ef-invoer[aria-invalid="true"] { border-color: var(--fout-300); }
/* Gast: 48 px en 16 px tekst, anders zoomt iOS in bij focus. */
.ef-invoer--groot { height: 48px; padding: 0 14px; font-size: 16px; }
.ef-gast .ef-label { font-size: 13.5px; }

/* Segmentschakelaar: drie standen. Opmaak: fieldset.ef-segment > (input.ef-segment__invoer + label.ef-segment__keuze)×n.
   De radio staat vóór zijn label zodat :checked + label werkt zonder :has(). */
.ef-segment { display: inline-flex; align-self: flex-start; gap: 2px; padding: 3px; border-radius: var(--r-sm); background: var(--line-2); }
.ef-segment__invoer { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ef-segment__keuze { height: 34px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 5px; color: var(--ink-2); font-size: 13.5px; font-weight: 500; cursor: pointer; }
.ef-segment__invoer:checked + .ef-segment__keuze { background: #fff; color: var(--primair-800); font-weight: 700; box-shadow: 0 1px 2px rgba(28, 42, 43, .12); }
.ef-segment__invoer:focus-visible + .ef-segment__keuze { outline: 2px solid var(--primair-700); outline-offset: 1px; }

/* Aan/uit-schakelaar: span.ef-schakelaar > input.ef-schakelaar__invoer[type=checkbox][role=switch] + span.ef-schakelaar__baan */
.ef-schakelaar { position: relative; display: inline-flex; flex: 0 0 auto; cursor: pointer; }
.ef-schakelaar__invoer { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ef-schakelaar__baan { width: 40px; height: 22px; border-radius: 11px; background: #cfd8d9; position: relative; }
.ef-schakelaar__baan::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.ef-schakelaar__invoer:checked + .ef-schakelaar__baan { background: var(--primair-700); }
.ef-schakelaar__invoer:checked + .ef-schakelaar__baan::after { left: 21px; }
.ef-schakelaar__invoer:focus-visible + .ef-schakelaar__baan { box-shadow: 0 0 0 3px rgba(51, 125, 130, .3); }
.ef-schakelrij { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); }
.ef-schakelrij__tekst { display: flex; flex-direction: column; gap: 3px; }
.ef-schakelrij__titel { font-weight: 600; }

/* Keuzevlak (gast, 52 px): label.ef-keuze > input[type=radio] + tekst, in een fieldset.ef-keuzes */
.ef-keuzes { display: flex; flex-direction: column; gap: 8px; }
.ef-keuzes > legend { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.ef-keuze { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-md); font-size: 15px; cursor: pointer; }
.ef-keuze input { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; accent-color: var(--primair-700); }
.ef-keuze:has(input:checked) { border: 1.5px solid var(--primair-700); padding: 0 13.5px; background: var(--primair-100); font-weight: 600; }

/* Kopieerveld: een link tonen met een knop Kopiëren (data-kopieer, static/js/kopieer.js) */
.ef-kopieer { display: flex; gap: 6px; }
.ef-kopieer__waarde { flex: 1 1 auto; min-width: 0; height: 36px; padding: 0 10px; display: flex; align-items: center; border-radius: var(--r-sm); background: var(--line-2); color: var(--ink-2); font-size: 12.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* Definitielijst */
.ef-def { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 13px; }
.ef-def dt { color: var(--ink-3); }
.ef-def dd { margin: 0; }

/* ===== Meldingen ===== */
.ef-melding { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--line-2); color: var(--ink-2); font-size: 13.5px; line-height: 20px; }
.ef-melding svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }
.ef-melding--aandacht { background: var(--aandacht-bg); border: 1px solid var(--aandacht-rand); color: var(--aandacht-ink); }
.ef-melding--aandacht svg { stroke: var(--aandacht-ic); }
.ef-melding--fout { background: var(--fout-100); border: 1px solid var(--fout-300); color: var(--fout-800); }
.ef-melding--gelukt { background: var(--succes-100); border: 1px solid #8bcab3; color: var(--succes-800); }
/* Over de volle breedte bovenaan een scherm, zonder hoeken. */
.ef-melding--balk { border-radius: 0; border-width: 0 0 1px; padding: 12px 16px; }
.ef-foutregel { font-size: 13.5px; line-height: 20px; color: var(--fout-800); }

/* Donkere toast: kort bericht na een actie. Staat boven de actiebalk. */
.ef-toast {
  position: fixed; left: 16px; right: 16px; bottom: 100px; z-index: 40;
  max-width: 568px; margin: 0 auto;
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--r-md);
  background: var(--ink); color: #fff; font-size: 14px; line-height: 20px;
  box-shadow: 0 8px 30px rgba(28, 42, 43, .24);
}
.ef-toast svg { width: 20px; height: 20px; flex: 0 0 auto; stroke: #8bcab3; }
.ef-toast--laag { bottom: 24px; }

/* ===== Dialogen (<dialog>, openen met data-open-dialoog, sluiten met data-sluit-dialoog) ===== */
.ef-modal {
  width: calc(100% - 32px); max-width: 420px; padding: 24px;
  border: 0; border-radius: var(--r-lg); background: #fff; color: var(--ink); box-shadow: var(--shadow-pop);
}
.ef-modal[open] { display: flex; flex-direction: column; gap: 14px; }
.ef-modal::backdrop { background: rgba(15, 23, 42, .38); }
.ef-modal__titel { font-size: 17px; font-weight: 700; }
.ef-modal__tekst { font-size: 13.5px; line-height: 20px; color: var(--ink-2); }
.ef-modal__acties { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

/* Sheet: een dialoog die van onderen komt (gast). */
.ef-sheet {
  width: 100%; max-width: 600px; max-height: 92dvh; margin: auto auto 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
  border: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; background: #fff; color: var(--ink);
}
.ef-sheet[open] { display: flex; flex-direction: column; gap: 14px; }
.ef-sheet::backdrop { background: rgba(15, 23, 42, .55); }
.ef-sheet__greep { align-self: center; width: 40px; height: 4px; border-radius: 2px; background: var(--line); }
.ef-sheet__titel { margin-top: 4px; font-size: 20px; font-weight: 700; letter-spacing: -0.025em; }
.ef-sheet__tekst { font-size: 14px; line-height: 21px; color: var(--ink-2); }
.ef-sheet__acties { display: flex; gap: 10px; margin-top: 4px; }
.ef-sheet__acties > .ef-knop { flex: 1 1 0; }

/* =====================================================================
   Beheer (base_beheer.html)
   ===================================================================== */
body.ef-beheer { background: var(--bg); font-size: 13.5px; line-height: 1.45; }
.ef-beheerkop { position: sticky; top: 0; z-index: 20; }
.ef-kopbalk { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 24px; background: #fff; border-bottom: 1px solid var(--line); }
.ef-kopbalk__links { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ef-kopbalk__scheiding { width: 1px; height: 24px; background: var(--line); }
.ef-kopbalk__app { font-size: 15px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.ef-kopbalk__menu { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink-2); cursor: pointer; }
.ef-kopbalk__menu svg { width: 20px; height: 20px; }
.ef-kopbalk__gebruiker { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ef-kopbalk__naam { white-space: nowrap; }
.ef-kopbalk__gebruiker form { margin: 0; }

.ef-schil { display: flex; min-height: calc(100vh - var(--kop-h)); }
.ef-zijbalk { flex: 0 0 220px; width: 220px; padding: 16px 12px; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.ef-zijbalk__scherm { display: none; }
.ef-hoofd { flex: 1 1 auto; min-width: 0; padding: 26px 30px; display: flex; flex-direction: column; gap: 18px; }

.ef-navitem { position: relative; display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 12px; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ef-navitem > span { overflow: hidden; text-overflow: ellipsis; }
.ef-navitem svg { width: 17px; height: 17px; flex: 0 0 auto; opacity: .7; }
.ef-navitem:hover { background: var(--primair-100); color: var(--primair-800); }
.ef-navitem--actief, .ef-navitem[aria-current="page"] { background: var(--primair-100); color: var(--primair-800); font-weight: 600; }
.ef-navitem--actief::before, .ef-navitem[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primair-500); }
.ef-navitem--actief svg, .ef-navitem[aria-current="page"] svg { opacity: 1; }
.ef-navlabel { margin: 16px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }

/* Paginakop: terug-link, titel met pil, datum, knoppen rechts */
.ef-paginakop { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.ef-paginakop__tekst { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ef-paginakop__titelrij { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ef-paginakop__titel { font-size: 20px; font-weight: 700; letter-spacing: -0.025em; }
.ef-paginakop__sub { font-size: 13px; color: var(--ink-3); }
.ef-paginakop__acties { display: flex; flex-wrap: wrap; gap: 8px; }

/* Indeling met zijkolom (evenementscherm A). Onder 1180 px komt de zijkolom onder de inhoud. */
.ef-indeling { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.ef-indeling__hoofd, .ef-indeling__zij { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ef-indeling__zij { gap: 14px; }
@media (min-width: 1180px) {
  .ef-indeling { grid-template-columns: minmax(0, 1fr) 320px; }
}

/* Kaart: wit, dunne teal rand, lichtteal kop */
.ef-kaart { background: #fff; border: 1px solid var(--primair-300); border-radius: var(--r-md); box-shadow: var(--shadow-card); overflow: hidden; }
.ef-kaart__kop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 6px 18px; background: var(--primair-100); border-bottom: 1px solid var(--primair-300); }
.ef-kaart__titel { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--primair-800); }
.ef-kaart__titel svg { width: 16px; height: 16px; flex: 0 0 auto; }
.ef-kaart__inhoud { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.ef-kaart__voet { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--ink-3); }
/* Paneel: een rustige kaart zonder gekleurde kop, voor de zijkolom. */
.ef-kaart--paneel { border-color: var(--line); box-shadow: none; }
.ef-kaart--paneel .ef-kaart__titel { color: var(--ink); }
/* Aandacht: amber, voor "Gemeld door een gast". */
.ef-kaart--aandacht { border-color: var(--aandacht-rand-sterk); box-shadow: none; }
.ef-kaart--aandacht .ef-kaart__kop { background: var(--aandacht-bg); border-bottom-color: var(--aandacht-rand); }
.ef-kaart--aandacht .ef-kaart__titel { color: var(--aandacht-ink); }
.ef-kaart--aandacht .ef-kaart__titel svg { stroke: var(--aandacht-ic); }
/* Formulierkaart: ruimer en ronder, max 560 breed. */
.ef-kaart--formulier { max-width: 560px; padding: 28px; border-color: var(--line); border-radius: var(--r-lg); overflow: visible; }
.ef-scheiding { height: 1px; margin: 6px 0; border: 0; background: var(--line-2); }

/* Rij: beeld, tekst en knoppen naast elkaar (gemelde foto, evenement in een lijst) */
.ef-rij { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.ef-rij:last-child { border-bottom: 0; }
.ef-rij__beeld { width: 64px; height: 64px; flex: 0 0 auto; border-radius: var(--r-sm); object-fit: cover; background: var(--line-2); }
.ef-rij__tekst { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ef-rij__titel { font-weight: 600; }
.ef-rij__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.ef-rij__acties { display: flex; flex-wrap: wrap; gap: 8px; }
a.ef-rij:hover { background: var(--line-2); }
.ef-rij__pijl { width: 16px; height: 16px; flex: 0 0 auto; stroke: var(--faint); }

/* Tabel */
.ef-tabelwrap { overflow-x: auto; }
.ef-tabel { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ef-tabel th { padding: 11px 18px; text-align: left; background: var(--primair-100); border-bottom: 1px solid var(--primair-300); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primair-800); white-space: nowrap; }
.ef-tabel td { padding: 13px 18px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); vertical-align: middle; }
.ef-tabel tbody tr:last-child td { border-bottom: 0; }
.ef-tabel tbody tr:hover { background: #f5f8f8; }
.ef-tabel__hoofd { color: var(--ink); font-weight: 600; }

/* Fotokaart in het beheerraster: foto, naam van de gast, één actie */
.ef-fotokaart { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ef-fotokaart__rij { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 32px; }
.ef-fotokaart__naam { font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ef-fotokaart__actie { height: 32px; padding: 0 8px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--primair-700); font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ef-fotokaart__actie:hover { background: var(--primair-100); }

/* Inlogpagina (base_beheer.html met block schil overschreven) */
.ef-inlog { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--primair-800); }
.ef-inlog__kaart { width: 100%; max-width: 360px; padding: 32px; display: flex; flex-direction: column; gap: 24px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-pop); }
.ef-inlog__kop { display: flex; flex-direction: column; gap: 12px; }
.ef-inlog__titel { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.ef-inlog__tekst { font-size: 13.5px; line-height: 20px; color: var(--ink-3); }
.ef-inlog__voet { padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 18px; color: var(--ink-3); }
.ef-inlog .ef-knop { height: 44px; font-size: 14px; }
.ef-inlog form { margin: 0; }

@media (max-width: 900px) {
  .ef-kopbalk { padding: 0 12px 0 8px; gap: 6px; }
  .ef-kopbalk__links { gap: 6px; }
  .ef-kopbalk__scheiding, .ef-kopbalk .ef-logo__naam, .ef-kopbalk__naam { display: none; }
  .ef-kopbalk .ef-logo__beeld { width: 26px; height: 26px; }
  .ef-js .ef-kopbalk__menu { display: inline-flex; }
  .ef-schil { flex-direction: column; }
  /* Zonder script blijft de zijbalk zichtbaar boven de inhoud; met script wordt hij een lade. */
  .ef-zijbalk { width: auto; flex: 0 0 auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .ef-js .ef-zijbalk { position: fixed; top: var(--kop-h); bottom: 0; left: 0; z-index: 30; width: 260px; overflow-y: auto; border-right: 1px solid var(--line); border-bottom: 0; box-shadow: var(--shadow-pop); visibility: hidden; transform: translateX(-100%); }
  .ef-js .ef-menu-open .ef-zijbalk { visibility: visible; transform: none; }
  .ef-js .ef-menu-open .ef-zijbalk__scherm { display: block; position: fixed; inset: var(--kop-h) 0 0 0; z-index: 25; background: rgba(15, 23, 42, .38); border: 0; padding: 0; }
  .ef-hoofd { padding: 20px 16px; gap: 14px; }
  .ef-paginakop { align-items: stretch; flex-direction: column; }
  .ef-paginakop__acties > .ef-knop { flex: 1 1 0; }
  .ef-navitem { min-height: 44px; }
}
/* Klikvlakken van minstens 44 px op aanraakschermen en smal. */
@media (max-width: 900px), (pointer: coarse) {
  .ef-beheer .ef-knop { min-height: 44px; }
  .ef-fotokaart__actie { height: 44px; }
}

/* =====================================================================
   Gast (base_gast.html)
   ===================================================================== */
body.ef-gast { background: #fff; font-size: 15px; line-height: 1.45; }
.ef-gastkolom { width: 100%; max-width: 600px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; background: #fff; }
.ef-gastinhoud { flex: 1 1 auto; display: flex; flex-direction: column; }
body.ef-gast--donker, body.ef-gast--donker .ef-gastkolom { background: #000; color: #fff; }
body.ef-gast--donker :focus-visible { outline-color: #fff; }
@media (min-width: 600px) {
  body.ef-gast { background: var(--bg); }
  .ef-gastkolom { border-inline: 1px solid var(--line); }
}

/* Kop: logo met een knop rechts, titel, datum, privacyzin */
.ef-gastkop { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.ef-gastkop__rij { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.ef-gastkop__tekst { display: flex; flex-direction: column; gap: 4px; }
.ef-gastkop__titel { font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -0.025em; }
.ef-gastkop__datum { font-size: 14px; color: var(--ink-3); }
.ef-privacyregel { font-size: 13px; line-height: 19px; color: var(--ink-3); }
/* Kleine knop in de kop (Mijn foto's) */
.ef-kopknop { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--primair-700); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.ef-kopknop:hover { background: var(--primair-100); }
.ef-kopknop svg { width: 16px; height: 16px; }
.ef-gast .ef-terug { min-height: 44px; padding: 0 8px; font-size: 14px; }
.ef-gast .ef-terug svg { width: 18px; height: 18px; }

/* Fotoraster: van rand tot rand, 2 px tussenruimte, 3 kolommen (4 boven 600 px) */
.ef-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; align-content: start; }
@media (min-width: 600px) {
  .ef-raster { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.ef-tegel { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--line-2); }
.ef-tegel__beeld { width: 100%; height: 100%; object-fit: cover; }
a.ef-tegel:focus-visible { outline-offset: -3px; }

/* Varianten van het raster (na de basis, zodat ze de 4 kolommen overstemmen) */
.ef-raster--upload { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 14px 16px; }
.ef-raster--upload .ef-tegel { border-radius: var(--r-md); }
.ef-raster--mijn { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 8px 16px; }
.ef-raster--mijn .ef-tegel { border-radius: var(--r-md); }
.ef-raster--beheer { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px 10px; padding: 16px 18px; }
.ef-raster--beheer .ef-tegel { border-radius: var(--r-sm); }

/* Tegelstaten bij het versturen: bezig (spinner), klaar (groen vinkje), fout (rood, Opnieuw of een reden) */
.ef-tegel__laag { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 4px; background: rgba(255, 255, 255, .55); color: var(--ink-2); font-size: 13px; font-weight: 600; text-align: center; }
.ef-tegel--fout { outline: 2px solid var(--fout-600); outline-offset: -2px; }
.ef-tegel--fout .ef-tegel__laag { background: rgba(254, 226, 226, .85); color: var(--fout-800); }
button.ef-tegel__laag { border: 0; border-radius: inherit; cursor: pointer; font-family: inherit; }
.ef-tegel__laag svg { width: 18px; height: 18px; }
.ef-tegel__vink { position: absolute; right: 6px; bottom: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--succes-700); display: flex; align-items: center; justify-content: center; }
.ef-tegel__vink svg { width: 12px; height: 12px; stroke: #fff; }
.ef-tegel--gedimd .ef-tegel__beeld { opacity: .45; }
.ef-tegel__pil { position: absolute; left: 6px; top: 6px; }
.ef-tegel__pil--onder { top: auto; bottom: 8px; left: 8px; }
/* Verwijderknop rechtsboven: klikvlak 44, zichtbaar rondje 32 */
.ef-tegel__weg { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; cursor: pointer; }
.ef-tegel__weg span { width: 32px; height: 32px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(28, 42, 43, .2); display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
.ef-tegel__weg svg { width: 16px; height: 16px; }

/* Actiebalk: wit, onderaan, schuift mee */
.ef-actiebalk { position: sticky; bottom: 0; z-index: 10; margin-top: auto; display: flex; gap: 10px; padding: 12px 16px calc(20px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 22px rgba(28, 42, 43, .08); }
.ef-actiebalk > .ef-knop:not(.ef-knop--icoon) { flex: 1 1 0; }
.ef-actiebalk--kolom { flex-direction: column; gap: 8px; }
.ef-actiebalk--kolom > .ef-knop:not(.ef-knop--icoon) { flex: 0 0 auto; }
.ef-actiebalk__noot { font-size: 12.5px; line-height: 18px; color: var(--ink-3); text-align: center; }
label.ef-knop { cursor: pointer; }

/* Voortgang bij het versturen */
.ef-voortgangkop { padding: 24px 16px 4px; display: flex; flex-direction: column; gap: 10px; }
.ef-voortgangkop__titel { font-size: 22px; font-weight: 700; letter-spacing: -0.025em; }
.ef-voortgang { display: block; width: 100%; height: 6px; border: 0; border-radius: 3px; background: var(--primair-100); color: var(--primair-700); -webkit-appearance: none; appearance: none; overflow: hidden; }
.ef-voortgang::-webkit-progress-bar { background: var(--primair-100); border-radius: 3px; }
.ef-voortgang::-webkit-progress-value { background: var(--primair-700); border-radius: 3px; }
.ef-voortgang::-moz-progress-bar { background: var(--primair-700); border-radius: 3px; }

/* Blok met velden op een gastscherm */
.ef-gastvelden { padding: 10px 16px 16px; display: flex; flex-direction: column; gap: 16px; }

/* Grote foto (zwart) */
.ef-lightbox { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; background: #000; color: #fff; }
.ef-lightbox__balk { display: flex; align-items: center; justify-content: space-between; padding: 12px 8px; }
.ef-lightbox__sluiten { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; color: #fff; cursor: pointer; }
.ef-lightbox__sluiten svg { width: 24px; height: 24px; }
.ef-lightbox__beeld { position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; }
.ef-lightbox__foto { max-width: 100%; max-height: 70vh; object-fit: contain; }
.ef-lightbox__blader { position: absolute; top: 50%; margin-top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .35); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ef-lightbox__blader svg { width: 20px; height: 20px; }
.ef-lightbox__blader--vorige { left: 4px; }
.ef-lightbox__blader--volgende { right: 4px; }
.ef-lightbox__info { padding: 16px 20px 8px; display: flex; flex-direction: column; gap: 4px; }
.ef-lightbox__titel { font-size: 15px; font-weight: 600; }
.ef-lightbox__van { font-size: 13px; color: #b9c6c7; }
.ef-lightbox__acties { display: flex; gap: 10px; padding: 12px 16px calc(24px + env(safe-area-inset-bottom)); }
.ef-lightbox__acties > .ef-knop { flex: 1 1 0; height: 48px; font-size: 15px; }

/* Scherm zonder album (link werkt niet, even niet) */
.ef-midden { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 32px; }
.ef-midden__titel { font-size: 22px; font-weight: 700; letter-spacing: -0.025em; }
.ef-midden__tekst { font-size: 15px; line-height: 23px; color: var(--ink-2); }

/* =====================================================================
   Diashow (base_scherm.html) — 16:9, alles schaalt met --d (1 px op 1280×720)
   ===================================================================== */
body.ef-scherm { background: #000; color: #fff; overflow: hidden; }
.ef-dia { --d: min(calc(100vw / 1280), calc(100vh / 720)); position: fixed; inset: 0; overflow: hidden; background: #000; }
.ef-dia > .ef-merkbalk { position: absolute; left: 0; right: 0; top: 0; z-index: 2; }
.ef-dia__beeld { position: absolute; inset: 0; }
.ef-dia__foto, .ef-dia__achter { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ef-dia__nieuw { position: absolute; left: calc(32 * var(--d)); top: calc(32 * var(--d)); padding: calc(6 * var(--d)) calc(16 * var(--d)); border-radius: calc(20 * var(--d)); background: var(--secundair-700); color: var(--ink); font-size: calc(16 * var(--d)); font-weight: 700; }
.ef-dia__onderschrift { position: absolute; left: calc(32 * var(--d)); bottom: calc(32 * var(--d)); max-width: calc(760 * var(--d)); padding: calc(16 * var(--d)) calc(22 * var(--d)); border-radius: calc(11 * var(--d)); background: rgba(0, 0, 0, .6); display: flex; flex-direction: column; gap: calc(4 * var(--d)); }
.ef-dia__bijschrift { font-size: calc(30 * var(--d)); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.ef-dia__van { font-size: calc(20 * var(--d)); color: #d3dcdc; }
.ef-dia__volledig { position: absolute; right: calc(20 * var(--d)); top: calc(20 * var(--d)); z-index: 3; height: calc(44 * var(--d)); min-height: 36px; padding: 0 calc(20 * var(--d)); border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--r-sm); background: #1c2b2c; color: #fff; font-size: max(13.5px, calc(16 * var(--d))); font-weight: 600; cursor: pointer; opacity: 0; transition: opacity .2s; }
.ef-dia--muis .ef-dia__volledig, .ef-dia__volledig:focus-visible { opacity: 1; outline-color: #fff; }
@media (prefers-reduced-motion: reduce) { .ef-dia__volledig { transition: none; } }
/* QR-kaart rechtsonder */
.ef-qrkaart { position: absolute; right: calc(32 * var(--d)); bottom: calc(32 * var(--d)); width: calc(200 * var(--d)); padding: calc(16 * var(--d)); border-radius: calc(16 * var(--d)); background: #fff; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: calc(10 * var(--d)); }
.ef-qrkaart__code { width: calc(168 * var(--d)); height: calc(168 * var(--d)); }
.ef-qrkaart__code svg { display: block; width: 100%; height: 100%; }
.ef-qrkaart__tekst { font-size: calc(16 * var(--d)); line-height: 1.3; font-weight: 700; text-align: center; }
/* Nog geen foto's: groot de naam en de code */
.ef-dia--wacht { background: var(--primair-800); display: flex; align-items: center; justify-content: center; gap: calc(72 * var(--d)); }
.ef-dia--wacht .ef-qrkaart { position: static; width: calc(300 * var(--d)); padding: calc(24 * var(--d)); }
.ef-dia--wacht .ef-qrkaart__code { width: calc(252 * var(--d)); height: calc(252 * var(--d)); }
.ef-dia__wachttekst { max-width: calc(560 * var(--d)); display: flex; flex-direction: column; gap: calc(18 * var(--d)); }
.ef-dia__naam { font-size: calc(52 * var(--d)); line-height: 1.12; font-weight: 700; letter-spacing: -0.03em; }
.ef-dia__uitleg { font-size: calc(26 * var(--d)); line-height: 1.38; color: var(--primair-100); }

/* =====================================================================
   QR-kaart om af te drukken (includes/printkaart.html), schaalt met de breedte
   ===================================================================== */
.ef-printwrap { container-type: inline-size; width: 100%; max-width: 620px; }
.ef-printkaart { --p: calc(100cqw / 620); width: 100%; aspect-ratio: 620 / 440; display: flex; flex-direction: column; overflow: hidden; background: #fff; color: var(--ink); font-family: var(--font); box-shadow: var(--shadow-card); }
.ef-printkaart__merkbalk { height: calc(6 * var(--p)); flex: 0 0 auto; background: var(--merkbalk); }
.ef-printkaart__vlak { flex: 1 1 auto; display: flex; gap: calc(32 * var(--p)); padding: calc(32 * var(--p)) calc(36 * var(--p)) calc(28 * var(--p)); min-height: 0; }
.ef-printkaart__tekst { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: calc(14 * var(--p)); }
.ef-printkaart__merk { font-size: calc(15 * var(--p)); gap: calc(8 * var(--p)); }
.ef-printkaart__merk .ef-logo__beeld { width: calc(26 * var(--p)); height: calc(26 * var(--p)); }
.ef-printkaart__titel { margin-top: calc(6 * var(--p)); font-size: calc(28 * var(--p)); line-height: 1.2; font-weight: 700; letter-spacing: -0.025em; }
.ef-printkaart__uitleg { font-size: calc(15 * var(--p)); line-height: 1.53; color: var(--ink-2); }
.ef-printkaart__privacy { margin-top: auto; font-size: calc(11.5 * var(--p)); line-height: 1.48; color: var(--ink-3); }
.ef-printkaart__code { width: calc(210 * var(--p)); flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(12 * var(--p)); }
.ef-printkaart__qr { width: calc(210 * var(--p)); height: calc(210 * var(--p)); padding: calc(14 * var(--p)); border: 1px solid var(--primair-300); border-radius: calc(16 * var(--p)); background: #fff; }
.ef-printkaart__qr svg { display: block; width: 100%; height: 100%; }
.ef-printkaart__adres { font-size: calc(12 * var(--p)); font-weight: 600; color: var(--primair-700); text-align: center; overflow-wrap: anywhere; }

@page kaart-a6 { size: 148mm 105mm; margin: 0; }
@page kaart-a5 { size: 210mm 148mm; margin: 0; }
.ef-printkaart--a6 { page: kaart-a6; }
.ef-printkaart--a5 { page: kaart-a5; }

@media print {
  body { background: #fff !important; }
  .ef-geen-print, .ef-beheerkop, .ef-zijbalk { display: none !important; }
  .ef-schil, .ef-hoofd { display: block; padding: 0; min-height: 0; }
  .ef-printwrap { max-width: none; width: 100%; }
  .ef-printkaart { width: 100vw; height: 100vh; aspect-ratio: auto; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
