/* ==========================================================================
   Karriereseite Ergotherapie, animierte Fassung (November 2026), abgeleitet von der Physio-Seite
   --------------------------------------------------------------------------
   Gestaltung wie die neue AktivPlus-Website: dunkler Grund, Logo-Grün, Outfit
   und Inter, das Plus aus dem Logo als Form.
   Alles, was Inhalte versteckt oder festpinnt, hängt an html.motion. Ohne
   diese Klasse (kein JavaScript oder "Bewegung reduzieren") steht die Seite
   ruhig und vollständig da. Schriften, Bilder und Video liegen lokal.
   ========================================================================== */

@font-face {
  font-family: 'Outfit';
  src: url('fonts/outfit.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --gruen: #94C85D;
  --gruen-hell: #B2DB85;
  --gruen-tief: #4B7722;
  --nacht: #0E110D;
  --nacht-2: #161A14;
  --nacht-3: #20251D;
  --linie: rgba(242, 243, 239, 0.14);
  --hell: #F2F3EF;
  --hell-2: rgba(242, 243, 239, 0.74);
  --hell-3: rgba(242, 243, 239, 0.5);
  --fehler: #F0A285;

  --titel: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1280px;
  --rand: clamp(1.25rem, 5vw, 4.5rem);
  --kopf-h: 68px;
  --raum: clamp(4.5rem, 11vw, 9.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 22px;
}

/* 1 Grundlagen ------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--kopf-h); }
html:not(.motion) { scroll-behavior: auto; }

body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--hell);
  background: var(--nacht);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }

:focus-visible { outline: 3px solid var(--gruen); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gruen); color: var(--nacht); }

.wrap { width: min(100% - 2 * var(--rand), var(--wrap)); margin-inline: auto; }
.gruen { color: var(--gruen); }

.sprung {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  background: var(--gruen); color: var(--nacht); padding: 0.6rem 1rem;
  border-radius: 10px; font-weight: 600; text-decoration: none;
}
.sprung:focus { top: 1rem; }

.fortschritt {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60;
  background: var(--gruen); transform-origin: 0 50%; transform: scaleX(var(--seite, 0));
}
html:not(.motion) .fortschritt { display: none; }

/* 2 Bausteine ------------------------------------------------------------- */

.plus {
  display: inline-block; width: 1em; aspect-ratio: 1; flex: none;
  background: var(--gruen);
  clip-path: polygon(31.5% 0, 68.5% 0, 68.5% 31.5%, 100% 31.5%, 100% 68.5%, 68.5% 68.5%,
    68.5% 100%, 31.5% 100%, 31.5% 68.5%, 0 68.5%, 0 31.5%, 31.5% 31.5%);
}

.vor {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-family: var(--titel); font-size: 0.875rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gruen);
}
.vor .plus { width: 0.8em; }

.titel {
  font-family: var(--titel); font-weight: 600;
  font-size: clamp(2.3rem, 1.2rem + 5vw, 5rem);
  line-height: 1.03; letter-spacing: -0.035em; text-wrap: balance;
}
.vorspann { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); line-height: 1.55; color: var(--hell-2); max-width: 36em; }

.abschnitt { position: relative; padding-block: var(--raum); }
.kopfzeile { display: grid; gap: 1.1rem; margin-bottom: clamp(2.25rem, 5vw, 4.5rem); }

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
  min-height: 56px; padding: 0.9rem 1.5rem; border-radius: 999px;
  background: var(--gruen); color: var(--nacht);
  font-family: var(--titel); font-weight: 600; font-size: 1.0625rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  transition: background 0.25s, transform 0.4s var(--ease);
  will-change: transform;
}
.knopf:hover { background: var(--gruen-hell); }
.knopf:active { transform: scale(0.97); }
.knopf--klein { min-height: 44px; padding: 0.55rem 1.1rem; font-size: 0.9375rem; }
.knopf--voll { width: 100%; }
.knopf__pfeil {
  width: 1.05em; height: 1.05em; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.4s var(--ease);
}
.knopf:hover .knopf__pfeil { transform: translateX(4px); }

/* Einblenden beim Scrollen */
.motion [data-zeig] {
  opacity: 0; transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--v, 0) * 90ms);
}
.motion [data-zeig].da { opacity: 1; transform: none; }

/* Überschriften, in Buchstaben zerlegt (seite.js) */
.wort { display: inline-block; white-space: nowrap; }
.zeichen { display: inline-block; }
.motion [data-teile] .zeichen {
  opacity: 0; transform: translateY(0.7em) rotate(6deg);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i) * 22ms + var(--start, 0ms));
}
.motion [data-teile].da .zeichen { opacity: 1; transform: none; }

/* 3 Kopf ------------------------------------------------------------------ */

.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--kopf-h);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.kopf.fest {
  background: rgba(14, 17, 13, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--linie);
}
.kopf__innen { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.kopf__logo img { height: 40px; width: auto; }
.kopf__nav { display: none; gap: 2rem; font-size: 0.9375rem; }
.kopf__nav a { text-decoration: none; color: var(--hell-2); transition: color 0.2s; }
.kopf__nav a:hover { color: var(--gruen); }
@media (min-width: 900px) { .kopf__nav { display: flex; } }

/* 4 Bühne ----------------------------------------------------------------- */

.held { position: relative; background: var(--nacht); }
.held__pin {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; isolation: isolate;
}
.held__grund {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(60% 50% at 78% 38%, rgba(148, 200, 93, 0.2), transparent 70%),
    radial-gradient(50% 40% at 10% 90%, rgba(148, 200, 93, 0.08), transparent 70%);
}
.held__fenster, .held__schatten, .held__schleier { position: absolute; inset: 0; }
.held__fenster { z-index: -2; }
.held__fenster img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; will-change: transform; }
@media (min-width: 900px) {
  .held__fenster img { object-position: 50% 14%; }
  .motion .held__fenster img { position: absolute; inset: -12%; width: 124%; height: 124%; max-width: none; }
}
.held__schatten { z-index: -3; background: var(--gruen); display: none; }
.held__schleier { z-index: -1; background: linear-gradient(180deg, rgba(14, 17, 13, 0.55), rgba(14, 17, 13, 0.92)); }

.held__inhalt {
  position: relative; display: grid; gap: 1.1rem;
  padding-top: calc(var(--kopf-h) + 2rem); padding-bottom: clamp(1.75rem, 5vh, 3.5rem);
}
.held h1 {
  font-family: var(--titel); font-weight: 600;
  font-size: clamp(3.1rem, 1rem + 10.5vw, 8.25rem);
  line-height: 0.94; letter-spacing: -0.045em;
}
.held__text { font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.35rem); line-height: 1.5; color: var(--hell-2); max-width: 30em; }
.held__knoepfe { display: grid; gap: 0.75rem; justify-items: start; margin-top: 0.4rem; }
.held__klein { font-size: 0.9375rem; color: var(--hell-3); }
.held__akte, .held__weiter { display: none; }

@media (max-width: 899px) {
  .held__knoepfe { justify-items: stretch; }
  .held__klein { text-align: center; }
}
@media (min-width: 900px) {
  .held__pin { justify-content: center; }
  .held__inhalt { padding-bottom: 0; padding-top: var(--kopf-h); }
  .held__text { max-width: 24em; }
}

/* Mit Bewegung: Bühne bleibt stehen, das Plus wächst zum ganzen Bild */
.motion .held { height: 330vh; }
.motion .held__pin { position: sticky; top: 0; height: 100vh; height: 100svh; }
.motion .held__schatten { display: block; opacity: var(--schatten, 1); }
.motion .held__fenster, .motion .held__schatten { will-change: clip-path; clip-path: inset(50%); }
.motion .held__schleier { opacity: var(--schleier, 0); background: rgba(14, 17, 13, 1); }
.motion .held__inhalt { opacity: var(--inhalt, 1); transform: translateY(calc((1 - var(--inhalt, 1)) * -48px)); }
.motion .held__inhalt.weg { visibility: hidden; }
/* Auftritt beim Laden als CSS-Animation, damit er nicht auf das Skript warten muss */
.motion .held h1 .zeichen { opacity: 1; transform: none; transition: none; animation: zeichen-rein 0.9s var(--ease) both; animation-delay: calc(var(--i) * 26ms + 250ms); }
.motion .held__inhalt > :not(h1) { animation: teil-rein 0.9s var(--ease) both; }
.motion .held__inhalt > .vor { animation-delay: 0.1s; }
.motion .held__inhalt > .held__text { animation-delay: 0.75s; }
.motion .held__inhalt > .held__knoepfe { animation-delay: 0.9s; }
@keyframes zeichen-rein { from { opacity: 0; transform: translateY(0.7em) rotate(6deg); } }
@keyframes teil-rein { from { opacity: 0; transform: translateY(24px); } }

.motion .held__akte {
  /* Spalte mit Mitte statt Raster: Safari zog die Rasterzeilen sonst über die ganze Höhe auseinander */
  position: absolute; inset: 0; margin: 0 auto;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 0.04em; pointer-events: none; text-shadow: 0 2px 24px rgba(14, 17, 13, 0.75);
  font-family: var(--titel); font-weight: 600;
  font-size: clamp(2.7rem, 1rem + 8.4vw, 8rem); line-height: 1; letter-spacing: -0.045em;
}
/* Ohne Weichzeichner: der machte die Zeilen auf Handys blass und schwer lesbar */
.held__akte span {
  opacity: 0; transform: translateY(0.4em);
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease);
}
.held__akte span.an { opacity: 1; transform: none; }

.motion .held__weiter {
  position: absolute; left: 50%; bottom: 1.1rem; transform: translateX(-50%);
  display: none; align-items: center; gap: 0.75rem; flex-direction: column;
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--hell-3);
  opacity: var(--inhalt, 1);
}
.held__weiter i { width: 1px; height: 42px; background: linear-gradient(var(--gruen), transparent); animation: tropfen 1.8s var(--ease) infinite; transform-origin: 50% 0; }
@keyframes tropfen { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (min-width: 900px) and (min-height: 640px) { .motion .held__weiter { display: flex; } }

/* 5 Laufband -------------------------------------------------------------- */

.laufband { overflow: hidden; border-block: 1px solid var(--linie); background: var(--nacht-2); padding-block: clamp(1rem, 2.4vw, 1.75rem); }
.laufband__spur { display: flex; width: max-content; transform: skewX(calc(var(--tempo, 0) * -1deg)); transition: transform 0.4s var(--ease); }
.motion .laufband__spur { animation: laufen 38s linear infinite; }
.laufband__teil {
  display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.75rem); padding-right: clamp(1.25rem, 3vw, 2.75rem);
  font-family: var(--titel); font-weight: 500; font-size: clamp(1.35rem, 1rem + 2.2vw, 2.75rem); letter-spacing: -0.02em; white-space: nowrap;
}
.laufband__teil .plus { width: 0.55em; }
@keyframes laufen { to { transform: translateX(-50%); } }

/* 6 Eckdaten -------------------------------------------------------------- */

.eck { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.eck__liste { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 1.25rem; }
.eck dt { font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hell-3); margin-bottom: 0.3rem; }
.eck dd { font-family: var(--titel); font-weight: 500; font-size: clamp(1.1rem, 1rem + 0.8vw, 1.55rem); line-height: 1.2; }
@media (min-width: 900px) {
  .eck__liste { grid-template-columns: repeat(4, 1fr); }
  .eck__liste > div { border-left: 1px solid var(--linie); padding-left: 1.5rem; }
}

/* 7 Vorteile -------------------------------------------------------------- */

.vorteile { background: var(--nacht-2); }
.raster { display: grid; gap: 1rem; }
.karte {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 0.7rem;
  padding: clamp(1.4rem, 3vw, 2.25rem); border-radius: var(--radius);
  background: var(--nacht-3); border: 1px solid var(--linie);
  min-height: 15rem;
}
.karte h3 { font-family: var(--titel); font-weight: 600; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); line-height: 1.12; letter-spacing: -0.02em; margin-top: auto; }
.karte p { color: var(--hell-2); }
.karte__link { color: var(--gruen); text-underline-offset: 4px; }
.karte__quelle { font-size: 0.8125rem; color: var(--hell-3) !important; }
/* Lichtfleck, der dem Zeiger folgt */
.karte[data-licht]::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(148, 200, 93, 0.2), transparent 65%);
}
.karte[data-licht]:hover::before { opacity: 1; }

.karte--gehalt { gap: 1.5rem; }
.karte--gehalt h3 { margin-top: 0; }
.karte--gehalt .karte__text { display: grid; gap: 0.8rem; }
.balken { position: relative; display: flex; align-items: flex-end; gap: 0.75rem; height: 11rem; padding-bottom: 1.4rem; margin-top: auto; }
.balken__saeule { position: relative; flex: 1; border-radius: 14px 14px 4px 4px; transform-origin: 50% 100%; }
.balken__saeule span { position: absolute; left: 0.8rem; top: 0.7rem; font-family: var(--titel); font-weight: 600; font-size: 0.9375rem; line-height: 1.15; }
.balken__saeule--median { height: 62%; background: rgba(242, 243, 239, 0.12); }
.balken__saeule--wir { height: 100%; background: var(--gruen); color: var(--nacht); }
.balken small { position: absolute; left: 0; bottom: 0; font-size: 0.75rem; color: var(--hell-3); }
.motion .balken__saeule { transform: scaleY(0); transition: transform 1.3s var(--ease) 0.25s; }
.motion .balken__saeule--wir { transition-delay: 0.5s; }
.motion .balken__saeule span { opacity: 0; transition: opacity 0.5s 1.2s; }
.motion .da .balken__saeule { transform: none; }
.motion .da .balken__saeule span { opacity: 1; }

.karte--zahl { background: var(--gruen); color: var(--nacht); border-color: transparent; }
.karte--zahl p { color: rgba(14, 17, 13, 0.78); }
.karte__zahl { font-family: var(--titel); font-weight: 700; font-size: clamp(4.5rem, 2rem + 11vw, 8.5rem); line-height: 0.9; letter-spacing: -0.05em; color: var(--nacht) !important; font-variant-numeric: tabular-nums; }

.gutschein {
  position: relative; width: min(100%, 15rem); aspect-ratio: 1.6; border-radius: 16px; padding: 1rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(135deg, #2c3427, #171b15); border: 1px solid var(--linie);
  box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.7);
  transform: rotate(-5deg); transition: transform 0.7s var(--ease);
}
.karte:hover .gutschein { transform: rotate(0deg) translateY(-4px); }
.gutschein .plus { position: absolute; right: 1rem; top: 1rem; width: 1.6rem; }
.gutschein span { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hell-3); }
.gutschein b { font-family: var(--titel); font-weight: 600; font-size: 1.4rem; }

.karte--bild { padding: 0; min-height: 22rem; justify-content: flex-end; }
.karte--bild img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.karte--bild:hover img { transform: scale(1.06); }
.karte--bild::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(14, 17, 13, 0.92)); }
.karte__auf { display: grid; gap: 0.5rem; padding: clamp(1.4rem, 3vw, 2.25rem); }

.wechsel { position: relative; height: 1.1em; font-family: var(--titel); font-weight: 600; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1.1; letter-spacing: -0.03em; color: var(--gruen) !important; }
.wechsel span { position: absolute; left: 0; top: 0; white-space: nowrap; }
.wechsel span:not(:first-child) { display: none; }
.motion .wechsel span { display: block !important; opacity: 0; animation: wechsel 8s infinite; }
.motion .wechsel span:nth-child(2) { animation-delay: 2s; }
.motion .wechsel span:nth-child(3) { animation-delay: 4s; }
.motion .wechsel span:nth-child(4) { animation-delay: 6s; }
@keyframes wechsel {
  0% { opacity: 0; transform: translateY(0.5em); }
  4%, 22% { opacity: 1; transform: none; }
  26%, 100% { opacity: 0; transform: translateY(-0.5em); }
}

@media (min-width: 900px) {
  .raster { grid-template-columns: repeat(12, 1fr); gap: 1.25rem; }
  .karte { grid-column: span 4; min-height: 21rem; }
  .karte--gehalt { grid-column: span 7; flex-direction: row; align-items: stretch; gap: 2.5rem; }
  .karte--gehalt .karte__text { flex: 1.3; align-content: center; }
  .karte--gehalt .balken { flex: 1; height: auto; margin-top: 0; }
  .karte--zahl { grid-column: span 5; }
  .karte--halb { grid-column: span 6; min-height: 14rem; }
}

/* 8 Lesesatz -------------------------------------------------------------- */

.lese { padding-block: clamp(5rem, 14vw, 12rem); }
.lese__satz { font-family: var(--titel); font-weight: 500; font-size: clamp(1.75rem, 1rem + 3.6vw, 4rem); line-height: 1.14; letter-spacing: -0.03em; max-width: 22em; }
.motion .lese__satz .lw { opacity: 0.16; transition: opacity 0.35s; }
.motion .lese__satz .lw.an { opacity: 1; }

/* 9 Ein Weg durchs Haus --------------------------------------------------- */

.weg { background: var(--nacht-2); padding-block: var(--raum); }
.weg__kopf { display: grid; gap: 1.1rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.weg__spur {
  display: flex; gap: 1rem; padding-inline: var(--rand);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.weg__spur::-webkit-scrollbar { display: none; }
.station { position: relative; flex: none; width: min(82vw, 30rem); scroll-snap-align: center; display: grid; gap: 0.6rem; align-content: start; }
.station figure { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 0.6rem; background: var(--nacht-3); }
.station img { width: 100%; height: 100%; object-fit: cover; }
.station__nr { font-family: var(--titel); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.14em; color: var(--gruen); }
.station h3 { font-family: var(--titel); font-weight: 600; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.1; letter-spacing: -0.02em; }
.station p { color: var(--hell-2); max-width: 26em; }
.weg__leiste { display: none; }

/* Am großen Bildschirm mit Bewegung: senkrecht scrollen, waagrecht fahren */
@media (min-width: 900px) and (min-height: 620px) {
  .motion .weg { padding-block: 0; }
  .motion .weg__pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: var(--kopf-h); }
  .motion .weg__spur { overflow: visible; gap: clamp(2rem, 4vw, 4rem); width: max-content; padding-right: 30vw; will-change: transform; }
  .motion .station { width: min(40vw, 34rem); }
  .motion .station figure { aspect-ratio: auto; height: min(42vh, 26rem); }
  .motion .station img { transform: scale(1.12) translateX(calc(var(--zug, 0) * 1px)); }
  .motion .weg__leiste { display: block; width: min(100% - 2 * var(--rand), var(--wrap)); margin: 2.25rem auto 0; height: 2px; background: var(--linie); }
  .weg__leiste i { display: block; height: 100%; background: var(--gruen); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
}

/* 10 Trainingsfläche ------------------------------------------------------ */

.flaeche { padding-bottom: var(--raum); }
.flaeche__rahmen {
  position: relative; height: 86vh; height: 86svh; max-height: 60rem; overflow: hidden; isolation: isolate;
  display: flex; align-items: flex-end;
}
.motion .flaeche__rahmen { clip-path: inset(calc((1 - var(--auf, 1)) * 9%) calc((1 - var(--auf, 1)) * 7%) round calc((1 - var(--auf, 1)) * 40px)); }
.flaeche__rahmen video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.motion .flaeche__rahmen video { transform: scale(calc(1.25 - var(--auf, 1) * 0.25)); }
.flaeche__rahmen::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 17, 13, 0.15) 30%, rgba(14, 17, 13, 0.9)); }
.flaeche__text { display: grid; gap: 1.1rem; padding-bottom: clamp(2rem, 6vw, 4.5rem); }
.flaeche__unten { display: grid; gap: 2rem; padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.begriffe { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.begriffe li {
  padding: 0.55rem 1.05rem; border-radius: 999px; border: 1px solid var(--linie);
  font-family: var(--titel); font-weight: 500; font-size: clamp(1rem, 0.9rem + 0.5vw, 1.3rem); color: var(--hell);
}
.begriffe li.gruen { background: var(--gruen); border-color: transparent; color: var(--nacht); }
.motion .begriffe li { opacity: 0; transform: scale(0.6) translateY(16px); transition: opacity 0.5s var(--ease), transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); transition-delay: calc(var(--i, 0) * 45ms); }
.motion .begriffe.da li { opacity: 1; transform: none; }

/* 11 Ablauf --------------------------------------------------------------- */

.ablauf { background: var(--nacht-2); }
.schritte { position: relative; display: grid; gap: clamp(2rem, 5vw, 3.5rem); padding-left: 4.25rem; }
.schritte::before, .schritte::after { content: ''; position: absolute; left: 1.4rem; top: 0.5rem; bottom: 0.5rem; width: 2px; background: var(--linie); }
.schritte::after { background: var(--gruen); transform-origin: 50% 0; transform: scaleY(var(--p, 1)); }
.schritte li { position: relative; display: grid; gap: 0.5rem; }
.schritte b {
  position: absolute; left: -4.25rem; top: -0.3rem; z-index: 1; width: 2.9rem; height: 2.9rem; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--titel); font-weight: 600; font-size: 1.2rem;
  background: var(--nacht-2); border: 2px solid var(--linie); color: var(--hell-2);
  transition: background 0.5s, color 0.5s, border-color 0.5s, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.schritte li.erreicht b, html:not(.motion) .schritte b { background: var(--gruen); border-color: var(--gruen); color: var(--nacht); }
.schritte li.erreicht b { transform: scale(1.12); }
.schritte h3 { font-family: var(--titel); font-weight: 600; font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2.1rem); line-height: 1.12; letter-spacing: -0.02em; }
.schritte p { color: var(--hell-2); max-width: 32em; }
@media (min-width: 900px) {
  .ablauf__innen { display: grid; grid-template-columns: 1fr 1.1fr; gap: 5rem; align-items: start; }
  .ablauf .kopfzeile { position: sticky; top: calc(var(--kopf-h) + 3rem); }
}

/* 12 Kurzbewerbung -------------------------------------------------------- */

.bewerben { overflow: hidden; isolation: isolate; }
.bewerben__glanz {
  position: absolute; z-index: -1; left: 50%; top: 40%; width: 120vmax; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(148, 200, 93, 0.16), transparent);
}
.motion .bewerben__glanz { animation: atmen 9s ease-in-out infinite; }
@keyframes atmen { 50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.6; } }
.bewerben__innen { display: grid; gap: 2.5rem; }
.bewerben__kopf { display: grid; gap: 1.1rem; align-content: start; }
.bewerben__wege { display: grid; gap: 0.5rem; margin-top: 0.5rem; }
.bewerben__wege a { color: var(--hell-2); text-underline-offset: 4px; }
.bewerben__wege a:hover { color: var(--gruen); }
@media (min-width: 900px) {
  .bewerben__innen { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
}

.funnel {
  position: relative; display: grid; gap: 1.5rem;
  padding: clamp(1.25rem, 3.5vw, 2.5rem); border-radius: 28px;
  background: rgba(32, 37, 29, 0.86); border: 1px solid var(--linie);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.funnel__kopf { display: grid; gap: 0.6rem; }
.funnel__zaehler { font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hell-3); }
.funnel__zaehler b { color: var(--gruen); }
.funnel__balken { height: 6px; border-radius: 99px; background: rgba(242, 243, 239, 0.1); overflow: hidden; }
.funnel__balken i { display: block; height: 100%; border-radius: inherit; background: var(--gruen); transform-origin: 0 50%; transform: scaleX(var(--stand, 0.25)); transition: transform 0.7s var(--ease); }
html:not(.js) .funnel__kopf { display: none; }

.funnel__buehne { display: grid; gap: 2rem; }
.frage { display: grid; gap: 1.1rem; }
.frage legend { font-family: var(--titel); font-weight: 600; font-size: clamp(1.45rem, 1.2rem + 1.2vw, 2rem); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 1.1rem; }
.js .frage:not(.aktiv) { display: none; }
.motion .frage.aktiv { animation: frage-rein 0.6s var(--ease) both; }
.motion .funnel.rueck .frage.aktiv { animation-name: frage-rueck; }
@keyframes frage-rein { from { opacity: 0; transform: translateX(42px); } }
@keyframes frage-rueck { from { opacity: 0; transform: translateX(-42px); } }

.frage__hinweis { font-size: 0.9375rem; color: var(--hell-3); }
.wahlen { display: grid; gap: 0.6rem; }
.wahl { position: relative; display: block; cursor: pointer; }
.wahl input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.wahl span {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 58px; padding: 0.8rem 1.2rem; border-radius: 16px;
  border: 1.5px solid var(--linie); background: rgba(14, 17, 13, 0.5);
  font-family: var(--titel); font-weight: 500; font-size: 1.125rem;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.3s var(--ease);
}
.wahl span::after { content: ''; width: 1.35rem; height: 1.35rem; flex: none; border-radius: 50%; border: 1.5px solid var(--hell-3); transition: inherit; }
.wahl:hover span { border-color: var(--gruen); }
.wahl:active span { transform: scale(0.98); }
.wahl input:checked + span { background: var(--gruen); border-color: var(--gruen); color: var(--nacht); }
.wahl input:checked + span::after { border-color: var(--nacht); background: var(--nacht); box-shadow: inset 0 0 0 4px var(--gruen); }
.wahl input:focus-visible + span { outline: 3px solid var(--gruen); outline-offset: 3px; }

.felder { display: grid; gap: 0.9rem; }
@media (min-width: 520px) { .felder { grid-template-columns: 1fr 1fr; } }
.feld { display: grid; gap: 0.35rem; }
.feld label { font-size: 0.875rem; color: var(--hell-2); }
.feld input {
  width: 100%; min-height: 54px; padding: 0.7rem 1rem; border-radius: 14px;
  border: 1.5px solid var(--linie); background: rgba(14, 17, 13, 0.6); color: var(--hell);
  font: inherit; font-size: 1.0625rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.feld input:focus { outline: none; border-color: var(--gruen); box-shadow: 0 0 0 4px rgba(148, 200, 93, 0.2); }
.feld input.falsch { border-color: var(--fehler); }
.check { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.9375rem; color: var(--hell-2); cursor: pointer; }
.check input { flex: none; width: 1.4rem; height: 1.4rem; margin: 0.1rem 0 0; accent-color: var(--gruen); }
.check a { color: var(--hell); text-underline-offset: 3px; }
.funnel__fehler { color: var(--fehler); font-size: 0.9375rem; }
.funnel__zurueck { justify-self: start; color: var(--hell-3); font-size: 0.9375rem; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; }
.funnel__zurueck:hover { color: var(--hell); }

.frage--danke { justify-items: center; text-align: center; padding-block: 1.5rem; }
.frage--danke h3 { font-family: var(--titel); font-weight: 600; font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem); letter-spacing: -0.02em; }
.frage--danke p { color: var(--hell-2); }
.funnel__vorschau a { color: inherit; }
.knopf[aria-busy=true] { opacity: 0.7; pointer-events: none; }
.funnel__vorschau { font-size: 0.875rem; padding: 0.6rem 0.9rem; border-radius: 10px; border: 1px dashed var(--fehler); color: var(--fehler) !important; }
.haken { width: 5rem; height: 5rem; fill: none; stroke: var(--gruen); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.motion .haken circle { stroke-dasharray: 183; stroke-dashoffset: 183; animation: zeichnen 0.9s var(--ease) 0.1s forwards; }
.motion .haken path { stroke-dasharray: 42; stroke-dashoffset: 42; animation: zeichnen 0.5s var(--ease) 0.8s forwards; }
@keyframes zeichnen { to { stroke-dashoffset: 0; } }

/* 13 Fragen --------------------------------------------------------------- */

.fragen { background: var(--nacht-2); }
.faq { display: grid; border-top: 1px solid var(--linie); }
.faq details { border-bottom: 1px solid var(--linie); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; cursor: pointer; list-style: none;
  padding-block: 1.35rem; font-family: var(--titel); font-weight: 500; font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem); line-height: 1.25;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gruen); }
.faq summary::after {
  content: ''; flex: none; width: 1.1rem; aspect-ratio: 1; background: var(--gruen); transition: transform 0.5s var(--ease);
  clip-path: polygon(40% 0, 60% 0, 60% 40%, 100% 40%, 100% 60%, 60% 60%, 60% 100%, 40% 100%, 40% 60%, 0 60%, 0 40%, 40% 40%);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding-bottom: 1.5rem; color: var(--hell-2); max-width: 44em; }
.motion .faq details[open] p { animation: frage-auf 0.5s var(--ease); }
@keyframes frage-auf { from { opacity: 0; transform: translateY(-8px); } }
@media (min-width: 900px) {
  .fragen__innen { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start; }
}

/* 14 Fuß und Leiste ------------------------------------------------------- */

.fuss { padding-block: 3rem calc(3rem + 84px); border-top: 1px solid var(--linie); font-size: 0.9375rem; color: var(--hell-2); }
.fuss__innen { display: grid; gap: 1.5rem; }
.fuss img { height: 44px; width: auto; }
.fuss nav { display: flex; gap: 1.5rem; }
.fuss a { text-underline-offset: 4px; }
.fuss a:hover { color: var(--gruen); }
@media (min-width: 900px) {
  .fuss { padding-bottom: 3rem; }
  .fuss__innen { grid-template-columns: auto 1fr auto; gap: 4rem; align-items: center; }
}

.leiste {
  position: fixed; inset: auto 0 0 0; z-index: 40;
  padding: 0.75rem var(--rand) calc(0.75rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(14, 17, 13, 0.94) 38%);
  transform: translateY(110%); transition: transform 0.6s var(--ease);
}
.leiste.da { transform: none; }
html:not(.js) .leiste { display: none; }
@media (min-width: 900px) { .leiste { display: none; } }
