/* =========================================================
   GRUNDSCHULE CHRISTIAN LUDWIG BREHM — Schönau v. d. Walde
   Designsystem im Geist von Birklehof:
   tiefes Waldgrün · cremiges Papier · zarte Linien
   große italic Serif als Stimme · Sans als Struktur
   ========================================================= */

:root {
  /* Tannen-Teal — das echte Birklehof-Grün */
  --gruen:         #004E47;
  --gruen-mittel:  #36726D;
  --gruen-dunkel:  #003832;
  --gruen-tief:    #001E1B;
  --gruen-pastell: #d3e0dd;
  --gruen-nebel:   #eef2f1;

  /* Akzent — Limette wie Birklehof */
  --akzent:        #9CBD28;
  --akzent-hell:   #B7C82C;
  --akzent-dunkel: #7ca020;

  /* Papier, Beige, Linie */
  --weiss:         #ffffff;
  --papier:        #fafafa;
  --papier-warm:   #f5efe2;
  --beige:         #ece5d3;
  --beige-dunkel:  #d6cdb6;
  --linie:         #e6e0d1;

  /* Text */
  --text:          #1a1f1c;
  --text-grau:     #5a625a;
  --text-hell:     #8a8f87;

  /* Typografie */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Raster */
  --max-breite: 1200px;
  --max-breite-kopf: 1440px;
  --max-schmal: 720px;
  --rand: 48px;

  /* Schatten — wie Birklehofs drop-shadow */
  --schatten-weich: 0 8px 32px rgba(0, 30, 27, 0.12);
  --schatten-bild:  0 8px 56px rgba(0, 30, 27, 0.20);
  --schatten-tief:  0 24px 60px rgba(0, 30, 27, 0.25);

  /* Überlagerung — Birklehofs charakteristisches Bild-Overlay */
  --overlay-teal:   rgba(0, 78, 71, 0.8);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
em { font-style: italic; }


/* ============================================
   KOPFLEISTE
   Boxed (breiter als Inhalt) · Logo links auf hängendem
   Panel · Menü mittig · CTA rechts
   ============================================ */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--weiss);
  box-shadow: 0 1px 0 var(--linie), 0 6px 16px -4px rgba(0, 30, 27, 0.08);
}

.kopf__inner {
  max-width: var(--max-breite-kopf);
  margin: 0 auto;
  padding: 18px var(--rand);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.kopf__logo-bereich {
  justify-self: start;
  background: var(--gruen-nebel);
  padding: 0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.kopf__logo { display: block; line-height: 0; }

.kopf__logo-bild {
  width: 160px;
  height: auto;
  display: block;
  transition: opacity 0.2s ease;
}

.kopf__logo:hover .kopf__logo-bild { opacity: 0.85; }

.kopf__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  justify-self: center;
}

.kopf__nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gruen);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 4px;
  background: transparent;
  border: none;
  position: relative;
  transition: color 0.18s;
  white-space: nowrap;
  line-height: 1;
}

.kopf__nav a i.bx {
  font-size: 17px;
  line-height: 1;
  color: var(--akzent-dunkel);
  transition: color 0.18s, transform 0.18s;
}

.kopf__nav a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 4px;
  right: 4px;
  height: 2px;
  background: var(--akzent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
}

.kopf__nav a:hover { color: var(--gruen-dunkel); }
.kopf__nav a:hover i.bx { color: var(--gruen-dunkel); transform: translateY(-1px); }
.kopf__nav a:hover::after { transform: scaleX(1); }

/* Active-State: aktuelle Seite hat dauerhaft den Akzent-Underline */
.kopf__nav a[aria-current="page"] { color: var(--gruen-dunkel); }
.kopf__nav a[aria-current="page"] i.bx { color: var(--gruen); }
.kopf__nav a[aria-current="page"]::after { transform: scaleX(1); }

.kopf__overlay-liste a[aria-current="page"] {
  color: var(--gruen);
}
.kopf__overlay-liste a[aria-current="page"] i.bx { color: var(--gruen); }

.kopf__cta {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.knopf--klein {
  height: 42px;
  padding: 0 18px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  white-space: nowrap;
  line-height: 1;
  gap: 8px;
  box-sizing: border-box;
}

.knopf--klein i.bx { font-size: 16px; }


/* ============================================
   SUB-HERO (Unterseiten)
   ============================================ */

.sub-hero {
  background: var(--gruen);
  color: var(--weiss);
  padding: 80px var(--rand);
  text-align: center;
}

.sub-hero__inner {
  max-width: 860px;
  margin: 0 auto;
}

.sub-hero h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.sub-hero__lead {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0 auto;
}


/* ============================================
   HERO
   Vollbreites Bild · Zitat in italic Serif zentriert
   ============================================ */

.hero {
  position: relative;
  width: 100%;
  height: 78vh;
  min-height: 540px;
  max-height: 760px;
  overflow: hidden;
  background: var(--gruen-tief);
}

.bildplatz--hero {
  width: 100%;
  height: 100%;
  /* Hintergrundbild wird vom Hero-Widget gesetzt */
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  padding: 0;
}

.bildplatz--hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border: none;
  background:
    radial-gradient(
      ellipse 110% 70% at 50% 95%,
      rgba(0, 30, 27, 0.55) 0%,
      rgba(0, 30, 27, 0) 65%
    ),
    linear-gradient(
      180deg,
      rgba(0, 30, 27, 0.18) 0%,
      rgba(0, 30, 27, 0) 30%,
      rgba(0, 30, 27, 0) 55%,
      rgba(0, 30, 27, 0.45) 95%,
      rgba(0, 30, 27, 0.70) 100%
    );
  pointer-events: none;
  z-index: 1;
}

.hero__zitat {
  position: absolute;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 860px;
  text-align: center;
  color: var(--weiss);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.hero__zitat :is(p, .hero__zitat-text) {
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 60px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: -0.008em;
  margin-bottom: 28px;
}

.hero__zitat :is(p, .hero__zitat-text) strong {
  font-weight: 600;
  font-style: italic;
}

.hero__zitat-meta {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.95;
  padding-left: 0.5em;
}


/* Wellen-Übergang Hero → Einleitung */
.hero-welle {
  width: 100%;
  line-height: 0;
  margin-top: -70px;
  position: relative;
  z-index: 3;
}

.hero-welle svg {
  display: block;
  width: 100%;
  height: 70px;
}


/* ============================================
   EINFÜHRUNG
   Schmal · zentriert · zarter Serif-Pull-Quote
   ============================================ */

.einleitung {
  padding: 60px var(--rand) 110px;
  background: var(--weiss);
}

.einleitung__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.einleitung__prosa {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 40px;
}

.einleitung__prosa strong {
  color: var(--gruen);
  font-weight: 600;
}


/* ============================================
   KNÖPFE
   ============================================ */

.knopf {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
}

.knopf i.bx {
  font-size: 17px;
  line-height: 1;
}

.knopf--akzent {
  background: var(--gruen);
  color: var(--weiss);
  border-color: var(--gruen);
}

.knopf--akzent:hover {
  background: var(--gruen-dunkel);
  color: var(--weiss);
  border-color: var(--gruen-dunkel);
}


/* ============================================
   WALD-SILHOUETTE
   Berge mit Tannen, gestaffelt — Trenner
   ============================================ */

.wald-silhouette {
  width: 100%;
  line-height: 0;
  background: var(--weiss);
  margin-bottom: -1px;
}

.wald-silhouette__bild {
  display: block;
  width: 100%;
  height: auto;
  /* Echtes Seitenverhältnis der Grafik – reserviert die Höhe schon vor dem Laden */
  aspect-ratio: 12000 / 1900;
}

.wald-silhouette__bild--flip {
  transform: scaleY(-1);
}


/* ============================================
   ZAHLEN-STREIFEN
   Sehr große dünne Zahlen in Akzentgrün
   ============================================ */

.zahlen {
  background: var(--gruen-tief);
  padding: 80px var(--rand) 90px;
  margin-top: -2px;
}

.zahlen__inner {
  max-width: var(--max-breite);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  text-align: center;
}

.zahl {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.zahl__icon {
  font-size: 44px;
  color: var(--akzent);
  margin-bottom: 18px;
  line-height: 1;
}

.zahl__wert {
  font-family: var(--sans);
  font-size: 72px;
  font-weight: 200;
  line-height: 1;
  color: var(--weiss);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.zahl__label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.zahl__label span {
  display: block;
  font-weight: 400;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 6px;
  letter-spacing: 0.04em;
  text-transform: none;
}


/* ============================================
   ABSCHNITT-LABEL
   ============================================ */

.abschnitt-titel,
.abschnitt-vorkopf {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  text-align: center;
  color: var(--gruen-dunkel);
  margin-bottom: 56px;
  text-transform: none;
}

.abschnitt-vorkopf {
  position: relative;
  display: block;
  padding-bottom: 28px;
}

.abschnitt-vorkopf::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  background: var(--akzent);
}


/* ============================================
   ABSCHNITT-VORZEILE (kleine Zeile über der Überschrift)
   ============================================ */

.abschnitt-vorkopf-eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-align: center;
  color: var(--akzent-dunkel);
  margin-bottom: 16px;
}


/* ============================================
   LISTE IN INFO-KARTEN (z. B. Ferientermine)
   ============================================ */

.jahr-karte__liste {
  list-style: none;
  padding: 16px 0 0;
  border-top: 1px solid var(--linie);
  margin: 0;
}

.jahr-karte__liste li {
  position: relative;
  padding: 4px 0 4px 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text);
}

.jahr-karte__liste li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 8px;
  height: 1.5px;
  background: var(--akzent);
}


/* ============================================
   TEASER-KARTEN (Hub) · 3er-Grid mit Bild, Text, Button
   ============================================ */

.hub {
  background: var(--weiss);
  padding: 90px var(--rand) 120px;
}

.hub__inner {
  max-width: var(--max-breite);
  margin: 0 auto;
}


/* 3er-Grid mit weiteren Beiträgen */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}

.hub-karte {
  background: var(--gruen-nebel);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.hub-karte:hover {
  box-shadow: var(--schatten-weich);
  transform: translateY(-3px);
}

.hub-karte__bild {
  aspect-ratio: 3/2;
  overflow: hidden;
}

.hub-karte__text {
  padding: 26px 26px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hub-karte__text :is(h4, .hub-karte__titel) {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.28;
  margin-bottom: 14px;
  color: var(--text);
}

.hub-karte__text p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-grau);
  margin-bottom: 22px;
  flex: 1;
}

.hub-karte__text .knopf {
  padding: 12px 26px;
  font-size: 12px;
}

/* Hell-Variante (auf dunklem Hintergrund): bleibt als kleines Caps-Eyebrow */
.abschnitt-vorkopf--hell {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 24px;
  padding-bottom: 0;
}

.abschnitt-vorkopf--hell::after {
  display: none;
}


/* ============================================
   ZWEIER-REIHE (Info-Karten, Team)
   ============================================ */

.netzwerk__zweier {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}


/* ============================================
   BILDPLATZ — Container für Hintergrundbilder
   ============================================ */

.bildplatz {
  background-color: var(--gruen);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  position: relative;
}

/* Das Bild selbst (<img> mit srcset statt CSS-Hintergrund) füllt den Rahmen */
.bildplatz .bildplatz__bild {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}


/* ============================================
   TEXT-SECTION (Subpage-Inhaltsblöcke)
   ============================================ */

.text-section {
  background: var(--weiss);
  padding: 100px var(--rand);
}

.text-section--hell { background: var(--gruen-nebel); }

.text-section__inner {
  max-width: var(--max-breite);
  margin: 0 auto;
}

.text-section__lead {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-grau);
}


/* Text+Bild Zweispalter — Bild matched die Texthöhe */
.text-zwei {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: stretch;
}

.text-zwei--gespiegelt { direction: rtl; }
.text-zwei--gespiegelt > * { direction: ltr; }

.text-zwei__bild {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--schatten-bild);
  min-height: 380px;
}

.text-zwei__bild .bildplatz {
  position: absolute;
  inset: 0;
}

.text-zwei__inhalt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.text-zwei__inhalt .knopf { align-self: flex-start; }

.text-zwei__inhalt :is(h2, .text-zwei__titel) {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
  color: var(--gruen-dunkel);
  margin: 0 0 22px;
}

.text-zwei__inhalt p {
  font-size: 16px;
  line-height: 1.78;
  color: var(--text-grau);
  margin: 0 0 18px;
}

.text-zwei__inhalt .knopf { margin-top: 12px; }


/* ============================================
   LEITBILD-Säulen (Unsere Schule)
   ============================================ */

.leitbild {
  background: var(--gruen-nebel);
  color: var(--gruen-dunkel);
  padding: 100px var(--rand);
  text-align: center;
}

.leitbild__inner {
  max-width: var(--max-breite);
  margin: 0 auto;
}

.leitbild :is(h2, .leitbild__titel) {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.2;
  color: var(--gruen-dunkel);
  margin: 0 0 22px;
}

.leitbild__saeulen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.leitbild__saeule {
  padding: 36px 28px 32px;
  background: var(--weiss);
  border-radius: 8px;
}

.leitbild__saeule i.bx {
  font-size: 38px;
  color: var(--akzent-dunkel);
  margin-bottom: 18px;
  display: inline-block;
}

.leitbild__saeule :is(h3, .leitbild__saeule-titel) {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  color: var(--gruen-dunkel);
  margin: 0 0 12px;
}

.leitbild__saeule p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-grau);
  margin: 0;
}

.leitbild .abschnitt-vorkopf--hell {
  color: var(--akzent-dunkel);
}


/* ============================================
   VERANSTALTUNGS-GRID
   ============================================ */

.veranst-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.veranst-karte {
  background: var(--weiss);
  border-radius: 8px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.text-section--hell .veranst-karte { background: var(--weiss); }
.text-section:not(.text-section--hell) .veranst-karte { background: var(--gruen-nebel); }

.veranst-karte:hover {
  transform: translateY(-3px);
  box-shadow: var(--schatten-weich);
}

.veranst-karte i.bx {
  font-size: 28px;
  color: var(--akzent-dunkel);
  margin-bottom: 4px;
}

.veranst-karte :is(h3, .veranst-karte__titel) {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  color: var(--gruen-dunkel);
  margin: 0;
}

.veranst-karte p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-grau);
  margin: 0;
}


/* ============================================
   TEAM-GRID
   ============================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-karte {
  background: var(--weiss);
  border-radius: 8px;
  overflow: hidden;
  padding-bottom: 24px;
  text-align: center;
}

.text-section--hell .team-karte { background: var(--weiss); }
.text-section:not(.text-section--hell) .team-karte { background: var(--gruen-nebel); }

/* Foto: kleines, zentriertes Porträt in der Karte (nicht kartenbreit) */
.team-karte__bild {
  width: min(42%, 120px);
  aspect-ratio: 5/6;
  overflow: hidden;
  margin: 26px auto 16px;
  border-radius: 8px;
  box-shadow: var(--schatten-weich);
}

/* Icon-Avatar als Alternative zum Foto */
.team-karte__avatar {
  width: 96px;
  height: 96px;
  margin: 32px auto 18px;
  background: var(--weiss);
  color: var(--gruen);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-section--hell .team-karte__avatar { background: var(--gruen-nebel); }
.text-section:not(.text-section--hell) .team-karte__avatar { background: var(--weiss); }

.team-karte__avatar i.bx {
  font-size: 48px;
  color: var(--gruen);
}

.team-karte :is(h3, .team-karte__name) {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--gruen-dunkel);
  margin: 0 0 4px;
  padding: 0 16px;
}

.team-karte__rolle {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--akzent-dunkel);
  margin: 0 0 14px;
}


/* ============================================
   CTA-BLOCK — schlanker zentrierter Aufruf-Block
   konsistent mit den anderen text-section Stilen
   ============================================ */

.cta-block {
  background: var(--gruen-nebel);
  color: var(--gruen-dunkel);
  padding: 100px var(--rand);
  text-align: center;
}

.cta-block__inner {
  max-width: 680px;
  margin: 0 auto;
}

.cta-block :is(h2, .cta-block__titel) {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.18;
  color: var(--gruen-dunkel);
  margin: 0 0 22px;
}

.cta-block p {
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--text-grau);
  margin: 0 0 36px;
}

.cta-block__aktionen {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}


/* ============================================
   FORMULAR-RAHMEN (Container für Formulare)
   ============================================ */

.formular-rahmen {
  max-width: 760px;
  margin: 0 auto;
}


/* ============================================
   FORMULAR (Kontakt, Anmeldung)
   ============================================ */

.formular {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}

.formular__feld {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.formular__feld--breit { grid-column: span 2; }

.formular label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gruen-dunkel);
}

.formular label .pflicht { color: var(--akzent-dunkel); }

.formular input,
.formular select,
.formular textarea {
  background: var(--weiss);
  /* Feldrahmen mit mind. 3:1 Kontrast (WCAG 1.4.11) – --linie war kaum sichtbar */
  border: 1.5px solid var(--text-hell);
  border-radius: 6px;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
  transition: border-color 0.18s, box-shadow 0.18s;
}

.formular input:focus,
.formular select:focus,
.formular textarea:focus {
  outline: none;
  border-color: var(--gruen);
  box-shadow: 0 0 0 3px rgba(156, 189, 40, 0.18);
}

.formular textarea {
  resize: vertical;
  min-height: 140px;
}

/* Datenschutz-Hinweis — schlicht und nativ */
.formular__hinweis {
  grid-column: span 2;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0 4px;
  font-size: 13.5px;
  color: var(--text-grau);
  line-height: 1.6;
  cursor: pointer;
}

.formular__hinweis input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--gruen);
  margin-top: 3px;
  cursor: pointer;
}

.formular__hinweis a {
  color: var(--gruen);
  border-bottom: 1px solid var(--akzent);
  padding-bottom: 1px;
  font-weight: 500;
}

.formular__hinweis a:hover { color: var(--akzent-dunkel); }

.formular__aktion {
  grid-column: span 2;
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  margin-top: 10px;
}


/* ============================================
   INFO-KARTEN (Kontakt-Seite)
   ============================================ */

.info-karten {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.info-karte {
  background: var(--gruen-nebel);
  border-radius: 8px;
  padding: 28px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-karte__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--weiss);
  border-radius: 8px;
  color: var(--gruen);
}

.info-karte__icon i.bx { font-size: 22px; }

.info-karte :is(h3, .info-karte__titel) {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--gruen-dunkel);
  margin: 4px 0 0;
}

.info-karte p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}

.info-karte a { color: var(--gruen); border-bottom: 1px solid var(--akzent); padding-bottom: 1px; }
.info-karte a:hover { color: var(--akzent-dunkel); }


/* ============================================
   PAGINATION
   ============================================ */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gruen-dunkel);
  background: var(--gruen-nebel);
  transition: all 0.18s;
}

.pagination a:hover {
  background: var(--gruen);
  color: var(--weiss);
}

/* WordPress gibt die Links in .nav-links aus und markiert die aktuelle Seite mit .current */
.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pagination .is-aktiv,
.pagination .current {
  background: var(--gruen);
  color: var(--weiss);
  cursor: default;
}


/* ============================================
   DOWNLOADBEREICH
   Gruppierte Listen mit Datei-Icon + Download-Knopf
   ============================================ */

.download-gruppen {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.download-gruppe__titel {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.25;
  color: var(--gruen-dunkel);
  margin: 0 0 20px;
}

.download-gruppe__titel i.bx {
  font-size: 26px;
  color: var(--akzent-dunkel);
}

.download-liste {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--gruen-nebel);
  border-radius: 8px;
  padding: 20px 24px;
  transition: transform 0.22s, box-shadow 0.22s;
}

.text-section--hell .download-item { background: var(--weiss); }

.download-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--schatten-weich);
}

.download-item__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--weiss);
  border-radius: 8px;
  color: var(--gruen);
}

.text-section--hell .download-item__icon { background: var(--gruen-nebel); }

.download-item__icon i.bx { font-size: 26px; }

.download-item__text {
  flex: 1;
  min-width: 0;
}

.download-item__text :is(h4, .download-item__titel) {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  color: var(--gruen-dunkel);
  margin: 0 0 4px;
}

.download-item__text small {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--text-grau);
}

.download-item .knopf {
  flex-shrink: 0;
  padding: 12px 22px;
  font-size: 12px;
}

@media (max-width: 700px) {
  .download-gruppen { gap: 40px; }
  .download-item { flex-wrap: wrap; padding: 18px; gap: 14px; }
  .download-item__text { flex: 1 1 calc(100% - 66px); }
  .download-item .knopf { width: 100%; justify-content: center; }
}


/* ============================================
   FOOTER mit Wellen-Trenner
   ============================================ */

.fuss-welle {
  width: 100%;
  line-height: 0;
  margin-top: -70px;
  margin-bottom: -1px;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.fuss-welle svg {
  display: block;
  width: 100%;
  height: 70px;
}

.fuss {
  background: var(--gruen-tief);
  color: rgba(255, 255, 255, 0.72);
  padding: 0 var(--rand);
}

.fuss__inner {
  max-width: var(--max-breite);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px;
  padding: 64px 0 48px;
}

/* Footer Logo-Box für Träger und Schulamt */
.fuss__logo-box {
  background: var(--weiss);
  border-radius: 6px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  margin-top: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.fuss__logo-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.fuss__logo-box img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.fuss__spalte :is(h4, .fuss__titel) {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--akzent);
  margin-bottom: 22px;
}

.fuss__spalte p {
  font-size: 13.5px;
  line-height: 1.9;
}

.fuss__spalte p span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.fuss__spalte ul { list-style: none; }

.fuss__spalte ul li {
  font-size: 13.5px;
  line-height: 1.95;
}

.fuss__spalte a { transition: color 0.15s; }
.fuss__spalte a:hover { color: var(--akzent); }
.fuss__spalte p a { border-bottom: 1px solid rgba(151, 192, 0, 0.4); padding-bottom: 1px; }

.fuss__rand {
  max-width: var(--max-breite);
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.fuss__rand-text {
  display: flex;
  gap: 28px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.fuss__rand-text a {
  transition: color 0.15s;
}

.fuss__rand-text a:hover { color: var(--akzent); }

.fuss__copyright {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  text-align: left;
}


/* =========================================================
   BURGER + MOBILE-NAV
   ========================================================= */

.kopf__burger {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: var(--gruen-nebel);
  border: 1.5px solid transparent;
  border-radius: 6px;
  color: var(--gruen);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.kopf__burger i.bx { font-size: 22px; line-height: 1; }

.kopf__burger:hover {
  background: var(--gruen);
  color: var(--weiss);
  border-color: var(--gruen);
}

/* Fullscreen-Overlay Mobile-Nav */
.kopf__overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--weiss);
  color: var(--gruen-dunkel);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px var(--rand) 32px;
  overflow-y: auto;

  /* Open/close animation */
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96) translateY(-8px);
  transform-origin: top right;
  transition:
    opacity 0.32s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.32s;
}

.kopf__overlay.is-aktiv {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
  transition:
    opacity 0.32s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}

.kopf__overlay[hidden] { display: none; }

/* Header: Logo links, Close rechts — gleiche Positionierung wie Mobile-Header */
.kopf__overlay-kopf {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.kopf__overlay-logo img {
  height: auto;
  width: 130px;
  display: block;
}

.kopf__overlay-close {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gruen-nebel);
  border: 1.5px solid transparent;
  border-radius: 6px;
  color: var(--gruen);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
  box-sizing: border-box;
}

.kopf__overlay-close i.bx { font-size: 24px; line-height: 1; }

.kopf__overlay-close:hover {
  background: var(--gruen);
  color: var(--weiss);
}

/* Menü-Liste — zentriert */
.kopf__overlay-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(0, 78, 71, 0.12);
  flex: 1;
}

.kopf__overlay-liste li {
  border-bottom: 1px solid rgba(0, 78, 71, 0.12);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.35s ease calc(var(--i) * 50ms + 80ms),
    transform 0.35s ease calc(var(--i) * 50ms + 80ms);
}

.kopf__overlay.is-aktiv .kopf__overlay-liste li {
  opacity: 1;
  transform: translateY(0);
}

.kopf__overlay-liste a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 22px 16px;
  color: var(--gruen-dunkel);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
  transition: color 0.18s;
  text-align: center;
}

.kopf__overlay-liste a i.bx {
  font-size: 22px;
  color: var(--akzent-dunkel);
  flex-shrink: 0;
  transition: color 0.18s;
}

.kopf__overlay-liste a:hover {
  color: var(--gruen);
}

.kopf__overlay-liste a:hover i.bx {
  color: var(--gruen);
}

/* CTA-Bereich unten — zentriert */
.kopf__overlay-cta {
  width: 100%;
  max-width: 480px;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.35s ease 0.32s,
    transform 0.35s ease 0.32s;
}

.kopf__overlay.is-aktiv .kopf__overlay-cta {
  opacity: 1;
  transform: translateY(0);
}

.kopf__overlay-kontakt {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-grau);
  margin: 0;
}

.kopf__overlay-kontakt i.bx {
  font-size: 18px;
  color: var(--akzent-dunkel);
}

.kopf__overlay-kontakt a {
  color: var(--gruen-dunkel);
  font-weight: 500;
  border-bottom: 1px solid rgba(0, 78, 71, 0.3);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}

.kopf__overlay-kontakt a:hover {
  color: var(--gruen);
  border-color: var(--gruen);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

/* ≤ 1360px — Nav enger, damit 6 Menüpunkte Platz finden */
@media (max-width: 1360px) {
  .kopf__nav { gap: 20px; }
}

/* ≤ 1120px — Burger früher, da 6 Menüpunkte sonst überlaufen */
@media (max-width: 1120px) {
  .kopf__nav { display: none; }
  .kopf__burger { display: inline-flex; }
}

/* ≤ 1024px — Tablet · 2-spaltige Layouts werden vorbereitet */
@media (max-width: 1024px) {
  :root { --rand: 32px; }


  .hub-grid{
    grid-template-columns: repeat(2, 1fr);
  }

  .hub-grid > article:nth-child(3){
    grid-column: span 2;
    max-width: calc(50% - 14px);
    margin: 0 auto;
  }

  .fuss__inner { grid-template-columns: repeat(2, 1fr); gap: 44px; }

  /* Subpage-Components */
  .text-zwei { gap: 40px; }
  .veranst-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .leitbild__saeulen { grid-template-columns: 1fr; gap: 24px; }
  .info-karten { grid-template-columns: 1fr 1fr; }
  .netzwerk__zweier { grid-template-columns: 1fr; }
}

/* ≤ 900px — Burger sichtbar, Karten 1-spaltig */
@media (max-width: 900px) {
  .kopf__inner {
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    padding: 14px var(--rand);
  }

  .kopf__nav { display: none; }
  .kopf__burger { display: inline-flex; }
  .kopf__cta .knopf--klein { display: none; }

  .kopf__logo-bild { width: 140px; }

  .hub-grid,
  .netzwerk__zweier,
  .info-karten {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .formular { grid-template-columns: 1fr; }
  .formular__feld--breit,
  .formular__hinweis,
  .formular__aktion { grid-column: auto; }

  .text-zwei { grid-template-columns: 1fr; gap: 32px; }
  .text-zwei__bild { aspect-ratio: 4/3; }
  .leitbild__saeulen,
  .veranst-grid,
  .team-grid { grid-template-columns: 1fr; gap: 18px; }
  .text-section { padding: 70px var(--rand); }
  .leitbild,
  .cta-block { padding: 70px var(--rand); }

  .hub-grid > article:nth-child(3){
    grid-column: auto;
    max-width: none;
    margin: 0;
  }

  .zahlen__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 32px;
  }
}

/* ≤ 700px — Kompakt-Mobile */
@media (max-width: 700px) {
  :root { --rand: 18px; }


  /* Header */
  .kopf__inner { padding: 12px var(--rand); gap: 10px; }
  .kopf__logo-bild { width: 130px; }

  /* Wellen mobil kleiner — etwas mehr Höhe damit Wellenform sichtbar bleibt */
  .hero-welle svg,
  .fuss-welle svg { height: 44px; }
  .hero-welle { margin-top: -44px; }
  .fuss-welle { margin-top: -44px; }

  /* Overlay Padding mobil */
  .kopf__overlay { padding: 18px var(--rand) 28px; }
  .kopf__overlay-kopf { margin-bottom: 24px; }
  .kopf__overlay-liste a { font-size: 24px; padding: 18px 4px; }
  .kopf__overlay-liste a i.bx { font-size: 20px; }

  /* Hero */
  .hero { height: auto; min-height: 0; max-height: none; }
  .hero { aspect-ratio: 16 / 10; min-height: 220px; max-height: 280px; }
  .hero__zitat { bottom: 40px; width: 100%; padding: 0 var(--rand); }
  .hero__zitat :is(p, .hero__zitat-text) { font-size: 22px; line-height: 1.16; margin-bottom: 10px; }

  /* Sub-Hero */
  .sub-hero { padding: 56px var(--rand); }

  /* Sektion-Padding */
  .einleitung { padding: 56px var(--rand); }
  .einleitung__prosa { font-size: 15.5px; line-height: 1.75; }

  .hub{ padding-top: 64px; padding-bottom: 64px; }

  /* Sektion-Titel */
  .abschnitt-titel,
  .abschnitt-vorkopf {
    font-size: 28px;
    margin-bottom: 36px;
  }

  /* Zahlen */
  .zahlen { padding: 70px var(--rand); }
  .zahlen__inner { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .zahl__wert { font-size: 52px; }
  .zahl__icon { font-size: 38px; margin-bottom: 14px; }
  .zahl__label { font-size: 12px; }

  /* Karten allgemein */
  .hub-karte__text{ padding: 24px 22px 26px; }

  .hub-karte__text :is(h4, .hub-karte__titel) { font-size: 19px; }

  /* Footer mobil zentriert */
  .fuss__inner { grid-template-columns: 1fr; gap: 30px; padding: 48px 0; text-align: center; }
  .fuss__logo-box { max-width: 280px; margin: 4px auto 0; }
  .fuss__spalte :is(h4, .fuss__titel) { margin-bottom: 14px; }
  .fuss__spalte ul { display: inline-block; text-align: center; }
  .fuss__rand { flex-direction: column; gap: 14px; align-items: center; text-align: center; padding: 18px 0; }
  .fuss__rand-text { justify-content: center; }
  .fuss__copyright { text-align: center; line-height: 1.6; }

  /* Buttons mobil etwas größer Touch-friendly */
  .knopf {
    padding: 14px 22px;
    font-size: 12.5px;
    letter-spacing: 0.12em;
  }
}

/* ≤ 420px — sehr schmal */
@media (max-width: 420px) {
  .hero__zitat :is(p, .hero__zitat-text) { font-size: 20px; }
  .zahlen__inner { grid-template-columns: 1fr; gap: 36px; }
  .zahl__wert { font-size: 56px; }
}


/* ============================================
   PROFIL-KACHELN — 4-Spalten-Variante der Leitbild-Säulen
   ============================================ */

.leitbild__saeulen--vier { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .leitbild__saeulen--vier { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .leitbild__saeulen--vier { grid-template-columns: 1fr; }
}


/* ============================================
   ORT-PILLEN (Einzugsgebiet)
   ============================================ */

.ort-pillen {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
}

.ort-pille {
  display: inline-block;
  padding: 10px 22px;
  background: var(--weiss);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gruen-dunkel);
  letter-spacing: 0.02em;
}

.text-section:not(.text-section--hell) .ort-pille { background: var(--gruen-nebel); }


/* ============================================
   KARTEN-EINBETTUNG (Kontakt — So finden Sie uns)
   ============================================ */

.karte-box {
  max-width: var(--max-breite);
  margin: 0 auto 36px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--schatten-bild);
  line-height: 0;
}

.karte-box iframe {
  width: 100%;
  height: 420px;
  border: 0;
}

.karte-aktion {
  text-align: center;
}

.karte-aktion p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-grau);
  margin: 0 0 24px;
}

.karte-aktion p strong { color: var(--gruen-dunkel); }

@media (max-width: 700px) {
  .karte-box iframe { height: 300px; }
}


/* ============================================
   HORTTAG — Betreuung auf einen Blick als Tageslinie
   Vier Stationen mit Zeit-Pillen auf einer Verbindungslinie
   ============================================ */

.horttag {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 20px;
}

/* Verbindungslinie hinter den Zeit-Pillen */
.horttag::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--gruen-pastell);
}

.horttag__station {
  position: relative;
  background: var(--weiss);
  border-radius: 8px;
  padding: 42px 24px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.horttag__zeit {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  background: var(--gruen);
  color: var(--weiss);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 30, 27, 0.18);
}

.horttag__zeit i.bx {
  font-size: 15px;
  color: var(--akzent);
}

.horttag__station :is(h3, .horttag__titel) {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--gruen-dunkel);
  margin: 0 0 10px;
}

.horttag__station p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-grau);
  margin: 0;
  flex: 1;
}

/* Wichtiger Hinweis (z. B. „Keine Abholung möglich") */
.horttag__hinweis {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--papier-warm);
  border: 1.5px solid var(--beige-dunkel);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gruen-dunkel);
  line-height: 1;
}

.horttag__hinweis i.bx {
  font-size: 15px;
  color: var(--akzent-dunkel);
}

/* Kontaktleiste zur Hortleitung unter der Tageslinie */
.horttag-kontakt {
  max-width: 760px;
  margin: 44px auto 0;
  background: var(--weiss);
  border-radius: 8px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.horttag-kontakt__text {
  display: flex;
  align-items: center;
  gap: 16px;
}

.horttag-kontakt__text i.bx {
  font-size: 30px;
  color: var(--gruen);
  flex-shrink: 0;
}

.horttag-kontakt__text p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-grau);
  margin: 0;
}

.horttag-kontakt__text strong {
  display: block;
  font-size: 16px;
  color: var(--gruen-dunkel);
}

@media (max-width: 1024px) {
  .horttag { grid-template-columns: repeat(2, 1fr); gap: 44px 24px; }
  .horttag::before { display: none; }
}

@media (max-width: 700px) {
  .horttag { grid-template-columns: 1fr; gap: 40px; }
  .horttag-kontakt { flex-direction: column; text-align: center; }
  .horttag-kontakt__text { flex-direction: column; gap: 10px; }
  .horttag-kontakt .knopf { width: 100%; justify-content: center; }
}


/* ============================================
   INFO-KARTEN-VARIANTEN
   ============================================ */

/* Auf hellgrünen Sektionen weiße Karten (sonst Ton in Ton) */
.text-section--hell .info-karte { background: var(--weiss); }
.text-section--hell .info-karte__icon { background: var(--gruen-nebel); }

/* Zentrierte Feature-Karte mit Button (z. B. Ferien im Hort) */
.info-karte--zentriert {
  align-items: center;
  text-align: center;
}

.info-karte--zentriert .knopf { margin-top: 10px; }

/* Echte Knöpfe in Info-Karten: die Textlink-Stile der Karte
   (grüne Schrift, Unterstrich, padding-bottom) dürfen hier
   nicht durchgreifen — sonst grün auf grün / gestauchtes Padding */
.info-karte a.knopf {
  padding: 14px 24px;
  border: 1.5px solid transparent;
  font-size: 12.5px;
}

.info-karte a.knopf--akzent {
  color: var(--weiss);
  border-color: var(--gruen);
}

.info-karte a.knopf--akzent:hover {
  color: var(--weiss);
  border-color: var(--gruen-dunkel);
}

.info-karte a.knopf--ghost {
  color: var(--gruen);
  border-color: var(--gruen);
}

.info-karte a.knopf--ghost:hover {
  color: var(--weiss);
  border-color: var(--gruen);
}


/* =========================================================
   CI/UX-FEINSCHLIFF — roter Faden über alle Seiten
   ========================================================= */

/* Skip-Link: erst bei Tastatur-Fokus sichtbar */
.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -140%);
  z-index: 200;
  background: var(--gruen-tief);
  color: var(--weiss);
  padding: 12px 22px;
  border-radius: 0 0 8px 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

/* Sub-Hero: Welle als durchgängiges Erkennungszeichen
   (gleiches Motiv wie Hero → Einleitung auf der Startseite) */
.sub-hero { padding-bottom: 56px; }

.sub-hero-welle {
  background: var(--gruen);
  line-height: 0;
}

.sub-hero-welle svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* Weiter-Band: führt am Seitenende zur nächsten Seite
   (grünes Bookend — Gegenstück zum Sub-Hero am Seitenanfang) */
.weiter {
  background: var(--gruen);
  padding: 88px var(--rand) 132px;
  text-align: center;
}

.weiter__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--akzent);
  margin-bottom: 18px;
}

.weiter__link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  color: var(--weiss);
  border-bottom: 2px solid var(--akzent);
  padding-bottom: 8px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.weiter__link i.bx {
  font-size: 0.75em;
  color: var(--akzent);
  transition: transform 0.25s ease;
}

.weiter__link:hover { color: var(--akzent); }
.weiter__link:hover i.bx { transform: translateX(8px); }

/* Ghost-Knopf: sekundäre Aktionen (z. B. Download-Listen),
   damit gefüllte Knöpfe den primären Aktionen vorbehalten bleiben */
.knopf--ghost {
  background: transparent;
  color: var(--gruen);
  border-color: var(--gruen);
}

.knopf--ghost:hover {
  background: var(--gruen);
  color: var(--weiss);
  border-color: var(--gruen);
}

/* Kompakte Veranstaltungs-Karte (nur Icon + Titel, zentriert) */
.veranst-karte--kompakt {
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 8px;
  padding: 34px 24px;
}

.veranst-karte--kompakt i.bx {
  font-size: 34px;
  margin-bottom: 2px;
}

/* Hero-Unterzeile: engere Laufweite, damit der Dreiklang
   auch mobil sauber umbricht */
.hero__zitat-meta {
  letter-spacing: 0.26em;
  line-height: 1.9;
  padding-left: 0.26em;
}

/* Footer: Abstand zwischen Adresse und Kontaktzeilen */
.fuss__spalte p + p { margin-top: 12px; }

/* Anker landen nicht unter der Sticky-Kopfleiste */
[id] { scroll-margin-top: 100px; }

/* Sichtbarer Tastatur-Fokus im CI */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--akzent-dunkel);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Textauswahl im CI */
::selection {
  background: var(--akzent);
  color: var(--gruen-tief);
}

/* Bewegung reduzieren, wenn das System es wünscht */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Lange unbrechbare Inhalte (E-Mail-Adressen, URLs) dürfen
   auf schmalen Displays nicht aus Karten/Footer herauslaufen */
.info-karte p,
.fuss__spalte p,
.karte-aktion p {
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 700px) {
  .sub-hero-welle svg { height: 40px; }

  /* Weiter-Band: kompakter, lange Seitentitel brechen sauber um */
  .weiter { padding: 64px var(--rand) 100px; }
  .weiter__link {
    font-size: 26px;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Tageslinie: Pillen etwas kompakter */
  .horttag__zeit { font-size: 11.5px; padding: 9px 15px; }

  /* Buttons in Karten und unter der Karte: volle Breite als Touch-Ziel */
  .info-karte--zentriert a.knopf,
  .karte-aktion .knopf {
    width: 100%;
    justify-content: center;
  }
}


/* ============================================
   WORDPRESS-KOMPATIBILITÄT
   ============================================ */

/* Sticky-Header unter der Admin-Bar */
.admin-bar .kopf { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .kopf { top: 46px; }
}
@media screen and (max-width: 600px) {
  .admin-bar .kopf { top: 0; }
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Team-Fotos */
.team-karte .team-karte__bild img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* Formular-Statusmeldungen */
.formular-meldung {
  grid-column: 1 / -1;
  padding: 16px 20px;
  border-radius: 6px;
  font-size: 15px;
  margin-bottom: 24px;
}

.formular-meldung--ok {
  background: var(--gruen-nebel);
  color: var(--gruen-dunkel);
  border: 1px solid var(--gruen-pastell);
}

.formular-meldung--fehler {
  background: #fdf0ee;
  color: #8a2a1d;
  border: 1px solid #eecfc9;
}

/* Elementor: Theme-Widgets bekommen immer die volle, feste Containerbreite.
   Elementor schaltet Container mobil auf Umbruch (flex-wrap). In einem
   umbrechenden Spalten-Container misst der Browser die Höhe eines Widgets bei
   dessen Eigenbreite und zieht es erst danach in die Breite – Inhalte, deren
   Höhe von der Breite abhängt (Bilder, Seitenverhältnisse), werden dann zu
   niedrig gemessen, ragen aus der Widget-Hülle und werden vom nächsten
   Abschnitt überdeckt. Mit fester Breite stimmt die Messung. */
.e-con > .elementor-widget[class*="elementor-widget-gs-"],
.elementor-widget[class*="elementor-widget-gs-"] {
  width: 100%;
  max-width: 100%;
}

/* Elementor: Widgets sollen die volle Breite des Containers nutzen */
.elementor-widget-container > .hero,
.elementor-widget-container > .sub-hero,
.elementor-widget-container > .zahlen,
.elementor-widget-container > .leitbild,
.elementor-widget-container > .cta-block,
.elementor-widget-container > .weiter {
  width: 100%;
}

/* Einleitung: Absatzabstände, wenn der Text aus einem Editor-Feld kommt */
.einleitung__prosa p + p { margin-top: 18px; }
.einleitung__prosa { margin-bottom: 28px; }

/* Text & Bild: alternative Bilddarstellungen */
.text-zwei__bild--vollstaendig .bildplatz {
  background-color: var(--gruen-nebel);
}

.text-zwei__bild--vollstaendig .bildplatz .bildplatz__bild { object-fit: contain; }

/* Text & Bild ohne Bild: eine zentrierte Textspalte statt halb leerem Zweispalter */
.text-zwei--ohne-bild {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.text-zwei__bild--natuerlich {
  min-height: 0;
  align-self: center;
}

.text-zwei__bild--natuerlich img {
  display: block;
  width: 100%;
  height: auto;
}

/* Rechtstext (Impressum / Datenschutz) */
.rechtstext--schmal {
  max-width: var(--max-schmal);
  margin: 0 auto;
}

.rechtstext h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  color: var(--gruen-dunkel);
  margin: 48px 0 16px;
}

.rechtstext h2:first-child { margin-top: 0; }

.rechtstext h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--gruen-dunkel);
  margin: 32px 0 12px;
}

.rechtstext p,
.rechtstext li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-grau);
}

.rechtstext p { margin: 0 0 16px; }

.rechtstext ul,
.rechtstext ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.rechtstext a {
  color: var(--akzent-dunkel);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rechtstext a:hover { color: var(--gruen); }

/* Rechtstext: Widget-Überschrift (gleiche Optik wie h2 im Fließtext) */
.rechtstext .rechtstext__titel {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  color: var(--gruen-dunkel);
  margin: 0 0 24px;
}


/* ============================================
   BILD (Querformat) – breites Bild über die Inhaltsbreite
   ============================================ */

.bild-section--kompakt { padding-top: 50px; padding-bottom: 50px; }

.bild-quer {
  margin: 0;
  max-width: var(--max-breite);
}

.bild-quer__rahmen {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--schatten-bild);
  background: var(--gruen-nebel);
}

.bild-quer__rahmen img,
.bild-quer__link {
  display: block;
  width: 100%;
}

.bild-quer__rahmen img { height: auto; }

/* Feste Seitenverhältnisse: Das Bild trägt sein Seitenverhältnis selbst und
   bleibt im normalen Fluss (Zuschnitt auf die Bildmitte).
   Wichtig: NICHT den Rahmen per aspect-ratio aufspannen und das Bild absolut
   hineinlegen – in Elementors Flex-Containern rechnet der Browser die Höhe
   der Widget-Hülle dann ohne das Bild, es ragt heraus und wird vom nächsten
   Abschnitt überdeckt (mobil auf der Kontaktseite aufgetreten). */
.bild-quer--21-9 .bild-quer__rahmen img,
.bild-quer--16-9 .bild-quer__rahmen img,
.bild-quer--3-2  .bild-quer__rahmen img {
  height: auto;
  object-fit: cover;
  object-position: center;
}

.bild-quer--21-9 .bild-quer__rahmen img { aspect-ratio: 21 / 9; }
.bild-quer--16-9 .bild-quer__rahmen img { aspect-ratio: 16 / 9; }
.bild-quer--3-2  .bild-quer__rahmen img { aspect-ratio: 3 / 2; }

.bild-quer__link:focus-visible {
  outline: 3px solid var(--akzent);
  outline-offset: -3px;
}

.bild-quer__unterschrift {
  margin: 16px 0 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-hell);
}

@media (max-width: 900px) {
  .bild-section--kompakt { padding-top: 36px; padding-bottom: 36px; }
  /* Panorama auf schmalen Screens weniger flach, sonst wird es ein Streifen */
  .bild-quer--21-9 .bild-quer__rahmen img { aspect-ratio: 16 / 9; }
}


/* ============================================
   TEXT & BILD – Galerie-Ansicht (ab zwei Bildern):
   Überschrift + Text zentriert, darunter füllendes Mosaik
   aus quer- und hochformatigen Bildern.
   ============================================ */

.text-galerie__kopf {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.text-galerie__titel {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
  color: var(--gruen-dunkel);
  margin: 0 0 22px;
}

.text-galerie__kopf p {
  font-size: 16px;
  line-height: 1.78;
  color: var(--text-grau);
  margin: 0 0 18px;
}

.text-galerie__kopf > :last-child { margin-bottom: 0; }
.text-galerie__kopf .knopf { margin-top: 12px; }

/* Raster: 4 Spalten, feste Zeilenhöhe. Jede Kachel belegt 2 Zeilen,
   Querformat zusätzlich 2 Spalten (~4:3), Hochformat 1 Spalte (~2:3).
   „dense“ füllt Lücken automatisch mit passenden Kacheln. */
.bild-galerie {
  --galerie-zeile: 220px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: var(--galerie-zeile);
  grid-auto-flow: dense;
  gap: 14px;
}

.bild-galerie__kachel {
  position: relative;
  margin: 0;
  grid-row: span 2;
  grid-column: span 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--schatten-bild);
  background: var(--gruen-nebel);
}

.bild-galerie__kachel--quer { grid-column: span 2; }

.bild-galerie .bild-galerie__kachel img,
.bild-galerie .bild-galerie__link {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 0;
  box-shadow: none;
}

.bild-galerie .bild-galerie__kachel img {
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.bild-galerie .bild-galerie__kachel:hover img,
.bild-galerie .bild-galerie__link:focus-visible img { transform: scale(1.04); }

.bild-galerie__link:focus-visible {
  outline: 3px solid var(--akzent);
  outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {
  .bild-galerie .bild-galerie__kachel img { transition: none; }
  .bild-galerie .bild-galerie__kachel:hover img { transform: none; }
}

@media (max-width: 1100px) {
  .bild-galerie { --galerie-zeile: 180px; }
}

@media (max-width: 900px) {
  .bild-galerie { --galerie-zeile: 150px; gap: 12px; }
  .text-galerie__kopf { margin-bottom: 36px; }
}

/* Schmal: 2 Spalten – Querformat volle Breite, Hochformat halbe Breite */
@media (max-width: 600px) {
  .bild-galerie {
    --galerie-zeile: 120px;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}


/* Text & Bild: freistehendes Einzelbild – ohne Rahmen, Schatten, Rundung, Hintergrund */
.text-zwei .text-zwei__bild--frei {
  min-height: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  background: transparent;
  align-self: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.text-zwei .text-zwei__bild--frei img {
  display: block;
  width: auto;
  max-width: var(--frei-breite, 55%);
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 900px) {
  .text-zwei .text-zwei__bild--frei { aspect-ratio: auto; }
}


/* ============================================
   LINKS – Unterstreichung beim Hover
   „body“ erhöht die Spezifität, damit Elementors
   Link-Reset (.elementor a) nicht gewinnt.
   ============================================ */

body a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Ausnahmen: Buttons, Navigation (eigene Akzentlinie), Logos, Bild-Links
   und Links, die bereits eine feste Unterlinie per border tragen */
body .knopf:hover,
body .skip-link:hover,
body .kopf__logo:hover,
body .kopf__overlay-logo:hover,
body .kopf__nav a:hover,
body .kopf__overlay-liste a:hover,
body .kopf__overlay-kontakt a:hover,
body .fuss__logo-box:hover,
body .fuss__spalte p a:hover,
body .info-karte a:hover,
body .formular__hinweis a:hover,
body .weiter__link:hover,
body .bild-galerie__link:hover,
body .bild-quer__link:hover,
body .pagination a:hover,
body .page-numbers:hover {
  text-decoration: none;
}

/* Links im Fließtext der Widgets waren bisher nicht vom Text zu unterscheiden */
.text-zwei__inhalt a:not(.knopf),
.text-galerie__kopf a:not(.knopf),
.einleitung__prosa a:not(.knopf),
.text-section__lead a,
.horttag__station p a,
.cta-block p a {
  color: var(--gruen);
  font-weight: 500;
  transition: color 0.15s;
}

.text-zwei__inhalt a:not(.knopf):hover,
.text-galerie__kopf a:not(.knopf):hover,
.einleitung__prosa a:not(.knopf):hover,
.text-section__lead a:hover,
.horttag__station p a:hover,
.cta-block p a:hover { color: var(--akzent-dunkel); }


/* ============================================
   KORREKTUREN & MOBIL-FEINSCHLIFF
   ============================================ */

/* Formular: Einwilligungstext ist Fließtext, keine Feld-Beschriftung
   (erbte sonst Versalien + Sperrung von „.formular label“) */
.formular label.formular__hinweis {
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-grau);
}

/* Lange URLs/Wörter in Fließtexten umbrechen statt aus dem Layout zu laufen */
.rechtstext,
.text-zwei__inhalt,
.text-galerie__kopf,
.einleitung__prosa,
.download-item__text,
.team-karte :is(h3, .team-karte__name),
.veranst-karte :is(h3, .veranst-karte__titel) {
  overflow-wrap: break-word;
}

.rechtstext a { overflow-wrap: anywhere; }

/* Tablet: kurze Kacheln zweispaltig statt einspaltig über die volle Breite */
@media (min-width: 481px) and (max-width: 900px) {
  .veranst-grid,
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

@media (max-width: 900px) {
  /* Text & Bild: Mindesthöhe + Seitenverhältnis erzwangen 507px Breite –
     das Bild lief auf Handys rechts aus dem Bildschirm */
  .text-zwei__bild { min-height: 0; }
  .text-zwei__bild--frei { min-height: 0; }

  .text-galerie__kopf .knopf { margin-top: 8px; }
}

@media (max-width: 700px) {
  /* Kleine Vorzeile (Zahlen, Leitbild) bleibt klein – die Mobil-Regel für
     Abschnittstitel hatte sie auf 28px vergrößert */
  .abschnitt-vorkopf--hell {
    font-size: 11.5px;
    letter-spacing: 0.26em;
    margin-bottom: 18px;
  }

  .text-section__lead { margin-bottom: 40px; font-size: 15.5px; }

  /* Formular: Absende-Button als volles Touch-Ziel */
  .formular__aktion .knopf { width: 100%; justify-content: center; }

  /* Bild (Querformat): Unterschrift nicht zu klein */
  .bild-quer__unterschrift { font-size: 13.5px; }
}

/* Galerie mobil (2 Spalten): einzelnes übriges Hochformat-Bild füllt die Zeile */
@media (max-width: 600px) {
  .bild-galerie .bild-galerie__kachel--hoch-rest {
    grid-column: span 2;
    grid-row: span 3;
  }
}

@media (max-width: 420px) {
  .hero__zitat-meta { letter-spacing: 0.3em; }
  .ort-pille { padding: 9px 16px; font-size: 13.5px; }
}

/* Tablet hochkant: Teaser- und Info-Karten zweispaltig statt als sehr breite Einzelkarten */
@media (min-width: 701px) and (max-width: 900px) {
  .hub-grid,
  .info-karten { grid-template-columns: repeat(2, 1fr); }

  .hub-grid > article:nth-child(3):last-child {
    grid-column: span 2;
    max-width: calc(50% - 10px);
    margin: 0 auto;
  }
}

/* Rechtstext: Links bleiben unterstrichen (Elementor setzt text-decoration sonst zurück) */
body .rechtstext a { text-decoration: underline; text-underline-offset: 2px; }


/* ============================================
   AKTUELLES – Beitragskarten (Widget + Übersicht) und Einzelbeitrag
   Baut auf den Teaser-Karten (.hub-karte) auf.
   ============================================ */

.aktuell-grid { margin-bottom: 0; }

/* Ein oder zwei Beiträge: Karten in Kartenbreite zentriert (gs_aktuelles_grid_klassen()) */
.aktuell-grid.aktuell-grid--1 { grid-template-columns: minmax(0, 380px); justify-content: center; }
.aktuell-grid.aktuell-grid--2 { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; }

@media (max-width: 700px) {
  .aktuell-grid.aktuell-grid--1,
  .aktuell-grid.aktuell-grid--2 { grid-template-columns: 1fr; }
}

.aktuell-karte { background: var(--gruen-nebel); }
.text-section--hell .aktuell-karte { background: var(--weiss); }

/* Bild: fließend mit festem Seitenverhältnis (siehe Hinweis bei .bild-quer) */
.aktuell-karte__bild {
  display: block;
  aspect-ratio: auto;
  background: var(--gruen-pastell);
}

.aktuell-karte .aktuell-karte__bild img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.aktuell-karte:hover .aktuell-karte__bild img { transform: scale(1.04); }

.aktuell-karte__platzhalter {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  color: var(--gruen);
  font-size: 44px;
}

.aktuell-karte__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--akzent-dunkel);
  flex: 0 0 auto;
  line-height: 1.5;
}

.aktuell-karte__kategorie {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--weiss);
  color: var(--gruen);
  letter-spacing: 0.08em;
}

.text-section--hell .aktuell-karte__kategorie { background: var(--gruen-nebel); }

.aktuell-karte .hub-karte__titel a {
  color: inherit;
  transition: color 0.15s;
}

.aktuell-karte .hub-karte__titel a:hover { color: var(--gruen); }

.aktuell-section__alle {
  margin-top: 48px;
  text-align: center;
}

/* Einzelbeitrag */
.sub-hero__eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--akzent);
}

.beitrag__bild {
  max-width: var(--max-schmal);
  margin: 0 auto 40px;
}

.beitrag__text img {
  border-radius: 8px;
  margin: 8px 0 24px;
}

.beitrag__text .wp-caption,
.beitrag__text figure { max-width: 100%; margin: 8px 0 24px; }
.beitrag__text figcaption,
.beitrag__text .wp-caption-text {
  font-size: 13.5px;
  color: var(--text-hell);
  margin-top: 8px;
  text-align: center;
}

/* Beitragsbild: natürliches Seitenverhältnis (Panoramen nicht mehr seitlich
   abgeschnitten), nur sehr hohe Bilder werden auf eine Höchsthöhe zugeschnitten */
.beitrag__bild .bild-quer__rahmen img {
  max-height: min(70vh, 540px);
  object-fit: cover;
  object-position: center 30%;
}

.beitrag a[data-elementor-open-lightbox="no"] { cursor: zoom-in; }

/* Bilder im Text – Ausrichtungen aus dem Editor (Bilder neben Fließtext) */
.rechtstext .alignleft {
  float: left;
  max-width: 50%;
  margin: 6px 28px 16px 0;
}

.rechtstext .alignright {
  float: right;
  max-width: 50%;
  margin: 6px 0 16px 28px;
}

.rechtstext .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.rechtstext::after {
  content: "";
  display: table;
  clear: both;
}

/* Reine Bild-Absätze (aufbereitet in gs_beitrag_bilder()):
   Einzelbild groß und zentriert im natürlichen Format */
.beitrag__text .beitrag-bild {
  margin: 36px 0;
  max-width: 100%;
}

.beitrag-bild a {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 8px;
}

.beitrag__text .beitrag-bild img {
  float: none;
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 560px;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: var(--schatten-bild);
}

/* Mehrere Bilder am Stück: Reihen gleicher Höhe ohne Zuschnitt. Jedes Bild
   wächst im Verhältnis seines Seitenformats (--r = Breite / Höhe), so füllt
   jede Reihe die Breite; einzelne Bilder am Ende werden nicht riesig (max. 380px hoch). */
.beitrag-galerie {
  --galerie-zeile: 220px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  margin: 36px 0;
}

.beitrag__text .beitrag-galerie .beitrag-bild {
  position: relative;
  flex-grow: calc(var(--r) * 100);
  flex-basis: calc(var(--r) * var(--galerie-zeile));
  max-width: calc(var(--r) * 380px);
  aspect-ratio: var(--r);
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--schatten-bild);
  background: var(--gruen-nebel);
}

.beitrag-galerie .beitrag-bild a {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.beitrag__text .beitrag-galerie .beitrag-bild img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.beitrag__text .beitrag-galerie .beitrag-bild:hover img { transform: scale(1.04); }

.beitrag-bild a:focus-visible,
.beitrag__bild .bild-quer__link:focus-visible {
  outline: 3px solid var(--akzent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .beitrag__text .beitrag-galerie .beitrag-bild img { transition: none; }
  .beitrag__text .beitrag-galerie .beitrag-bild:hover img { transform: none; }
}

@media (max-width: 600px) {
  .rechtstext .alignleft,
  .rechtstext .alignright {
    float: none;
    max-width: 100%;
    margin: 8px auto 20px;
  }

  .beitrag-galerie { --galerie-zeile: 140px; gap: 8px; margin: 28px 0; }
  .beitrag__text .beitrag-bild { margin: 28px 0; }
  .beitrag__text .beitrag-bild img { max-height: 70vh; }
}

.beitrag__seiten { margin-top: 24px; }

.beitrag__fuss {
  max-width: var(--max-schmal);
  margin: 40px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--linie);
}

/* Übersicht: Seitennavigation unter den Karten */
.aktuell-grid + .pagination { margin-top: 48px; }

@media (min-width: 701px) and (max-width: 1024px) {
  .aktuell-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .aktuell-grid { grid-template-columns: 1fr; gap: 20px; }
  .aktuell-section__alle { margin-top: 32px; }
  .aktuell-section__alle .knopf { width: 100%; justify-content: center; }
  .beitrag__bild { margin-bottom: 28px; }
}

/* Beitragskarten: keine Sonderbehandlung der dritten Karte wie bei den Teaser-Karten */
@media (max-width: 1024px) {
  .aktuell-grid > article:nth-child(3) {
    grid-column: auto;
    max-width: none;
    margin: 0;
  }
}


/* ============================================
   LIGHTBOX – Bilder im Beitrag groß ansehen
   (Markup erzeugt assets/js/theme.js, natives <dialog>)
   ============================================ */

.gs-lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 30, 27, 0.94);
  color: var(--weiss);
  overscroll-behavior: contain;
}

.gs-lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gs-lightbox::backdrop { background: rgba(0, 30, 27, 0.6); }

.gs-lightbox__figur {
  margin: 0;
  padding: 72px 88px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  max-height: 100%;
}

.gs-lightbox__bild {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
  border-radius: 6px;
  box-shadow: var(--schatten-tief);
  background: rgba(255, 255, 255, 0.04);
}

.gs-lightbox__zaehler {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.75);
}

.gs-lightbox__knopf {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: var(--weiss);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.gs-lightbox__knopf:hover { background: rgba(255, 255, 255, 0.24); }

.gs-lightbox__knopf:focus-visible {
  outline: 3px solid var(--akzent);
  outline-offset: 3px;
}

.gs-lightbox__schliessen { top: 16px; right: 16px; }
.gs-lightbox__zurueck { left: 20px; top: 50%; transform: translateY(-50%); }
.gs-lightbox__weiter { right: 20px; top: 50%; transform: translateY(-50%); }

.gs-lightbox--einzeln .gs-lightbox__zurueck,
.gs-lightbox--einzeln .gs-lightbox__weiter,
.gs-lightbox--einzeln .gs-lightbox__zaehler { display: none; }

@media (max-width: 700px) {
  .gs-lightbox__figur { padding: 68px 12px 84px; }
  .gs-lightbox__bild {
    max-height: calc(100vh - 170px);
    max-height: calc(100dvh - 170px);
  }
  /* Blättern unten – oben liegt „Schließen“, das Bild bleibt frei */
  .gs-lightbox__zurueck,
  .gs-lightbox__weiter { top: auto; bottom: 20px; transform: none; }
  .gs-lightbox__zurueck { left: calc(50% - 60px); }
  .gs-lightbox__weiter { right: calc(50% - 60px); }
  .gs-lightbox__zaehler {
    position: absolute;
    left: 0;
    right: 0;
    top: 30px;
    text-align: center;
  }
}
