/* Großtagespflege Rasselbande
   Klar und ruhig, aber kinderfreundlich: viel Weiß bzw. Dunkel, eine Akzentfarbe für
   Aktionen (Grün aus dem Raupenkopf), der Name in Regenbogenfarben und zarte
   Regenbogen-Pastelltöne als Begleiter. Hell- und Dunkelmodus über data-thema am <html>. */

@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

/* Farben: helles Design */
:root {
  color-scheme: light;

  --hintergrund: #fff;
  --flaeche: #f5f5f7;
  --flaeche-tief: #e8e8ed;
  --flaeche-tief-hover: #dcdce1;
  --karte: #fff;
  --linie: #d2d2d7;
  --linie-zart: #e5e5ea;
  --feldrand: #86868b;
  --text: #1d1d1f;
  --text-mittel: #424245;
  --text-weich: #6e6e73;

  --akzent: #277a34;
  --akzent-hover: #1e6429;
  --akzent-text: #277a34;
  --auf-akzent: #fff;
  --akzent-hauch: #e9f3eb;
  --fokus: rgba(39, 122, 52, 0.45);
  --auswahl: #cfe5d3;

  --kopf-hintergrund: rgba(255, 255, 255, 0.8);
  --kopf-rand: rgba(0, 0, 0, 0.07);
  --menue-hintergrund: rgba(255, 255, 255, 0.96);
  --schatten-karte: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.06);
  --icon-kreis: #fff;
  --markierung: #fff3b0;

  /* Regenbogen: kräftig für Schrift und Symbole, zart für Flächen */
  --rb-1: #e5484d;
  --rb-2: #f76b15;
  --rb-3: #d99b00;
  --rb-4: #2f9e5b;
  --rb-5: #0d74ce;
  --rb-6: #6e56cf;
  --rb-7: #d6409f;
  --rb-1-hauch: #fdecec;
  --rb-2-hauch: #fff0e5;
  --rb-3-hauch: #fff6d6;
  --rb-4-hauch: #e7f6ee;
  --rb-5-hauch: #e6f1fc;
  --rb-6-hauch: #f0ecfb;
  --regenbogen: linear-gradient(90deg, #e5484d 0%, #f76b15 17%, #e9a800 33%, #2f9e5b 50%, #0d74ce 67%, #6e56cf 83%, #d6409f 100%);

  --schrift: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --groesse-hero: clamp(3.25rem, 15vw, 8rem);
  --groesse-h2: clamp(2.1rem, 4.5vw, 3.5rem);
  --groesse-gross: clamp(1.25rem, 2.1vw, 1.75rem);
  --groesse-text: 1.125rem;
  --groesse-klein: 0.9375rem;

  --rand: clamp(1.25rem, 4vw, 2.5rem);
  --breite: 72rem;
  --seitenrand: max(var(--rand), calc((100% - var(--breite)) / 2));
  --abschnitt: clamp(5rem, 11vw, 8.5rem);
  --rund: 1.375rem;
  --rund-gross: 1.75rem;
  --tippflaeche: 2.75rem;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-schublade: cubic-bezier(0.32, 0.72, 0, 1);
  --t-press: 140ms;
  --t-hover: 200ms;

  /* Untere Kante der Tasten und Karten (Anleihe bei Duolingo) */
  --akzent-kante: #1a5824;
  --kante: #d2d2d7;
}

/* Farben: dunkles Design (hellere, entsättigte Töne statt umgekehrter Farben) */
:root[data-thema="dunkel"] {
  color-scheme: dark;

  --hintergrund: #0f0f11;
  --flaeche: #18181b;
  --flaeche-tief: #2a2a2e;
  --flaeche-tief-hover: #36363b;
  --karte: #1f1f23;
  --linie: #3a3a3f;
  --linie-zart: #2c2c31;
  --feldrand: #8e8e93;
  --text: #f5f5f7;
  --text-mittel: #d1d1d6;
  --text-weich: #a1a1a6;

  --akzent: #4cc364;
  --akzent-hover: #63d47a;
  --akzent-text: #6fd585;
  --auf-akzent: #052e10;
  --akzent-hauch: #16301d;
  --fokus: rgba(111, 213, 133, 0.55);
  --auswahl: #245a30;

  --kopf-hintergrund: rgba(15, 15, 17, 0.76);
  --kopf-rand: rgba(255, 255, 255, 0.08);
  --menue-hintergrund: rgba(24, 24, 27, 0.97);
  --schatten-karte: 0 0 0 1px rgba(255, 255, 255, 0.06);
  --icon-kreis: rgba(255, 255, 255, 0.08);
  --markierung: #5c4d00;

  --rb-1: #ff7a7f;
  --rb-2: #ff9f5a;
  --rb-3: #ffd54a;
  --rb-4: #5fd393;
  --rb-5: #5cb3ff;
  --rb-6: #a594ff;
  --rb-7: #ff7cc8;
  --rb-1-hauch: #34191c;
  --rb-2-hauch: #352216;
  --rb-3-hauch: #332b12;
  --rb-4-hauch: #152c22;
  --rb-5-hauch: #142739;
  --rb-6-hauch: #261f3b;
  --regenbogen: linear-gradient(90deg, #ff7a7f 0%, #ff9f5a 17%, #ffd54a 33%, #5fd393 50%, #5cb3ff 67%, #a594ff 83%, #ff7cc8 100%);

  --akzent-kante: #2a8a3e;
  --kante: #3a3a3f;
}

/* Grundlagen */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  background: var(--hintergrund);
  color: var(--text);
  font-family: var(--schrift);
  font-size: var(--groesse-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1, h2, h3, p, figure, dl, dd {
  margin: 0;
}

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.06;
  text-wrap: balance;
}

h2 {
  font-size: var(--groesse-h2);
}

h3 {
  font-size: var(--groesse-gross);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

p, li, dd {
  text-wrap: pretty;
}

a {
  color: var(--akzent-text);
  text-decoration: none;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

::selection {
  background: var(--auswahl);
  color: var(--text);
}

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

.symbole {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}

.sprung {
  position: absolute;
  left: var(--rand);
  top: -5rem;
  z-index: 50;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--hintergrund);
  font-weight: 700;
}

.sprung:focus {
  top: 1rem;
}

.huelle {
  padding-inline: var(--seitenrand);
}

/* Wörter, die nicht am Bindestrich umbrechen sollen */
.am-stueck {
  white-space: nowrap;
}

section {
  padding-block: var(--abschnitt);
}

.flaeche {
  background: var(--flaeche);
}

.kopf-bereich {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.unterzeile {
  max-width: 38ch;
  margin-top: 1rem;
  color: var(--text-weich);
  font-size: var(--groesse-gross);
  font-weight: 600;
  line-height: 1.38;
}

.zitat {
  max-width: 38ch;
  margin-top: 1rem;
}

.zitat blockquote {
  margin: 0;
  color: var(--text-weich);
  font-size: var(--groesse-gross);
  font-weight: 600;
  line-height: 1.38;
}

.zitat figcaption {
  margin-top: 0.6rem;
  color: var(--text-weich);
  font-size: var(--groesse-klein);
}

/* Der Name: jeder Buchstabe in seiner Regenbogenfarbe (Farbton --h, Helligkeit --l, Sättigung --c).
   --n ist die Position für das versetzte Einblenden und die Welle. */
.wortmarke {
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.wortmarke .b {
  display: inline-block;
  color: oklch(var(--l, 0.64) var(--c, 0.19) var(--h, 25));
}

.wortmarke .b:nth-child(1) { --n: 0; --h: 25; }
.wortmarke .b:nth-child(2) { --n: 1; --h: 48; --l: 0.68; }
.wortmarke .b:nth-child(3) { --n: 2; --h: 68; --l: 0.74; --c: 0.17; }
.wortmarke .b:nth-child(4) { --n: 3; --h: 92; --l: 0.79; --c: 0.16; }
.wortmarke .b:nth-child(5) { --n: 4; --h: 138; --l: 0.68; --c: 0.18; }
.wortmarke .b:nth-child(6) { --n: 5; --h: 165; --l: 0.66; --c: 0.14; }
.wortmarke .b:nth-child(7) { --n: 6; --h: 218; --l: 0.66; --c: 0.15; }
.wortmarke .b:nth-child(8) { --n: 7; --h: 256; --l: 0.58; --c: 0.19; }
.wortmarke .b:nth-child(9) { --n: 8; --h: 286; --l: 0.56; --c: 0.2; }
.wortmarke .b:nth-child(10) { --n: 9; --h: 316; --l: 0.6; --c: 0.2; }
.wortmarke .b:nth-child(11) { --n: 10; --h: 350; --l: 0.64; --c: 0.2; }

:root[data-thema="dunkel"] .wortmarke .b {
  color: oklch(min(calc(var(--l, 0.64) + 0.12), 0.9) calc(var(--c, 0.19) * 0.9) var(--h, 25));
}

/* Groß im Startbereich: weiche Tiefe wie bei Knetbuchstaben */
.wortmarke--gross .b {
  text-shadow:
    0 0.05em 0 oklch(calc(var(--l, 0.64) - 0.2) var(--c, 0.19) var(--h, 25)),
    0 0.16em 0.3em rgb(0 0 0 / 0.12);
}

:root[data-thema="dunkel"] .wortmarke--gross .b {
  text-shadow:
    0 0.05em 0 oklch(calc(var(--l, 0.64) - 0.1) var(--c, 0.19) var(--h, 25)),
    0 0.18em 0.35em rgb(0 0 0 / 0.55);
}

@media (forced-colors: active) {
  .wortmarke .b {
    color: CanvasText;
    text-shadow: none;
  }
}

/* Knöpfe und Links */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.875rem;
  padding: 0.7rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--akzent);
  color: var(--auf-akzent);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}

.knopf:active {
  transform: scale(0.97);
}

.knopf--klein {
  min-height: var(--tippflaeche);
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
}

.knopf--hell {
  background: var(--flaeche-tief);
  color: var(--text);
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
}

/* kleiner Pfeil nach rechts, gezeichnet statt Schriftzeichen */
.textlink::after {
  content: "";
  width: 0.42em;
  height: 0.42em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

@media (hover: hover) and (pointer: fine) {
  .knopf:hover {
    background: var(--akzent-hover);
  }

  .knopf--hell:hover {
    background: var(--flaeche-tief-hover);
  }

  .textlink:hover,
  .nav__liste a:hover,
  .fuss__links a:hover,
  .kontakt a:hover,
  .fragen__kopf a:hover {
    text-decoration: underline;
  }
}

/* Kopfzeile: durchscheinend, der Inhalt läuft darunter durch */

.kopfzeile {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.75rem;
  padding-inline: var(--seitenrand);
  border-bottom: 1px solid var(--kopf-rand);
  background: var(--kopf-hintergrund);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.marke {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--tippflaeche);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.marke__kopf {
  width: 1.9rem;
  height: 1.9rem;
}

.nav {
  margin-left: auto;
}

.nav__knopf {
  min-height: var(--tippflaeche);
  padding: 0.35rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--flaeche-tief);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}

.nav__knopf:active {
  transform: scale(0.96);
}

.nav__liste {
  display: none;
}

.nav__liste a {
  display: block;
  color: var(--text);
}

.nav__liste.is-offen {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  padding: 0.25rem var(--rand) 1rem;
  border-bottom: 1px solid var(--kopf-rand);
  background: var(--menue-hintergrund);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.nav__liste.is-offen li + li {
  border-top: 1px solid var(--linie-zart);
}

.nav__liste.is-offen a {
  padding: 0.85rem 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.kopfzeile__aktionen {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kopfzeile__aktion {
  display: none;
}

.kopfzeile__zurueck {
  font-size: 0.9375rem;
}

/* Hell/Dunkel-Schalter: zeigt den Mond im hellen und die Sonne im dunklen Design */
.thema-knopf {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--tippflaeche);
  height: var(--tippflaeche);
  border: 0;
  border-radius: 50%;
  background: var(--flaeche-tief);
  color: var(--text);
  cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}

.thema-knopf:active {
  transform: scale(0.94);
}

.thema-knopf .icon {
  grid-area: 1 / 1;
  transition: opacity 250ms ease, transform 400ms var(--ease-out);
}

.thema-knopf .icon--sonne,
:root[data-thema="dunkel"] .thema-knopf .icon--mond {
  opacity: 0;
  transform: rotate(-70deg) scale(0.6);
}

:root[data-thema="dunkel"] .thema-knopf .icon--sonne {
  opacity: 1;
  transform: none;
}

html:not(.js) .thema-knopf {
  display: none;
}

html:not(.js) .nav__knopf {
  display: none;
}

html:not(.js) .nav__liste {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
  .thema-knopf:hover,
  .nav__knopf:hover {
    background: var(--flaeche-tief-hover);
  }
}

@media (min-width: 900px) {
  .nav {
    margin-inline: auto;
  }

  .nav__knopf {
    display: none;
  }

  .nav__liste,
  .nav__liste.is-offen {
    position: static;
    display: flex;
    flex-direction: row;
    gap: clamp(1.25rem, 2.4vw, 2rem);
    padding: 0;
    border: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .nav__liste.is-offen li + li {
    border: 0;
  }

  .nav__liste a,
  .nav__liste.is-offen a {
    padding: 0.3rem 0;
    color: var(--text-mittel);
    font-size: 0.9375rem;
    font-weight: 600;
  }

  .kopfzeile__aktion {
    display: inline-flex;
  }
}

/* Der Name in der Kopfzeile darf nicht schrumpfen; auf schmalen Handys wird alles etwas kompakter,
   damit Name, Menü, EN und Hell/Dunkel nebeneinander passen */
.marke {
  flex-shrink: 0;
}

@media (max-width: 420px) {
  .kopfzeile {
    gap: 0.5rem;
  }

  .marke {
    gap: 0.4rem;
    font-size: 1.1rem;
  }

  .marke__kopf {
    width: 1.6rem;
    height: 1.6rem;
  }

  .nav__knopf {
    padding-inline: 0.75rem;
  }

  .kopfzeile__aktionen {
    gap: 0.35rem;
  }
}

/* sehr kleine Handys (z. B. iPhone SE der 1. Generation): Kopf neben dem Namen weglassen */
@media (max-width: 340px) {
  .kopfzeile .marke__kopf {
    display: none;
  }
}

/* Menüpunkte und Kopfzeilen-Knopf nie umbrechen; bei mittlerer Breite reicht der Platz
   nicht für alles, dann entfällt der WhatsApp-Knopf oben (er steht groß im Startbereich) */
.nav__liste a,
.kopfzeile__aktion {
  white-space: nowrap;
}

@media (min-width: 900px) and (max-width: 1179px) {
  .kopfzeile__aktion {
    display: none;
  }
}

/* Start */

.hero {
  padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(4rem, 9vw, 6.5rem);
  text-align: center;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 52rem;
  margin-inline: auto;
  padding-inline: var(--rand);
}

.hero h1 {
  padding-bottom: 0.12em;
  font-size: var(--groesse-hero);
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero__satz {
  max-width: 36ch;
  text-wrap: balance;
  font-size: var(--groesse-gross);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.015em;
}

.hero__info {
  max-width: 42ch;
  color: var(--text-weich);
}

.hero__aktion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.75rem;
  margin-top: 0.75rem;
}

/* Vertrauen auf einen Blick: Ausbildung, Erste Hilfe, Erfahrung */
.vertrauen {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.vertrauen li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem 0.4rem 0.6rem;
  border-radius: 999px;
  background: var(--flaeche);
  color: var(--text-mittel);
  font-size: 0.875rem;
  font-weight: 700;
}

.vertrauen .icon {
  width: 1rem;
  height: 1rem;
  color: var(--akzent-text);
}

.hero__bild {
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
  padding-inline: var(--seitenrand);
}

.hero__bild img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: var(--rund-gross);
}

@media (max-width: 700px) {
  .hero__bild img {
    aspect-ratio: 4 / 3;
    border-radius: var(--rund);
  }
}

/* Die Raupe, das Markenzeichen: jedes Segment ist einer der 10 Plätze.
   Belegte Plätze sind bunt, freie Plätze hinten gestrichelt, vorne der Kopf aus dem Logo. */

.plaetze {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  color: var(--text-weich);
  font-size: var(--groesse-klein);
}

.plaetze strong {
  color: var(--text);
}

.raupe {
  --seg: 2.4rem;
  display: flex;
  flex: none;
  align-items: flex-end;
  padding-top: calc(var(--seg) * 0.55);
}

.seg {
  flex: none;
  width: calc(var(--seg) * var(--s, 0.9));
  aspect-ratio: 1;
  border: 2.5px solid #2b2522;
  border-radius: 50%;
  background: var(--farbe, transparent);
}

.seg + .seg {
  margin-left: calc(var(--seg) * -0.2);
}

.seg:nth-child(even) {
  translate: 0 -20%;
}

.seg--frei {
  border: 2.5px dashed var(--akzent-text);
  background: var(--hintergrund);
  transition: background-color 300ms ease, border-color 300ms ease;
}

.seg--frei.is-vorgemerkt {
  border-style: solid;
  border-color: #2b2522;
  background: var(--akzent-text);
}

.raupe__kopf {
  --kopf-strich: 4.4px;
  flex: none;
  width: calc(var(--seg) * 1.7);
  height: calc(var(--seg) * 1.7);
  margin-left: calc(var(--seg) * -0.42);
  margin-bottom: calc(var(--seg) * -0.06);
}

@media (max-width: 480px) {
  .raupe {
    --seg: 2.1rem;
  }
}

@media (hover: hover) and (pointer: fine) {
  .plaetze:hover strong {
    text-decoration: underline;
  }
}

/* In Kürze: zarte Regenbogen-Pastellkacheln mit Symbol */

.kurz__liste {
  display: grid;
  gap: 0.75rem;
}

.kurz__punkt {
  --ton: var(--rb-1);
  --ton-hauch: var(--rb-1-hauch);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: 1rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--rund);
  background: var(--ton-hauch);
}

.kurz__punkt:nth-child(2) { --ton: var(--rb-2); --ton-hauch: var(--rb-2-hauch); }
.kurz__punkt:nth-child(3) { --ton: var(--rb-3); --ton-hauch: var(--rb-3-hauch); }
.kurz__punkt:nth-child(4) { --ton: var(--rb-4); --ton-hauch: var(--rb-4-hauch); }
.kurz__punkt:nth-child(5) { --ton: var(--rb-5); --ton-hauch: var(--rb-5-hauch); }
.kurz__punkt:nth-child(6) { --ton: var(--rb-6); --ton-hauch: var(--rb-6-hauch); }

.kurz__symbol {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: var(--tippflaeche);
  height: var(--tippflaeche);
  border-radius: 50%;
  background: var(--icon-kreis);
  color: var(--ton);
}

.kurz__symbol .icon {
  width: 1.4rem;
  height: 1.4rem;
}

.kurz__wert {
  align-self: center;
  font-size: clamp(1.45rem, 2.8vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.kurz__text {
  grid-column: 2;
  margin-top: 0.35rem;
  color: var(--text-mittel);
  font-size: var(--groesse-klein);
  line-height: 1.45;
}

@media (min-width: 600px) {
  .kurz__liste {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
  }

  .kurz__punkt {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 12rem;
    padding: clamp(1.25rem, 2.6vw, 2rem);
  }

  .kurz__symbol {
    margin-bottom: 0.5rem;
  }

  .kurz__wert {
    align-self: auto;
  }

  .kurz__text {
    margin-top: 0;
  }
}

@media (min-width: 900px) {
  .kurz__liste {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

/* Räume */

.galerie {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.galerie__bild {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.galerie__bild a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--rund);
  background: var(--flaeche);
}

.galerie__bild img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}

.galerie figcaption {
  color: var(--text-weich);
  font-size: var(--groesse-klein);
  line-height: 1.4;
}

.g1 {
  grid-column: 1 / -1;
}

.g1 img {
  aspect-ratio: 1;
  object-position: 50% 60%;
}

.g6 img {
  object-position: 88% 50%;
}

.g7 img {
  object-position: 50% 30%;
}

.raeume__hinweis {
  max-width: 52ch;
  margin-top: 2rem;
  color: var(--text-weich);
  font-size: var(--groesse-klein);
}

@media (hover: hover) and (pointer: fine) {
  .galerie__bild a:hover img {
    transform: scale(1.03);
  }
}

@media (min-width: 900px) {
  .galerie {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
  }

  .g1 {
    grid-column: 1 / 8;
    grid-row: 1 / 3;
  }

  .g1 a {
    flex: 1;
  }

  .g1 img {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
  }

  .g2,
  .g3 {
    grid-column: 8 / 13;
  }

  .g2 img,
  .g3 img {
    aspect-ratio: 4 / 3;
  }

  .g3 img {
    object-position: 50% 70%;
  }

  .g4 { grid-column: 1 / 4; }
  .g5 { grid-column: 4 / 7; }
  .g6 { grid-column: 7 / 10; }
  .g7 { grid-column: 10 / 13; }
}

/* Über uns */

.ueber__raster {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.ueber__bild {
  order: 2;
}

.ueber__bild img {
  width: 100%;
  border-radius: var(--rund-gross);
}

.person {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--linie);
}

.person__rolle {
  margin-top: 0.15rem;
  color: var(--text-weich);
  font-weight: 600;
}

.person__text {
  max-width: 46ch;
  margin-top: 1rem;
  color: var(--text-weich);
}

.punkte {
  margin-top: 1rem;
}

.punkte li {
  position: relative;
  padding-left: 1.4rem;
}

.punkte li + li {
  margin-top: 0.5rem;
}

.punkte li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0.15rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--akzent-text);
}

@media (min-width: 900px) {
  .ueber__raster {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
  }

  .ueber__bild {
    order: 0;
  }
}

/* Pädagogik */

.paeda__bild {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.paeda__rahmen {
  overflow: hidden;
  border-radius: var(--rund-gross);
}

.paeda__rahmen img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: 50% 45%;
}

.paeda__bild figcaption {
  margin-top: 0.75rem;
  color: var(--text-weich);
  font-size: var(--groesse-klein);
}

.werte {
  display: grid;
  gap: clamp(2rem, 4vw, 2.75rem) clamp(2rem, 5vw, 4rem);
}

.werte p {
  max-width: 42ch;
  margin-top: 0.5rem;
  color: var(--text-weich);
}

@media (max-width: 700px) {
  .paeda__rahmen {
    border-radius: var(--rund);
  }

  .paeda__rahmen img {
    aspect-ratio: 4 / 3;
  }
}

@media (min-width: 760px) {
  .werte {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tagesablauf */

.tag__raster {
  display: grid;
  gap: clamp(1rem, 3vw, 2rem) clamp(2rem, 5vw, 4rem);
}

.tag__raster .kopf-bereich {
  margin-bottom: 0;
}

.ablauf {
  padding-inline: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--rund);
  background: var(--karte);
  box-shadow: var(--schatten-karte);
}

.ablauf li {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding-block: 1.1rem;
}

.ablauf li + li {
  border-top: 1px solid var(--linie-zart);
}

.ablauf__zeit {
  color: var(--akzent-text);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.ablauf__text {
  display: grid;
  gap: 0.1rem;
}

.ablauf__text strong {
  font-weight: 700;
}

.ablauf__text span {
  color: var(--text-weich);
  font-size: var(--groesse-klein);
}

@media (min-width: 900px) {
  .tag__raster {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .tag__raster .kopf-bereich {
    position: sticky;
    top: 6rem;
  }
}

/* Häufige Fragen */

.fragen__raster {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

.fragen__kopf p {
  max-width: 30ch;
  margin-top: 1rem;
  color: var(--text-weich);
}

.fragen__kopf a {
  font-weight: 700;
}

.fragen__liste {
  border-top: 1px solid var(--linie);
}

.frage {
  border-bottom: 1px solid var(--linie);
}

.frage summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--tippflaeche);
  padding-block: 1.35rem;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
  transition: color var(--t-hover) ease;
}

.frage summary::-webkit-details-marker {
  display: none;
}

/* Plus-Zeichen, im offenen Zustand zum Kreuz gedreht */
.frage summary::after {
  content: "";
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  background: currentColor;
  color: var(--text-weich);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 3v14M3 10h14' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 3v14M3 10h14' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 300ms var(--ease-out);
}

.frage[open] summary::after {
  transform: rotate(45deg);
}

.frage__antwort {
  max-width: 62ch;
  padding-bottom: 1.4rem;
  color: var(--text-weich);
}

.frage__antwort > * + * {
  margin-top: 0.75rem;
}

.frage__antwort ol {
  display: grid;
  gap: 0.45rem;
  padding-left: 1.5rem;
  list-style: decimal;
}

.frage__antwort li {
  padding-left: 0.2rem;
}

.frage__antwort li::marker {
  color: var(--akzent-text);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

@media (hover: hover) and (pointer: fine) {
  .frage summary:hover {
    color: var(--akzent-text);
  }
}

@media (min-width: 900px) {
  .fragen__raster {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: start;
  }

  .fragen__kopf {
    position: sticky;
    top: 6rem;
  }
}

/* Platz anfragen */

.anfrage__raster {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.kontakt {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

.kontakt dt {
  color: var(--text-weich);
  font-size: var(--groesse-klein);
  font-weight: 600;
}

.kontakt dd {
  margin-top: 0.1rem;
  font-weight: 600;
}

.kontakt a {
  font-weight: 700;
}

.anfrage__formular {
  display: grid;
  gap: 1.4rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--rund-gross);
  background: var(--karte);
  box-shadow: var(--schatten-karte);
}

.formular__plaetze {
  display: grid;
  gap: 0.6rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--linie-zart);
}

.formular__plaetze[hidden] {
  display: none;
}

.formular__plaetze .raupe {
  --seg: 1.9rem;
}

.formular__plaetze-text {
  color: var(--text-weich);
  font-size: var(--groesse-klein);
}

.formular__plaetze-text strong {
  color: var(--text);
}

.feld {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.feld label,
.feld legend {
  padding: 0;
  font-size: 1rem;
  font-weight: 700;
}

.feld legend {
  margin-bottom: 0.45rem;
}

.feld__hinweis {
  color: var(--text-weich);
  font-weight: 400;
}

.feld input[type="text"],
.feld textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--feldrand);
  border-radius: 0.75rem;
  background: var(--karte);
  color: var(--text);
  font: inherit;
  transition: border-color var(--t-hover) ease, box-shadow var(--t-hover) ease;
}

.feld textarea {
  resize: vertical;
}

.feld input::placeholder,
.feld textarea::placeholder {
  color: var(--text-weich);
}

.feld input:focus,
.feld textarea:focus {
  outline: none;
  border-color: var(--akzent-text);
  box-shadow: 0 0 0 4px var(--fokus);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  position: relative;
}

.chip input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.chip > span {
  display: inline-flex;
  align-items: center;
  min-height: var(--tippflaeche);
  padding: 0.35rem 1.1rem;
  border: 1px solid var(--feldrand);
  border-radius: 999px;
  background: var(--karte);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background-color var(--t-hover) ease, border-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}

.chip input:checked + span {
  border-color: var(--akzent);
  background: var(--akzent);
  color: var(--auf-akzent);
}

.chip input:focus-visible + span {
  outline: 3px solid var(--fokus);
  outline-offset: 2px;
}

.chip input:active + span {
  transform: scale(0.96);
}

.vorschau__titel {
  font-size: 1rem;
  font-weight: 700;
}

.vorschau__blase {
  margin-top: 0.45rem;
  padding: 0.9rem 1.1rem;
  border-radius: 1.1rem 1.1rem 1.1rem 0.3rem;
  background: var(--akzent-hauch);
  font-size: var(--groesse-klein);
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.formular__aktion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.5rem;
}

.formular__hinweis {
  color: var(--text-weich);
  font-size: 0.875rem;
  line-height: 1.45;
}

@media (min-width: 960px) {
  .anfrage__raster {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .anfrage__text {
    position: sticky;
    top: 6rem;
  }
}

/* Fußzeile */

.fuss {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--linie);
  background: var(--flaeche);
  color: var(--text-weich);
  font-size: var(--groesse-klein);
}

.fuss__raster {
  display: grid;
  gap: 1.25rem;
}

.fuss__marke {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.fuss__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}

.fuss__links a {
  display: inline-block;
  padding-block: 0.6rem;
  color: var(--text);
  font-weight: 600;
}

.fuss__klein {
  font-size: 0.8125rem;
}

@media (min-width: 760px) {
  .fuss__raster {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .fuss__marke,
  .fuss__klein {
    grid-column: 1 / -1;
  }
}

/* Leiste unten auf dem Handy */

.leiste {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem var(--rand) calc(0.6rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--kopf-rand);
  background: var(--kopf-hintergrund);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: transform 400ms var(--ease-schublade);
}

.leiste__knopf {
  flex: 1 1 auto;
  padding-inline: 1rem;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.leiste__knopf--anruf {
  flex: 0 0 auto;
  padding-inline: 1.1rem;
}

.js .leiste:not(.is-sichtbar) {
  transform: translateY(110%);
}

@media (max-width: 759px) {
  body {
    padding-bottom: 4.5rem;
  }
}

@media (min-width: 760px) {
  .leiste {
    display: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .kopfzeile,
  .nav__liste.is-offen,
  .leiste {
    background: var(--hintergrund);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* Anleihen bei Duolingo: Tasten mit fester Unterkante, die sich beim Tippen eindrücken,
   Karten wie aufgeklebte Sticker (2px Rand, unten dicker) und grüne Abschnitts-Überschriften.
   Name, Raupe und Regenbogen bleiben, wie sie sind. */

h2 {
  color: var(--akzent-text);
}

.knopf {
  border-radius: 0.875rem;
  box-shadow: 0 4px 0 var(--akzent-kante);
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 90ms ease-out, box-shadow 90ms ease-out, background-color var(--t-hover) ease;
}

.knopf:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--akzent-kante);
}

.knopf--klein {
  box-shadow: 0 3px 0 var(--akzent-kante);
  font-size: 0.8125rem;
}

.knopf--klein:active {
  transform: translateY(3px);
}

/* Zweite Taste: weiß mit Rand, wie die Kontur-Knöpfe bei Duolingo */
.knopf--rand,
.knopf--hell {
  border: 2px solid var(--kante);
  background: var(--karte);
  box-shadow: 0 4px 0 var(--kante);
  color: var(--akzent-text);
}

.knopf--rand:active,
.knopf--hell:active {
  box-shadow: 0 0 0 var(--kante);
}

@media (hover: hover) and (pointer: fine) {
  .knopf--rand:hover,
  .knopf--hell:hover {
    background: var(--flaeche);
  }
}

/* Karten wie Sticker */
.kurz__punkt {
  border: 2px solid color-mix(in srgb, var(--ton) 28%, transparent);
  border-bottom-width: 4px;
}

.ablauf,
.anfrage__formular {
  border: 2px solid var(--kante);
  border-bottom-width: 4px;
  box-shadow: none;
}

.vertrauen li {
  border: 2px solid var(--linie-zart);
  background: var(--karte);
}

/* Auswahl-Chips und Felder im Formular */
.chip > span {
  border: 2px solid var(--kante);
  border-bottom-width: 4px;
  border-radius: 0.875rem;
  font-weight: 700;
}

.chip input:checked + span {
  border-color: var(--akzent-text);
  background: var(--akzent-hauch);
  color: var(--akzent-text);
}

.chip input:active + span {
  transform: translateY(2px);
}

.feld input,
.feld textarea {
  border: 2px solid var(--kante);
  border-radius: 0.875rem;
  background: var(--flaeche);
}

/* Lange E-Mail-Adresse darf auf sehr schmalen Handys umbrechen, statt die Spalte zu verbreitern */
.anfrage__raster > * {
  min-width: 0;
}

.kontakt dd {
  overflow-wrap: anywhere;
}

/* Die Raupe blinzelt: Lider liegen über den Augen und klappen alle paar Sekunden kurz zu */
.lider > g {
  transform: scaleY(0);
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes blinzeln {
  0%, 93%, 100% { transform: scaleY(0); }
  95.5% { transform: scaleY(1); }
}

/* Freie Plätze in der Raupe oben leuchten ganz sanft */
@keyframes frei-atmen {
  0%, 100% { background-color: var(--hintergrund); }
  50% { background-color: color-mix(in srgb, var(--akzent-text) 22%, var(--hintergrund)); }
}

@media (prefers-reduced-motion: no-preference) {
  .lider > g {
    animation: blinzeln 5.5s ease-in-out infinite;
    animation-delay: inherit;
  }

  .js .hero .seg.seg--frei {
    animation: seg-auf 600ms var(--ease-out) both, frei-atmen 3.2s ease-in-out infinite;
    animation-delay: calc(var(--n, 0) * 55ms + 650ms), calc(var(--n, 0) * 200ms + 1.6s);
  }
}

/* 404-Seite: "Hier hat sich die Raupe verkrochen" */
.verkrochen {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1rem;
  min-height: 100dvh;
  padding: 3rem var(--rand);
  text-align: center;
}

.verkrochen__kopf {
  width: clamp(6rem, 22vw, 9rem);
  height: auto;
  margin-bottom: 0.5rem;
  overflow: visible;
}

.verkrochen h1 {
  max-width: 18ch;
  font-size: var(--groesse-h2);
  line-height: 1.1;
}

.verkrochen p {
  max-width: 40ch;
  color: var(--text-weich);
}

.verkrochen__aktion {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 0.75rem;
}

.verkrochen__englisch {
  margin-top: 1.5rem;
  font-size: var(--groesse-klein);
}

/* Kurze Bestätigung, z. B. "Nummer kopiert" */
.hinweis-toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--hintergrund);
  font-size: 0.9375rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translate(-50%, 0.5rem);
  transition: opacity 200ms ease, transform 300ms var(--ease-out);
  pointer-events: none;
}

.hinweis-toast.is-sichtbar {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Sprachumschalter DE/EN, gleiche Form wie der Hell/Dunkel-Schalter */
.sprache {
  display: grid;
  place-items: center;
  width: var(--tippflaeche);
  height: var(--tippflaeche);
  border-radius: 50%;
  background: var(--flaeche-tief);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}

.sprache:active {
  transform: scale(0.94);
}

@media (hover: hover) and (pointer: fine) {
  .sprache:hover {
    background: var(--flaeche-tief-hover);
    text-decoration: none;
  }
}

/* Bitte um eine Google-Bewertung */
.bewertung {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.bewertung__karte {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  max-width: 40rem;
  margin-inline: auto;
  padding: clamp(1.75rem, 5vw, 2.75rem);
  border: 2px solid color-mix(in srgb, var(--rb-3) 35%, transparent);
  border-bottom-width: 4px;
  border-radius: var(--rund-gross);
  background: var(--rb-3-hauch);
  text-align: center;
}

.bewertung__karte h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.25rem);
}

.bewertung__karte p {
  max-width: 34ch;
  color: var(--text-weich);
}

.bewertung__karte .knopf {
  margin-top: 0.4rem;
}

.bewertung__sterne {
  display: flex;
  gap: 0.2rem;
  color: var(--rb-3);
}

.bewertung__sterne .icon {
  width: 1.6rem;
  height: 1.6rem;
}

/* Karte bei "Platz anfragen": gezeichnete Vorschau, Google Maps erst nach Klick */

.karte {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.karte__flaeche {
  position: relative;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  min-height: 17rem;
  border: 2px solid var(--kante);
  border-bottom-width: 4px;
  border-radius: var(--rund-gross);
  background: color-mix(in srgb, var(--rb-4-hauch) 55%, var(--karte));
}

.karte__strassen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.karte__weg path {
  fill: none;
  stroke: var(--karte);
  stroke-linecap: round;
}

.karte__wiese {
  fill: color-mix(in srgb, var(--rb-4) 16%, var(--karte));
}

.karte__wasser {
  fill: color-mix(in srgb, var(--rb-5) 20%, var(--karte));
}

/* Stecknadel als Tropfen, die Spitze zeigt auf den Ort; darin der Raupenkopf */
.karte__nadel {
  --nadel: 4.25rem;
  position: absolute;
  left: 46%;
  top: 44%;
  display: grid;
  place-items: center;
  width: var(--nadel);
  height: var(--nadel);
  border: 3px solid var(--akzent-text);
  border-radius: 50% 50% 50% 0;
  background: var(--karte);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.16);
  transform: translate(-50%, -50%) rotate(-45deg);
}

.karte__nadel svg {
  width: 74%;
  height: 74%;
  transform: rotate(45deg);
}

/* ruhiger Ring an der Spitze der Nadel */
.karte__puls {
  position: absolute;
  left: 46%;
  top: calc(44% + 3rem);
  width: 3.5rem;
  height: 1.25rem;
  border: 2px solid var(--akzent-text);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
}

.karte__aktion {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  max-width: calc(100% - 2rem);
  padding: 0.85rem 1rem;
  border: 2px solid var(--kante);
  border-radius: var(--rund);
  background: var(--karte);
}

.karte__adresse {
  color: var(--text-mittel);
  font-size: var(--groesse-klein);
  line-height: 1.35;
}

.karte__flaeche iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.karte__hinweis {
  margin-top: 0.6rem;
  color: var(--text-weich);
  font-size: 0.8125rem;
}

@media (max-width: 700px) {
  .karte__flaeche {
    aspect-ratio: 4 / 5;
    border-radius: var(--rund);
  }

  .karte__nadel,
  .karte__puls {
    left: 50%;
  }

  .karte__nadel {
    top: 36%;
  }

  .karte__puls {
    top: calc(36% + 3rem);
  }

  .karte__aktion {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
    max-width: none;
  }
}

@keyframes nadel-landen {
  from { opacity: 0; transform: translate(-50%, calc(-50% - 2.5rem)) rotate(-45deg); }
  to { opacity: 1; transform: translate(-50%, -50%) rotate(-45deg); }
}

@keyframes karte-puls {
  0% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.35); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.7); }
}

@keyframes karte-auf {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Die Nadel landet sanft, sobald die Karte ins Bild kommt (ohne Nachfedern) */
  .js .karte .karte__nadel {
    opacity: 0;
  }

  .js .karte.is-in .karte__nadel {
    animation: nadel-landen 800ms var(--ease-out) 350ms both;
  }

  .js .karte.is-in .karte__puls {
    animation: karte-puls 2.6s ease-out 1.1s infinite;
  }

  .karte__flaeche iframe {
    animation: karte-auf 500ms ease-out both;
  }
}

/* Fotos vergrößert */

.lightbox {
  width: min(92vw, 70rem);
  max-width: none;
  max-height: 100dvh;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.lightbox__bild img {
  width: auto;
  max-width: 100%;
  max-height: 78dvh;
  margin-inline: auto;
  border-radius: 1rem;
}

.lightbox__text {
  margin-top: 0.85rem;
  color: #d1d1d6;
  font-size: var(--groesse-klein);
  text-align: center;
}

.lightbox__steuerung {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.lightbox__knopf {
  min-height: var(--tippflaeche);
  padding: 0.4rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}

.lightbox__knopf:active {
  transform: scale(0.96);
}

.lightbox__knopf--zu {
  background: #fff;
  color: #1d1d1f;
}

.lightbox :focus-visible {
  outline-color: rgba(255, 255, 255, 0.7);
}

@media (hover: hover) and (pointer: fine) {
  .lightbox__knopf:hover {
    background: rgba(255, 255, 255, 0.26);
  }

  .lightbox__knopf--zu:hover {
    background: #e8e8ed;
  }
}

/* Impressum und Datenschutz */

.rechtstext {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--abschnitt);
}

.rechtstext__inhalt {
  max-width: 44rem;
}

.rechtstext h1 {
  font-size: var(--groesse-h2);
}

.rechtstext h2 {
  margin-top: 2.5rem;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.rechtstext p,
.rechtstext ul {
  margin-top: 0.85rem;
}

.rechtstext ul {
  padding-left: 1.3rem;
  list-style: disc;
}

.rechtstext li + li {
  margin-top: 0.3rem;
}

.rechtstext mark {
  padding: 0 0.2em;
  background: var(--markierung);
  color: var(--text);
}

/* Bewegung: nur ruhige Einblendungen, ohne Federn und Wackeln.
   Nur bei erlaubter Bewegung und mit laufendem JavaScript; sonst ist alles sofort sichtbar. */

@keyframes einblenden {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes bild-einblenden {
  from { opacity: 0; transform: scale(1.03); }
  to { opacity: 1; transform: none; }
}

@keyframes aufklappen {
  from { opacity: 0; transform: translateY(-4px); }
}

@keyframes menue-auf {
  from { opacity: 0; transform: translateY(-6px); }
}

@keyframes hintergrund-auf {
  from { opacity: 0; }
}

@keyframes buchstabe-auf {
  from { opacity: 0; transform: translateY(0.3em) scale(0.94); }
  to { opacity: 1; transform: none; }
}

/* leise Welle: jeder Buchstabe hebt sich kurz an, versetzt nacheinander, dann lange Ruhe */
@keyframes buchstabe-welle {
  0%, 13%, 100% { transform: none; }
  6.5% { transform: translateY(-0.07em); }
}

/* Bewegung beim Scrollen (assets/js/bewegung.js mit GSAP). Die Klasse .bewegt kommt nur dazu,
   wenn das Skript läuft und am Gerät nicht "Bewegung reduzieren" eingestellt ist. */

/* Titelbild in voller Breite; der runde Ausschnitt am Anfang entsteht per clip-path.
   --zoom-rand und --zoom-auf misst das Skript, damit die Abstände gleich bleiben. */
.bewegt .hero__bild {
  margin-top: calc(clamp(2.75rem, 6vw, 4.5rem) - var(--zoom-auf, 0px));
  margin-bottom: calc(-1 * var(--zoom-auf, 0px));
  /* das leichte Heranzoomen beim Laden darf nicht seitlich überstehen */
  overflow-x: clip;
}

.bewegt .hero__bild img {
  width: calc(100% + 2 * var(--zoom-rand, 0px));
  max-width: none;
  margin-inline: calc(-1 * var(--zoom-rand, 0px));
  border-radius: 0;
  will-change: clip-path;
}

/* Linie durch den Tagesablauf, in der Lücke zwischen Uhrzeit und Text */
.bewegt .ablauf {
  position: relative;
}

.ablauf__linie {
  position: absolute;
  top: 1.6rem;
  bottom: 1.6rem;
  left: calc(clamp(1.25rem, 3vw, 2rem) + 4.5rem + 0.5rem - 1px);
  width: 2px;
  border-radius: 1px;
  background: var(--linie-zart);
  pointer-events: none;
}

.ablauf__fuellung {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--akzent-text);
  transform: scaleY(0);
  transform-origin: 50% 0;
}

/* kleiner Punkt an der Spitze, mit Ring in Kartenfarbe, damit er sauber auf der Linie sitzt */
.ablauf__punkt {
  position: absolute;
  top: -5px;
  left: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--akzent-text);
  box-shadow: 0 0 0 3px var(--karte);
}

@keyframes seg-auf {
  from { opacity: 0; transform: translateX(-8px) scale(0.85); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .wortmarke--gross .b {
    animation: buchstabe-auf 750ms var(--ease-out) both, buchstabe-welle 6s ease-in-out infinite;
    animation-delay: calc(var(--n, 0) * 45ms + 80ms), calc(var(--n, 0) * 70ms + 2.4s);
  }

  /* Welle pausiert, solange der Name nicht zu sehen ist (main.js) */
  .js .wortmarke--gross.is-pausiert .b {
    animation-play-state: paused;
  }

  .js .hero .seg,
  .js .hero .raupe__kopf {
    animation: seg-auf 600ms var(--ease-out) both;
    animation-delay: calc(var(--n, 0) * 55ms + 650ms);
  }

  .js [data-rise] {
    animation: einblenden 900ms var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 80ms + 80ms);
  }

  .js .hero__bild img {
    animation: bild-einblenden 1300ms var(--ease-out) 300ms both;
  }

  .js [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms);
  }

  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

  .js [data-reveal] img {
    scale: 1.03;
    transition: scale 1200ms var(--ease-out), transform 700ms var(--ease-out);
  }

  .js [data-reveal].is-in img {
    scale: 1;
  }

  .frage[open] .frage__antwort {
    animation: aufklappen 300ms var(--ease-out);
  }

  .nav__liste.is-offen {
    animation: menue-auf 220ms var(--ease-out);
  }

  .lightbox[open]::backdrop {
    animation: hintergrund-auf 300ms ease;
  }

  .lightbox::backdrop {
    transition: opacity 220ms ease;
  }

  .lightbox.is-schliessend::backdrop {
    opacity: 0;
  }

  .lightbox__text,
  .lightbox__steuerung {
    transition: opacity 200ms ease;
  }

  .lightbox.is-schliessend .lightbox__text,
  .lightbox.is-schliessend .lightbox__steuerung {
    opacity: 0;
  }

  /* Wechsel zwischen hell und dunkel: sanftes Überblenden der ganzen Seite */
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 320ms;
    animation-timing-function: ease;
  }
}

/* Antworten klappen weich auf (wo der Browser Höhen zu "auto" animieren kann) */
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    :root {
      interpolate-size: allow-keywords;
    }

    .frage::details-content {
      height: 0;
      overflow: clip;
      transition: height 320ms var(--ease-out), content-visibility 320ms allow-discrete;
    }

    .frage[open]::details-content {
      height: auto;
    }
  }
}

/* Bei reduzierter Bewegung: nur sanftes Einblenden, ohne Verschieben */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-reveal] {
    opacity: 0;
    transition: opacity 600ms ease;
  }

  .js [data-reveal].is-in {
    opacity: 1;
  }
}
