/* ===================================================
   Elternrat Schliern — Haupt-Stylesheet
   Brand-Farben: #236e78 / #f0961d / #78aa36 / #379178
   =================================================== */

/* --- CSS-Variablen (Design-Tokens) --- */
:root {
  /* Brand-Farben */
  --teal-dark:    #236e78;   /* Primärfarbe: Dunkelblau-Türkis */
  --teal-mid:     #379178;   /* Mittleres Türkis */
  --orange:       #f0961d;   /* Orange / Highlight */
  --orange-light: #f5aa4a;   /* Helles Orange */
  --green:        #78aa36;   /* Grün */
  --green-dark:   #5a8a28;   /* Dunkleres Grün */
  --black:        #000000;
  --white:        #ffffff;

  /* Semantische Rollen */
  --color-primary:       var(--teal-dark);
  --color-primary-hover: var(--teal-mid);
  --color-secondary:     var(--orange);
  --color-accent:        var(--green);

  /* Text */
  --color-text:       #1a1a1a;
  --color-text-light: #4a5a5c;

  /* Hintergründe */
  --color-bg:          #ffffff;
  --color-bg-soft:     #d6eef0;   /* Türkis (Termine) */
  --color-bg-warm:     #fde9cc;   /* Warm-Orange (Aktuelles) */
  --color-bg-green-s:  #daf0d2;   /* Grün (Kontakt) */
  --color-bg-teal:     #d4ebed;   /* leichtes Türkis (Elemente) */
  --color-bg-neutral:  #e8e8e6;   /* Neutralgrau (Arbeitsgruppen) */
  --color-bg-orange:   #fff5e8;   /* leichtes Orange */
  --color-bg-green:    #f0f7e8;   /* leichtes Grün */
  --color-border:      #d4e6e8;

  /* Typografie */
  --font-heading: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Open Sans', 'Segoe UI', system-ui, sans-serif;

  /* Geometrie */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  /* Schatten */
  --shadow-sm:  0 2px 8px rgba(35,110,120,.08);
  --shadow-md:  0 4px 20px rgba(35,110,120,.14);
  --shadow-lg:  0 8px 40px rgba(35,110,120,.18);

  /* Layout */
  --nav-height:   90px;
  --section-pad:  80px;
  --container-w:  1180px;
}

/* --- Reset & Basis --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--color-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-primary-hover); }
ul  { list-style: none; }

/* --- Typografie --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-text);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; }
p  { color: var(--color-text-light); }

/* --- Container --- */
.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-lg);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .22s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--teal-dark);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--teal-mid);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--teal-dark);
  border-color: var(--teal-dark);
}
.btn-secondary:hover {
  background: var(--teal-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-orange {
  background: var(--orange);
  color: var(--white);
}
.btn-orange:hover {
  background: var(--orange-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.15);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===================================================
   NAVIGATION
   =================================================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow .3s;
}
#navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo img {
  height: 80px;
  width: auto;
}

/* Nav-Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-text);
  transition: all .2s;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--color-bg-teal);
  color: var(--teal-dark);
}

/* Icons im Desktop-Nav ausblenden */
.nav-icon {
  display: none;
  flex-shrink: 0;
  width: 20px; height: 20px;
}
.nav-icon svg { width: 100%; height: 100%; }

.nav-cta { flex-shrink: 0; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===================================================
   HERO — kein Overlay, Bild voll sichtbar
   =================================================== */
#hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-image: url('../images/BunteFarbstifte.png');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}

.hero-content {
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 48px);
  padding-bottom: 32px;
}

/* Inhaltskarte — Text lesbar, Bild ringsum sichtbar */
.hero-body {
  max-width: 780px;
  background: rgba(255,255,255,.92);
  border-radius: var(--radius-xl);
  padding: 36px 44px;
  box-shadow: 0 6px 40px rgba(0,0,0,.10);
}

/* Ort-Label */
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-dark);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .78rem;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

/* Haupttitel — einzeilig */
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--teal-dark);
  line-height: 1.0;
  letter-spacing: .03em;
  white-space: nowrap;
  margin-bottom: 18px;
}

/* Orange Trennlinie */
.hero-divider {
  width: 64px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin-bottom: 18px;
}

/* Slogan */
.hero-slogan {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 18px;
  line-height: 1.35;
}

/* Beschreibungstext */
.hero-desc {
  font-size: .93rem;
  line-height: 1.78;
  color: var(--color-text-light);
}

/* Welle */
.hero-wave {
  width: 100%;
  line-height: 0;
  margin-top: auto;
}
.hero-wave svg { display: block; }

/* ===================================================
   SECTIONS — GEMEINSAME STYLES
   =================================================== */
.section { padding: var(--section-pad) 0; }

/* Sprungziel-Abstand: Anker-Ziele dürfen nicht unter der fixen Navbar landen.
   Navbar-Höhe + Luft; darunter folgt zusätzlich das Section-Padding. */
section[id] { scroll-margin-top: calc(var(--nav-height) + 32px); }

.section-soft       { background: var(--color-bg-soft); }
.section-warm       { background: var(--color-bg-warm); }
.section-green-soft { background: var(--color-bg-green-s); }
.section-accent     { background: var(--color-bg-teal); }
.section-neutral    { background: var(--color-bg-neutral); }

/* Sektions-Übergänge */
.sec-divider {
  width: 100%;
  line-height: 0;
  overflow: hidden;
  margin-bottom: -2px; /* Subpixel-Gap verhindern */
}
.sec-divider svg { display: block; }

/* Hero-Welle ebenfalls sichern */
.hero-wave {
  margin-bottom: -2px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--color-bg-teal);
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid var(--color-border);
  margin-bottom: 14px;
}
.section-header h2  { margin-bottom: 14px; }
.section-header p   { font-size: 1.05rem; max-width: 580px; margin-inline: auto; }

/* ===================================================
   ÜBER DEN ELTERNRAT
   =================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-text .section-label { text-align: left; }
.about-text h2 { margin-bottom: 16px; }
.about-text p  { margin-bottom: 16px; line-height: 1.8; }

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}
.about-pillar {
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--color-border);
  transition: box-shadow .2s;
}
.about-pillar:hover { box-shadow: var(--shadow-sm); }
.pillar-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.pillar-icon.teal   { background: var(--color-bg-teal); }
.pillar-icon.orange { background: var(--color-bg-orange); }
.pillar-icon.green  { background: var(--color-bg-green); }
.pillar-icon.mid    { background: #e0f0ec; }

.about-pillar h4 { font-size: .9rem; margin-bottom: 3px; }
.about-pillar p  { font-size: .82rem; }

/* Spenden-Block */
.donate-box {
  margin-top: 56px;
  background: linear-gradient(135deg, var(--color-bg-soft) 0%, var(--color-bg-teal) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px 48px;
}
.donate-header {
  text-align: center;
  margin-bottom: 36px;
}
.donate-header h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--teal-dark);
  margin-bottom: 8px;
}
.donate-header p {
  font-size: .95rem;
  max-width: 540px;
  margin-inline: auto;
}
.donate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.donate-method {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.donate-twint-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}
.donate-bank-icon {
  font-size: 2.2rem;
  line-height: 1;
}
.donate-method-label {
  font-size: .82rem;
  color: var(--color-text-light);
  margin: 0;
}
.donate-qr {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 3px solid var(--color-border);
}
.donate-bank-details {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  align-items: baseline;
}
.donate-bank-details dt {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .78rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.donate-bank-details dd {
  font-size: .88rem;
  color: var(--color-text);
  line-height: 1.5;
}
.donate-iban {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: .95rem !important;
  color: var(--teal-dark) !important;
  letter-spacing: .05em;
}

/* Bild-Karte */
.about-visual { position: relative; }
.about-img-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-wrap img { width: 100%; }
.about-float-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  font-family: var(--font-heading);
  font-weight: 700;
}
.about-float-card.top-right { top: -20px; right: -20px; }
.about-float-card.bot-left  { bottom: -20px; left: -20px; display: flex; align-items: center; gap: 10px; }
.float-number { font-size: 1.7rem; color: var(--teal-dark); display: block; }
.float-label  { font-size: .76rem; color: var(--color-text-light); }
.float-avatar-group { display: flex; }
.float-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  font-weight: 800;
  color: white;
}
.float-avatar:first-child { margin-left: 0; }

/* ===================================================
   AKTUELLES / NEWS
   =================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Nur ein Beitrag: Kachel mittig statt einsam links im 3er-Raster.
   Klasse am .news-grid entfernen, sobald wieder mehrere Beiträge stehen. */
.news-grid.news-grid-single {
  grid-template-columns: 1fr;
  max-width: 460px;
  margin-inline: auto;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.news-card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.news-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-cat {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: 100px;
  color: white;
}
.cat-teal   { background: var(--teal-dark); }
.cat-orange { background: var(--orange); }
.cat-green  { background: var(--green); }
.cat-mid    { background: var(--teal-mid); }

.news-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.news-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: .78rem;
  color: var(--color-text-light);
  font-family: var(--font-heading);
  font-weight: 600;
}
.news-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--color-text);
}
.news-card-body p {
  font-size: .88rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}
.news-card-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .85rem;
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s;
}
.news-card-link:hover { gap: 10px; color: var(--teal-mid); }

/* ===================================================
   TERMINE / EVENTS — Kacheln
   =================================================== */

/* Kachel-Raster: 3 Spalten, letzte Reihe zentriert */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Ein oder zwei Termine: Kacheln mittig statt linksbündig im 3er-Raster.
   Die Spuren sind auf Kachelbreite begrenzt und werden zentriert, damit eine
   einzelne Kachel nicht auf volle Breite gezogen wird.
   Klasse am .events-grid entfernen, sobald drei oder mehr Termine stehen. */
.events-grid.events-grid-few {
  grid-template-columns: repeat(auto-fit, minmax(260px, 380px));
  justify-content: center;
  max-width: 800px;
  margin-inline: auto;
}

.event-tile {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
}
.event-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* Farbiger Kopfbalken mit Monat und Tag */
.event-tile-top {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.event-tile-month {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.9);
}

/* Kachel-Inhalt */
.event-tile-body {
  padding: 18px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Grosse Tageszahl */
.event-tile-day {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--teal-dark);
  line-height: 1;
  margin-bottom: 10px;
}

.event-tile h3 {
  font-size: 1rem;
  line-height: 1.35;
  color: var(--color-text);
  margin-bottom: 12px;
}

.event-tile-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: .82rem;
  color: var(--color-text-light);
  font-family: var(--font-heading);
  font-weight: 600;
}

/* Kalender-Export-Button */
.event-cal-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  /* nur obere Trennlinie, Rest unsichtbar */
  border-left: none;
  border-right: none;
  border-bottom: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .82rem;
  color: var(--teal-dark);
  cursor: pointer;
  transition: color .2s, gap .2s;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}
.event-cal-btn:hover {
  color: var(--orange);
  gap: 10px;
}

/* Tags */
.event-tag {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .70rem;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}
.tag-orange { background: var(--orange); color: white; }
.tag-green  { background: var(--green);  color: white; }
.tag-white  { background: rgba(255,255,255,.28); color: white; }
.tag-red    { background: #e05050; color: white; }

/* ===================================================
   ARBEITSGRUPPEN
   =================================================== */
.ag-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.ag-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.ag-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  color: var(--color-text);
}
.ag-card-stripe {
  height: 6px;
  flex-shrink: 0;
}
.ag-card-body {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ag-card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  line-height: 1;
}
.ag-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--color-text);
}
.ag-card p {
  font-size: .9rem;
  margin-bottom: 18px;
  flex: 1;
}
.ag-card-email {
  display: block;
  font-size: .8rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--teal-dark);
  word-break: break-all;
  margin-bottom: 18px;
}
.ag-card-email::before { content: "✉ "; }
.ag-card-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--color-primary);
  transition: gap .2s;
}
.ag-card:hover .ag-card-link { gap: 10px; }

/* Übergangszustand: Die AG-Detailseiten sind inhaltlich noch nicht bereit.
   Die Karten sind deshalb nicht verlinkt — <div> statt <a>, das spätere
   Linkziel steht im Attribut data-href. Rückbau siehe PROJEKT.md. */
.ag-card-soon { cursor: default; }
.ag-card-soon:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--color-border);
}
.ag-card-link-soon {
  color: var(--color-text-light);
  font-weight: 600;
}

/* ===================================================
   ARBEITSGRUPPEN — DETAILSEITEN
   =================================================== */
.ag-page-hero {
  padding: calc(var(--nav-height) + 52px) 0 48px;
  border-bottom: 4px solid var(--ag-accent, var(--teal-dark));
  background: var(--ag-bg, var(--color-bg-teal));
}
.ag-page-hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}
/* Flex-Kinder dürfen unter ihre Inhaltsbreite schrumpfen. Ohne min-width:0
   erzwingt die lange AG-Adresse als unteilbares Wort die Breite der Textspalte
   und schiebt den Kopfbereich auf Mobile über den rechten Rand hinaus. */
.ag-page-hero-inner > * { min-width: 0; }
.ag-page-icon { font-size: 3.5rem; line-height: 1; flex-shrink: 0; }
.ag-page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--ag-accent, var(--teal-dark));
  margin-bottom: 8px;
  overflow-wrap: break-word;
}
.ag-page-sub { font-size: 1rem; color: var(--color-text-light); margin: 0; }
.ag-page-email {
  display: inline-block;
  max-width: 100%;
  margin-top: 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .95rem;
  color: var(--ag-accent, var(--teal-dark));
  word-break: break-word;    /* Fallback für ältere Safari-Versionen */
  overflow-wrap: anywhere;   /* lange Adresse darf umbrechen statt zu überstehen */
}
.ag-page-email::before { content: "✉ "; }

.ag-page-content {
  max-width: 800px;
  margin-inline: auto;
  padding: 60px 24px 80px;
}
/* Lange Mailadressen dürfen umbrechen statt die Seite breiter zu machen */
.ag-page-content a[href^="mailto:"] { overflow-wrap: anywhere; }
.ag-page-content h2 {
  font-size: 1.3rem;
  color: var(--ag-accent, var(--teal-dark));
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
}
.ag-page-content h2:first-child { margin-top: 0; }
.ag-page-content p,
.ag-page-content li {
  font-size: .95rem;
  line-height: 1.8;
  color: var(--color-text-light);
}
.ag-page-content ul {
  list-style: disc;
  padding-left: 22px;
  margin-top: 8px;
}
.ag-page-content li { margin-bottom: 6px; }

.ag-status {
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 32px 0;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.ag-status.open        { background: #edf7e4; border-left: 5px solid #78aa36; }
.ag-status.closed      { background: #f0f7f6; border-left: 5px solid #236e78; }
.ag-status.placeholder { background: #fef9e8; border-left: 5px solid #f0961d; }
.ag-status-icon        { font-size: 1.6rem; flex-shrink: 0; }
.ag-status-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--color-text);
}
.ag-status-text p { margin: 0; }

.ag-page-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .9rem;
  color: var(--ag-accent, var(--teal-dark));
  margin-bottom: 40px;
  transition: gap .2s;
}
.ag-page-back:hover { gap: 10px; color: var(--ag-accent, var(--teal-dark)); }

/* ===================================================
   KONTAKT
   =================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 14px; }
.contact-info > p { margin-bottom: 32px; }
.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-item-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  background: var(--color-bg-teal);
}
.contact-item-icon.orange { background: var(--color-bg-orange); }
.contact-item-icon.green  { background: var(--color-bg-green); }
.contact-item h4 { font-size: .9rem; margin-bottom: 3px; }
.contact-item p  { font-size: .88rem; }
.contact-item a  { font-size: .88rem; color: var(--color-text-light); display: block; }
.contact-item a:hover { color: var(--teal-dark); }

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}
.contact-form-card h3 { margin-bottom: 6px; }
.contact-form-card > p { font-size: .9rem; margin-bottom: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .83rem;
  color: var(--color-text);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--color-text);
  background: var(--color-bg-soft);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal-dark);
  box-shadow: 0 0 0 3px rgba(35,110,120,.12);
  background: white;
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit { width: 100%; justify-content: center; }

/* DSGVO-Checkbox */
.form-check label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .85rem;
  line-height: 1.5;
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  /* Native Checkbox-Darstellung wiederherstellen (die .form-group-Regel
     setzt appearance:none, wodurch das Häkchen sonst unsichtbar wäre). */
  -webkit-appearance: auto;
  appearance: auto;
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  margin: 2px 0 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  flex-shrink: 0;
  accent-color: var(--teal-dark);
  cursor: pointer;
}
.form-check input[type="checkbox"]:focus {
  /* Fokus-Leuchten der Textfelder hier unterdrücken */
  box-shadow: none;
  background: none;
  outline: 2px solid rgba(35,110,120,.4);
  outline-offset: 2px;
}
.form-check a { color: var(--teal-dark); text-decoration: underline; }

/* Server-Meldungen (Erfolg / Fehler) */
.form-alert {
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 22px;
  font-size: .9rem;
  line-height: 1.5;
}
.form-alert strong { display: block; margin-bottom: 2px; }
.form-alert-success {
  background: #eef7e6;
  border: 1px solid var(--green);
  color: #3f6018;
}
.form-alert-error {
  background: #fdeceb;
  border: 1px solid #e88b82;
  color: #9a2820;
}

/* ===================================================
   FOOTER
   =================================================== */
footer {
  background: #0f3840;   /* sehr dunkles Türkis */
  color: rgba(255,255,255,.75);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand p {
  font-size: .88rem;
  line-height: 1.75;
  color: rgba(255,255,255,.55);
  max-width: 260px;
  margin-top: 14px;
}

.footer-logo {
  height: 52px;
  width: auto;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  font-family: var(--font-heading);
  font-weight: 700;
  transition: all .2s;
  text-decoration: none;
}
.footer-social a:hover { background: var(--orange); color: white; }

.footer-col h4 {
  color: white;
  font-family: var(--font-heading);
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  color: rgba(255,255,255,.55);
  font-size: .88rem;
  transition: color .2s;
}
.footer-col ul a:hover { color: white; }

/* Spaltentitel als Sprung zur Sektion (die Einträge selbst sind derzeit nicht verlinkt) */
.footer-col h4 a { color: inherit; text-decoration: none; }
.footer-col h4 a:hover { text-decoration: underline; }

/* Übergangszustand: Arbeitsgruppen im Footer ohne Link, solange die
   Detailseiten nicht bereit sind. Ziel-URL steht in data-href. Rückbau siehe PROJEKT.md. */
.footer-soon {
  color: rgba(255,255,255,.42);
  font-size: .88rem;
}


.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
  color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.35); }
.footer-bottom a:hover { color: rgba(255,255,255,.65); }
.footer-bottom-links { display: flex; gap: 20px; }

/* ===================================================
   TOAST
   =================================================== */
.toast {
  position: fixed;
  bottom: 28px; right: 28px;
  background: var(--teal-dark);
  color: white;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .9rem;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(80px);
  opacity: 0;
  transition: all .35s cubic-bezier(.34,1.56,.64,1);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon { font-size: 1.1rem; }

/* ===================================================
   SCROLL-TO-TOP
   =================================================== */
#scrollTop {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--teal-dark);
  color: white;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(20px);
  transition: all .3s;
  z-index: 998;
}
#scrollTop.visible { opacity: 1; transform: translateY(0); }
#scrollTop:hover   { background: var(--teal-mid); transform: translateY(-3px); }

/* ===================================================
   FADE-IN ANIMATIONEN
   =================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===================================================
   MODAL
   =================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn .2s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(0,0,0,.07);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--color-text);
  line-height: 1;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background .15s;
  z-index: 1;
}
.modal-close:hover { background: rgba(0,0,0,.15); }

.modal-img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: block;
}
.modal-content-inner { padding: 32px; }
.modal-content-inner h2 { font-size: 1.35rem; margin-bottom: 6px; }

.modal-meta {
  display: flex;
  gap: 16px;
  font-size: .85rem;
  color: var(--color-text-light);
  margin: 8px 0 20px;
  flex-wrap: wrap;
}
.modal-body { font-size: .95rem; line-height: 1.75; }
.modal-body p { margin-bottom: 1em; }

/* Event-Modal */
.modal-event-header {
  padding: 24px 32px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  color: white;
}
.modal-event-month { font-size: .85rem; opacity: .8; margin-bottom: 4px; font-family: var(--font-heading); }
.modal-event-day   { font-family: var(--font-heading); font-size: 3rem; font-weight: 700; line-height: 1; }
.modal-event-details { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.modal-event-detail-item { font-size: .95rem; }

/* ===================================================
   ARTIKEL-SEITEN (News)
   =================================================== */
.article-hero {
  background: var(--teal-dark);
  color: white;
  padding: 120px 0 48px;
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.75);
  font-size: .88rem;
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 20px;
  transition: color .2s;
}
.article-back:hover { color: white; }
.article-hero .news-card-cat {
  position: static;
  display: inline-block;
  margin-bottom: 14px;
}
.article-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.25;
  margin-bottom: 14px;
  color: white;
}
.article-meta {
  display: flex;
  gap: 20px;
  font-size: .88rem;
  color: rgba(255,255,255,.7);
  flex-wrap: wrap;
}
.article-content {
  padding: 56px 0 80px;
}
.article-body {
  max-width: 740px;
  margin: 0 auto;
}
.article-img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  display: block;
}
.article-img-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 32px 0;
}
.article-img-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* Flyer im Hochformat: vollständig zeigen statt wie die Standard-Galerie auf 4:3
   zuzuschneiden — sonst fehlt der halbe Programmtext. Bild öffnet sich per Klick. */
.flyer-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 28px 0 36px;
}
.flyer-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: box-shadow .25s;
}
.flyer-gallery a:hover img { box-shadow: var(--shadow-md); }
/* Im Termin-Modal enger, dort ist der Platz knapper */
.modal-content-inner .flyer-gallery { margin: 0 0 24px; }
.article-body p { font-size: 1rem; line-height: 1.8; margin-bottom: 1.2em; }
.article-body h2 { font-size: 1.3rem; margin: 2em 0 .6em; }
.article-body h3 { font-size: 1.1rem; margin: 1.5em 0 .5em; }

/* Event-Kachel: Buttons */
.event-tile-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.event-detail-btn {
  font-family: var(--font-heading);
  font-size: .8rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--teal-dark);
  color: var(--teal-dark);
  background: transparent;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.event-detail-btn:hover { background: var(--teal-dark); color: white; }

/* ===================================================
   MOBILE NAVIGATION
   =================================================== */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 12px 16px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all .25s ease;
    gap: 2px;
    z-index: 999;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  /* Jeder Menüpunkt als elegante Zeile */
  .nav-links li { border-radius: var(--radius-md); overflow: hidden; }
  .nav-links a {
    padding: 13px 16px;
    font-size: 1.1rem;
    gap: 14px;
    border-radius: var(--radius-md);
    color: var(--color-text);
    position: relative;
  }
  .nav-links a::after {
    content: '›';
    margin-left: auto;
    font-size: 1.2rem;
    color: var(--color-border);
    transition: transform .2s, color .2s;
  }
  .nav-links a:hover,
  .nav-links a.active {
    background: var(--color-bg-teal);
    color: var(--teal-dark);
  }
  .nav-links a:hover::after,
  .nav-links a.active::after {
    transform: translateX(3px);
    color: var(--teal-dark);
  }

  /* Icons im Mobile-Menü einblenden */
  .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: var(--color-bg-teal);
    border-radius: 10px;
    color: var(--teal-dark);
    flex-shrink: 0;
    transition: background .2s;
  }
  .nav-icon svg { width: 18px; height: 18px; }

  /* Individuelle Icon-Farben je Menüpunkt */
  .nav-links li:nth-child(1) .nav-icon { background: var(--color-bg-warm);  color: var(--orange); }
  .nav-links li:nth-child(2) .nav-icon { background: var(--color-bg-teal);  color: var(--teal-mid); }
  .nav-links li:nth-child(3) .nav-icon { background: var(--color-bg-green); color: var(--green); }
  .nav-links li:nth-child(4) .nav-icon { background: var(--color-bg-soft);  color: var(--teal-dark); }
  .nav-links li:nth-child(5) .nav-icon { background: var(--color-bg-warm);  color: var(--orange); }

  .nav-links a:hover .nav-icon,
  .nav-links a.active .nav-icon {
    background: var(--teal-dark);
    color: white;
  }

  /* Trennlinie zwischen Items */
  .nav-links li + li {
    border-top: 1px solid var(--color-bg-teal);
  }

  .nav-cta    { display: none; }
  .nav-hamburger { display: flex; }
}

/* ===================================================
   LEGAL PAGES (Impressum, Datenschutz)
   =================================================== */
.legal-hero {
  background: linear-gradient(135deg, var(--color-bg-teal) 0%, var(--color-bg-soft) 100%);
  padding: calc(var(--nav-height) + 52px) 0 48px;
}
.legal-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--teal-dark);
  margin-bottom: 8px;
}
.legal-hero p { font-size: 1rem; }

.legal-content {
  max-width: 760px;
  margin-inline: auto;
  padding: 60px 24px 80px;
}
.legal-content h2 {
  font-size: 1.25rem;
  color: var(--teal-dark);
  margin: 40px 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 1rem;
  color: var(--color-text);
  margin: 20px 0 6px;
}
.legal-content p,
.legal-content li {
  font-size: .95rem;
  line-height: 1.8;
  color: var(--color-text-light);
}
.legal-content ul {
  list-style: disc;
  padding-left: 22px;
  margin-top: 8px;
}
.legal-content li { margin-bottom: 4px; }
.legal-content a { color: var(--teal-dark); }
.legal-content a:hover { color: var(--orange); }

.legal-box {
  background: var(--color-bg-teal);
  border-left: 4px solid var(--teal-dark);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin: 16px 0;
}
.legal-box p { margin: 0; color: var(--color-text); }
.legal-box strong { color: var(--teal-dark); }

.legal-tag {
  display: inline-block;
  background: var(--color-bg-green);
  color: var(--green-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .75rem;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
}
.legal-tag.orange {
  background: var(--color-bg-orange);
  color: var(--orange);
}

/* ===================================================
   RESPONSIVE BREAKPOINTS
   =================================================== */
@media (max-width: 1024px) {
  :root { --section-pad: 60px; }
  .events-grid  { grid-template-columns: repeat(2, 1fr); }
  .ag-grid      { grid-template-columns: repeat(2, 1fr); }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-pad: 50px; }
  /* AG-Detailseiten: Kopfbereich kompakter, Icon über den Text statt daneben —
     so bekommt die lange AG-Adresse die volle Breite. */
  .ag-page-hero        { padding: calc(var(--nav-height) + 34px) 0 34px; }
  .ag-page-hero-inner  { flex-direction: column; gap: 12px; }
  .ag-page-icon        { font-size: 2.8rem; }
  .ag-page-email       { word-break: break-all; }
  /* Hero */
  .hero-body           { padding: 26px 28px; }
  .hero-desc           { font-size: .88rem; }
  /* Sektionen */
  .events-grid         { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .about-grid          { grid-template-columns: 1fr; gap: 40px; }
  .about-pillars       { grid-template-columns: 1fr 1fr; }
  .about-float-card    { display: none; }
  .news-grid           { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .event-item          { padding: 14px 16px; gap: 16px; }
  .event-meta          { gap: 10px; }
  .contact-grid        { grid-template-columns: 1fr; gap: 40px; }
  .form-row            { grid-template-columns: 1fr; }
  .footer-grid         { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom       { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; flex-wrap: wrap; }
  /* Spenden */
  .donate-box          { padding: 28px 20px; }
  .donate-grid         { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  :root { --section-pad: 40px; }
  .ag-page-icon        { font-size: 2.4rem; }
  .ag-page-email       { font-size: .88rem; }
  .hero-title      { white-space: normal; }
  .events-grid     { grid-template-columns: 1fr; }
  .about-pillars   { grid-template-columns: 1fr; }
  .ag-grid         { grid-template-columns: 1fr; }
  .contact-form-card { padding: 24px; }
  .donate-qr       { width: 150px; height: 150px; }
}
