/* ==========================================================================
   Karriereseite Physiotherapie, PhysioPlus Lichtenau
   Marke wie physioplus-lichtenau.de (dunkle Fassung): Logo-Grün, Outfit, Inter.
   Rundungen: Knöpfe und Auswahl ganz rund, Kacheln und Fotos 16 px, Felder 6 px.
   Bewegung nur über transform und opacity. „Bewegung reduzieren“ schaltet ab.
   ========================================================================== */

@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-hover:  #B4DC88;
  --gruen-flaeche:#1A2215;
  --gruen-rand:   #34452A;

  --grund:   #0F110E;
  --grund-2: #151813;
  --karte:   #1B1E19;
  --feld:    #121510;
  --tief:    #090A08;
  --linie:   #2B3028;
  --linie-2: #3A4036;
  --feldrand:#6B7367;

  --text:    #EEF0EA;
  --text-2:  #B7BDB2;
  --text-3:  #969D92;
  --auf-gruen: #0F110E;

  --fehler:         #F0A285;
  --fehler-flaeche: rgba(201, 116, 79, 0.14);

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

  --t-xs:   0.8125rem;
  --t-sm:   0.9375rem;
  --t-base: 1.0625rem;
  --t-md:   1.1875rem;
  --t-lg:   clamp(1.3rem, 1.15rem + 0.7vw, 1.6rem);
  --t-xl:   clamp(1.75rem, 1.35rem + 1.8vw, 2.625rem);
  --t-2xl:  clamp(2.2rem, 1.5rem + 3.2vw, 3.9rem);
  --t-3xl:  clamp(2.9rem, 1.6rem + 5.6vw, 6rem);

  --breite: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --s-1: 0.375rem;
  --s-2: 0.75rem;
  --s-3: 1.25rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4.5rem;
  --s-7: 7rem;

  --radius-sm: 6px;
  --radius:    16px;
  --schatten:  0 2px 4px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.45);

  --zeit:  240ms;
  --kurve: cubic-bezier(0.22, 0.61, 0.36, 1);
  --raus:  cubic-bezier(0.16, 1, 0.3, 1);
  --kopf-h: 4rem;
}


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

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  background: var(--grund);
}

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--schrift-text);
  font-size: var(--t-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3 {
  font-family: var(--schrift-titel);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-3);
  text-wrap: balance;
}
h1 { font-size: var(--t-2xl); letter-spacing: -0.03em; }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-md); letter-spacing: -0.01em; line-height: 1.25; margin-bottom: var(--s-2); }

p { margin: 0 0 var(--s-3); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--gruen);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color var(--zeit) var(--kurve);
}
a:hover { color: var(--gruen-hover); }

:focus-visible { outline: 3px solid var(--gruen); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
img, svg, video { display: block; max-width: 100%; height: auto; }
picture { display: block; }
ul, ol { margin: 0; padding: 0; }
ul[role='list'], ol[role='list'] { list-style: none; }
strong, b { font-weight: 600; }
::selection { background: var(--gruen); color: var(--auf-gruen); }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.wrap { width: 100%; max-width: var(--breite); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--eng { max-width: 820px; }

.abschnitt { padding-block: clamp(4.5rem, 10vw, 8rem); }
.abschnitt__titel { font-size: var(--t-2xl); max-width: 18ch; margin-bottom: var(--s-3); }
.vorspann { font-size: var(--t-md); color: var(--text-2); line-height: 1.6; max-width: 40rem; }
.klein { font-size: var(--t-sm); color: var(--text-3); }

.sprunglink {
  position: absolute; left: var(--s-2); top: -4rem; z-index: 100;
  padding: var(--s-2) var(--s-3); background: var(--gruen); color: var(--auf-gruen);
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.sprunglink:focus { top: var(--s-2); color: var(--auf-gruen); }

/* Einblenden beim Scrollen (Klasse ist-sichtbar setzt seite.js) */
.js [data-einblenden] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--raus), transform 900ms var(--raus);
}
.js [data-einblenden].ist-sichtbar { opacity: 1; transform: none; }


/* --- Knöpfe ---------------------------------------------------------------- */

.btn {
  --btn-bg: var(--gruen);
  --btn-fg: var(--auf-gruen);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 3rem; padding: 0.75rem 1.5rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 2px solid transparent; border-radius: 100px;
  font-family: var(--schrift-titel); font-size: var(--t-base); font-weight: 600; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform var(--zeit) var(--kurve), box-shadow var(--zeit) var(--kurve),
              background-color var(--zeit) var(--kurve), border-color var(--zeit) var(--kurve);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--btn-fg); --btn-bg: var(--gruen-hover); transform: translateY(-2px); box-shadow: var(--schatten); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn .icon { transition: transform var(--zeit) var(--kurve); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); }
.btn--rand { --btn-bg: transparent; --btn-fg: var(--text); border-color: var(--linie-2); }
.btn--rand:hover { --btn-bg: transparent; border-color: var(--text); }
.btn--gross { min-height: 3.5rem; padding: 0.9rem 1.6rem; font-size: var(--t-md); }
.btn--klein { min-height: 2.5rem; padding: 0.45rem 1.05rem; font-size: var(--t-sm); }
.btn--rund { width: 3.25rem; padding: 0; flex: none; }


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

.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 17, 14, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--zeit) var(--kurve), background-color var(--zeit) var(--kurve);
}
.kopf.ist-gescrollt { border-bottom-color: var(--linie); }
.kopf__innen { display: flex; align-items: center; justify-content: space-between; min-height: var(--kopf-h); gap: var(--s-3); }
.kopf__logo { display: block; flex: none; }
.kopf__logo img { width: 96px; height: auto; }
.kopf__nav { display: flex; align-items: center; gap: var(--s-2); }
.kopf__tel {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.75rem; min-width: 2.75rem; justify-content: center;
  color: var(--text); text-decoration: none; font-weight: 500; font-size: var(--t-sm);
}
.kopf__tel span { display: none; }
.kopf__nav .btn { display: none; }
@media (min-width: 400px) { .kopf__nav .btn { display: inline-flex; } }
@media (min-width: 760px) {
  .kopf__tel span { display: inline; }
  .kopf__logo img { width: 112px; }
}
@media (prefers-reduced-transparency: reduce) { .kopf { background: var(--grund); backdrop-filter: none; } }


/* --- Hero ------------------------------------------------------------------ */

.hero { position: relative; padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.hero__raster { display: grid; }
.hero__bild {
  order: -1; position: relative; margin: 0 calc(var(--gutter) * -1);
  /* Höhe wächst mit der Breite mit, damit das Hochformatfoto nie zu einem schmalen Streifen wird */
  height: min(max(46svh, 88vw), 520px); min-height: 250px; overflow: hidden;
}
.hero__bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.hero__bild::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 17, 14, 0) 55%, var(--grund) 100%);
  pointer-events: none;
}
.hero__text { position: relative; margin-top: -1.75rem; }
.hero__kicker { font-family: var(--schrift-titel); font-weight: 500; font-size: var(--t-sm); color: var(--gruen); margin-bottom: var(--s-2); }
.hero__titel { font-size: var(--t-3xl); line-height: 1; letter-spacing: -0.035em; margin-bottom: var(--s-3); }
.hero__titel .zeile { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__titel .zeile > span { display: inline-block; }
.hero__satz { font-size: var(--t-md); color: var(--text-2); max-width: 34rem; }
.hero__knoepfe { display: flex; gap: var(--s-2); margin-top: var(--s-4); }
.nur-breit { display: none; }
@media (min-width: 640px) { .nur-breit { display: inline; } }
/* Am Handy kompakt nebeneinander, reicht der Platz nicht, brechen beide sauber auf volle Breite um */
.hero__knoepfe { flex-wrap: wrap; }
.hero__knoepfe .btn { flex: 1 1 auto; padding-inline: 0.95rem; font-size: var(--t-base); gap: 0.45em; }

/* Ab Tabletbreite stehen Text und Foto nebeneinander, das Foto bleibt im Hochformat ganz sichtbar */
@media (min-width: 640px) {
  .hero { padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem); }
  .hero__raster {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(1.5rem, 5vw, 5rem); align-items: center;
    min-height: min(calc(100svh - var(--kopf-h) - 6rem), 760px);
  }
  .hero__bild {
    order: 0; margin: 0; height: auto; min-height: 0; aspect-ratio: 4 / 5; width: 100%;
    max-height: calc(100svh - var(--kopf-h) - 5rem); border-radius: var(--radius); justify-self: end;
  }
  .hero__bild::after { display: none; }
  .hero__text { margin-top: 0; }
  .hero__knoepfe { flex-wrap: wrap; }
  .hero__knoepfe .btn { flex: 0 0 auto; padding-inline: 1.6rem; font-size: var(--t-md); gap: 0.55em; }
}
@media (min-width: 640px) and (max-width: 959px) {
  .hero__titel { font-size: clamp(2.6rem, 1rem + 5vw, 4.2rem); }
  .hero__satz { font-size: var(--t-base); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__titel .zeile > span { transform: translateY(105%); animation: hoch 1s var(--raus) 0.1s forwards; }
  .hero__titel .zeile:nth-child(2) > span { animation-delay: 0.2s; }
  .hero__kicker, .hero__satz, .hero__knoepfe { opacity: 0; animation: auf 0.9s var(--raus) forwards; }
  .hero__kicker { animation-delay: 0.05s; }
  .hero__satz { animation-delay: 0.35s; }
  .hero__knoepfe { animation-delay: 0.45s; }
  .hero__bild img { transform: scale(1.08); animation: ran 1.6s var(--raus) forwards; }
}
@keyframes hoch { to { transform: none; } }
@keyframes auf { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes ran { to { transform: none; } }


/* --- Signatur: Das Plus öffnet sich ------------------------------------------- */
/* physio.js setzt auf .signatur__buehne: --s (Größe des Plus), --p1 (Öffnen),
   --p2 (Überblendung zum Video), --p3 (Abdunkeln für den Schlusssatz). */

.signatur { position: relative; height: 330svh; background: var(--tief); }
.signatur__buehne {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: var(--tief); isolation: isolate;
}
.signatur__ebene { position: absolute; inset: 0; }
.signatur__ebene img, .signatur__ebene video { width: 100%; height: 100%; object-fit: cover; }
.signatur__ebene--1 {
  /* Anfangs liegt das Gesicht der Therapeutin in der Mitte des Plus, beim Öffnen gleitet
     das Bild in seinen vollen Ausschnitt zurück */
  --fx: 26%; --fy: 20%;
  transform: translate(calc((1 - var(--p1, 0)) * var(--fx)), calc((1 - var(--p1, 0)) * var(--fy)))
             scale(calc(1.32 - var(--p1, 0) * 0.32));
  will-change: transform;
}
@media (max-aspect-ratio: 3/4) { .signatur__ebene--1 { --fx: 2%; --fy: 27%; } }
.signatur__ebene--2 {
  opacity: var(--p2, 0);
  transform: scale(calc(1.1 - var(--p2, 0) * 0.1));
  will-change: opacity, transform;
}
.signatur__schleier {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9, 10, 8, 0.1) 25%, rgba(9, 10, 8, 0.88) 100%);
  opacity: calc(0.45 + var(--p3, 0) * 0.55);
}
.signatur__maske, .signatur__rand {
  position: absolute; left: 50%; top: 50%;
  width: 150vmax; height: 150vmax; margin: -75vmax 0 0 -75vmax;
  max-width: none; transform: scale(var(--s, 0.9)); pointer-events: none;
}
.signatur__maske { fill: var(--tief); will-change: transform; }
.signatur__rand {
  fill: none; stroke: var(--gruen); stroke-width: 0.14;
  opacity: calc(1 - var(--p1, 0) * 5);
}
/* Während der Inszenierung bleibt der Bildschirm frei */
.in-signatur .aktionsbalken { transform: translateY(110%); }
.signatur__worte { position: absolute; inset: auto 0 max(9svh, 2.5rem); }
.signatur__wort {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; margin: 0;
  font: 600 clamp(2.7rem, 1.4rem + 6vw, 6.6rem) / 1.02 var(--schrift-titel);
  letter-spacing: -0.035em; text-wrap: balance;
  opacity: 0; transform: translateY(-14px);
  transition: opacity 220ms ease-in, transform 260ms ease-in;
}
.signatur__wort.ist-aktiv {
  opacity: 1; transform: none;
  transition: opacity 650ms var(--raus) 160ms, transform 850ms var(--raus) 160ms;
}
.signatur__wort .gruen { color: var(--gruen); }
.signatur__text {
  display: block; margin-top: 0.8rem; max-width: 30ch;
  font: 500 clamp(1rem, 0.92rem + 0.45vw, 1.3rem) / 1.45 var(--schrift-text);
  letter-spacing: 0; color: var(--text-2);
}
@media (min-width: 960px) {
  .signatur { height: 420vh; }
  .signatur__wort { right: auto; max-width: 13ch; }
  .signatur__wort:last-child { max-width: 16ch; }
}

/* Ohne Skript oder mit „Bewegung reduzieren“: ein ruhiges Bild mit dem Schlusssatz */
html:not(.js) .signatur, .signatur.ist-ruhig { height: auto; }
html:not(.js) .signatur__buehne, .signatur.ist-ruhig .signatur__buehne { position: relative; height: 88svh; min-height: 30rem; }
html:not(.js) .signatur__maske, html:not(.js) .signatur__rand,
.signatur.ist-ruhig .signatur__maske, .signatur.ist-ruhig .signatur__rand { display: none; }
html:not(.js) .signatur__ebene--1, .signatur.ist-ruhig .signatur__ebene--1 { transform: none; }
html:not(.js) .signatur__schleier, .signatur.ist-ruhig .signatur__schleier { opacity: 1; }
html:not(.js) .signatur__wort:last-child { opacity: 1; transform: none; }


/* --- Kurzfakten -------------------------------------------------------------- */

.fakten { border-bottom: 1px solid var(--linie); background: var(--grund); }
.fakten__liste { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-3); padding-block: clamp(2.5rem, 6vw, 4rem); margin: 0 auto; }
.fakten__liste dt { font-size: var(--t-sm); color: var(--text-3); margin-bottom: 0.2rem; }
.fakten__liste dd { margin: 0; font: 600 var(--t-md) / 1.3 var(--schrift-titel); }
@media (min-width: 900px) { .fakten__liste { grid-template-columns: repeat(4, 1fr); } }


/* --- Vorteile (Bento) ------------------------------------------------------- */

.bento { display: grid; gap: var(--s-3); margin-top: clamp(2rem, 4vw, var(--s-5)); }
.kachel {
  position: relative; overflow: hidden;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius);
}
.kachel h3 { font-size: var(--t-lg); overflow-wrap: break-word; }
.kachel p { color: var(--text-2); }

.kachel--gehalt {
  background:
    radial-gradient(ellipse 90% 80% at 100% 0%, rgba(148, 200, 93, 0.22), transparent 65%),
    var(--gruen-flaeche);
  border-color: var(--gruen-rand);
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 17rem;
}
.kachel--gehalt h3 { font-size: var(--t-xl); max-width: 14ch; }
.kachel--gehalt p { color: var(--text); max-width: 34rem; }
.kachel__quelle { margin-top: var(--s-3); font-size: var(--t-xs); color: var(--text-2) !important; }

/* Foto oben frei sichtbar, Text darunter (nicht darüber gelegt) */
.kachel--aktiv { padding: 0; display: flex; flex-direction: column; }
.kachel__foto { position: relative; overflow: hidden; aspect-ratio: 1 / 1; }
.kachel__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 35% 45%; transition: transform 1.2s var(--raus); }
.kachel--aktiv:hover .kachel__foto img { transform: scale(1.04); }
.kachel__ueber { padding: clamp(1.4rem, 3vw, 2.25rem); }

.kachel__symbol { display: inline-grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: var(--s-3); border-radius: 50%; background: var(--gruen-flaeche); color: var(--gruen); border: 1px solid var(--gruen-rand); }
.kachel__symbol .icon { width: 1.4rem; height: 1.4rem; }

.kachel__zahl { font: 600 clamp(3.2rem, 2rem + 4vw, 5rem) / 1 var(--schrift-titel); letter-spacing: -0.04em; color: var(--gruen) !important; margin-bottom: var(--s-2); }

.kachel--abwechslung { padding-bottom: 0; display: flex; flex-direction: column; }
.laufband {
  display: flex; overflow: hidden; margin: var(--s-4) calc(clamp(1.4rem, 3vw, 2.25rem) * -1) 0;
  padding-block: 0 clamp(1.4rem, 3vw, 2.25rem);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.laufband ul { display: flex; gap: 0.6rem; padding-right: 0.6rem; flex: none; list-style: none; }
.laufband li {
  flex: none; padding: 0.55rem 1.1rem; border-radius: 100px;
  border: 1px solid var(--linie-2); color: var(--text); font-size: var(--t-sm); white-space: nowrap;
}
.laufband li:nth-child(3n + 1) { border-color: var(--gruen-rand); background: var(--gruen-flaeche); }
@media (prefers-reduced-motion: no-preference) {
  .laufband ul { animation: laufen 46s linear infinite; }
  .kachel--abwechslung:hover .laufband ul { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .laufband { -webkit-mask-image: none; mask-image: none; padding-inline: clamp(1.4rem, 3vw, 2.25rem); }
  .laufband ul { flex-wrap: wrap; flex: 1; }
  .laufband ul + ul { display: none; }
}
@keyframes laufen { to { transform: translateX(-100%); } }

.kachel--team { display: grid; gap: var(--s-3); align-items: end; background: var(--grund-2); }
.kachel__worte { margin: 0; font: 600 clamp(2rem, 1.2rem + 3.6vw, 3.6rem) / 1.05 var(--schrift-titel); letter-spacing: -0.035em; }
.kachel__worte span { display: inline-block; color: var(--text); }
.js .kachel--team .kachel__worte span { color: var(--linie-2); transition: color 700ms var(--raus); }
.js .kachel--team.ist-sichtbar .kachel__worte span { color: var(--text); }
.js .kachel--team.ist-sichtbar .kachel__worte span:nth-child(1) { transition-delay: 250ms; }
.js .kachel--team.ist-sichtbar .kachel__worte span:nth-child(2) { transition-delay: 650ms; color: var(--gruen); }
.js .kachel--team.ist-sichtbar .kachel__worte span:nth-child(3) { transition-delay: 1050ms; }

@media (min-width: 700px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .kachel--gehalt, .kachel--abwechslung, .kachel--team { grid-column: 1 / -1; }
  .kachel--aktiv { grid-row: span 2; }
  /* Kachel ist über zwei Zeilen hoch: Foto füllt den Platz über dem Text */
  .kachel--aktiv .kachel__foto { aspect-ratio: auto; flex: 1 1 auto; min-height: 18rem; }
}
@media (min-width: 1100px) {
  .bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
      'gehalt    gehalt aktiv aktiv'
      'gutschein fortb  aktiv aktiv'
      'abw       abw    team  team';
  }
  .kachel--gehalt { grid-area: gehalt; }
  .kachel--aktiv { grid-area: aktiv; }
  .kachel--gutschein { grid-area: gutschein; }
  .kachel--fortbildung { grid-area: fortb; }
  .kachel--abwechslung { grid-area: abw; }
  .kachel--team { grid-area: team; }
}


/* --- Verfahren -------------------------------------------------------------- */

.verfahren { background: var(--grund-2); border-block: 1px solid var(--linie); }
.verfahren__liste { list-style: none; margin-top: clamp(2rem, 4vw, var(--s-5)); display: grid; gap: var(--s-5); }
.verfahren__gruppe h3 { font-size: var(--t-xl); margin: var(--s-3) 0 var(--s-2); }
.verfahren__punkte { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; color: var(--text-2); }
.verfahren__punkte li { position: relative; padding-left: 0.95rem; }
.verfahren__punkte li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 0.4rem; height: 2px; background: var(--gruen); }
.verfahren__bild-mobil { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.verfahren__bild-mobil img { width: 100%; height: 100%; object-fit: cover; }
.verfahren__buehne { display: none; }

@media (min-width: 960px) {
  .verfahren__raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); }
  .verfahren__bild-mobil { display: none; }
  .verfahren__liste { gap: 0; margin-top: var(--s-5); }
  .verfahren__gruppe { padding-block: 13vh; border-top: 1px solid var(--linie); }
  .verfahren__gruppe:last-child { padding-bottom: 22vh; }
  .verfahren__gruppe h3 { margin-top: 0; }
  .js .verfahren__gruppe { opacity: 0.38; transition: opacity 500ms var(--kurve); }
  .js .verfahren__gruppe.ist-aktiv { opacity: 1; }
  .verfahren__gruppe.ist-aktiv h3 { color: var(--gruen); }
  /* Bühne so hoch wie der sichtbare Bereich unter dem Kopf, Rahmen darin mittig im
     Seitenverhältnis der Fotos (4:3): so wird bei keiner Fenstergröße etwas abgeschnitten */
  .verfahren__buehne {
    display: flex; align-items: center; position: sticky; top: var(--kopf-h);
    height: calc(100svh - var(--kopf-h)); align-self: start;
  }
  .verfahren__rahmen {
    position: relative; aspect-ratio: 4 / 3; margin-left: auto;
    width: min(100%, calc((100svh - var(--kopf-h) - 4rem) * 4 / 3));
    border-radius: var(--radius); overflow: hidden; background: var(--karte);
  }
  .verfahren__bild { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity 700ms var(--kurve), transform 1400ms var(--raus); }
  .verfahren__bild.ist-aktiv { opacity: 1; transform: none; }
  .verfahren__bild img { width: 100%; height: 100%; object-fit: cover; }
}


/* --- Ein Weg durchs Haus ---------------------------------------------------- */
/* physio.js setzt --weg (0 bis 1) für die Linie und .ist-erreicht an den Stationen. */

.weg__liste { position: relative; list-style: none; display: grid; gap: clamp(3rem, 8vw, 6rem); margin-top: clamp(2.5rem, 5vw, var(--s-6)); }
.weg__linie { position: absolute; left: 0.6rem; top: 0.5rem; bottom: 0.5rem; width: 2px; background: var(--linie); }
.weg__linie span { display: block; height: 100%; background: var(--gruen); transform-origin: top; transform: scaleY(var(--weg, 1)); }
.weg__station { position: relative; padding-left: 2.5rem; display: grid; gap: var(--s-3); }
.weg__station::before {
  content: ''; position: absolute; left: 0.2rem; top: 0.35rem; width: 0.95rem; height: 0.95rem;
  border-radius: 50%; border: 2px solid var(--gruen); background: var(--grund);
  transition: background-color 400ms var(--kurve), transform 400ms var(--raus);
}
.weg__station.ist-erreicht::before { background: var(--gruen); transform: scale(1.15); }
.weg__bild { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.weg__bild img { width: 100%; height: 100%; object-fit: cover; }
.weg__text h3 { font-size: var(--t-xl); }
.weg__text p { color: var(--text-2); max-width: 30rem; }
.js .weg__station > * { opacity: 0.3; transform: translateY(18px); transition: opacity 700ms var(--raus), transform 900ms var(--raus); }
.js .weg__station.ist-erreicht > * { opacity: 1; transform: none; }

@media (min-width: 960px) {
  .weg__linie { left: 50%; margin-left: -1px; }
  .weg__station { padding-left: 0; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 7rem); align-items: center; }
  .weg__station::before { left: 50%; top: 50%; margin: -0.5rem 0 0 -0.5rem; }
  .weg__station:nth-child(odd) .weg__bild { order: 2; }
}


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

.schritte { position: relative; list-style: none; display: grid; gap: var(--s-4); margin-top: clamp(2rem, 4vw, var(--s-5)); }
.schritt { position: relative; padding-left: 4rem; }
.schritt__nr {
  position: absolute; left: 0; top: -0.2rem; display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1.5px solid var(--gruen); color: var(--gruen); background: var(--grund);
  font: 600 var(--t-md) / 1 var(--schrift-titel);
}
.schritt:first-child .schritt__nr { background: var(--gruen); color: var(--auf-gruen); }
.schritt p { color: var(--text-2); }
@media (min-width: 860px) {
  .schritte { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
  .schritte::before {
    content: ''; position: absolute; left: 1.4rem; right: calc(33.3% - 1rem); top: 1.15rem; height: 2px;
    background: var(--gruen-rand); transform-origin: left; transform: scaleX(var(--fuellung, 1));
  }
  .js .schritte::before { --fuellung: 0; transition: transform 1400ms var(--raus) 200ms; }
  .js .schritte.ist-sichtbar::before { --fuellung: 1; }
  .schritt { padding-left: 0; padding-top: 4rem; }
}


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

.bewerben {
  background: radial-gradient(ellipse 60% 50% at 10% 0%, rgba(148, 200, 93, 0.1), transparent 70%), var(--grund-2);
  border-block: 1px solid var(--linie);
}
.bewerben__raster { display: grid; gap: var(--s-5); }
.bewerben__intro h2 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.3rem); -webkit-hyphens: auto; hyphens: auto; }
.haken-liste { display: grid; gap: var(--s-2); margin-top: var(--s-4); }
.haken-liste li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--text-2); }
.haken-liste .icon { color: var(--gruen); margin-top: 0.2rem; }
.whatsapp-weg { margin-top: var(--s-4); padding: var(--s-3); border: 1px solid var(--linie); border-radius: var(--radius); background: var(--karte); }
.whatsapp-weg p { color: var(--text-2); margin-bottom: var(--s-2); }
.whatsapp-weg strong { color: var(--text); }
.personen { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--linie); }
.personen__titel { font: 600 var(--t-md) / 1.3 var(--schrift-titel); margin-bottom: var(--s-1); }
.personen p { color: var(--text-2); }
.personen__liste { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-4); margin-top: var(--s-3); }
.personen__liste li { display: flex; align-items: center; gap: var(--s-2); }
.person__foto { flex: none; width: 3.5rem; height: 3.5rem; border-radius: 50%; overflow: hidden; border: 2px solid var(--gruen-rand); }
.person__foto img { width: 100%; height: 100%; object-fit: cover; }
.person__name { display: block; font: 600 var(--t-base) / 1.3 var(--schrift-titel); }
.person__rolle { display: block; font-size: var(--t-sm); color: var(--text-3); }
@media (min-width: 960px) {
  .bewerben__raster { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s-6); align-items: start; }
  .bewerben__intro { position: sticky; top: 7rem; }
}

/* Formular: Klassen wie auf der Ergo-Seite, weil seite.js sie nutzt */
.formular { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2.5rem); box-shadow: var(--schatten); }
.felder { display: grid; gap: 0 var(--s-3); }
@media (min-width: 600px) { .felder--2 { grid-template-columns: 1fr 1fr; } }
.feld { margin: 0 0 var(--s-3); min-width: 0; }
.feld--gruppe { border: 0; padding: 0; }
.feld label, .feld legend, .feld__label { display: block; margin-bottom: 0.4rem; font-weight: 600; font-size: var(--t-sm); color: var(--text); padding: 0; }
.optional { font-weight: 400; color: var(--text-3); }
.feld__hinweis { margin: 0.35rem 0 0; font-size: var(--t-xs); color: var(--text-3); }
.feld__fehler { display: flex; gap: 0.4rem; margin: 0.4rem 0 0; font-size: var(--t-sm); color: var(--fehler); }
.feld__fehler::before { content: '!'; display: inline-grid; place-items: center; flex: none; width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; border-radius: 50%; background: var(--fehler); color: var(--grund); font-weight: 700; font-size: 0.75rem; }
input[type='text'], input[type='email'], input[type='tel'], select, textarea {
  width: 100%; min-height: 3.1rem; padding: 0.7rem 0.9rem;
  background: var(--feld); color: var(--text);
  border: 1px solid var(--feldrand); border-radius: var(--radius-sm);
  font: inherit; font-size: 1rem;
  transition: border-color var(--zeit) var(--kurve), box-shadow var(--zeit) var(--kurve);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B7BDB2' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.8rem center; background-size: 1.1rem;
  padding-right: 2.5rem;
}
input:hover, select:hover, textarea:hover { border-color: var(--text-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gruen); box-shadow: 0 0 0 3px rgba(148, 200, 93, 0.25); }
[aria-invalid='true'] { border-color: var(--fehler) !important; }
.wahlen { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.wahl { position: relative; margin: 0 !important; font-weight: 500 !important; }
.wahl input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wahl span {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.5rem 1.1rem;
  border: 1px solid var(--feldrand); border-radius: 100px; background: var(--feld); color: var(--text);
  transition: background-color var(--zeit) var(--kurve), border-color var(--zeit) var(--kurve), color var(--zeit) var(--kurve);
}
.wahl:hover span { border-color: var(--text-3); }
.wahl input:checked + span { background: var(--gruen); border-color: var(--gruen); color: var(--auf-gruen); }
.wahl input:focus-visible + span { outline: 3px solid var(--gruen); outline-offset: 3px; }
.feld--gruppe[aria-invalid='true'] .wahl span { border-color: var(--fehler); }
.datei__input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.datei {
  display: flex !important; align-items: center; gap: 0.75rem; min-height: 3.1rem; padding: 0.7rem 0.9rem; margin: 0 !important;
  border: 1px dashed var(--feldrand); border-radius: var(--radius-sm); background: var(--feld);
  cursor: pointer; font-weight: 500 !important; transition: border-color var(--zeit) var(--kurve);
}
.datei:hover { border-color: var(--text-3); }
.datei .icon { color: var(--gruen); }
.datei__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.datei__info { font-size: var(--t-xs); color: var(--text-3); font-weight: 400; }
.feld:has(.datei__input:focus-visible) .datei { outline: 3px solid var(--gruen); outline-offset: 3px; }
.datei__weg { margin-top: 0.4rem; padding: 0.3rem 0; min-height: 2.75rem; background: none; border: 0; color: var(--text-2); text-decoration: underline; text-underline-offset: 0.2em; font: inherit; font-size: var(--t-sm); cursor: pointer; }
.check { display: flex !important; gap: 0.75rem; align-items: flex-start; font-weight: 400 !important; color: var(--text-2) !important; font-size: var(--t-sm) !important; line-height: 1.55; cursor: pointer; }
.check input {
  flex: none; appearance: none; width: 1.4rem; height: 1.4rem; margin: 0.1rem 0 0;
  border: 1.5px solid var(--text-3); border-radius: 5px; background: var(--feld);
  display: grid; place-content: center; cursor: pointer;
  transition: background-color var(--zeit) var(--kurve), border-color var(--zeit) var(--kurve);
}
.check input::after { content: ''; width: 0.4rem; height: 0.75rem; border: solid var(--auf-gruen); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px) scale(0); transition: transform var(--zeit) var(--kurve); }
.check input:checked { background: var(--gruen); border-color: var(--gruen); }
.check input:checked::after { transform: rotate(45deg) translate(-1px, -1px) scale(1); }
.check input:focus-visible { outline: 3px solid var(--gruen); outline-offset: 3px; }
.formular__pflicht { font-size: var(--t-xs); color: var(--text-3); margin-bottom: var(--s-3); }
.pflicht { color: var(--gruen); font-weight: 700; margin-left: 0.1em; }
.formular__senden { width: 100%; margin-top: var(--s-2); }
.formular__senden[aria-busy='true'] { opacity: 0.7; cursor: progress; }
.formular__status { margin-top: var(--s-2); font-size: var(--t-sm); color: var(--text-2); min-height: 1.5em; }
.formular__status.ist-fehler { color: var(--fehler); }
.formular__noscript { padding: var(--s-2); border: 1px solid var(--linie-2); border-radius: var(--radius-sm); }
.formular__fehlerliste { margin-bottom: var(--s-3); padding: var(--s-3); border: 1px solid rgba(240, 162, 133, 0.45); border-radius: var(--radius-sm); background: var(--fehler-flaeche); color: var(--text); }
.formular__fehlerliste ul { padding-left: 1.2em; margin-top: 0.4rem; }
.formular__fehlerliste a { color: var(--fehler); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }


/* --- Häufige Fragen -------------------------------------------------------- */

.fragen__liste { margin-top: var(--s-4); border-top: 1px solid var(--linie); }
.frage { border-bottom: 1px solid var(--linie); }
.frage summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  min-height: 4rem; padding-block: var(--s-3); cursor: pointer; list-style: none;
  font: 600 var(--t-md) / 1.35 var(--schrift-titel); transition: color var(--zeit) var(--kurve);
}
.frage summary::-webkit-details-marker { display: none; }
.frage summary:hover { color: var(--gruen); }
.frage__zeichen { position: relative; flex: none; width: 2.25rem; height: 2.25rem; border: 1px solid var(--linie-2); border-radius: 50%; transition: transform var(--zeit) var(--kurve), border-color var(--zeit) var(--kurve); }
.frage__zeichen::before, .frage__zeichen::after { content: ''; position: absolute; left: 50%; top: 50%; width: 0.8rem; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.frage__zeichen::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform var(--zeit) var(--kurve); }
.frage[open] .frage__zeichen { border-color: var(--gruen); transform: rotate(180deg); }
.frage[open] .frage__zeichen::after { transform: translate(-50%, -50%) rotate(0deg); }
.frage__antwort { padding: 0 3.5rem var(--s-4) 0; color: var(--text-2); }
@media (prefers-reduced-motion: no-preference) {
  .frage[open] .frage__antwort { animation: auf 400ms var(--kurve); }
}


/* --- Aktionsbalken (Handy) -------------------------------------------------- */

.aktionsbalken {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; gap: var(--s-2);
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(15, 17, 14, 0.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--linie);
  transform: translateY(110%); transition: transform 400ms var(--raus);
}
.aktionsbalken .btn:first-child { flex: 1; }
.aktionsbalken.ist-sichtbar { transform: none; }
@media (min-width: 960px) { .aktionsbalken { display: none; } }


/* --- Fußzeile -------------------------------------------------------------- */

.fuss { background: var(--tief); border-top: 1px solid var(--linie); padding-top: clamp(3rem, 6vw, 4.5rem); color: var(--text-2); font-size: var(--t-sm); }
.fuss__innen { display: grid; gap: var(--s-4); }
.fuss__marke img { width: 120px; height: auto; margin-bottom: var(--s-3); }
.fuss__marke p { max-width: 24rem; }
.fuss__titel { font: 600 var(--t-base) / 1.3 var(--schrift-titel); color: var(--text); margin-bottom: var(--s-2); }
.fuss__liste { list-style: none; display: grid; gap: 0.4rem; }
.fuss a { color: var(--text-2); }
.fuss a:hover { color: var(--gruen); }
.fuss__unten { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); margin-top: var(--s-5); padding-block: var(--s-3) calc(var(--s-3) + 5rem); border-top: 1px solid var(--linie); color: var(--text-3); }
.fuss__unten p { margin: 0; }
.fuss__unten ul { list-style: none; display: flex; gap: var(--s-3); }
@media (min-width: 760px) { .fuss__innen { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 960px) { .fuss__unten { padding-bottom: var(--s-3); } }


/* --- Danke und Rechtstexte -------------------------------------------------- */

.danke { min-height: calc(100svh - var(--kopf-h) - 12rem); }
.danke__plus { display: inline-grid; place-items: center; width: 4rem; height: 4rem; margin-bottom: var(--s-4); border-radius: 50%; background: var(--gruen); color: var(--auf-gruen); }
.danke__plus .icon { width: 2rem; height: 2rem; }
.danke h2 { font-size: var(--t-lg); margin-top: var(--s-5); }
.danke__schritte { padding-left: 1.3em; margin-bottom: var(--s-4); color: var(--text-2); display: grid; gap: var(--s-2); }
.rechtstext h1 { margin-bottom: var(--s-4); }
.rechtstext h2 { font-size: var(--t-lg); margin-top: var(--s-5); }
.rechtstext h3 { margin-top: var(--s-4); }
.rechtstext p, .rechtstext li { color: var(--text-2); }
.rechtstext ul { padding-left: 1.3em; margin-bottom: var(--s-3); }
