/* ============================================================
   ProStudy - prostudy.de
   Helles Glassmorphism-Design · Bergen Neue · kein Framework
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Bergen Neue";
  src: url("assets/fonts/bergen-neue-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bergen Neue";
  src: url("assets/fonts/bergen-neue-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bergen Neue";
  src: url("assets/fonts/bergen-neue-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bergen Neue";
  src: url("assets/fonts/bergen-neue-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bergen Neue";
  src: url("assets/fonts/bergen-neue-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Marker2: verspielter Marker-Akzent - nur sparsam in Großgrößen einsetzen */
@font-face {
  font-family: "Marker2";
  src: url("assets/fonts/marker2.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #1A2155;
  --navy: #1A2155;
  --blue: #16A0FF;
  --blue-deep: #0A7BE0;
  --cyan: #5BBBFF;
  /* Verbindliche Markenfarben (ProStudy-Logo): Navy + Hellblau-Akzent. Global. */
  --logo-navy: #1a2155;
  --logo-sky: #16a0ff;
  --gold: #f0a90a;
  --muted: #5d6885;
  --bg: #fbfdff;

  --glass-bg: linear-gradient(150deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.46));
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-outline: rgba(31, 104, 180, 0.07);
  --glass-shadow:
    0 16px 40px rgba(16, 60, 130, 0.08),
    0 2px 8px rgba(16, 60, 130, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --glass-shadow-soft:
    0 10px 28px rgba(16, 60, 130, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --blur: blur(20px) saturate(160%);

  --radius: 28px;
  --container: 1140px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: "Bergen Neue", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Sanfte, fixe Farbwolken im Hintergrund (GPU-günstig, eine Ebene) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(640px 420px at 88% -4%, rgba(56, 182, 255, 0.14), transparent 70%),
    radial-gradient(700px 520px at -12% 38%, rgba(15, 140, 255, 0.08), transparent 70%),
    radial-gradient(520px 420px at -6% 96%, rgba(255, 150, 110, 0.08), transparent 70%),
    radial-gradient(560px 460px at 102% 78%, rgba(139, 184, 255, 0.1), transparent 70%);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  font-weight: 900;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* Gefüllte Doodle-Icons aus dem Icon-Pack (Gegenstück zu den Stroke-Icons) */
.icon-doodle {
  flex: 0 0 auto;
  fill: currentColor;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 24px;
  top: -80px;
  z-index: 50;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 3px solid rgba(15, 140, 255, 0.55);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn-lg {
  min-height: 58px;
  padding: 0 32px;
  font-size: 1.06rem;
}

/* Primär: klarer, moderner Look - satter Blauton, Hairline-Highlight oben */
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #16A0FF, var(--blue-deep));
  box-shadow:
    0 1px 2px rgba(8, 50, 140, 0.3),
    0 8px 22px rgba(15, 110, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #3FAEFF, #0E8AF0);
  box-shadow:
    0 2px 4px rgba(8, 50, 140, 0.28),
    0 12px 28px rgba(15, 110, 255, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-primary:active {
  transform: translateY(0);
  background: linear-gradient(180deg, #0E8AF0, #0A6CD8);
}

.btn-glass {
  color: var(--navy);
  border: 1px solid rgba(16, 24, 64, 0.1);
  background: rgba(255, 255, 255, 0.75);
  box-shadow:
    0 1px 2px rgba(16, 60, 130, 0.06),
    0 6px 16px rgba(16, 60, 130, 0.07);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}

.btn-glass:hover {
  transform: translateY(-1px);
  background: #fff;
  border-color: rgba(16, 24, 64, 0.16);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 40;
  pointer-events: none;
}

.header-inner {
  pointer-events: auto;
  width: min(var(--container), 100% - 28px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 72px;
  padding: 10px 12px 10px 20px;
  border: 1px solid transparent;
  border-radius: 24px;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled .header-inner,
.site-header.nav-open .header-inner,
.site-header.locations-open .header-inner {
  border-color: var(--glass-border);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--glass-shadow-soft);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}

.brand img {
  width: 188px;
  height: auto;
}

.main-nav {
  display: flex;
  gap: 34px;
  margin-inline: auto;
  font-weight: 600;
  font-size: 0.98rem;
  color: rgba(16, 24, 64, 0.78);
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-locations {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-locations__toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
}

.nav-locations__toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav-locations__toggle:hover::after,
.nav-locations__toggle:focus-visible::after,
.nav-locations.is-open .nav-locations__toggle::after {
  transform: scaleX(1);
}

.nav-locations__toggle .icon {
  width: 0.9rem;
  height: 0.9rem;
  transition: transform 0.22s ease;
}

.nav-locations.is-open .nav-locations__toggle .icon {
  transform: rotate(180deg);
}

.nav-locations__menu {
  position: absolute;
  z-index: 3;
  top: calc(100% + 12px);
  left: 50%;
  display: grid;
  min-width: 230px;
  gap: 3px;
  padding: 9px;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--glass-shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}

.nav-locations.is-open .nav-locations__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.main-nav .nav-locations__menu a {
  padding: 10px 12px;
  border-radius: 11px;
  white-space: nowrap;
}

.main-nav .nav-locations__menu a::after {
  content: none;
}

.main-nav .nav-locations__menu a:hover,
.main-nav .nav-locations__menu a:focus-visible,
.main-nav .nav-locations__menu a[aria-current="page"] {
  color: var(--blue-deep);
  background: rgba(15, 140, 255, 0.08);
}

.header-cta {
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.2s ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  /* Untergrenze 860px liegt ÜBER dem höchsten Hero-Textblock (~836px). Dadurch
     bestimmt nie der Text die Hero-Höhe, sondern immer dieser Wert - egal ob eine
     Seite eine Textzeile mehr/weniger hat. Da das Hero-Foto am unteren Rand
     verankert ist, sitzt es so auf ALLEN Seiten (Start, Konzept …) identisch und
     "springt" beim Seitenwechsel nicht mehr. clamp() behält die leichte
     Viewport-Anpassung (860-880px) auf hohen Fenstern bei. */
  min-height: clamp(860px, 92svh, 880px);
  display: flex;
  align-items: center;
  padding: 150px 0 110px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

/* Volles Bildformat zeigen (inkl. Tisch), unten rechts verankert.
   max-height lässt immer Weißraum nach oben - Kopf bleibt unter der Navbar. */
.hero-media img {
  position: absolute;
  right: -8%;
  bottom: 0;
  width: min(100%, 1700px);
  height: auto;
  max-height: calc(100% - 110px);
  object-fit: contain;
  object-position: right bottom;
  /* Oben + links weich auslaufen lassen: schafft Abstand zum Text,
     ohne dass die Tischkante links hart abgeschnitten wirkt */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 8%), linear-gradient(90deg, transparent 4%, #000 32%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent 0%, #000 8%), linear-gradient(90deg, transparent 4%, #000 32%);
  mask-composite: intersect;
}

/* Weicher Übergang unten (Tischkante ausblenden) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 88%, var(--bg) 100%);
}

/* CSS-Hintergrund hinter der freigestellten Schülerin:
   weicher Farb-Blob + handgezeichnetes Doodle-Muster, radial auslaufend */
.hero-media::before {
  content: "";
  position: absolute;
  right: 2%;
  bottom: 4%;
  width: 54%;
  max-width: 940px;
  height: 88%;
  background-image:
    radial-gradient(closest-side at 58% 52%, rgba(56, 182, 255, 0.22), rgba(56, 182, 255, 0) 100%),
    url("data:image/svg+xml;utf8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='124'%20height='124'%3E%3Cg%20fill='none'%20stroke='%23a9cff5'%20stroke-width='3.5'%20stroke-linecap='round'%3E%3Cpath%20d='M22%2030h16M30%2022v16'/%3E%3Ccircle%20cx='98'%20cy='34'%20r='6'/%3E%3Cpath%20d='M34%2096l12%2012m0-12l-12%2012'/%3E%3Cpath%20d='M88%2092c6-6%2014-2%2012%206'/%3E%3C/g%3E%3Ccircle%20cx='64'%20cy='64'%20r='3.5'%20fill='%23a9cff5'/%3E%3C/svg%3E");
  background-size: 100% 100%, 124px 124px;
  opacity: 0.75;
  -webkit-mask-image: radial-gradient(closest-side at 56% 52%, #000 42%, transparent 96%);
  mask-image: radial-gradient(closest-side at 56% 52%, #000 42%, transparent 96%);
}

.hero-inner {
  max-width: var(--container);
}

.hero h1 {
  max-width: 13em;
  font-size: clamp(2.45rem, 5.3vw, 4.05rem);
  line-height: 1.04;
}

.hero h1 .accent {
  display: block;
  /* Padding unten, damit Unterlängen (g, p) im background-clip-Bereich liegen */
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
  background: linear-gradient(100deg, var(--blue-deep), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: block;
  margin: 0 0 14px;
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Doodle-Trennlinie: Marcels handgezeichnete Strichellinie in voller Breite,
   nie beschnitten - wiederkehrender roter Faden zwischen den Sektionen.
   aspect-ratio hält das Seitenverhältnis des PNGs (2397x32) ohne Layout-Shift.
   position/z-index nötig, damit nachfolgende Sektions-Hintergründe die
   (ggf. abgesenkte) Linie nicht übermalen */
.doodle-divider {
  display: none !important;
  position: relative;
  z-index: 1;
  width: min(100%, 2397px);
  aspect-ratio: 2397 / 32;
  margin: 0 auto;
  background: url("assets/img/doodle-line.png") center / 100% 100% no-repeat;
  opacity: 0.45;
  pointer-events: none;
}

/* Tablet-Landscape (gleicher Breakpoint wie .stats-cards oben): dünnere
   Linien-Variante, die bei breiten/kurzen Viewports besser wirkt.
   aspect-ratio hält das Seitenverhältnis des PNGs (1920x17). */
@media (min-width: 821px) and (max-height: 860px) {
  .doodle-divider {
    aspect-ratio: 1920 / 17;
    background-image: url("assets/img/doodle-line-landscape.png");
  }
}

/* Breite Desktop-/Laptop-Screens (z. B. MacBook 14"): noch dünnere Variante,
   unabhängig von der Fensterhöhe - überschreibt daher auch obige Regel. */
@media (min-width: 1200px) {
  .doodle-divider {
    aspect-ratio: 1920 / 14;
    background-image: url("assets/img/doodle-line-wide.png");
  }
}

/* Sitzt die Linie auf einer Sektionsnaht (Hintergrund-Wechsel), wird sie um
   die halbe eigene Höhe abgesenkt - der Übergang läuft mittig durch sie.
   is-on-seam-up: dasselbe für Trenner NACH einer Sektion (Naht oberhalb) */
.doodle-divider.is-on-seam {
  transform: translateY(50%);
}

.doodle-divider.is-on-seam-up {
  transform: translateY(-50%);
}

/* Gespiegelte Variante: gleiche Linie, anderer Schwung */
.doodle-divider.is-flipped {
  transform: scaleX(-1);
}

.doodle-divider.is-flipped.is-on-seam {
  transform: scaleX(-1) translateY(50%);
}

.doodle-divider.is-flipped.is-on-seam-up {
  transform: scaleX(-1) translateY(-50%);
}

/* Trenner exakt auf der Naht zwischen Zahlen-Sektion und Ablauf-Sektion.
   Absolut an der Unterkante der (relativ gesetzten) .stats-cards verankert und
   per translateY(50%) mittig auf die Naht gezogen - geräteunabhängig, ohne
   Layout-Footprint, sodass der harte Cut (slate↔blau) ohne Spalt bestehen bleibt.
   z-index hebt die Linie über den Hintergrund der nachfolgenden Ablauf-Sektion. */
.doodle-divider.is-seam-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  transform: translateY(50%);
}
.doodle-divider.is-flipped.is-seam-bottom {
  transform: scaleX(-1) translateY(50%);
}

/* Doodle-Akzente: handgezeichnete Icons als Kontrast zum cleanen Look */
.doodle {
  position: absolute;
  color: #a9d4ff;
  fill: currentColor;
  pointer-events: none;
}

.hero-inner {
  position: relative;
}

/* Das Hero-Foto <picture class="hero-media"> liegt im HTML in .hero-inner
   (damit es mobil als Karte zwischen Subtext und CTA erscheint). Auf Desktop
   ist es ein vollflächiges, absolut positioniertes Hintergrundbild - dafür darf
   .hero-inner KEIN Bezugsrahmen sein, sonst schrumpft das Bild auf Containerbreite.
   Einziges absolut positioniertes Kind von .hero-inner ist genau dieses Bild. */
@media (min-width: 981px) {
  .hero-inner {
    position: static;
  }
}

/* ===== Hero-Karte: zentrierte, abgerundete Kachel (modernes Design) =====
   Text links, freigestellte Person rechts INNERHALB der Kachel; rechts daneben
   bleibt Weißraum. Kachel ist auf allen Landscape-Größen zentriert
   (max-width + margin:auto). Portrait/Handy: einfacher Stapel-Fallback. */
.hero--card {
  /* Kachel füllt die Bildschirmhöhe: oben Navbar-Zone (~96px) als Abstand, unten
     gleich wenig Abstand -> Kachel geht fast bis zum unteren Rand, symmetrisch
     gerahmt. Auf sehr hohen Screens deckelt die Kachel und zentriert sich. */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 100svh;
  /* OBEN 100px = Navbar-Zone (exakt 2x die Navbar-Mitte: 14px oben + 72px hoch ->
     Mitte 50px, Navbar hängt mittig zwischen Browser-Oberkante und Kachel).
     LINKS/RECHTS/UNTEN bewusst kleiner (56px) -> Kachel größer, gleichmäßig an
     den drei Seiten gerahmt. War früher 100px rundum; auf niedrigen Laptops (die
     max-height:860-Regel unten) galten die 56px schon immer -> jetzt überall
     konsistent die größere Kachel. */
  padding: 100px 56px 56px;
  /* Seite kühler (slate-100), damit die weiße Kachel klar abhebt - ohne Schatten. */
  background: #eef2f7;
  overflow: visible;
}
.hero--card::before {
  content: none;
}

.hero-card {
  position: relative;
  /* breite Hintergrund-Kachel: füllt die volle Breite zwischen den gleichen
     Rändern (kein max-width mehr). Der INHALT bleibt in .hero-card-inner schmal. */
  width: 100%;
  flex: 1 1 auto;
  min-height: 480px;
  max-height: 1100px;
  display: flex;
  align-items: stretch;
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  background-color: #ffffff;
}
/* Inhalts-Spalte: zentriert, in der Breite gedeckelt -> Text/Bild bleiben gleich
   groß, egal wie breit die Kachel wird. Volle Kachelhöhe (stretch), damit das Bild
   unten bündig mit der Kachel sitzt. */
.hero-card-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}
/* Schlichter, flacher Kachel-Hintergrund: ruhige helle Fläche (zartes Hellblau),
   ohne Glow/Doodles. Eigenes Element, damit die Personen-Ebene zuverlässig
   darüber liegt. Sehr dezenter Verlauf für einen Hauch Tiefe - sonst flach. */
.hero-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Kachel klar weiß (zarter Verlauf), bleibt deutlich heller als die kühle
     slate-Seite -> hebt sich ohne Schatten ab. */
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  pointer-events: none;
}
/* Dezentes Dot-Grid (Azur, ~8%), z-index 0 (über dem Backdrop, unter der
   Inhalts-Ebene). Startet OBEN-LINKS (hinter Eyebrow/Headline) am dichtesten und
   läuft nach rechts/unten weich aus. overflow:hidden der Kachel beschneidet sauber. */
.hero-card-doodle {
  position: absolute;
  inset: 0 auto 0 0;
  width: clamp(440px, 66%, 1060px);
  z-index: 0;
  background-image: radial-gradient(rgba(22, 160, 255, 0.13) 1.8px, transparent 2px);
  background-size: 22px 22px;
  /* dicht an der oberen-linken Ecke, fadet erst weit nach rechts-unten weich aus. */
  -webkit-mask-image: radial-gradient(140% 130% at 0% 0%, #000 58%, transparent 99%);
  mask-image: radial-gradient(140% 130% at 0% 0%, #000 58%, transparent 99%);
  pointer-events: none;
  /* Safari verwirft maskierte Gradient-Pattern beim Compositing gelegentlich
     (Punkte verschwinden bis zum naechsten Repaint) - die eigene Ebene via
     translateZ(0) verhindert das. */
  transform: translateZ(0);
}

.hero--card .hero-inner {
  position: relative;
  z-index: 2;
  width: 60%;
  max-width: 700px;
  /* vertikaler Innenabstand: Eyebrow (oben) und letzte Pill (unten) kleben so
     nie am Kachelrand. Zusammen mit align-items:center sitzt der Block zentriert. */
  padding: 44px 0 44px clamp(32px, 4.5%, 64px);
}
/* Kompaktere Typo in der Kachel: H1 in 3 Zeilen (Heringen, Sontra & / Schenk…),
   weniger Höhe, damit die Kachel niedrig bleibt. */
.hero--card .eyebrow {
  margin-bottom: 10px;
}
.hero--card h1 {
  max-width: none;
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  line-height: 1.08;
  margin: 0;
}
/* "Nachhilfe in" in Logo-Navy; der Akzent (Städtenamen) behält den hellblauen
   Verlauf wie gehabt (.hero h1 .accent). */
.hero--card h1 {
  color: var(--logo-navy);
}
/* Logo-Sky nur sparsam als Akzent: Eyebrow + Primär-Button. */
.hero--card .eyebrow {
  color: var(--logo-sky);
}
.hero--card .btn-primary {
  background: linear-gradient(180deg, #2dabff, #0d8ae6);
  box-shadow:
    0 1px 2px rgba(8, 40, 110, 0.22),
    0 8px 20px rgba(22, 160, 255, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.hero--card .hero-sub {
  margin-top: 15px;
  max-width: 38ch;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  color: #475569;
}
.hero--card .hero-actions {
  margin-top: 22px;
}
.hero--card .hero-badges {
  margin-top: 18px;
}
.hero--card .hero-media::before {
  content: none;
}

/* Person rechts in der Kachel, deutlich kleiner; rechts daneben Weißraum. */
/* Portrait-Freisteller (3:4): füllt die Kachelhöhe, unten BÜNDIG mit der Kachel
   (Beine am unteren Rand abgeschnitten). Horizontal frei platzierbar - sitzt in
   der rechten Kachelhälfte, muss nicht ganz an den rechten Rand. */
.hero--card .hero-media {
  position: absolute;
  top: 6%;
  bottom: 0;
  left: auto;
  /* etwas nach rechts: rückt in den freien Weißraum rechts (skaliert mit dem
     verfügbaren Platz). Konstruktion hält IMMER >=40px Abstand zur rechten
     Kachelkante - auch auf schmalen Screens, daher kein Clipping/Rauslaufen. */
  right: calc(40px - max(0px, (100vw - 1380px) / 2.4));
  width: clamp(300px, 46%, 600px);
  z-index: 1;
  pointer-events: none;
}
.hero--card .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center bottom;
  -webkit-mask-image: none;
  mask-image: none;
}

/* Portrait / schmal: erst mal nur sauber stapeln (Feinschliff später). */
@media (max-width: 820px) {
  .hero--card {
    padding: 100px 16px 36px;
  }
  .hero-card {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding-bottom: 250px;
  }
  .hero--card .hero-inner {
    width: auto;
    max-width: none;
    padding: 32px 24px 0;
  }
  .hero--card .hero-media {
    top: auto;
    height: 240px;
    width: auto;
    left: 16px;
    right: 16px;
  }
  .hero--card .hero-media img {
    object-position: center bottom;
  }
}

/* ===== Tablet-Landscape (kurze, breite Viewports) =====
   Greift bei breiten ABER niedrigen Screens (iPad & Co. quer): >820px breit,
   damit die Karten-/Seitenleiste-Variante aktiv ist, und <=860px hoch, also
   genau der Bereich in dem padding:100px rundum nicht mehr in die Höhe passt
   (Karte lief vorher unten aus dem Bild). Wirkt auch auf flache Laptops 1366x768,
   wo das gleiche Höhenproblem auftritt. Portrait-Tablets (Breite <=820) bleiben
   beim Stapel-Layout und sind nicht betroffen.

   Ansatz: Navbar bleibt unverändert (war überall gut). Nur die Kachel bekommt
   weniger Abstand an LINKS/RECHTS/UNTEN (gleich, 56px) und OBEN bewusst mehr Raum
   für die Navbar (100px). Dadurch sitzt die Karte unten verankert mit einem klar
   definierten, gleich großen Rand zu drei Seiten; oben ist luftiger (Navbar-Zone).
   Greift bei kurzen Viewports (<=860px hoch, ab 821px breit) - also Tablet-quer
   und flache Laptops, wo padding:100px rundum nicht in die Höhe passte. */
@media (min-width: 821px) and (max-height: 860px) {
  .hero--card {
    /* oben mehr (Navbar-Raum), unten/links/rechts gleich & kleiner */
    padding: 100px 56px 56px;
  }
}

/* In Überschriften verankerte Doodles */
.doodle-inline {
  display: inline-block;
  height: auto;
  margin-left: 0.22em;
  vertical-align: -0.08em;
  color: #a9d4ff;
  fill: currentColor;
}

.doodle-bulb {
  width: 0.62em;
  transform: rotate(14deg);
}

.doodle-question {
  width: 0.55em;
  transform: rotate(12deg);
}

.doodle-thumbsup {
  width: 0.95em;
  vertical-align: -0.16em;
  transform: rotate(-8deg);
}

/* Doodle-Symbole in den Fächer-Chips */
.doodle-chip {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: currentColor;
  color: var(--c, var(--blue));
}

/* Gefüllte Doodles in Icon-Kacheln (z. B. LernChance-Herz) */
.card-icon .doodle-fill {
  width: 28px;
  height: auto;
  fill: currentColor;
}

/* Pokal im Navy-Finale */
.doodle-trophy {
  left: 6%;
  top: 16%;
  width: 64px;
  height: auto;
  color: rgba(158, 209, 255, 0.4);
  transform: rotate(-10deg);
}

@media (max-width: 980px) {
  .doodle {
    display: none;
  }
}

/* Marker-Unterstreichung für Schlüsselwörter */
.squiggle {
  position: relative;
  white-space: nowrap;
}

.squiggle::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: -0.16em;
  height: 0.3em;
  background: url("data:image/svg+xml;utf8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20110%2012'%20preserveAspectRatio='none'%3E%3Cpath%20d='M3%209c20-6%2038%203%2055-3%2014-5%2030-2%2049%201'%20fill='none'%20stroke='%2316a0ff'%20stroke-width='4'%20stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

/* Variante für lange Wortgruppen: darf umbrechen, der Strich wird pro Zeile
   neu gezeichnet statt einmal absolut unter den ganzen Block gelegt. */
.squiggle.is-wrapping {
  white-space: normal;
  padding-bottom: 0.09em;
  background: url("data:image/svg+xml;utf8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20110%2012'%20preserveAspectRatio='none'%3E%3Cpath%20d='M3%209c20-6%2038%203%2055-3%2014-5%2030-2%2049%201'%20fill='none'%20stroke='%2316a0ff'%20stroke-width='4'%20stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left bottom / 100% 0.17em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.squiggle.is-wrapping::after {
  content: none;
}

.hero-sub {
  max-width: 29em;
  margin-top: 22px;
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  line-height: 1.55;
  color: #3c4666;
  /* Bergen Neue hat kein 500er-Gewicht - 400 ist die nächste Stufe unter 600 */
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero-badges li {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  /* Deckend genug, damit Badges über dem Hero-Bild gleich aussehen wie über Weiß */
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--glass-shadow-soft);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  color: rgba(16, 24, 64, 0.78);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- Zahlen-Band ---------- */
/* ---------- Partner: Zahlen + Vorteile als gleichmäßiges 2×3 Kachel-Feld ----------
   Beide Kachel-Reihen liegen im selben Raster (.card-grid.cols-3) → gleiche
   Spalten, gleicher horizontaler Gutter (20px). Der Reihen-Abstand
   (.tile-field-row2) ist exakt dieser Gutter, damit horizontale und vertikale
   Abstände identisch sind. */
.tile-field {
  padding: 48px 0 92px;
}
/* Compound-Selektor, damit er den späteren `.card-grid { margin: 0 }`-Reset
   sicher schlägt (gleiche Spezifität → hier bewusst höher). */
.card-grid.tile-field-row2 {
  margin-top: 20px; /* == .card-grid gap → gleichmäßiges 2×3-Raster */
}

/* Die Zahlen-Kacheln (Startseiten-Look: Dot-Grid + Marker-Zahlen) an die übrigen
   Karten angleichen - gleicher Radius/Schatten/Rand, damit das Feld einheitlich
   wirkt. Auf hellem Grund liefern sie selbst den Glas-Schatten (auf der Startseite
   kommt der Kontrast von der Slate-Fläche). */
.tile-field .stat-card {
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  outline: 1px solid var(--glass-outline);
  box-shadow: var(--glass-shadow);
}

/* ---------- Zahlen · 3 Kacheln im Hero-Karten-Design (nur Startseite) ----------
   Liegt auf derselben slate-Fläche wie die Hero-Kachel und schließt direkt an
   sie an. Die Kartenreihe hat exakt die gleichen SEITENRÄNDER wie die Hero-Kachel
   (56px) -> Kanten fluchten. Bottom bleibt 100px (Abstand zur nächsten Sektion).
   Jede Karte trägt dieselbe Oberfläche und das gleiche, unten-rechts auslaufende
   Dot-Grid wie die Hero-Kachel. */
.stats-cards {
  position: relative;
  background: #eef2f7;
  padding: 0 56px 100px;
}
/* Schmaler Auslauf: die slate-Fläche läuft an der Unterkante ganz kurz ins Weiß
   aus, direkt davor sitzt dann der harte Cut zur blauen Ablauf-Sektion (mit der
   gestrichelten Linie auf der Naht). Sitzt im unteren Padding, berührt die Karten
   nicht. z-index unter der Linie (.is-seam-bottom = 3). */
.stats-cards::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(251, 253, 255, 0), var(--bg));
  pointer-events: none;
}
.stats-cards-row {
  display: flex;
  gap: 28px;
  width: 100%;
}
.stat-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 190px;
  padding: 40px 46px;
  border-radius: 32px;
  /* identische Oberfläche wie .hero-card-bg */
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  overflow: hidden;
  isolation: isolate;
}
/* Dezentes Dot-Grid wie in der Hero-Kachel (.hero-card-doodle): unten-rechts am
   dichtesten, läuft nach oben-links weich aus. */
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 62%;
  z-index: 0;
  background-image: radial-gradient(rgba(22, 160, 255, 0.13) 1.8px, transparent 2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(140% 130% at 100% 100%, #000 50%, transparent 99%);
  mask-image: radial-gradient(140% 130% at 100% 100%, #000 50%, transparent 99%);
  pointer-events: none;
  /* Gleicher Safari-Schutz wie bei .hero-card-doodle: eigene Ebene, damit das
     maskierte Pattern beim Compositing nicht verworfen wird. */
  transform: translateZ(0);
}
.stat-card strong {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--navy);
  font-family: "Marker2", "Bergen Neue", sans-serif;
  font-size: clamp(2.4rem, 3.4vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.stat-card span {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 600;
  max-width: 22ch;
}
/* Rating-Kachel: Reihe aus 5 goldenen Sternen (statt „5/5"); Label darunter trägt den Text. */
.stat-card .stat-rating { display: flex; align-items: center; gap: 0.08em; }
.stat-card .stat-star { flex: none; width: 0.82em; height: 0.82em; fill: var(--gold); stroke: var(--gold); }
/* Tablet-Landscape: gleiche schmalere Ränder wie die Hero-Kachel (56px). */
@media (min-width: 821px) and (max-height: 860px) {
  .stats-cards { padding: 0 56px 56px; }
}
/* Tablet-Portrait & Handy: stapeln, Ränder wie die Hero-Kachel (16px). */
@media (max-width: 820px) {
  .stats-cards { padding: 0 16px 40px; }
  .stats-cards-row { flex-direction: column; gap: 16px; }
  /* WICHTIG: flex zurücksetzen. Auf Desktop macht `flex:1 1 0` drei gleich breite
     Spalten; sobald die Reihe hier auf `flex-direction:column` umschaltet, würde
     `flex-basis:0` jede Karte vertikal auf ihre Polsterhöhe zusammenfallen lassen
     -> die großen Zahlen ragen über die Kartenkante und werden von `overflow:hidden`
     oben abgeschnitten. `flex:0 0 auto` lässt jede Karte auf ihren Inhalt wachsen. */
  .stat-card { flex: 0 0 auto; min-height: 0; padding: 26px 30px; }
}

/* ---------- Sektionen ---------- */
.section {
  padding: 92px 0;
}

.section-tint {
  background:
    linear-gradient(180deg, rgba(232, 244, 255, 0) 0%, rgba(232, 244, 255, 0.55) 18%, rgba(232, 244, 255, 0.55) 82%, rgba(232, 244, 255, 0) 100%);
}

.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.08;
}

.section-head p {
  margin-top: 16px;
  font-size: 1.08rem;
  color: var(--muted);
}

/* Zentrierter Sektionskopf (für symmetrische Inhalte wie die Infografik) */
.section-head-center {
  margin-inline: auto;
  text-align: center;
}

.section-head-center p {
  max-width: 56ch;
  margin-inline: auto;
}

.section-cta {
  margin-top: 40px;
}

/* ---------- Karten ---------- */
.card-grid {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* „Warum Familien..."-Sektion (Standortseiten): bei GENAU 4 Karten auf breiten Screens
   4 nebeneinander statt 3+1 (einsame 4. Karte). Seiten mit 6 Karten (z. B. Sontra)
   bleiben 3-spaltig (3+3). Tablet bleibt 2×2, Handy einspaltig. */
@media (min-width: 981px) {
  .location-services .card-grid:has(.card:nth-child(4)):not(:has(.card:nth-child(5))) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card,
.panel {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
  outline: 1px solid var(--glass-outline);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}

.card {
  position: relative;
  padding: 30px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 22px 50px rgba(16, 60, 130, 0.11),
    0 4px 12px rgba(16, 60, 130, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.card h3 {
  margin: 20px 0 10px;
  font-size: 1.22rem;
  font-weight: 700;
}

.card p {
  color: var(--muted);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: var(--blue-deep);
  border: 1px solid rgba(16, 24, 64, 0.07);
  background: #fff;
  box-shadow: 0 2px 10px rgba(16, 60, 130, 0.08);
}

.card-icon .icon {
  width: 26px;
  height: 26px;
}

.card-icon .icon-doodle {
  width: 26px;
  height: 26px;
}

.badge {
  position: absolute;
  top: 26px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(15, 140, 255, 0.1);
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-inline {
  position: static;
  vertical-align: middle;
  margin-left: 8px;
  padding: 4px 10px;
  font-size: 0.68rem;
}

/* Dezente Farbdifferenzierung der drei Säulen */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--blue-deep);
  font-weight: 700;
}

.card-link .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.card-link:hover .icon {
  transform: translateX(4px);
}

/* Ablauf: weiche Blob-Bühne mit Karten, Nummern-Badges und Icon-Kreisen.
   Obendrauf ein ganz schwaches Karo-Raster wie im Matheheft (2 Hairline-Layer) */
.section-ablauf {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(15, 140, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 140, 255, 0.05) 1px, transparent 1px),
    radial-gradient(820px 420px at 0% 2%, rgba(56, 182, 255, 0.14), transparent 62%),
    radial-gradient(960px 560px at 100% 100%, rgba(15, 140, 255, 0.18), transparent 64%),
    radial-gradient(640px 380px at 78% 0%, rgba(56, 182, 255, 0.1), transparent 60%),
    linear-gradient(165deg, #f6fbff 0%, #e9f3ff 52%, #f1f8ff 100%);
  background-size: 30px 30px, 30px 30px, auto, auto, auto, auto;
}

/* Harter Cut oben: KEIN weißer Einlauf mehr - das blaue Raster (Schachbrett)
   beginnt direkt an der Oberkante, sodass die slate-Zahlen-Sektion ohne weichen
   weißen Übergang in die blaue Tönung schneidet. */

/* Weicher Auslauf: Pendant zum Einlauf - die Tönung schmilzt unten ins
   Weiß der nächsten Sektion, die gestrichelte Linie sitzt damit auf
   einem Verlauf statt auf einer harten Kante */
.section-ablauf::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 130px;
  background: linear-gradient(rgba(251, 253, 255, 0), var(--bg));
  pointer-events: none;
}

.section-ablauf .container {
  position: relative;
  z-index: 1;
}

.step-flow {
  display: flex;
  gap: 48px;
  margin: 0;
  padding: 20px 0 0;
  list-style: none;
}

.step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 0;
  min-width: 0;
  padding: 30px 24px;
  border: 1px solid rgba(16, 24, 64, 0.05);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 20px 44px rgba(16, 60, 130, 0.1);
}

/* Aufklappen ohne Layout-Zittern: Die Karten behalten Breite und Höhe,
   die aktive hebt sich nur an (Transform/Schatten/Opacity laufen auf der GPU).
   Muss opacity/transform mitführen, sonst überschreibt es die .reveal-Transition. */
html.js .step-flow .step {
  transition:
    opacity 0.45s ease,
    transform 0.6s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.step:hover {
  box-shadow: 0 24px 52px rgba(16, 60, 130, 0.15);
}

html.js .step-flow .step.is-open {
  transform: translateY(-4px);
  border-color: rgba(15, 140, 255, 0.35);
  box-shadow: 0 26px 56px rgba(16, 60, 130, 0.16);
}

/* Geschlossene Nachbarn treten leicht zurück, Fokus auf der offenen Karte */
html.js .step-flow.has-open .step:not(.is-open) {
  opacity: 0.68;
}

/* Schritt-Nummer im Kreis: handgezeichnete Marker-Ziffer statt Symbol
   (Marker2 nur hier sicher - Ziffern haben keine Umlaut-Falle) */
.step-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #f2f9ff, #ddeeff 78%);
  color: var(--blue-deep);
  font-family: "Marker2", "Bergen Neue", sans-serif;
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1;
}

/* Handgezeichneter Pfeil zum nächsten Schritt: zeigt die Flussrichtung,
   schwach angedeutet (Desktop: nach rechts, mobil gedreht nach unten) */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 48px;
  height: 18px;
  margin-top: -9px;
  background: url("data:image/svg+xml;utf8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2040%2016'%3E%3Cg%20fill='none'%20stroke='%230f8cff'%20stroke-opacity='.4'%20stroke-width='2.4'%20stroke-linecap='round'%3E%3Cpath%20d='M2.5%208.6C11%207.2%2021%209.6%2030.5%208.3'/%3E%3Cpath%20d='M25%203.2c2.8%202%205.4%203.7%208.4%205.1-3.2%201.5-6%203.5-7.8%205.3'/%3E%3C/g%3E%3C/svg%3E") center / 38px auto no-repeat;
}

.step-body h3 {
  margin: 0 0 6px;
  /* Platz für den Aufklapp-Chevron oben rechts, damit lange Titel
     (z. B. "Gemeinsam starten") nicht darunter laufen. Mobil (<=700px)
     wird das zurückgesetzt - dort hält .step schon padding-right:45. */
  padding-right: 44px;
  font-size: 1.24rem;
  font-weight: 700;
}

.step-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Ganze Karte klickbar: Button im h3 wird über die Karte gespannt */
.step-toggle {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.step-toggle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26px;
}

.step-toggle:focus-visible {
  outline: none;
}

.step-toggle:focus-visible::after {
  outline: 3px solid rgba(15, 140, 255, 0.55);
  outline-offset: 3px;
}

/* Detailtext: ohne JS immer sichtbar (SEO/Fallback), mit JS sanft aufklappbar */
.step-detail {
  display: grid;
  grid-template-rows: 1fr;
}

.step-detail-inner {
  overflow: hidden;
  min-height: 0;
}

html.js .step-detail {
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s cubic-bezier(0.32, 0.85, 0.28, 1);
}

html.js .step-detail.is-open {
  grid-template-rows: 1fr;
}

html.js .step-detail-inner {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

html.js .step-detail.is-open .step-detail-inner {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s ease 0.14s, transform 0.4s ease 0.14s;
}

/* Desktop-Panel: Details liegen (per JS verschoben) unter der Kartenreihe
   und öffnen sich als breites Fenster über die volle Containerbreite */
.step-panels .step-window {
  margin-top: 28px;
  padding: 26px 30px;
  border: 1px solid rgba(16, 24, 64, 0.05);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 44px rgba(16, 60, 130, 0.1);
}

.step-panels .step-window > p {
  margin: 0;
  max-width: 62ch;
}

.step-panels .step-detail-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 36px;
  margin-bottom: 0;
}

.step-window > p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.step-detail-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 2px;
  padding: 0;
  list-style: none;
}

.step-detail-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 600;
}

.step-detail-list .icon {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: var(--blue-deep);
}

/* Aufklapp-Hinweis oben rechts; dreht sich im offenen Zustand */
.step-chevron {
  position: absolute;
  top: 20px;
  right: 18px;
  /* Rein dekorativ (aria-hidden) und liegt im DOM ÜBER der gestreckten
     .step-toggle::after-Klickfläche. Ohne pointer-events:none würde ein Klick
     GENAU auf den Pfeil vom Chevron gefangen (nicht vom Toggle) -> nichts
     passierte. So fällt der Klick zur Button-Fläche darunter durch. */
  pointer-events: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(15, 140, 255, 0.08);
  color: var(--blue-deep);
  transition: transform 0.45s cubic-bezier(0.32, 0.85, 0.28, 1), background 0.2s ease;
}

.step-chevron .icon {
  width: 15px;
  height: 15px;
}

.step:hover .step-chevron {
  background: rgba(15, 140, 255, 0.14);
}

.step.is-open .step-chevron {
  transform: rotate(180deg);
}

html:not(.js) .step-chevron {
  display: none;
}

/* Standorte */
.location-photo {
  display: block;
  margin: -30px -28px 22px;
}

.location-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 27px 27px 0 0;
}

/* Standorte, die erst später öffnen: Foto geblurrt, Glas-Chip mit Startdatum */
.location-photo.is-soon {
  position: relative;
  overflow: hidden;
  border-radius: 27px 27px 0 0;
}

.location-photo.is-soon img {
  filter: blur(6px) saturate(0.9);
  transform: scale(1.06); /* kaschiert die hellen Blur-Ränder */
}

.soon-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 20px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--glass-shadow-soft);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.98rem;
  white-space: nowrap;
}

.location h3 {
  margin-top: 0;
}

.location p {
  min-height: 52px;
}

/* Ganze Standort-Kachel klickbar (nicht nur der Pfeil-Link): der vorhandene
   .card-link wird per Pseudoelement über die ganze Karte gestreckt. Der echte
   <a> bleibt erhalten (Tastatur/Screenreader), kein verschachteltes <a> nötig. */
.card.location { cursor: pointer; }
.card.location .card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.catchment {
  margin-top: 28px;
  color: var(--muted);
}

.catchment a {
  color: var(--blue-deep);
  font-weight: 700;
  border-bottom: 2px solid rgba(15, 140, 255, 0.35);
}

/* Fächer-Chips */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip-list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow-soft);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  color: var(--navy);
  font-size: 1.02rem;
  font-weight: 700;
}

/* Fach-Symbole in Schnellhefter-Farben (--c je Chip im HTML) */
.chip-list li .icon {
  width: 19px;
  height: 19px;
  color: var(--c, var(--blue));
  stroke-width: 2.2;
}

.chip-more {
  color: var(--muted);
  font-weight: 600;
}

/* Warum ProStudy */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

.split .section-head {
  margin-bottom: 0;
}

.split .section-head p {
  line-height: 1.75;
}

/* Gründer-Block: das Gesicht hinter „inhabergeführt“ */
.founder {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 30px 0 0;
}

.founder img {
  width: 148px;
  height: 185px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 14px 32px rgba(16, 60, 130, 0.14),
    0 2px 8px rgba(16, 60, 130, 0.06);
}

.founder figcaption strong {
  display: block;
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 700;
}

.founder figcaption span {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.usp-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.usp-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow-soft);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  font-weight: 600;
  font-size: 0.96rem;
  line-height: 1.45;
}

.usp-list .icon {
  flex-shrink: 0;
  margin-top: 2px;
  padding: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-deep), var(--cyan));
  stroke-width: 3;
}

.usp-list strong {
  display: block;
  color: var(--navy);
  font-weight: 700;
}

.usp-list li span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.5;
}

/* LernChance */
#lernchance {
  padding-top: 0;
}

.lernchance-panel {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  padding: 38px 40px;
}

.lernchance-panel .card-icon {
  color: #ff6e5a;
}

.lernchance-panel h2 {
  font-size: 1.55rem;
}

.lernchance-panel p {
  margin-top: 10px;
  max-width: 56em;
  color: var(--muted);
}

/* Bewertungen */
.rating-panel {
  padding: 48px 40px;
  text-align: center;
}

/* Google-Badge: Logo über Sternen und Schnitt, alles verlinkt aufs Google-Profil */
.rating-google {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.rating-google .google-logo {
  width: 118px;
  height: auto;
  transition: transform 0.2s ease;
}

.rating-google:hover .google-logo {
  transform: scale(1.05);
}

.rating-google:hover .rating-line strong {
  color: var(--blue-deep);
}

.rating-stars {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.rating-stars .star {
  width: 30px;
  height: 30px;
  fill: var(--gold);
  stroke: var(--gold);
  stroke-width: 1;
}

.rating-line {
  display: block;
  font-size: 1.18rem;
  color: var(--muted);
}

.rating-line strong {
  color: var(--navy);
  font-weight: 900;
  transition: color 0.2s ease;
}

.rating-badges {
  justify-content: center;
  margin-top: 28px;
}

/* Durchlaufende Rezensionen - Bewegung kommt aus main.js (rAF-Marquee,
   pausiert bei Hover/Fokus). Keine CSS-Keyframes: iOS-Safari suspendiert
   Endlos-Animationen ausserhalb des Viewports und setzt sie fehlerhaft
   fort (Leiste rast oder bleibt stehen). */
.review-marquee {
  overflow: hidden;
  margin-top: 32px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.review-track {
  display: flex;
  gap: 16px;
  width: max-content;
}

/* Jede Karte verlinkt auf die Original-Rezension bei Google */
.review-link {
  flex: 0 0 auto;
  display: block;
  border-radius: 20px;
  color: inherit;
  text-decoration: none;
}

.review-link .review-card {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.review-link:hover .review-card,
.review-link:focus-visible .review-card {
  border-color: rgba(15, 140, 255, 0.45);
  box-shadow: 0 14px 34px rgba(16, 60, 130, 0.16);
  transform: translateY(-2px);
}

.review-link:hover .review-card figcaption {
  color: var(--blue-deep);
}

.review-card {
  width: min(340px, 78vw);
  flex: 0 0 auto;
  margin: 0;
  padding: 22px 24px;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--glass-shadow-soft);
  text-align: left;
}

.review-card .review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 10px;
}

.review-card .review-stars .icon {
  width: 15px;
  height: 15px;
  fill: var(--gold);
  stroke: var(--gold);
  stroke-width: 1;
}

/* Bewertungen ohne Text: nur Sterne + Name, vertikal zentriert */
.review-card-stars-only {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.review-card p {
  color: var(--ink);
  font-size: 0.97rem;
  line-height: 1.6;
}

.review-card figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq-container {
  max-width: 860px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow-soft);
  outline: 1px solid var(--glass-outline);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  overflow: hidden;
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  cursor: pointer;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.04rem;
  list-style: none;
  transition: color 0.2s ease;
}

.faq-list summary:hover {
  color: var(--blue-deep);
}

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

.faq-list summary .icon {
  color: var(--blue-deep);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.faq-list details[open] summary .icon {
  transform: rotate(180deg);
}

/* Beim animierten Schließen (JS) bleibt [open] bis zum Ende gesetzt -
   der Pfeil soll aber sofort zurückdrehen */
.faq-list details.is-closing summary .icon {
  transform: none;
}

.faq-list details p {
  padding: 0 24px 22px;
  color: var(--muted);
}

.faq-list details[open] p {
  animation: faq-reveal 0.45s 0.05s cubic-bezier(0.32, 0.72, 0, 1) both;
}

@keyframes faq-reveal {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.faq-list details a {
  color: var(--blue-deep);
  font-weight: 700;
  border-bottom: 2px solid rgba(15, 140, 255, 0.35);
}

/* ---------- Abschluss-CTA: dunkles Statement-Panel ---------- */
.final-cta {
  position: relative;
  overflow: hidden;
  padding: 68px 48px;
  text-align: center;
  border-color: rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(460px 280px at 86% -10%, rgba(56, 182, 255, 0.28), transparent 70%),
    radial-gradient(420px 260px at 4% 110%, rgba(255, 140, 110, 0.18), transparent 70%),
    linear-gradient(150deg, #141A45, #1A2155 55%, #243072);
  box-shadow:
    0 30px 70px rgba(13, 25, 80, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.cta-sparks {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  color: var(--cyan);
  stroke-width: 3;
}

.final-cta h2 {
  color: #fff;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
}

/* Nur der klassenlose Untertitel - sonst würde diese Regel via Spezifität
   auch .cta-contact und .hours treffen und deren Abstände/Farbe überschreiben. */
.final-cta > p:not([class]) {
  margin-top: 14px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.74);
}

.final-cta .hero-actions {
  justify-content: center;
  margin-top: 30px;
}

/* Primär-Button im dunklen Panel invertiert (weiß) + Pfeil, der bei Hover
   leicht mitwandert - ein klarer, einzelner Call-to-Action statt drei Pills. */
.final-cta .btn-primary {
  color: var(--navy);
  background: #fff;
  box-shadow: 0 12px 32px rgba(2, 12, 50, 0.4);
}

.final-cta .btn-primary:hover {
  background: #eef6ff;
  box-shadow: 0 16px 38px rgba(2, 12, 50, 0.45);
}

.final-cta .btn-primary .icon {
  color: var(--blue-deep);
  transition: transform 0.22s ease;
}

.final-cta .btn-primary:hover .icon {
  transform: translateX(3px);
}

/* Telefon + WhatsApp: leichte Text-Links statt klobiger Glas-Buttons,
   mittig, mit dezentem vertikalem Trenner. */
.cta-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 22px;
  margin-top: 22px;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  font-size: 1.02rem;
  transition: color 0.2s ease;
}

.cta-link .icon {
  width: 20px;
  height: 20px;
  color: var(--cyan);
}

.cta-link:hover {
  color: #fff;
}

.cta-sep {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.26);
}

/* Auslaufender Trennstrich zwischen Kontakt-Zeile und Kurszeiten:
   horizontale Hairline, die an beiden Enden weich nach transparent ausläuft. */
.cta-rule {
  width: min(340px, 72%);
  height: 1px;
  margin: 26px auto;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.34) 50%,
    transparent);
}

.hours {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.66);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.5;
}

.hours .icon {
  width: 18px;
  height: 18px;
  color: var(--cyan);
}

/* ----- Standort-Abschluss-CTA: klare Gewichtung der Kontaktwege -----
   Ein hervorgehobener blauer Hauptbutton; Telefon + WhatsApp als dezente
   Outline-Buttons darunter. Nur auf den Standortseiten (Modifier-Klasse
   .final-cta--focus), damit die Startseiten-CTA unberührt bleibt. */
.final-cta--focus {
  padding: 54px 48px;
}

.final-cta--focus .cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.final-cta--focus .cta-main {
  gap: 10px;
}

/* Hauptbutton bleibt Markenblau (statt weiß wie im Standard-.final-cta). */
.final-cta.final-cta--focus .btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #16A0FF, var(--blue-deep));
  box-shadow:
    0 1px 2px rgba(8, 50, 140, 0.3),
    0 10px 26px rgba(15, 110, 255, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.final-cta.final-cta--focus .btn-primary:hover {
  background: linear-gradient(180deg, #3FAEFF, #0E8AF0);
}

.final-cta.final-cta--focus .btn-primary .icon {
  color: rgba(255, 255, 255, 0.92);
}

.final-cta--focus .cta-secondary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Telefon + WhatsApp: dezente Outline-Buttons, kleiner als der Hauptbutton. */
.final-cta--focus .btn-outline {
  min-height: 46px;
  padding: 0 20px;
  gap: 9px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.98rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.final-cta--focus .btn-outline:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.final-cta--focus .btn-outline .icon {
  width: 18px;
  height: 18px;
  color: var(--cyan);
}

@media (max-width: 560px) {
  .final-cta--focus {
    padding: 44px 22px;
  }
  .final-cta--focus .cta-main {
    width: 100%;
  }
  .final-cta--focus .cta-secondary {
    width: 100%;
  }
  .final-cta--focus .btn-outline {
    flex: 1 1 auto;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 20px;
  padding: 64px 0 36px;
  border-top: 1px solid rgba(21, 32, 95, 0.08);
  background: linear-gradient(180deg, rgba(232, 244, 255, 0.35), rgba(232, 244, 255, 0.7));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr 1fr;
  gap: 40px;
}

.footer-brand img {
  width: 180px;
}

.footer-brand p {
  margin-top: 16px;
  max-width: 30em;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-col h3 {
  margin-bottom: 14px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
}

.footer-loc {
  font-style: normal;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-loc:last-child {
  margin-bottom: 0;
}

.footer-loc strong {
  display: block;
  margin-bottom: 2px;
  color: var(--navy);
  font-weight: 700;
}

.footer-contact p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 600;
}

.footer-contact a:hover {
  color: var(--blue-deep);
}

.footer-contact .icon {
  width: 16px;
  height: 16px;
  color: var(--blue-deep);
}

/* Mittlerer Bereich (Tablet/Foldable): 4 Spalten werden hier zu eng -
   die unbrechbare E-Mail sprengt sonst die Spalte (horizontaler Overflow).
   Steht VOR dem 700px-Block, damit dort die 1-Spalten-Regel gewinnt. */
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(21, 32, 95, 0.08);
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(16, 24, 64, 0.72);
}

.footer-bottom nav a:hover {
  color: var(--blue-deep);
}

.footer-bottom p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Reveal (nur mit JS aktiv) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .header-cta {
    margin-left: auto;
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  /* Termin-Button erst beim Scrollen "aufploppen" - am Seitenanfang (Navbar ohne
     Glass) ist er doppelt zur sichtbaren Hero-CTA. Platz bleibt reserviert,
     damit beim Einblenden nichts springt. */
  .site-header:not(.is-scrolled) .header-cta {
    opacity: 0;
    transform: scale(0.6);
    pointer-events: none;
  }

  .site-header.is-scrolled .header-cta {
    opacity: 1;
    transform: scale(1);
  }

  .nav-toggle + * {
    margin-left: 0;
  }

  .header-inner {
    gap: 14px;
  }

  /* Aufgeklapptes Menü als Glass-Panel */
  .nav-open .main-nav {
    display: grid;
    gap: 4px;
    position: absolute;
    top: calc(100% + 8px);
    left: 14px;
    right: 14px;
    padding: 14px;
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--glass-shadow);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
  }

  .site-header {
    pointer-events: auto;
  }

  .header-inner {
    position: relative;
  }

  .nav-open .main-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 1.05rem;
  }

  .nav-open .main-nav a:hover {
    background: rgba(15, 140, 255, 0.07);
  }

  .nav-open .main-nav a::after {
    content: none;
  }

  .nav-locations {
    display: block;
  }

  .nav-open .nav-locations__toggle {
    width: 100%;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 1.05rem;
  }

  .nav-open .nav-locations__toggle:hover,
  .nav-open .nav-locations__toggle:focus-visible {
    background: rgba(15, 140, 255, 0.07);
  }

  .nav-open .nav-locations__toggle::after {
    content: none;
  }

  .nav-locations__menu {
    position: static;
    display: none;
    min-width: 0;
    margin: 2px 0 6px;
    padding: 5px;
    border-color: rgba(15, 140, 255, 0.1);
    border-radius: 14px;
    background: rgba(15, 140, 255, 0.045);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .nav-locations.is-open .nav-locations__menu {
    display: grid;
    transform: none;
  }

  .nav-open .main-nav .nav-locations__menu a {
    padding: 10px 14px 10px 28px;
    font-size: 0.98rem;
  }

  .cols-3 {
    grid-template-columns: 1fr;
  }

  /* Schritt-Timeline vertikal: gepunktete Linie läuft nach unten weiter */
  .step-flow {
    flex-direction: column;
    gap: 44px;
  }

  .step-icon {
    width: 66px;
    height: 66px;
    font-size: 2rem;
  }

  /* Hochkant: gleicher Pfeil, um 90° gedreht - zeigt nach unten */
  .step:not(:last-child)::after {
    top: 100%;
    left: 50%;
    margin-top: 13px;
    margin-left: -24px;
    transform: rotate(90deg);
  }

  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* Mobil/Tablet: Foto als ruhige Glas-Portraitkarte zwischen Subtext und CTA.
     Das <picture class="hero-media"> liegt im HTML in .hero-inner direkt vor
     .hero-actions. Karten-Rundung + overflow:hidden begrenzen das Bild weich;
     die alte Linear-Maske entfällt. */
  .hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 130px 0 0;
    /* Karte darf ihren weichen Schatten zeigen */
    overflow: visible;
  }

  .hero::before {
    content: none;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
  }

  /* Freigestellte Schülerin ohne Glas-Karte - wie am Desktop, nur ohne Hintergrund.
     Position, Höhe und Ausschnitt bleiben gleich; nur Karten-Material entfällt. */
  .hero-media {
    position: relative;
    inset: auto;
    order: 0;
    z-index: 0;
    /* display:block, damit das <picture> nie auf inline kollabiert (Höhe 0) */
    display: block;
    height: 262px;
    width: 100%;
    margin: 30px 0 4px;
  }

  /* Kein Doodle-/Farb-Blob hinter dem Mädchen auf Mobile */
  .hero-media::before {
    content: none;
  }

  .hero-media img {
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    /* Schülerin sitzt rechts im breiten Bild - Ausschnitt nach rechts, leicht nach oben */
    object-position: 82% 46%;
    /* Karte clippt sauber per overflow/border-radius - keine Linear-Maske nötig */
    -webkit-mask-image: none;
    mask-image: none;
  }

  /* CTA bekommt durch das Foto darüber einen frischen, abgesetzten Auftakt */
  .hero-actions {
    margin-top: 22px;
  }

  .hero-badges {
    margin-top: 22px;
  }

  .location p {
    min-height: 0;
  }
}

@media (max-width: 700px) {
  .container {
    width: calc(100% - 36px);
  }

  .header-inner {
    min-height: 62px;
    padding: 8px 10px 8px 14px;
    border-radius: 20px;
  }

  .brand img {
    width: 148px;
  }

  .header-cta {
    min-height: 46px;
    width: 46px;
    padding: 0;
    border-radius: 14px;
  }

  .header-cta span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .hero {
    min-height: 0;
    padding: 96px 0 64px;
    /* clip, damit das vollbreite Foto (100vw) keinen Querscroll erzeugt */
    overflow: clip;
  }

  /* Foto auf dem Handy: volle Viewport-Breite (aus dem Container ausgebrochen),
     kompakter und etwas höher gerückt, damit der CTA-Button in den Blick kommt */
  .hero-media {
    width: 100vw;
    max-width: 100vw;
    height: 200px;
    margin: 12px calc(50% - 50vw) 4px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 30px;
  }

  .card {
    padding: 26px 22px;
  }

  .location-photo {
    margin: -26px -22px 20px;
  }

  .location-photo img {
    border-radius: 27px 27px 0 0;
  }

  .usp-list {
    grid-template-columns: 1fr;
  }

  .lernchance-panel {
    flex-direction: column;
    padding: 30px 24px;
  }

  .rating-panel {
    padding: 36px 22px;
  }

  .final-cta {
    padding: 44px 24px;
  }

  .hours {
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Schmale Handys: Kontakt-Links untereinander statt umzubrechen,
   Trenner entfällt (sonst stünde der senkrechte Strich verwaist). */
@media (max-width: 480px) {
  .cta-contact {
    flex-direction: column;
    gap: 14px;
  }
  .cta-sep {
    display: none;
  }
}

/* ---------- Erstgespräch-Popup ---------- */
.booking {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  overflow: visible;
}

.booking::backdrop {
  background: rgba(13, 30, 70, 0.34);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

/* Seite hinter offenem Dialog nicht scrollen */
body:has(.booking[open]) {
  overflow: hidden;
}

.booking-card {
  position: relative;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 34px 34px 28px;
  border: 1px solid var(--glass-border);
  outline: 1px solid var(--glass-outline);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--glass-shadow);
}

@media (prefers-reduced-motion: no-preference) {
  .booking[open] .booking-card {
    animation: booking-pop 0.26s ease;
  }

  @keyframes booking-pop {
    from {
      opacity: 0;
      transform: translateY(14px) scale(0.97);
    }
  }
}

.booking-close {
  /* Sitzt jetzt im <dialog> (nicht in der scrollenden .booking-card) -> bleibt fix
     oben rechts am Modal-Eck, auch beim Scrollen. z-index hebt ihn über die Karte
     (die per backdrop-filter einen eigenen Stacking-Context bildet). */
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(16, 24, 64, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  color: var(--navy);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.booking-close:hover {
  background: #fff;
  transform: scale(1.06);
}

.booking-close svg {
  width: 13px;
  height: 13px;
}

.booking-head h2 {
  margin: 12px 0 6px;
  font-size: 1.65rem;
  color: var(--navy);
}

.booking-sub {
  margin: 0;
  color: var(--muted);
}

.slot-label {
  margin: 22px 0 9px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.slot-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.slot-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.slot-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(16, 24, 64, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.slot-chip:hover span {
  border-color: rgba(15, 140, 255, 0.4);
}

.slot-chip input:checked + span {
  border-color: transparent;
  background: linear-gradient(180deg, #16A0FF, var(--blue-deep));
  color: #fff;
  box-shadow: 0 6px 14px rgba(15, 110, 255, 0.3);
}

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

.booking-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.booking-fields label:first-child {
  grid-column: 1 / -1;
}

.booking-fields label {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}

.booking-fields input {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(16, 24, 64, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
}

.booking-fields input::placeholder {
  color: rgba(93, 104, 133, 0.6);
}

.booking-fields input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(15, 140, 255, 0.18);
}

.booking-select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(16, 24, 64, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
}

.booking-select:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(15, 140, 255, 0.18);
}

.booking-standort-info {
  margin: 10px 0 0;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(15, 140, 255, 0.08);
  border: 1px solid rgba(15, 140, 255, 0.2);
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--navy);
}

.booking-standort-info em {
  font-style: normal;
  color: var(--blue-deep);
}

/* Honeypot: für Menschen unsichtbar */
.booking-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.booking-submit {
  width: 100%;
  margin-top: 24px;
}

.booking-note {
  margin: 14px 0 0;
  font-size: 0.78rem;
  text-align: center;
  color: var(--muted);
}

.booking-note a {
  color: var(--blue-deep);
}

.booking-success {
  padding: 18px 6px 8px;
  text-align: center;
}

.booking-success-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(180deg, #16A0FF, var(--blue-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 110, 255, 0.3);
}

.booking-success-icon .icon {
  width: 26px;
  height: 26px;
}

.booking-success h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  color: var(--navy);
}

.booking-success p {
  max-width: 30em;
  margin: 0 auto 20px;
  color: var(--muted);
}

@media (max-width: 700px) {
  .booking-card {
    padding: 28px 20px 22px;
  }

  .booking-fields {
    grid-template-columns: 1fr;
  }
}

/* ---------- Erstgespräch-Widget (Buchung über portal-prostudy.de) ----------
   Markup + Logik rendert main.js ("Erstgespräch-Buchungswidget") in den
   #ps-content-Container des Buchungs-Popups. Das Widget liegt in der
   .booking-card und erbt deren Glas-Karte - deshalb selbst rahmenlos. */
.ps-booking {
  --ps-accent: var(--blue);
  --ps-accent-dark: var(--blue-deep);
  --ps-text: var(--navy);
  --ps-muted: var(--muted);
  --ps-border: rgba(16, 24, 64, 0.12);
  --ps-bg: rgba(255, 255, 255, 0.85);
  --ps-ok-bg: #eefaf3;
  --ps-ok-border: #b5e6cc;
  --ps-err-bg: #fef2f2;
  --ps-err-border: #fecaca;
  color: var(--ps-text);
  line-height: 1.5;
}

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

.ps-booking .ps-step-label {
  margin: 22px 0 9px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ps-accent-dark);
}

/* Schritt 1: Standort als Dropdown (Optik wie das frühere .booking-select) */
.ps-booking .ps-select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--ps-border);
  border-radius: 14px;
  background: var(--ps-bg);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
}

.ps-booking .ps-select:focus {
  border-color: var(--ps-accent);
  outline: 3px solid rgba(15, 140, 255, 0.18);
}

.ps-booking .ps-days,
.ps-booking .ps-times {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ps-booking .ps-chip {
  min-height: 38px;
  padding: 7px 15px;
  border: 1px solid rgba(16, 24, 64, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ps-text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ps-booking .ps-chip:hover {
  border-color: rgba(15, 140, 255, 0.4);
}

.ps-booking .ps-chip:focus-visible {
  outline: 2px solid var(--ps-accent);
  outline-offset: 2px;
}

.ps-booking .ps-chip.ps-active {
  border-color: transparent;
  background: linear-gradient(180deg, #16A0FF, var(--blue-deep));
  color: #fff;
  box-shadow: 0 6px 14px rgba(15, 110, 255, 0.3);
}

.ps-booking .ps-summary {
  margin-top: 16px;
  padding: 11px 13px;
  border: 1px solid rgba(15, 140, 255, 0.2);
  border-radius: 12px;
  background: rgba(15, 140, 255, 0.08);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ps-text);
}

/* Kontaktdaten: Name volle Breite, E-Mail/Telefon nebeneinander (wie zuvor).
   Die nth-of-type-Spalten greifen auf das feste Markup aus main.js:
   div 1 = Schrittüberschrift, 2 = Name, 3 = E-Mail, 4 = Telefon, 5 = Honeypot. */
.ps-booking form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.ps-booking form > * {
  grid-column: 1 / -1;
}

@media (min-width: 701px) {
  .ps-booking form > div:nth-of-type(3) {
    grid-column: 1 / 2;
  }

  .ps-booking form > div:nth-of-type(4) {
    grid-column: 2 / 3;
  }
}

.ps-booking label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ps-text);
}

.ps-booking input[type="text"],
.ps-booking input[type="email"],
.ps-booking input[type="tel"] {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--ps-border);
  border-radius: 14px;
  background: var(--ps-bg);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
}

.ps-booking input[type="text"]:focus,
.ps-booking input[type="email"]:focus,
.ps-booking input[type="tel"]:focus {
  border-color: var(--ps-accent);
  outline: 3px solid rgba(15, 140, 255, 0.18);
}

.ps-booking .ps-privacy {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 2px 0 0;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ps-muted);
}

.ps-booking .ps-privacy input {
  margin-top: 2px;
  accent-color: var(--ps-accent);
}

.ps-booking .ps-privacy a {
  color: var(--ps-accent-dark);
}

.ps-booking button.ps-submit {
  min-height: 54px;
  margin-top: 10px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #16A0FF, var(--blue-deep));
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  box-shadow:
    0 1px 2px rgba(8, 50, 140, 0.3),
    0 8px 22px rgba(15, 110, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, opacity 0.15s ease;
}

.ps-booking button.ps-submit:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #3FAEFF, #0E8AF0);
  box-shadow:
    0 2px 4px rgba(8, 50, 140, 0.28),
    0 12px 28px rgba(15, 110, 255, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.ps-booking button.ps-submit:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.ps-booking .ps-msg {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.ps-booking .ps-msg.ps-error {
  background: var(--ps-err-bg);
  border: 1px solid var(--ps-err-border);
}

.ps-booking .ps-msg.ps-success {
  background: var(--ps-ok-bg);
  border: 1px solid var(--ps-ok-border);
}

.ps-booking .ps-loading {
  padding: 16px 0 4px;
  color: var(--ps-muted);
  font-size: 0.95rem;
}

/* Honeypot: für Menschen unsichtbar, Bots füllen es trotzdem aus */
.ps-booking .ps-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  overflow: hidden;
}

.ps-booking .ps-recaptcha-note {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--ps-muted);
}

.ps-booking .ps-recaptcha-note a {
  color: var(--ps-muted);
}

/* ---------- Unterseiten: Impressum & Datenschutz ---------- */
.legal-header {
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(16, 24, 64, 0.06);
}

.legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-main {
  padding: 52px 0 90px;
}

.legal-main .container {
  max-width: 860px;
}

.legal-main h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4.4vw, 2.7rem);
  font-weight: 900;
  color: var(--navy);
}

.legal-stand {
  margin: 0 0 40px;
  color: var(--muted);
}

.legal-main h2 {
  margin: 42px 0 12px;
  font-size: 1.42rem;
  font-weight: 700;
  color: var(--navy);
}

.legal-main h3 {
  margin: 26px 0 8px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
}

.legal-main p,
.legal-main li {
  color: var(--ink);
}

.legal-main ul {
  padding-left: 22px;
}

.legal-main li + li {
  margin-top: 6px;
}

.legal-main a {
  color: var(--blue-deep);
  font-weight: 600;
  border-bottom: 2px solid rgba(15, 140, 255, 0.3);
}

.legal-main address {
  font-style: normal;
}

.legal-table {
  width: 100%;
  margin: 14px 0 8px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.legal-table th,
.legal-table td {
  padding: 10px 12px;
  border: 1px solid rgba(16, 24, 64, 0.1);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: rgba(15, 140, 255, 0.07);
  color: var(--navy);
}

.legal-footer {
  padding: 26px 0 42px;
  border-top: 1px solid rgba(16, 24, 64, 0.06);
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-footer a {
  color: var(--blue-deep);
  font-weight: 600;
}

@media (max-width: 700px) {
  .legal-main {
    padding: 36px 0 64px;
  }

  /* Tabellen auf Mobil als gestapelte Bloecke statt horizontalem Scroll */
  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table td {
    display: block;
  }

  .legal-table tr:first-child {
    /* Kopfzeile entfaellt; die Spaltennamen stehen als Label an den Zellen */
    display: none;
  }

  .legal-table tr {
    padding: 14px 0;
    border-bottom: 1px solid rgba(16, 24, 64, 0.1);
  }

  .legal-table tr:last-child {
    border-bottom: 0;
  }

  .legal-table td {
    padding: 0;
    border: 0;
  }

  .legal-table td + td {
    margin-top: 8px;
  }

  .legal-table td:first-child {
    font-weight: 700;
    color: var(--navy);
    overflow-wrap: anywhere;
  }

  .legal-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
  }
}

/* ---------- Fallback ohne backdrop-filter ---------- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card,
  .panel,
  .faq-list details,
  .usp-list li,
  .chip-list li,
  .hero-badges li,
  .btn-glass,
  .site-header.is-scrolled .header-inner {
    background: rgba(255, 255, 255, 0.92);
  }
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Farbwolken-Choreografie - untere Seitenhälfte
   Sehr subtile blaue Radials (gleiche Töne wie Hero/Ablauf),
   die als S-Kurve abwechselnd links/rechts die Seite
   hinunterwandern. Reine background-Layer auf den Sektionen:
   kein Pseudo-Element, kein z-index, kein Overflow möglich.
   Lesart: Ablauf läuft unten rechts aus → Ökosystem nimmt
   rechts auf, schwingt nach links → Standorte führt links an
   der Naht fort, schwingt nach rechts in den Fächer-Tint →
   Warum rechts → LernChance links (hinter dem Glas!) →
   FAQ füllt die leeren Seitenränder → Erstgespräch bekommt
   eine Bühnen-Wolke unter dem Navy-Panel.
   Intensität bewusst unter der Ablauf-Bühne (.06-.10 statt
   .10-.18), damit die Hierarchie der Sektionen erhalten bleibt.
   ============================================================ */

/* Standorte: dezente Wolken führen in den Fächer-Tint über. */
#standorte {
  background:
    radial-gradient(760px 480px at -10% 6%, rgba(15, 140, 255, 0.07), transparent 70%),
    radial-gradient(720px 460px at 105% 92%, rgba(56, 182, 255, 0.09), transparent 68%);
}

/* Warum: nach dem symmetrischen Fächer-Tint nimmt die Serpentine
   rechts wieder Fahrt auf, läuft unten links Richtung LernChance aus. */
#warum {
  background:
    radial-gradient(680px 440px at 105% 8%, rgba(56, 182, 255, 0.08), transparent 68%),
    radial-gradient(740px 480px at -8% 96%, rgba(15, 140, 255, 0.06), transparent 70%);
}

/* LernChance: Wolke gezielt HINTER dem Glass-Panel (Sektion hat
   padding-top 0, das Panel sitzt direkt oben). Der backdrop-filter
   des Panels (blur + saturate) hebt die Farbe sichtbar an -
   das Glas bekommt endlich etwas zu verwischen. */
#lernchance {
  background:
    radial-gradient(640px 380px at 14% 30%, rgba(15, 140, 255, 0.08), transparent 68%);
}

/* FAQ: Container ist nur 860px breit - die strukturell leeren
   Seitenränder tragen zwei hochformatige Wolken (rechts oben,
   links unten), der Inhalt selbst bleibt auf ruhigem Weiß. */
#faq {
  background:
    radial-gradient(560px 640px at 104% 18%, rgba(56, 182, 255, 0.09), transparent 68%),
    radial-gradient(600px 680px at -6% 78%, rgba(15, 140, 255, 0.07), transparent 70%);
}

/* Erstgespräch: breite, flache Bühnen-Wolke mittig unter dem
   Navy-Panel - das dunkle Panel schwebt auf blauem Dunst statt
   auf hartem Weiß. Dazu ein leiser linker Einlauf, der den
   FAQ-Ausschwung über den Doodle-Divider hinweg fortführt. */
#erstgespraech {
  background:
    radial-gradient(900px 420px at 50% 98%, rgba(15, 140, 255, 0.1), transparent 70%),
    radial-gradient(520px 360px at -4% 12%, rgba(56, 182, 255, 0.07), transparent 68%);
}

/* Mobile: Sektionen sind hier deutlich höher, zu viele Wolken
   wirken fleckig. Pro Sektion nur noch eine kleinere Wolke,
   der Links/Rechts-Rhythmus bleibt erhalten. */
@media (max-width: 700px) {
  #standorte {
    background:
      radial-gradient(440px 320px at -14% 8%, rgba(15, 140, 255, 0.06), transparent 70%);
  }

  #warum {
    background:
      radial-gradient(420px 300px at 112% 6%, rgba(56, 182, 255, 0.07), transparent 68%);
  }

  #lernchance {
    background:
      radial-gradient(400px 280px at 8% 26%, rgba(15, 140, 255, 0.07), transparent 68%);
  }

  #faq {
    background:
      radial-gradient(380px 460px at 110% 14%, rgba(56, 182, 255, 0.07), transparent 68%);
  }

  #erstgespraech {
    background:
      radial-gradient(520px 300px at 50% 98%, rgba(15, 140, 255, 0.09), transparent 70%);
  }
}

/* ========== "Kennen Sie das?" - Sektions-Tint ==========
   Die Sektion selbst ist das Frage-Antwort-Panel (.kennen-bridge /
   .kennen-qa, siehe weiter unten). Hier nur die Hintergrundfläche. */

/* Harter Cut oben (direkt unter dem Divider): Tint startet sofort voll,
   kein weiches Einblenden. Unten läuft die Fläche weich aus. */
.kennen.section-tint {
  background: linear-gradient(180deg,
    rgba(232, 244, 255, 0.55) 0%,
    rgba(232, 244, 255, 0.55) 82%,
    rgba(232, 244, 255, 0) 100%);
}

/* ============================================================================
   TABLET-PORTRAIT (701-980px)  ·  eigene Zwischenstufe
   ----------------------------------------------------------------------------
   Lücke geschlossen zwischen Handy (≤700, per-Seite-Feinschliff) und
   Laptop/Tablet-Landscape (≥981 bzw. der max-height:860-Landscape-Regeln).
   Portrait-Tablets (iPad 820×1180, iPad Pro 11" 834×1194 …) sind BREIT genug
   für die Kachel-Optik, aber zu SCHMAL fürs Desktop-Nebeneinander -> hier
   dieselbe helle Kachel wie am Laptop, Inhalt aber vertikal gestapelt
   (Text oben, freigestellte Person mittig darunter). Steht bewusst als
   LETZTER Block, damit sie den generischen ≤980-/≤820-Regeln vorgeht
   (gleiche Spezifität -> späteres gewinnt) und den alten Kaskaden-Bug
   (randlose Kachel, oben schwebendes Mini-Bild, Text/Bild-Überlappung) heilt.
   Landscape-Tablets sind >980px breit und daher nie in diesem Bereich. */
/* Zweite Bedingung (per Komma = ODER): GROSSE Portrait-Tablets oberhalb 980px,
   allen voran das iPad Pro 13" (Portrait = 1024px breit). Die fielen bisher in
   den Desktop-Zweispalter (Bild absolut rechts) -> sah gequetscht aus. Über
   `orientation: portrait` greift der Stapel NUR auf hochkant gehaltenen Geräten;
   echte Laptops/Desktops sind immer Landscape und behalten den Zweispalter.
   Deckel 1180px = großzügig über 1024, schließt gedrehte Groß-Monitore aus. */
@media (min-width: 701px) and (max-width: 980px),
       (min-width: 981px) and (max-width: 1180px) and (orientation: portrait) {
  /* Kachel-Rahmen wiederherstellen: rundum luftiger, gleichmäßiger slate-Rand
     (der ≤980-Block hatte padding:130px 0 0 erzwungen -> Kachel klebte randlos). */
  .hero--card {
    min-height: 0;
    padding: clamp(96px, 12vh, 118px) clamp(28px, 5vw, 56px) clamp(44px, 6vw, 60px);
    overflow: visible;
  }
  /* Kachel selbst: einspaltiger Stapel statt Zwei-Spalten-Reihe. */
  .hero--card .hero-card {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    max-height: none;
    padding: 0;
  }
  .hero--card .hero-card-inner {
    flex-direction: column;
    align-items: stretch;
    padding: clamp(36px, 5vw, 52px);
    gap: clamp(24px, 3.5vw, 32px);
  }
  /* Textspalte über die volle Kachelbreite (war 60%/absolut). */
  .hero--card .hero-inner {
    position: static;
    z-index: 2;
    width: 100%;
    max-width: none;
    padding: 0;
  }
  /* Freigestellte Person: NORMALER Fluss (nicht mehr absolut), mittig unter
     dem Text, contain -> nie angeschnitten, nie über dem Text. */
  .hero--card .hero-media {
    position: relative;
    inset: auto;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    order: 2;
    z-index: 1;
    width: min(100%, 460px);
    height: clamp(300px, 42vw, 420px);
    margin: 0 auto;
  }
  .hero--card .hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
  }

  /* Zahlen-Kacheln: 3 nebeneinander bleiben (luftig statt gestreckt-gestapelt),
     nur schmalere Ränder + kompakteres Innenpolster wie die Hero-Kachel. */
  .stats-cards {
    padding: 0 clamp(28px, 5vw, 56px) 56px;
  }
  .stats-cards-row {
    flex-direction: row;
    gap: 16px;
  }
  .stat-card {
    flex: 1 1 0;
    min-height: 150px;
    padding: 26px 24px;
  }

  /* Karten-Raster: 2 Spalten statt einer gestreckten Spalte (der ≤980-Block
     hatte cols-3 pauschal auf 1fr gesetzt). Bei 3 Karten -> 2 oben, 1 unten. */
  .card-grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Standorte SIND genau 3 Karten -> hier bewusst 3 NEBENEINANDER (2+1 wirkte
     unsymmetrisch). Kompakter: kleinere Fotos + engeres Polster, damit 3 Karten
     sauber in die Portrait-Breite passen. Scoped auf #standorte (nur Startseite). */
  #standorte .card-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  #standorte .card.location {
    padding: 20px 16px;
  }
  #standorte .location-photo {
    margin: -20px -16px 14px;
  }
  #standorte .location h3 {
    font-size: 1.05rem;
  }
  #standorte .location p {
    min-height: 0;
    font-size: 0.92rem;
  }
  /* Link kompakt, damit auch "Mehr zu Schenklengsfeld →" in der schmalen
     3-spaltigen Karte einzeilig bleibt (längster Ortsname). */
  #standorte .card-link {
    font-size: 0.84rem;
  }
  #standorte .card-link .icon {
    width: 16px;
    height: 16px;
  }
}

/* Ablauf auf dem Handy: dieselben kompakten Schritt-Kacheln auf Start-,
   Bewerbungs- und allen Standortseiten. Die Pfeile stammen aus dem vorhandenen
   Doodle-Iconbestand und verbinden die Karten nur in der mobilen Stapelansicht. */
@media (max-width: 700px) {
  .section-ablauf {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .section-ablauf .section-head {
    margin-bottom: 27px;
  }

  .section-ablauf .section-head p:last-child {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .section-ablauf .step-flow {
    gap: 35px;
    padding-top: 0;
  }

  .section-ablauf .step {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 15px 45px 15px 15px;
    border-radius: 19px;
    box-shadow: 0 12px 28px rgba(16, 60, 130, 0.07);
  }

  .section-ablauf .step:not(:last-child)::after {
    top: calc(100% + 7px);
    left: 50%;
    width: 27px;
    height: 21px;
    margin: 0 0 0 -13.5px;
    background: url("assets/img/doodle-arrow-down.svg") center / contain no-repeat;
    opacity: 0.48;
    transform: none;
  }

  .section-ablauf .step-icon {
    width: 42px;
    height: 42px;
    font-size: 1.35rem;
  }

  .section-ablauf .step-body {
    min-width: 0;
    padding-top: 1px;
  }

  .section-ablauf .step-body h3 {
    margin: 0 0 3px;
    /* Chevron-Freiraum kommt hier vom .step-padding (rechts 45px) -> Titel-Padding zurücksetzen */
    padding-right: 0;
    font-size: 1rem;
    line-height: 1.28;
  }

  .section-ablauf .step-body > p {
    font-size: 0.84rem;
    line-height: 1.42;
  }

  .section-ablauf .step-toggle::after {
    border-radius: 19px;
  }

  .section-ablauf .step-chevron {
    top: 14px;
    right: 13px;
    width: 28px;
    height: 28px;
  }

  .section-ablauf .step-chevron .icon {
    width: 13px;
    height: 13px;
  }

  .section-ablauf .step-window > p {
    margin-top: 12px;
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .section-ablauf .step-detail-list {
    gap: 6px;
    margin-top: 11px;
  }

  .section-ablauf .step-detail-list li {
    gap: 7px;
    font-size: 0.81rem;
    line-height: 1.4;
  }

  .section-ablauf .step-detail-list .icon {
    width: 14px;
    height: 14px;
  }

  .section-ablauf .step.is-open {
    padding-bottom: 17px;
  }
}

/* ========== Startseite: Konzept-Brücke ==========
   EINE ruhige weiße Karte auf der Amber-Fläche, aufgebaut als Frage-Antwort-
   Raster: links die Frage, die Eltern stellen, rechts unsere Antwort in einem
   Satz. Damit hat das Auge genau einen Anlaufpunkt statt vier konkurrierender
   Kästen. Abschluss: eine Hinweiszeile + ein einziger Link ins Konzept. */
.kennen-bridge .kennen-bridge__head {
  max-width: 820px;
  margin-bottom: 30px;
}

.kennen-bridge__panel {
  --qa-cols: minmax(0, 0.95fr) minmax(0, 1.05fr);
  --qa-line: 1px solid rgba(24, 32, 82, 0.08);
  padding: 8px 34px 26px;
  border: 1px solid rgba(24, 32, 82, 0.09);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(24, 32, 82, 0.07);
}

.kennen-qa {
  margin: 0;
}

/* Spaltenköpfe und Zeilen teilen dasselbe Raster, damit die Labels exakt über
   den Spalten sitzen. */
.kennen-qa__head,
.kennen-qa > div {
  display: grid;
  grid-template-columns: var(--qa-cols);
  gap: 6px 28px;
  align-items: center;
}

.kennen-qa__head {
  padding: 16px 0 12px;
}

.kennen-qa__label {
  margin: 0;
  color: var(--blue-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kennen-qa__label + .kennen-qa__label {
  color: rgba(26, 33, 85, 0.42);
}

.kennen-qa > div {
  padding: 19px 0;
  border-top: var(--qa-line);
}

.kennen-qa dt {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.kennen-qa__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: linear-gradient(145deg, #f1f9ff, #dceeff);
  color: var(--blue-deep);
  box-shadow: inset 0 1px 0 #fff;
}

.kennen-qa__icon .icon-doodle {
  width: 24px;
  height: 24px;
}

.kennen-qa dd {
  margin: 0;
  color: rgba(26, 33, 85, 0.68);
  font-size: 0.97rem;
  line-height: 1.55;
}

.kennen-bridge__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  padding-top: 20px;
  border-top: var(--qa-line);
}

.kennen-bridge__foot p {
  margin: 0;
  max-width: 66ch;
  color: rgba(26, 33, 85, 0.6);
  font-size: 0.9rem;
  line-height: 1.5;
}

.kennen-bridge__foot .card-link {
  margin: 0;
  white-space: nowrap;
}

/* Tablet/Handy: Frage und Antwort stapeln, die Antwort rückt unter den
   Fragetext ein. Die Spaltenlabels entfallen. */
@media (max-width: 860px) {
  .kennen-bridge__panel {
    --qa-cols: minmax(0, 1fr);
    padding: 6px 24px 22px;
  }

  .kennen-qa__head {
    display: none;
  }

  .kennen-qa > div {
    gap: 8px;
    padding: 19px 0;
  }

  .kennen-qa > div:first-child {
    padding-top: 20px;
    border-top: 0;
  }

  .kennen-qa dd {
    padding-left: 60px;
  }
}

@media (max-width: 700px) {
  .kennen-bridge .kennen-bridge__head {
    margin-bottom: 24px;
  }

  .kennen-bridge__panel {
    padding: 4px 18px 20px;
    border-radius: 22px;
  }

  .kennen-qa > div {
    padding: 17px 0;
  }

  .kennen-qa dt {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    font-size: 0.94rem;
  }

  .kennen-qa__icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .kennen-qa__icon .icon-doodle {
    width: 22px;
    height: 22px;
  }

  .kennen-qa dd {
    padding-left: 54px;
    font-size: 0.9rem;
  }

  .kennen-bridge__foot {
    padding-top: 17px;
  }

  .kennen-bridge__foot p {
    font-size: 0.86rem;
  }
}

/* Standortseiten: vollständige Leistungs-Copy in kompakten mobilen Zeilen. */
@media (max-width: 700px) {
  .location-services {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .location-services .section-head {
    margin-bottom: 27px;
  }

  .location-services .section-head > p:last-child {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .location-services .card-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .location-services .card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 13px;
    row-gap: 4px;
    align-items: start;
    padding: 15px 16px;
    border-radius: 19px;
    box-shadow: 0 12px 28px rgba(16, 60, 130, 0.065);
  }

  .location-services .card-icon {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 14px;
  }

  .location-services .card-icon .icon,
  .location-services .card-icon .icon-doodle {
    width: 23px;
    height: 23px;
  }

  .location-services .card h3 {
    grid-column: 2;
    margin: 0;
    font-size: 1rem;
    line-height: 1.27;
  }

  .location-services .card p {
    grid-column: 2;
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.42;
  }
}

/* ---------- Kennzahlen direkt unter dem Hero · Landscape ----------
   Gemeinsame, ruhige Trust-Leiste für alle Seiten mit .stats-cards:
   keine Einzelkacheln, bewusst schmaler als die Hero-Bühne und mit weich
   auslaufenden Trennern. Portrait/Mobil behalten ihre bisherige Darstellung. */
@media (min-width: 821px) and (orientation: landscape) {
  .stats-cards {
    padding: 10px 56px 68px;
  }

  .stats-cards-row {
    width: min(100%, 1060px);
    margin: 0 auto;
    gap: 0;
  }

  .stats-cards .stat-card {
    min-height: 130px;
    padding: 22px 46px;
    align-items: center;
    text-align: center;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .stats-cards .stat-card::before {
    display: none;
  }

  .stats-cards .stat-card:not(:last-child)::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 15%;
    right: 0;
    width: 1px;
    height: 70%;
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(22, 160, 255, 0.18) 18%,
      rgba(16, 60, 130, 0.3) 50%,
      rgba(22, 160, 255, 0.18) 82%,
      transparent 100%
    );
    box-shadow: 0 0 12px rgba(22, 160, 255, 0.14);
    pointer-events: none;
  }

  .stats-cards .stat-card > span {
    max-width: 24ch;
    line-height: 1.45;
  }
}
