/* Gartenverein Buchenallee — Umsetzung des Design-Handoffs.
   Werte (Farben, clamp()-Skalen, Radien, Schatten) stammen unverändert aus
   „Buchenallee Website.dc.html“. */

/* ------------------------------------------------------------------ Schrift
   Atkinson Hyperlegible liegt lokal im Projekt statt bei Google: eine
   Einbindung über fonts.googleapis.com überträgt die IP jedes Besuchers an
   Google und ist auf deutschen Seiten datenschutzrechtlich angreifbar
   (LG München I, 3 O 17493/20). Lizenz: SIL OFL 1.1, siehe fonts/OFL.txt. */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-400-latin.d444e1815a3a.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-400-latin-ext.bedd1a793e82.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-700-latin.c6b471cbb2b9.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-700-latin-ext.c23ae1f7f708.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------------ Tokens */
:root {
  --accent: #2e8b5f;
  --dunkel: #173d2a;
  --band: #1e4d36;
  --link: #1e6b47;
  --text: #3d5246;
  --text-2: #4d6355;
  --titel-dunkel: #1c2b22;
  --gedaempft: #75847b;
  --gedaempft-2: #5c7061;
  --seite: #eef5f0;
  --intro-bg: #fdfdfb;
  --karte: #ffffff;
  --rand: #dbe6de;
  --rand-feld: #c6d4ca;
  --rand-weich: #e6efe9;
  --linie: #d3e2d8;
  --fuss-text: #d9eadf;
  --tint: #eef5f0;
  --tint-kraeftig: #e2efe7;
  --tint-zeile: #f4f9f5;
  --platzhalter: #9ab0a2;
  --fehler: #b3261e;

  --gutter: clamp(16px, 4.5vw, 44px);
  --inhalt-max: 1040px;
}

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

body {
  margin: 0;
  background: var(--seite);
  color: var(--text);
  font-family: 'Atkinson Hyperlegible', system-ui, sans-serif;
  font-size: 18px;
}

a { color: var(--link); }
a:hover { color: var(--dunkel); }
input::placeholder { color: var(--platzhalter); }

/* Tastaturbedienung sichtbar halten — die Zielgruppe reicht über alle Alter. */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.nur-fuer-screenreader {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.seite {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--seite);
}

/* ------------------------------------------------------------------ Kopfzeile */
.kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(12px, 2.5vw, 18px) var(--gutter);
  background: var(--karte);
  border-bottom: 1px solid var(--rand);
}
.kopf__logo { display: block; height: clamp(40px, 6vw, 56px); width: auto; }
.kopf__abmelden { margin: 0; }

/* ------------------------------------------------------------------ Knöpfe */
.knopf {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  text-decoration: none;
}

.knopf--gefuellt {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  background: var(--accent);
  border-radius: 999px;
  padding: 11px 24px;
}
.knopf--gefuellt:hover { filter: brightness(.93); color: #ffffff; }

.knopf--umrandet {
  font-size: 17px;
  font-weight: 700;
  color: var(--link);
  background: var(--karte);
  border: 2px solid var(--accent);
  border-radius: 999px;
  padding: 10px 22px;
}
.knopf--umrandet:hover { background: var(--tint); color: var(--link); }

.knopf--anmelden {
  display: block;
  width: 100%;
  padding: 16px;
  font-size: 19px;
  text-align: center;
}

/* ------------------------------------------------------------------ Intro */
.hero {
  display: block;
  width: 100%;
  height: clamp(260px, 38vw, 440px);
  object-fit: cover;
}

.intro { flex: 1; width: 100%; background: var(--intro-bg); }

.intro__text {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 48px) var(--gutter) clamp(16px, 2.5vw, 24px);
  text-align: center;
}
.intro__titel {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.12;
  font-weight: 700;
  color: var(--dunkel);
  text-wrap: pretty;
}
.intro__absatz {
  margin: 0;
  font-size: clamp(17px, 2.1vw, 20px);
  line-height: 1.6;
  color: var(--text);
  text-wrap: pretty;
}

.intro__kontakt {
  max-width: 840px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 28px) var(--gutter) clamp(40px, 6vw, 56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 18px;
  text-align: center;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
}
.intro__spalte { border-top: 3px solid var(--accent); padding-top: 14px; }
.intro__label {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}
.intro__spalte a { text-decoration: none; }
.intro__spalte a.ist-telefon { font-weight: 700; }

/* ------------------------------------------------------------------ Fußleiste */
/* Der Entwurf will die Leiste dauerhaft am unteren Rand und hält den Inhalt mit
   einem 58px-Abstandhalter frei. Ein fester Abstandhalter reicht aber nicht: ab
   etwa 320px Breite bricht die Leiste auf drei Zeilen um (103px) und verdeckt
   den letzten Eintrag. „sticky“ zeigt dasselbe Bild, belegt seinen Platz aber
   selbst — damit kann nichts mehr verdeckt werden, egal wie schmal es wird. */
.fussleiste {
  position: sticky;
  bottom: 0;
  z-index: 10;
  padding: 18px var(--gutter);
  background: var(--band);
  color: var(--fuss-text);
  font-size: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

/* ------------------------------------------------------------------ Login-Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(23, 61, 42, .25);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(76px, 10vw, 96px) var(--gutter) 20px;
  z-index: 50;
}
.modal[hidden] { display: none; }

.modal__panel {
  position: relative;
  width: min(420px, 100%);
  background: var(--karte);
  border-radius: 16px;
  padding: clamp(24px, 5vw, 36px);
  box-shadow: 0 10px 40px rgba(23, 61, 42, .3);
}

.modal__schliessen {
  position: absolute;
  top: 14px; right: 14px;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.modal__schliessen:hover { background: var(--tint); }

.modal__titel {
  margin: 0 0 22px;
  font-size: 28px;
  font-weight: 700;
  color: var(--dunkel);
  text-align: center;
}

.modal__gruppe { margin-bottom: 18px; }
.modal__gruppe:last-of-type { margin-bottom: 24px; }

.modal__hinweis {
  margin: 18px 0 0;
  text-align: center;
  font-size: 16px;
  color: var(--text);
}

.feldname {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.eingabe {
  width: 100%;
  border: 2px solid var(--rand-feld);
  border-radius: 10px;
  padding: 14px;
  font: 400 18px 'Atkinson Hyperlegible', sans-serif;
  color: var(--dunkel);
  background: var(--karte);
}

/* Fehlerzustand ist im Entwurf nicht gestaltet; der Handoff schreibt roten
   Hinweistext über dem Knopf vor. */
.fehler {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--fehler);
}

/* ------------------------------------------------------------------ Mitgliederbereich */
.inhalt {
  flex: 1;
  width: 100%;
  max-width: var(--inhalt-max);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px) var(--gutter) clamp(40px, 6vw, 60px);
}

.begruessung {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.1;
  font-weight: 700;
  color: var(--dunkel);
}
.unterzeile {
  margin: 0 0 32px;
  font-size: clamp(18px, 2.2vw, 20px);
  line-height: 1.55;
  color: var(--text);
  max-width: 640px;
}

.kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 20px;
}
.kachel {
  display: block;
  background: var(--karte);
  border-radius: 16px;
  padding: 28px 26px;
  box-shadow: 0 2px 8px rgba(23, 61, 42, .08);
  border: 2px solid transparent;
  text-decoration: none;
}
.kachel:hover { border-color: var(--accent); }
.kachel__symbol {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}
.kachel__symbol--downloads { font-size: 30px; }
.kachel__symbol--kontakte { font-size: 26px; }
.kachel__titel {
  font-size: 26px;
  font-weight: 700;
  color: var(--dunkel);
  margin-bottom: 6px;
}
.kachel__text {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-2);
}

.zurueck {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--karte);
  border: 2px solid var(--accent);
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 18px;
  font-weight: 700;
  color: var(--link);
  margin-bottom: 28px;
  text-decoration: none;
}
.zurueck:hover { background: var(--tint-kraeftig); color: var(--link); }

.seitentitel {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: var(--dunkel);
}
.seitentext {
  margin: 0 0 26px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
  max-width: 640px;
}
.seitentext--beschluesse { margin-bottom: 24px; }

/* ------------------------------------------------------------------ Beschlüsse */
.suche {
  width: 100%;
  border: 2px solid var(--rand-feld);
  border-radius: 10px;
  padding: 14px 16px;
  font: 400 18px 'Atkinson Hyperlegible', sans-serif;
  color: var(--dunkel);
  background: var(--karte);
  margin-bottom: 26px;
}

.jahre { display: flex; flex-direction: column; gap: 30px; }
.jahr[hidden] { display: none; }
.jahr__kopf {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.jahr__zahl { font-size: 24px; font-weight: 700; color: var(--dunkel); }
.jahr__linie { flex: 1; height: 2px; background: var(--linie); }
.jahr__anzahl { font-size: 15px; color: var(--gedaempft-2); }
.jahr__liste { display: flex; flex-direction: column; gap: 12px; }

.beschluss {
  background: var(--karte);
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(23, 61, 42, .06);
  overflow: hidden;
}
.beschluss[hidden] { display: none; }

.beschluss__kopf {
  padding: 18px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: baseline;
  cursor: pointer;
  list-style: none;
}
.beschluss__kopf::-webkit-details-marker { display: none; }
.beschluss__kopf:hover { background: var(--tint-zeile); }

.beschluss__nr {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  flex: none;
  font-family: ui-monospace, monospace;
}
.beschluss__mitte { flex: 1; min-width: 220px; }
.beschluss__titel { font-size: 19px; font-weight: 700; color: var(--titel-dunkel); }
.beschluss__meta { font-size: 15px; color: var(--gedaempft); }

.beschluss__pfeil {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  flex: none;
}
.beschluss__pfeil::after { content: "▾"; }
.beschluss[open] .beschluss__pfeil::after { content: "▴"; }

.beschluss__inhalt {
  padding: 4px 22px 20px;
  border-top: 1px solid var(--rand-weich);
}
.beschluss__text {
  margin: 14px 0 16px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  max-width: 680px;
  white-space: pre-line;
}

.pdf-knopf {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #ffffff;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}
.pdf-knopf:hover { filter: brightness(.93); color: #ffffff; }

.leer { margin: 8px 0 0; font-size: 18px; color: var(--gedaempft-2); }
.leer[hidden] { display: none; }

/* ------------------------------------------------------------------ Downloads */
.dokumente {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
}
.dokument {
  background: var(--karte);
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 6px rgba(23, 61, 42, .08);
}
.dokument__symbol {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  flex: none;
}
.dokument__mitte { flex: 1; min-width: 200px; }
.dokument__name { font-size: 20px; font-weight: 700; color: var(--dunkel); }
.dokument__meta { font-size: 16px; color: var(--text-2); }
.dokument__link {
  font-size: 17px;
  font-weight: 700;
  color: var(--link);
  flex: none;
  text-decoration: none;
}
.dokument__link:hover { text-decoration: underline; color: var(--link); }

/* ------------------------------------------------------------------ Kontakte */
.kontakte {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 16px;
}
.kontakt {
  background: var(--karte);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 2px 6px rgba(23, 61, 42, .08);
}
.kontakt__rolle {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}
.kontakt__name {
  font-size: 22px;
  font-weight: 700;
  color: var(--dunkel);
  margin-bottom: 12px;
}
.kontakt__daten {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 17px;
}
.kontakt__daten a { text-decoration: none; }
.kontakt__tel { font-weight: 700; }
