/* =============================================================
   KLJ BRECHT — STYLESHEET
   Inhoud:
     1. Kleuren & basis          7. Afdelingen
     2. Knoppen & labels         8. Nieuws
     3. Navigatie                9. Kalender
     4. Footer                  10. Leiding
     5. Hero & infostrook       11. Contact & galerij
     6. Gedeelde blokken        12. Responsive (mobiel)
============================================================= */


/* -------------------------------------------------------------
   1. KLEUREN & BASIS
   Pas hier een kleur aan en de hele site verandert mee.
------------------------------------------------------------- */
:root {
  --groen: #2FA84F;
  --groen-donker: #1B7638;
  --geel: #FFCB3D;
  --geel-licht: #FFF3CC;
  --rood: #E52619;       /* het rood van het KLJ-logo */
  --creme: #FFFCF3;
  --inkt: #17231A;
  --wit: #FFFFFF;

  --rand: 3px solid var(--inkt);
  --radius: 18px;
  --max-breedte: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* body als kolom: zo staat de footer altijd onderaan,
   ook op korte pagina's (dat was de "rare" witte ruimte) */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--creme);
  color: var(--inkt);
  font-family: 'Work Sans', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

main { flex: 1; }

h1, h2, h3 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: inherit; }

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

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--groen-donker);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max-breedte);
  margin: 0 auto;
  padding: 0 28px;
}

.sectie { padding-top: 64px; padding-bottom: 64px; }
.sectie + .sectie { padding-top: 8px; }  /* geen dubbele witruimte tussen twee secties */


/* -------------------------------------------------------------
   2. KNOPPEN, LABELS & KLEINE TEKSTELEMENTEN
------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 13px 26px;
  border: var(--rand);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--inkt);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--inkt); }
.btn-rood { background: var(--rood); color: var(--wit); }
.btn-wit  { background: var(--wit);  color: var(--inkt); }

.knoppen { display: flex; flex-wrap: wrap; gap: 14px; }
.knoppen-midden { justify-content: center; }

.label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--geel);
  border: 2px solid var(--inkt);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 12px;
}

.datum { font-size: 0.9rem; opacity: 0.65; }
.klein { font-size: 0.92rem; opacity: 0.8; }
.groot { font-family: 'Fredoka', sans-serif; font-size: 1.4rem; font-weight: 600; }

.tekstlink { font-weight: 600; text-underline-offset: 4px; }
.tekstlink:hover { color: var(--groen-donker); }
.terug { display: inline-block; margin-bottom: 28px; }

/* Foto met dikke rand en harde schaduw */
.kader-foto {
  width: 100%;
  border: var(--rand);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--geel);
  object-fit: cover;
}

/* Kleurklassen die op verschillende kaarten hergebruikt worden */
.kleur-sun   { --accent: var(--geel); }
.kleur-poppy { --accent: var(--rood); }
.kleur-grass { --accent: var(--groen); }


/* -------------------------------------------------------------
   3. NAVIGATIE
------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--creme);
  border-bottom: var(--rand);
}

.nav-row {
  max-width: var(--max-breedte);
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo { width: 44px; height: 44px; object-fit: contain; }

nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}

nav a {
  display: block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 8px 14px;
  border: 2px solid transparent;
  border-radius: 999px;
}
nav a:hover { border-color: var(--inkt); background: var(--geel); }
nav a.actief { border-color: var(--inkt); background: var(--groen); color: var(--wit); }

/* Hamburgerknop: enkel op mobiel (zie sectie 12) */
.menu-btn {
  display: none;
  background: var(--geel);
  border: var(--rand);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.menu-btn span {
  display: block;
  width: 22px; height: 3px;
  margin: 4px 0;
  background: var(--inkt);
  border-radius: 2px;
}


/* -------------------------------------------------------------
   4. FOOTER
------------------------------------------------------------- */
.site-footer {
  background: var(--inkt);
  color: #D9E4DA;
  padding-top: 48px;
  font-size: 0.95rem;
}
.site-footer a { color: #D9E4DA; }
.site-footer a:hover { color: var(--geel); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-titel {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--geel);
  margin-bottom: 8px;
}

.footer-onder {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 20px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.88rem;
}


/* -------------------------------------------------------------
   5. HERO (startpagina) & INFOSTROOK
------------------------------------------------------------- */
.hero {
  background: var(--groen);
  color: var(--wit);
  border-bottom: var(--rand);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 88px;
}

.badge {
  display: inline-block;
  background: var(--geel);
  color: var(--inkt);
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  padding: 7px 18px;
  border: var(--rand);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--inkt);
  transform: rotate(-3deg);
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  color: var(--wit);
  -webkit-text-stroke: 2px var(--inkt);
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--inkt);
}

.hero-tekst p { font-size: 1.2rem; font-weight: 500; max-width: 34ch; margin-bottom: 30px; }

/* Twee overlappende foto's, licht gedraaid als polaroids */
.hero-fotos { position: relative; padding: 0 0 60px 0; }

.hero-foto-groot,
.hero-foto-klein {
  border: 4px solid var(--inkt);
  border-radius: var(--radius);
  object-fit: cover;
}

.hero-foto-groot {
  width: 88%;
  aspect-ratio: 4 / 3;
  transform: rotate(2deg);
  box-shadow: 10px 10px 0 var(--geel);
}

.hero-foto-klein {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  aspect-ratio: 4 / 3;
  transform: rotate(-5deg);
  box-shadow: 8px 8px 0 var(--rood);
}

.infostrook { background: var(--geel); border-bottom: var(--rand); }

.infostrook-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.infostrook strong { display: block; font-family: 'Fredoka', sans-serif; font-size: 1.1rem; }


/* -------------------------------------------------------------
   6. GEDEELDE BLOKKEN: paginakop, sectiekoppen, kolommen, oproep
------------------------------------------------------------- */
.paginakop {
  background: var(--geel-licht);
  border-bottom: var(--rand);
  padding: 56px 0;
}
.paginakop p { font-size: 1.15rem; max-width: 52ch; }
.paginakop-smal { padding: 48px 0 36px; }

.paginakop-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.paginakop-grid .kader-foto { aspect-ratio: 4 / 3; transform: rotate(1.5deg); }

.sectie-kop { margin-bottom: 32px; }
.sectie-kop p { opacity: 0.75; margin: 0; }
.sectie-kop-rij {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.twee-kolommen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.blok {
  background: var(--wit);
  border: var(--rand);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 6px 6px 0 var(--inkt);
}
.blok-geel { background: var(--geel); }
.blok-groen { background: var(--groen); color: var(--wit); }

/* Lijst met vinkjes i.p.v. bolletjes */
.vinkjes { list-style: none; margin: 0; padding: 0; }
.vinkjes li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.vinkjes li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.45em;
  width: 16px; height: 16px;
  background: var(--groen);
  border: 2px solid var(--inkt);
  border-radius: 50%;
}

.prijslijst { list-style: none; margin: 0 0 16px; padding: 0; }
.prijslijst li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 2px dashed rgba(23, 35, 26, 0.3);
}

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; padding: 0; }
.chips li {
  background: var(--wit);
  border: 2px solid var(--inkt);
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 600;
}

.klein-foto { aspect-ratio: 4 / 3; box-shadow: 6px 6px 0 var(--inkt); }

.banner { border-bottom: var(--rand); }
.banner img { width: 100%; height: clamp(220px, 38vw, 440px); object-fit: cover; }

/* Brede rode strook onderaan een pagina */
.oproep {
  background: var(--rood);
  color: var(--wit);
  border-top: var(--rand);
  padding: 48px 0;
}
.oproep-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.oproep p { margin: 0; max-width: 52ch; }

.leeg { text-align: center; padding-top: 110px; padding-bottom: 110px; }


/* -------------------------------------------------------------
   7. AFDELINGEN
------------------------------------------------------------- */
/* Startpagina: vijf grote "stickers" */
.afdelingen-rij {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.afdeling-chip {
  background: var(--accent);
  border: var(--rand);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--inkt);
  transition: transform 0.15s ease;
}
.afdeling-chip:nth-child(odd) { transform: rotate(-2deg); }
.afdeling-chip:nth-child(even) { transform: rotate(2deg); }
.afdeling-chip:hover { transform: rotate(0) translateY(-4px); }

.afdeling-naam {
  display: block;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
}
.afdeling-leeftijd { font-size: 0.9rem; font-weight: 600; }

/* Pagina Algemeen: uitgebreide kaarten */
.afdeling-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.afdeling-kaart {
  background: var(--wit);
  border: var(--rand);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--accent);
  scroll-margin-top: 100px; /* zodat de sticky menubalk de kaart niet bedekt */
}
.afdeling-kaart > p { padding: 0 24px; }
.afdeling-kaart-kop {
  background: var(--accent);
  border-bottom: var(--rand);
  padding: 18px 24px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.afdeling-wanneer { font-weight: 700; margin-top: 18px; }


/* -------------------------------------------------------------
   8. NIEUWS
------------------------------------------------------------- */
.nieuws-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.nieuws-kaart {
  display: flex;
  flex-direction: column;
  background: var(--wit);
  border: var(--rand);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: 6px 6px 0 var(--inkt);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nieuws-kaart:hover { transform: translate(-2px, -4px); box-shadow: 9px 9px 0 var(--inkt); }

/* Posters zijn vaak staand: tonen we bovenaan, zonder het belangrijkste weg te knippen */
.nieuws-foto { border-bottom: var(--rand); background: var(--geel-licht); }
.nieuws-foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }

.nieuws-tekst { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.nieuws-tekst p { opacity: 0.8; flex: 1; }
.nieuws-tekst .label { align-self: flex-start; }

/* Eén bericht / vriendenboekje */
.bericht-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.bericht-foto { box-shadow: 8px 8px 0 var(--rood); }

.programma {
  margin: 24px 0 0;
  border: var(--rand);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--wit);
}
.programma div { display: flex; gap: 18px; padding: 12px 20px; border-bottom: 2px solid var(--inkt); }
.programma div:last-child { border-bottom: none; }
.programma dt { font-family: 'Fredoka', sans-serif; font-weight: 700; min-width: 90px; }
.programma dd { margin: 0; }


/* -------------------------------------------------------------
   9. KALENDER
------------------------------------------------------------- */
.scheutje-uitgelicht {
  display: block;
  background: var(--groen);
  color: var(--wit);
  border: var(--rand);
  border-radius: var(--radius);
  padding: 36px;
  text-decoration: none;
  box-shadow: 8px 8px 0 var(--geel);
  margin-bottom: 56px;
}
.scheutje-uitgelicht h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

.lijst-titel { margin-bottom: 20px; }

.pdf-lijst { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pdf-lijst a {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--wit);
  border: var(--rand);
  border-radius: 14px;
  padding: 14px 20px;
  text-decoration: none;
}
.pdf-lijst a:hover { background: var(--geel-licht); }

.pdf-soort {
  font-size: 0.78rem;
  font-weight: 700;
  border: 2px solid var(--inkt);
  border-radius: 999px;
  padding: 2px 10px;
  min-width: 80px;
  text-align: center;
}
.soort-scheutje { background: var(--geel); }
.soort-boekje { background: var(--rood); color: var(--wit); }

.pdf-titel { flex: 1; font-weight: 600; }
.pdf-icoon { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 0.85rem; opacity: 0.6; }


/* -------------------------------------------------------------
   10. LEIDING
------------------------------------------------------------- */
/* Groepen naast elkaar op brede schermen */
.leiding-groepen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 16px 48px;
}
.leidingsgroep { margin-bottom: 32px; }

.groep-titel {
  display: inline-block;
  background: var(--accent);
  border: var(--rand);
  border-radius: 14px;
  padding: 4px 22px;
  box-shadow: 4px 4px 0 var(--inkt);
  margin-bottom: 22px;
}

.leider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px;
}

.leider-kaart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: var(--wit);
  border: var(--rand);
  border-radius: var(--radius);
  padding: 22px 12px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.leider-kaart:hover { transform: translateY(-4px); box-shadow: 5px 5px 0 var(--inkt); }

.avatar {
  width: 88px; height: 88px;
  border: var(--rand);
  border-radius: 50%;
  object-fit: cover;
}
.avatar-letter {
  display: grid;
  place-items: center;
  background: var(--accent);
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
}
.leider-naam { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.15rem; }


/* -------------------------------------------------------------
   11. CONTACT & GALERIJ
------------------------------------------------------------- */
.contactlijst { list-style: none; margin: 0; padding: 0; }
.contactlijst li {
  display: grid;
  grid-template-columns: 120px 1fr;
  column-gap: 12px;
  padding: 12px 0;
  border-bottom: 2px dashed rgba(23, 35, 26, 0.25);
}
.contactlijst li:last-child { border-bottom: none; }
.contact-rol { grid-row: span 2; font-size: 0.85rem; font-weight: 700; opacity: 0.6; padding-top: 2px; }
.contact-naam { font-weight: 600; }
.contactlijst a { font-family: 'Fredoka', sans-serif; font-weight: 600; text-decoration: none; color: var(--groen-donker); }
.contactlijst a:hover { text-decoration: underline; }

.fotoband {
  background: var(--groen);
  color: var(--wit);
  border-top: var(--rand);
  padding: 64px 0;
  text-align: center;
}

.galerij {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0 32px;
}
.galerij img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: var(--rand);
  border-radius: var(--radius);
}


/* -------------------------------------------------------------
   12. RESPONSIVE
------------------------------------------------------------- */
@media (max-width: 980px) {
  nav ul { display: none; }
  .menu-btn { display: block; }

  /* Uitklapmenu: klasse "open" wordt gezet door script.js */
  nav.open ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--creme);
    border-bottom: var(--rand);
    padding: 16px 28px 24px;
    gap: 6px;
  }

  .hero-grid,
  .paginakop-grid,
  .twee-kolommen,
  .bericht-grid { grid-template-columns: 1fr; }

  .hero-grid { padding-top: 48px; padding-bottom: 56px; }
  .hero-fotos { max-width: 520px; }

  .afdelingen-rij { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .wrap, .nav-row { padding-left: 18px; padding-right: 18px; }
  .sectie { padding-top: 44px; padding-bottom: 44px; }

  .leiding-groepen { grid-template-columns: 1fr; }

  .infostrook-grid,
  .footer-grid,
  .galerij { grid-template-columns: 1fr; }

  .afdelingen-rij { grid-template-columns: repeat(2, 1fr); }
  .afdeling-naam { font-size: 2.1rem; }

  .blok { padding: 24px; }
  .contactlijst li { grid-template-columns: 1fr; }
  .contact-rol { grid-row: auto; }
}
