/* Loliki – Website zur App. Gestaltung: docs/DESIGN.md */

:root {
  /* Corporate Design */
  --primaer: #2c3e50;
  --sonnengelb: #fedb5f;
  --sonnengelb-hell: #fffdf0;
  --hintergrund-aufgehellt: #fffef8; /* 50 % Weiß auf #fffdf0 */
  --apfelrot: #e75d5d;
  --apfelrot-dunkel: #c44545; /* Fläche hinter weißer Schrift, 4,9:1 */
  --fokus: #2c3e50; /* Fokusring auf hellem Grund; Blau läge mit 2,4:1 unter 3:1 */
  --gruen: #80ac3d;
  --blau: #5aafcf;
  --lila: #8d75bf;
  --weiss: #fff;
  --weiss-50: rgba(255, 255, 255, .5);
  --schwarz-10: rgba(0, 0, 0, .1);

  /* Typografie */
  --sans: "Shantell Sans", "Comic Sans MS", system-ui, sans-serif;
  --h1: clamp(30px, 2.2vw + 20px, 46px);
  --h3: clamp(21px, 1.2vw + 16px, 30px);
  --h4: 26px;
  --h5: 22px;
  --teaser: 20px;
  --copy-m: 18px;

  /* Abstände, Radien, Effekte */
  --klein-8: 8px;
  --medium-24: 24px;
  --rand: clamp(20px, 6.35vw, 96px);
  --abschnitt: clamp(72px, 9vw, 140px);
  --kopf: 96px;
  --schatten: 6px 6px 0 var(--schwarz-10);

  /* Bewegung */
  --aus-quart: cubic-bezier(.25, 1, .5, 1);
  --federn: cubic-bezier(.34, 1.45, .64, 1); /* leichtes Überschwingen wie das Logo in der App */
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sonnengelb-hell);
  color: var(--primaer);
  font-family: var(--sans);
  font-variation-settings: "BNCE" 0, "INFM" 0, "SPAC" 0;
  font-size: var(--copy-m);
  line-height: normal;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: none; }
/* Das globale display:block oben würde sonst [hidden] aushebeln */
[hidden] { display: none !important; }
p, h1, h2, h3, ul { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; border-radius: 4px; }

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

/* Seite: Papierstruktur über die ganze Höhe, 40 % Deckkraft.
   overflow: clip statt hidden, sonst wird .page zum Scroll-Container und
   sticky sowie scroll-gebundene Animationen hängen an ihr statt am Fenster. */
.page {
  position: relative;
  max-width: 1512px;
  margin-inline: auto;
  overflow: clip;
  background: var(--sonnengelb-hell);
}
.page::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../assets/papier-kachel.webp") 0 0 / 1280px; /* gespiegelte Kachel, ohne Naht */
  opacity: .4;
  pointer-events: none;
}
.page > * { position: relative; }

/* Textstile */
.h1 { font-size: var(--h1); font-weight: 700; line-height: 1.15; text-wrap: balance; }
.h3 { font-size: var(--h3); font-weight: 600; }
.teaser { font-size: var(--teaser); font-weight: 500; line-height: 1.5; max-width: 60ch; }
.text { font-size: var(--copy-m); line-height: 1.6; max-width: 62ch; }

/* Button */
.btn {
  display: inline-flex; align-items: center; gap: var(--klein-8);
  height: 48px;
  padding: var(--klein-8) var(--medium-24);
  border: 1px solid var(--weiss);
  border-radius: 50px;
  background: var(--sonnengelb);
  color: var(--primaer);
  font: 600 var(--h5) / normal var(--sans);
  font-variation-settings: inherit;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  white-space: nowrap;
  filter: drop-shadow(var(--schatten));
  cursor: pointer;
  transition: transform .15s ease;
}
a.btn:hover, button.btn:hover { transform: translate(2px, 2px); }
a.btn:active, button.btn:active { transform: translate(4px, 4px); }
.btn:focus-visible, .site-footer a:focus-visible, .brand:focus-visible {
  outline: 3px solid var(--fokus); outline-offset: 3px;
}
.btn:disabled { opacity: .6; cursor: progress; }

/* ---------- Kopfzeile ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: var(--kopf);
  padding: 0 clamp(20px, 5.5vw, 84px) 0 clamp(20px, 5.09vw, 77px);
  background: var(--hintergrund-aufgehellt);
}
.brand { display: flex; align-items: center; gap: 21px; }
.brand__logo { width: auto; height: 50px; }
.brand__claim { font-size: var(--h5); font-weight: 500; line-height: 1.3; }

/* ---------- Start: Ladebildschirm der App ---------- */
.start {
  position: relative;
  container-type: size;
  height: clamp(620px, calc(100svh - var(--kopf)), 960px);
  overflow: hidden;
}

/* Maßstab wie in launch_screen.dart: Entwurf 1194 × 834, Ebenen in Originalgröße,
   unten an den Ecken verankert. --e ist ein Entwurfspixel. */
.start__szene {
  position: absolute; inset: 0;
  --e: clamp(.36px, min(100cqw / 1194, 100cqh / 834), 1.3px);
  pointer-events: none;
}
.ebene { position: absolute; bottom: 0; width: calc(var(--w) * var(--e)); height: auto; }
.ebene--links { left: 0; --von: -100% 0; --wx: calc(var(--tiefe) * -1%); }
.ebene--rechts { right: 0; --von: 100% 0; --wx: calc(var(--tiefe) * 1%); }
.ebene--unten { --von: 0 100%; --wx: 0%; }
.ebene { --wy: calc(var(--tiefe) * 1%); }

.welle--gelb   { --w: 1064; --tiefe: 3;  --verz: 300ms; }
.welle--orange { --w: 731;  --tiefe: 3;  --verz: 300ms; }
.welle--lila   { --w: 787;  --tiefe: 6;  --verz: 435ms; }
.welle--gruen  { --w: 659;  --tiefe: 6;  --verz: 435ms; }
.welle--blau   { --w: 877;  --tiefe: 10; --verz: 570ms; }
.welle--rot    { --w: 760;  --tiefe: 10; --verz: 570ms; }
.figur { --verz: 1150ms; }
.figur--astronaut { --w: 325; --tiefe: 14; bottom: calc(229 * var(--e)); }
.figur--tomate    { --w: 280; --tiefe: 14; bottom: calc(275 * var(--e)); }
.figur--krokodil  { --w: 365; --tiefe: 18; bottom: calc(83 * var(--e)); }
.figur--auto      { --w: 362; --tiefe: 22; left: calc(232 * var(--e)); }
.figur--kran      { --w: 412; --tiefe: 18; bottom: calc(38 * var(--e)); }
.figur--baum      { --w: 425; --tiefe: 22; right: calc(200 * var(--e)); }

.start__text {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 2.4cqh, 24px);
  padding: clamp(16px, 4cqh, 44px) var(--rand) 0;
  text-align: center;
}
.start__titel { display: flex; flex-direction: column; align-items: center; gap: clamp(8px, 1.6cqh, 16px); margin: 0; }
.start__logo { width: clamp(230px, min(32cqw, 42cqh), 440px); height: auto; }
.start__claim {
  max-width: 22ch;
  font-size: clamp(27px, 1.5vw + 17px, 42px); font-weight: 700; line-height: 1.12;
  text-wrap: balance;
}
.start__unterzeile { max-width: 32ch; font-size: var(--teaser); font-weight: 500; line-height: 1.4; text-wrap: balance; }

/* Einlauf: dieselbe Reihenfolge wie in der App, nur dichter getaktet.
   Ohne .intro (kein JS, reduzierte Bewegung, zweiter Besuch) gibt es nur das Endbild. */
@keyframes start-logo { from { translate: 0 -150%; } }
@keyframes start-rein { from { translate: var(--von); } }
@keyframes start-weichen { to { transform: translate(var(--wx), var(--wy)); } }

.intro .start__logo { animation: start-logo .75s var(--federn) .1s backwards; }
.intro .ebene { animation: start-rein .9s var(--aus-quart) var(--verz) backwards paused; }
.intro .figur { animation-duration: .6s; }
/* .los kommt, sobald die Bilder dekodiert sind (seite.js) oder nach 2,5 s */
.intro.los .ebene { animation-play-state: running; }

/* Beim Scrollen weichen die Ebenen je nach Tiefe auseinander */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .start { view-timeline: --start block; }
    .ebene {
      animation: start-weichen linear both;
      animation-timeline: --start;
      animation-range: exit 0% exit 100%;
    }
    .intro .ebene {
      animation: start-rein .9s var(--aus-quart) var(--verz) backwards, start-weichen linear both;
      animation-play-state: paused, running;
      animation-timeline: auto, --start;
      animation-range: normal, exit 0% exit 100%;
    }
    .intro .figur { animation-duration: .6s, auto; }
    .intro.los .ebene { animation-play-state: running; }
  }
}

/* ---------- Räume ---------- */
.raeume {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding: var(--abschnitt) var(--rand);
}
.raeume__text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.ki-hinweis { max-width: 46ch; font-size: 15px; line-height: 1.45; }
.ohne-umbruch { white-space: nowrap; }
.raeume__hinweis { display: none; font-size: var(--copy-m); font-weight: 600; }
.js .raeume__hinweis { display: block; }

/* unten Platz für den Zurück-Knopf, damit sein Erscheinen nichts verschiebt */
.raeume__geraet { position: relative; padding: 5% 6% calc(8% + 56px); }
.ipad { position: relative; aspect-ratio: 668.822 / 505.272; }
.ipad__screen { position: absolute; inset: 0; overflow: hidden; }
.screen { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ipad__frame {
  position: absolute; inset: -8.48% -6.09% -8.6% -5.93%;
  width: 112.02%; height: 117.08%;
  pointer-events: none;
}

/* Tippflächen liegen genau über den Räumen im Screenshot (2000 × 1500) */
.tippflaeche {
  position: absolute; display: none;
  min-width: 44px; min-height: 44px;
  padding: 0; border: 0; border-radius: 22px;
  background: transparent; color: transparent; font-size: 1px; overflow: hidden;
  cursor: pointer;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.tippflaeche:hover { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .8); }
.tippflaeche:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
.tippflaeche--bauecke { left: 63.2%; top: 26.7%; width: 34.8%; height: 24%; }
.tippflaeche--basteltisch { left: 70.5%; top: 53.3%; width: 27.7%; height: 35.3%; }
.tippflaeche--fertig { left: 89%; top: 5.6%; width: 8.6%; height: 10%; border-radius: 50%; }
.tippflaeche--garten { left: 2%; top: 27%; width: 32.5%; height: 30%; }
.tippflaeche--brotzeit { left: 36%; top: 27.5%; width: 24.5%; height: 32%; }
.tippflaeche--kuschelecke { left: 19.8%; top: 59.5%; width: 30%; height: 29%; }
.js [data-raum="auswahl"] .tippflaeche:not(.tippflaeche--fertig),
.js .ipad:not([data-raum="auswahl"]) .tippflaeche--fertig { display: block; }

.raeume__hand {
  position: absolute; left: 0; top: 0;
  width: 15%; height: auto;
  opacity: 0;
  transform-origin: 55% 100%;
  pointer-events: none;
  filter: drop-shadow(var(--schatten));
}
.raeume__zurueck {
  position: absolute; left: 50%; bottom: 0; translate: -50% 0;
  min-height: 44px; padding: 8px 16px;
  border: 0; background: none;
  color: var(--primaer); font: 600 var(--copy-m) / 1.2 var(--sans);
  text-decoration: underline; text-underline-offset: 4px;
  cursor: pointer;
}
.raeume__zurueck::before { content: "← "; }
.raeume__zurueck:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; border-radius: 8px; }

/* ---------- Stufen ---------- */
.stufen { padding: var(--abschnitt) var(--rand); background: var(--hintergrund-aufgehellt); }
.stufen__buehne {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: center;
  gap: clamp(32px, 5vw, 80px);
}
.stufen__text { display: flex; flex-direction: column; gap: 20px; }
.stufen__sprechdruck { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }

.stufen__weg {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 16 / 10;
  margin-top: 6%; /* Platz für Silbi über Säule 10 */
}
/* Säulen wie im Stufen-Screen der App: farbig, oben abgerundet, Ziffer oben in Weiß */
.saeule {
  position: absolute; left: calc(var(--x) * 1%); bottom: 0;
  translate: -50% 0;
  display: flex; justify-content: center;
  width: 9.2cqw; height: calc(var(--y) * 1%);
  padding-top: 1.4cqw;
  border: 2px solid rgba(255, 255, 255, .7); border-bottom: 0;
  border-radius: 1.2cqw 1.2cqw 0 0;
  background: var(--farbe);
  color: var(--weiss);
  font-size: clamp(14px, 3cqw, 30px); font-weight: 700; line-height: 1;
}
/* Ohne JS steht Silbi oben auf Stufe 10; seite.js setzt --sx/--sy auf die aktuelle Stufe */
.stufen__silbi {
  position: absolute;
  left: calc(var(--sx, 95) * 1%); bottom: calc(var(--sy, 83) * 1% - 1px);
  translate: -50% 0;
  width: max(13cqw, 58px); height: auto;
  filter: drop-shadow(4px 4px 0 var(--schwarz-10));
}

/* ---------- Mehr als eine Kinder-App ---------- */
.mehr {
  display: flex; flex-direction: column; align-items: center; gap: clamp(32px, 4vw, 56px);
  padding: var(--abschnitt) var(--rand);
}
.mehr__kopf { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.mehr__spalten {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px);
  max-width: 1200px;
}
/* Farbbalken wie die Säulen der Treppe */
.mehr__spalten p { padding-top: 18px; border-top: 6px solid var(--gruen); }
.mehr__spalten p:nth-child(2) { border-color: var(--blau); }
.mehr__spalten p:nth-child(3) { border-color: var(--lila); }

/* ---------- Für Euch Eltern ---------- */
.eltern {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center;
  gap: clamp(40px, 6vw, 96px);
  padding: var(--abschnitt) var(--rand);
  background: var(--hintergrund-aufgehellt);
}
.eltern__kopf { display: flex; flex-direction: column; gap: 20px; }
.eltern__silbi { width: clamp(110px, 12vw, 170px); height: auto; margin-top: 8px; align-self: flex-end; }
.eltern__schluss { grid-column: 1 / -1; justify-self: center; font-size: var(--h3); font-weight: 600; }

/* Elterninfo: Nachbau des Info-Screens der App (graublauer Grund, gelber Zettel, Sprachwahl) */
.elterninfo { grid-column: 1 / -1; justify-self: center; width: min(100%, 860px); margin: 0; }
.elterninfo__unterschrift { margin-bottom: 14px; font-size: var(--copy-m); font-weight: 600; text-align: center; }
.elterninfo__bildschirm {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  padding: clamp(20px, 4vw, 48px);
  border: clamp(8px, 1.2vw, 14px) solid #1f2a36;
  border-radius: clamp(20px, 3vw, 36px);
  background: #616e7c;
  box-shadow: var(--schatten);
}
.elterninfo__zettel {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 4px 4px 48px 4px;
  background: var(--sonnengelb);
  font-size: var(--copy-m); line-height: 1.55;
}
.elterninfo__zettel::after {
  content: ""; position: absolute; right: 0; bottom: 0;
  width: 48px; height: 48px;
  background: url("../assets/note-corner.webp") center / contain no-repeat;
}
.elterninfo__zettel p + p { margin-top: 8px; }
.elterninfo__zettel p:last-child {
  /* läuft aus wie der scrollbare Text in der App */
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
  mask-image: linear-gradient(#000 40%, transparent);
}
.elterninfo__kopf { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.elterninfo__titel { margin: 0; font-size: var(--h3); font-weight: 700; line-height: 1.25; }
.elterninfo__hoeren {
  display: inline-flex; flex: none; align-items: center; gap: 8px;
  padding: 8px 14px 8px 8px;
  border-radius: 40px;
  background: var(--primaer); color: var(--weiss);
  font-size: 15px; font-weight: 600;
}
.elterninfo__hoeren img { width: 24px; height: 24px; }
.elterninfo__sprachen { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; }
.elterninfo__sprachen li {
  padding: 6px 16px;
  border-radius: 40px;
  background: var(--hintergrund-aufgehellt);
  font-size: 16px; font-weight: 600;
}
.elterninfo__sprachen .ist-aktiv { background: var(--sonnengelb); }

.eltern__listentitel { margin-bottom: 24px; }
.notes { display: flex; flex-direction: column; gap: 22px; list-style: none; }
.note {
  position: relative;
  display: flex; align-items: center;
  min-height: 80px;
  padding: 18px 64px 18px 28px;
  border: 2px solid var(--weiss-50);
  border-radius: 5px 5px 50px 5px;
  background: var(--sonnengelb);
  box-shadow: var(--schatten);
  font-size: clamp(19px, .8vw + 14px, 25px); font-weight: 600; line-height: 1.3;
}
/* leicht versetzt und schräg wie angepinnte Zettel */
.note:nth-child(odd) { rotate: -.8deg; }
.note:nth-child(even) { rotate: .6deg; margin-left: 6%; }
.note:nth-child(3) { margin-left: 2%; }
.note::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  background: url("../assets/zettel-textur.webp") center / cover;
  opacity: .3;
}
.note::after {
  content: ""; position: absolute; right: -2px; bottom: -2px;
  width: 60px; height: 60px;
  background: url("../assets/note-corner.webp") center / contain no-repeat;
}
.note > span:first-child { position: relative; }
.note__abzeichen {
  /* obere rechte Ecke; ragt nur in die Lücke zum Zettel darüber (gap 22px) */
  position: absolute; right: -14px; top: -8px;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--primaer);
  rotate: 10deg;
  box-shadow: var(--schatten);
}

/* ---------- Für Familien ---------- */
.familien {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center;
  gap: clamp(40px, 6vw, 96px);
  padding: var(--abschnitt) var(--rand);
}
.familien__text { display: flex; flex-direction: column; gap: 20px; }
.wichtig {
  display: flex; flex-direction: column; gap: 12px;
  padding: clamp(24px, 3vw, 40px);
  border: 2px solid var(--primaer);
  border-radius: 30px;
  background: var(--hintergrund-aufgehellt);
  box-shadow: var(--schatten);
}

/* ---------- Dunkles Band: Vormerken ---------- */
.band {
  display: flex; flex-direction: column; align-items: center;
  padding: 80px var(--rand);
  background: var(--primaer);
  color: var(--sonnengelb-hell);
  text-align: center;
}
.band__sub { max-width: 834px; color: var(--hintergrund-aufgehellt); }
.band { --fokus: var(--sonnengelb); }

.vormerken { position: relative; padding-top: 96px; scroll-margin-top: 40px; }
/* Silbi schaut über die Kante: die Hülle schneidet ihn an der Oberkante des Bands ab */
.vormerken__guck {
  position: absolute; bottom: 100%; right: clamp(16px, 12vw, 200px);
  width: clamp(110px, 11vw, 160px); height: clamp(64px, 6.4vw, 94px);
  overflow: hidden;
  pointer-events: none;
}
.vormerken__guck img { width: 100%; height: auto; }

/* ---------- Vormerken ---------- */
.signup { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 979px; }
.signup .h1 { color: var(--sonnengelb); margin-bottom: 20px; }
.signup .band__sub { margin-bottom: 12px; }
.signup__info { max-width: 52ch; margin-bottom: 39px; font-size: var(--copy-m); line-height: 1.45; }
.signup__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px;
  width: 100%; max-width: 834px;
  text-align: left;
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--copy-m); font-weight: 600; color: var(--hintergrund-aufgehellt); }
.field input {
  width: 100%; height: 64px;
  padding: 0 24px;
  border: 5px solid var(--hintergrund-aufgehellt);
  border-radius: 22px;
  background-color: var(--hintergrund-aufgehellt);
  color: var(--primaer);
  font: 400 var(--copy-m) / normal var(--sans);
  font-variation-settings: inherit;
}
.field input:focus { outline: none; border-color: var(--sonnengelb); }
.field input:focus-visible { outline: 3px solid var(--sonnengelb); outline-offset: 3px; }

.consent {
  display: flex; align-items: flex-start; gap: 14px;
  margin-top: 8px;
  color: var(--hintergrund-aufgehellt);
  font-size: var(--copy-m); line-height: 1.45;
  cursor: pointer;
}
.consent input {
  flex: none; width: 28px; height: 28px; margin: 0;
  accent-color: var(--sonnengelb);
  cursor: pointer;
}
.consent input:focus-visible { outline: 3px solid var(--sonnengelb); outline-offset: 3px; }
.consent a { color: var(--sonnengelb); text-decoration: underline; text-underline-offset: 3px; }

.signup__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup__error {
  width: 100%; max-width: 834px; margin-bottom: 24px;
  padding: 16px 24px;
  border-radius: 22px;
  background: var(--apfelrot-dunkel); color: var(--weiss);
  font-weight: 600; text-align: left;
}
.signup__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 100%; max-width: 834px; margin-top: 39px;
}
.signup__hint { color: var(--hintergrund-aufgehellt); font-size: 16px; }

/* ---------- Unterseiten (Datenschutz, Impressum, Kontakt, Danke) ---------- */
.subpage { padding: 80px var(--rand); }
.subpage__inner {
  max-width: 1022px; margin-inline: auto;
  padding: clamp(24px, 4vw, 56px);
  border: 5px solid var(--hintergrund-aufgehellt);
  border-radius: 30px;
  background: var(--hintergrund-aufgehellt);
  filter: drop-shadow(var(--schatten));
}
.subpage h1 { margin-bottom: 28px; }
.subpage h2 { margin: 39px 0 12px; }
.subpage__inner { overflow-wrap: break-word; } /* lange Links in der Datenschutzerklärung */
.subpage p { font-size: var(--teaser); line-height: 1.5; }
.subpage ul { margin: 12px 0; padding-left: 1.2em; font-size: var(--teaser); line-height: 1.5; }
.subpage li + li { margin-top: 6px; }
.subpage p + p { margin-top: 12px; }
.subpage .btn { margin-top: 39px; }
.notice {
  padding: 16px 24px;
  border-radius: 22px;
  background: var(--apfelrot-dunkel); color: var(--weiss);
}
.notice a { text-decoration: underline; text-underline-offset: 3px; }
/* Hilfe: Fragen zum Aufklappen; Links unterstrichen, weil sie hier das Ziel sind */
.subpage--hilfe .subpage__inner a { text-decoration: underline; text-underline-offset: 3px; }
.faq { margin-top: 28px; border-top: 2px solid var(--schwarz-10); }
.faq details { border-bottom: 2px solid var(--schwarz-10); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 48px; padding: 16px 0;
  font-size: var(--teaser); font-weight: 600; line-height: 1.4;
  list-style: none; cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  font-size: 28px; font-weight: 500; line-height: 1;
  transition: transform .2s var(--aus-quart);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; }
.faq details > :last-child { margin-bottom: 20px; }
.danke__silbi { width: clamp(140px, 18vw, 220px); height: auto; margin: 0 auto 24px; }

/* ---------- Fußzeile ---------- */
.site-footer {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 20px 80px;
  padding: 20px var(--rand);
  background: var(--sonnengelb);
}
.site-footer__copy { width: 303px; }
.site-footer__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 53px; }
.site-footer__nav a {
  padding: 10px;
  font-size: var(--h5); font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase; white-space: nowrap;
}
.site-footer__nav a:hover { text-decoration: underline; }
.site-footer__hinweis { flex-basis: 100%; font-size: 15px; line-height: 1.4; text-align: center; }

/* ---------- Kleinere Bildschirme ---------- */
@media (max-width: 900px) {
  :root { --h5: 18px; --teaser: 18px; --copy-m: 17px; --kopf: 76px; }
  .brand__logo { height: 40px; }
  .brand__claim { display: none; }
  .band { padding-block: 56px; }
  .vormerken { padding-top: 72px; }
  .raeume, .stufen__buehne, .eltern, .mehr__spalten, .familien { grid-template-columns: minmax(0, 1fr); }
  .raeume__geraet { padding-inline: 4%; }
  .stufen__weg { aspect-ratio: 4 / 3; margin-top: 8%; }
  .eltern__silbi { display: none; }
  .notes { gap: 24px; }
  .note { min-height: 80px; padding: 20px 48px 20px 24px; border-bottom-right-radius: 34px; }
  .note:nth-child(n) { margin-left: 0; }
  .note::after { width: 40px; height: 40px; }
  .site-footer { flex-direction: column; text-align: center; }
  .site-footer__copy { width: auto; }
  .site-footer__nav { justify-content: center; gap: 0 20px; }
}
@media (max-width: 560px) {
  /* Hochformat: Szene größer als der App-Maßstab und unter dem Text statt dahinter */
  .start { --e-m: calc(100vw / 880); container-type: inline-size; height: auto; }
  .start__szene { --e: var(--e-m); }
  /* schmaler Bildschirm: Auto und Baum rücken auseinander, sonst verdeckt der Baum das Auto */
  .figur--auto { left: calc(130 * var(--e)); }
  .figur--baum { right: calc(30 * var(--e)); }
  .start__text { gap: 18px; padding: 28px var(--rand) calc(650 * var(--e-m)); }
  .start__logo { width: min(68vw, 290px); }
  /* Der Knopf passt nicht neben das Logo; der gleiche Knopf steht direkt darunter im Hero */
  .site-header .btn { display: none; }
  .brand__logo { height: 38px; }
  .signup__grid { grid-template-columns: 1fr; }
  .signup__foot { flex-direction: column-reverse; align-items: stretch; }
  .signup__foot .btn { justify-content: center; }
  .subpage { padding-block: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .tippflaeche, .faq summary::after { transition: none; }
}
