/* =========================================================
   Kita St. Laurentius Neufang – Stylesheet
   Farben & Schriften zentral in :root anpassen.
   ========================================================= */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  /* Grundfarben */
  --cream: #f8f6ee;
  --cream-2: #f1efe2;
  --white: #ffffff;
  --ink: #1f2a22;
  --ink-soft: #4a554c;
  --muted: #6f7a70;

  /* Salbeigrün */
  --green-50: #eef4e6;
  --green-100: #dfeccf;
  --green-200: #c9dfb4;
  --green-400: #8db58a;
  --green-500: #6e9e78;
  --green-600: #4f7f5a;
  --green-700: #3d6648;

  /* Pastell-Kreise */
  --peach: #f7d9cc;
  --butter: #fbf2c4;
  --sky: #dcebf5;
  --mint: #dcefe0;
  --lilac: #e9e1f3;
  --rose: #f6dfe4;

  /* Akzente aus dem Logo (sparsam!) */
  --logo-red: #d8442f;
  --logo-yellow: #f2c230;
  --logo-blue: #23309a;

  --radius: 22px;
  --radius-lg: 32px;
  --shadow: 0 10px 30px -12px rgba(46, 74, 52, 0.25);
  --shadow-sm: 0 4px 14px -6px rgba(46, 74, 52, 0.22);
  --max: 1160px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); }
a:hover { color: var(--green-600); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 450;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  font-variation-settings: "SOFT" 100, "WONK" 0;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.35rem; font-family: var(--font-body); font-weight: 800; letter-spacing: 0; }
p { margin: 0 0 1em; }

.accent { color: var(--green-500); font-style: italic; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 0.8rem;
}
/* kurzer Strich davor, bei zentrierten Köpfen auch dahinter */
.eyebrow::before,
.center .eyebrow::after,
.motto .eyebrow::after {
  content: "";
  width: 2em;
  height: 3px;
  border-radius: 3px;
  background: currentColor;
  opacity: 0.6;
}

.section { padding-block: clamp(64px, 9vw, 110px); position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-700); color: #fff; }
.btn-ghost { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { color: var(--green-700); }
.btn-light { background: var(--cream); color: var(--green-700); }
.btn-light:hover { background: #fff; color: var(--green-700); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 246, 238, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 20px -14px rgba(0, 0, 0, 0.35); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}
.brand { display: flex; align-items: center; flex: none; transition: opacity 0.35s ease, transform 0.35s ease; }
/* Header-Logo erst zeigen, wenn das große Hero-Logo aus dem Bild ist (nur mit JS, sonst immer sichtbar) */
.js-logo .site-header:not(.brand-sichtbar) .brand { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.brand img { height: 52px; width: auto; }

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.main-nav a:hover,
.main-nav a.active { background: var(--green-100); color: var(--green-700); }
.main-nav .nav-cta { margin-left: 10px; }
.main-nav .nav-cta a { background: var(--green-600); color: #fff; padding: 10px 20px; }
.main-nav .nav-cta a:hover { background: var(--green-700); color: #fff; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--green-100);
  color: var(--green-700);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.35);
    padding: 8px clamp(16px, 4vw, 40px) 20px;
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { padding: 12px 16px; font-size: 1.05rem; }
  .main-nav .nav-cta { margin: 8px 0 0; }
  .main-nav .nav-cta a { text-align: center; }
}

/* ---------- Wellen-Trenner ---------- */
.wave { display: block; width: 100%; height: clamp(40px, 7vw, 90px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(24px, 5vw, 56px);
}
.hero::before {
  /* zarte Wolken im Hintergrund */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(closest-side, rgba(220, 235, 245, 0.85), transparent) -6% 4% / 280px 200px no-repeat,
    radial-gradient(closest-side, rgba(220, 235, 245, 0.8), transparent) 96% 0% / 380px 220px no-repeat,
    radial-gradient(closest-side, rgba(220, 235, 245, 0.6), transparent) 70% 18% / 220px 120px no-repeat;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: clamp(16px, 4vw, 48px);
}
.hero-text { padding-bottom: clamp(16px, 3vw, 40px); }
.hero-text p { font-size: 1.15rem; color: var(--ink-soft); max-width: 30em; }
.hero-logo-wrap {
  position: relative;
  width: fit-content;
  margin: 0 0 clamp(18px, 3vw, 30px) -6px;
}
.hero-logo {
  display: block;
  width: clamp(220px, 28vw, 340px);
  height: auto;
  animation: logo-auftritt 0.9s cubic-bezier(0.2, 0.8, 0.2, 1.1) both;
}

@keyframes logo-auftritt {
  from { opacity: 0; transform: translateY(-14px) scale(0.92); }
  to { opacity: 1; transform: none; }
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.hero-text { padding-top: 0; }
/* Slogan als "Treppe": jede Zeile etwas größer und weiter eingerückt – die Schrift wächst mit */
.hero h1.slogan { font-size: 1rem; font-weight: 500; line-height: 1; }
.slogan > span { display: block; }
.slogan-over {
  font: 800 0.95rem/1 var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--green-600);
  margin-bottom: 0.7em;
}
.slogan .z1 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--ink-soft); }
.slogan .z2 { font-size: clamp(2rem, 3.6vw, 2.8rem); padding-left: 0.9em; font-style: italic; color: var(--green-600); }
.slogan .z3 { font-size: clamp(2.5rem, 4.8vw, 3.8rem); padding-left: 1.6em; color: var(--green-700); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.hero-art { position: relative; }
.hero-art .fallback {
  -webkit-mask-image: linear-gradient(#000 78%, transparent);
  mask-image: linear-gradient(#000 78%, transparent);
}
.hero-bottom { margin-top: -2px; background: var(--green-100); }

/* Illustration-Mechanik:
   Liegt eine generierte Illustration (img.ill) vor, wird die SVG-Ersatzgrafik ausgeblendet.
   Fehlt die Datei, entfernt sich das <img> selbst (onerror) und die SVG bleibt sichtbar. */
.art:has(img.ill) .fallback { display: none; }
.art img.ill { width: 100%; height: auto; }
.hero-art, .about-art { width: 100%; }
.hero-art > .fallback, .about-art > .fallback { width: 100%; height: auto; display: block; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-text { padding-bottom: 0; }
  .hero-art { max-width: 560px; margin-inline: auto; }
}

/* ---------- Über uns ---------- */
.about { background: var(--green-100); padding-block: clamp(32px, 5vw, 60px) clamp(40px, 6vw, 72px); }
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.about-text p { color: var(--ink-soft); }

/* Kernaussage: groß, in der Schmuckschrift, mit dezentem Textmarker */
.about-text .about-kern {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.3vw, 1.7rem);
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 1.4rem;
}
/* Fließtext darunter als ruhiger Block mit feiner Linie */
.about-kern ~ p {
  border-left: 3px solid var(--green-400);
  padding-left: 1.1rem;
  margin-bottom: 0;
  padding-bottom: 1em;
}
.about-kern ~ p:last-of-type { padding-bottom: 0; }
.about-kern mark {
  color: inherit;
  background: linear-gradient(transparent 62%, #f7e08a 62%, #f7e08a 90%, transparent 90%) no-repeat 0 0 / 100% 100%;
  padding-inline: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
/* Marker "zieht" sich beim Einblenden über die Wörter */
.reveal .about-kern mark { background-size: 0 100%; transition: background-size 0.9s ease 0.5s; }
.reveal .about-kern mark + mark { transition-delay: 1s; }
.reveal.in .about-kern mark { background-size: 100% 100%; }

.about .values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}
.about .values li {
  background: var(--white);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--green-700);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  /* Bild mobil nach dem Text – sonst stünde es direkt unter dem Hero-Bild */
  .about-art { max-width: 520px; margin-inline: auto; }
}

/* ---------- Angebote ---------- */
.programs { background: linear-gradient(var(--green-100), var(--cream) 40%); }
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
.program {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: center;
  cursor: pointer;
  padding: 18px 12px 22px;
  border-radius: var(--radius-lg);
  transition: background 0.2s ease, transform 0.2s ease;
}
.program:hover,
.program:focus-visible { background: var(--white); transform: translateY(-4px); box-shadow: var(--shadow); }
.program .circle {
  width: clamp(130px, 16vw, 168px);
  aspect-ratio: 1;
  max-width: 100%;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.program .circle svg { width: 52%; height: auto; }
.program .circle img.ill { width: 76%; height: auto; }
.program h3 { margin-bottom: 0.3em; }
.program p { color: var(--muted); margin: 0 auto; max-width: 18em; font-size: 0.98rem; }
.program .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--green-600);
}
.program .more svg { width: 1em; height: 1em; }

.bg-peach { background: var(--peach); }
.bg-butter { background: var(--butter); }
.bg-sky { background: var(--sky); }
.bg-mint { background: var(--mint); }
.bg-lilac { background: var(--lilac); }
.bg-rose { background: var(--rose); }

@media (max-width: 860px) { .program-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .program-grid { grid-template-columns: 1fr; } }

/* Detail-Dialog */
dialog.info {
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.45);
}
dialog.info::backdrop { background: rgba(31, 42, 34, 0.45); backdrop-filter: blur(3px); }
dialog.info .info-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 28px 0;
}
dialog.info .info-head .dot {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
dialog.info .info-head .dot svg { width: 58%; }
dialog.info h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.8rem; margin: 0; }
dialog.info .info-body { padding: 18px 28px 28px; color: var(--ink-soft); }
dialog.info .close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--white);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}
dialog.info .close svg { width: 18px; height: 18px; }

/* ---------- Leitspruch-Band ---------- */
.motto { background: var(--green-500); color: #fff; text-align: center; }
.motto-wave-top { background: var(--cream); }
.motto-wave-bottom { background: var(--cream); margin-top: -1px; }
.motto-wave-top { margin-bottom: -1px; }
.motto blockquote {
  margin: 0 auto;
  max-width: 900px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.12;
  font-weight: 400;
}
.motto blockquote::before,
.motto blockquote::after { color: var(--green-200); }
.motto blockquote::before { content: "„"; }
.motto blockquote::after { content: "“"; }
.motto .eyebrow { color: var(--green-100); }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 780px;
  margin: clamp(36px, 5vw, 56px) auto 0;
  padding: 0;
  list-style: none;
}
.stats li {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 22px 12px;
  box-shadow: var(--shadow);
}
.stats strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  line-height: 1;
  color: var(--green-600);
}
.stats span { font-weight: 700; color: var(--muted); }
@media (max-width: 520px) { .stats { gap: 10px; } .stats li { padding: 16px 6px; } }

/* ---------- Gruppen ---------- */
.group-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 28px);
}
.group {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 28px 30px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.group .art {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  overflow: hidden;
}
.group .art svg { width: 56%; }
.group .art img.ill { width: 84%; }
.group h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.75rem; margin-bottom: 0.2em; }
.group .age {
  display: inline-block;
  background: var(--green-50);
  color: var(--green-700);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.group p { color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) { .group-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* ---------- Team ---------- */
.team { background: var(--cream-2); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(18px, 3vw, 32px) clamp(12px, 2vw, 24px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.member { text-align: center; }
.member img {
  width: 100%;
  max-width: 170px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 50%;
  margin: -15px auto -3px; /* gleicht die Verkleinerung (scale 0.85) im Ruhezustand aus */
  border: 5px solid var(--white);
  box-shadow: var(--shadow-sm);
}
.member strong { display: block; font-weight: 800; line-height: 1.3; }
.member > span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
  margin-top: 2px;
  min-height: 2.7em; /* 2 Zeilen reservieren, damit die Gruppen-Schilder auf gleicher Höhe beginnen */
}
.member .tags { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 8px; }
.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--ink-soft);
}
.tag b { display: block; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-700); margin-top: 1px; }
.t-perlen { background: var(--sky); }
.t-edelstein { background: var(--peach); }
.t-goldtaler { background: var(--butter); }

.team-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -12px 0 36px; }
.chip {
  font: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 8px 18px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--white);
  color: var(--ink-soft);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.chip:hover { transform: translateY(-2px); }
.chip.active { border-color: var(--green-600); color: var(--green-700); }
.chip[class*="t-"] { background: var(--white); }
.chip[class*="t-"]::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
}
.chip.t-perlen::before { background: var(--sky); }
.chip.t-edelstein::before { background: var(--peach); }
.chip.t-goldtaler::before { background: var(--butter); }
.member.hidden { display: none; }

@media (max-width: 960px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Zeiten ---------- */
.times-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 28px);
  align-items: start;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.card-title .icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.card-title .icon svg { width: 24px; height: 24px; }
.card-title h3 { margin: 0; }
.time-list { list-style: none; margin: 0; padding: 0; }
.time-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--green-200);
}
.time-list li:last-child { border-bottom: 0; }
.time-list .label { color: var(--muted); font-weight: 700; }
.time-list .value { font-weight: 800; text-align: right; white-space: nowrap; }
.time-list .label small { display: block; font-weight: 600; font-size: 0.85rem; }
.time-sub { margin: 16px 0 4px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-500); }

.closing-list li { flex-direction: column; gap: 0; }
.closing-list .value { text-align: left; white-space: normal; }
.closing-list li.past { opacity: 0.45; }
.closing-list li.past .value { text-decoration: line-through; text-decoration-thickness: 1px; }
.note {
  margin-top: 16px;
  background: var(--butter);
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.95rem;
}
@media (max-width: 960px) { .times-grid { grid-template-columns: 1fr 1fr; } .times-grid .card:last-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .times-grid { grid-template-columns: 1fr; } }

/* ---------- Beiträge ---------- */
.fees { background: var(--green-50); }
.fee-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 28px); }
.fee-table { width: 100%; border-collapse: collapse; }
.fee-table th,
.fee-table td { padding: 11px 4px; border-bottom: 1px dashed var(--green-200); text-align: left; }
.fee-table th { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.fee-table td:last-child,
.fee-table th:last-child { text-align: right; }
.fee-table td:last-child { font-weight: 800; color: var(--green-700); white-space: nowrap; }
.fee-table tr:last-child td { border-bottom: 0; }
.fee-note { text-align: center; color: var(--ink-soft); margin-top: 28px; }
@media (max-width: 760px) { .fee-grid { grid-template-columns: 1fr; } }

/* ---------- Voranmeldung & Kontakt ---------- */
.signup-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(20px, 4vw, 40px);
  align-items: stretch;
}
.signup {
  background: var(--green-600);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.signup h2 { color: #fff; }
.signup .eyebrow { color: var(--green-100); }
.steps { list-style: none; margin: 0 0 28px; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 0;
}
.steps li::before {
  content: counter(step);
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--green-700);
  font-weight: 900;
  display: grid;
  place-items: center;
}
.steps a { color: #fff; font-weight: 800; }
.signup .btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.contact h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.8rem; }
.contact-list { list-style: none; margin: 0 0 22px; padding: 0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; }
.contact-list .icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.contact-list .icon svg { width: 20px; height: 20px; }
.contact-list a { font-weight: 800; text-decoration: none; }
.contact-list small { display: block; color: var(--muted); font-size: 0.85rem; }
@media (max-width: 860px) { .signup-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--cream-2); padding-top: 8px; }
.footer-wave { background: var(--cream); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-block: 40px 32px;
}
.footer-grid h4 {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-600);
  margin: 0 0 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { padding: 3px 0; }
.footer-grid a { color: var(--ink-soft); text-decoration: none; }
.footer-grid a:hover { color: var(--green-700); text-decoration: underline; }
.footer-brand img { height: 64px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--ink-soft); max-width: 22em; }
.footer-bottom {
  position: relative;
  padding-block: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(16px, 4vw, 40px);
  right: clamp(16px, 4vw, 40px);
  border-top: 1px solid var(--green-200);
}
.footer-bottom a { color: var(--muted); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */
.page-hero { padding-block: clamp(40px, 7vw, 80px) 0; }
.legal { max-width: 820px; }
.legal h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 1.6em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.4em; }
.legal p, .legal li { color: var(--ink-soft); }
.todo {
  background: var(--butter);
  border-left: 4px solid var(--logo-yellow);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
}

/* ---------- Bewegung ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* Header wird beim Scrollen schmaler. Die 14px weniger Höhe gleicht margin-bottom aus,
   damit der Inhalt darunter nicht springt – sonst wackelt der Header nahe ganz oben
   zwischen beiden Zuständen hin und her. */
.site-header { transition: box-shadow 0.2s ease, margin-bottom 0.3s ease; }
.header-inner { transition: min-height 0.3s ease; }
.brand img { transition: height 0.3s ease; }
.site-header.scrolled { margin-bottom: 14px; }
.site-header.scrolled .header-inner { min-height: 62px; }
.site-header.scrolled .brand img { height: 42px; }

/* Gleitende Menü-Markierung */
.main-nav ul { position: relative; }
.nav-pill {
  position: absolute;
  left: 0;
  top: 50%;
  height: 38px;
  margin-top: -19px;
  border-radius: 999px;
  background: var(--green-100);
  opacity: 0;
  z-index: 0;
  transition: transform 0.45s cubic-bezier(0.3, 0.8, 0.2, 1), width 0.45s cubic-bezier(0.3, 0.8, 0.2, 1), opacity 0.2s ease;
  pointer-events: none;
}
.main-nav li { position: relative; z-index: 1; }
@media (min-width: 1061px) {
  .main-nav li:not(.nav-cta) a.active { background: transparent; color: var(--green-700); }
  /* Hover: getönter Hintergrund + Unterstrich, der von der Mitte aus wächst */
  .main-nav li:not(.nav-cta) a { position: relative; }
  .main-nav li:not(.nav-cta) a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 3px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--green-600);
    transform: scaleX(0);
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .main-nav li:not(.nav-cta) a:hover {
    background: rgba(79, 127, 90, 0.12);
    color: var(--green-700);
  }
  .main-nav li:not(.nav-cta) a:hover::after,
  .main-nav li:not(.nav-cta) a:focus-visible::after { transform: scaleX(1); }
  .main-nav .nav-cta a { transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
  .main-nav .nav-cta a:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
}
@media (max-width: 1060px) { .nav-pill { display: none; } }

/* Angesprungene Überschrift: Unterstrich zeichnet sich */
h2 { position: relative; }
h2.arrived::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.12em;
  height: 0.14em;
  width: 3.2em;
  border-radius: 999px;
  background: var(--logo-yellow);
  transform-origin: 0 50%;
  animation: unterstreichen 1.6s ease forwards;
}
.section-head.center h2.arrived::after { left: 50%; margin-left: -1.6em; transform-origin: 50% 50%; }
@keyframes unterstreichen {
  0% { transform: scaleX(0); opacity: 1; }
  35% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

/* Hero-Szene: Basisbild + animierte Ebenen (Positionen in % des Gesamtbilds 1374×1145,
   Werte stammen aus `python tools/hero_ebenen.py hero-3`) */
.hero-szene { position: relative; }
.hero-szene .ebene { position: absolute; height: auto; max-width: none; pointer-events: none; }
/* Reihenfolge: Strahlen hinter der Landschaft, Gesicht davor */
.hero-szene > img.ill { position: relative; z-index: 1; }
.hero-szene .strahlen { z-index: 0; }
.hero-szene .gesicht { z-index: 2; }
.hero-szene .strahlen {
  left: 9.316%; top: 0.873%; width: 23.799%;
  transform-origin: 51.07% 52.4%;
  animation: strahlen-drehen 40s linear infinite, strahlen-pulsieren 3.5s ease-in-out infinite;
}
.hero-szene .gesicht {
  left: 14.702%; top: 7.424%; width: 13.61%;
  transform-origin: 49.73% 50%;
  animation: gesicht-strahlen 4s ease-in-out infinite;
}
@keyframes strahlen-drehen { to { rotate: 360deg; } }
@keyframes strahlen-pulsieren {
  0%, 100% { scale: 1; opacity: 1; }
  50% { scale: 1.06; opacity: 0.85; }
}
@keyframes gesicht-strahlen {
  0%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 0 rgba(255, 210, 60, 0)); }
  30% { transform: scale(1.04) rotate(-4deg); filter: drop-shadow(0 0 18px rgba(255, 210, 60, 0.75)); }
  60% { transform: scale(1.02) rotate(3deg); filter: drop-shadow(0 0 10px rgba(255, 210, 60, 0.5)); }
}

.hero-art, .hero-text { will-change: transform; }

/* Über uns: Schmetterling flattert (Position in % des Bilds 1200×999,
   Werte aus `python tools/ebene_ausschneiden.py ueber-uns-2 falter 948 530`) */
.about-szene { position: relative; }
.about-szene .falter {
  position: absolute;
  left: 76.917%; top: 50.15%; width: 4.333%;
  height: auto; pointer-events: none;
  animation: falter-schlagen 0.45s ease-in-out infinite alternate, falter-gaukeln 6s ease-in-out infinite;
}
@keyframes falter-schlagen { to { scale: 0.7 1; } }
@keyframes falter-gaukeln {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  30% { translate: -6px -8px; rotate: -6deg; }
  65% { translate: 4px -3px; rotate: 4deg; }
}

/* Hover: Icons wippen, Fotos zoomen */
.program .circle img.ill,
.group .art img.ill { transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); }
.program:hover .circle img.ill,
.program:focus-visible .circle img.ill { transform: scale(1.1) rotate(-6deg); }
.group:hover .art img.ill { transform: scale(1.08) rotate(5deg); }
.group.in { transition: opacity 0.7s ease, transform 0.25s ease, box-shadow 0.25s ease; }
.group.in:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -16px rgba(46, 74, 52, 0.35); }
/* Team-Fotos: Das Bild wird in Zoom-Größe gezeichnet und im Ruhezustand verkleinert.
   Beim Hover wächst es auf 100 % – dort ist es gestochen scharf (kein Hochskalieren). */
.member { position: relative; }
.member img {
  max-width: 200px;
  transform: scale(0.85);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.member:hover { z-index: 2; }
.member:hover img { transform: scale(1); }
.stats li.in { transition: opacity 0.7s ease, transform 0.25s ease; }
.stats li.in:hover { transform: translateY(-4px) rotate(-1deg); }

/* Nach-oben-Knopf */
.to-top {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-600);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.15s ease;
}
.to-top svg { width: 22px; height: 22px; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--green-700); color: #fff; }

/* Team-Filter: eingeblendete Personen poppen kurz auf */
.team-grid.gefiltert .member:not(.hidden) { animation: auftauchen 0.4s ease; }
@keyframes auftauchen { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

.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;
}
:focus-visible { outline: 3px solid var(--logo-yellow); outline-offset: 3px; }
