/* ==========================================================================
   Wijkraad Mol-Heidehuizen — Stylesheet
   Modern, warm, toegankelijk design voor een vrijwilligersorganisatie.
   Look & feel: diep bosgroen + warme terracotta op een crèmewitte achtergrond.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@500,700,800&display=swap');

:root {
  /* Kleurenpalet — afgeleid van de referentiehuisstijl */
  --kleur-primair: #1E3F33;          /* Diep bosgroen (hoofdkleur) */
  --kleur-primair-licht: #4A6B5D;    /* Saliegroen voor accenten */
  --kleur-primair-donker: #152E25;   /* Donkergroen voor hover/voettekst */
  --kleur-accent: #D95D39;           /* Warme terracotta (CTA) */
  --kleur-accent-donker: #BE4A28;    /* Donkere terracotta voor hover */
  --kleur-goud: #E8A34A;             /* Gouden accent */

  --kleur-tekst: #21302A;
  --kleur-tekst-zacht: #5A6B62;
  --kleur-achtergrond: #FDFBF7;      /* Warm crèmewit */
  --kleur-achtergrond-zacht: #F1F0E9; /* Zachte zandkleur voor secties */
  --kleur-sage: #EAF0EA;             /* Lichtgroen vlak */
  --kleur-rand: #E2DCD0;             /* Beige rand */
  --kleur-info: #EAF0EA;
  --kleur-waarschuwing: #FBEED9;
  --kleur-succes: #E2EEDF;

  /* Typografie */
  --font-hoofd: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-titel: 'Cabinet Grotesk', 'DM Sans', system-ui, sans-serif;

  /* Afmetingen */
  --max-breedte: 1180px;
  --radius: 12px;
  --radius-groot: 22px;
  --schaduw: 0 4px 18px rgba(30, 63, 51, 0.07);
  --schaduw-hover: 0 16px 40px rgba(30, 63, 51, 0.16);

  /* Spacing */
  --ruimte-xs: 0.5rem;
  --ruimte-s: 1rem;
  --ruimte-m: 1.5rem;
  --ruimte-l: 2.5rem;
  --ruimte-xl: 4.5rem;
}

/* ===== Reset & basis ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-hoofd);
  color: var(--kleur-tekst);
  line-height: 1.65;
  background: var(--kleur-achtergrond);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--kleur-primair);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--kleur-accent); }

h1, h2, h3, h4 {
  font-family: var(--font-titel);
  line-height: 1.12;
  color: var(--kleur-primair);
  margin-bottom: var(--ruimte-s);
  letter-spacing: -0.01em;
  font-weight: 800;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin-bottom: var(--ruimte-s); }

ul, ol { margin-bottom: var(--ruimte-s); padding-left: 1.4rem; }
li { margin-bottom: 0.35rem; }

/* ===== Layout helpers ===== */
.container {
  max-width: var(--max-breedte);
  margin: 0 auto;
  padding: 0 var(--ruimte-m);
}

.sectie { padding: var(--ruimte-xl) 0; }
.sectie-zacht { background: var(--kleur-achtergrond-zacht); }
.sectie-groen {
  background: var(--kleur-primair);
  color: var(--kleur-achtergrond);
}
.sectie-groen h2, .sectie-groen h3 { color: var(--kleur-achtergrond); }

.sectie-titel { text-align: center; margin-bottom: var(--ruimte-s); }
.sectie-intro {
  text-align: center;
  color: var(--kleur-tekst-zacht);
  max-width: 640px;
  margin: 0 auto var(--ruimte-l);
  font-size: 1.05rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--ruimte-l);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--ruimte-m);
}

/* ===== Eyebrow / labels ===== */
.eyebrow {
  display: inline-block;
  font-family: var(--font-titel);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--kleur-accent);
  margin-bottom: 0.6rem;
}

/* ===== Header & Navigatie ===== */
.site-header {
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--kleur-rand);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-breedte);
  margin: 0 auto;
  padding: 0.7rem var(--ruimte-m);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--ruimte-m);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-titel);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--kleur-primair);
}
.logo:hover { color: var(--kleur-primair); }

.logo img {
  height: 62px;
  width: auto;
  object-fit: contain;
}

.logo-placeholder {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--kleur-primair), var(--kleur-primair-licht));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
}

.logo-tekst { line-height: 1.15; }
.logo-tekst small {
  display: block;
  font-family: var(--font-hoofd);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--kleur-tekst-zacht);
  letter-spacing: 0.02em;
}

.hoofd-nav {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.hoofd-nav a {
  font-weight: 500;
  color: var(--kleur-tekst);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition: all 0.2s;
}
.hoofd-nav a:hover {
  background: var(--kleur-sage);
  color: var(--kleur-primair);
}
.hoofd-nav a.actief {
  color: var(--kleur-primair);
  font-weight: 700;
}
.hoofd-nav a.knop-primair,
.hoofd-nav a.knop-secundair { color: white; }
.hoofd-nav a.knop-rand { color: var(--kleur-primair); border-color: var(--kleur-primair); }
.hoofd-nav a.knop-rand:hover { background: var(--kleur-primair); color: white; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--kleur-primair);
  padding: 0.4rem;
}

/* ===== Knoppen ===== */
.knop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-hoofd);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.knop-primair { background: var(--kleur-accent); color: white; }
.knop-primair:hover {
  background: var(--kleur-accent-donker);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--schaduw-hover);
}

.knop-secundair { background: var(--kleur-primair); color: white; }
.knop-secundair:hover { background: var(--kleur-primair-donker); color: white; transform: translateY(-2px); }

.knop-rand {
  background: transparent;
  color: var(--kleur-primair);
  border-color: var(--kleur-primair);
}
.knop-rand:hover { background: var(--kleur-primair); color: white; }

.knop-licht {
  background: white;
  color: var(--kleur-primair);
}
.knop-licht:hover { background: var(--kleur-achtergrond); color: var(--kleur-primair); transform: translateY(-2px); }

.knop-klein { padding: 0.55rem 1.1rem; font-size: 0.92rem; }

/* ===== Hero ===== */
.hero {
  position: relative;
  color: white;
  padding: clamp(4rem, 9vw, 7rem) var(--ruimte-m);
  text-align: center;
  background:
    linear-gradient(rgba(21, 46, 37, 0.74), rgba(30, 63, 51, 0.82)),
    url('../img/hero-dorp.jpg') center/cover no-repeat;
}
.hero .container { position: relative; z-index: 1; max-width: 820px; }
.hero-logo {
  display: block;
  margin: 0 auto var(--ruimte-m);
  width: clamp(230px, 32vw, 360px);
  height: auto;
  border-radius: 22px;
  background: white;
  padding: 14px 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  animation: hero-logo-in 0.8s ease-out;
}
@keyframes hero-logo-in {
  from { opacity: 0; transform: translateY(-14px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.hero h1 { color: white; margin-bottom: var(--ruimte-s); }
.hero p {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 640px;
  margin: 0 auto var(--ruimte-m);
  opacity: 0.95;
}
.hero .eyebrow { color: var(--kleur-goud); }
.hero-knoppen {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--ruimte-m);
}

/* ===== Kaarten ===== */
.kaart {
  background: white;
  border-radius: var(--radius-groot);
  padding: var(--ruimte-l);
  box-shadow: var(--schaduw);
  transition: all 0.25s ease;
  border: 1px solid var(--kleur-rand);
}
.kaart:hover { transform: translateY(-5px); box-shadow: var(--schaduw-hover); }

.kaart-pictogram {
  width: 58px;
  height: 58px;
  background: var(--kleur-sage);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: var(--ruimte-s);
}

.kaart h3 { margin-bottom: 0.5rem; }
.kaart-link {
  display: inline-block;
  margin-top: var(--ruimte-xs);
  font-weight: 700;
  color: var(--kleur-accent);
}
.kaart-link:hover { color: var(--kleur-accent-donker); }

/* ===== Activiteitenkaart met foto ===== */
.activiteit-kaart {
  background: white;
  border-radius: var(--radius-groot);
  overflow: hidden;
  box-shadow: var(--schaduw);
  border: 1px solid var(--kleur-rand);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}
.activiteit-kaart:hover { transform: translateY(-5px); box-shadow: var(--schaduw-hover); }

.activiteit-foto {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.activiteit-foto img { width: 100%; height: 100%; object-fit: cover; }
.activiteit-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  background: var(--kleur-accent);
  color: white;
  font-family: var(--font-titel);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}
.activiteit-body { padding: var(--ruimte-m); display: flex; flex-direction: column; flex: 1; }
.activiteit-body h3 { margin-bottom: 0.4rem; }
.activiteit-body .event-meta { margin-bottom: 0.6rem; }
.activiteit-body .knop { margin-top: auto; align-self: flex-start; }

/* ===== CTA banner ===== */
.cta-banner {
  background: var(--kleur-primair);
  color: white;
  padding: var(--ruimte-l);
  text-align: center;
  border-radius: var(--radius-groot);
  margin: var(--ruimte-l) auto 0;
}
.cta-banner h2 { color: white; }
.cta-banner p { margin-bottom: var(--ruimte-m); opacity: 0.92; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ===== Activiteiten / Events (lijstweergave) ===== */
.event-kaart {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: var(--ruimte-m);
  align-items: center;
  background: white;
  padding: var(--ruimte-m);
  border-radius: var(--radius);
  margin-bottom: var(--ruimte-s);
  border: 1px solid var(--kleur-rand);
  border-left: 5px solid var(--kleur-accent);
  box-shadow: var(--schaduw);
}
.event-datum {
  text-align: center;
  background: var(--kleur-sage);
  border-radius: var(--radius);
  padding: 0.7rem 0.5rem;
}
.event-datum .dag {
  font-family: var(--font-titel);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--kleur-primair);
  display: block;
  line-height: 1;
}
.event-datum .maand {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--kleur-primair-licht);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.event-info h3 { margin-bottom: 0.25rem; font-size: 1.15rem; }
.event-meta {
  font-size: 0.92rem;
  color: var(--kleur-tekst-zacht);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-bottom: 0;
}

@media (max-width: 620px) {
  .event-kaart { grid-template-columns: 72px 1fr; }
  .event-kaart .knop { grid-column: 1 / -1; }
}

/* ===== Detail-activiteit ===== */
.activiteit-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: white;
  border-radius: var(--radius-groot);
  overflow: hidden;
  box-shadow: var(--schaduw);
  border: 1px solid var(--kleur-rand);
  margin-bottom: var(--ruimte-l);
}
.activiteit-detail.omgekeerd { direction: rtl; }
.activiteit-detail.omgekeerd > * { direction: ltr; }
.activiteit-detail .foto { position: relative; min-height: 280px; background-size: cover; background-position: center; }
.activiteit-detail .foto .badge-logo {
  position: absolute;
  top: var(--ruimte-m);
  right: var(--ruimte-m);
  width: 170px;
  height: auto;
  background: rgba(255, 255, 255, 0.94);
  padding: 8px 10px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.activiteit-detail .inhoud { padding: var(--ruimte-l); }
.activiteit-detail .inhoud h2 { margin-bottom: 0.3rem; }
.activiteit-detail .datum-chip {
  display: inline-block;
  background: var(--kleur-sage);
  color: var(--kleur-primair);
  font-weight: 700;
  font-family: var(--font-titel);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: var(--ruimte-s);
  font-size: 0.9rem;
}
@media (max-width: 780px) {
  .activiteit-detail { grid-template-columns: 1fr; }
  .activiteit-detail.omgekeerd { direction: ltr; }
  .activiteit-detail .foto { min-height: 220px; }
  .activiteit-detail .foto .badge-logo { width: 120px; top: var(--ruimte-s); right: var(--ruimte-s); }
}

/* ===== Jaarkalender (jaarwiel) ===== */
.jaarwiel-wrap {
  display: flex;
  align-items: center;
  gap: var(--ruimte-xl);
  flex-wrap: wrap;
  justify-content: center;
}
.jaarwiel-svg {
  width: min(660px, 96vw);
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 12px 30px rgba(30, 63, 51, 0.12));
}
.jw-maand {
  font-family: var(--font-hoofd);
  font-size: 15px;
  font-weight: 700;
  fill: var(--kleur-tekst-zacht);
  letter-spacing: 0.03em;
}
.jw-label {
  font-family: var(--font-hoofd);
  font-size: 18px;
  font-weight: 700;
  fill: var(--kleur-tekst);
}
.jw-marker { transition: r 0.15s ease; }
.jw-marker:hover { r: 11.5; }
.jw-label:hover { fill: var(--kleur-accent); }

.jaarwiel-legende {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 220px;
}
.jaarwiel-legende a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: inherit;
}
.jaarwiel-legende .stip {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
}
.jw-legende-tekst { display: flex; flex-direction: column; }
.jw-legende-tekst strong {
  font-family: var(--font-titel);
  font-size: 1.02rem;
  color: var(--kleur-primair);
}
.jw-legende-tekst small { color: var(--kleur-tekst-zacht); font-size: 0.85rem; }
@media (max-width: 620px) {
  .jaarwiel-wrap { gap: var(--ruimte-m); }
  .jaarwiel-legende { min-width: 0; width: 100%; }
}

/* ===== Bestuur / personen ===== */
.persoon {
  text-align: center;
  background: white;
  border-radius: var(--radius);
  padding: var(--ruimte-m);
  border: 1px solid var(--kleur-rand);
  box-shadow: var(--schaduw);
}
.persoon .avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--kleur-sage);
  color: var(--kleur-primair);
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-titel);
  font-weight: 800;
  font-size: 1.6rem;
}
.persoon h3 { font-size: 1.1rem; margin-bottom: 0.15rem; }
.persoon p { color: var(--kleur-tekst-zacht); margin-bottom: 0; font-size: 0.92rem; }
.persoon.is-bestuur .avatar { background: var(--kleur-primair); color: white; }

/* ===== Formulieren ===== */
.formulier {
  background: white;
  padding: var(--ruimte-l);
  border-radius: var(--radius-groot);
  box-shadow: var(--schaduw);
  border: 1px solid var(--kleur-rand);
  max-width: 620px;
  margin: 0 auto;
}
.veld { margin-bottom: var(--ruimte-s); }
.veld label { display: block; font-weight: 600; margin-bottom: 0.4rem; color: var(--kleur-tekst); }
.veld input, .veld select, .veld textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1.5px solid var(--kleur-rand);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--kleur-achtergrond);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.veld input:focus, .veld select:focus, .veld textarea:focus {
  outline: none;
  border-color: var(--kleur-primair-licht);
  box-shadow: 0 0 0 3px rgba(74, 107, 93, 0.15);
}
.veld textarea { min-height: 120px; resize: vertical; }
.veld-help { font-size: 0.85rem; color: var(--kleur-tekst-zacht); margin-top: 0.25rem; }

/* ===== Meldingen / Info-blokken ===== */
.melding {
  padding: var(--ruimte-s) var(--ruimte-m);
  border-radius: var(--radius);
  margin-bottom: var(--ruimte-m);
  border-left: 4px solid;
}
.melding-info { background: var(--kleur-info); border-color: var(--kleur-primair-licht); }
.melding-succes { background: var(--kleur-succes); border-color: #4a8a4a; }
.melding-waarschuwing { background: var(--kleur-waarschuwing); border-color: var(--kleur-goud); }

/* ===== Pagina-koptekst ===== */
.pagina-kop {
  background: var(--kleur-primair);
  color: white;
  padding: var(--ruimte-l) var(--ruimte-m);
  text-align: center;
}
.pagina-kop h1 { color: white; margin-bottom: 0.5rem; }
.pagina-kop p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  max-width: 700px;
  margin: 0 auto;
}
.broodkruim { font-size: 0.88rem; color: rgba(255,255,255,0.75); margin-bottom: var(--ruimte-s); }
.broodkruim a { color: rgba(255,255,255,0.9); }
.broodkruim a:hover { color: white; }

/* ===== Footer ===== */
.site-footer {
  background: var(--kleur-primair-donker);
  color: white;
  padding: var(--ruimte-xl) var(--ruimte-m) var(--ruimte-m);
  margin-top: var(--ruimte-xl);
}
.footer-inner {
  max-width: var(--max-breedte);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--ruimte-l);
}
.footer-kolom h4 {
  color: white;
  margin-bottom: var(--ruimte-s);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-kolom a { color: rgba(255, 255, 255, 0.8); display: block; padding: 0.22rem 0; }
.footer-kolom a:hover { color: var(--kleur-goud); }
.footer-bottom {
  max-width: var(--max-breedte);
  margin: var(--ruimte-l) auto 0;
  padding-top: var(--ruimte-s);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  font-size: 0.88rem;
  opacity: 0.8;
}

/* ===== Ledenzone specifiek ===== */
.leden-banner {
  background: var(--kleur-primair-donker);
  color: white;
  padding: 0.85rem var(--ruimte-m);
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}
.leden-banner a { color: var(--kleur-goud); margin-left: 1rem; font-weight: 700; }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--ruimte-m);
  margin-top: var(--ruimte-m);
}
.agenda-item {
  display: flex;
  gap: var(--ruimte-m);
  padding: var(--ruimte-s);
  background: white;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  border: 1px solid var(--kleur-rand);
  border-left: 4px solid var(--kleur-primair-licht);
  box-shadow: var(--schaduw);
}
.agenda-item.vergadering { border-left-color: var(--kleur-accent); }
.agenda-tijd { min-width: 100px; font-weight: 700; color: var(--kleur-primair); }

/* ===== Login pagina ===== */
.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62vh;
  padding: var(--ruimte-xl) var(--ruimte-m);
}
.login-box {
  background: white;
  padding: var(--ruimte-l);
  border-radius: var(--radius-groot);
  box-shadow: var(--schaduw-hover);
  border: 1px solid var(--kleur-rand);
  max-width: 440px;
  width: 100%;
  text-align: center;
}
.login-box h1 { font-size: 1.8rem; }

/* ===== Responsief ===== */
@media (max-width: 880px) {
  .menu-toggle { display: block; }
  .hoofd-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--kleur-achtergrond);
    flex-direction: column;
    gap: 0;
    padding: var(--ruimte-s);
    box-shadow: var(--schaduw);
    border-top: 1px solid var(--kleur-rand);
  }
  .hoofd-nav.open { display: flex; }
  .hoofd-nav a { width: 100%; padding: 0.75rem; border-radius: var(--radius); }
  .hoofd-nav a.knop { width: 100%; justify-content: center; margin-top: 0.4rem; }
  .header-inner { position: relative; }
  .sectie { padding: var(--ruimte-l) 0; }
}

/* ===== Print-vriendelijk ===== */
@media print {
  .site-header, .site-footer, .leden-banner, .knop, .hero-knoppen { display: none; }
}

/* ===== Toegankelijkheid ===== */
:focus-visible { outline: 3px solid var(--kleur-goud); outline-offset: 2px; }
.skip-link {
  position: absolute;
  top: -48px;
  left: 0;
  background: var(--kleur-primair-donker);
  color: white;
  padding: 0.5rem 1rem;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { top: 0; color: white; }

/* ===== Foto in ledenavatar (optioneel) ===== */
.persoon .avatar { overflow: hidden; }
.persoon .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== Terugblik ===== */
.terugblik-item { margin-bottom: var(--ruimte-l); }
.terugblik-fotos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.6rem;
  margin: var(--ruimte-m) 0;
}
.terugblik-fotos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  transition: transform 0.2s;
}
.terugblik-fotos a:hover img { transform: scale(1.03); }
/* Terugblik: voorproefje in het overzicht */
.terugblik-voorproef {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem;
  margin: var(--ruimte-m) 0; max-width: 560px;
}
.terugblik-duim { position: relative; display: block; border-radius: var(--radius); overflow: hidden; }
.terugblik-duim img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform 0.2s; }
.terugblik-voorproef:hover .terugblik-duim img { transform: scale(1.04); }
.terugblik-meer {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(30, 63, 51, 0.6); color: #fff; font-weight: 700; font-size: 1.15rem;
}
/* Terugblik: detailpagina */
.terugblik-detail { max-width: 980px; }
.terugblik-sub { font-size: 1.3rem; margin: 0 0 var(--ruimte-s); }
.terugblik-sub small { font-size: 0.95rem; color: var(--kleur-tekst-zacht); font-weight: 400; }
.terugblik-verslag { margin-bottom: var(--ruimte-l); }
.terugblik-galerij {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.6rem; margin-bottom: var(--ruimte-l);
}
.terugblik-galerij-item { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.terugblik-galerij-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform 0.2s; }
.terugblik-galerij-item:hover img, .terugblik-galerij-item:focus-visible img { transform: scale(1.04); }
.terugblik-geen-fotos { color: var(--kleur-tekst-zacht); font-style: italic; margin-bottom: var(--ruimte-l); }
.terugblik-acties { display: flex; flex-wrap: wrap; gap: 0.6rem; }
/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center; background: rgba(15, 25, 20, 0.92);
}
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.lightbox figcaption { color: #fff; opacity: 0.8; margin-top: 0.6rem; font-size: 0.95rem; }
.lightbox button {
  position: absolute; border: 0; background: rgba(255,255,255,0.12); color: #fff; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(255,255,255,0.25); }
.lightbox button[hidden] { display: none; }
.lb-sluit { top: 1rem; right: 1rem; }
.lb-vorige { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-volgende { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 620px) {
  .lb-vorige, .lb-volgende { top: auto; bottom: 1rem; transform: none; }
}
.nw-foto-lijst { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.nw-foto-lijst div { position: relative; }
.nw-foto-lijst img { width: 90px; height: 68px; object-fit: cover; border-radius: 6px; display: block; }
.nw-foto-lijst button {
  position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%;
  border: none; background: #BE4A28; color: #fff; font-size: 0.8rem; cursor: pointer; line-height: 1;
}
.hoofd-nav a { white-space: nowrap; }
@media (min-width: 881px) and (max-width: 1150px) {
  .hoofd-nav { gap: 0; }
  .hoofd-nav a { padding-left: 0.55rem; padding-right: 0.55rem; font-size: 0.95rem; }
  .logo img { height: 54px; }
  .logo-tekst { font-size: 1.05rem; }
}

/* ===== Buurtquiz ===== */
.quiz-container { max-width: 860px; }
.quiz-blok { margin-bottom: var(--ruimte-l); scroll-margin-top: 110px; }
.quiz-blok h3 { margin-top: var(--ruimte-m); }
.quiz-stappen { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: var(--ruimte-l); }
.quiz-stappen a {
  flex: 1 1 260px; display: flex; align-items: center; gap: 0.6rem;
  padding: 0.8rem 1rem; border: 1.5px solid var(--kleur-rand); border-radius: var(--radius);
  background: white; font-weight: 600; color: var(--kleur-primair); text-decoration: none;
}
.quiz-stappen a:hover { border-color: var(--kleur-primair); }
.quiz-stappen span {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--kleur-accent); color: white; font-size: 0.9rem; flex-shrink: 0;
}
.proef-keuze { display: grid; gap: 0.6rem; }
.proef-optie {
  display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.85rem 1rem; cursor: pointer;
  border: 1.5px solid var(--kleur-rand); border-radius: var(--radius); background: var(--kleur-achtergrond);
  transition: border-color 0.15s, background 0.15s;
}
.proef-optie:hover { border-color: var(--kleur-primair-licht); }
.proef-optie input { margin-top: 0.3rem; accent-color: var(--kleur-primair); width: 18px; height: 18px; }
.proef-optie:has(input:checked) { border-color: var(--kleur-primair); background: var(--kleur-info); }
.proef-optie small { color: var(--kleur-tekst-zacht); }
.quiz-verrassing {
  margin-top: var(--ruimte-l); padding: var(--ruimte-m); border-radius: var(--radius);
  background: var(--kleur-info); border-left: 4px solid var(--kleur-accent);
}
.quiz-verrassing h3 { margin-top: 0; }
.honing { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===== Buurtquiz beheer (ledenzone) ===== */
.quiz-stats { display: grid; grid-template-columns: repeat(3, minmax(110px, 1fr)) minmax(260px, 2fr); gap: 0.75rem; margin-bottom: var(--ruimte-m); }
.quiz-stats .stat { padding: 0.9rem 1rem; display: flex; flex-direction: column; justify-content: center; }
.quiz-stats .stat strong { font-size: 1.6rem; color: var(--kleur-primair); line-height: 1.1; }
.quiz-stats .stat span { color: var(--kleur-tekst-zacht); font-size: 0.9rem; }
.stem-rij { display: grid; grid-template-columns: 1fr 90px 24px; gap: 0.5rem; align-items: center; font-size: 0.85rem; margin-bottom: 0.2rem; }
.stem-balk { height: 9px; background: var(--kleur-rand); border-radius: 5px; overflow: hidden; }
.stem-balk i { display: block; height: 100%; background: var(--kleur-accent); border-radius: 5px; }
.quiz-tabs { display: flex; gap: 0.4rem; margin-bottom: var(--ruimte-m); border-bottom: 1.5px solid var(--kleur-rand); padding-bottom: 0.6rem; }
.quiz-tabs .knop { background: transparent; border: 1.5px solid var(--kleur-rand); color: var(--kleur-tekst); }
.quiz-tabs .knop.actief { background: var(--kleur-primair); border-color: var(--kleur-primair); color: white; }
.tabel-wrap { overflow-x: auto; }
.quiz-tabel { width: 100%; border-collapse: collapse; font-size: 0.93rem; background: white; border-radius: var(--radius); }
.quiz-tabel th { text-align: left; padding: 0.6rem; border-bottom: 2px solid var(--kleur-rand); color: var(--kleur-tekst-zacht); font-weight: 600; white-space: nowrap; }
.quiz-tabel td { padding: 0.6rem; border-bottom: 1px solid var(--kleur-rand); vertical-align: top; }
.quiz-tabel select { padding: 0.3rem; border: 1.5px solid var(--kleur-rand); border-radius: 6px; font: inherit; }
.quiz-tabel input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--kleur-primair); }
.quiz-tabel tr.geannuleerd td { opacity: 0.5; text-decoration: line-through; }
.quiz-tabel tr.geannuleerd td:nth-last-child(-n+3) { text-decoration: none; }
.knop-gevaar { background: #BE4A28; color: #fff; border: none; }
.knop-gevaar:hover { background: #9E3A1E; color: #fff; }
.inzending { margin-bottom: var(--ruimte-m); }
.inzending.favoriet { border: 2px solid var(--kleur-accent); }
.inzending-kop { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.inzending-media { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0; }
.inzending-media img { width: 160px; height: 120px; object-fit: cover; border-radius: 8px; display: block; }
.inzending-media video { width: 260px; max-height: 200px; border-radius: 8px; background: #000; }
@media (max-width: 780px) {
  .quiz-stats { grid-template-columns: repeat(2, 1fr); }
  .quiz-stats .stat-breed { grid-column: 1 / -1; }
}

/* Ledenzone: compacter menu dat netjes afbreekt */
@media (min-width: 881px) {
  .leden-banner + .site-header .header-inner { gap: 1rem; }
  .leden-banner + .site-header .logo { flex-shrink: 0; }
  .leden-banner + .site-header .hoofd-nav { flex: 1 1 0; min-width: 0; flex-wrap: wrap; justify-content: flex-end; gap: 0.1rem 0; }
  .leden-banner + .site-header .hoofd-nav a { padding: 0.35rem 0.55rem; font-size: 0.9rem; }
  .leden-banner + .site-header .logo-tekst { font-size: 1.05rem; white-space: nowrap; }
}
.quiz-tabs .knop { gap: 0.35rem; }
.pagina-kop p a { color: #fff; text-decoration: underline; }

.opslag-alarm { margin: var(--ruimte-s) auto; max-width: 1200px; }

.teller-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.teller-cijfer { background: var(--kleur-achtergrond); border-radius: var(--radius); padding: 0.8rem 1rem; }
.teller-cijfer strong { display: block; font-size: 1.6rem; color: var(--kleur-primair); line-height: 1.1; }
.teller-cijfer span { color: var(--kleur-tekst-zacht); font-size: 0.9rem; }
@media (max-width: 620px) { .teller-stats { grid-template-columns: 1fr; } }

/* Facebook */
.fb-link { display: inline-flex !important; align-items: center; gap: 0.4rem; }
.fb-icoon { flex-shrink: 0; vertical-align: -3px; }
.knop-facebook { background: #1877F2; color: #fff; border: none; display: inline-flex; align-items: center; gap: 0.5rem; }
.knop-facebook:hover { background: #0F63D6; color: #fff; }

/* ===== Buurtquiz: stappen-wizard ===== */
.quiz-stappen a { flex-basis: 200px; transition: border-color 0.15s, background 0.15s; }
.quiz-stappen a.actief { border-color: var(--kleur-primair); box-shadow: 0 0 0 1px var(--kleur-primair); }
.quiz-stappen a.klaar span { background: var(--kleur-primair); }
.quiz-knoppen { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: var(--ruimte-m); }
.quiz-verder { margin-top: var(--ruimte-m); }
.quiz-verder p { margin-bottom: 0; }
.knop-tekst { background: transparent; border: none; color: var(--kleur-primair); text-decoration: underline; padding-left: 0.4rem; padding-right: 0.4rem; }
.knop-tekst:hover { background: transparent; color: var(--kleur-accent); }
.quiz-link-vak { display: flex; gap: 0.5rem; margin-bottom: 0.4rem; }
.quiz-link-vak input { flex: 1; min-width: 0; padding: 0.5rem 0.7rem; border: 1.5px solid var(--kleur-rand); border-radius: var(--radius); font: inherit; font-size: 0.9rem; background: var(--kleur-achtergrond); }
.quiz-vergeet { text-align: center; }

/* ===== Buurtquiz beheer: volledigheid ===== */
.vol { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.vol i { font-style: normal; font-size: 0.78rem; padding: 0.12rem 0.45rem; border-radius: 999px; white-space: nowrap;
         background: var(--kleur-waarschuwing); border: 1px solid var(--kleur-goud); }
.vol i.ok { background: var(--kleur-info); border-color: var(--kleur-primair-licht); }
.vol-herinnering { display: block; margin-top: 0.25rem; color: var(--kleur-tekst-zacht); font-size: 0.8rem; }
.quiz-filter { padding: 0.45rem 0.7rem; border: 1.5px solid var(--kleur-rand); border-radius: var(--radius); font: inherit; }
#stappen { scroll-margin-top: 110px; }

/* ===== Buurtquiz: compact, elke stap past op één scherm ===== */
.sectie:has(.quiz-container) { padding-top: var(--ruimte-m); }
.quiz-stappen { margin-bottom: 0.8rem; gap: 0.5rem; }
.quiz-stappen a { padding: 0.55rem 0.8rem; font-size: 0.95rem; }
#welkom { margin-bottom: 0.8rem; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.quiz-scherm { padding: var(--ruimte-m) var(--ruimte-l); }
.quiz-scherm:hover { transform: none; }
.quiz-scherm h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 0.5rem; }
.quiz-scherm h3 { font-size: 1.1rem; margin: 0.8rem 0 0.6rem; }
.quiz-scherm > p { margin-bottom: 0.6rem; }
.quiz-scherm .formulier { padding: 0; background: none; box-shadow: none; border-radius: 0; }
.quiz-scherm .veld { margin-bottom: 0.7rem; }
.quiz-scherm .veld input, .quiz-scherm .veld select { padding: 0.6rem 0.75rem; }
.quiz-scherm .veld label { margin-bottom: 0.25rem; }
.quiz-scherm .quiz-knoppen { margin-top: 0.8rem; }
.quiz-scherm .melding { margin-bottom: 0.8rem; }
#proef .proef-keuze { grid-template-columns: repeat(3, 1fr); }
#proef .proef-optie { padding: 0.7rem 0.8rem; }
.quiz-twee-kol { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ruimte-m); }
.quiz-twee-kol p { margin-bottom: 0.5rem; }
.quiz-tips { margin: 0 0 0.5rem 1.1rem; padding: 0; }
.quiz-tips li { margin-bottom: 0.15rem; }
.quiz-vervolg { list-style: none; margin: 0 0 0.6rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.quiz-vervolg li { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.7rem 0.9rem; border: 1.5px dashed var(--kleur-rand); border-radius: var(--radius); }
.quiz-vervolg li > span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%; background: var(--kleur-accent); color: #fff; font-weight: 700; font-size: 0.9rem; }
.quiz-vervolg small { color: var(--kleur-tekst-zacht); }
.quiz-verder h3 { margin-top: 0.4rem; }
@media (max-width: 700px) {
  .quiz-scherm { padding: var(--ruimte-m); }
  #proef .proef-keuze, .quiz-twee-kol, .quiz-vervolg { grid-template-columns: 1fr; }
  .quiz-stappen a { flex-basis: 100%; }
}
.quiz-scherm .formulier { border: none; margin: 0; }
#proef .proef-optie small { display: inline; }
#proef .proef-optie span { line-height: 1.4; }
/* Stap 3 extra compact */
#stappen { scroll-margin-top: 92px; }
#feestfoto .quiz-twee-kol { grid-template-columns: 1fr 1.15fr; align-items: start; }
#feestfoto .quiz-kol-tekst { font-size: 0.95rem; }
#feestfoto .veld label small { font-weight: 400; }
#feestfoto .quiz-knoppen { margin-top: 0.4rem; }
#feestfoto .quiz-knoppen .knop { padding-top: 0.65rem; padding-bottom: 0.65rem; }
#feestfoto h2 { margin-bottom: 0.4rem; }
#feestfoto .quiz-knoppen { flex-wrap: nowrap; gap: 0.4rem; }
#feestfoto .quiz-knoppen .knop { padding-left: 1rem; padding-right: 1rem; white-space: nowrap; }
#feestfoto .quiz-kol-tekst .veld { margin-top: 0.6rem; }
@media (max-width: 700px) { #feestfoto .quiz-knoppen { flex-wrap: wrap; } }
#feestfoto .quiz-kol-tekst { font-size: 0.92rem; line-height: 1.45; }
#feestfoto .quiz-kol-tekst p { margin-bottom: 0.35rem; }
#feestfoto .quiz-tips li { margin-bottom: 0; }
#feestfoto .quiz-twee-kol { gap: 1.2rem 1.6rem; }

/* ===== Onderhoudsmodus ===== */
html.wk-onderhoud-wacht body { visibility: hidden; }
html.wk-onderhoud-actief, html.wk-onderhoud-actief body { overflow: hidden; }
.wk-onderhoud-banner { position: relative; z-index: 1001; background: var(--kleur-goud); color: var(--kleur-primair-donker);
  text-align: center; font-size: 0.95rem; padding: 0.6rem 1rem; line-height: 1.4; }
.wk-onderhoud-banner.wk-lid { background: var(--kleur-primair); color: #fff; font-size: 0.85rem; padding: 0.4rem 1rem; }
.wk-onderhoud-scherm { position: fixed; inset: 0; z-index: 9999; background: var(--kleur-achtergrond-zacht);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.wk-onderhoud-kaart { background: #fff; max-width: 520px; width: 100%; text-align: center; padding: 2.5rem 2rem;
  border-radius: 20px; border: 1px solid var(--kleur-rand); box-shadow: 0 20px 50px rgba(30,63,51,0.12); }
.wk-onderhoud-kaart img { max-width: 180px; height: auto; margin: 0 auto 1.2rem; display: block; }
.wk-onderhoud-kaart h1 { font-size: 1.8rem; margin-bottom: 0.8rem; }
.wk-onderhoud-kaart p { color: var(--kleur-tekst-zacht); }
.wk-onderhoud-klein { font-size: 0.85rem; margin: 1.2rem 0 0; }
.onderhoud-keuze { display: grid; gap: 0.6rem; margin-bottom: 1rem; }
.onderhoud-keuze label { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.75rem 1rem; border: 1.5px solid var(--kleur-rand);
  border-radius: var(--radius); cursor: pointer; }
.onderhoud-keuze label:has(input:checked) { border-color: var(--kleur-primair); background: var(--kleur-sage); }
.onderhoud-keuze small { color: var(--kleur-tekst-zacht); }
html.wk-quiz-dicht .quiz-scherm, html.wk-quiz-dicht #stappen, html.wk-quiz-dicht #welkom, html.wk-quiz-dicht #vergeet { display: none !important; }

/* ---------- Typografie: geen losse woorden op een nieuwe regel ---------- */
h1, h2, h3, h4 { text-wrap: balance; }
p, li, .melding, .veld-help, label { text-wrap: pretty; }

/* ---------- Buurtquiz: bevestiging na inschrijving ---------- */
.quiz-bevestig-titel { margin: 0 0 0.5rem; font-size: 1.1rem; }
.quiz-details { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.quiz-details li { margin: 0; display: flex; gap: 0.6rem; align-items: baseline; }
.quiz-details li > span:first-child { flex: 0 0 1.4rem; text-align: center; }
.quiz-details small { opacity: 0.8; }
.quiz-mail { overflow-wrap: normal; }
@media (max-width: 480px) { .quiz-mail { font-size: 0.95em; } }
.quiz-later-ontbreekt { margin: 1rem 0; }
#later-mail .quiz-details { margin: 0; }
.quiz-deadline-tekst { white-space: nowrap; }
