/* ==========================================================
   Gemeindezentrum Boimstorf – Stylesheet
   Farben zentral als Variablen. Alle Text-Farbkombinationen
   erfüllen mindestens WCAG AA (4,5:1), die meisten AAA (7:1).
   ========================================================== */

:root {
  --bg:        #fbf8f2;  /* warmes Off-White */
  --bg-alt:    #f1ece1;  /* Abschnitte im Wechsel */
  --surface:   #ffffff;
  --text:      #1d1d1b;  /* ~16:1 auf --bg */
  --text-soft: #47463f;  /* ~9:1 auf --bg */
  --primary:   #1f5135;  /* Dunkelgrün, ~9:1 auf --bg */
  --primary-d: #153a26;
  --accent:    #c8892b;  /* Ocker – nur Deko, nie für Text auf hell */
  --accent-l:  #f0c77e;  /* helles Ocker – Text auf Dunkelgrün (~8:1) */
  --line:      #d8d0c0;
  --ph:        #e6dfd1;  /* Platzhalter */
  --focus:     #0b57d0;

  --radius: 12px;
  --max: 72rem;
  --space-section: clamp(4.5rem, 9vw, 7.5rem);  /* Luft zwischen Abschnitten */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;
}

/* Schriftgrößen-Umschalter (setzt nur die Basis, alles skaliert in rem) */
html { font-size: 112.5%; scroll-behavior: smooth; scroll-padding-top: 6rem; }  /* 18px */
html[data-fs="gross"] { font-size: 131.25%; }          /* 21px */
html[data-fs="sehr-gross"] { font-size: 150%; }        /* 24px */
@media (max-width: 40rem) {
  html[data-fs="gross"] { font-size: 125%; }           /* 20px auf dem Handy */
  html[data-fs="sehr-gross"] { font-size: 137.5%; }    /* 22px auf dem Handy */
}

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

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }   /* hidden-Attribut gewinnt immer */

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  overflow-wrap: break-word;
}
@media (max-width: 40rem) { h1, h2, h3, .termin-titel { hyphens: auto; } }
body.modal-offen { overflow: hidden; }

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

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; color: var(--primary-d); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 1rem; }
h3 { font-size: 1.25rem; margin: 0 0 .5rem; }
h3.sub { margin-top: 4rem; margin-bottom: 1.25rem; }

a { color: var(--primary); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--primary-d); text-decoration-thickness: .14em; }

/* Deutlich sichtbarer Fokus für Tastaturnutzer */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 40rem) { .container { padding: 0 1.5rem; } }
.container.narrow { max-width: 48rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--primary); color: #fff; padding: .75rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem;
  padding-top: .75rem; padding-bottom: .75rem;
}
.logo {
  display: flex; align-items: center; gap: .6rem;
  color: var(--primary-d); text-decoration: none; line-height: 1.15;
  font-size: .9rem; margin-right: auto; min-height: 44px;
}
.logo strong { font-size: 1.05rem; }
.logo-mark { color: var(--primary); }

.header-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }

.font-size { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.font-size button {
  min-width: 44px; min-height: 44px; border: 0; background: var(--surface);
  font: inherit; font-weight: 700; color: var(--text); cursor: pointer;
}
.font-size button + button { border-left: 1px solid var(--line); }
.font-size .fs-lg { font-size: 1.1em; }
.font-size .fs-xl { font-size: 1.25em; }
.font-size button[aria-pressed="true"] { background: var(--primary); color: #fff; }

.nav-toggle {
  display: none; min-height: 44px; padding: 0 1rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); font: inherit; font-weight: 600; color: var(--text); cursor: pointer;
}

.main-nav { width: 100%; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .75rem;
  border-radius: var(--radius); text-decoration: none; color: var(--text); font-weight: 600;
}
.main-nav a:hover { background: var(--bg-alt); color: var(--primary-d); }
.main-nav a[aria-current="page"] { background: var(--bg-alt); color: var(--primary-d); text-decoration: underline; }

@media (max-width: 47.99rem) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .4rem; }
  .main-nav { display: none; }
  .main-nav.offen { display: block; }
  .main-nav ul { flex-direction: column; padding-bottom: .5rem; }
  .main-nav a { width: 100%; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .6rem 1.4rem; border-radius: var(--radius);
  font: inherit; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); color: #fff; }
.btn-light { background: #fff; color: var(--primary-d); }
.btn-light:hover { background: var(--bg); color: var(--primary-d); }
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--primary-d); }

/* ---------- Platzhalter für Bilder ---------- */
.placeholder {
  margin: 0; display: grid; place-items: center; text-align: center;
  background: var(--ph); color: var(--text-soft);
  border: 2px dashed var(--line); border-radius: var(--radius);
  font-weight: 600; padding: 1rem;
}
.placeholder small { font-weight: 400; }
.placeholder-dark { background: #cfc6b4; }

/* ---------- Hero mit Hintergrundfoto ----------
   Foto als bilder/hero.jpg ablegen. Die dunkelgrüne Abdunklung
   sorgt dafür, dass der weiße Text auf JEDEM Foto lesbar bleibt –
   bitte nicht entfernen oder deutlich aufhellen. */
.hero {
  position: relative; isolation: isolate; color: #fff;
  background: var(--primary-d) url("../bilder/hero.jpg") center / cover no-repeat;
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 4.5rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(14, 38, 25, .78);
}
.hero h1 { color: #fff; max-width: 22ch; }
.hero-text { max-width: 44rem; }
.eyebrow {
  margin: 0 0 .75rem; font-weight: 700; color: var(--primary);
  text-transform: uppercase; letter-spacing: .06em; font-size: .85rem;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 1.5rem; height: 3px;
  background: var(--accent); vertical-align: middle; margin-right: .5rem;
}
.hero .eyebrow { color: var(--accent-l); }
.hero .eyebrow::before { background: var(--accent-l); }
.lead { font-size: 1.2rem; color: var(--text-soft); margin: 0 0 2rem; max-width: 38rem; }
.hero .lead { color: #f1efe8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-insta {
  display: flex; align-items: flex-start; gap: .6rem;
  margin: 2rem 0 0; color: #f1efe8;
}
.hero-insta svg { flex: none; margin-top: .15rem; color: var(--accent-l); }
.hero-insta a { color: #fff; font-weight: 700; }
.hero-insta a:hover { color: var(--accent-l); }

.hero-foto-hinweis {
  position: absolute; right: 1rem; bottom: .5rem; margin: 0;
  font-size: .75rem; color: rgba(255,255,255,.75);
}

/* Termine im Hero */
.hero-termine { margin-top: clamp(3rem, 6vw, 4.5rem); }
.hero-termine-titel {
  color: #fff; font-family: var(--font); font-size: 1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; margin: 0 0 1rem;
}
.termin-chips {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
}
.termin-chip {
  width: 100%; height: 100%; display: flex; align-items: center; gap: 1rem; text-align: left;
  background: var(--surface); color: var(--text); border: 2px solid transparent;
  border-radius: var(--radius); padding: 1rem 1.1rem; font: inherit; cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}
.termin-chip:hover { border-color: var(--accent); transform: translateY(-2px); }
.termin-chip > svg { flex: none; margin-left: auto; color: var(--primary); }
.termin-datum {
  flex: none; text-align: center; min-width: 4rem;
  background: var(--primary); color: #fff; border-radius: 8px; padding: .4rem .5rem; line-height: 1.15;
}
.termin-datum .tag { display: block; font-size: 1.5rem; font-weight: 700; }
.termin-datum .monat { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.termin-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.termin-titel { font-weight: 700; line-height: 1.3; }
.termin-meta { font-size: .9rem; color: var(--text-soft); }
.termin-mehr { font-size: .9rem; color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: .18em; }
.termin-leer { color: #f1efe8; }

/* ---------- Abschnitte ---------- */
.section { padding: var(--space-section) 0; }
.section-alt { background: var(--bg-alt); }
.section-intro { color: var(--text-soft); max-width: 42rem; margin: -.25rem 0 2.5rem; font-size: 1.05rem; }

/* ---------- Neuigkeiten ---------- */
.news-list { display: grid; gap: 2rem; }
.news {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; overflow: hidden;
}
@media (min-width: 44rem) { .news { grid-template-columns: 18rem 1fr; } }
.news img, .news .placeholder { width: 100%; height: 100%; min-height: 11rem; object-fit: cover; border: 0; border-radius: 0; }
.news-body { padding: 1.75rem 2rem; }
.news-date { font-size: .9rem; color: var(--text-soft); font-weight: 600; }
.news h3 { margin-top: .35rem; }
.news p { margin: 0; }

/* ---------- Projektstand ---------- */
.status-box {
  background: var(--surface); border: 2px solid var(--primary);
  border-radius: var(--radius); padding: 1.5rem 1.75rem; max-width: 46rem;
}
.status-label { margin: 0 0 .25rem; font-weight: 700; color: var(--primary); }
.status-text { margin: 0; font-size: 1.2rem; }

.phasen {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(8rem, 100%), 1fr));
  counter-reset: phase;
}
.phase {
  counter-increment: phase;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem;
}
.phase::before {
  content: counter(phase);
  display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  border: 2px solid var(--line); font-weight: 700; margin-bottom: .6rem; color: var(--text-soft);
}
.phase-name { font-weight: 700; display: block; }
.phase-status { font-size: .9rem; color: var(--text-soft); }

/* Status über Symbol + Text + Rahmen – nie nur über Farbe */
.phase.erledigt::before { content: "✓"; background: var(--primary); border-color: var(--primary); color: #fff; }
.phase.aktuell { border: 3px solid var(--primary); }
.phase.aktuell::before { border-color: var(--primary); color: var(--primary); background: #e4efe7; }
.phase.aktuell .phase-status { color: var(--primary); font-weight: 700; }

/* ---------- Karten (Das entsteht) ---------- */
.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; border-top: 5px solid var(--accent);
}
.card-icon { color: var(--primary); margin-bottom: .75rem; }
.card p { margin: 0 0 .75rem; }
.card-placeholder { color: var(--text-soft); font-style: italic; }

/* ---------- Vorher/Nachher ---------- */
.compare { max-width: 52rem; }
.compare-stage {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  --pos: 50%;
}
.compare-img { position: absolute; inset: 0; border-radius: 0; }
.compare-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-before.placeholder { place-items: center start; padding-left: 8%; text-align: left; }
.compare-after.placeholder  { place-items: center end;   padding-right: 8%; text-align: right; }
.compare-line {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px;
  background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35);
}
.compare-label { display: block; margin: .75rem 0 .25rem; font-weight: 600; }
.compare input[type="range"] { width: 100%; min-height: 44px; accent-color: var(--primary); }

/* ---------- Teaser Geschichte ---------- */
.teaser {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.teaser h2 { margin-bottom: .5rem; }
.teaser p { margin: 0; color: var(--text-soft); max-width: 36rem; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 1rem;
}
.faq summary {
  cursor: pointer; padding: 1.1rem 1.4rem; font-weight: 700; min-height: 44px;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--primary); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 1.4rem 1.4rem; }

/* ---------- Kontakte ---------- */
.contacts { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); }
.contact {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem;
}
.contact h3 { margin-bottom: .1rem; }
.contact-rolle { margin: 0 0 1rem; color: var(--text-soft); }
.contact-wege { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.contact-wege a, .contact-wege span {
  display: flex; align-items: center; gap: .6rem; min-height: 44px;
  font-weight: 600; word-break: break-word;
}
.contact-wege svg { flex: none; color: var(--primary); }

/* ---------- Instagram ---------- */
.insta { background: var(--primary); color: #fff; }
.insta h2 { color: #fff; }
.insta-inner { text-align: center; }
.insta p { margin: 0 0 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-d); color: #fff; padding: 2rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.site-footer p { margin: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.footer-links a { color: #fff; display: inline-flex; min-height: 44px; align-items: center; }

/* ---------- Modal (Termin-Details) ---------- */
.modal {
  width: min(36rem, calc(100% - 2rem)); max-height: calc(100% - 2rem);
  padding: 0; border: 0; border-radius: var(--radius);
  background: var(--surface); color: var(--text);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.modal::backdrop { background: rgba(14, 38, 25, .7); }
.modal-inner { position: relative; padding: 2.25rem 2rem 2rem; }
.modal-close {
  position: absolute; top: .75rem; right: .75rem;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--bg-alt); color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.modal-close:hover { background: var(--line); }
.modal-datum { margin: 0 0 .4rem; font-weight: 700; color: var(--primary); padding-right: 3rem; }
.modal h2 { margin: 0 0 .5rem; padding-right: 2rem; }
.modal-ort { margin: 0 0 1.25rem; color: var(--text-soft); }
.modal-programm-titel { margin-top: 1.5rem; }
.modal-programm { margin: 0 0 2rem; padding-left: 1.25rem; }
.modal-programm li { margin-bottom: .35rem; }

/* ---------- Unterseiten ---------- */
.page-head { padding: clamp(4rem, 8vw, 6rem) 0 1rem; }
.legal { padding: 3rem 0; }
.legal .container { max-width: 48rem; }
.hinweis { margin: 2.5rem 0 0; color: var(--text-soft); }
.quotes { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); }
.quote {
  margin: 0; background: var(--surface); border-radius: var(--radius); padding: 1.75rem;
  border: 1px solid var(--line); border-left: 5px solid var(--accent);
}
.quote p { margin: 0 0 .75rem; font-family: var(--font-head); font-size: 1.15rem; font-style: italic; }
.quote footer { color: var(--text-soft); font-weight: 600; }

/* ---------- Zeitstrahl ----------
   Mobil: Linie links. Ab Tablet: Linie mittig, Einträge abwechselnd. */
.timeline { list-style: none; margin: 0 auto; padding: 0; position: relative; max-width: 60rem; }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 1.1rem; width: 4px;
  background: var(--accent); border-radius: 2px;
}
.timeline-item { position: relative; padding-left: 3.5rem; margin-bottom: 3.5rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: .45rem; top: .35rem;
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--surface); border: 4px solid var(--primary);
}
.timeline-jahr {
  display: inline-block; margin-bottom: .75rem;
  background: var(--primary); color: #fff; font-weight: 700; font-size: 1.1rem;
  padding: .2rem .8rem; border-radius: 999px;
}
.timeline-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.timeline-card img, .timeline-card .placeholder {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 0; border-radius: 0;
}
.timeline-body { padding: 1.5rem 1.75rem; }
.timeline-body h2 { font-size: 1.35rem; margin: 0 0 .5rem; }
.timeline-body p { margin: 0; }

@media (min-width: 52rem) {
  .timeline::before { left: 50%; margin-left: -2px; }
  .timeline-item { width: 50%; padding-left: 0; padding-right: 3rem; }
  .timeline-item::before { left: auto; right: -.7rem; }
  .timeline-item:nth-child(even) { margin-left: 50%; padding-right: 0; padding-left: 3rem; }
  .timeline-item:nth-child(even)::before { right: auto; left: -.7rem; }
  .timeline-item:nth-child(odd) { text-align: right; }
  .timeline-item:nth-child(odd) .timeline-body { text-align: left; }
}

/* ---------- Druckansicht (z. B. für den Aushang) ---------- */
@media print {
  .site-header, .skip-link, .insta, .compare, .hero-actions, .modal, .hero-foto-hinweis { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .hero { background: #fff; color: #000; padding: 1rem 0; }
  .hero::before { display: none; }
  .hero h1, .hero .lead, .hero-termine-titel { color: #000; }
  .section, .section-alt { background: #fff; padding: 1rem 0; }
  a { color: #000; }
  .faq details, .timeline-item { break-inside: avoid; }
}

/* Schmale Handys: Pfeil in der Termin-Kachel ausblenden, damit der Titel Platz hat */
@media (max-width: 30rem) {
  .termin-chip > svg { display: none; }
  .termin-chip { gap: .75rem; padding: .9rem; }
}

/* ==========================================================
   Ergänzungen: Tante Emma 24/7
   ========================================================== */

.termin-datum-offen { background: var(--accent-l); color: var(--primary-d); }

.hero-orte { margin: 1.75rem 0 0; color: #f1efe8; font-weight: 600; }

.card-kicker {
  margin: 0 0 .25rem !important; font-size: .85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--text-soft);
}

/* Ideen fürs Dorfleben */
.ideen {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .75rem;
}
.ideen li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: .55rem 1.1rem; font-weight: 600; min-height: 44px; display: flex; align-items: center;
}
.ideen li::before {
  content: ""; width: .55rem; height: .55rem; border-radius: 50%;
  background: var(--accent); margin-right: .6rem; flex: none;
}
.ideen .ideen-eigene { border: 2px dashed var(--primary); background: transparent; padding: 0; }
.ideen .ideen-eigene::before { display: none; }
.ideen .ideen-eigene a { display: flex; align-items: center; min-height: 44px; padding: .45rem 1.1rem; }

/* Genossenschaft */
.vorteile { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); }
.vorteil {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem;
}
.vorteil-nr {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700; font-size: 1.15rem; margin-bottom: 1rem;
}
.vorteil p { margin: 0; }

/* Mitmachen */
.mitmachen { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); }
.mitmachen-box {
  background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--primary);
  border-radius: var(--radius); padding: 1.75rem 2rem;
}
.mitmachen-box p { margin: 0 0 1rem; }
.mitmachen-box p:last-child { margin-bottom: 0; }
.haken { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.haken li { position: relative; padding-left: 2rem; }
.haken li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center;
  background: #e4efe7; color: var(--primary); font-weight: 700; font-size: .85rem;
}
.mitmachen-cta { margin-top: 2.5rem; }

/* Zeitstrahl ohne Bild: Karte bekommt oben eine Akzentlinie */
.timeline-card:not(:has(img)) { border-top: 4px solid var(--accent); }
.ideen li { max-width: 100%; }
.ideen li, .phase-name { hyphens: auto; }
@media (max-width: 30rem) {
  .mitmachen-box, .vorteil, .card, .contact { padding: 1.25rem; }
  .haken li { hyphens: auto; }
}

/* ---------- Logo ---------- */
.logo-bild { height: 3.2rem; width: auto; flex: none; }

.hero-top { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 56rem) { .hero-top { grid-template-columns: minmax(0, 1fr) auto; } }
.hero-logo {
  margin: 0; justify-self: center; order: -1;
  background: #fbf8f2; border-radius: 1.25rem; padding: 1rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.hero-logo img { width: min(15rem, 60vw); height: auto; }
@media (min-width: 56rem) {
  .hero-logo { order: 0; padding: 1.5rem 1.75rem; }
  .hero-logo img { width: 20rem; }
}
@media print { .hero-logo { box-shadow: none; } }

/* ---------- Vorher/Nachher mit echten Bildern ---------- */
.compare-stage { aspect-ratio: 1433 / 986; background: var(--ph); }
img.compare-img { width: 100%; height: 100%; object-fit: cover; }
.compare-tag {
  position: absolute; top: .75rem; z-index: 2;
  background: rgba(14, 38, 25, .85); color: #fff; font-weight: 700; font-size: .85rem;
  padding: .3rem .7rem; border-radius: 999px; pointer-events: none;
}
.compare-tag-links { left: .75rem; }
.compare-tag-rechts { right: .75rem; }
.compare-line { z-index: 1; }
.compare-quelle { margin: .5rem 0 0; font-size: .85rem; color: var(--text-soft); }

/* ---------- Petition ---------- */
.petition {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: #e4efe7; border: 2px solid var(--primary); border-radius: var(--radius);
  padding: 1.75rem 2rem; margin-bottom: 1.5rem;
}
.petition-text { flex: 1 1 26rem; min-width: 0; }
.petition-text h3 { margin-bottom: .5rem; }
.petition-text p { margin: 0; }
.petition-kicker {
  font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--primary); margin: 0 0 .25rem !important;
}
.petition-btn { flex: none; }
.hero-petition { margin-top: 1.25rem; }
.hero-petition + .hero-insta { margin-top: .75rem; }
@media (max-width: 30rem) { .petition { padding: 1.25rem; } .petition-btn { width: 100%; } }


.news-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: .5rem; font-weight: 700; }

/* ---------- Bildergalerie (Geschichte) ---------- */
.galerie-hilfe { margin: 0 0 1.5rem; color: var(--text-soft); }
.galerie {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr));
}
.galerie-kachel {
  display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  font: inherit; color: var(--text); cursor: zoom-in;
  transition: transform .15s ease, box-shadow .15s ease;
}
.galerie-kachel:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.galerie-kachel img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--ph);
  filter: sepia(.15);
}
.galerie-text { display: flex; flex-direction: column; gap: .15rem; padding: 1rem 1.25rem 1.25rem; }
.galerie-jahr {
  align-self: flex-start; background: var(--primary); color: #fff; font-weight: 700; font-size: .85rem;
  padding: .1rem .6rem; border-radius: 999px;
}
.galerie-titel { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--primary-d); line-height: 1.3; margin-top: .35rem; }
.bildnachweis { margin: 1rem 0 0; font-size: .85rem; color: var(--text-soft); }

/* Großansicht */
.lightbox {
  width: min(64rem, calc(100% - 1.5rem)); max-height: calc(100% - 1.5rem);
  padding: 0; border: 0; border-radius: var(--radius);
  background: #161d19; color: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox::backdrop { background: rgba(8, 14, 10, .88); }
.lightbox-inner { padding: 1rem 1.25rem 1.5rem; }
.lightbox-leiste { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.lightbox-zaehler { margin: 0; color: #dcd8cc; font-weight: 600; }
.lightbox-btn {
  width: 44px; height: 44px; border: 0; border-radius: 50%; flex: none;
  background: rgba(255,255,255,.12); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.lightbox-btn:hover { background: rgba(255,255,255,.25); }
.lightbox-figur { margin: 0; }
.lightbox-figur img {
  display: block; margin: 0 auto; max-width: 100%; max-height: 62vh; width: auto; height: auto;
  border-radius: 6px; background: #000;
}
.lightbox figcaption { max-width: 46rem; margin: 1.25rem auto 0; }
.lightbox-jahr { margin: 0 0 .25rem; color: var(--accent-l); font-weight: 700; }
.lightbox h2 { color: #fff; font-size: 1.4rem; margin: 0 0 .4rem; }
.lightbox figcaption p:last-child { margin: 0; color: #e9e6dc; }
.lightbox-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin-top: 1.5rem; }
.btn-secondary-dark { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.6); }
.btn-secondary-dark:hover { background: #fff; color: var(--primary-d); }
.lightbox :focus-visible { outline-color: var(--accent-l); }
@media (max-width: 30rem) { .lightbox-nav .btn { flex: 1 1 100%; } }
.page-head + .section { padding-top: 1.5rem; }
/* Galerie: nur Bilder */
.galerie-kachel img { aspect-ratio: 3 / 2; }
.lightbox-bild {
  display: block; margin: 0 auto; max-width: 100%; max-height: 72vh; width: auto; height: auto;
  border-radius: 6px; background: #000;
}
.lightbox-nav { margin-top: 1.25rem; }

/* ---------- Petition-Button in der Navigation ---------- */
.main-nav ul { align-items: center; }
.nav-cta-item { margin-left: auto; }
.main-nav a.nav-cta {
  gap: .45rem; background: var(--primary); color: #fff; padding: 0 1.1rem;
}
.main-nav a.nav-cta:hover { background: var(--primary-d); color: #fff; }
@media (max-width: 47.99rem) {
  .nav-cta-item { margin: .5rem 0 0; }
  .main-nav a.nav-cta { justify-content: center; }
}
@media (max-width: 47.99rem) {
  .main-nav ul { align-items: stretch; }
  .main-nav a.nav-cta { width: 100%; }
}

/* ---------- Neuigkeiten im Kopfbereich ---------- */
.hero-news { margin-top: 2.5rem; }
.news-symbol {
  flex: none; display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 8px;
  background: #e4efe7; color: var(--primary);
}
.news-vorschau { flex: none; width: 4rem; height: 4rem; object-fit: cover; border-radius: 8px; }
.news-mehr { margin-top: 1rem; }
.news-chip .termin-meta { order: -1; }
.news-modal-bild { width: 100%; height: auto; border-radius: 8px; margin: .5rem 0 1rem; }

/* ---------- Medien ---------- */
.news-vorschau { object-position: top; background: #fff; border: 1px solid var(--line); }
.chip-art { font-weight: 700; color: var(--primary); }

/* ---------- Archiv: alle Neuigkeiten & Medien ---------- */
.archiv-hilfe { margin: 0 0 1.25rem; color: var(--text-soft); padding-right: 2rem; }
.archiv-liste { list-style: none; margin: 0 0 1.75rem; padding: 0; border-top: 1px solid var(--line); }
.archiv-liste li { border-bottom: 1px solid var(--line); }
.archiv-eintrag {
  display: flex; flex-direction: column; gap: .15rem; width: 100%; min-height: 44px;
  padding: .9rem .5rem; background: none; border: 0; text-align: left;
  font: inherit; color: var(--text); cursor: pointer; border-radius: 6px;
}
.archiv-eintrag:hover { background: var(--bg-alt); }
.archiv-meta { font-size: .9rem; color: var(--text-soft); }
.archiv-titel { font-weight: 700; color: var(--primary-d); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: .06em; }
.archiv-eintrag:hover .archiv-titel { text-decoration-thickness: .14em; }
a.termin-chip, a.archiv-eintrag { text-decoration: none; }
a.termin-chip:hover { color: var(--text); }
/* Buttons dürfen umbrechen statt überzulaufen */
.btn { max-width: 100%; text-align: center; overflow-wrap: anywhere; }
/* Neuigkeiten & Medien: höchstens zwei Karten nebeneinander, damit Überschriften Platz haben */
.hero-news .termin-chips { grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr)); }
@media (min-width: 48rem) { .hero-news .termin-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
