/* Tagespflege Windelflitzer – Stylesheet (Prototyp Phase 2)
   Mobile-first: Basis = ca. 360 px, Erweiterungen über min-width / Container Queries.
   Farben aus Logo/Banner; Textfarben bewusst dunkel (Logo-Gelb/-Rot reichen für Text nicht aus). */

/* Schriften lokal gehostet, beide SIL Open Font License 1.1 (Lizenztexte liegen in assets/fonts/).
   Fredoka = runde, kräftige Überschriften passend zum Logo; Nunito = gut lesbare, runde Textschrift. */
@font-face {
  font-family: "Fredoka";
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/fredoka-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/nunito-latin.woff2") format("woff2");
}

:root {
  /* Markenfarben (aus LogoGross.png / Banner-SVG) */
  --brand-red: #e93024;
  --brand-blue: #00aef0;
  --brand-yellow: #ecd016;
  --brand-green: #5ab947;
  --brand-orange: #ff7a29;

  /* Oberflächen und Text (Kontrast nach WCAG AA, in Phase 4 messtechnisch prüfen) */
  /* Optik der bisherigen Seite: weißer Grund, graue Schrift (#666 / Überschriften #444),
     cyanblaue Leiste (#00AEEF). Dort ist die Menüschrift weiß (Kontrast nur 2,4:1) –
     hier dunkel, damit WCAG AA erreicht wird. */
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #444444;        /* Überschriften */
  --text: #666666;       /* Fließtext (5,7:1 auf Weiß) */
  --ink-soft: #666666;
  --line: #e3e3e3;
  --link: #0079ad;       /* dunkleres Cyan: 4,9:1 auf Weiß */
  --nav-bg: var(--brand-blue);
  --nav-ink: #06283a;    /* 6,6:1 auf #00AEEF */
  --btn-bg: var(--brand-orange);
  --btn-ink: #1d2733;
  --tint-yellow: #fff6c9; --tint-blue: #e1f4fd; --tint-green: #e6f5df; --tint-pink: #fde7ee;
  --ribbon: #d95e14;     /* Banner-Orange aus dem bisherigen SVG */
  --focus: #0b57d0;

  --radius: 1rem;
  --space-s: clamp(0.75rem, 0.6rem + 0.6vw, 1rem);
  --space-m: clamp(1rem, 0.8rem + 1vw, 1.75rem);
  --space-l: clamp(2rem, 1.4rem + 3vw, 4rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.5vw, 2.5rem);
  --step-3: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  --measure: 65ch;
  --nav-h: 4rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14202b;
    --surface: #1d2b38;
    --ink: #f4efe3;
    --text: #c5ccd3;
    --ink-soft: #c5ccd3;
    --line: #34475a;
    --link: #7fd0f5;
    --tint-yellow: #3a3615; --tint-blue: #15354a; --tint-green: #1d3a1a; --tint-pink: #48202f;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-bottom: calc(var(--nav-h) + 1rem); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--step-0)/1.65 "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); /* Platz für die untere Tab-Leiste */
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, .banner strong { font-family: "Fredoka", "Nunito", system-ui, sans-serif; }
h1, h2, h3 { line-height: 1.2; font-weight: 500; text-wrap: balance; color: var(--ink); }
h1 { font-size: var(--step-3); margin: 0 0 var(--space-s); }
h2 { font-size: var(--step-2); margin: 0 0 var(--space-s); }
h3 { font-size: var(--step-1); margin: 0 0 0.25rem; }
p, li { max-width: var(--measure); }
a { color: var(--link); text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --focus: #ffd84d; } }

.wrap { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: 0.75rem 1rem; z-index: 100; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Kopf ---------- */
/* Himmel, Sonne und Wiese wie im bisherigen Kopfbild – als CSS, damit sie auf jeder Breite scharf sind.
   Das Logo (transparent) liegt darüber und ist deutlich größer als zuvor. */
.site-header { text-align: center; background: #fff; }
.site-header .wrap {
  width: auto; margin: 0;
  padding: var(--space-m) 1rem calc(var(--space-m) + 1.25rem);
  background:
    linear-gradient(to top, #4faf2e 0 1.25rem, rgba(79, 175, 46, 0) 1.25rem),
    radial-gradient(circle at 6% 0%, #fff 0, rgba(255, 255, 255, 0) 30%),
    linear-gradient(#6ec3f2 0%, #bfe7ff 70%, #e6f6ff 100%);
}
.site-header img { width: min(100%, 44rem); margin-inline: auto; }
.tagline {
  margin: 0; padding: 0.9rem 1rem; text-align: center; max-width: none;
  background: #fff; border-bottom: 1px solid var(--line);
  color: var(--ink); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; font-size: clamp(0.8125rem, 0.75rem + 0.3vw, 1rem);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tagline { background: var(--surface); } }

/* ---------- Navigation: mobil = feste Leiste unten, ab Tablet oben ---------- */
.nav {
  position: fixed; inset: auto 0 0 0; z-index: 50;
  background: var(--nav-bg);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav ul { display: flex; margin: 0; padding: 0; list-style: none; }
.nav li { flex: 1; max-width: none; }
.nav a {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: var(--nav-h); padding: 0.25rem 0.5rem;
  color: var(--nav-ink); text-decoration: none; font-weight: 700;
}
.nav a[aria-current="page"] { background: #fff; color: var(--nav-ink); }
.nav a:active { background: rgba(255, 255, 255, 0.5); }

/* Ab Tablet: die cyanblaue Leiste liegt wie auf der bisherigen Seite ganz oben, links ausgerichtet */
@media (min-width: 48em) {
  body { padding-bottom: 0; display: flex; flex-direction: column; min-height: 100vh; }
  main { flex: 1; }
  .nav { position: static; order: -1; }
  .nav ul { width: min(100% - 2rem, 70rem); margin-inline: auto; justify-content: flex-start; }
  .nav li { flex: 0 0 auto; }
  .nav a { min-height: 3rem; padding-inline: 1.25rem; }
  .nav a:hover { background: rgba(255, 255, 255, 0.45); }
  .nav a[aria-current="page"]:hover { background: #fff; }
}

/* ---------- Banner „Platz frei“ (Text statt Bild, Datum im HTML pflegbar) ---------- */
/* Aufbau wie das bisherige Banner: Himmel, Sonne, orange Schleife, Wiese. Die Schleife ist Text,
   große fette Schrift in Weiß auf #D95E14 (3,9:1 – für große Schrift ausreichend). */
.banner {
  display: block; text-decoration: none; text-align: center;
  margin-block: var(--space-m); padding: var(--space-m) var(--space-m) calc(var(--space-m) + 0.75rem);
  background:
    linear-gradient(to top, #4faf2e 0 0.75rem, rgba(79, 175, 46, 0) 0.75rem),
    radial-gradient(circle at 5% 22%, #ffd23b 0 1.1rem, rgba(255, 210, 59, 0) 1.2rem),
    linear-gradient(#bfe7ff, #fff);
  border-radius: 0.25rem;
}
.ribbon {
  display: block; max-width: 44rem; margin-inline: auto; padding: 0.5rem 1.5rem 0.75rem;
  background: var(--ribbon); color: #fff; border: 4px solid #b94d0e; border-radius: 1.25rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
.ribbon strong { display: block; font-size: var(--step-3); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.1; }
.ribbon span { display: block; font-family: "Fredoka", "Nunito", system-ui, sans-serif; font-size: var(--step-1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.banner:hover .ribbon { filter: brightness(1.06); }
@media (prefers-reduced-motion: no-preference) {
  .ribbon { animation: pulse 2.6s ease-in-out infinite; }
  @keyframes pulse { 50% { transform: scale(1.015); } }
}

/* ---------- Hero ---------- */
.hero { text-align: center; padding-block: var(--space-m); }
.hero .kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.875rem; font-weight: 400; color: var(--ink-soft); margin: 0 0 0.5rem; }
.hero p { margin-inline: auto; font-size: var(--step-1); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; min-width: 44px; padding: 0.5rem 1.5rem;
  background: var(--btn-bg); color: var(--btn-ink);
  border: 0; border-radius: 999px; font: 700 1rem/1.2 "Nunito", system-ui, sans-serif;
  text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.06); }
.btn--ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }

/* ---------- Abschnitte ---------- */
.section { padding-block: var(--space-l); }
.section + .section { border-top: 1px solid var(--line); }
.section > .wrap > h2::after { content: ""; display: block; width: 4rem; height: 6px; margin-top: 0.5rem; border-radius: 3px;
  background: linear-gradient(90deg, var(--brand-red) 25%, var(--brand-yellow) 25% 50%, var(--brand-green) 50% 75%, var(--brand-blue) 75%); }

/* Fakten-Karten: passen sich dem verfügbaren Platz des Containers an */
.cards-host { container-type: inline-size; }
.cards { display: grid; gap: var(--space-s); grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@container (min-width: 36rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@container (min-width: 60rem) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-top-width: 6px; border-radius: var(--radius); padding: var(--space-s) var(--space-m); max-width: none; }
.card:nth-child(1) { border-top-color: var(--brand-red); }
.card:nth-child(2) { border-top-color: var(--brand-blue); }
.card:nth-child(3) { border-top-color: var(--brand-green); }
.card:nth-child(4) { border-top-color: var(--brand-yellow); }
.card h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); font-weight: 400; }
.card p { margin: 0; font-weight: 400; }

/* Team */
.team { display: grid; gap: var(--space-m); grid-template-columns: 1fr; }
@media (min-width: 40em) { .team { grid-template-columns: repeat(2, 1fr); } }
.person { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.person div { padding: var(--space-s) var(--space-m) var(--space-m); }
.person ul { padding-left: 1.1rem; margin: 0.5rem 0 0; }

/* Galerie: Scroll-Snap, ohne JavaScript, per Tastatur und Touch bedienbar */
.gallery { display: flex; gap: var(--space-s); overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 0 var(--space-s); margin: 0; list-style: none; -webkit-overflow-scrolling: touch; }
.gallery li { flex: 0 0 min(85%, 34rem); scroll-snap-align: center; max-width: none; }
.gallery figure { margin: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery figcaption { padding: 0.75rem 1rem; }

/* Konzept: gruppierte Liste (Gruppierung = Vorschlag, Wortlaut unverändert) */
.concept { display: grid; gap: var(--space-m); grid-template-columns: 1fr; }
@media (min-width: 48em) { .concept { grid-template-columns: repeat(2, 1fr); } }
.concept ul { margin: 0; padding-left: 1.2rem; }

/* Anfahrt */
.transit { display: grid; gap: var(--space-s); grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 40em) { .transit { grid-template-columns: repeat(3, 1fr); } }
.transit li { max-width: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-s) var(--space-m); }
.transit b { display: block; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.875rem; color: var(--ink-soft); font-weight: 400; }
.map { margin: 0 0 var(--space-s); }
.map img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.map figcaption { font-size: 0.875rem; color: var(--ink-soft); padding-top: 0.5rem; }

/* Fuß */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: var(--space-m); }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; list-style: none; padding: 0; margin: 0 0 0.5rem; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }

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

/* ---------- Formular ---------- */
.form { display: grid; gap: var(--space-m); max-width: 40rem; }
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: var(--space-s) var(--space-m) var(--space-m); margin: 0; display: grid; gap: var(--space-s); }
.form legend { font-family: "Fredoka", "Nunito", system-ui, sans-serif; font-size: var(--step-1); font-weight: 500; padding-inline: 0.5rem; }
.form label, .form .label { display: grid; gap: 0.25rem; font-weight: 700; }
.form .opt { font-weight: 400; color: var(--ink-soft); }
.form input:not([type="radio"]):not([type="checkbox"]), .form select {
  width: 100%; min-height: 3rem; padding: 0.5rem 0.75rem; font: inherit; font-weight: 400; color: var(--ink);
  background: var(--bg); border: 2px solid var(--ink-soft); border-radius: 0.5rem;
}
.form input:user-invalid, .form select:user-invalid { border-color: var(--brand-red); }
.choices { display: grid; gap: 0.25rem; border: 0; padding: 0; margin: 0; }
.choices legend { font: 700 1rem/1.4 "Nunito", system-ui, sans-serif; padding: 0; margin-bottom: 0.25rem; }
.choice { display: flex !important; align-items: center; gap: 0.75rem; min-height: 3rem; padding: 0 0.75rem; border: 2px solid var(--line); border-radius: 0.5rem; font-weight: 400 !important; cursor: pointer; background: var(--bg); }
.choice input { width: 1.5rem; height: 1.5rem; accent-color: var(--link); flex: none; }
.choice:has(input:checked) { border-color: var(--link); }
.consent { font-size: 0.9375rem; }
.consent p { margin: 0 0 0.75rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { color: var(--ink-soft); font-size: 0.9375rem; }
.prose h2 { margin-top: var(--space-l); font-size: var(--step-1); }
.prose h3 { margin-top: var(--space-m); font-size: 1.125rem; }
.prose p, .prose li { max-width: var(--measure); overflow-wrap: anywhere; }

/* ---------- Empfehlungen ---------- */
.quotes { display: grid; gap: var(--space-m); grid-template-columns: 1fr; margin-block: var(--space-m); }
@media (min-width: 48em) { .quotes { grid-template-columns: repeat(2, 1fr); } }
.quote { margin: 0; background: var(--surface); border: 1px solid var(--line); border-left: 8px solid var(--brand-blue); border-radius: var(--radius); padding: var(--space-s) var(--space-m); }
.quote:nth-child(4n+1) { border-left-color: var(--brand-red); }
.quote:nth-child(4n+2) { border-left-color: var(--brand-blue); }
.quote:nth-child(4n+3) { border-left-color: var(--brand-green); }
.quote:nth-child(4n+4) { border-left-color: var(--brand-yellow); }
.quote blockquote { margin: 0; font-size: var(--step-1); line-height: 1.5; color: var(--ink); }
.quote blockquote p { max-width: none; margin: 0 0 0.5rem; }
.quote figcaption { font-weight: 700; color: var(--text); }
.quote figcaption::before { content: "– "; }
/* Vier Menüpunkte am Handy: etwas enger setzen */
@media (max-width: 47.99em) { .nav a { padding-inline: 0.125rem; font-size: 0.9375rem; } }

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

/* ---------- Kindlicher: bunte Bänder, Spielzeug, runde Formen ---------- */
.band { background: var(--tint); border-radius: clamp(1.5rem, 5vw, 3rem); margin: var(--space-m) clamp(0.5rem, 2vw, 2rem); position: relative; border: 0 !important; }
.tint-yellow { --tint: var(--tint-yellow); } .tint-blue { --tint: var(--tint-blue); }
.tint-green { --tint: var(--tint-green); } .tint-pink { --tint: var(--tint-pink); }
.band > .wrap { position: relative; }
.band .deco { position: absolute; top: calc(var(--space-l) * -0.35); right: 0; width: clamp(2.5rem, 6vw, 8rem); pointer-events: none; }
.band .deco img { width: 100%; height: auto; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.18)); }
.band > .wrap > h1, .band > .wrap > h2 { padding-right: clamp(3.25rem, 6vw, 8rem); }
.band > .wrap > h2::after { background: repeating-linear-gradient(90deg, var(--brand-red) 0 25%, var(--brand-yellow) 25% 50%, var(--brand-green) 50% 75%, var(--brand-blue) 75% 100%); height: 8px; width: 5rem; }

/* Spielzeug-Reihe unter dem Kopfbereich */
.toys { display: flex; justify-content: center; gap: clamp(0.5rem, 3vw, 2rem); margin: var(--space-m) auto 0; max-width: none; }
.toy { width: clamp(2.75rem, 9vw, 8rem); }
.toy img { width: 100%; height: auto; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.18)); }
@media (prefers-reduced-motion: no-preference) {
  .toy:nth-child(odd) img { animation: bob 3.2s ease-in-out infinite; }
  .toy:nth-child(even) img { animation: bob 3.8s ease-in-out -1.2s infinite; }
  @keyframes bob { 50% { transform: translateY(-0.4rem) rotate(2deg); } }
}

/* Startseite: Konfetti-Punkte im Willkommensbereich (nur ab Tablet-Breite) */
@media (min-width: 48em) { .hero {
  background:
    radial-gradient(circle at 7% 6%, var(--brand-red) 0 0.45rem, transparent 0.5rem),
    radial-gradient(circle at 93% 9%, var(--brand-blue) 0 0.6rem, transparent 0.65rem),
    radial-gradient(circle at 14% 95%, var(--brand-yellow) 0 0.55rem, transparent 0.6rem),
    radial-gradient(circle at 89% 93%, var(--brand-green) 0 0.45rem, transparent 0.5rem),
    radial-gradient(circle at 30% 3%, var(--brand-green) 0 0.3rem, transparent 0.35rem),
    radial-gradient(circle at 72% 97%, var(--brand-red) 0 0.3rem, transparent 0.35rem);
} }

/* Karten wie Aufkleber: weiß, rund, mit Schatten und leichter Neigung */
.card, .person, .transit li, .form fieldset, .quote {
  background: var(--surface); border: 3px solid #fff; border-radius: 1.5rem;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.07), 0 10px 18px rgba(0, 0, 0, 0.08);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card, :root:not([data-theme="light"]) .person, :root:not([data-theme="light"]) .transit li, :root:not([data-theme="light"]) .form fieldset, :root:not([data-theme="light"]) .quote { border-color: var(--line); } }
.card { border-top-width: 10px; }
.card:nth-child(1) { border-top-color: var(--brand-red); } .card:nth-child(2) { border-top-color: var(--brand-blue); }
.card:nth-child(3) { border-top-color: var(--brand-green); } .card:nth-child(4) { border-top-color: var(--brand-yellow); }
@media (min-width: 40em) and (prefers-reduced-motion: no-preference) {
  .card:nth-child(odd), .quote:nth-child(odd) { transform: rotate(-0.8deg); }
  .card:nth-child(even), .quote:nth-child(even) { transform: rotate(0.8deg); }
}
.person img { border-radius: 1.25rem 1.25rem 0 0; }
.gallery figure { border: 0.5rem solid #fff; border-radius: 1.25rem; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.07), 0 10px 18px rgba(0, 0, 0, 0.1); }
.gallery img { border-radius: 0.75rem; }
.gallery figcaption { background: transparent; }

/* Buttons: kugelig wie ein Spielstein */
.btn { box-shadow: 0 4px 0 #b94d0e; transition: transform 0.12s; }
.btn:hover { transform: translateY(-2px); filter: none; box-shadow: 0 6px 0 #b94d0e; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #b94d0e; }
.btn--ghost { background: #fff; color: #1d2733; border: 3px solid #1d2733; box-shadow: 0 4px 0 #1d2733; }
.btn--ghost:hover { box-shadow: 0 6px 0 #1d2733; }

/* Überschriften etwas verspielter */
h1, h2 { font-weight: 600; letter-spacing: 0.01em; }

/* Banner: Satz statt Schlagwort */
.ribbon strong { font-size: var(--step-2); text-transform: none; letter-spacing: 0.02em; line-height: 1.15; text-wrap: balance; }

/* ================= Dynamik (nur CSS, ohne JavaScript) =================
   Alles nur bei erlaubter Bewegung. Ältere Browser zeigen einfach die ruhige Seite. */

/* Kleines Logo in der Menüleiste: erst ab Tablet, erscheint beim Scrollen */
.nav-logo { display: none; }

@media (prefers-reduced-motion: no-preference) {
  /* 1) Weiche Seitenübergänge zwischen den Seiten (Kopf und Menü bleiben stehen) */
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: kopf; }
  .nav { view-transition-name: menue; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.25s; }

  @supports (animation-timeline: view()) {
    /* 2) Karten, Fotos und Zitate gleiten beim Scrollen sanft ein (translate/scale, damit die Neigung der Karten bleibt) */
    .card, .person, .quote, .transit li, .concept > div, .form fieldset, .map, .toys {
      animation: einblenden linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
    @keyframes einblenden { from { opacity: 0; translate: 0 1.75rem; scale: 0.96; } to { opacity: 1; translate: 0 0; scale: 1; } }

    /* 3b) Spielsachen schweben beim Scrollen leicht auf und ab */
    .band .deco, .toy {
      animation: schweben linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    @keyframes schweben { from { translate: 0 0.9rem; rotate: -4deg; } to { translate: 0 -0.9rem; rotate: 4deg; } }
  }

  /* 3a) Wolken ziehen langsam durch den Kopfbereich */
  .site-header .wrap { position: relative; overflow: hidden; isolation: isolate; }
  .site-header .wrap::before {
    content: ""; position: absolute; inset: 0 -50% auto 0; height: 60%; z-index: -1; pointer-events: none;
    background:
      radial-gradient(ellipse 5rem 1.4rem at 12% 35%, rgba(255, 255, 255, 0.85) 0 60%, transparent 62%),
      radial-gradient(ellipse 3.5rem 1rem at 18% 48%, rgba(255, 255, 255, 0.8) 0 60%, transparent 62%),
      radial-gradient(ellipse 6rem 1.6rem at 52% 22%, rgba(255, 255, 255, 0.8) 0 60%, transparent 62%),
      radial-gradient(ellipse 4rem 1.2rem at 58% 36%, rgba(255, 255, 255, 0.75) 0 60%, transparent 62%),
      radial-gradient(ellipse 5rem 1.4rem at 88% 40%, rgba(255, 255, 255, 0.85) 0 60%, transparent 62%);
    animation: wolken 70s linear infinite;
  }
  @keyframes wolken { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  .site-header .wrap > a, .site-header .wrap > picture { position: relative; z-index: 1; }
}

/* 4) Ab Tablet: Menüleiste bleibt oben stehen, wirft beim Scrollen einen Schatten, kleines Logo erscheint */
@media (min-width: 48em) {
  .nav { position: sticky; top: 0; }
  .nav-logo { display: flex; align-items: center; margin-left: auto; order: 2; opacity: 0; }
  .nav-logo a { min-height: 0 !important; padding: 0 !important; background: none !important; }
  .nav-logo img { height: 2.25rem; width: auto; }
}
@media (min-width: 48em) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .nav { animation: menueschatten linear both; animation-timeline: scroll(root); animation-range: 0 140px; }
    .nav-logo { animation: logo-zeigen linear both; animation-timeline: scroll(root); animation-range: 120px 260px; }
    @keyframes menueschatten { from { box-shadow: 0 0 0 rgba(0, 0, 0, 0); } to { box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25); } }
    @keyframes logo-zeigen { from { opacity: 0; } to { opacity: 1; } }
  }
}

/* Szene mit den Kindern auf der Wiese (Startseite) */
.scene { margin: var(--space-m) auto 0; max-width: 56rem; }
.scene img { width: 100%; height: auto; border-radius: clamp(1.25rem, 4vw, 2.5rem); border: 0.4rem solid #fff; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.07), 0 12px 24px rgba(0, 0, 0, 0.14); }
@media (max-width: 47.99em) { .scene img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 55% 100%; } }
@media (prefers-reduced-motion: no-preference) { @supports (animation-timeline: view()) { .scene { animation: einblenden linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; } } }

/* iPhone/Safari: Felder dürfen nie breiter als die weiße Box werden
   (Datums- und E-Mail-Felder bringen eine feste Mindestbreite mit) */
.form, .form fieldset, .form label, .form .choices { min-width: 0; max-width: 100%; }
.form fieldset, .form label { grid-template-columns: minmax(0, 1fr); }
.form input:not([type="radio"]):not([type="checkbox"]), .form select {
  min-width: 0; max-width: 100%; box-sizing: border-box; display: block;
  -webkit-appearance: none; appearance: none; border-radius: 0.5rem;
}
.form input[type="date"] { min-height: 3rem; line-height: 1.2; text-align: left; }
.form input[type="date"]::-webkit-date-and-time-value { text-align: left; min-height: 1.2em; }
/* Formular: einheitliche Felder und Überschriften innerhalb der Boxen (Safari/iPhone)
   - fieldset nicht als Raster (Safari rendert das uneinheitlich), Überschrift (legend) als normaler Block in der Box
   - verschachtelte Auswahlgruppen (.choices) bekommen keinen eigenen Kasten
   - Felder und Auswahlknöpfe haben denselben, gut sichtbaren Rahmen */
.form fieldset { display: block; }
.form fieldset > * + * { margin-top: var(--space-s); }
.form legend { float: left; width: 100%; padding: 0; margin: 0 0 var(--space-s); }
.form legend + * { clear: both; margin-top: 0; }
.form fieldset.choices { background: none; border: 0; box-shadow: none; border-radius: 0; padding: 0; margin-top: var(--space-s); }
.form fieldset.choices > .choice + .choice { margin-top: 0.5rem; }
.form fieldset.choices legend { font: 700 1rem/1.4 "Nunito", system-ui, sans-serif; margin-bottom: 0.5rem; }
.form { --field-border: #8a8a8a; }
.form input:not([type="radio"]):not([type="checkbox"]), .form select { border: 2px solid var(--field-border); background: #fff; color: #1d2733; }
.form .choice { border: 2px solid var(--field-border); background: #fff; }
.form .choice:has(input:checked) { border-color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form { --field-border: #9aa7b3; } :root:not([data-theme="light"]) .form input:not([type="radio"]):not([type="checkbox"]), :root:not([data-theme="light"]) .form select, :root:not([data-theme="light"]) .form .choice { background: var(--bg); color: var(--text); } }
/* Menüleiste am Handy: vier exakt gleich breite Felder (vorher richtete sich die Breite nach dem Wort) */
@media (max-width: 47.99em) {
  .nav ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nav li { min-width: 0; }
  .nav li + li { border-left: 1px solid rgba(6, 40, 58, 0.25); }
  .nav a { padding-inline: 0.125rem; font-size: clamp(0.6875rem, 3.4vw, 0.9375rem); letter-spacing: -0.01em; hyphens: manual; overflow-wrap: normal; text-align: center; }
}
/* Empfehlungen: längere Zitate lesbar halten */
.quotes { align-items: start; }
.quote blockquote { font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem); line-height: 1.6; }
.quote blockquote p + p { margin-top: 0.75rem; }
.quote .quelle { font-weight: 400; }

/* ---------- Foto-Mosaik mit Vergrößerung ---------- */
.mosaic { display: grid; gap: 0.5rem; grid-template-columns: repeat(2, 1fr); list-style: none; margin: 0; padding: 0; }
.mosaic__item { max-width: none; margin: 0; }
.mosaic__item--big { grid-column: 1 / -1; }
.mosaic a { position: relative; display: block; border: 0.4rem solid #fff; border-radius: 1.25rem; overflow: hidden; background: #fff; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.07), 0 10px 18px rgba(0, 0, 0, 0.1); }
.mosaic img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0.8rem; transition: transform 0.3s; }
.mosaic__item--big img { aspect-ratio: 16 / 9; }
.mosaic a:hover img { transform: scale(1.04); }
.mosaic a:focus-visible { outline-offset: 4px; }
.mosaic__cap { position: absolute; inset: auto 0.4rem 0.4rem 0.4rem; padding: 1.5rem 0.75rem 0.5rem; border-radius: 0 0 0.8rem 0.8rem; color: #fff; font-weight: 700; font-size: 0.8125rem; line-height: 1.3; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); background: linear-gradient(transparent, rgba(0, 0, 0, 0.65)); }
.mosaic__item--big .mosaic__cap { font-size: clamp(0.9rem, 0.8rem + 0.5vw, 1.125rem); }
@media (min-width: 48em) {
  .mosaic { grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
  .mosaic__item--big { grid-column: 1 / 3; grid-row: 1 / 3; }
  .mosaic__item--big a, .mosaic__item--big picture, .mosaic__item--big img { height: 100%; }
  .mosaic__item--big img { aspect-ratio: auto; }
}
@media (prefers-reduced-motion: reduce) { .mosaic img { transition: none; } }

/* Vollbild-Ansicht */
.lightbox { border: 0; padding: 0; background: transparent; width: 100%; max-width: 100vw; height: 100%; max-height: 100vh; margin: 0; color: #fff; }
.lightbox::backdrop { background: rgba(10, 20, 30, 0.92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; max-width: min(94vw, 80rem); display: grid; gap: 0.75rem; justify-items: center; }
.lightbox img { max-width: 100%; max-height: 78vh; width: auto; height: auto; border-radius: 1rem; border: 0.3rem solid #fff; background: #fff; }
.lightbox figcaption { font-size: 1.0625rem; text-align: center; max-width: 40rem; }
.lb-btn { position: absolute; width: 3.25rem; height: 3.25rem; border: 0; border-radius: 50%; background: #fff; color: #1d2733; font: 700 2rem/1 "Nunito", system-ui, sans-serif; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3); }
.lb-close { top: 0.75rem; right: 0.75rem; }
.lb-prev { left: 0.5rem; top: 50%; translate: 0 -50%; }
.lb-next { right: 0.5rem; top: 50%; translate: 0 -50%; }

/* ---------- Kopf der Startseite: Wiesen-Illustration mit Schriftzug (Logo-Schatten entfällt) ---------- */
.site-header--szene .wrap { background: none; padding: var(--space-s) 1rem var(--space-s); overflow: visible; }
.site-header--szene .wrap::before { content: none; animation: none; }
.site-header--szene img { width: min(100%, 44rem); border-radius: clamp(1.25rem, 4vw, 2.5rem); border: 0.4rem solid #fff; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.07), 0 12px 24px rgba(0, 0, 0, 0.14); }

/* ---------- Kleine Illustrationen: starten auf Höhe der Kartenüberschrift ---------- */
.band { --deco-w: clamp(2.5rem, 6vw, 8rem); }
.band .deco { width: var(--deco-w); }
@media (max-width: 47.99em) {
  /* mittig zur Überschrift (Überschrift ~1,2 Zeilenhöhen, Bild ~0,79 Breite) */
  .band .deco { top: calc((1.2 * var(--step-2) - 0.79 * var(--deco-w)) / 2); }
  .band > .wrap:has(> h1) .deco { top: calc((1.2 * var(--step-3) - 0.79 * var(--deco-w)) / 2); }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* Start in Ruhe auf Überschriftshöhe, danach sanfte Bewegung beim Weiterscrollen */
    .band .deco, .toy { animation: schweben linear both; animation-timeline: view(); animation-range: entry 100% exit 100%; }
    @keyframes schweben { from { translate: 0 0; rotate: 0deg; } to { translate: 0 0.9rem; rotate: 10deg; } }
  }
}


/* ======================================================================
   Überarbeitung nach Spezialisten-Empfehlung (Stand 2026-10-02)
   ====================================================================== */

/* ---------- Kompakter Kopf: Logo max. 80 px hoch ---------- */
.site-header .wrap { padding: 0.75rem 1rem 1.5rem; }
.site-header img { height: 5rem; width: auto; max-width: 100%; margin-inline: auto; }
.site-header .wrap > a { display: inline-block; }

/* ---------- Hero: alles Wichtige im ersten Bildschirm ---------- */
.hero { padding-block: var(--space-s) var(--space-m); text-align: center; }
.hero h1 { font-size: clamp(1.75rem, 1.3rem + 2.2vw, 3rem); margin-bottom: 0.5rem; }
.hero .lead { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); margin: 0 auto 0.75rem; }
.badge-row { margin: 0 0 0.75rem; max-width: none; }
.badge { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.5rem 1.1rem; border-radius: 999px;
  background: var(--brand-orange); color: #1d2733; font-weight: 800; text-decoration: none; box-shadow: 0 3px 0 #b94d0e; }
.badge::before { content: ""; width: 0.65rem; height: 0.65rem; border-radius: 50%; background: #1d2733; }
.badge[data-platz-frei="nein"], .badge-row:has(.badge[data-platz-frei="nein"]) { display: none; }
.hero__cta { margin: 0; max-width: none; }
.btn--big { min-height: 3.5rem; padding-inline: 2.25rem; font-size: 1.125rem; }
.btn--small { min-height: 2.75rem; padding: 0.4rem 1.1rem; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; max-width: none; }
@media (prefers-reduced-motion: no-preference) { .badge::before { animation: blink 2s ease-in-out infinite; } @keyframes blink { 50% { opacity: 0.35; } } }

.welcome { text-align: center; padding-block: var(--space-m) var(--space-l); }
.welcome h2 { padding-right: 0; }
.welcome p { margin-inline: auto; }
.welcome > .wrap > h2::after { margin-inline: auto; }

/* ---------- Fakten als Icon-Kacheln ---------- */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 60em) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fact { max-width: none; background: var(--surface); border: 3px solid #fff; border-radius: 1.5rem; padding: 0.9rem 0.9rem 1rem;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.07), 0 10px 18px rgba(0, 0, 0, 0.08); }
.fact__icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; margin-bottom: 0.5rem; color: #1d2733; }
.fact__icon svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fact:nth-child(1) .fact__icon { background: #ffd3cf; } .fact:nth-child(2) .fact__icon { background: #c8ecfb; }
.fact:nth-child(3) .fact__icon { background: #d3f0cb; } .fact:nth-child(4) .fact__icon { background: #fbefa6; }
.fact h3 { font-size: 0.9375rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); font-weight: 600; margin: 0 0 0.25rem; }
.fact p { margin: 0; font-weight: 700; line-height: 1.35; font-size: 1rem; }

/* ---------- Team: Qualifikationen als Badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0.6rem 0 0; }
.badges li { max-width: none; padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 0.875rem; font-weight: 700; background: var(--tint-blue); color: #1d2733; }
.person .badges li { background: #e1f4fd; }

/* ---------- Fotos: Bildunterschriften größer ---------- */
.mosaic__cap { font-size: 0.9375rem; }

/* ---------- Navigation: Symbole + größere Schrift ---------- */
.nav__icon svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.nav--desktop { display: none; }
@media (max-width: 47.99em) {
  :root { --nav-h: 4.5rem; }
  .nav a { flex-direction: column; gap: 0.15rem; font-size: 0.8125rem; letter-spacing: 0; line-height: 1.15; padding: 0.35rem 0.1rem; }
  .nav a[aria-current="page"] { box-shadow: inset 0 4px 0 var(--brand-orange); }
}
@media (min-width: 48em) {
  .nav--mobile, .nav__icon { display: none; }
  .nav--desktop { display: list-item; }
}

/* ---------- Fußzeile mit Kontaktknöpfen ---------- */
.footer-contact { display: flex; flex-wrap: wrap; gap: 0.6rem; max-width: none; margin: 0 0 0.75rem; }
.footer-contact .btn { text-decoration: none; }

/* ---------- Zitate: mobil als wischbares Karussell ---------- */
.quote--teaser { max-width: 46rem; margin-bottom: var(--space-s); }
@media (max-width: 47.99em) {
  .quotes { display: flex; gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -1rem; padding: 0.25rem 1rem 1rem; -webkit-overflow-scrolling: touch; }
  .quotes .quote { flex: 0 0 88%; scroll-snap-align: center; animation: none; }
}

/* ---------- Platzanfrage in Schritten ---------- */
.steps { margin-bottom: var(--space-s); }
.steps__label { font-weight: 800; margin: 0 0 0.5rem; max-width: none; }
.steps__bar { height: 0.75rem; border-radius: 999px; background: #fff; border: 2px solid var(--line); overflow: hidden; }
.steps__bar span { display: block; height: 100%; width: var(--p, 25%); background: linear-gradient(90deg, var(--brand-red), var(--brand-yellow), var(--brand-green), var(--brand-blue)); transition: width 0.3s; }
.form.is-stepped fieldset.step { display: none; }
.form.is-stepped fieldset.step.is-active { display: block; }
.form-nav { display: flex; gap: 0.75rem; margin-top: var(--space-s); }
.form-nav .btn { flex: 1; }
.form .step > legend:focus { outline: none; }


/* ======================================================================
   Einheitliche Buttons (ersetzt die orangen, unterschiedlich großen Knöpfe)
   Hauptknopf = Marken-Blau mit weißer Schrift, zweiter Knopf = weiß mit blauem Rahmen.
   Alle Knöpfe sind gleich hoch, gleich breit (mind. 13 rem) und gleich geformt.
   ====================================================================== */
:root { --btn-bg: #0079ad; --btn-bg-hover: #00668f; --btn-ink: #ffffff; --btn-edge: #004c6b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --btn-bg: #0a8cc4; --btn-bg-hover: #1a9ad2; --btn-edge: #05577a; } }

.btn, .btn--big, .btn--small {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  box-sizing: border-box; min-width: 13rem; min-height: 3.25rem; padding: 0.5rem 1.5rem;
  font: 800 1.0625rem/1.2 "Nunito", system-ui, sans-serif; letter-spacing: 0.01em;
  color: var(--btn-ink); background: var(--btn-bg);
  border: 3px solid var(--btn-bg); border-radius: 999px; text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 var(--btn-edge);
  transition: transform 0.12s, box-shadow 0.12s, background-color 0.12s;
}
.btn:hover, .btn--big:hover, .btn--small:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); filter: none; transform: translateY(-2px); box-shadow: 0 6px 0 var(--btn-edge); }
.btn:active, .btn--big:active, .btn--small:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--btn-edge); }

.btn--ghost, .btn--ghost:hover {
  background: #fff; color: #00668f; border-color: var(--btn-bg); box-shadow: 0 4px 0 var(--btn-edge);
}
.btn--ghost:hover { background: #e9f6fc; transform: translateY(-2px); box-shadow: 0 6px 0 var(--btn-edge); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--ghost { background: #fff; color: #00507a; } }

/* Gruppen: Knöpfe gleich breit; am Handy untereinander in voller Breite */
.btn-row, .footer-contact, .form-nav { display: flex; flex-wrap: wrap; gap: 0.75rem; max-width: none; }
.btn-row .btn, .footer-contact .btn { flex: 1 1 13rem; }
@media (max-width: 47.99em) {
  .btn-row .btn, .footer-contact .btn, .hero__cta .btn { width: 100%; }
  .form-nav .btn { min-width: 0; }
}
.hero__cta .btn { min-width: 15rem; }

/* "Platz frei"-Hinweis: kein Knopf mehr, sondern ein grünes Signal-Etikett */
.badge { background: #d6f0cc; color: #17401a; border: 2px solid var(--brand-green); box-shadow: none; font-weight: 800; }
.badge::before { background: #2f8f2a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge { background: #1d3a1a; color: #d6f0cc; } :root:not([data-theme="light"]) .badge::before { background: var(--brand-green); } }

/* Fußzeilen-Links dürfen die Knopfgröße nicht überschreiben; am Handy alle Knöpfe volle Breite */
.site-footer .btn { min-height: 3.25rem; padding: 0.5rem 1.5rem; }
@media (max-width: 47.99em) { main .btn, .site-footer .btn { width: 100%; } .form-nav .btn { width: auto; } }


/* ---------- Kopf: Wiesen-Illustration mit Schriftzug als Logo auf allen Seiten ---------- */
.site-header { background: #fff; }
.site-header .wrap { background: none; overflow: visible; padding: 0.6rem 1rem 0.5rem; }
.site-header .wrap::before { content: none; animation: none; }
.site-header .wrap > a { display: block; }
.site-header img { width: min(100%, 40rem); height: auto; margin-inline: auto; border-radius: 1.25rem; border: 0.3rem solid #fff;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.07), 0 8px 16px rgba(0, 0, 0, 0.12); }


/* ---------- Stimmen-Karussell auf der Startseite ---------- */
.slider { margin-bottom: var(--space-s); }
.slider__track { display: flex; gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0.25rem 0.9rem; margin: 0 -0.25rem; scrollbar-width: thin; align-items: stretch; }
.slider__track .quote, .slider__track .quote:nth-child(n) { flex: 0 0 100%; scroll-snap-align: start; animation: none; transform: none; margin: 0; }
@media (min-width: 48em) { .slider__track .quote, .slider__track .quote:nth-child(n) { flex-basis: calc(50% - 0.375rem); } }
.slider__track:focus-visible { outline-offset: 2px; }
.slider__bar { display: flex; align-items: center; gap: 0.6rem; }
.slider__btn { min-height: 3rem; min-width: 3rem; padding: 0 1rem; border: 3px solid var(--btn-bg); border-radius: 999px; background: #fff; color: #00668f;
  font: 800 1rem/1 "Nunito", system-ui, sans-serif; cursor: pointer; box-shadow: 0 3px 0 var(--btn-edge); }
.slider__prev, .slider__next { font-size: 1.75rem; padding-bottom: 0.2rem; }
.slider__btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--btn-edge); }
.slider__pause { margin: 0 auto 0 auto; }

/* Sehr schmale Telefone (unter 340 px): Fakten untereinander, lange Wörter dürfen umbrechen */
.fact p, .fact h3 { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 21.25em) { .facts { grid-template-columns: minmax(0, 1fr); } }


/* ---------- Logo = Wiesen-Illustration mit Schriftzug (auf allen Seiten; Startseite größer) ---------- */
.site-header .wrap { padding: 0.6rem 1rem 0.5rem; }
.site-header img { width: min(100%, 18rem); height: auto; }
.site-header--home img { width: min(100%, 34rem); }
@media (min-width: 48em) { .site-header img { width: min(100%, 20rem); } .site-header--home img { width: min(100%, 36rem); } }


/* Anfahrt */
.address { font-size: var(--step-1); line-height: 1.4; margin: 0 0 var(--space-s); }
.address strong { color: var(--ink); }
.band .transit { margin-top: var(--space-m); }


/* ---------- Kopf: Banner (Kinder links, Schriftzug rechts) in voller Breite ----------
   Links und rechts vom Bild läuft derselbe Himmel-/Wiesen-Verlauf weiter wie an den Bildrändern (aus build-banner.js). */
.site-header {
  background:
    linear-gradient(to bottom, rgb(246, 251, 252) 0%, rgb(232, 249, 245) 10%, rgb(216, 245, 231) 20%, rgb(207, 240, 198) 30%, rgb(199, 233, 154) 40%, rgb(189, 228, 109) 50%, rgb(179, 223, 60) 60%, rgb(158, 207, 26) 70%, rgb(138, 189, 26) 80%, rgb(123, 174, 33) 90%, rgb(50, 94, 10) 100%) left / 50% 100% no-repeat,
    linear-gradient(to bottom, rgb(198, 242, 235) 0%, rgb(209, 244, 237) 10%, rgb(213, 245, 231) 20%, rgb(207, 240, 200) 30%, rgb(201, 235, 160) 40%, rgb(192, 229, 117) 50%, rgb(171, 219, 61) 60%, rgb(136, 197, 13) 70%, rgb(135, 190, 22) 80%, rgb(122, 170, 33) 90%, rgb(44, 90, 6) 100%) right / 50% 100% no-repeat;
  border-bottom: 0.3rem solid #fff;
}
.site-header .wrap { width: 100%; max-width: none; margin: 0; padding: 0; background: none; overflow: visible; }
.site-header .wrap::before { content: none; animation: none; }
.site-header .wrap > a { display: block; }
.site-header img, .site-header--home img { display: block; width: 100%; max-width: 1000px; height: auto; margin: 0 auto; border: 0; border-radius: 0; box-shadow: none; }
@media (min-width: 48em) { .site-header img, .site-header--home img { width: 100%; max-width: 1000px; } }


/* ---------- Kopf: das ursprüngliche Logo (Kinder + Schriftzug) auf Himmel, mit selbst gezeichnetem Gras davor ----------
   Hinteres Gras liegt hinter dem Logo, vorderes davor: so stehen die Kinder im Gras. */
.site-header {
  position: relative; isolation: isolate; overflow: hidden; border: 0;
  background:
    radial-gradient(circle at 8% 0%, #fff 0, rgba(255, 255, 255, 0) 30%),
    linear-gradient(#6ec3f2 0%, #bfe7ff 62%, #e6f6ff 100%);
}
.site-header .wrap { position: relative; z-index: 1; width: 100%; max-width: none; margin: 0; padding: 0.9rem 1rem 1.75rem; text-align: center; background: none; overflow: visible; }
.site-header .wrap > a { display: inline-block; }
.site-header img, .site-header--home img { display: block; width: auto; height: 5rem; max-width: 100%; margin: 0 auto; border: 0; border-radius: 0; box-shadow: none; }
.site-header::before, .site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; background-repeat: repeat-x; background-position: left bottom; }
.site-header::before { height: 2.9rem; background-image: url("../img/gras-hinten.svg"); background-size: 360px 100%; z-index: 0; }
.site-header::after { height: 1.75rem; background-image: url("../img/gras-vorn.svg"); background-size: 360px 100%; z-index: 2; }
@media (min-width: 48em) {
  .site-header img, .site-header--home img { height: 6.75rem; max-width: 100%; width: auto; }
  .site-header .wrap { padding: 1.1rem 1rem 2.4rem; }
  .site-header::before { height: 3.4rem; }
  .site-header::after { height: 2rem; }
}
@media (prefers-reduced-motion: no-preference) { .site-header .wrap::before { content: ""; } }

/* Kinder stehen mitten im Gras: Logo etwas tiefer, das vordere Gras verdeckt die Füße leicht */
.site-header .wrap { padding-bottom: 1.2rem; }
@media (min-width: 48em) { .site-header .wrap { padding-bottom: 1.6rem; } }


/* ---------- Statistik-Seite ---------- */
.stats-page { padding-bottom: 2rem; }
.stat-scroll { overflow-x: auto; }
.stat-table { width: 100%; border-collapse: collapse; margin-bottom: var(--space-m); font-variant-numeric: tabular-nums; }
.stat-table th, .stat-table td { padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); text-align: right; }
.stat-table th[scope="col"], .stat-table th[scope="row"] { text-align: left; font-weight: 700; }
.stat-table thead th { border-bottom: 2px solid var(--ink-soft); }
.stat-table meter { width: min(100%, 12rem); height: 0.9rem; }
.stats-sum { margin-block: var(--space-m); }


/* ---------- Hero-Knopf: je nach "Platz frei" ein anderer Text (Schalter data-platz-frei am Container) ---------- */
.hero__cta[data-platz-frei="ja"] .cta-anfrage, .hero__cta[data-platz-frei="nein"] .cta-frei { display: none; }
.cta-frei { gap: 0.6rem; }
.cta-frei::before { content: ""; flex: none; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #7ddf5a; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35); }
@media (prefers-reduced-motion: no-preference) { .cta-frei::before { animation: blink 2s ease-in-out infinite; } }

.inline-form { display: contents; }

/* Nach der Überschrift (legend) beginnt der Inhalt immer in einer neuen Zeile, auch wenn versteckte Felder davor stehen */
.form legend ~ label, .form legend ~ fieldset, .form legend ~ p, .form legend ~ div { clear: both; }


/* ---------- Logo auf größeren Bildschirmen deutlich größer ---------- */
@media (min-width: 48em) {
  .site-header img, .site-header--home img { height: clamp(7.5rem, 5.2rem + 5vw, 11rem); width: auto; }
  .site-header .wrap { padding: 1.2rem 1rem 2.1rem; }
  .site-header::before { height: clamp(3.4rem, 2.4rem + 2vw, 4.8rem); }
  .site-header::after { height: clamp(2rem, 1.4rem + 1.2vw, 2.9rem); }
}

/* Logo noch etwas größer am Desktop */
@media (min-width: 48em) {
  .site-header img, .site-header--home img { height: clamp(8.5rem, 5.6rem + 6.4vw, 14rem); }
  .site-header .wrap { padding: 1.3rem 1rem 2.3rem; }
  .site-header::before { height: clamp(3.8rem, 2.6rem + 2.6vw, 5.8rem); }
  .site-header::after { height: clamp(2.2rem, 1.5rem + 1.6vw, 3.4rem); }
}
