/* SG Deutsche Eiche 1708 e.V. Roßtal — gemeinsames Stylesheet */

:root {
  --tanne: #0a5c36;
  --tanne-tief: #073f25;
  --tanne-hell: #12824c;
  --gold: #d4af37;
  --gold-dunkel: #a8862a;
  --gold-hell: #e8ce7a;
  --grund: #f2f5f1;
  --karte: #ffffff;
  --tinte: #1f2b24;
  --tinte-leise: #55645b;
  --linie: #d9e0d9;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { 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 {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tinte);
  background: var(--grund);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: var(--tanne-tief); }
h1 { font-size: 2.4rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.75rem; margin: 0 0 1rem; }
h3 { font-size: 1.25rem; margin: 1.5rem 0 0.5rem; }

/* Goldlinie unter Abschnittsüberschriften */
h2.linie {
  padding-bottom: 0.5rem;
  position: relative;
}
h2.linie::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 4.5rem; height: 3px;
  background: var(--gold);
}

a { color: var(--tanne); }
a:hover { color: var(--tanne-hell); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

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

.inhalt { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Kopf & Navigation ---------- */

.kopf {
  background: var(--tanne-tief);
  color: #fff;
  border-bottom: 3px solid var(--gold);
}
.kopf-zeile {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.marke {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  margin-right: auto;
}
.marke img { width: 56px; height: 56px; }
.marke .name { font-family: var(--serif); font-size: 1.15rem; line-height: 1.25; }
.marke .name small { display: block; font-family: var(--sans); font-size: 0.78rem; color: var(--gold-hell); }

.nav-schalter {
  display: none;
  background: none;
  border: 2px solid var(--gold);
  color: var(--gold-hell);
  font: inherit;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
}

nav.haupt ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; }
nav.haupt li { position: relative; }
nav.haupt a, nav.haupt button.auf {
  display: block;
  padding: 0.55rem 0.75rem;
  color: #f0f4ef;
  text-decoration: none;
  font-size: 0.98rem;
  border-radius: 4px;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}
nav.haupt a:hover, nav.haupt button.auf:hover { background: rgba(212, 175, 55, 0.18); color: #fff; }
nav.haupt a[aria-current="page"] { background: rgba(212, 175, 55, 0.28); color: #fff; }
nav.haupt a.beitritt {
  background: var(--gold);
  color: var(--tanne-tief);
  font-weight: 600;
  margin-left: 0.35rem;
}
nav.haupt a.beitritt:hover { background: var(--gold-hell); color: var(--tanne-tief); }

/* Aufklappmenü */
nav.haupt li.hat-unter > ul {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: 15rem;
  background: var(--tanne-tief);
  border: 1px solid var(--gold-dunkel);
  border-radius: 0 0 6px 6px;
  padding: 0.35rem;
  z-index: 50;
  flex-direction: column;
  align-items: stretch;
}
nav.haupt li.hat-unter.offen > ul { display: flex; }
nav.haupt li.hat-unter > ul a { padding: 0.5rem 0.75rem; }
@media (min-width: 861px) {
  nav.haupt li.hat-unter:hover > ul,
  nav.haupt li.hat-unter:focus-within > ul { display: flex; }
}

@media (max-width: 860px) {
  html.js .nav-schalter { display: block; }
  html.js nav.haupt { display: none; }
  html.js nav.haupt.offen { display: block; }
  nav.haupt { width: 100%; }
  /* Ohne JavaScript bleibt das Menü sichtbar, auch die Untermenüs */
  html:not(.js) nav.haupt li.hat-unter > ul { display: flex; }
  nav.haupt ul { flex-direction: column; align-items: stretch; padding-bottom: 0.5rem; }
  nav.haupt li.hat-unter > ul {
    position: static;
    border: 0;
    padding-left: 1rem;
    min-width: 0;
  }
  nav.haupt a.beitritt { margin: 0.35rem 0 0; text-align: center; }
}

/* ---------- Hero ---------- */

.held {
  background: var(--tanne-tief);
  color: #fff;
  overflow: hidden;
}
.held-zeile {
  max-width: 1080px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}
.held h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 1rem; }
.held h1 .jahr { color: var(--gold); }
.held p { font-size: 1.15rem; color: #dfe8e0; max-width: 34rem; margin: 0 0 1.75rem; }
.held .scheibe { justify-self: center; width: min(300px, 70vw); }
@media (max-width: 760px) {
  .held-zeile { grid-template-columns: 1fr; padding: 2.5rem 1.25rem; }
  .held .scheibe { display: none; }
}

/* ---------- Knöpfe ---------- */

.knopfleiste { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.knopf {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
}
.knopf.gold { background: var(--gold); color: var(--tanne-tief); border-color: var(--gold); }
.knopf.gold:hover { background: var(--gold-hell); border-color: var(--gold-hell); color: var(--tanne-tief); }
.knopf.kontur { border-color: var(--gold); color: var(--gold-hell); }
.knopf.kontur:hover { background: rgba(212, 175, 55, 0.15); color: #fff; }
.knopf.gruen { background: var(--tanne); color: #fff; border-color: var(--tanne); }
.knopf.gruen:hover { background: var(--tanne-hell); border-color: var(--tanne-hell); color: #fff; }
.knopf.gruen-kontur { border-color: var(--tanne); color: var(--tanne); }
.knopf.gruen-kontur:hover { background: rgba(10, 92, 54, 0.08); }

/* ---------- Abschnitte & Karten ---------- */

main section { padding: 2.75rem 0; }
main section.hell { background: var(--karte); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }

.kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.kachel {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: var(--tinte);
  display: flex;
  flex-direction: column;
}
.kachel:hover { border-color: var(--gold); color: var(--tinte); }
.kachel img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.kachel .text { padding: 1rem 1.15rem 1.25rem; }
.kachel h3 { margin: 0 0 0.35rem; }
.kachel p { margin: 0; color: var(--tinte-leise); font-size: 0.95rem; }
.kachel .zeit { display: block; margin-top: 0.6rem; font-size: 0.9rem; color: var(--tanne); font-weight: 600; }

/* ---------- Tabellen ---------- */

table { width: 100%; border-collapse: collapse; background: var(--karte); }
caption { text-align: left; font-family: var(--serif); font-size: 1.15rem; padding: 0 0 0.6rem; color: var(--tanne-tief); }
th, td { text-align: left; padding: 0.6rem 0.85rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
thead th { background: var(--tanne); color: #fff; font-weight: 600; }
tbody tr:nth-child(even) { background: #f7faf6; }
.tabelle-rollen { overflow-x: auto; }

/* ---------- Bildreihen ---------- */

.bildreihe {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.bildreihe figure { margin: 0; }
.bildreihe img { border-radius: 6px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
figcaption { font-size: 0.88rem; color: var(--tinte-leise); margin-top: 0.4rem; }

/* ---------- Hinweis- und Infokästen ---------- */

.hinweis {
  background: var(--karte);
  border-left: 4px solid var(--gold);
  padding: 1rem 1.25rem;
  border-radius: 0 6px 6px 0;
  margin: 1.5rem 0;
}
.hinweis.gruen { border-left-color: var(--tanne); }

.cta-kasten {
  background: var(--tanne-tief);
  color: #fff;
  border-radius: 8px;
  padding: 2rem 1.75rem;
  margin: 2.5rem 0 0;
}
.cta-kasten h2 { color: #fff; margin-top: 0; }
.cta-kasten p { color: #dfe8e0; max-width: 40rem; }

/* ---------- Definitionen / FAQ ---------- */

details.frage {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: 6px;
  margin-bottom: 0.6rem;
  padding: 0;
}
details.frage summary {
  cursor: pointer;
  padding: 0.8rem 1.1rem;
  font-weight: 600;
  color: var(--tanne-tief);
}
details.frage[open] summary { border-bottom: 1px solid var(--linie); }
details.frage .antwort { padding: 0.8rem 1.1rem; }
details.frage .antwort p:first-child { margin-top: 0; }
details.frage .antwort p:last-child { margin-bottom: 0; }

/* ---------- Chronik ---------- */

.chronik { list-style: none; margin: 1.5rem 0; padding: 0; border-left: 3px solid var(--gold); }
.chronik li { padding: 0 0 1.4rem 1.5rem; position: relative; }
.chronik li::before {
  content: "";
  position: absolute;
  left: -0.5rem; top: 0.45rem;
  width: 0.85rem; height: 0.85rem;
  border-radius: 50%;
  background: var(--tanne);
  border: 2px solid var(--gold);
}
.chronik .jahr { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--tanne-tief); display: block; }

/* ---------- Galerie ---------- */

.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.galerie a { display: block; border-radius: 6px; overflow: hidden; border: 1px solid var(--linie); background: var(--karte); }
.galerie a:hover { border-color: var(--gold); }
.galerie img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.galerie figcaption { padding: 0.45rem 0.6rem; margin: 0; }

/* ---------- Fuß ---------- */

.fuss {
  background: var(--tanne-tief);
  color: #cfdad0;
  border-top: 3px solid var(--gold);
  margin-top: 3rem;
  font-size: 0.95rem;
}
.fuss-zeile {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
}
.fuss h3 { color: var(--gold-hell); font-size: 1.05rem; margin: 0 0 0.6rem; }
.fuss a { color: #eef3ee; }
.fuss a:hover { color: var(--gold-hell); }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: 0.35rem; }
.fuss address { font-style: normal; }
.fuss .unten {
  border-top: 1px solid rgba(212, 175, 55, 0.35);
  text-align: center;
  padding: 0.9rem 1.25rem;
  font-size: 0.85rem;
  color: #a8b8aa;
}

/* ---------- Sonstiges ---------- */

.leise { color: var(--tinte-leise); font-size: 0.92rem; }
.zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 760px) { .zwei-spalten { grid-template-columns: 1fr; } }

.skiplink {
  position: absolute;
  left: -9999px;
  background: var(--gold);
  color: var(--tanne-tief);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skiplink:focus { left: 0.5rem; top: 0.5rem; }
