/* ============================================================
   KAISERJÄGER PLANGEROSS — STYLESHEET
   Farben und Schriften unten in :root definieren das ganze Aussehen.
   Wer die Farben ändern möchte, muss nur diese Variablen anpassen.
   ============================================================ */

:root {
  /* --- Farben, abgeleitet aus dem Vereinswappen --- */
  --color-sage: #9caf7e;        /* Salbeigrün — Primärfarbe (Ring des Wappens) */
  --color-sage-dark: #5c6e46;   /* dunkleres Waldgrün — Hover/Akzente (Bergkette) */
  --color-cream: #f6f1e6;       /* warmes Creme — Seitenhintergrund statt Weiß */
  --color-cream-deep: #efe6d3;  /* etwas dunkleres Creme für Karten/Abschnitte */
  --color-charcoal: #2c2a26;    /* Anthrazit — Fließtext, Kirchendach */
  --color-stone: #8a8f86;       /* Steingrau — Rahmen, sekundärer Text */
  --color-sky-mist: #e3e8ea;    /* helles Blaugrau — alternierende Abschnitte */
  --color-gold: #b08d3f;        /* Antik-Gold — sparsam für Jubiläum/Ehrenzeichen */
  --color-gold-light: #f1e2ba;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --max-width: 1100px;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(44, 42, 38, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background: var(--color-cream);
  line-height: 1.6;
}

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

a { color: var(--color-sage-dark); }
a:hover { color: var(--color-gold); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin-top: 0;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.3rem; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 3.5rem 0; }
.section--tinted { background: var(--color-sky-mist); }
.section--deep { background: var(--color-cream-deep); }

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--color-stone);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

/* ===== Berg-Trenner (dekorative Silhouette zwischen Abschnitten) ===== */
.ridge-divider {
  width: 100%;
  height: 40px;
  color: var(--color-sage);
  display: block;
}

/* ============================================================
   HEADER / NAVIGATION
   Dieser Block ist in jeder HTML-Datei identisch kopiert.
   Änderungen (z.B. Telefonnummer, neuer Menüpunkt) müssen in
   ALLEN Seiten nachgezogen werden — siehe anleitung-texte-aendern.txt
   ============================================================ */
.site-header {
  background: var(--color-cream);
  border-bottom: 3px solid var(--color-sage);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--color-charcoal);
}

.brand img { width: 52px; height: 52px; }

.brand__text {
  font-family: var(--font-display);
  line-height: 1.1;
}

.brand__text strong { display: block; font-size: 1.15rem; }
.brand__text span { font-size: 0.8rem; color: var(--color-sage-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--color-sage-dark);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--color-sage-dark);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-charcoal);
  font-weight: 600;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--color-sage-dark);
  border-bottom-color: var(--color-gold);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-sky-mist) 100%);
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.hero img.hero-logo {
  width: 150px;
  height: 150px;
  margin: 0 auto 1.2rem;
}

.hero p.lead {
  max-width: 620px;
  margin: 1rem auto 0;
  font-size: 1.1rem;
}

.hero .tagline {
  color: var(--color-sage-dark);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  background: var(--color-sage-dark);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1.5rem;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn:hover { background: var(--color-gold); color: var(--color-charcoal); transform: translateY(-2px); }

.btn--outline {
  background: transparent;
  border: 2px solid var(--color-sage-dark);
  color: var(--color-sage-dark);
}

.btn--outline:hover { background: var(--color-sage-dark); color: #fff; }

/* ============================================================
   JUBILÄUMS-BANNER (25 Jahre)
   ============================================================ */
.jubilee-banner {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-cream-deep));
  border: 2px solid var(--color-gold);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto 3rem;
}

.jubilee-banner__icon {
  width: 64px;
  height: 64px;
  color: var(--color-gold);
  flex-shrink: 0;
}

.jubilee-banner h2 {
  margin: 0 0 0.3rem;
  color: var(--color-sage-dark);
}

.jubilee-banner p { margin: 0; }

/* ============================================================
   KARTEN (Teaser, Highlights)
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem;
  border-top: 4px solid var(--color-sage);
}

.card__icon {
  width: 42px;
  height: 42px;
  color: var(--color-sage-dark);
  margin-bottom: 0.8rem;
}

.card h3 { margin-bottom: 0.5rem; }

.card p { margin: 0; color: var(--color-charcoal); }

.card--link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card--link:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(44,42,38,0.18);
}

/* ===== Hervorhebungs-Kästen (Geschichte-Seite) ===== */
.highlight-box {
  background: #fff;
  border-left: 6px solid var(--color-gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin: 2.5rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.highlight-box.has-image {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.highlight-box__label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.highlight-box img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ===== Sekundärer Hintergrund-Kasten ("Herkunft der Tradition") ===== */
.background-box {
  background: var(--color-sky-mist);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  margin-top: 3rem;
}

.background-box h3 { color: var(--color-sage-dark); }
.background-box ul { padding-left: 1.2rem; margin-bottom: 0; }
.background-box li { margin-bottom: 0.4rem; }

/* ============================================================
   ZEITLEISTE (Chronik)
   ============================================================ */
.timeline {
  position: relative;
  margin: 2.5rem 0;
  padding-left: 2rem;
  border-left: 3px solid var(--color-sage);
}

.timeline__item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -2.55rem;
  top: 0.2rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-sage-dark);
  border: 3px solid var(--color-cream);
  box-shadow: 0 0 0 2px var(--color-sage);
}

.timeline__item--milestone::before {
  background: var(--color-gold);
  box-shadow: 0 0 0 2px var(--color-gold);
  width: 18px;
  height: 18px;
  left: -2.65rem;
}

.timeline__year {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-sage-dark);
  margin: 0 0 0.2rem;
}

.timeline__item--milestone .timeline__year { color: var(--color-gold); }

.timeline__item p { margin: 0.2rem 0 0; }

/* ============================================================
   TERMINE / AKTUELLES
   ============================================================ */
.termin-card {
  display: flex;
  gap: 1.2rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem 1.5rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.termin-card__date {
  flex-shrink: 0;
  width: 72px;
  text-align: center;
  background: var(--color-sage);
  color: #fff;
  border-radius: 8px;
  padding: 0.5rem 0.3rem;
  font-family: var(--font-display);
}

.termin-card__date .day { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1; }
.termin-card__date .month { display: block; font-size: 0.75rem; text-transform: uppercase; }

.termin-card h3 { margin: 0 0 0.2rem; font-size: 1.1rem; }
.termin-card .ort { color: var(--color-stone); font-size: 0.9rem; }

.fixpunkte-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.fixpunkt {
  background: var(--color-cream-deep);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
}

.fixpunkt h4 { margin: 0 0 0.3rem; color: var(--color-sage-dark); }
.fixpunkt p { margin: 0; font-size: 0.92rem; }

/* ============================================================
   VORSTAND / MITGLIEDSCHAFT
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 1.5rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-sage-dark);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
}

.board-member {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem;
  text-align: center;
}

.board-member .role {
  color: var(--color-sage-dark);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.board-member .name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-top: 0.3rem;
}

/* ============================================================
   KONTAKT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info dt {
  font-weight: 700;
  color: var(--color-sage-dark);
  margin-top: 1rem;
}

.contact-info dd { margin: 0.1rem 0 0; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: none;
}

.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

.impressum {
  background: var(--color-cream-deep);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  margin-top: 2.5rem;
  font-size: 0.95rem;
}

.impressum h3 { margin-top: 0; }

.privacy-note {
  font-size: 0.85rem;
  color: var(--color-stone);
  margin-top: 1.5rem;
}

/* ============================================================
   GALERIE — Album-Übersichtskarten
   ============================================================ */
.album-cover {
  overflow: hidden;
  padding-top: 0;
}

.album-cover__img {
  width: calc(100% + 3.6rem);
  margin: 0 -1.8rem 1.2rem;
  height: 170px;
  object-fit: cover;
}

.album-cover h3 { margin-top: 0; }
.album-cover .ort { color: var(--color-sage-dark); font-weight: 600; font-size: 0.85rem; margin: 0 0 0.5rem; }

/* ============================================================
   GALERIE
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.gallery-item {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
  color: var(--color-stone);
}

.gallery-item { margin: 0; }

.gallery-item img { cursor: pointer; }

/* ============================================================
   LIGHTBOX (vergrößerte Fotoansicht)
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 15, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 2rem;
}

.lightbox[hidden] { display: none; }

.lightbox__img {
  max-width: 90vw;
  max-height: 78vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox__caption {
  color: var(--color-cream);
  margin-top: 1rem;
  text-align: center;
  max-width: 700px;
  font-size: 0.95rem;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox__close {
  top: 1.2rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 1.4rem;
}

.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }

@media (max-width: 600px) {
  .lightbox__prev, .lightbox__next { width: 38px; height: 38px; font-size: 1.1rem; }
  .lightbox__close { width: 38px; height: 38px; font-size: 1.5rem; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-charcoal);
  color: var(--color-cream);
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
}

.site-footer a { color: var(--color-cream); }
.site-footer a:hover { color: var(--color-gold); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-grid h4 {
  font-family: var(--font-display);
  color: var(--color-gold-light);
  margin-bottom: 0.6rem;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.4rem; }

.site-footer .bottom {
  border-top: 1px solid rgba(246,241,230,0.2);
  padding-top: 1rem;
  font-size: 0.82rem;
  color: var(--color-stone);
  text-align: center;
}

/* ============================================================
   RESPONSIVE / MOBILE
   ============================================================ */
@media (max-width: 780px) {
  .nav-toggle { display: inline-block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-cream);
    border-bottom: 3px solid var(--color-sage);
  }

  .main-nav.is-open { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
  }

  .main-nav li { border-top: 1px solid var(--color-sky-mist); }
  .main-nav a { display: block; padding: 0.8rem 0; }

  .site-header__inner { position: relative; }

  .highlight-box.has-image {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .jubilee-banner {
    flex-direction: column;
    text-align: center;
  }
}
