/* =========================================================================
   Jong Nederland Fleringen — stylesheet
   Ontwerp­richting: buitenleven & kamp — canvas, bos, kampvuur, insignes.
   ========================================================================= */

:root {
  /* Kleuren */
  --kleur-canvas:   #F1EADA; /* achtergrond: tentdoek */
  --kleur-canvas-donker: #E4DAC2;
  --kleur-inkt:     #26261F; /* hoofdtekst */
  --kleur-bos:      #2B4630; /* primair merkgroen */
  --kleur-bos-donker: #1D3122;
  --kleur-mos:      #6E8F5C; /* secundair groen */
  --kleur-ember:    #C1652F; /* accent: kampvuur */
  --kleur-ember-donker: #A34F22;
  --kleur-zand:     #D8C9A3; /* randen, verdeellijnen */
  --kleur-wit:      #FFFDF8;

  /* Typografie */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  /* Overig */
  --radius: 10px;
  --schaduw: 0 4px 20px rgba(38, 38, 31, 0.08);
  --breedte-max: 1120px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--kleur-canvas); }
body {
  margin: 0;
  background: var(--kleur-canvas);
  color: var(--kleur-inkt);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--kleur-bos); text-decoration-color: var(--kleur-ember); text-underline-offset: 3px; }
a:hover { color: var(--kleur-ember-donker); }
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--kleur-bos-donker);
  font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kleur-ember-donker);
  display: inline-block;
  margin-bottom: 0.6em;
}
:focus-visible {
  outline: 3px solid var(--kleur-ember);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Korte, speelse overgang tussen paginas (alleen op de website, niet in beheer) ---------- */
body:not(.admin-body) { animation: pagina-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes pagina-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
body.pagina-verlaat:not(.admin-body) { animation: pagina-uit 0.16s ease-in both; }
@keyframes pagina-uit {
  to { opacity: 0; transform: translateY(-8px) scale(0.98); }
}

/* De header zelf beweegt nooit mee met de overgang, zodat hij lijkt te "blijven staan". */
.pagina-overgang {
  position: fixed;
  top: 76px; left: 0; right: 0; bottom: 0;
  background: var(--kleur-canvas);
  display: flex; align-items: center; justify-content: center;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.pagina-overgang.actief { opacity: 1; pointer-events: all; }
.pagina-overgang.verbergen { opacity: 0; }
.pagina-overgang img {
  width: 150px;
  animation: overgang-hop 0.6s ease-in-out infinite alternate;
  filter: drop-shadow(0 10px 16px rgba(38,38,31,0.18));
}
@keyframes overgang-hop {
  from { transform: translateY(0) rotate(-2deg); }
  to { transform: translateY(-16px) rotate(2deg); }
}
@media (max-width: 820px) {
  .pagina-overgang { top: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  .pagina-overgang img { animation: none; }
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--breedte-max);
  margin: 0 auto;
  padding: 0 24px;
}
.sectie { padding: 72px 0; }
.sectie--smal { padding: 48px 0; }
.sectie-titel { max-width: 640px; margin-bottom: 2.5rem; }
.sectie-titel p { color: #52524a; font-size: 1.08rem; }
.sectie-titel--met-mascotte {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.sectie-titel--met-mascotte > div { max-width: 640px; }
.sectie-titel__mascotte { width: 110px; flex-shrink: 0; }
@media (max-width: 780px) {
  .sectie-titel__mascotte { display: none; }
}

/* ---------- Header & navigatie ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 234, 218, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--kleur-zand);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.site-header__merk {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--kleur-bos-donker);
}
.site-header__merk img { height: 42px; width: auto; }
.site-nav ul { display: flex; gap: 2px; align-items: center; }
.site-nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--kleur-inkt);
  font-size: 0.96rem;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a.actief { background: var(--kleur-bos); color: var(--kleur-wit); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--kleur-zand);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 1.3rem;
  cursor: pointer;
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--kleur-canvas);
    border-bottom: 1px solid var(--kleur-zand);
    box-shadow: var(--schaduw);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 12px 24px 20px; align-items: stretch; }
  .site-nav a { padding: 12px 8px; border-radius: 6px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% -10%, rgba(193,101,47,0.18), transparent 45%),
    var(--kleur-canvas);
  border-bottom: 1px solid var(--kleur-zand);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: 0.35em; }
.hero__lead { font-size: 1.2rem; max-width: 46ch; color: #43433c; }
.hero__acties { display: flex; gap: 14px; margin-top: 2em; flex-wrap: wrap; }
.hero__beeld {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--schaduw);
}
.hero__beeld img { width: 100%; height: 100%; object-fit: cover; }
.hero__beeld::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(29,49,34,0.55));
}
.hero__beeld--mascotte { background: var(--kleur-canvas-donker); display:flex; align-items:center; justify-content:center; }
.hero__beeld--mascotte img { width: auto; height: auto; max-width: 78%; max-height: 78%; object-fit: contain; }
.hero__beeld--mascotte::after { content: none; }
.hero__badge {
  position: absolute;
  bottom: 16px; left: 16px;
  z-index: 2;
  background: var(--kleur-wit);
  border-radius: 999px;
  padding: 8px 16px 8px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--schaduw);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.hero__badge span.stip {
  width: 10px; height: 10px; border-radius: 50%; background: var(--kleur-mos);
  display: inline-block;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__beeld { aspect-ratio: 16/9; order: -1; }
}

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primair { background: var(--kleur-bos); color: var(--kleur-wit); }
.btn--primair:hover { background: var(--kleur-bos-donker); color: var(--kleur-wit); }
.btn--ember { background: var(--kleur-ember); color: var(--kleur-wit); }
.btn--ember:hover { background: var(--kleur-ember-donker); color: var(--kleur-wit); }
.btn--rand { background: transparent; border-color: var(--kleur-bos); color: var(--kleur-bos-donker); }
.btn--rand:hover { background: var(--kleur-bos); color: var(--kleur-wit); }
.btn--klein { padding: 8px 14px; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Insigne / patch (groepen) ---------- */
.patches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
  align-items: stretch;
}
.patch-kaart {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: var(--kleur-wit);
  border-radius: var(--radius);
  padding: 32px 24px 26px;
  text-align: center;
  box-shadow: var(--schaduw);
  border: 1px solid var(--kleur-zand);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}
.patch-kaart:hover { transform: translateY(-4px) rotate(-0.6deg); box-shadow: 0 10px 28px rgba(38,38,31,0.14); }
.patch-kaart:hover .patch { transform: scale(1.06) rotate(2deg); }
.patch {
  width: 108px; height: 108px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  color: var(--kleur-wit);
  border: 2px solid var(--kleur-wit);
  outline: 2px dashed rgba(255,255,255,0.65);
  outline-offset: -8px;
  position: relative;
  background-size: cover;
  background-position: center;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.patch__nr {
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  opacity: 0.9;
  white-space: nowrap;
}
.patch__letter { font-family: var(--font-display); font-size: 2rem; font-weight: 600; line-height: 1; }
.patch-kaart h3 { margin-bottom: 0.2em; }
.patch-kaart__leeftijd { color: #6b6b60; font-size: 0.92rem; margin-bottom: 0.8em; min-height: 1.3em; }
.patch-kaart__tijd {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--kleur-canvas-donker);
  color: var(--kleur-inkt);
  white-space: nowrap;
}
.patch-kaart__pijl {
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.88rem;
  color: var(--kleur-ember-donker);
  font-weight: 600;
}

/* ---------- Agenda / pad-tijdlijn ---------- */
.pad {
  position: relative;
  border-left: 3px dashed var(--kleur-zand);
  margin-left: 10px;
  padding-left: 34px;
}
.pad-maand {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--kleur-bos-donker);
  margin: 2.2em 0 1.1em;
  position: relative;
}
.pad-maand:first-child { margin-top: 0; }
.pad-maand::before {
  content: "";
  position: absolute;
  left: -42px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--kleur-bos);
  border: 3px solid var(--kleur-canvas);
  box-shadow: 0 0 0 2px var(--kleur-zand);
}
.pad-item {
  position: relative;
  background: var(--kleur-wit);
  border: 1px solid var(--kleur-zand);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 14px;
  display: flex;
  gap: 16px;
  align-items: baseline;
  flex-wrap: wrap;
}
.pad-item::before {
  content: "";
  position: absolute;
  left: -40px; top: 22px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--kleur-ember);
}
.pad-item--vakantie { background: var(--kleur-canvas-donker); border-style: dashed; }
.pad-item--vakantie::before { background: var(--kleur-zand); }
.pad-item__datum {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--kleur-ember-donker);
  white-space: nowrap;
  min-width: 150px;
}
.pad-item__titel { font-weight: 600; margin-right: auto; }
.pad-item__omschrijving { flex-basis: 100%; color: #52524a; font-size: 0.95rem; margin-top: 2px; }
.label-groep {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--kleur-wit);
  white-space: nowrap;
}
.agenda-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}
.agenda-filter a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--kleur-zand);
  color: var(--kleur-inkt);
  text-decoration: none;
}
.agenda-filter a.actief, .agenda-filter a:hover { background: var(--kleur-bos); border-color: var(--kleur-bos); color: var(--kleur-wit); }
.leeg-bericht {
  border: 1px dashed var(--kleur-zand);
  border-radius: var(--radius);
  padding: 28px;
  color: #6b6b60;
  text-align: center;
}

/* ---------- Rooster (bestuur / leiding) ---------- */
.rooster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.rooster-kaart {
  background: var(--kleur-wit);
  border: 1px solid var(--kleur-zand);
  border-radius: var(--radius);
  overflow: hidden;
}
.rooster-kaart__kop {
  padding: 14px 20px;
  color: var(--kleur-wit);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.rooster-kaart ul { padding: 10px 0; }
.rooster-kaart li {
  padding: 9px 20px;
  border-bottom: 1px solid var(--kleur-canvas-donker);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.rooster-kaart li:last-child { border-bottom: none; }
.rooster-kaart li .functie { color: #6b6b60; font-size: 0.88rem; text-align: right; }

/* ---------- Groepspagina: kop met insigne, info en leiding ---------- */
.groep-kop {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
.groep-kop__badge { display: flex; }
.groep-kop__leiding h2 { font-size: 1.1rem; margin-bottom: 0.6em; }
@media (min-width: 860px) {
  .groep-kop { grid-template-columns: auto 1fr 340px; gap: 40px; }
}

/* ---------- Content secties (over ons / ontstaan) ---------- */
.content-blok { max-width: 72ch; }
.over-ons-teaser { position: relative; }
.over-ons-teaser__mascotte {
  position: absolute;
  right: 0;
  top: -12px;
  width: 130px;
  opacity: 0.94;
}
@media (max-width: 900px) {
  .over-ons-teaser__mascotte { display: none; }
}
.content-blok blockquote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--kleur-ember-donker);
  border-left: 3px solid var(--kleur-ember);
  padding-left: 20px;
  margin: 1.6em 0;
}
.content-blok p { color: #3a3a33; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--kleur-bos-donker);
  color: #E8E4D8;
  padding: 60px 0 30px;
  margin-top: 40px;
}
.site-footer h2 { color: var(--kleur-wit); font-size: 1.3rem; }
.site-footer a { color: var(--kleur-wit); }
.site-footer a:hover { color: var(--kleur-ember); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid dd { margin: 0 0 4px; color: #C9C5B7; }
.footer-grid dd b { color: var(--kleur-wit); }
.footer-icons { display: flex; gap: 10px; margin-top: 14px; }
.footer-icons a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.copyright { padding-top: 22px; font-size: 0.85rem; color: #9a9689; }
.copyright a { color: #C9C5B7; }
.poweredby { margin: 4px 0 0; font-size: 0.78rem; color: #8d8a7d; }
.poweredby a { color: #C9C5B7; }

/* ---------- Mascotte (Kleppie) & speelse accenten ---------- */
.mascotte {
  display: block;
  margin: 0 auto;
}
.mascotte--klein { width: 96px; }
.mascotte--midden { width: 160px; }
.mascotte--groot { width: 240px; }
.mascotte--zwevend { animation: mascotte-zweven 3.4s ease-in-out infinite; }
@keyframes mascotte-zweven {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-8px) rotate(1.5deg); }
}
.leeg-bericht--mascotte {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero__mascotte {
  position: absolute;
  bottom: -18px;
  right: -18px;
  width: 118px;
  filter: drop-shadow(0 8px 14px rgba(38,38,31,0.25));
  animation: mascotte-zweven 4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .mascotte--zwevend, .hero__mascotte { animation: none; }
}

/* ---------- Formulier-basis (ook gebruikt door het beheergedeelte) ---------- */
.form-groep { margin-bottom: 18px; }
.form-groep label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.form-groep .hulptekst { font-size: 0.82rem; color: #6b6b60; margin-top: 4px; }
input[type=text], input[type=date], input[type=time], input[type=email],
input[type=password], input[type=number], input[type=color], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--kleur-zand);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: var(--kleur-wit);
  color: var(--kleur-inkt);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--kleur-bos); outline-offset: 1px; }

/* ---------- Meldingen ---------- */
.melding {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 22px;
  font-size: 0.95rem;
  border: 1px solid transparent;
}
.melding--succes { background: #E4EFDD; border-color: #B8D2A2; color: #2C4A1A; }
.melding--fout { background: #F6DCD2; border-color: #E3A48B; color: #7A2E13; }

/* Utility */
.scherm-lezer-alleen {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
