/* ==========================================================================
   Kleingartenverein „Im Rosenhain“ e. V. · Krefeld
   Heller, klassischer Vereins-Look: zartes Grün, Serifen-Titel im Naturbild,
   Kontakt-Seitenleiste. Rosenrot bleibt der Akzent des Rosenhains.
   Schriften: Vollkorn (Überschriften) + Nunito Sans (Text), lokal eingebunden.
   ========================================================================== */

:root {
  --blatt-hell:   #f2f8df;   /* zarter Seitengrund */
  --blatt-zart:   #e6f0c9;   /* Pills, Flächen */
  --blatt-linie:  #d4e0b4;   /* feine Linien */
  --gruen-tief:   #2c4531;   /* Überschriften, dunkle Schrift */
  --gruen:        #41603f;   /* Nebentitel, Icons */
  --gruen-blatt:  #6c8a5a;   /* Balken, Punkte */
  --weiss:        #ffffff;
  --rose:         #b5384b;   /* Rosenrot – Akzent & Haupt-Buttons */
  --rose-dunkel:  #8f2a3b;
  --rose-hell:    #f7e3e6;
  --text:         #38483a;
  --text-neben:   #5d6e58;
  --fokus:        #1d6fb8;

  --schrift-kopf: 'Vollkorn', Georgia, 'Times New Roman', serif;
  --schrift-text: 'Nunito Sans', 'Segoe UI', Arial, sans-serif;

  --breite: 1120px;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--schrift-text);
  font-size: 1.1875rem;            /* 19 px – bewusst groß und gut lesbar */
  line-height: 1.7;
  color: var(--text);
  background: var(--blatt-hell);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--schrift-kopf);
  font-weight: 700;
  line-height: 1.18;
  color: var(--gruen-tief);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.5rem); }

p { margin: 0 0 1.1em; max-width: 68ch; }

a { color: var(--rose); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--rose-dunkel); }

:focus-visible {
  outline: 3px solid var(--fokus);
  outline-offset: 3px;
  border-radius: 4px;
}

.innen {
  width: min(var(--breite), 100% - 2.5rem);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Kopfbereich: Navigation und Titel liegen im weichen Naturbild
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  padding: 1.2rem 0 4.2rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/hero-rosen.jpg") center 42% / cover no-repeat;
}
.hero::after {
  /* sanfter heller Schleier, damit Navigation und Titel sicher lesbar sind */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 72% 62% at 50% 62%, rgba(255,255,255,0.78) 0%, rgba(255,255,255,0.34) 55%, rgba(255,255,255,0) 100%),
    linear-gradient(to bottom, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.12) 38%, rgba(242,248,223,0.05) 82%, var(--blatt-hell) 100%);
}
.hero-start { padding-bottom: 5.5rem; }

.kopfzeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.marke {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.marke svg { width: 52px; height: 52px; flex: none; filter: drop-shadow(0 1px 4px rgba(44,69,49,0.25)); }
.marke .marke-name {
  font-family: var(--schrift-kopf);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--gruen-tief);
  line-height: 1.05;
}
.marke .marke-zusatz {
  display: block;
  font-family: var(--schrift-text);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--gruen);
}

.nav-liste {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-liste a {
  color: var(--gruen-tief);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.08rem;
  padding: 0.35rem 0.1rem;
  border-bottom: 3px solid transparent;
}
.nav-liste a:hover { border-bottom-color: var(--gruen-blatt); color: var(--gruen-tief); }
.nav-liste a.aktiv { border-bottom-color: var(--rose); }
.nav-liste a.nav-knopf {
  background: var(--rose);
  color: #fff;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border-bottom: none;
  box-shadow: 0 2px 10px rgba(181,56,75,0.3);
}
.nav-liste a.nav-knopf:hover { background: var(--rose-dunkel); color: #fff; }

.nav-schalter {
  display: none;
  background: rgba(255,255,255,0.85);
  border: 2px solid var(--gruen);
  border-radius: 10px;
  color: var(--gruen-tief);
  font: inherit;
  font-weight: 800;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
}

@media (max-width: 880px) {
  .nav-schalter { display: block; }
  .nav-liste {
    display: none;
    position: absolute;
    top: 76px;
    left: 1rem; right: 1rem;
    z-index: 20;
    background: var(--weiss);
    border: 1px solid var(--blatt-linie);
    border-radius: var(--radius);
    box-shadow: 0 16px 34px rgba(44,69,49,0.2);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 1.1rem 1.1rem;
  }
  .nav-liste.offen { display: flex; }
  .nav-liste li { border-top: 1px solid var(--blatt-linie); }
  .nav-liste li:first-child { border-top: none; }
  .nav-liste a { display: block; padding: 0.85rem 0.2rem; border-bottom: none; font-size: 1.12rem; }
  .nav-liste a.nav-knopf { margin-top: 0.8rem; text-align: center; }
}

/* Titel im Hero – zentriert wie beim klassischen Vereinsauftritt */
.hero-titel {
  text-align: center;
  margin-top: clamp(2.2rem, 6vw, 4.2rem);
}
.hero-titel h1 {
  margin-bottom: 0.25em;
  text-shadow: 0 1px 0 rgba(255,255,255,0.85), 0 2px 18px rgba(255,255,255,0.8);
}
.hero-untertitel {
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  color: var(--gruen);
  font-weight: 700;
  max-width: none;
  margin: 0 auto 0.4em;
  text-shadow: 0 1px 0 rgba(255,255,255,0.85), 0 2px 14px rgba(255,255,255,0.8);
}
.hero-seit {
  font-family: var(--schrift-kopf);
  font-style: italic;
  font-size: clamp(1.1rem, 1.9vw, 1.3rem);
  color: var(--rose-dunkel);
  max-width: none;
  margin: 0 auto;
  text-shadow: 0 1px 0 rgba(255,255,255,0.85), 0 2px 14px rgba(255,255,255,0.8);
}
.hero-knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 1.9rem;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-titel > * {
    opacity: 0;
    transform: translateY(12px);
    animation: ankommen 0.7s ease forwards;
  }
  .hero-titel > *:nth-child(2) { animation-delay: 0.12s; }
  .hero-titel > *:nth-child(3) { animation-delay: 0.24s; }
  .hero-titel > *:nth-child(4) { animation-delay: 0.36s; }
  @keyframes ankommen { to { opacity: 1; transform: none; } }
}

/* --------------------------------------------------------------------------
   Knöpfe
   -------------------------------------------------------------------------- */
.knopf {
  display: inline-block;
  font-family: var(--schrift-text);
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.9rem 1.8rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.knopf-rose { background: var(--rose); color: #fff; box-shadow: 0 2px 12px rgba(181,56,75,0.28); }
.knopf-rose:hover { background: var(--rose-dunkel); color: #fff; }
.knopf-zart { background: var(--blatt-zart); color: var(--gruen-tief); border-color: var(--blatt-linie); }
.knopf-zart:hover { background: #dcebb6; color: var(--gruen-tief); }

/* --------------------------------------------------------------------------
   Abschnitte: zentrierte Überschrift mit feiner Linie
   -------------------------------------------------------------------------- */
.abschnitt { padding: 3.8rem 0; }
.abschnitt-weiss { background: var(--weiss); border-block: 1px solid var(--blatt-linie); }

.abschnitt-titel {
  text-align: center;
  margin-bottom: 2.4rem;
}
.abschnitt-titel .vorsatz {
  font-family: var(--schrift-kopf);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--rose);
  display: block;
  margin-bottom: 0.3rem;
}
.abschnitt-titel h2 { margin-bottom: 0.8rem; }
.abschnitt-titel::after {
  content: "";
  display: block;
  width: min(560px, 70%);
  height: 1px;
  background: var(--blatt-linie);
  margin: 0 auto;
}

.vorsatz {
  font-family: var(--schrift-kopf);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--rose);
  display: block;
  margin-bottom: 0.35rem;
}

.zweispaltig {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
}
@media (max-width: 860px) {
  .zweispaltig { grid-template-columns: 1fr; }
}

.bildrahmen {
  border-radius: var(--radius);
  overflow: hidden;
  border: 6px solid var(--weiss);
  box-shadow: 0 10px 28px rgba(44, 69, 49, 0.18);
}
.bildrahmen img { width: 100%; height: 100%; object-fit: cover; }
.bildnotiz {
  font-size: 0.95rem;
  color: var(--text-neben);
  margin-top: 0.6rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Layout mit Kontakt-Seitenleiste
   -------------------------------------------------------------------------- */
.mit-seite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(2rem, 4vw, 3.2rem);
  align-items: start;
}
@media (max-width: 920px) {
  .mit-seite { grid-template-columns: 1fr; }
}
.seitenleiste {
  border-left: 1px solid var(--blatt-linie);
  padding-left: clamp(1.4rem, 2.5vw, 2.2rem);
}
@media (max-width: 920px) {
  .seitenleiste { border-left: none; padding-left: 0; border-top: 1px solid var(--blatt-linie); padding-top: 1.8rem; }
}
.seitenleiste h3 {
  text-align: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.seitenleiste p { text-align: center; font-size: 1.05rem; margin-bottom: 0.9rem; }
.seitenleiste .block { margin-bottom: 2.2rem; }
.seitenleiste .block:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Abstimmung von 1964 – das Herzstück der Startseite
   -------------------------------------------------------------------------- */
.wahl {
  background: var(--weiss);
  border-radius: var(--radius);
  border: 1px solid var(--blatt-linie);
  box-shadow: 0 10px 26px rgba(44, 69, 49, 0.12);
  padding: clamp(1.4rem, 3.5vw, 2.3rem);
}
.wahl-titel {
  font-family: var(--schrift-kopf);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-neben);
  margin: 0 0 1.2rem;
  text-align: center;
}
.wahl-zeile { margin-bottom: 1.05rem; }
.wahl-zeile:last-child { margin-bottom: 0; }
.wahl-name {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.wahl-stimmen { font-size: 1rem; color: var(--text-neben); font-weight: 700; white-space: nowrap; }
.wahl-balken {
  height: 15px;
  border-radius: 999px;
  background: var(--blatt-zart);
  overflow: hidden;
}
.wahl-balken span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--gruen-blatt);
}
.wahl-zeile.gewinner .wahl-name { color: var(--rose-dunkel); font-size: 1.12em; }
.wahl-zeile.gewinner .wahl-balken span { background: var(--rose); }
.wahl-zeile.gewinner .wahl-stimmen { color: var(--rose-dunkel); font-weight: 800; }

/* --------------------------------------------------------------------------
   Karten
   -------------------------------------------------------------------------- */
.karten {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 920px) { .karten { grid-template-columns: 1fr; } }
.karte {
  background: var(--weiss);
  border: 1px solid var(--blatt-linie);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  box-shadow: 0 6px 18px rgba(44, 69, 49, 0.08);
  text-align: center;
}
.karte h3 { margin-top: 0.8rem; }
.karte p { margin-bottom: 0; font-size: 1.06rem; }
.karte svg { width: 46px; height: 46px; margin: 0 auto; }
.karte .schritt-nr {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--blatt-zart);
  color: var(--gruen-tief);
  font-family: var(--schrift-kopf);
  font-weight: 800;
  font-size: 1.5rem;
}

/* --------------------------------------------------------------------------
   Zitat
   -------------------------------------------------------------------------- */
.zitat-karte {
  background: var(--weiss);
  border: 1px solid var(--blatt-linie);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(44, 69, 49, 0.1);
  padding: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
}
.zitat {
  font-family: var(--schrift-kopf);
  font-style: italic;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.45;
  color: var(--gruen-tief);
  max-width: 28ch;
  margin: 0.8rem auto 0;
}
.zitat-quelle {
  color: var(--text-neben);
  margin: 1rem auto 0;
  font-size: 1.02rem;
}

/* --------------------------------------------------------------------------
   Zeitstrahl (Geschichte)
   -------------------------------------------------------------------------- */
.zeitstrahl {
  position: relative;
  margin-top: 2.6rem;
  padding-left: 2.2rem;
  border-left: 3px solid var(--blatt-linie);
  max-width: 740px;
}
.zeit-punkt { position: relative; padding-bottom: 2.6rem; }
.zeit-punkt:last-child { padding-bottom: 0; }
.zeit-punkt::before {
  content: "";
  position: absolute;
  left: calc(-2.2rem - 10px);
  top: 0.45rem;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--rose);
  border: 3px solid var(--blatt-hell);
}
.zeit-jahr {
  font-family: var(--schrift-kopf);
  font-weight: 800;
  font-size: 1.65rem;
  color: var(--rose-dunkel);
  display: block;
  margin-bottom: 0.2rem;
}
.zeit-punkt h3 { margin-bottom: 0.35rem; }
.zeit-punkt p { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Formular
   -------------------------------------------------------------------------- */
.formular-kasten {
  background: var(--weiss);
  border: 1px solid var(--blatt-linie);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.6rem);
  box-shadow: 0 10px 26px rgba(44, 69, 49, 0.1);
}
fieldset {
  border: none;
  margin: 0 0 2.3rem;
  padding: 0;
}
fieldset:last-of-type { margin-bottom: 1rem; }
legend {
  font-family: var(--schrift-kopf);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--gruen-tief);
  padding: 0;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--blatt-linie);
  width: 100%;
  padding-bottom: 0.4rem;
}
.feld-reihe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
@media (max-width: 680px) { .feld-reihe { grid-template-columns: 1fr; } }
.feld { margin-bottom: 1.1rem; }
.feld label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.feld .hinweis {
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text-neben);
}
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--blatt-hell);
  border: 2px solid var(--blatt-linie);
  border-radius: 10px;
  padding: 0.72rem 0.9rem;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gruen-blatt);
  box-shadow: 0 0 0 3px rgba(108, 138, 90, 0.25);
}
textarea { min-height: 130px; resize: vertical; }

.wahl-gruppe { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.wahl-gruppe label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blatt-hell);
  border: 2px solid var(--blatt-linie);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
}
.wahl-gruppe label:has(input:checked) {
  border-color: var(--rose);
  background: var(--rose-hell);
  color: var(--rose-dunkel);
}
.wahl-gruppe input { accent-color: var(--rose); width: 1.15rem; height: 1.15rem; }

.zustimmung {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: var(--blatt-hell);
  border: 1px solid var(--blatt-linie);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin: 0.4rem 0 1.6rem;
}
.zustimmung input { width: 1.4rem; height: 1.4rem; margin-top: 0.25rem; accent-color: var(--rose); flex: none; }
.zustimmung label { font-size: 1.05rem; }

.pflicht { color: var(--rose-dunkel); }

.meldung {
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.6rem;
  font-weight: 700;
}
.meldung-fehler { background: #fbe3e6; color: #7c1f2e; border: 2px solid #e4a9b2; }

/* Honeypot – für Menschen unsichtbar */
.hp-feld { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------------------
   Fußzeile – hell und ruhig
   -------------------------------------------------------------------------- */
.fuss {
  background: var(--blatt-zart);
  border-top: 1px solid var(--blatt-linie);
  color: var(--text);
  padding: 3rem 0 1.8rem;
  font-size: 1.05rem;
  margin-top: 3.5rem;
}
.fuss a { color: var(--gruen-tief); }
.fuss a:hover { color: var(--rose-dunkel); }
.fuss h3 { font-size: 1.22rem; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: 0.5rem; }
.fuss-spalten {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.4rem;
}
@media (max-width: 820px) { .fuss-spalten { grid-template-columns: 1fr; } }
.fuss-geschenk {
  text-align: center;
  font-size: 0.98rem;
  color: var(--text-neben);
  max-width: none;
  margin: 1.6rem 0 0;
}
.fuss-unten {
  border-top: 1px solid var(--blatt-linie);
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.8rem;
  justify-content: space-between;
  color: var(--text-neben);
  font-size: 0.98rem;
}

/* --------------------------------------------------------------------------
   Noch offene Angaben – vor dem Hochladen ersetzen!
   -------------------------------------------------------------------------- */
.todo {
  background: #ffe28a;
  color: #4a3a00;
  padding: 0.05em 0.35em;
  border-radius: 6px;
  font-weight: 700;
}

/* Textseiten (Impressum, Datenschutz) */
.textseite { max-width: 760px; margin-inline: auto; }
.textseite h2 { margin-top: 2.4rem; font-size: 1.65rem; }
.textseite h3 { margin-top: 1.8rem; }

.sprungmarke { scroll-margin-top: 30px; }
