/* =========================================================
   Dorfverein Jeesewitz – Platzhalterseite
   Farben bequem hier oben anpassen:
   ========================================================= */
:root {
  --gruen:        #3d5940;   /* Header & Footer (Waldgrün) */
  --gruen-hover:  #4c6d4e;
  --gold:         #c9a227;   /* Akzent / Buttons */
  --gold-hover:   #b18f1f;
  --main-bg-1:    #faf3dd;   /* Hauptteil oben  (warmes Creme) */
  --main-bg-2:    #f1e2b4;   /* Hauptteil unten (sanftes Gold) */
  --creme:        #fffdf5;   /* Karten-Hintergrund */
  --text:         #2e2a20;
  --text-hell:    #6b6350;
  --auf-gruen:    #f4efe0;   /* Textfarbe auf grünem Grund */

  --bg-bild-deckkraft: 0.5;  /* Halbtransparenz des Hintergrundbildes */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Work Sans', system-ui, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: linear-gradient(160deg, var(--main-bg-1), var(--main-bg-2));
  background-attachment: fixed;
}

/* Halbtransparentes Hintergrundbild.
   Fehlt die Datei assets/hintergrund.jpg, bleibt einfach der Farbverlauf sichtbar. */
.bg-layer {
  position: fixed;
  inset: 0;
  background-image: url('assets/hintergrund.jpg');
  background-size: cover;
  background-position: center;
  opacity: var(--bg-bild-deckkraft);
  z-index: -1;
  pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--gruen);
  color: var(--auf-gruen);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.14);
}
/* Logo oben links – wird automatisch ausgeblendet, wenn assets/logo.png fehlt */
.logo { height: 52px; width: auto; display: block; }
.brand { display: flex; flex-direction: column; }
.brand-name {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.1;
}
.brand-sub {
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.85;
}
.header-spacer { flex: 1; }

/* ---------- Wechselbutton (Header) ---------- */
.switch-btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gruen);
  background: var(--gold);
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}
.switch-btn:hover { background: var(--gold-hover); }
.switch-btn:active { transform: translateY(1px); }
.switch-btn:focus-visible { outline: 3px solid var(--auf-gruen); outline-offset: 2px; }

/* ---------- Hauptteil ---------- */
.site-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}
.card {
  background: var(--creme);
  border-radius: 18px;
  padding: 3rem 2.5rem;
  max-width: 640px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 44px rgba(61,89,64,0.18);
  border: 1px solid rgba(201,162,39,0.35);
}

.headline {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  color: var(--gruen);
  margin-bottom: 0.6rem;
  display: inline-block;
  position: relative;
}
/* Signatur: sanft aufziehende Unterstreichung (Grün → Gold) */
.headline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  height: 4px;
  width: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gruen), var(--gold));
  transform-origin: left;
  animation: grow 1.4s ease-out both;
}
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.lead { font-size: 1.15rem; margin: 1.4rem 0 0.6rem; }
.muted { color: var(--text-hell); }
.contact { margin-top: 1.7rem; font-size: 0.95rem; color: var(--text-hell); }
.contact a { color: var(--gruen); font-weight: 600; }

/* ---------- Impressum ---------- */
.impressum { text-align: left; }
.impressum h1 {
  font-family: 'Fraunces', serif;
  color: var(--gruen);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.impressum h2 {
  font-family: 'Fraunces', serif;
  color: var(--gruen);
  font-size: 1.15rem;
  margin: 1.6rem 0 0.35rem;
}
.impressum p { margin-bottom: 0.5rem; }
.placeholder { color: var(--text-hell); font-style: italic; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--gruen);
  color: var(--auf-gruen);
  text-align: center;
  padding: 1.2rem 1.5rem;
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
}
.site-footer a { color: var(--gold); text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Responsiv ---------- */
@media (max-width: 520px) {
  .brand-name { font-size: 1.1rem; }
  .card { padding: 2.2rem 1.4rem; }
  .site-header { padding: 0.85rem 1rem; gap: 0.75rem; }
  .logo { height: 42px; }
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  .headline::after { animation: none; }
  html { scroll-behavior: auto; }
}
