/* ============================================================
   Wanderbewegung Kreis Pinneberg – Hauptstylesheet
   ============================================================
   Inhaltsverzeichnis:
   1.  Reset & Grundeinstellungen
   2.  CSS-Variablen (Designsystem)
   3.  Typografie
   4.  Navigation
   5.  Hero-Bereich
   6.  Abschnitt: Über uns
   7.  Abschnitt: Wanderprogramm & Schwarzes Brett
   8.  Abschnitt: Kalender
   9.  Abschnitt: Sondertermine
   10. Abschnitt: Mitglied werden
   11. Abschnitt: Bildergalerie
   12. Footer
   13. Hilfsklassen & Buttons
   14. Responsive (Mobile)
   ============================================================ */


/* ============================================================
   1. Reset & Grundeinstellungen
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.75;
  color: #2a2a2a;
  background-color: #f5f1ea;
}

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

a {
  color: inherit;
}


/* ============================================================
   2. CSS-Variablen (Designsystem)
   ============================================================ */
:root {
  /* Farben */
  --gruen-dunkel:   #1e4a0e;
  --gruen-mitte:    #2a5a18;
  --gruen-hell:     #4a8a28;
  --gruen-blass:    #eef5e6;
  --gruen-rand:     #b8d89a;
  --amber:          #c8901a;
  --amber-hell:     #fef8ec;
  --amber-rand:     #e8c97a;
  --creme:          #faf7f1;
  --creme-dunkel:   #f5f1ea;
  --text-dunkel:    #2a2a2a;
  --text-mittel:    #444444;
  --text-hell:      #666666;
  --weiss:          #ffffff;

  /* Abstände */
  --abstand-s:  1.5rem;
  --abstand-m:  3rem;
  --abstand-l:  4.5rem;

  /* Breiten */
  --max-breite: 960px;
}


/* ============================================================
   3. Typografie
   ============================================================ */
h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: normal;
  line-height: 1.25;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.15rem; }

.seriflos {
  font-family: Arial, Helvetica, sans-serif;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}


/* ============================================================
   13. Hilfsklassen & Buttons (früh definiert, wird überall genutzt)
   ============================================================ */
.wrap {
  max-width: var(--max-breite);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-titel {
  font-size: 1.65rem;
  color: var(--gruen-dunkel);
  margin-bottom: 0.3rem;
}

.section-untertitel {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  color: var(--text-hell);
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 26px;
  font-size: 0.9rem;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  text-decoration: none;
  border-radius: 3px;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s ease;
}

.btn:hover {
  opacity: 0.88;
}

.btn-amber {
  background: var(--amber);
  color: var(--weiss);
}

.btn-gruen {
  background: var(--gruen-mitte);
  color: var(--weiss);
}

.btn-outline-weiss {
  background: transparent;
  color: var(--weiss);
  border: 2px solid rgba(255,255,255,0.65);
}

.btn-outline-gruen {
  background: transparent;
  color: var(--gruen-mitte);
  border: 2px solid var(--gruen-hell);
}

.btn-pdf {
  background: var(--gruen-hell);
  color: var(--weiss);
  padding: 9px 18px;
  font-size: 0.8rem;
}


/* ============================================================
   4. Navigation
   ============================================================ */
.site-nav {
  background: var(--gruen-dunkel);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.nav-inner {
  max-width: var(--max-breite);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Logo */
.nav-logo a {
  display: block;
  text-decoration: none;
}

.nav-logo img {
  height: 52px;
  width: auto;
}

/* Desktop-Menü */
.nav-menu {
  display: flex;
  list-style: none;
  height: 70px;
}

.nav-menu li {
  position: relative;
}

.nav-menu > li > a {
  display: flex;
  align-items: center;
  height: 70px;
  padding: 0 15px;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.2px;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: background 0.15s ease;
}

.nav-menu > li:last-child > a {
  border-right: none;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.aktiv {
  background: rgba(255,255,255,0.1);
}

/* Dropdown */
.nav-menu li ul {
  display: none;
  position: absolute;
  top: 70px;
  left: 0;
  background: var(--gruen-dunkel);
  min-width: 220px;
  list-style: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  border-top: 2px solid var(--gruen-hell);
}

.nav-menu li:hover ul {
  display: block;
}

.nav-menu li ul li a {
  display: block;
  padding: 11px 18px;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.15s ease;
}

.nav-menu li ul li:last-child a {
  border-bottom: none;
}

.nav-menu li ul li a:hover {
  background: rgba(255,255,255,0.1);
}

/* Hamburger (Mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.25s ease;
}


/* ============================================================
   5. Hero-Bereich
   ============================================================ */
.hero {
  position: relative;
  padding: 80px 1.5rem 72px;
  text-align: center;
  overflow: hidden;
  background: var(--gruen-mitte);
}

/* Hintergrundbild (wird via JS/Inline-Style gesetzt) */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Grüner Overlay über dem Foto */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(22,55,10,0.62) 0%,
    rgba(30,74,14,0.55) 60%,
    rgba(25,60,10,0.72) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: 2.4rem;
  color: var(--weiss);
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero h1 em {
  font-style: italic;
  color: #c8e88a;
}

.hero-intro {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}


/* ============================================================
   6. Abschnitt: Über uns (Startseite-Snippet)
   ============================================================ */
.intro-section {
  background: var(--creme);
  padding: var(--abstand-m) 1.5rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.intro-bild {
  border-radius: 4px;
  overflow: hidden;
  height: 280px;
  background: var(--gruen-rand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gruen-dunkel);
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
}

.intro-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-text h2 {
  color: var(--gruen-dunkel);
  margin-bottom: 1rem;
}

.intro-text p {
  color: var(--text-mittel);
  font-size: 0.95rem;
}

.intro-liste {
  list-style: none;
  margin: 1rem 0 1.5rem;
}

.intro-liste li {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  color: var(--text-mittel);
  padding: 5px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.intro-liste li::before {
  content: "✦";
  color: var(--gruen-hell);
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 3px;
}


/* ============================================================
   7. Abschnitt: Wanderprogramm & Schwarzes Brett
   ============================================================ */
.programme-section {
  background: var(--weiss);
  padding: var(--abstand-m) 1.5rem;
}

.zwei-karten {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
}

.karte {
  background: var(--weiss);
  border: 2px solid var(--gruen-hell);
  border-radius: 4px;
  padding: 1.5rem;
}

.karte-titel {
  font-size: 1.1rem;
  color: var(--gruen-dunkel);
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--gruen-hell);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.karte-titel-icon {
  font-size: 1rem;
}

/* Programm-Karte */
.programm-zeitraum {
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--text-dunkel);
  margin-bottom: 0.4rem;
}

.programm-beschreibung {
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--text-hell);
  margin-bottom: 1rem;
}

.programm-btns {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Schwarzes Brett */
.brett-liste {
  list-style: none;
}

.brett-eintrag {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--gruen-blass);
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--text-mittel);
  line-height: 1.45;
}

.brett-eintrag:last-child {
  border-bottom: none;
}

.brett-punkt {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gruen-hell);
  flex-shrink: 0;
  margin-top: 5px;
}

.brett-datum {
  font-weight: bold;
  color: var(--gruen-dunkel);
  font-size: 0.78rem;
  display: block;
  margin-bottom: 1px;
}

/* Ladezustand */
.laden {
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  color: var(--text-hell);
  font-style: italic;
  padding: 0.5rem 0;
}


/* ============================================================
   8. Abschnitt: Kalender (nächste 4 Termine)
   ============================================================ */
.kalender-section {
  background: var(--gruen-blass);
  padding: var(--abstand-m) 1.5rem;
}

.termin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.termin-karte {
  background: var(--weiss);
  border: 1px solid var(--gruen-rand);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.termin-karte:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(30,74,14,0.15);
}

.termin-kopf {
  background: var(--gruen-mitte);
  color: var(--weiss);
  text-align: center;
  padding: 12px 8px;
}

.termin-karte.sondertermin .termin-kopf {
  background: var(--amber);
}

.termin-tag {
  font-size: 1.9rem;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1;
}

.termin-monat {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.5px;
  opacity: 0.88;
  margin-top: 2px;
}

.termin-body {
  padding: 12px;
}

.termin-km {
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: bold;
  background: var(--gruen-blass);
  color: var(--gruen-dunkel);
  padding: 2px 8px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 6px;
}

.termin-karte.sondertermin .termin-km {
  background: #fef0d5;
  color: #935e0c;
}

.termin-titel {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: bold;
  color: var(--text-dunkel);
  line-height: 1.35;
  margin-bottom: 4px;
}

.termin-treff {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  color: var(--text-hell);
  line-height: 1.4;
}

.sondertermin-label {
  font-family: Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: bold;
  color: var(--amber);
  display: block;
  margin-bottom: 2px;
}

.kalender-link-wrap {
  margin-top: 1.5rem;
}

.kalender-link {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
  color: var(--gruen-dunkel);
  text-decoration: none;
  font-weight: bold;
  border-bottom: 1px solid var(--gruen-hell);
  padding-bottom: 1px;
}

.kalender-link:hover {
  color: var(--gruen-hell);
}

/* Fehlermeldung / Leer */
.termin-leer {
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--text-hell);
  font-style: italic;
  padding: 1rem 0;
}


/* ============================================================
   9. Abschnitt: Sondertermine
   ============================================================ */
.sondertermine-section {
  background: var(--weiss);
  padding: var(--abstand-m) 1.5rem;
}

/* Wird ausgeblendet wenn leer */
.sondertermine-section.versteckt {
  display: none;
}

.sondertermine-box {
  background: var(--amber-hell);
  border: 2px solid var(--amber);
  border-radius: 4px;
  padding: 1.5rem;
}

.sondertermine-kopf {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.sondertermine-badge {
  background: var(--amber);
  color: var(--weiss);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.68rem;
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

.sondertermine-kopf h3 {
  font-size: 1rem;
  color: #7a4e08;
  font-weight: normal;
}

.sondertermine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.sonder-eintrag {
  background: var(--weiss);
  border: 1px solid var(--amber-rand);
  border-radius: 3px;
  padding: 1rem;
}

.sonder-datum {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--amber);
  margin-bottom: 4px;
}

.sonder-titel {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--text-dunkel);
  margin-bottom: 4px;
  line-height: 1.35;
}

.sonder-info {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  color: var(--text-hell);
  line-height: 1.45;
}

.sondertermine-leer {
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  color: #aaa;
  font-style: italic;
  text-align: center;
  padding: 0.5rem 0;
}


/* ============================================================
   10. Abschnitt: Mitglied werden (CTA)
   ============================================================ */
.mitglied-section {
  background: var(--gruen-dunkel);
  padding: var(--abstand-m) 1.5rem;
  text-align: center;
}

.mitglied-section h2 {
  color: var(--weiss);
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.mitglied-section p {
  color: rgba(255,255,255,0.82);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  max-width: 540px;
  margin: 0 auto 1.5rem;
}


/* ============================================================
   11. Abschnitt: Bildergalerie (Karussell)
   ============================================================ */
.galerie-section {
  background: var(--creme);
  padding: var(--abstand-m) 1.5rem;
}

.galerie-section h2 {
  color: var(--gruen-dunkel);
  margin-bottom: 0.3rem;
}

.galerie-section > .wrap > p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  color: var(--text-hell);
  margin-bottom: 1.3rem;
}

.galerie-raster {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.galerie-foto {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 3px;
  background: var(--gruen-rand);
  border: 1px solid #a8c98a;
}

.galerie-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.galerie-foto:hover img {
  transform: scale(1.04);
}


/* ============================================================
   12. Footer
   ============================================================ */
.site-footer {
  background: #111f0a;
  color: rgba(255,255,255,0.55);
  padding: 28px 1.5rem;
}

.footer-inner {
  max-width: var(--max-breite);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-links a:hover {
  color: rgba(255,255,255,0.7);
}


/* ============================================================
   14. Responsive (Mobile)
   ============================================================ */
@media (max-width: 800px) {

  /* Navigation */
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--gruen-dunkel);
    flex-direction: column;
    height: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }

  .nav-menu.offen {
    display: flex;
  }

  .nav-menu > li > a {
    height: auto;
    padding: 14px 1.5rem;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-menu li ul {
    position: static;
    display: block;
    box-shadow: none;
    border-top: none;
    background: rgba(0,0,0,0.15);
  }

  .nav-menu li ul li a {
    padding-left: 2.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero */
  .hero h1 {
    font-size: 1.7rem;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  /* Grids → 1 Spalte */
  .intro-grid,
  .zwei-karten,
  .sondertermine-grid {
    grid-template-columns: 1fr;
  }

  .intro-bild {
    height: 200px;
  }

  /* Kalender → 2 Spalten */
  .termin-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Galerie → 2 Spalten */
  .galerie-raster {
    grid-template-columns: 1fr 1fr;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .termin-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.45rem;
  }
}


/* ============================================================
   Lightbox (Galerie-Vollbild)
   ============================================================ */
.galerie-klickbar {
  cursor: zoom-in;
}

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

#lightbox.sichtbar {
  display: flex;
}

#lightbox-bild {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 3px;
  display: block;
}

#lightbox-schliessen {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  padding: 4px 10px;
}

#lightbox-schliessen:hover { opacity: 1; }

#lightbox-zurueck,
#lightbox-weiter {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 1rem 1.2rem;
  border-radius: 3px;
  opacity: 0.75;
  transition: opacity 0.15s, background 0.15s;
}

#lightbox-zurueck { left: 1rem; }
#lightbox-weiter  { right: 1rem; }

#lightbox-zurueck:hover,
#lightbox-weiter:hover {
  opacity: 1;
  background: rgba(255,255,255,0.22);
}

@media (max-width: 600px) {
  #lightbox-zurueck,
  #lightbox-weiter {
    padding: 0.7rem 0.9rem;
    font-size: 1.2rem;
  }
}
