:root {
  --color-bg: #f7f6f2;
  --color-surface: #ffffff;
  --color-text: #211f1d;
  --color-muted: #635f58;
  --color-primary: #a3271b;   /* Rot, Vereinsfarbe */
  --color-primary-dark: #7c1d13;
  --color-accent: #2c2c2c;    /* dunkles Anthrazit statt Schwarz */
  --color-gold: #b8860b;
  --color-border: #e3e0d8;
  --radius: 10px;
  --max-width: 1000px;
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

a { color: var(--color-primary-dark); }
img { max-width: 100%; display: block; }

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

/* ---------- Header ---------- */
.site-header {
  background: var(--color-surface);
  border-bottom: 3px solid var(--color-primary);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  flex-wrap: wrap;
}

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

.brand-logo {
  height: 64px;
  width: auto;
  border-radius: 6px;
}

.brand-name {
  display: flex;
  flex-direction: column;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1.2;
  white-space: nowrap;
}
/* Obere Zeile "Kyffhäuser Kameradschaft", gleiche Schrift wie der Vereinsname */
.brand-oben { display: block; }
@media (max-width: 420px) {
  .brand-name { font-size: 1.05rem; }
}

nav.main-nav {
  margin-left: auto;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: .95rem;
}

nav.main-nav a:hover,
nav.main-nav a.active { color: var(--color-primary); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(20,20,20,.15), rgba(20,20,20,.75)),
    var(--hero-img, none) center var(--hero-pos, 45%) / cover no-repeat;
  background-color: var(--color-primary-dark);
}

.hero .container { padding-bottom: 26px; }
.hero h1 { margin: 0; font-size: 2rem; }
.hero p { margin: 6px 0 0; font-size: 1.05rem; opacity: .95; }

.hero-simple { min-height: 160px; }

/* Startseite: Titel und Leitspruch mittig (waagerecht und senkrecht), gleichmäßig
   abgedunkeltes Bild, damit die Schrift überall gut lesbar ist */
.hero-center {
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(20,20,20,.45), rgba(20,20,20,.45)),
    var(--hero-img, none) center var(--hero-pos, 45%) / cover no-repeat;
  background-color: var(--color-primary-dark);
}
.hero-center .container { padding: 24px 16px; }
.hero-center h1 { font-size: 2.4rem; text-shadow: 0 2px 8px rgba(0,0,0,.45); }
.hero-center p { margin-top: 10px; font-size: 1.15rem; text-shadow: 0 1px 6px rgba(0,0,0,.45); }
/* Zeile über dem Vereinsnamen ("Kyffhäuser-Kameradschaft") */
.hero-center p.hero-oben { margin: 0 0 4px; font-size: 2.4rem; font-weight: 700; line-height: 1.2; opacity: 1; text-shadow: 0 2px 8px rgba(0,0,0,.45); }
@media (max-width: 640px) {
  .hero-center h1, .hero-center p.hero-oben { font-size: 1.7rem; }
}

/* ---------- Content ---------- */
main { padding: 44px 0 60px; }

/* Hintergrund für die ganze Seite (fest stehend, auch auf dem Handy), derzeit ohne Foto */
body { background: #3a5d46; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }  /* Fußzeile sitzt auch bei kurzen Seiten unten */
body::before {
  content: "";
  position: fixed;
  inset: -30px;  /* etwas größer, damit die Weichzeichnung keine hellen Ränder erzeugt */
  z-index: -1;
  /* Kein Foto: freundlicher Tannengrün-Verlauf (Weinberge, Wald) */
  background: radial-gradient(ellipse at 50% 0%, #5a8a68 0%, #3f6a50 50%, #2f4f3b 100%);
}
/* Keine Fläche hinter dem Inhalt: der Hintergrund scheint durch.
   Freier Text wird hell, die Kästen (Karten, Termine, Disziplinen) bleiben hell mit dunkler Schrift. */
main { color: #f4ede6; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
main h2, main h3 { color: #fff; }
main a:not(.btn) { color: #ffd08a; }
main .eyebrow, main figcaption, main .board-role, main .klein { color: #dccbbf; }
main .board-list li { border-color: rgba(255,255,255,.18); }
main .card, main .event-card, main .disciplines, main .field input, main .field textarea {
  color: var(--color-text);
  text-shadow: none;
}
main .card, main .event-card, main .disciplines {
  background: rgba(255,255,255,.93);
  box-shadow: 0 8px 26px rgba(0,0,0,.35);
  border-color: transparent;
}
main .disciplines h2, main .event-card h3 { color: var(--color-text); }
main .card a:not(.btn), main .event-card a:not(.btn), main .disciplines a:not(.btn) { color: var(--color-primary); }
/* Vorstandsbereich ohne Hintergrundbild */
body.ohne-hintergrund { background: var(--color-bg); display: block; }
body.ohne-hintergrund::before { display: none; }
section + section { margin-top: 40px; }

h2 {
  font-size: 1.4rem;
  margin: 0 0 16px;
  color: var(--color-accent);
}

.eyebrow {
  font-style: italic;
  color: var(--color-muted);
  margin: 0 0 6px;
}

.lead { font-size: 1.1rem; font-weight: 700; margin: 0 0 6px; }
.subtle-lead { color: var(--color-muted); margin: 0 0 20px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
}

.card h3 { margin: 0 0 6px; color: var(--color-primary-dark); font-size: 1.05rem; }
.card p { margin: 0; font-size: .95rem; }

.media-text {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.media-text img {
  flex: 0 0 260px;
  width: 260px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.media-text .text { flex: 1 1 320px; min-width: 260px; }

.media-text figcaption {
  text-align: center;
  font-size: .85rem;
  color: var(--color-muted);
  margin-top: 6px;
}

.disciplines {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px;
}

.disciplines img {
  flex: 0 0 220px;
  width: 220px;
  border-radius: var(--radius);
}

/* Zielscheibe rechts, aber etwas zur Mitte hin */
.disciplines .ziel { margin: 0 14% 0 auto; }

.disciplines ul {
  margin: 0;
  padding-left: 20px;
}
.disciplines li { margin-bottom: 6px; font-weight: 600; }

.event-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.event-card {
  display: flex;
  gap: 20px;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
  flex-wrap: wrap;
}

.event-card img {
  flex: 0 0 200px;
  width: 200px;
  border-radius: 8px;
}

.event-card .event-info { flex: 1 1 220px; }
.event-card .event-date {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.event-card .event-ort { margin: 4px 0 0; color: var(--color-muted); font-size: .92rem; }
.event-card .event-text { margin: 8px 0 0; white-space: pre-line; }

/* Impressum / Datenschutz */
.rechtstext { max-width: 760px; }
.rechtstext h2 { margin-top: 30px; font-size: 1.25rem; }
.rechtstext h2:first-child { margin-top: 0; }
.rechtstext h3 { margin: 22px 0 6px; font-size: 1.05rem; }
.rechtstext p { margin: 0 0 12px; }
.rechtstext .klein { font-size: .85rem; color: var(--color-muted); }
/* Noch fehlende Angaben, fallen bewusst auf */
mark.ergaenzen { background: #ffe066; color: #5a4300; padding: 0 4px; border-radius: 3px; }

/* Bildergalerie: Alben, Bildunterschrift, Großansicht */
.album-titel { margin: 28px 0 12px; }
.album-titel:first-child { margin-top: 0; }
.gallery-grid figure { margin: 0; cursor: zoom-in; }
.gallery-grid figcaption { font-size: .85rem; color: var(--color-muted); margin-top: 4px; }
.grossbild {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(10,10,10,.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px; cursor: zoom-out;
}
.grossbild img { max-width: 100%; max-height: calc(100vh - 90px); border-radius: 6px; }
.grossbild p { color: #eee; margin: 10px 0 0; text-align: center; }
.grossbild button {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15); color: #fff; border: none; border-radius: 50%;
  width: 46px; height: 46px; font-size: 1.6rem; cursor: pointer;
}
.grossbild .zurueck { left: 12px; }
.grossbild .weiter { right: 12px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.board-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.board-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.board-list li:last-child { border-bottom: none; }
.board-role { color: var(--color-muted); }
.board-name { font-weight: 700; }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .9rem; }
.field input,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: .95rem;
  font-family: inherit;
}
.field textarea { min-height: 110px; resize: vertical; }

.btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { background: var(--color-primary-dark); }

@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.6rem; }
  .media-text img, .disciplines img { flex: 1 1 100%; width: 100%; }
  .disciplines .ziel { margin: 0; }
}

/* ---------- Footer ---------- */
footer {
  background: var(--color-accent);
  color: #d9d7d3;
  padding: 18px 0;
  font-size: .9rem;
  /* immer am unteren Bildschirmrand sichtbar, bei kurzen Seiten ganz unten */
  position: sticky;
  bottom: 0;
  z-index: 10;
  box-shadow: 0 -4px 16px rgba(0,0,0,.25);
}
footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
footer a { color: #fff; }

/* Vorstandsbereich behält volle Breite */
body > .vw { width: 100%; box-sizing: border-box; }

/* Öffnungszeiten in der Mitte der Fußzeile */
footer .oeffnung { color: #fff; font-weight: 600; }
@media (max-width: 700px) {
  footer .container { flex-direction: column; align-items: center; text-align: center; gap: 4px; }
}

/* Anfahrt / Google-Karte auf der Kontaktseite (lädt erst nach Klick) */
.anfahrt { margin-top: 44px; }
.karte {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,.93);
  box-shadow: 0 8px 26px rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center;
}
.karte iframe { width: 100%; height: 100%; border: 0; display: block; }
.karte-hinweis { max-width: 520px; padding: 24px; text-align: center; color: var(--color-text); text-shadow: none; }
main .karte-hinweis a:not(.btn) { color: var(--color-primary); }
.karte-merken { display: block; margin-top: 12px; font-size: .88rem; color: var(--color-muted); }
@media (max-width: 600px) { .karte { height: 320px; } }
/* Wegbeschreibung unter der Karte (heller Kasten wie die übrigen Felder) */
.wegbeschreibung {
  margin-top: 18px; padding: 20px 24px;
  background: rgba(255,255,255,.93); color: var(--color-text); text-shadow: none;
  border-radius: var(--radius); box-shadow: 0 8px 26px rgba(0,0,0,.35);
}
main .wegbeschreibung h3 { margin: 0 0 6px; color: var(--color-primary-dark); }
.wegbeschreibung ol { margin: 8px 0 0; padding-left: 22px; }
.wegbeschreibung li { margin-bottom: 6px; }

/* ---------- Datenschutz-Einstellungen (Klaro!) in den Vereinsfarben ---------- */
.klaro {
  --green1: var(--color-primary);
  --green2: var(--color-primary-dark);
  --green3: var(--color-accent);
  --blue1: var(--color-accent);
  --button-text-color: #fff;
  --border-radius: var(--radius);
  --font-family: inherit;
  --title-font-family: inherit;
  text-shadow: none;
}
/* Platzhalter an der Google-Karte, solange nicht zugestimmt */
.karte > .klaro, .karte .cm-as-context-notice { width: 100%; height: 100%; }
.karte .context-notice {
  height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px;
  padding: 24px; text-align: center; color: var(--color-text); background: transparent; border: 0;
}

/* Eigenes Hintergrundbild nur auf der Kyffhäuser-Seite (Kyffhäuserdenkmal) */
body.seite-kyffhaeuser::before {
  background: linear-gradient(rgba(28,12,15,.62), rgba(28,12,15,.62)),
    url("/static/img/hintergrund-kyffhaeuser.jpg") center 30% / cover no-repeat;
  filter: blur(2px) saturate(.75);
}

/* Bildnachweis (z. B. CC-Lizenz) klein unter dem Inhalt */
.bildnachweis { margin-top: 36px; font-size: .78rem; opacity: .85; }
