/* =====================================================================
   In Horn van Heerd — de enige stylesheet.
   1. Letters  2. Variabelen  3. Basis  4. Opmaak van de pagina
   5. Componenten (alfabetisch)  6. Hulpklassen
   Regel: geen style="" in templates en geen CSS per pagina. Mist er iets,
   dan komt het hier als component.
   ===================================================================== */

/* 1. Letters (zelf gehost, geen Google) ------------------------------- */
@font-face { font-family: "Newsreader"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/newsreader-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("fonts/newsreader-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/newsreader-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-display: swap;
  src: url("fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 500; font-display: swap;
  src: url("fonts/public-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-display: swap;
  src: url("fonts/public-sans-latin-600-normal.woff2") format("woff2"); }

/* 2. Variabelen -------------------------------------------------------- */
:root {
  --achtergrond: #FBFAF8;
  --vlak: #FFFFFF;
  --vlak-zacht: #F3EFE8;
  --tekst: #1E1D1B;
  --tekst-gedempt: #4A4843;
  --tekst-zacht: #6B6862;
  --lijn: #E4E1DA;
  --lijn-sterk: #CFCBC2;
  --accent: #8A3420;
  --accent-tekst: #FFFFFF;
  --accent-zacht: #F3E6E1;
  --tag-vlak: #F3EFE8;
  --tag-tekst: #6E2A19;
  --wereld: #8C8880;
  --gevaar: #9B2C2C;
  --succes-vlak: #EEF1EA;
  --succes-tekst: #3D4A2E;
  --fout-vlak: #F7E9E6;
  --fout-tekst: #7D2416;

  --letter-verhaal: "Newsreader", Georgia, "Times New Roman", serif;
  --letter-bediening: "Public Sans", -apple-system, "Segoe UI", system-ui, sans-serif;

  --maat-klein: 0.875rem;
  --maat-basis: 1.0625rem;
  --maat-groot: 1.25rem;
  --maat-kop: 1.75rem;
  --maat-titel: 2.25rem;

  --ruimte-1: 0.25rem;
  --ruimte-2: 0.5rem;
  --ruimte-3: 0.75rem;
  --ruimte-4: 1rem;
  --ruimte-5: 1.5rem;
  --ruimte-6: 2rem;
  --ruimte-7: 3rem;

  --hoek: 6px;
  --hoek-groot: 10px;
  --tikvlak: 44px;
  --breedte-tekst: 38rem;
  --breedte-pagina: 52rem;
  --onderbalk-hoogte: 64px;
}

/* Donker: volgt het apparaat, tenzij iemand bij Instellingen zelf licht of donker koos. */
@media (prefers-color-scheme: dark) {
  :root:not([data-thema="licht"]) {
    --achtergrond: #171614;
    --vlak: #201F1C;
    --vlak-zacht: #2A2824;
    --tekst: #ECE9E3;
    --tekst-gedempt: #C4C0B8;
    --tekst-zacht: #9C978E;
    --lijn: #34322D;
    --lijn-sterk: #4A4741;
    --accent: #D0806A;
    --accent-tekst: #1A1210;
    --accent-zacht: #3A2620;
    --tag-vlak: #2E2925;
    --tag-tekst: #E2A894;
    --wereld: #8A867E;
    --gevaar: #E08A80;
    --succes-vlak: #262C20;
    --succes-tekst: #C8D6B4;
    --fout-vlak: #3A221D;
    --fout-tekst: #F0B3A6;
  }
}
:root[data-thema="donker"] {
  --achtergrond: #171614;
  --vlak: #201F1C;
  --vlak-zacht: #2A2824;
  --tekst: #ECE9E3;
  --tekst-gedempt: #C4C0B8;
  --tekst-zacht: #9C978E;
  --lijn: #34322D;
  --lijn-sterk: #4A4741;
  --accent: #D0806A;
  --accent-tekst: #1A1210;
  --accent-zacht: #3A2620;
  --tag-vlak: #2E2925;
  --tag-tekst: #E2A894;
  --wereld: #8A867E;
  --gevaar: #E08A80;
  --succes-vlak: #262C20;
  --succes-tekst: #C8D6B4;
  --fout-vlak: #3A221D;
  --fout-tekst: #F0B3A6;
}

/* Tekstgrootte (Instellingen): alles is in rem, dus de hele pagina schaalt mee. */
html[data-tekst="groot"] { font-size: 112.5%; }
html[data-tekst="extra"] { font-size: 125%; }

/* 3. Basis ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--achtergrond);
  color: var(--tekst);
  font: 400 var(--maat-basis)/1.55 var(--letter-bediening);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--letter-verhaal); font-weight: 600; line-height: 1.2; margin: 0 0 var(--ruimte-3); }
h1 { font-size: var(--maat-kop); }
h2 { font-size: var(--maat-groot); }
p { margin: 0 0 var(--ruimte-4); }
a { color: var(--accent); text-underline-offset: 0.15em; }
small { font-size: var(--maat-klein); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }

/* 4. Opmaak van de pagina ---------------------------------------------- */
.pagina {
  max-width: var(--breedte-pagina);
  margin: 0 auto;
  padding: var(--ruimte-5) var(--ruimte-4) calc(var(--onderbalk-hoogte) + var(--ruimte-6) + env(safe-area-inset-bottom));
}
.los .pagina { padding-bottom: var(--ruimte-7); }

.kop {
  border-bottom: 1px solid var(--lijn);
  background: var(--achtergrond);
  padding-top: env(safe-area-inset-top);
}
.kop__binnen {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--ruimte-4);
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ruimte-4);
}
.kop__titel {
  font-family: var(--letter-verhaal);
  font-weight: 600;
  font-size: var(--maat-groot);
  color: var(--tekst);
  text-decoration: none;
  white-space: nowrap;
}
.kop__nav { display: none; gap: var(--ruimte-1); }
.kop__nav a {
  color: var(--tekst-gedempt);
  text-decoration: none;
  padding: var(--ruimte-2) var(--ruimte-3);
  border-radius: var(--hoek);
  min-height: var(--tikvlak);
  display: inline-flex;
  align-items: center;
}
.kop__nav a:hover { background: var(--vlak-zacht); }
.kop__nav a[aria-current="page"] { color: var(--tekst); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }

.onderbalk {
  position: fixed;
  inset: auto 0 0 0;
  display: flex;
  justify-content: space-around;
  background: var(--vlak);
  border-top: 1px solid var(--lijn);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 10;
}
.onderbalk a {
  flex: 1;
  min-height: var(--onderbalk-hoogte);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--tekst-zacht);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
}
.onderbalk a[aria-current="page"] { color: var(--accent); }
.onderbalk .icoon { width: 24px; height: 24px; }

@media (min-width: 760px) {
  .kop__nav { display: flex; }
  .onderbalk { display: none; }
  .pagina { padding: var(--ruimte-6) var(--ruimte-5) var(--ruimte-7); }
}

/* 5. Componenten ------------------------------------------------------- */

/* badge: rol of status */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 2px var(--ruimte-2);
  border-radius: 999px;
  background: var(--tag-vlak);
  color: var(--tekst-gedempt);
  white-space: nowrap;
}
.badge--beheerder, .badge--opperbeheerder { background: var(--accent-zacht); color: var(--tag-tekst); }
.badge--uit { background: var(--fout-vlak); color: var(--fout-tekst); }

.badge--oproep { background: var(--accent-zacht); color: var(--tag-tekst); }
.badge--beantwoord { background: var(--succes-vlak); color: var(--succes-tekst); }
.badge .icoon { width: 13px; height: 13px; vertical-align: -2px; }


/* blok: sectie op een pagina */
.blok { margin-top: var(--ruimte-6); }
.blok--eerst:first-of-type { margin-top: 0; }

/* boom: mensen per tak */
.boom { list-style: none; margin: 0; padding: 0; }
.boom .boom { margin-left: var(--ruimte-4); padding-left: var(--ruimte-3); border-left: 1px solid var(--lijn); }
.persoonregel {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--ruimte-2);
  min-height: var(--tikvlak);
  padding: var(--ruimte-2) 0;
  color: var(--tekst);
  text-decoration: none;
  border-bottom: 1px solid var(--lijn);
}
.persoonregel:hover .persoonregel__naam { text-decoration: underline; }
.persoonregel__naam { font-weight: 500; }
.persoonregel__naam small { color: var(--tekst-zacht); font-weight: 400; }
.persoonregel--uit .persoonregel__naam { color: var(--tekst-zacht); text-decoration: line-through; }

/* bovenkop: klein woord boven een titel */
.bovenkop {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tekst-zacht);
  margin-bottom: var(--ruimte-2);
}

/* chips: personen bij een gebeurtenis of stuk */
.chips { list-style: none; margin: var(--ruimte-3) 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--ruimte-2); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--ruimte-1);
  min-height: 36px;
  padding: 0 var(--ruimte-3);
  border-radius: 999px;
  background: var(--tag-vlak);
  color: var(--tag-tekst);
  text-decoration: none;
  font-size: var(--maat-klein);
  font-weight: 500;
}
.chip .icoon { width: 16px; height: 16px; }
.chip small { font-weight: 400; opacity: .8; }
.chipkiezer { display: flex; flex-wrap: wrap; gap: var(--ruimte-2); margin-bottom: var(--ruimte-3); }
.chipkeuze { position: relative; cursor: pointer; }
.chipkeuze input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chipkeuze span {
  display: inline-flex;
  align-items: center;
  gap: var(--ruimte-1);
  min-height: 40px;
  padding: 0 var(--ruimte-3);
  border: 1px solid var(--lijn-sterk);
  border-radius: 999px;
  font-size: var(--maat-klein);
  background: var(--vlak);
}
.chipkeuze small { color: var(--tekst-zacht); }
.chipkeuze input:checked + span { background: var(--accent-zacht); border-color: var(--accent); color: var(--tag-tekst); font-weight: 600; }
.chipkeuze input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* zichtbaarheid: lezers kiezen alleen als "Afgeschermd" aan staat */
.zichtbaarheid__lezers { display: none; padding-top: var(--ruimte-2); }
.zichtbaarheid:has(input[name=afgeschermd][value="1"]:checked) .zichtbaarheid__lezers { display: block; }
.bronnen__verborgen { margin-top: var(--ruimte-3); font-size: var(--maat-klein); }

/* zoek: zoekveld boven een lijst */
.zoek { margin-bottom: var(--ruimte-4); max-width: 30rem; }
.lijst__regel small.inline { display: inline; }
.melding--info { background: var(--vlak-zacht); color: var(--tekst-gedempt); }

/* filters: keuzeknopjes boven een lijst */
.filters { display: flex; flex-wrap: wrap; gap: var(--ruimte-2); margin-bottom: var(--ruimte-3); align-items: center; }
.filters--klein { margin-bottom: var(--ruimte-5); font-size: var(--maat-klein); }
.filter {
  display: inline-flex;
  align-items: center;
  gap: var(--ruimte-1);
  min-height: 40px;
  padding: 0 var(--ruimte-3);
  border: 1px solid var(--lijn-sterk);
  border-radius: 999px;
  color: var(--tekst-gedempt);
  text-decoration: none;
  font-size: var(--maat-klein);
}
.filter small { color: var(--tekst-zacht); }
.filter[aria-current="true"] { background: var(--tag-vlak); border-color: var(--tag-tekst); color: var(--tag-tekst); font-weight: 600; }

/* formulier en velden */
.formulier { display: grid; gap: var(--ruimte-4); max-width: 30rem; }
.formulier--breed { max-width: var(--breedte-tekst); }
.formulier .kaart { margin: 0; }
.veld { display: grid; gap: var(--ruimte-1); }
.veld__label { font-weight: 600; font-size: var(--maat-klein); }
.veld__invoer {
  width: 100%;
  min-height: var(--tikvlak);
  padding: var(--ruimte-2) var(--ruimte-3);
  background: var(--vlak);
  border: 1px solid var(--lijn-sterk);
  border-radius: var(--hoek);
  font-size: 1rem; /* 16px: anders zoomt Safari in */
}
.veld__invoer:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-zacht); }
.veld__invoer--tekst { min-height: auto; line-height: 1.5; resize: vertical; }
.veld__invoer--verhaal { font-family: var(--letter-verhaal); font-size: 1.125rem; line-height: 1.6; }
.veld__invoer--bestand { padding: var(--ruimte-2); background: var(--vlak-zacht); border-style: dashed; }
select.veld__invoer { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--tekst-zacht) 50%), linear-gradient(135deg, var(--tekst-zacht) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
.veld__hint { margin: 0; font-size: var(--maat-klein); color: var(--tekst-zacht); }

.keuzes { border: 0; margin: 0; padding: 0; display: grid; gap: var(--ruimte-2); }
.keuzes legend { margin-bottom: var(--ruimte-2); }
.keuze {
  display: flex;
  gap: var(--ruimte-3);
  align-items: flex-start;
  padding: var(--ruimte-3);
  border: 1px solid var(--lijn);
  border-radius: var(--hoek);
  background: var(--vlak);
  cursor: pointer;
}
.keuze:has(input:checked) { border-color: var(--accent); background: var(--accent-zacht); }
.keuze input { margin-top: 0.3rem; accent-color: var(--accent); width: 1.1rem; height: 1.1rem; flex: none; }
.keuze__tekst { display: grid; gap: 2px; }
.keuze--compact { padding: var(--ruimte-2) var(--ruimte-3); }
.keuze__tekst span { font-size: var(--maat-klein); color: var(--tekst-gedempt); }

/* gegevens: definitielijst met label en waarde */
.gegevens { margin: 0 0 var(--ruimte-5); display: grid; gap: 0; }
.gegevens > div { display: grid; gap: var(--ruimte-1); padding: var(--ruimte-3) 0; border-bottom: 1px solid var(--lijn); }
.gegevens dt { font-size: var(--maat-klein); color: var(--tekst-zacht); }
.gegevens dd { margin: 0; }
@media (min-width: 560px) { .gegevens > div { grid-template-columns: 11rem 1fr; } }

/* icoon */
.icoon { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.icoon--klein { width: 15px; height: 15px; vertical-align: -2px; }

/* kaart */
.kaart {
  background: var(--vlak);
  border: 1px solid var(--lijn);
  border-radius: var(--hoek-groot);
  padding: var(--ruimte-4);
  margin-bottom: var(--ruimte-5);
  display: grid;
  gap: var(--ruimte-3);
}
.kaart p { margin: 0; }
.kaart--zacht { background: var(--vlak-zacht); border-color: transparent; }
.deellink { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: var(--maat-klein); }

/* knop */
.knop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ruimte-2);
  min-height: var(--tikvlak);
  padding: var(--ruimte-2) var(--ruimte-4);
  border: 1px solid var(--accent);
  border-radius: var(--hoek);
  background: var(--accent);
  color: var(--accent-tekst);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
}
.knop:hover { filter: brightness(1.08); }
.knop--rustig { background: transparent; color: var(--tekst); border-color: var(--lijn-sterk); }
.knop--rustig:hover { background: var(--vlak-zacht); filter: none; }
.knop--rustig[aria-pressed="false"] { color: var(--tekst-zacht); }
.knop--gevaar { background: transparent; color: var(--gevaar); border-color: var(--gevaar); }
.knop--klein { min-height: 40px; padding: var(--ruimte-1) var(--ruimte-3); font-size: var(--maat-klein); font-weight: 500; }
.knop--vol { width: 100%; }
.knoppen { display: flex; flex-wrap: wrap; gap: var(--ruimte-2); }
.knoppen form { margin: 0; }

/* leeg: als er nog niets is */
.leeg {
  padding: var(--ruimte-6) var(--ruimte-4);
  text-align: center;
  color: var(--tekst-gedempt);
  border: 1px dashed var(--lijn-sterk);
  border-radius: var(--hoek-groot);
  margin-bottom: var(--ruimte-5);
}
.leeg__titel { font-family: var(--letter-verhaal); font-size: var(--maat-groot); color: var(--tekst); margin-bottom: var(--ruimte-2); }
.leeg p:last-child { margin: 0 auto; max-width: 28rem; }

/* lijst: menu-achtige regels met pijl */
.lijst { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--lijn); }
.lijst li { border-bottom: 1px solid var(--lijn); }
.lijst form { margin: 0; }
.lijst__regel {
  display: flex;
  align-items: center;
  gap: var(--ruimte-3);
  width: 100%;
  min-height: 56px;
  padding: var(--ruimte-2) 0;
  color: var(--tekst);
  text-decoration: none;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.lijst__regel > span { flex: 1; display: grid; }
.lijst__regel small { color: var(--tekst-zacht); }
.lijst__regel > .icoon:first-child { color: var(--tekst-zacht); }
.lijst__pijl { color: var(--lijn-sterk); }

/* melding: na een actie of bij een fout */
.melding {
  padding: var(--ruimte-3) var(--ruimte-4);
  border-radius: var(--hoek);
  background: var(--succes-vlak);
  color: var(--succes-tekst);
  margin-bottom: var(--ruimte-4);
}
.melding--fout { background: var(--fout-vlak); color: var(--fout-tekst); }

/* paginakop: titel met werkbalk */
.paginakop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--ruimte-3);
  margin-bottom: var(--ruimte-5);
}
.paginakop h1 { margin: 0; }
.paginakop__intro { flex-basis: 100%; margin: 0; color: var(--tekst-zacht); max-width: 40rem; }
.werkbalk { display: flex; flex-wrap: wrap; gap: var(--ruimte-2); align-items: center; }

/* terug-link boven een pagina */
.terug {
  display: inline-flex;
  align-items: center;
  gap: var(--ruimte-1);
  min-height: var(--tikvlak);
  margin: calc(-1 * var(--ruimte-3)) 0 var(--ruimte-2) calc(-1 * var(--ruimte-1));
  color: var(--tekst-gedempt);
  text-decoration: none;
  font-size: var(--maat-klein);
}

/* toegang: inloggen, welkom, foutpagina's */
.toegang { max-width: 26rem; margin: var(--ruimte-6) auto 0; }
.toegang__titel { font-size: var(--maat-titel); margin-bottom: var(--ruimte-1); }
.toegang__onder { font-family: var(--letter-verhaal); font-style: italic; font-size: var(--maat-groot); color: var(--tekst-gedempt); margin-bottom: var(--ruimte-5); }
.toegang .formulier { max-width: none; }
.toegang__noot { margin-top: var(--ruimte-5); font-size: var(--maat-klein); color: var(--tekst-zacht); }

/* uitleg: "Hoe werkt dit?" onderaan elke pagina */
.uitleg {
  margin-top: var(--ruimte-7);
  border-top: 1px solid var(--lijn);
  padding-top: var(--ruimte-3);
  color: var(--tekst-gedempt);
  font-size: 0.9375rem;
}
.uitleg summary {
  display: inline-flex;
  align-items: center;
  gap: var(--ruimte-2);
  min-height: var(--tikvlak);
  cursor: pointer;
  list-style: none;
  font-weight: 500;
}
.uitleg summary::-webkit-details-marker { display: none; }
.uitleg__tekst { max-width: var(--breedte-tekst); padding-top: var(--ruimte-2); }

/* verhaal: lopende tekst in de verhaalletter */
.verhaal { max-width: var(--breedte-tekst); font-family: var(--letter-verhaal); font-size: 1.1875rem; line-height: 1.65; }
.verhaal h1 { font-size: var(--maat-titel); }
.verhaal__inleiding { font-style: italic; color: var(--tekst-gedempt); font-size: var(--maat-groot); }
.verhaal .bovenkop { font-family: var(--letter-bediening); }
.verhaal p { margin-bottom: var(--ruimte-4); }
.verhaal--klein { font-size: var(--maat-basis); margin-bottom: var(--ruimte-5); }


/* beeld: grote afbeelding met onderschrift */
.beeld { margin: 0 0 var(--ruimte-5); }
.beeld img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  height: auto;
  margin: 0 auto;
  border-radius: var(--hoek);
  background: var(--vlak-zacht);
}
.beeld__onder { margin-top: var(--ruimte-2); font-size: var(--maat-klein); color: var(--tekst-zacht); text-align: center; }

/* buren: vorige/volgende gebeurtenis */
.buren {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ruimte-3);
  margin-top: var(--ruimte-6);
  padding-top: var(--ruimte-4);
  border-top: 1px solid var(--lijn);
}
.buren__link {
  display: flex;
  align-items: center;
  gap: var(--ruimte-2);
  min-height: var(--tikvlak);
  color: var(--tekst);
  text-decoration: none;
  font-family: var(--letter-verhaal);
  font-weight: 600;
  line-height: 1.3;
}
.buren__link span { display: grid; }
.buren__link small { font-family: var(--letter-bediening); font-weight: 400; color: var(--tekst-zacht); }
.buren__link .icoon { color: var(--tekst-zacht); }
.buren__link--verder { justify-content: flex-end; text-align: right; grid-column: 2; }

/* duim: kleine afbeelding */
.duim {
  width: 64px;
  height: 64px;
  flex: none;
  object-fit: cover;
  border-radius: var(--hoek);
  background: var(--vlak-zacht);
  border: 1px solid var(--lijn);
}
.duim--leeg { display: inline-flex; align-items: center; justify-content: center; color: var(--tekst-zacht); }
.duim--leeg .icoon { width: 28px; height: 28px; }

/* gebeurtenis: detailpagina */
.gebeurtenis__kop { margin-bottom: var(--ruimte-5); }
.gebeurtenis__kop h1 { font-size: var(--maat-titel); }
.gebeurtenis__kop .werkbalk { margin-top: var(--ruimte-3); }
.gebeurtenis .verhaal { margin-bottom: var(--ruimte-5); }

/* stukken: raster van stukkaarten */
.stukken { display: grid; gap: var(--ruimte-2); }
@media (min-width: 640px) { .stukken { grid-template-columns: 1fr 1fr; } }
.stukkaart {
  display: flex;
  gap: var(--ruimte-3);
  align-items: center;
  padding: var(--ruimte-2);
  background: var(--vlak);
  border: 1px solid var(--lijn);
  border-radius: var(--hoek-groot);
  color: var(--tekst);
  text-decoration: none;
}
.stukkaart:hover { border-color: var(--lijn-sterk); }
.stukkaart__tekst { display: grid; gap: 2px; min-width: 0; }
.stukkaart__titel { font-weight: 500; line-height: 1.3; }
.stukkaart__meta { font-size: var(--maat-klein); color: var(--tekst-zacht); }
.stukkaart__toelichting { font-family: var(--letter-verhaal); font-style: italic; font-size: 0.9375rem; color: var(--tekst-gedempt); }

/* stukkiezer: stukken aanvinken in een formulier */
.stukkiezer { display: grid; gap: var(--ruimte-2); align-items: start; max-height: 32rem; overflow-y: auto; padding: 2px; }
@media (min-width: 640px) { .stukkiezer { grid-template-columns: 1fr 1fr; } }
.stukkeuze {
  display: grid;
  gap: var(--ruimte-2);
  padding: var(--ruimte-2);
  border: 1px solid var(--lijn);
  border-radius: var(--hoek);
  background: var(--vlak);
  cursor: pointer;
}
.stukkeuze__regel { display: flex; align-items: center; gap: var(--ruimte-3); cursor: pointer; }
.stukkeuze__extra { display: none; gap: var(--ruimte-2); }
.stukkeuze__extra .veld__invoer { min-height: 40px; font-size: var(--maat-klein); }
.stukkeuze__fragment { font-family: var(--letter-verhaal); resize: vertical; }
.stukkeuze__pagina { display: flex; align-items: center; gap: var(--ruimte-2); font-size: var(--maat-klein); color: var(--tekst-zacht); }
.stukkeuze__pagina .veld__invoer { width: 5rem; }
.stukkeuze:has(input[type=checkbox]:checked) .stukkeuze__extra { display: grid; }
.stukkeuze:has(input[type=checkbox]:checked) { border-color: var(--accent); background: var(--accent-zacht); }
.stukkeuze input[type=checkbox] { accent-color: var(--accent); width: 1.1rem; height: 1.1rem; flex: none; }
.stukkeuze .duim { width: 48px; height: 48px; }
.stukkeuze__tekst { display: grid; line-height: 1.3; min-width: 0; }
.stukkeuze__tekst small { color: var(--tekst-zacht); }

/* versie: eerdere tekst van een verhaal */
.versie { border-bottom: 1px solid var(--lijn); padding: var(--ruimte-2) 0; }
.versie__kop { display: flex; justify-content: space-between; align-items: center; min-height: var(--tikvlak); cursor: pointer; font-weight: 500; }
.versie .verhaal { margin: var(--ruimte-2) 0 var(--ruimte-3); }

/* voetnoot: kleine regel onderaan een pagina */
.voetnoot { margin-top: var(--ruimte-6); font-size: var(--maat-klein); color: var(--tekst-zacht); }
.voetnoot a { margin-left: var(--ruimte-1); }
.voetnoot__actie { margin: var(--ruimte-3) 0; }
.lijst li.lijst__regel form { margin: 0; }

/* wereldlijst: "Tegelijk in de wereld" */
.wereldlijst { list-style: none; margin: 0; padding: 0; color: var(--wereld); }
.wereldlijst li { padding: var(--ruimte-2) 0; border-bottom: 1px solid var(--lijn); }
.wereldlijst span { display: block; font-size: var(--maat-klein); }

/* kaart-vlak: kaart met plaatsen (Leaflet, zie app.js) */
.kaart-vlak {
  position: relative;
  height: 18rem;
  margin: 0 0 var(--ruimte-3);
  border: 1px solid var(--lijn);
  border-radius: var(--hoek-groot);
  overflow: hidden;
  background: var(--vlak-zacht);
  z-index: 0; /* Leaflet-lagen blijven onder de kop en de onderbalk */
}
.kaart-vlak--groot { height: min(55vh, 34rem); }
.kaart-vlak--kies { height: 20rem; cursor: crosshair; }
.kaart-vlak__laden { padding: var(--ruimte-4); margin: 0; }
.kaart-vlak.leaflet-container { font: 400 var(--maat-klein)/1.4 var(--letter-bediening); background: var(--vlak-zacht); }
.kaart-vlak.leaflet-container .leaflet-popup-content-wrapper, .kaart-vlak.leaflet-container .leaflet-popup-tip { background: var(--vlak); color: var(--tekst); }
.kaart-vlak.leaflet-container .leaflet-popup-content a { font-weight: 600; }
.kaart-vlak .leaflet-popup-content small { color: var(--tekst-zacht); }
.kaart-vlak.leaflet-container .leaflet-control-attribution { background: color-mix(in srgb, var(--vlak) 85%, transparent); color: var(--tekst-zacht); }
.kaart-vlak.leaflet-container .leaflet-bar a { background: var(--vlak); color: var(--tekst); border-color: var(--lijn); }
.kaart-tegels--donker { filter: invert(1) hue-rotate(180deg) brightness(0.85) contrast(0.9); }
.kaart-noot { margin-top: calc(-1 * var(--ruimte-1)); font-size: var(--maat-klein); color: var(--tekst-zacht); }

/* lijst__onder: plaatsen die in een andere plaats liggen, ingesprongen */
.lijst__onder { padding-left: var(--ruimte-6); }
.lijst__onder .lijst { border-top: 1px solid var(--lijn); }
.lijst__onder .lijst li:last-child { border-bottom: 0; }

/* toennu: foto's van een plaats op volgorde van tijd */
.toennu { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: var(--ruimte-3); }
.toennu__foto { display: grid; gap: var(--ruimte-2); color: var(--tekst); text-decoration: none; }
.toennu__foto .duim { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.toennu__onder { font-size: var(--maat-klein); color: var(--tekst-gedempt); line-height: 1.4; }
.toennu__onder strong { display: block; color: var(--tekst); }

/* veldpaar: twee korte velden naast elkaar */
.veldpaar { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ruimte-3); }

/* persoonkop: portret naast naam en gegevens */
.persoonkop { display: flex; gap: var(--ruimte-4); align-items: flex-start; }
.persoonkop__portret img { display: block; width: 6.5rem; height: 8rem; object-fit: cover; border-radius: var(--hoek-groot); border: 1px solid var(--lijn); background: var(--vlak-zacht); }
.persoonkop__tekst { min-width: 0; flex: 1; }
@media (max-width: 30rem) { .persoonkop__portret img { width: 4.5rem; height: 5.5rem; } }
.portretje { width: 32px; height: 32px; flex: none; object-fit: cover; border-radius: 50%; border: 1px solid var(--lijn); }

/* lijst__met-actie: een regel met een knop ernaast (relatie weghalen) */
.lijst__met-actie { display: flex; align-items: center; gap: var(--ruimte-2); }
.lijst__met-actie .lijst__regel { flex: 1; min-width: 0; }
.lijst__met-actie form { flex: none; }
.blok--klein { margin-top: var(--ruimte-3); }

/* stam: de stamboom als ingesprongen lijst met lijnen */
.stam { list-style: none; margin: 0; padding: 0 0 0 var(--ruimte-5); }
.stam--wortel { padding-left: 0; }
.stam__tak { position: relative; padding-top: var(--ruimte-2); }
.stam .stam .stam__tak::before { content: ""; position: absolute; left: calc(-1 * var(--ruimte-4)); top: 0; bottom: 0; border-left: 1px solid var(--lijn-sterk); }
.stam .stam .stam__tak:last-child::before { bottom: auto; height: 1.6rem; }
.stam .stam .stam__tak::after { content: ""; position: absolute; left: calc(-1 * var(--ruimte-4)); top: 1.6rem; width: var(--ruimte-3); border-top: 1px solid var(--lijn-sterk); }
.stam__gezin { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ruimte-1) var(--ruimte-2); padding: var(--ruimte-1) var(--ruimte-3); background: var(--vlak); border: 1px solid var(--lijn); border-radius: var(--hoek-groot); width: fit-content; max-width: 100%; }
.stam__persoon { display: inline-flex; align-items: center; gap: var(--ruimte-2); min-height: var(--tikvlak); color: var(--tekst); text-decoration: none; font-weight: 500; line-height: 1.25; }
.stam__persoon > span { display: grid; }
.stam__persoon small { font-weight: 400; color: var(--tekst-zacht); }
.stam__persoon:target { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--hoek); }
.stam__persoon--verwijzing { font-style: italic; color: var(--tekst-gedempt); }
.stam__en { color: var(--tekst-zacht); font-family: var(--letter-verhaal); }

/* fotostrook: rij kleine foto's */
.fotostrook { list-style: none; margin: var(--ruimte-2) 0 0; padding: 0 0 var(--ruimte-1); display: flex; gap: var(--ruimte-2); overflow-x: auto; scroll-snap-type: x proximity; }
.fotostrook li { flex: none; scroll-snap-align: start; }
.fotostrook img { display: block; height: 5.5rem; width: auto; max-width: 9rem; object-fit: cover; border-radius: var(--hoek); border: 1px solid var(--lijn); background: var(--vlak-zacht); }

/* 6. Hulpklassen ------------------------------------------------------- */
.gedempt { color: var(--tekst-zacht); }
.verborgen {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
[hidden] { display: none !important; }

/* gesprek: reacties, herinneringen en oproepen onder een pagina */
.gesprek h2 .gedempt { font-weight: 400; }
.berichten { list-style: none; margin: 0 0 var(--ruimte-4); padding: 0; display: grid; gap: var(--ruimte-3); }
.bericht {
  padding: var(--ruimte-3) var(--ruimte-4);
  background: var(--vlak);
  border: 1px solid var(--lijn);
  border-radius: var(--hoek-groot);
  scroll-margin-top: var(--ruimte-7);
}
.bericht:target { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-zacht); }
.bericht--oproep { border-left: 4px solid var(--accent); }
.bericht--opgelost { border-left-color: var(--succes-tekst); }
.bericht--herinnering .bericht__tekst { font-family: var(--letter-verhaal); font-size: var(--maat-basis); }
.bericht__kop { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ruimte-1) var(--ruimte-2);
  margin: 0 0 var(--ruimte-2); font-size: var(--maat-klein); }
.bericht__tekst { overflow-wrap: anywhere; }
.bericht__tekst p { margin: 0 0 var(--ruimte-2); }
.bericht__tekst p:last-child { margin-bottom: 0; }
.bericht__antwoord { margin: var(--ruimte-2) 0 0; padding: var(--ruimte-2) var(--ruimte-3); border-radius: var(--hoek);
  background: var(--succes-vlak); color: var(--succes-tekst); font-size: var(--maat-klein); }
.bericht__acties { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--ruimte-2); margin-top: var(--ruimte-3); }
.bericht__acties form { margin: 0; }
.bericht__uitklap { flex-basis: auto; }
.bericht__uitklap[open] { flex-basis: 100%; }
.bericht__uitklap > summary { list-style: none; cursor: pointer; }
.bericht__uitklap > summary::-webkit-details-marker { display: none; }
.bericht__form { display: grid; gap: var(--ruimte-2); margin-top: var(--ruimte-2); max-width: 30rem; }
.bericht__form .knop { justify-self: start; }
.berichten--antwoorden { margin: var(--ruimte-3) 0 0; padding-left: var(--ruimte-3); border-left: 2px solid var(--lijn); }
.berichten--antwoorden .bericht { padding: var(--ruimte-2) var(--ruimte-3); background: var(--vlak-zacht); border: 0; }
.berichten--antwoorden .bericht__acties { margin-top: var(--ruimte-2); }
.gesprek__nieuw > summary { list-style: none; cursor: pointer; }
.gesprek__nieuw > summary::-webkit-details-marker { display: none; }
.gesprek__nieuw[open] > summary { display: none; }
.gesprek__nieuw .formulier { max-width: var(--breedte-tekst); }
.keuzes--rij { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }

/* teller: aantal open vragen in het menu */
.teller { display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem; padding: 0 5px;
  border-radius: 999px; background: var(--accent); color: var(--accent-tekst); font-size: 0.7rem; font-weight: 600; line-height: 1; }
.onderbalk__icoon { position: relative; display: inline-flex; }
.teller--op { position: absolute; top: -5px; right: -12px; }

/* vragenlijst en tijdlijnteller */
.vraagregel { align-items: flex-start; }
.vraagregel__tekst { color: var(--tekst); }
.lijst__regel small.vraagregel__antwoord { color: var(--succes-tekst); }
.bericht__beheer { margin-left: auto; display: inline-flex; gap: var(--ruimte-3); }
.bericht__beheer form { margin: 0; display: inline; }
.bericht__beheer a, .bericht .bericht__beheer button {
  appearance: none; box-shadow: none; border-radius: 0;
  font: inherit; font-size: var(--maat-klein); color: var(--tekst-zacht); background: none; border: 0; padding: var(--ruimte-1) 0;
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer; min-height: 32px;
}
.bericht__beheer a:hover, .bericht .bericht__beheer button:hover { color: var(--tekst); }

/* fotopunten: wie staat er op de foto */
.fotopunten__vlak { position: relative; width: fit-content; max-width: 100%; margin: 0 auto; line-height: 0; }
.fotopunten__link { display: block; }
.fotopunten__vlak img { margin: 0; }
.fotopunten--aanwijzen .fotopunten__vlak { cursor: crosshair; }
.fotopunten--aanwijzen .fotopunten__vlak img { outline: 3px solid var(--accent); outline-offset: -3px; }
.fotopunt {
  position: absolute; transform: translate(-50%, -50%);
  min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px;
  border: 2px solid #fff; background: var(--accent); color: #fff;
  font: 600 0.72rem/1 var(--letter-bediening); cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .45);
  display: inline-flex; align-items: center; justify-content: center;
}
.fotopunt::before { content: ""; position: absolute; inset: -10px; }  /* groter tikvlak */
.fotopunt--vraag { background: #fff; color: var(--accent); border-color: var(--accent); }
.fotopunt--vermoedelijk { border-style: dashed; }
.fotopunt--nieuw { background: #fff; color: var(--tekst); border-color: var(--tekst); }
.fotopunt--actief, .fotopunt:focus-visible { outline: 3px solid #fff; box-shadow: 0 0 0 5px var(--accent); z-index: 2; }
.fotopunt__naam {
  position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%);
  padding: 3px 6px; border-radius: 4px; background: rgba(20, 19, 17, .82); color: #fff;
  font-size: 0.72rem; font-weight: 500; white-space: nowrap; line-height: 1.2; pointer-events: none; display: none;
}
.fotopunt:hover .fotopunt__naam, .fotopunt--actief .fotopunt__naam, .fotopunt:focus-visible .fotopunt__naam { display: block; }
.fotopunten--zonder-namen .fotopunt { display: none; }
.fotopunten__balk { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ruimte-2); }
.fotopunten__knoppen { display: inline-flex; flex-wrap: wrap; gap: var(--ruimte-2); }
.fotopunten__knoppen[hidden] { display: none; }
.puntpaneel {
  display: grid; gap: var(--ruimte-3); margin-top: var(--ruimte-3); padding: var(--ruimte-4);
  border: 1px solid var(--lijn-sterk); border-radius: var(--hoek-groot); background: var(--vlak); max-width: 30rem;
}
.puntpaneel[hidden] { display: none; }
.puntpaneel__titel { margin: 0; font-weight: 600; }
.vinkje { display: flex; align-items: center; gap: var(--ruimte-2); min-height: var(--tikvlak); font-size: var(--maat-klein); }
.vinkje input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
.puntenlijst { list-style: none; margin: var(--ruimte-3) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--ruimte-2) var(--ruimte-4);
  font-size: var(--maat-klein); line-height: 1.4; }
.puntenlijst li { display: inline-flex; align-items: center; gap: var(--ruimte-2); }
.puntenlijst__nr { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: var(--accent-tekst); font-size: 0.72rem; font-weight: 600; }
.puntenlijst__nr--vraag { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.puntenlijst li.puntenlijst--licht { background: var(--accent-zacht); border-radius: var(--hoek); }

/* uitsnede: een gezicht uit een foto, bij een vraag */
.uitsnede { display: inline-block; flex: none; width: 56px; height: 56px; border-radius: var(--hoek);
  background: var(--vlak-zacht) no-repeat; border: 1px solid var(--lijn); }
.uitsnede--lijst { width: 48px; height: 48px; }
.bericht__punt { display: inline-flex; align-items: center; gap: var(--ruimte-2); margin-bottom: var(--ruimte-2);
  font-size: var(--maat-klein); color: var(--tekst-gedempt); }
.fotopunten--aanwijzen .fotopunt { min-width: 18px; height: 18px; padding: 0 4px; font-size: 0.66rem; border-width: 1.5px; }
.fotopunten--aanwijzen .fotopunt::before { inset: -2px; }
.lijst__regel > .uitsnede { flex: none; }

/* leestekst: overgetypte tekst van een krantenstuk, brief of document */
.leestekst__tekst { max-width: var(--breedte-tekst); font-family: var(--letter-verhaal); font-size: 1.125rem; line-height: 1.65; }
.leestekst__tekst p { margin: 0 0 var(--ruimte-4); }
.leestekst__tekst h3 { font-family: var(--letter-verhaal); font-size: var(--maat-groot); margin: var(--ruimte-5) 0 var(--ruimte-2); }
.bronlink { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ruimte-2); margin: var(--ruimte-3) 0; font-size: var(--maat-klein); }
.beeld--speler video { display: block; width: 100%; max-height: 80vh; border-radius: var(--hoek); background: #000; }
.beeld--speler audio { width: 100%; }
.veld__invoer--lang { min-height: 12rem; font-family: var(--letter-verhaal); }

/* =====================================================================
   Vormgeving oktober 2026: menu, start, instellingen en de nieuwe tijdlijn
   ===================================================================== */

/* ikknop: je naam rechtsboven, ingang naar Instellingen */
.ikknop {
  display: inline-flex;
  align-items: center;
  gap: var(--ruimte-2);
  min-height: var(--tikvlak);
  padding: 0 var(--ruimte-1);
  color: var(--tekst-gedempt);
  text-decoration: none;
  border-radius: 999px;
  flex: none;
}
.ikknop:hover .ikknop__rondje, .ikknop[aria-current="page"] .ikknop__rondje { box-shadow: 0 0 0 2px var(--accent); }
.ikknop__rondje, .ikkop__rondje {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tag-vlak);
  color: var(--tag-tekst);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.ikknop__naam { display: none; font-weight: 500; }
@media (min-width: 760px) {
  .kop__nav { margin-left: auto; }
  .ikknop__naam { display: inline; }
}
.ikkop { display: flex; align-items: center; gap: var(--ruimte-4); margin-bottom: var(--ruimte-5); }
.ikkop h1 { margin: 0; }
.ikkop p { margin: var(--ruimte-1) 0 0; }
.ikkop__rondje { width: 64px; height: 64px; font-size: 1.375rem; flex: none; }

/* tekstproef: de keuze voor tekstgrootte laat zien hoe groot */
.tekstproef .keuze__tekst span { font-family: var(--letter-verhaal); color: var(--tekst); }
.tekstproef--normaal .keuze__tekst span { font-size: 1rem; }
.tekstproef--groot .keuze__tekst span { font-size: 1.15rem; }
.tekstproef--extra .keuze__tekst span { font-size: 1.3rem; }

/* blokkop: kop met een link rechts */
.blokkop { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--ruimte-2); margin-bottom: var(--ruimte-3); }
.blokkop h2 { margin: 0; }
.blokkop a { font-size: var(--maat-klein); }

/* startkop */
.startkop { margin-bottom: var(--ruimte-5); }
.startkop h1 { font-size: var(--maat-titel); margin-bottom: var(--ruimte-2); }
.startkop__intro { font-family: var(--letter-verhaal); font-size: var(--maat-groot); line-height: 1.5; color: var(--tekst-gedempt); max-width: var(--breedte-tekst); }
.blok h2 .gedempt { font-family: var(--letter-bediening); font-size: var(--maat-klein); font-weight: 400; }

/* nieuws: "Nieuw sinds je laatste bezoek" */
.nieuws { list-style: none; margin: 0 0 var(--ruimte-3); padding: 0; display: grid; gap: var(--ruimte-2); max-width: var(--breedte-tekst); }
.nieuws li { display: flex; gap: var(--ruimte-3); align-items: flex-start; line-height: 1.45; }
.nieuws li > .icoon { color: var(--tekst-zacht); margin-top: 2px; }

/* ingangen: waar begin je (eerste bezoek) */
.ingangen { display: grid; gap: var(--ruimte-3); }
@media (min-width: 760px) { .ingangen { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ingang {
  display: flex;
  flex-direction: column;
  background: var(--vlak);
  border: 1px solid var(--lijn);
  border-radius: var(--hoek-groot);
  overflow: hidden;
  color: var(--tekst);
  text-decoration: none;
}
.ingang:hover { border-color: var(--lijn-sterk); }
.ingang__beeld { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--vlak-zacht); }
.ingang__beeld--leeg { display: grid; place-items: center; color: var(--tekst-zacht); }
.ingang__beeld--leeg .icoon { width: 32px; height: 32px; }
.ingang__tekst { display: grid; gap: var(--ruimte-1); padding: var(--ruimte-3) var(--ruimte-4) var(--ruimte-4); }
.ingang__datum { font-size: var(--maat-klein); font-weight: 600; color: var(--accent); }
.ingang__titel { font-family: var(--letter-verhaal); font-size: var(--maat-groot); font-weight: 600; line-height: 1.25; }
.ingang__samenvatting { font-size: var(--maat-klein); color: var(--tekst-gedempt); }

/* oproepen: open vragen op Start, met beeld */
.oproepen { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--ruimte-2); }
@media (min-width: 760px) { .oproepen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.oproep {
  display: flex;
  gap: var(--ruimte-3);
  align-items: center;
  height: 100%;
  padding: var(--ruimte-3);
  background: var(--vlak);
  border: 1px solid var(--lijn);
  border-left: 4px solid var(--accent);
  border-radius: var(--hoek-groot);
  color: var(--tekst);
  text-decoration: none;
}
.oproep:hover { border-color: var(--lijn-sterk); border-left-color: var(--accent); }
.oproep__beeld { flex: none; width: 64px; height: 64px; border-radius: var(--hoek); object-fit: cover; background: var(--vlak-zacht); border: 1px solid var(--lijn); }
.oproep__beeld--leeg { display: grid; place-items: center; color: var(--accent); }
.oproep__beeld--leeg .icoon { width: 28px; height: 28px; }
.oproep__tekst { display: grid; gap: var(--ruimte-1); min-width: 0; }
.oproep__vraag { font-family: var(--letter-verhaal); font-size: 1.0625rem; line-height: 1.35; }
.oproep small { color: var(--tekst-zacht); }

/* bijdrage: "Ik heb iets voor het archief" */
.bijdrage {
  display: flex;
  gap: var(--ruimte-4);
  align-items: center;
  padding: var(--ruimte-4);
  border: 1px dashed var(--lijn-sterk);
  border-radius: var(--hoek-groot);
  color: var(--tekst);
  text-decoration: none;
  max-width: var(--breedte-tekst);
}
.bijdrage:hover { background: var(--vlak-zacht); }
.bijdrage > span:last-child { display: grid; gap: var(--ruimte-1); }
.bijdrage small { color: var(--tekst-gedempt); }
.bijdrage__icoon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--accent-tekst); }
.bijdrage__icoon .icoon { width: 24px; height: 24px; }

/* hoofdstuklijst: de vier hoofdstukken op Start */
.hoofdstuklijst { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--ruimte-2); }
@media (min-width: 640px) { .hoofdstuklijst { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .hoofdstuklijst { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hoofdstuklijst a {
  display: grid;
  gap: 2px;
  min-height: var(--tikvlak);
  padding: var(--ruimte-3) var(--ruimte-4);
  border: 1px solid var(--lijn);
  border-radius: var(--hoek-groot);
  background: var(--vlak);
  color: var(--tekst);
  text-decoration: none;
}
.hoofdstuklijst a:hover { border-color: var(--lijn-sterk); }
.hoofdstuklijst__titel { font-family: var(--letter-verhaal); font-weight: 600; font-size: 1.125rem; }
.hoofdstuklijst__meta { font-size: var(--maat-klein); color: var(--tekst-zacht); }

/* logboek: activiteitenlog voor beheerders */
.logboek { list-style: none; margin: 0; padding: 0; }
.logboek__dag { font-family: var(--letter-verhaal); font-weight: 600; font-size: 1.125rem; padding: var(--ruimte-4) 0 var(--ruimte-1); border-bottom: 1px solid var(--lijn); }
.logboek__regel { display: flex; gap: var(--ruimte-3); padding: var(--ruimte-2) 0; border-bottom: 1px solid var(--lijn); font-size: 0.9375rem; line-height: 1.4; }
.logboek__tijd { flex: none; width: 3rem; color: var(--tekst-zacht); font-variant-numeric: tabular-nums; }

/* tlbalk: volg en toon boven de tijdlijn */
.tlbalk { display: grid; gap: var(--ruimte-2); margin-bottom: var(--ruimte-4); }
.tlbalk__groep { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ruimte-2); }
.kop__nav .teller { margin-left: 4px; }
.tlbalk__label { width: 3rem; font-size: var(--maat-klein); font-weight: 600; color: var(--tekst-gedempt); }
.filter--zacht { border-style: dashed; }
.filter--laag[aria-pressed="true"] { background: var(--tag-vlak); border-color: transparent; color: var(--tag-tekst); font-weight: 500; }
.filter--laag[aria-pressed="false"] { border-style: dashed; color: var(--tekst-zacht); }

/* sprongbalk: naar een hoofdstuk springen; blijft bovenaan staan */
.sprongbalk {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  overflow-x: auto;
  margin: 0 calc(-1 * var(--ruimte-4)) var(--ruimte-5);
  padding: 0 var(--ruimte-4);
  background: var(--achtergrond);
  border-top: 1px solid var(--lijn);
  border-bottom: 1px solid var(--lijn);
  scrollbar-width: none;
}
.sprongbalk::-webkit-scrollbar { display: none; }
.sprongbalk__link {
  flex: 1 0 auto;
  display: grid;
  align-content: center;
  min-height: 52px;
  padding: var(--ruimte-1) var(--ruimte-3);
  color: var(--tekst);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--maat-klein);
  white-space: nowrap;
}
.sprongbalk__link small { font-weight: 400; color: var(--tekst-zacht); font-size: 0.75rem; }
.sprongbalk__link + .sprongbalk__link { border-left: 1px solid var(--lijn); }
.sprongbalk__link:hover { background: var(--tag-vlak); }

/* hoofdstuk */
.hoofdstuk { scroll-margin-top: 64px; margin-bottom: var(--ruimte-7); }
.hoofdstuk__kop { max-width: var(--breedte-tekst); margin-bottom: var(--ruimte-5); }
.hoofdstuk__kop h2 { font-size: var(--maat-titel); margin-bottom: var(--ruimte-2); }
.hoofdstuk__kop .bovenkop { color: var(--accent); margin-bottom: var(--ruimte-1); }
.hoofdstuk__intro { font-family: var(--letter-verhaal); font-size: 1.125rem; line-height: 1.55; color: var(--tekst-gedempt); margin: 0; }

/* tl: de lijn met regels. Telefoon: alles rechts van één lijn. */
.tl { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: var(--ruimte-3); }
.hoofdstuk--oorlog .tl { gap: var(--ruimte-5); }
.tl::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--lijn); }
.tl__kolomkoppen { display: none; }
.tl__regel { position: relative; padding-left: var(--ruimte-6); min-width: 0; }
.tl__regel::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--achtergrond);
}
.tl__regel--klein::before { left: 3px; width: 10px; height: 10px; top: 0.4rem; }
.tl__regel--leven::before, .tl__regel--gebeurtenis.tl__regel--links::before { background: var(--tekst-gedempt); }
.tl__regel--wereld::before { background: var(--achtergrond); border: 2px solid var(--wereld); border-radius: 2px; transform: rotate(45deg); }
.tl__regel--fotos::before { background: var(--vlak); border: 2px solid var(--accent); }
.tl__regel--vaag:not(.tl__regel--wereld)::before { background: var(--achtergrond); border: 2px solid var(--accent); }
.tl__regel--vaag.tl__regel--leven::before, .tl__regel--vaag.tl__regel--links::before { border-color: var(--tekst-gedempt); }
.tl__regel--kern::before { width: 16px; height: 16px; left: 0; top: 0.25rem; }
.tl__datum { display: block; font-size: var(--maat-klein); font-weight: 600; color: var(--accent); line-height: 1.4; }
.tl__regel--links .tl__datum, .tl__regel--wereld .tl__datum { color: var(--tekst-zacht); font-weight: 500; }
.tl__regel--kern .tl__datum { display: none; }  /* de datum staat in de kaart */
.tl__titel { margin: 0; display: block; color: var(--tekst); text-decoration: none; line-height: 1.35; }
a.tl__titel:hover { text-decoration: underline; text-decoration-color: var(--lijn-sterk); }
.tl__regel--klein.tl__regel--rechts .tl__titel { font-family: var(--letter-verhaal); font-size: 1.0625rem; }
.tl__regel--wereld .tl__titel { color: var(--wereld); font-style: italic; }
.tl__regel--wereld .tl__titel a { color: inherit; }
.tl__klein { margin: 0; font-size: var(--maat-klein); color: var(--tekst-zacht); }
.tl__gesprek { display: inline-flex; align-items: center; gap: var(--ruimte-1); margin-top: var(--ruimte-1);
  font-size: var(--maat-klein); color: var(--tekst-zacht); text-decoration: none; }
.tl__gesprek strong { color: var(--accent); font-weight: 600; }
.tl .fotostrook { margin-top: var(--ruimte-1); }

/* tlkaart: een gewone gebeurtenis */
.tlkaart {
  display: flex;
  gap: var(--ruimte-3);
  align-items: flex-start;
  margin-top: var(--ruimte-1);
  padding: var(--ruimte-3);
  background: var(--vlak);
  border: 1px solid var(--lijn);
  border-radius: var(--hoek-groot);
  color: var(--tekst);
  text-decoration: none;
}
.tlkaart:hover { border-color: var(--lijn-sterk); }
.tlkaart__beeld { flex: none; width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: var(--hoek); background: var(--vlak-zacht); }
.tlkaart__tekst { display: grid; gap: 2px; min-width: 0; }
.tlkaart__titel { font-family: var(--letter-verhaal); font-size: 1.1875rem; font-weight: 600; line-height: 1.25; }
.tlkaart__samenvatting { font-size: 0.9375rem; color: var(--tekst-gedempt); line-height: 1.45; }
.tlkaart__meta { font-size: 0.8125rem; color: var(--tekst-zacht); }

/* kernkaart: een kernmoment, groot met foto */
.kernkaart {
  display: grid;
  background: var(--vlak);
  border: 1px solid var(--lijn-sterk);
  border-radius: var(--hoek-groot);
  overflow: hidden;
  color: var(--tekst);
  text-decoration: none;
}
.kernkaart:hover { border-color: var(--accent); }
.kernkaart__beeldvak { display: block; position: relative; aspect-ratio: 3 / 2; max-height: 22rem; background: var(--vlak-zacht); overflow: hidden; }
.kernkaart__beeld { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kernkaart__tekst { display: grid; gap: var(--ruimte-2); padding: var(--ruimte-4); }
.kernkaart__datum { font-size: var(--maat-klein); font-weight: 600; color: var(--accent); }
.kernkaart__titel { font-family: var(--letter-verhaal); font-size: 1.625rem; font-weight: 600; line-height: 1.2; }
.kernkaart__samenvatting { font-family: var(--letter-verhaal); font-style: italic; font-size: 1.125rem; line-height: 1.5; color: var(--tekst-gedempt); }
.kernkaart__verder { display: inline-flex; align-items: center; gap: var(--ruimte-1); font-size: var(--maat-klein); font-weight: 600; color: var(--accent); }

/* Computer: jaartal op de lijn, levensloop en wereld links, verhalen rechts, kernmomenten breed. */
@media (min-width: 900px) {
  .pagina--breed { max-width: 72rem; }
  .sprongbalk { margin-left: 0; margin-right: 0; padding: 0; border: 1px solid var(--lijn); border-radius: var(--hoek-groot); overflow: hidden; }
  .tl__kolomkoppen {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 9.5rem minmax(0, 1fr);
    margin-bottom: var(--ruimte-3);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tekst-zacht);
  }
  .tl__kolomkoppen span:first-child { text-align: right; }
  .tl::before { left: 50%; margin-left: -1px; }
  .tl__regel { display: grid; grid-template-columns: minmax(0, 1fr) 9.5rem minmax(0, 1fr); align-items: center; padding-left: 0; }
  .tl__regel::before { display: none; }
  .tl__datum {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    position: relative;
    z-index: 1;
    padding: 3px 10px;
    border: 1px solid var(--lijn-sterk);
    border-radius: 999px;
    background: var(--achtergrond);
    font-size: 0.75rem;
    line-height: 1.3;
    text-align: center;
    max-width: 9rem;
  }
  .tl__regel--vaag .tl__datum { border-style: dashed; }
  .tl__regel--links .tl__inhoud { grid-column: 1; grid-row: 1; text-align: right; padding-right: var(--ruimte-1); }
  .tl__regel--rechts .tl__inhoud { padding-left: var(--ruimte-1); }
  .tl__regel--links .tl__gesprek { justify-content: flex-end; }
  .tl__regel--rechts .tl__inhoud { grid-column: 3; grid-row: 1; }
  .tl__regel--kern { display: block; }
  .tl__regel--kern .tl__inhoud { position: relative; z-index: 1; margin: var(--ruimte-3) 0; }
  .kernkaart { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kernkaart__beeldvak { aspect-ratio: auto; min-height: 18rem; max-height: none; }
  .kernkaart__tekst { padding: var(--ruimte-6); align-content: center; }
  .kernkaart__titel { font-size: 2rem; }
  .kernkaart:not(:has(.kernkaart__beeldvak)) { grid-template-columns: 1fr; }
  .tl__regel--fotos .tl__inhoud { min-width: 0; }
}

/* uitklap: een in- en uitklapbaar deel van een formulier of pagina */
.uitklap { border: 1px solid var(--lijn); border-radius: var(--hoek-groot); background: var(--vlak); }
.uitklap > summary {
  display: flex;
  align-items: center;
  gap: var(--ruimte-2);
  min-height: var(--tikvlak);
  padding: 0 var(--ruimte-4);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.uitklap > summary::-webkit-details-marker { display: none; }
.uitklap > summary::before { content: "›"; display: inline-block; transition: transform .15s; color: var(--tekst-zacht); font-size: 1.25rem; line-height: 1; }
.uitklap[open] > summary::before { transform: rotate(90deg); }
.uitklap__binnen { display: grid; gap: var(--ruimte-3); padding: 0 var(--ruimte-4) var(--ruimte-4); }
.uitklap--blok { background: transparent; }
.uitklap--blok > summary { font-family: var(--letter-verhaal); font-size: var(--maat-groot); padding: 0 var(--ruimte-3); }
.veld--partner { display: none; }
.formulier:has(input[name=soort][value=partner]:checked) .veld--partner { display: grid; }
.tl__regel--links .tl__titel { font-size: 0.9375rem; color: var(--tekst-gedempt); }

/* weergave: tekstgrootte (aAA) en licht/donker in de menubalk */
.weergave { display: flex; align-items: center; gap: 2px; margin: 0 0 0 auto; flex: none; }
.weergave__groottes { display: inline-flex; align-items: baseline; border-right: 1px solid var(--lijn); padding-right: 4px; margin-right: 2px; }
.weergave__knop {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 40px;
  padding: 0 4px;
  border: 0;
  border-radius: var(--hoek);
  background: none;
  color: var(--tekst-zacht);
  cursor: pointer;
  font-family: var(--letter-verhaal);
  font-weight: 600;
  line-height: 1;
}
.weergave__knop:hover { background: var(--vlak-zacht); color: var(--tekst); }
.weergave__knop[aria-pressed="true"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
/* vaste maat in px: de knoppen zelf groeien niet mee met de gekozen tekstgrootte */
.weergave__a--normaal { font-size: 13px; }
.weergave__a--groot { font-size: 16px; }
.weergave__a--extra { font-size: 20px; }
.weergave__thema .icoon { width: 22px; height: 22px; }
.weergave__thema[data-thema="donker"] { color: var(--accent); }
.weergave__thema[data-thema="licht"] { color: var(--tekst); }
.weergave__thema[data-thema="donker"] .icoon { transform: rotate(180deg); }
@media (min-width: 760px) {
  .kop__nav { margin-left: auto; }
  .weergave { margin-left: var(--ruimte-3); }
}

/* detail: vaste opbouw van alle detailpagina's (zie templates/_detail.html)
   telefoon: kop, beeld, tekst, koppelingen, zijkolom, gesprek
   computer: zijkolom rechts naast beeld, tekst en koppelingen */
.detail__kop { margin-bottom: var(--ruimte-5); max-width: var(--breedte-tekst); }
.detail__kop h1 { font-size: var(--maat-titel); margin-bottom: var(--ruimte-2); }
.detail__kop .bovenkop { color: var(--accent); }
.detail__extra { font-family: var(--letter-bediening); font-weight: 400; font-size: 1.125rem; color: var(--tekst-zacht); }
.detail__ondertitel { font-family: var(--letter-verhaal); font-style: italic; font-size: var(--maat-groot); line-height: 1.45; color: var(--tekst-gedempt); margin: 0 0 var(--ruimte-3); }
.detail__kop .werkbalk { margin-top: var(--ruimte-3); }
.detail__lijf { display: grid; gap: var(--ruimte-6); }
.detail__hoofd { min-width: 0; }
.detail__hoofd > .blok:first-child, .detail__hoofd > .beeld:first-child { margin-top: 0; }
.detail__zij { display: grid; gap: var(--ruimte-4); align-content: start; }
.detail__onder { margin-top: var(--ruimte-6); }
.detail .verhaal { margin-bottom: var(--ruimte-5); }
.detail .kaart-vlak { margin-bottom: var(--ruimte-3); }
.detail .beeld img { max-height: 34rem; }
.beeld--portret img { max-height: 28rem; width: auto; margin: 0; }
.beeld--portret .beeld__onder { text-align: left; }

/* zijblok: een blokje in de zijkolom (Wie, Waar, Over deze ...) */
.zijblok { padding: var(--ruimte-4); background: var(--vlak); border: 1px solid var(--lijn); border-radius: var(--hoek-groot); }
.zijblok__titel { font-family: var(--letter-bediening); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tekst-zacht); margin: 0 0 var(--ruimte-3); }
.zijblok .chips { margin: 0; }
.zijblok .wereldlijst li:last-child { border-bottom: 0; padding-bottom: 0; }
.zijblok--beheer { background: transparent; border: 0; padding: 0; }

/* feiten: de gegevens in de zijkolom */
.feiten { margin: 0; display: grid; gap: var(--ruimte-3); font-size: 0.9375rem; line-height: 1.4; }
.feiten > div { display: grid; gap: 2px; }
.feiten dt { font-size: var(--maat-klein); color: var(--tekst-zacht); }
.feiten dd { margin: 0; overflow-wrap: anywhere; }
.feiten .gedempt { font-size: var(--maat-klein); }

@media (min-width: 900px) {
  .detail__lijf { grid-template-columns: minmax(0, 1fr) 19rem; gap: var(--ruimte-7); }
  .detail__onder { max-width: calc(100% - 19rem - var(--ruimte-7)); }
  .detail .stukken { grid-template-columns: 1fr 1fr; }
}

/* Help mee: alles wat nog openstaat */
.helpinhoud { display: flex; flex-wrap: wrap; gap: var(--ruimte-2); margin-bottom: var(--ruimte-5); }
.helpinhoud a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border: 1px solid var(--lijn); border-radius: 999px;
  background: var(--vlak); color: var(--tekst); font-size: var(--maat-klein); text-decoration: none;
}
.helpinhoud a:hover { border-color: var(--lijn-sterk); }
.helpblok { scroll-margin-top: 5rem; }
.helpblok h2 .gedempt { font-weight: 400; }
.meerlijst { margin-top: var(--ruimte-2); }
.meerlijst > summary { cursor: pointer; padding: var(--ruimte-2) 0; color: var(--accent); font-size: var(--maat-klein); font-weight: 600; }
.meerlijst[open] > summary { margin-bottom: var(--ruimte-2); }
.helpblok__uitleg { color: var(--tekst-zacht); max-width: 40rem; margin-top: 0; }
.gezichten { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--ruimte-3);
  grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); }
.gezicht { display: grid; gap: var(--ruimte-1); color: var(--tekst); text-decoration: none; font-size: var(--maat-klein); }
.gezicht__beeld { width: 100%; height: auto; aspect-ratio: 1; }
.gezicht:hover .gezicht__beeld { outline: 2px solid var(--accent); outline-offset: 1px; }
.gezicht__titel { color: var(--tekst-zacht); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* hulpregel: op Start, onder de vragen */
.hulpregel {
  display: flex; gap: var(--ruimte-2); align-items: center; margin-top: var(--ruimte-3);
  padding: var(--ruimte-3); border: 1px dashed var(--lijn-sterk); border-radius: var(--hoek-groot);
  color: var(--tekst); text-decoration: none; font-size: var(--maat-klein);
}
.hulpregel:hover { border-color: var(--accent); }
.hulpregel > .icoon { flex: none; color: var(--accent); }
.hulpregel span { flex: 1; }
.hulpregel__pijl { flex: none; color: var(--tekst-zacht); }

/* bronfragment: het stuk uit een bron dat over de gebeurtenis gaat */
.bronfragment { margin: 0 0 var(--ruimte-4); padding: var(--ruimte-4); background: var(--vlak); border: 1px solid var(--lijn); border-radius: var(--hoek-groot); max-width: var(--breedte-tekst); }
.bronfragment__tekst { margin: 0; padding-left: var(--ruimte-4); border-left: 3px solid var(--accent); font-family: var(--letter-verhaal); font-size: 1.0625rem; line-height: 1.6; }
.bronfragment__tekst p { margin: 0 0 var(--ruimte-3); }
.bronfragment__tekst p:last-child { margin-bottom: 0; }
.bronfragment__pagina { display: block; margin-top: var(--ruimte-3); }
.bronfragment__scan { margin-top: var(--ruimte-3); font-size: var(--maat-klein); }
.bronfragment__scan > summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.bronfragment__pagina img { display: block; width: 100%; height: auto; border: 1px solid var(--lijn); border-radius: var(--hoek); background: #fff; }
.bronfragment__bron { display: flex; gap: var(--ruimte-3); align-items: center; margin-top: var(--ruimte-3); font-size: var(--maat-klein); }
.bronfragment__bron--boven { margin: 0 0 var(--ruimte-3); }
.bronfragment__bron > .icoon { flex: none; color: var(--tekst-zacht); }
.bronfragment__bron .duim { width: 40px; height: 40px; }
.bronfragment__bron > span { display: grid; line-height: 1.35; }
.bronfragment__bron small { color: var(--tekst-zacht); }
