/*---------------------------------------------------------------------------------

	Theme Name: Förderverein Grundschule am Lemmchen
	Text Domain: fv-lemmchen
	Version: 1.2.0
	Description: Theme für den Förderverein der Grundschule am Lemmchen, Mainz-Mombach. Farben und Formen abgeleitet aus dem Logo (Corporate Design 03/2026).
	Author: Visualtech
	Author URI: https://visualtech.de
	Requires at least: 6.4
	Requires PHP: 8.1

---------------------------------------------------------------------------------*/


/* SCHRIFTEN – lokal im Theme, keine Verbindung zu Google Fonts */

@font-face {
  font-family: "Sour Gummy";
  src: url("assets/fonts/sour-gummy-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rubik";
  src: url("assets/fonts/rubik-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rubik";
  src: url("assets/fonts/rubik-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rubik";
  src: url("assets/fonts/rubik-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rubik";
  src: url("assets/fonts/rubik-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* =========================================================================
   Förderverein Grundschule am Lemmchen – Relaunch-Entwurf
   Farben und Formen sind vollständig aus dem neuen Logo abgeleitet.
   ========================================================================= */

:root {
  /* --- Farben aus dem Logo -------------------------------------------- */
  --gruen:        #0f7a4c;   /* Wortmarke, Raketenflügel – Leitfarbe       */
  --gruen-dunkel: #0a5637;   /* Hover, Fußbereich                          */
  --gruen-hell:   #e7f2ec;   /* Flächen, Chips                             */
  --tuerkis:      #3cb5d6;   /* Raketenkorpus                              */
  --blau:         #4a78bb;   /* Mine, Radiergummi                          */
  --gelb:         #ffdc31;   /* Linie „Am Lemmchen“, Antriebsflamme        */
  --gelb-hell:    #ffe048;
  --sand:         #f7dda8;   /* Bleistiftspitze                            */
  --grau:         #cfd1d2;   /* Radiergummi-Zwinge                         */

  /* --- Abgeleitete Neutraltöne ---------------------------------------- */
  --tinte:        #16241d;   /* Fließtext: sehr dunkles Grün statt Schwarz */
  --tinte-leise:  #4e5c55;   /* Meta-Angaben, 7,0:1 auf Weiß               */
  --papier:       #ffffff;
  --papier-warm:  #fbf7ee;   /* aus dem Sand aufgehellt                    */
  --linie:        #e3e0d6;

  /* --- Typografie ------------------------------------------------------ */
  --display: "Sour Gummy", "Comic Sans MS", system-ui, sans-serif;
  --text:    "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* --- Maße ------------------------------------------------------------ */
  --wrap:        1180px;
  --radius:      18px;
  --radius-gross: 32px;
  --schatten:    0 2px 4px rgba(22, 36, 29, .04), 0 12px 28px rgba(22, 36, 29, .07);
  --header-h:    84px;
}

/* =========================  Grundlagen  ================================= */

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--text);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
/* WebP Express („Alter HTML“) packt Bilder in <picture>. Für das Layout soll das Bild
   weiter direktes Kind sein (Flex in Galerie, Karten, Bildnachweis-Rahmen). */
picture { display: contents; }
svg { display: block; max-width: 100%; }
figure { margin: 0; }

h1, h2, h3 {
  text-wrap: balance;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.005em;
  color: var(--gruen);
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.35rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

h4 {
  font-family: var(--text);
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 .35em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

strong { font-weight: 600; }

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

/* Auf Grün verschwindet das Blau (1,2:1 im Mitmachen-Bereich, 2,0:1 im Fuß). Gelb hat
   dort 4,9:1 auf den Karten, 4,0:1 auf Grün und 6,5:1 auf Dunkelgrün. (WCAG 2.4.7, 1.4.11) */
.mitmachen :focus-visible,
.footer :focus-visible { outline-color: var(--gelb); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--warm { background: var(--papier-warm); }

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 200;
  background: var(--gruen);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 500;
}
.skip-link:focus { left: 0; top: 0; color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* =========================  Marken-Elemente  ============================ */

/* Die geschwungene Linie aus dem Logo – der Verlauf der Straße „Am Lemmchen“.
   Sie ist das durchgehende Strukturelement der Seite. */
.schwung {
  width: 100%;
  height: clamp(28px, 5vw, 58px);
  overflow: visible;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--text);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gruen);
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 3px;
  border-radius: 3px;
  background: var(--gelb);
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  font-weight: 300;
}

/* =========================  Buttons  ==================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--text);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--gruen); color: #fff; }
.btn--primary:hover { background: var(--gruen-dunkel); color: #fff; }

.btn--gelb { background: var(--gelb); color: var(--tinte); }
.btn--gelb:hover { background: var(--gelb-hell); color: var(--tinte); }

.btn--outline { border-color: var(--gruen); color: var(--gruen); background: transparent; }
.btn--outline:hover { background: var(--gruen); color: #fff; }

.btn--weiss { background: #fff; color: var(--gruen-dunkel); }
.btn--weiss:hover { background: var(--gelb); color: var(--tinte); }

.btn--klein { padding: .6rem 1.15rem; font-size: .95rem; }

/* =========================  Kopfbereich  ================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  padding-block: .6rem;
}

.header__logo { flex: 0 0 auto; }
.header__logo svg { width: clamp(min(190px, 52vw), 22vw, 246px); height: auto; }

.nav { display: flex; align-items: center; gap: clamp(.5rem, 1.8vw, 1.4rem); }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(.35rem, 1.6vw, 1.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: block;
  padding: .5rem .35rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--tinte);
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.nav__link:hover { color: var(--gruen); border-bottom-color: var(--gelb); }
.nav__link[aria-current="page"] { color: var(--gruen); border-bottom-color: var(--gruen); }

.nav__toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .55rem .9rem;
  background: var(--gruen);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-family: var(--text);
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
}

/* =========================  Hero  ======================================= */

.hero { position: relative; padding-top: clamp(2.5rem, 5vw, 4rem); overflow: hidden; }

.hero__grid {
  display: grid;
}

/* Kopfbereich: Textband ueber Panoramabild */
.hero__grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: end;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.hero h1 { margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: var(--tinte); }

.hero__bild {
  position: relative;
  aspect-ratio: 5 / 2;
  border-radius: var(--radius-gross);
  overflow: hidden;
  box-shadow: var(--schatten);
}
.hero__bild img { width: 100%; height: 100%; object-fit: cover; }

.hero__quelle,
.bildnachweis {
  position: absolute;
  right: .7rem; bottom: .55rem;
  padding: .2rem .55rem;
  border-radius: 6px;
  background: rgba(22, 36, 29, .75);
  color: #fff;
  font-size: .7rem;
  line-height: 1.45;
  letter-spacing: .02em;
  max-width: calc(100% - 1.4rem);
}

/* Das Plugin "Image Source Control" gibt eigenes Markup aus – hier neutralisieren */
.bildnachweis * {
  display: inline;
  margin: 0;
  padding: 0;
  font-size: inherit;
  color: inherit;
  background: none;
}
.bildnachweis a { color: #fff; text-decoration: underline; }

/* Startsequenz: die Linie zeichnet sich, die Rakete steigt auf */
.hero__spur {
  position: relative;
  margin-top: clamp(1.2rem, 2.5vw, 2rem);
  margin-bottom: -1.4vw;
  height: clamp(46px, 7vw, 88px);
  z-index: 2;
}
.hero__spur .schwung {
  height: 100%;
  clip-path: inset(0 0 0 0);
  animation: linie-zeichnen 1.5s cubic-bezier(.65, .05, .36, 1) both;
}
.hero__rakete {
  position: absolute;
  right: 3%;
  top: -22%;
  width: clamp(64px, 9vw, 112px);
  height: auto;
  animation: rakete-start 1.6s cubic-bezier(.34, .8, .3, 1) both;
}

@keyframes linie-zeichnen {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes rakete-start {
  0%   { opacity: 0; transform: translate3d(-90px, 46px, 0) scale(.7) rotate(-12deg); }
  70%  { opacity: 1; }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1) rotate(0); }
}

/* =========================  Ziel-Karten  ================================ */

.ziele {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.ziel {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  overflow: hidden;
}
.ziel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--akzent, var(--gruen));
}
.ziel h3 { font-family: var(--text); font-size: 1.15rem; font-weight: 500; color: var(--tinte); margin-bottom: .55rem; }
.ziel p { font-size: 1rem; }

.ziel__marke {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--akzent, var(--gruen)) 16%, #fff);
  color: var(--akzent, var(--gruen));
}
.ziel__marke svg { width: 24px; height: 24px; }

/* =========================  Über uns  =================================== */

.ueber {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.vorstand {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--gruen-hell);
  border-radius: var(--radius);
}
.vorstand h3 { font-family: var(--text); font-size: 1.05rem; font-weight: 600; color: var(--gruen-dunkel); letter-spacing: .02em; }
.vorstand ul { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .55rem; }
.vorstand li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4rem .6rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid rgba(15, 122, 76, .16);
  font-size: 1rem;
}
.vorstand li:last-child { border-bottom: 0; padding-bottom: 0; }
.vorstand__name { font-weight: 500; }
.vorstand__rolle { font-size: .875rem; color: var(--gruen-dunkel); }

/* =========================  Aktuelles  ================================== */

.kopfzeile {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.8rem, 3.5vw, 2.6rem);
}
.kopfzeile h2 { margin-bottom: 0; }

.beitraege {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.2rem, 2.5vw, 1.9rem);
}

.beitrag {
  display: flex;
  flex-direction: column;
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.beitrag:hover { transform: translateY(-4px); box-shadow: var(--schatten); color: inherit; }
.beitrag:hover .beitrag__titel { color: var(--gruen-dunkel); }

.beitrag__bild { aspect-ratio: 16 / 10; overflow: hidden; background: var(--gruen-hell); }
.beitrag__bild img { width: 100%; height: 100%; object-fit: cover; }

.beitrag__text { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }

.beitrag__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .7rem;
  font-size: .8125rem;
  color: var(--tinte-leise);
  margin-bottom: .6rem;
}

.beitrag__titel {
  font-family: var(--text);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--gruen);
  margin: 0 0 .6rem;
}

.beitrag__anriss { font-size: .975rem; margin: 0; }

.beitrag__mehr {
  margin-top: auto;
  padding-top: 1rem;
  font-size: .95rem;
  font-weight: 500;
  color: var(--gruen);
}

/* =========================  Termine  ==================================== */

.termine { display: grid; gap: .9rem; }

.termin {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  padding: 1.1rem 1.4rem;
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
}
.termin__datum {
  display: grid;
  place-items: center;
  width: 68px; height: 68px;
  border-radius: 14px;
  background: var(--gelb);
  color: var(--tinte);
  line-height: 1;
}
.termin__tag { font-family: var(--display); font-size: 1.6rem; }
.termin__datum time, .termin__datum time > span[aria-hidden] { display: contents; }
.termin__monat { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-top: .25rem; }
.termin__jahr { font-size: .65rem; font-weight: 500; margin-top: .1rem; }
/* Überschrift (h2/h3) im Aussehen der früheren Textzeile */
.termin__titel { margin: 0; font-family: var(--text); font-weight: 500; font-size: 1.05rem; line-height: 1.4; color: var(--tinte); }
.termin__ort { font-size: .9rem; color: var(--tinte-leise); }

.leerzustand {
  padding: clamp(1.8rem, 4vw, 2.6rem);
  border: 2px dashed var(--grau);
  border-radius: var(--radius);
  text-align: center;
  background: var(--papier);
}
.leerzustand p { max-width: 46ch; margin-inline: auto; }

/* =========================  Mitmachen (CTA)  ============================ */

.mitmachen {
  position: relative;
  background: var(--gruen);
  color: #fff;
  overflow: hidden;
}
.mitmachen h2 { color: #fff; }
.mitmachen a:not(.btn) { color: #fff; }
.mitmachen .btn--weiss { color: var(--gruen-dunkel); }
.mitmachen .btn--gelb { color: var(--tinte); }

.mitmachen__deko {
  position: absolute;
  right: -5%;
  top: -12%;
  width: min(34%, 330px);
  height: auto;
  opacity: .10;
  filter: brightness(0) invert(1);
  pointer-events: none;
}

.mitmachen__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(1.8rem, 4vw, 3.2rem);
  align-items: stretch;
  margin-top: 2.5rem;
}

.mitmachen__karte { display: flex; flex-direction: column; }
.mitmachen__aktion { margin-top: auto; padding-top: 1.4rem; }

.mitmachen__karte {
  padding: clamp(1.5rem, 3vw, 2rem);
  /* Abdunkeln statt Aufhellen: Weiß auf der hellen Tönung hatte nur 4,27:1, jetzt 6,56:1 */
  background: rgba(0, 0, 0, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius);
}
.mitmachen__karte h3 { font-family: var(--text); font-weight: 500; color: #fff; font-size: 1.2rem; }

.konto {
  margin: 1.1rem 0 1.4rem;
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, monospace;
  font-size: .95rem;
  line-height: 1.9;
  letter-spacing: .02em;
  word-break: break-word;
}
.konto dt { font-family: var(--text); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.konto dd { margin: 0 0 .5rem; }

/* =========================  Fußbereich  ================================= */

.footer { background: var(--gruen-dunkel); color: rgba(255, 255, 255, .88); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.footer a:hover { color: var(--gelb); text-decoration: underline; }

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(2rem, 5vw, 3.5rem);
}

.footer h2 {
  font-family: var(--text);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gelb);
  margin-bottom: 1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .975rem; }

.footer__unten {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: .875rem;
  color: rgba(255, 255, 255, .7);
}

/* =========================  Beitragsseite  ============================== */

.artikel-kopf { padding-top: clamp(1.5rem, 4vw, 3rem); }

/* Ohne Beitragsbild folgt der Text direkt auf die Ueberschrift */
.artikel-kopf:not(:has(.artikel__bild)) + .section { padding-top: clamp(1rem, 2.5vw, 2rem); }

.krumen { font-size: .875rem; color: var(--tinte-leise); margin-bottom: 1.2rem; }
.krumen a { color: var(--tinte-leise); }
.krumen a:hover { color: var(--gruen); }

/* Überschriften laufen nicht über die volle Containerbreite – bei 62 px
   Schriftgröße wären Zeilen von 1180 px schwer zu lesen. 26ch entspricht bei
   Sour Gummy rund zwei Zeilen für einen typischen Beitragstitel. */
.artikel-kopf h1 { max-width: 26ch; }

.artikel__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.2rem;
  font-size: .925rem;
  color: var(--tinte-leise);
  margin-bottom: 2rem;
}

.artikel__bild {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-inline: 0;
  border-radius: var(--radius-gross);
  overflow: hidden;
  box-shadow: var(--schatten);
  /* line-height verhindert den Leerraum unter dem Bild */
  line-height: 0;
}

.artikel__bild img { width: auto; max-width: 100%; }

.artikel__inhalt {
  max-width: 68ch;
  margin-inline: 0;
  font-size: 1.125rem;
}
.artikel__inhalt h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin-top: 2.2em; }
.artikel__inhalt > p:first-of-type { font-size: 1.22rem; line-height: 1.55; color: var(--tinte); }

.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2.5rem 0;
}
.galerie img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* Galerie als Slider: assets/css/galerie-slider.css (gilt auch im Editor) */

/* =========================  Reveal beim Scrollen  ======================= */

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.sichtbar { opacity: 1; transform: none; }

/* =========================  Responsiv  ================================== */

@media (max-width: 900px) {
  .hero__grid, .ueber { grid-template-columns: 1fr; }
  .hero__bild { aspect-ratio: 3 / 2; }
  .hero__rakete { width: 56px; top: -34%; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav__toggle { display: inline-flex; }
  .nav__list {
    position: absolute;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem clamp(1.25rem, 5vw, 3rem) 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--linie);
    box-shadow: var(--schatten);
    /* Bei 400 % Zoom oder Handy quer waren die unteren Punkte nicht erreichbar (WCAG 1.4.10) */
    max-height: calc(100vh - var(--header-h) - var(--header-versatz, 0px));
    overflow-y: auto;
  }
  .nav__list[hidden] { display: none; }
  .nav__link { padding: .85rem .25rem; border-bottom: 1px solid var(--linie); }
  .nav__link:hover { border-bottom-color: var(--gelb); }
  .nav > .btn { display: none; }
  .termin { grid-template-columns: auto minmax(0, 1fr); }
  .termin .btn { grid-column: 1 / -1; justify-self: start; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}


/* =========================  WordPress-Ergänzungen  ====================== */

/* Ziel-Karten: Akzentfarbe kommt aus dem Backend */

.ziel--tuerkis { --akzent: var(--tuerkis); }
.ziel--gelb    { --akzent: #d9a300; }
.ziel--blau    { --akzent: var(--blau); }
.ziel--gruen   { --akzent: var(--gruen); }

.ziel__marke i { font-size: 24px; line-height: 1; }

.ziel__text p:last-child { margin-bottom: 0; }
.ziel__text { font-size: 1rem; }

/* Menüs aus wp_nav_menu */

.nav__list li { list-style: none; }

.nav__list a {
  display: block;
  padding: .5rem .35rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--tinte);
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.nav__list a:hover { color: var(--gruen); border-bottom-color: var(--gelb); }
.nav__list .current-menu-item > a,
.nav__list .current_page_item > a,
.nav__list a[aria-current] { color: var(--gruen); border-bottom-color: var(--gruen); }

.nav__toggle i { font-size: 1.15rem; }

/* Fußbereich */

.footer nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .975rem; }
.footer nav li { margin: 0; }
.footer__anschrift { margin-top: 1.4rem; font-size: .95rem; max-width: 34ch; }
.footer__logo svg,
.footer__logo img { width: 230px; height: auto; }

/* Hilfsklassen */

.lead--schmal { max-width: 62ch; }
/* Gelb auf Grün hat nur 3,97:1 – zu wenig für 13 px. Der gelbe Strich davor bleibt. */
.eyebrow--hell { color: #fff; }
.leerzustand__aktion { margin-top: 1.2rem; }
.mitmachen__aktion { margin-top: 1.4rem; }
/* Lange Mailadresse im Button: umbrechen statt am Kartenrand abschneiden (WCAG 1.4.10) */
.mitmachen__aktion .btn { max-width: 100%; overflow-wrap: anywhere; text-align: center; }
.mitmachen__schmal { max-width: 20ch; }
.ueber__text > p:last-child { margin-bottom: 0; }
.ueber__text { font-size: 1.0625rem; }

.hero__aktionen { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }

.section--404 { text-align: center; padding-bottom: 2rem; }
.section--404 .eyebrow, .section--404 .hero__aktionen { justify-content: center; }
.section--404 .lead--schmal { margin-inline: auto; }
.fehler__spur { position: relative; margin-top: 3rem; height: clamp(46px, 7vw, 88px); }
.fehler__spur .hero__rakete { position: absolute; right: 8%; top: -30%; width: clamp(64px, 9vw, 100px); }

/* Blockeditor-Inhalte in Seiten und Beiträgen */

.artikel__inhalt img,
.ueber__text img { height: auto; border-radius: var(--radius); }

.artikel__inhalt ul,
.artikel__inhalt ol,
.ueber__text ul,
.ueber__text ol { padding-left: 1.3em; }

.artikel__inhalt li,
.ueber__text li { margin-bottom: .4em; }

.artikel__inhalt blockquote,
.ueber__text blockquote {
  margin: 2rem 0;
  padding: .3rem 0 .3rem 1.4rem;
  border-left: 4px solid var(--gelb);
  font-size: 1.1rem;
}

.wp-caption-text, .artikel__inhalt figcaption {
  font-size: .85rem;
  color: var(--tinte-leise);
  margin-top: .5rem;
}

.alignwide { max-width: min(100%, 1180px); }
.alignfull { max-width: 100%; }
.aligncenter { margin-inline: auto; }

/* Seitennavigation */

.pagination { margin-top: 3rem; display: flex; justify-content: center; }
.nav-links { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }

.page-numbers {
  display: grid;
  place-items: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding-inline: .7rem;
  border: 1px solid var(--linie);
  border-radius: 999px;
  text-decoration: none;
  font-size: .95rem;
}
.page-numbers:hover { border-color: var(--gruen); }
.page-numbers.current { background: var(--gruen); border-color: var(--gruen); color: #fff; }

/* Personen- und Termin-Shortcodes aus dem Altbestand */

.person-shortcode-contact-icon { color: var(--gruen); }

/* =========================  Termin-Detailseite  ========================= */

.termin-detail {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.termin-detail__text { max-width: 68ch; margin-inline: 0; }

.termin-eckdaten {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  padding: clamp(1.4rem, 3vw, 1.9rem);
  background: var(--papier-warm);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
}

.termin-eckdaten h2 {
  font-family: var(--text);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gruen);
  margin-bottom: 1.2rem;
}

.termin-eckdaten dl { margin: 0; display: grid; gap: 1.1rem; }

.termin-eckdaten__zeile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .3rem .9rem;
  align-items: start;
}

.termin-eckdaten dt {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--gruen-hell);
  color: var(--gruen);
}
.termin-eckdaten dt i { font-size: 19px; line-height: 1; }
.termin-eckdaten dt span {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.termin-eckdaten dd {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  align-self: center;
  font-size: 1rem;
  line-height: 1.5;
}
.termin-eckdaten dd a { font-weight: 500; }

.hinweis-vorbei {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 999px;
  background: var(--gruen-hell);
  color: var(--gruen-dunkel);
  font-size: .95rem;
}
.hinweis-vorbei i { font-size: 1.05rem; }

@media (max-width: 900px) {
  .termin-detail { grid-template-columns: 1fr; }
  .termin-eckdaten { position: static; }
}

/* =========================  Adminleiste  =============================== */

/* Der Kopfbereich ist sticky und wuerde sonst unter der WordPress-Adminleiste
   liegen – fuer angemeldete Benutzer verdeckt das die Ueberschrift. */
body.admin-bar .header { top: 32px; }
body.admin-bar { --header-versatz: 32px; }

@media screen and (max-width: 782px) {
  body.admin-bar .header { top: 46px; }
  body.admin-bar { --header-versatz: 46px; }
}

html { scroll-padding-top: calc(var(--header-h) + var(--header-versatz, 0px) + 1rem); }

/* =========================  Formulare  ================================= */

/* Gilt fuer Contact Form 7 ebenso wie fuer eigene Formulare. */

.artikel__inhalt form,
.wpcf7 { max-width: 34rem; }

.wpcf7 p { margin-bottom: 1.15rem; }

label {
  display: block;
  margin-bottom: .35rem;
  font-size: .975rem;
  font-weight: 500;
  color: var(--tinte);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="search"],
input[type="password"],
select,
textarea {
  display: block;
  width: 100%;
  padding: .7rem .9rem;
  /* Feldgrenze muss sich mit 3:1 abheben (WCAG 1.4.11); --grau hatte 1,53:1 */
  border: 1px solid #7b857f;
  border-radius: 10px;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--text);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
  transition: border-color .15s ease, box-shadow .15s ease;
}

input:hover, select:hover, textarea:hover { border-color: var(--tinte-leise); }

/* Nur Eingabefelder – die Regel galt vorher auch fuer den Absende-Button und nahm ihm
   den Fokusrahmen. Gruen 5,4:1 statt eines Schimmers mit 1,3:1. (WCAG 2.4.7) */
input:not([type="submit"], [type="button"], [type="checkbox"], [type="radio"]):focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--gruen);
  outline-offset: 1px;
  border-color: var(--gruen);
}

textarea { min-height: 9rem; resize: vertical; }

select {
  appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2316241d' stroke-width='1.6' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 12px;
}

/* Datums- und Zeitfelder nicht ueber die volle Breite ziehen */
input[type="date"], input[type="time"] { max-width: 14rem; }

input::placeholder, textarea::placeholder { color: var(--tinte-leise); opacity: .75; }

/* Auswahlfelder */

input[type="checkbox"], input[type="radio"] {
  width: 1.15rem; height: 1.15rem;
  margin-right: .5rem;
  accent-color: var(--gruen);
  vertical-align: -.2rem;
}

.wpcf7-checkbox .wpcf7-list-item,
.wpcf7-radio .wpcf7-list-item,
.wpcf7-acceptance .wpcf7-list-item { display: block; margin: 0 0 .5rem; }

.wpcf7-list-item-label { font-weight: 300; font-size: 1rem; }

/* Pflichtfeld-Kennzeichnung */

.wpcf7 .pflicht,
.wpcf7-form-control-wrap[data-required] + .pflicht { color: var(--gruen); }

/* Absenden */

input[type="submit"],
button[type="submit"],
.wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: .85rem 1.8rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--gruen);
  color: #fff;
  font-family: var(--text);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}

input[type="submit"]:hover,
button[type="submit"]:hover,
.wpcf7-submit:hover { background: var(--gruen-dunkel); transform: translateY(-2px); }

.wpcf7-submit:disabled { opacity: .6; cursor: default; transform: none; }

/* Rückmeldungen */

.wpcf7 form .wpcf7-response-output {
  margin: 1.5rem 0 0;
  padding: .9rem 1.1rem;
  border: 1px solid var(--linie);
  border-left-width: 4px;
  border-radius: 8px;
  font-size: .975rem;
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: var(--gruen);
  background: var(--gruen-hell);
  color: var(--gruen-dunkel);
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  border-color: #b3261e;
  background: #fdeceb;
  color: #8c1d18;
}

/* Feldbezogene Fehlermeldung */

.wpcf7-not-valid-tip {
  display: block;
  margin-top: .4rem;
  color: #8c1d18;
  font-size: .9rem;
  font-weight: 500;
}

.wpcf7-form-control.wpcf7-not-valid {
  border-color: #b3261e;
  background: #fffafa;
}

.wpcf7-spinner { margin: 0 0 0 .8rem; }

/* Suchformular */

.search-form { display: flex; gap: .6rem; max-width: 28rem; }
.search-form input[type="search"] { flex: 1; }

/* Verweis auf die vollständige „Über uns“-Seite */
.ueber__mehr { margin-top: 1.6rem; }
