/* =========================================================
   Startseite — Präfix fx-
   Tokens, Nav, Footer, Kontaktblock, Buttons: rahmen.css (wird davor geladen).
   Gerüst runde2-a, Ansprechpartner/Ablauf/Versprechen aus runde2-b.
   Mobile-first, Breakpoints 560 / 900 / 1280. Farben nur über Tokens.
   Radien: nur --radius-card, --radius-btn, 50 % (Kreise), --radius-mark (Logo-Motiv, 3 px).
   ========================================================= */


/* ---------- Basis: bewusst über :where(), damit Komponentenklassen nie überstimmt werden ---------- */
body.fx {
  margin: 0; font-family: var(--font-body); font-size: 1.05rem; font-weight: 400; line-height: 1.7;
  color: var(--text); background: var(--bg); overflow-x: clip; -webkit-font-smoothing: antialiased;
}


/* ---------- Layout ---------- */
.fx-section { position: relative; padding-block: var(--space-md); }
.fx-section--ruled { padding-top: 0; }
.fx-section--lg { padding-bottom: var(--space-lg); --rule-gap: clamp(5rem, 10vw, 9rem); }
.fx-section--sm { padding-bottom: var(--space-sm); }
.fx-section--tail { padding-bottom: var(--space-sm); }
/* Dünne Linien sind überall Rahmen, keine 1-px-Flächen: Flächen werden bei Browser-Zoom oder Bildschirm-Skalierung blass oder verschwinden */
.fx-rule { border: 0; border-top: 1px solid var(--line); height: 0; margin-bottom: var(--rule-gap); }

.fx-eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  line-height: 1.4; color: var(--teal-primary);
}
.fx-eyebrow::before { content: ''; width: 9px; height: 9px; flex: none; background: currentColor; border-radius: 0 0 var(--radius-mark) 0; }
.fx-h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.2vw, 3.5rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.03em;
  color: var(--teal-deep); text-wrap: balance;
}
.fx-eyebrow + .fx-h2 { margin-top: 1.25rem; }
.fx-lede { font-size: 1.12rem; max-width: 34rem; margin-top: 2rem; }

/* ---------- Reveals (nur mit JS; ohne JS bleibt alles sichtbar) ---------- */
.fx-anim [data-fade] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 1s var(--ease) calc(var(--i, 0) * 80ms), transform 1s var(--ease) calc(var(--i, 0) * 80ms);
}
.fx-anim [data-fade].is-visible { opacity: 1; transform: none; }
.fx-anim .fx-hero [data-fade] {
  transition: opacity .6s var(--ease) calc(var(--i, 0) * 60ms), transform .6s var(--ease) calc(var(--i, 0) * 60ms);
}
.fx-stagger > :nth-child(1) { --i: 0; } .fx-stagger > :nth-child(2) { --i: 1; }
.fx-stagger > :nth-child(3) { --i: 2; } .fx-stagger > :nth-child(4) { --i: 3; }
.fx-stagger > :nth-child(5) { --i: 4; } .fx-stagger > :nth-child(6) { --i: 5; }
.fx-stagger > :nth-child(7) { --i: 6; } .fx-stagger > :nth-child(8) { --i: 7; }
.fx-stagger > :nth-child(9) { --i: 8; } .fx-stagger > :nth-child(10) { --i: 9; }

/* Überschriften: Wörter steigen zeilenweise aus einer Maske (Zeilenindex --l setzt startseite.js) */
.fx-anim [data-split]:not(.is-split) { visibility: hidden; }
.fx-anim .fx-w { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em 0 .16em; margin: -.1em 0 -.16em; }
.fx-anim .fx-w__i { display: inline-block; transform: translateY(112%); transition: transform .7s var(--ease) calc(var(--l, 0) * 90ms); }
.fx-anim [data-split].is-visible .fx-w__i { transform: none; }
.fx-anim .fx-hero [data-split] .fx-w__i { transition-duration: .6s; transition-delay: calc(var(--l, 0) * 60ms); }

.fx-link { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; font-weight: 600; color: var(--teal-primary); }
.fx-link span {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .35em;
  text-decoration-color: var(--teal-line); transition: text-decoration-color .4s var(--ease);
}
.fx-link .fx-ico { transition: transform .5s var(--ease); }
.fx-link:hover span { text-decoration-color: currentColor; }
.fx-link:hover .fx-ico { transform: translateX(4px); }

.fx-tlink { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; color: var(--cream); font-weight: 500; }
.fx-tlink span {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .35em;
  text-decoration-color: var(--cream-70); transition: text-decoration-color .4s var(--ease), color .4s var(--ease);
}
.fx-tlink:hover span { color: var(--white); text-decoration-color: var(--teal-accent-soft); }
.fx-tlink__dim { color: var(--cream-70); }

/* ---------- Bildrahmen mit Logo-Kerbe (Klammer der Seite) ---------- */
.fx-frame { position: relative; }
.fx-frame--white { --ground: var(--white); }
.fx-frame__in { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-card); background: var(--cream-dark); }
.fx-frame__in img { width: 100%; height: 100%; object-fit: cover; }
.fx-frame::after {
  content: ''; position: absolute; right: 0; bottom: 0;
  width: clamp(44px, 6vw, 72px); aspect-ratio: 1;
  background: var(--teal-primary);
  border-top: 6px solid var(--ground); border-left: 6px solid var(--ground);
  border-radius: 0 0 var(--radius-card) 0;
  transform-origin: 100% 100%;
}
.fx-frame--left::after {
  right: auto; left: 0;
  border-left: 0; border-right: 6px solid var(--ground);
  border-radius: 0 0 0 var(--radius-card); transform-origin: 0 100%;
}
.fx-anim .fx-frame[data-clip] .fx-frame__in { clip-path: inset(0 0 100% 0 round var(--radius-card)); transition: clip-path 1.4s var(--ease); }
.fx-anim .fx-frame[data-clip]::after { transform: scale(0); transition: transform .9s var(--ease) .7s; }
.fx-anim .fx-frame[data-clip].is-visible .fx-frame__in { clip-path: inset(0 0 0 0 round var(--radius-card)); }
.fx-anim .fx-frame[data-clip].is-visible::after { transform: scale(1); }

/* Bildausschnitte je Lage / Station (Konzept C) */
.fx-ph-1 img { object-position: 70% 50%; }
.fx-ph-2 img { object-position: 50% 50%; }
.fx-ph-3 img { object-position: 50% 50%; }
.fx-ph-4 img { object-position: 50% 50%; }
.fx-ph-5 img { object-position: 50% 50%; }
.fx-fs-1 img, .fx-fs-2 img, .fx-fs-3 img { object-position: 50% 50%; }

/* ---------- Bildbühne (Animation b): Logo-Ecke öffnet das nächste Bild ---------- */
.fx-stage { --fx-dur: 900ms; }
.fx-stage--sit { --fx-dur: 700ms; }
.fx-stage--sit .fx-frame__in { aspect-ratio: 5 / 4; }
.fx-stage--flow .fx-frame__in { aspect-ratio: 5 / 6; max-height: max(calc(100svh - 18.5rem), 22rem); }
.fx-layer { position: absolute; inset: 0; opacity: 0; z-index: 0; }
.fx-layer img { position: absolute; inset: 0; }
.fx-layer.is-current { opacity: 1; z-index: 1; }
.fx-layer.is-next {
  opacity: 1; z-index: 3; clip-path: inset(100% 0 0 100%);
  animation: fx-open calc(var(--fx-dur) - 120ms) var(--ease) 120ms forwards;
}
.fx-wipe { position: absolute; inset: 0; z-index: 2; background: var(--teal-primary); opacity: 0; pointer-events: none; clip-path: inset(100% 0 0 100%); }
.fx-wipe.is-run { opacity: 1; animation: fx-wipe calc(var(--fx-dur) - 120ms) var(--ease) forwards; }
/* Situation: ruhige Überblendung statt Logo-Ecke (die Ecke gehört dem Ablauf) */
.fx-wipe { display: none; }
.fx-layer.is-next { clip-path: none; opacity: 0; animation: fx-fade 500ms var(--ease) forwards; }
.fx-stage--flow .fx-layer.is-next { animation-duration: 900ms; }
@keyframes fx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fx-open { from { clip-path: inset(100% 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes fx-wipe { from { clip-path: inset(72% 0 0 72%); } to { clip-path: inset(0 0 0 0); } }

/* =========================================================
   1 · HERO
   ========================================================= */
.fx-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; background: var(--teal-deep); color: var(--cream);
}
.fx-hero__media { position: absolute; inset: 0; z-index: -3; }
.fx-hero__poster, .fx-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 30%; }
.fx-hero__video { opacity: 0; transition: opacity 1.4s var(--ease); }
.fx-hero__video.is-playing { opacity: 1; }
.fx-hero__shade { position: absolute; inset: 0; z-index: -2; background: var(--hero-shade); }
.fx-hero__inner { padding-block: 7.5rem calc(clamp(3.5rem, 9vh, 6rem) + var(--radius-card)); }
.fx-hero__copy { max-width: 46rem; }
.fx-hero .fx-eyebrow { color: var(--teal-accent-soft); }
.fx-hero .fx-eyebrow::before { background: var(--teal-accent); width: 7px; height: 7px; }
.fx-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.2vw, 4.4rem); font-weight: 500; line-height: 1.08; letter-spacing: -0.03em;
  color: var(--cream); margin: 1.5rem 0 2.25rem; text-wrap: balance;
}
.fx-hero__actions { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.fx-hero__more { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.75rem; }

/* Startseite: Die Dachzeile ist der erste Teil der H1 (Suchbegriff), sieht aber weiter aus wie die Eyebrow darüber.
   Der Satz darunter trägt data-split, die Dachzeile blendet als Ganzes ein. */
.fx-hero__title--dach { margin-top: 0; }
.fx-hero__dach { display: flex; margin-bottom: 1.5rem; }
.fx-hero__satz { display: block; }

/* Handy: Besichtigung und Anruf sind zwei gleich breite Knöpfe (wie auf den Leistungsseiten), der Anruf mit heller Kontur auf dem Video.
   Ab 900 px bleibt die Nummer ein Textlink. */
.fx-hero--start .fx-hero__actions { align-items: stretch; }
.fx-hero--start .fx-btn { justify-content: space-between; }
.fx-hero--start .fx-btn--line { color: var(--cream); border-color: var(--cream-70); }
.fx-hero--start .fx-btn--line .fx-btn__ico { background: var(--line-dark); }
.fx-hero--start .fx-btn--line:hover { background: var(--cream); border-color: var(--cream); color: var(--teal-deep); }
.fx-hero--start .fx-btn--line:hover .fx-btn__ico { background: var(--teal-tint); }
.fx-hero--start .fx-hero__tel { display: none; }

/* =========================================================
   LEISTE „AUF DIESER SEITE“ (Sprünge innerhalb der Startseite)
   Sitzt am Ende des ersten Bildschirms und dockt beim Scrollen unter dem Hauptmenü an.
   Unter 900 px stehen die Sprünge im Mobilmenü.
   ========================================================= */
.fx-sub { display: none; }
.fx-sub__in { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.75rem); min-height: 3.25rem; }
.fx-sub__lab {
  flex: none; padding-right: clamp(1rem, 2vw, 1.75rem); border-right: 1px solid var(--line-strong);
  font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.6; color: var(--teal-primary);
}
.fx-sub__link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-size: 1rem; font-weight: 500; white-space: nowrap; color: var(--text); transition: color .4s var(--ease);
}
.fx-sub__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .35rem; height: 2px; background: var(--teal-primary);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.fx-sub__link:hover, .fx-sub__link[aria-current] { color: var(--teal-deep); }
.fx-sub__link:hover::after, .fx-sub__link[aria-current]::after { transform: scaleX(1); }

/* =========================================================
   2 · SITUATION (erste helle Sektion, überlappt den Hero)
   ========================================================= */
.fx-sit {
  position: relative; z-index: 2;
  margin-top: calc(-1 * var(--radius-card)); border-radius: var(--radius-card) var(--radius-card) 0 0;
  background: var(--bg); padding-block: clamp(5rem, 10vw, 8.5rem) var(--space-md);
}
.fx-sit__grid { row-gap: 3rem; align-items: start; }
.fx-stage { display: none; margin-top: 2.75rem; max-width: 34rem; }

.fx-item { border-top: 1px solid var(--line); }
.fx-item:last-child { border-bottom: 1px solid var(--line); }
.fx-item__h { font-size: inherit; }
.fx-q {
  display: flex; align-items: center; gap: 1.1rem; width: 100%;
  min-height: 72px; padding: 1.35rem 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-heading); font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 600; line-height: 1.35; letter-spacing: -0.015em;
  color: var(--teal-deep); transition: color .4s var(--ease);
}
.fx-q--lg { font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 500; letter-spacing: -0.025em; min-height: 84px; }
.fx-q:hover { color: var(--teal-primary); }
.fx-q__label { flex: 1; min-width: 0; }
.fx-q__mark {
  flex: none; width: 12px; height: 12px; border: 1.5px solid var(--teal-primary); border-radius: 0 0 var(--radius-mark) 0;
  transition: background .5s var(--ease), transform .6s var(--ease);
}
.fx-q[aria-expanded="true"] .fx-q__mark { background: var(--teal-primary); transform: scale(1.25); }
.fx-pm { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); transition: background .5s var(--ease), border-color .5s var(--ease); }
.fx-pm::before, .fx-pm::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px;
  background: var(--teal-deep); transition: transform .6s var(--ease), background .4s var(--ease);
}
.fx-pm::after { transform: rotate(90deg); }
.fx-q[aria-expanded="true"] .fx-pm { background: var(--teal-deep); border-color: var(--teal-deep); }
.fx-q[aria-expanded="true"] .fx-pm::before, .fx-q[aria-expanded="true"] .fx-pm::after { background: var(--cream); }
.fx-q[aria-expanded="true"] .fx-pm::after { transform: rotate(0deg); }

/* Antworten sind ohne JS sichtbar; JS klappt ein. Geschlossen: unsichtbar, nicht fokussierbar */
.fx-a { display: grid; grid-template-rows: 1fr; }
.fx-a__in { overflow: hidden; min-height: 0; }
.fx-a__in > p { max-width: 40rem; padding-bottom: 1rem; }
.fx-a__in > .fx-link { margin-bottom: 1.5rem; }
.fx-a__in > p:last-child { padding-bottom: 1.75rem; }
.fx-a__in strong { color: var(--teal-deep); }
.fx-anim .fx-a { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .6s var(--ease), visibility 0s linear .6s; }
.fx-anim .fx-a.is-open { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.fx-sit .fx-a__in { padding-left: calc(12px + 1.1rem); }

/* Mobil: Bild der Lage am Kopf des geöffneten Eintrags */
.fx-pimg { width: 100%; aspect-ratio: 4 / 3; max-height: 220px; overflow: hidden; border-radius: var(--radius-card); background: var(--cream-dark); margin: .25rem 0 1.25rem; }
.fx-pimg img { width: 100%; height: 100%; object-fit: cover; }
.fx-pimg.fx-ph-2 img { transform: scale(1.25); transform-origin: 100% 60%; }

.fx-svcline { margin-top: 3rem; display: flex; flex-wrap: wrap; align-items: center; column-gap: .75rem; font-size: 1rem; }
.fx-svcline__a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--teal-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .35em; text-decoration-color: var(--teal-line); transition: text-decoration-color .4s var(--ease); }
.fx-svcline__a:hover { text-decoration-color: currentColor; }
.fx-svcline__dot { color: var(--teal-primary); }

/* =========================================================
   3 · ANSPRECHPARTNER
   ========================================================= */
.fx-person { row-gap: 3rem; align-items: stretch; }
.fx-person__fig { display: flex; flex-direction: column; }
.fx-person__frame { flex: 1; }
.fx-person__frame .fx-frame__in { height: 100%; aspect-ratio: 4 / 5; }
.fx-person__frame img { object-position: 38% 15%; }
.fx-person__cap { margin-top: 1.1rem; font-size: 1rem; color: var(--text); }
.fx-person__cap strong { color: var(--teal-deep); }
.fx-who { margin-top: 2.75rem; border-top: 1px solid var(--line); }
.fx-who__row { display: grid; grid-template-columns: 12px minmax(0, 1fr); column-gap: 1.25rem; padding: 1.5rem 0 1.6rem; border-bottom: 1px solid var(--line); }
.fx-who__row::before { content: ''; grid-row: 1 / 3; width: 12px; height: 12px; margin-top: .5rem; background: var(--teal-primary); border-radius: 0 0 var(--radius-mark) 0; }
.fx-who__who { grid-column: 2; font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.015em; color: var(--teal-deep); margin-bottom: .35rem; }
.fx-who__what { grid-column: 2; }
.fx-call-wrap { margin-top: 2.75rem; }
.fx-call {
  display: flex; align-items: center; gap: 1.25rem; padding: 1.4rem 1.6rem;
  background: var(--white); border-radius: var(--radius-card); box-shadow: var(--shadow-soft);
  transition: box-shadow .6s var(--ease);
}
.fx-call:hover { box-shadow: var(--shadow-soft), var(--shadow-lift); }
.fx-call__ico { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--teal-deep); color: var(--cream); transition: background .5s var(--ease); }
.fx-call:hover .fx-call__ico { background: var(--teal-primary); }
.fx-call__ico svg { width: 22px; height: 22px; }
.fx-call__lab { display: block; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-primary); }
.fx-call__num { display: block; font-family: var(--font-heading); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; color: var(--teal-deep); }

/* =========================================================
   4 · ABLAUF
   ========================================================= */
.fx-flow { margin-top: clamp(3rem, 6vw, 5rem); row-gap: 2.5rem; }
.fx-flow__media { display: none; }
.fx-stagebox { position: relative; padding-bottom: 12%; }
.fx-flow__inset {
  position: absolute; left: -6%; bottom: 0; width: 54%; z-index: 3;
  border: 6px solid var(--bg); border-radius: var(--radius-card); overflow: hidden; background: var(--cream-dark);
  opacity: 0; transform: translateY(18px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.fx-flow__inset img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.fx-flow__media[data-station="3"] .fx-flow__inset { opacity: 1; transform: none; transition: opacity .8s var(--ease) .3s, transform .8s var(--ease) .3s; }

.fx-step { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 1.5rem; padding-bottom: clamp(2.75rem, 7vw, 5rem); }
.fx-step:last-child { padding-bottom: 0; }
.fx-step::before {
  content: ''; position: absolute; left: 31.5px; top: 78px; bottom: 14px; border-left: 1px solid var(--line);
  transform-origin: top; transition: transform 1.4s var(--ease);
}
.fx-anim .fx-step::before { transform: scaleY(0); }
.fx-anim .fx-step.is-visible::before { transform: scaleY(1); }
.fx-step:last-child::before { display: none; }
.fx-step::after {
  content: ''; position: absolute; left: 31px; top: 78px; bottom: 14px; width: 2px; background: var(--teal-primary);
  transform: scaleY(0); transform-origin: top; transition: transform .9s var(--ease);
}
.fx-step:last-child::after { display: none; }
.fx-anim .fx-step.is-done::after { transform: scaleY(1); }
.fx-anim .fx-step__ico, .fx-anim .fx-step__body { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.fx-anim .fx-step__title { transform-origin: 0 50%; transition: transform .7s var(--ease), color .7s var(--ease); }
.fx-anim .fx-step:not(.is-active) .fx-step__ico { opacity: .35; }
.fx-anim .fx-step:not(.is-active) .fx-step__body { opacity: .38; }
.fx-anim .fx-step:not(.is-active) .fx-step__title { transform: scale(.9); }
.fx-anim .fx-step.is-active .fx-step__body { transform: translateX(6px); }
.fx-step__ico { width: 64px; height: 64px; color: var(--teal-deep); }
.fx-step__ico .fx-acc { fill: var(--teal-primary); }
.fx-step__kicker { font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-primary); margin-bottom: .5rem; }
.fx-step__title { font-family: var(--font-heading); font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; color: var(--teal-deep); margin-bottom: .85rem; }
.fx-step__body p:last-child { max-width: 34rem; }

/* Duo (mobil / ohne JS): großes Bild + überlappender Ausschnitt */
.fx-duo { position: relative; padding-bottom: 12%; margin-bottom: 1.5rem; max-width: 30rem; }
.fx-duo__big .fx-frame__in { aspect-ratio: 3 / 2; }
.fx-duo__inset {
  position: absolute; right: 4%; bottom: 0; width: 46%;
  border: 6px solid var(--bg); border-radius: var(--radius-card); overflow: hidden; background: var(--cream-dark);
}
.fx-duo__inset img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* =========================================================
   5 · VERSPRECHEN
   ========================================================= */
.fx-vow__head { row-gap: 2rem; align-items: end; }
.fx-statement {
  font-family: var(--font-heading); font-size: clamp(2.2rem, 6.2vw, 5.5rem); font-weight: 500; line-height: 1.04; letter-spacing: -0.04em;
  color: var(--teal-deep); margin-top: 1.5rem;
}
.fx-statement__l { display: block; }
/* Animation a: Gewicht von „die Last“ (startseite.js setzt --fx-last-w von 800 auf 400); ohne JS fest 800 */
.fx-statement em { font-weight: var(--fx-last-w, 800); }
.fx-vow__lede { font-size: clamp(1.3rem, 2.1vw, 1.7rem); font-weight: 500; line-height: 1.4; letter-spacing: -0.02em; color: var(--teal-deep); max-width: 26rem; }
.fx-vow { margin-top: clamp(3.5rem, 7vw, 6rem); display: grid; grid-template-columns: minmax(0, 1fr); column-gap: clamp(2rem, 6vw, 6rem); }
.fx-vow__item { position: relative; display: grid; grid-template-columns: 12px minmax(0, 1fr); column-gap: 1.25rem; padding: 1.8rem 0 2rem; }
.fx-vow__item::before { content: ''; position: absolute; top: 0; left: 0; right: 0; border-top: 1px solid var(--line); transform-origin: left; }
.fx-mark { width: 12px; height: 12px; margin-top: .55rem; background: var(--teal-primary); border-radius: 0 0 var(--radius-mark) 0; transition: transform .6s var(--ease); }
.fx-vow__item:hover .fx-mark { transform: scale(1.5); }
.fx-vow__title { font-family: var(--font-heading); font-size: clamp(1.2rem, 1.7vw, 1.4rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; color: var(--teal-deep); }
.fx-vow__title + p { margin-top: .4rem; font-size: 1.05rem; }
.fx-vow__note { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 1.05rem; max-width: 40rem; }

/* =========================================================
   5b · VORHER / NACHHER (Bildwand mit Schalter)
   ========================================================= */
.fx-vn__head { row-gap: 1.75rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.fx-vn__side > p { max-width: 26rem; }
.fx-switch {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-top: 1.5rem; padding: 4px;
  border-radius: var(--radius-btn); background: var(--white); box-shadow: var(--shadow-soft);
}
.fx-switch__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: var(--radius-btn); background: var(--teal-deep);
  transition: transform .7s var(--ease);
}
.fx-switch[data-state="nachher"] .fx-switch__thumb { transform: translateX(100%); }
.fx-switch__btn {
  position: relative; min-height: 48px; min-width: 7.25rem; padding: 0 1.5rem;
  border: 0; border-radius: var(--radius-btn); background: none; cursor: pointer;
  font-weight: 600; color: var(--teal-deep); transition: color .5s var(--ease);
}
.fx-switch__btn[aria-pressed="true"] { color: var(--cream); }
.fx-wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--col-gap); }
.fx-tile { position: relative; min-width: 0; }
.fx-tile .fx-frame__in { aspect-ratio: 4 / 5; }
.fx-tile--big { grid-column: 1 / -1; }
.fx-tile img { position: absolute; inset: 0; }
.fx-tile__v { transition: opacity 1.1s var(--ease) calc(var(--i, 0) * 110ms); }
.fx-wall[data-state="nachher"] .fx-tile__v { opacity: 0; }
.fx-tile:nth-child(2) { --i: 1; } .fx-tile:nth-child(3) { --i: 2; }
.fx-tile:nth-child(4) { --i: 3; } .fx-tile:nth-child(5) { --i: 4; }
/* Ohne JS gibt es keinen Schalter: Die Wand zeigt das Ergebnis */
html:not(.fx-anim) .fx-tile__v, html:not(.fx-anim) .fx-switch { display: none; }
.fx-tile__cap {
  position: absolute; left: .75rem; bottom: .75rem; z-index: 2;
  padding: .3rem .8rem; border-radius: var(--radius-btn);
  background: var(--bar-glass); color: var(--teal-deep); font-size: .82rem; font-weight: 600; line-height: 1.4;
}

/* =========================================================
   6 · KOSTENRECHNER
   ========================================================= */
.fx-calc-sec { padding-top: 0; padding-bottom: var(--space-sm); }
.fx-calc {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem); background: var(--white); border-radius: var(--radius-card); box-shadow: var(--shadow-soft);
}
.fx-calc__img .fx-frame__in { aspect-ratio: 4 / 3; }
.fx-calc .fx-h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
.fx-calc .fx-lede { margin-top: 1.5rem; }
.fx-calc__note { margin: 1rem 0 2rem; max-width: 30rem; }

/* =========================================================
   7 · EINZUGSGEBIET
   ========================================================= */
.fx-area { row-gap: 2.5rem; }
.fx-cities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1rem, 4vw, 3rem); }
.fx-cities li { border-top: 1px solid var(--line); }
.fx-city {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 64px; padding: .75rem 0;
  font-family: var(--font-heading); font-size: clamp(1.2rem, 2.2vw, 1.8rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.2;
  color: var(--teal-deep); transition: color .4s var(--ease);
}
.fx-city span { transition: transform .6s var(--ease); }
.fx-city .fx-ico { opacity: 0; transform: translateX(-8px); transition: opacity .4s var(--ease), transform .6s var(--ease); color: var(--teal-primary); }
.fx-city:hover { color: var(--teal-primary); }
.fx-city:hover span { transform: translateX(8px); }
.fx-city:hover .fx-ico { opacity: 1; transform: none; }
.fx-area__more { margin-top: 2rem; max-width: 36rem; }
.fx-area__home { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); max-width: 30rem; }
.fx-area__home strong { color: var(--teal-deep); }

/* Wuppertaler Stadtbezirke als ruhige Laufzeile (Form wie .st-lauf auf den Städteseiten).
   Der Trennpunkt steht vor jedem Namen und ragt am Zeilenanfang aus dem Block, der ihn abschneidet: So hängt nie ein Punkt am Zeilenende. */
.fx-lauf { overflow: hidden; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.fx-lauf__lab { margin-bottom: 1rem; }
.fx-lauf__liste {
  display: flex; flex-wrap: wrap; margin-left: -1.65em;
  font-family: var(--font-heading); font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 500; line-height: 1.5; letter-spacing: -0.025em;
  color: var(--teal-deep);
}
.fx-lauf__liste li { position: relative; padding-left: 1.65em; white-space: nowrap; }
.fx-lauf__liste li::before { content: '·'; content: '·' / ''; position: absolute; left: .7em; font-weight: 700; color: var(--teal-primary); }

/* =========================================================
   8 · FAQ
   ========================================================= */
.fx-faq { row-gap: 2.5rem; }
.fx-faq__end { margin-top: 1.5rem; }

/* =========================================================
   9 · KONTAKT (dunkel) + FOOTER
   ========================================================= */
.fx-cta { position: relative; overflow: hidden; padding-block: clamp(6rem, 12vw, 10rem) clamp(4rem, 8vw, 6rem); }
.fx-cta__mark { position: absolute; top: -8%; right: -14%; width: clamp(320px, 52vw, 760px); height: auto; color: var(--cream); opacity: .09; pointer-events: none; }
.fx-cta__mark .fx-acc { fill: var(--teal-accent-soft); }
.fx-cta .fx-eyebrow { color: var(--teal-accent-soft); }
.fx-cta__title {
  font-family: var(--font-heading); font-size: clamp(2.2rem, 5.6vw, 4.75rem); font-weight: 500; line-height: 1.06; letter-spacing: -0.035em;
  color: var(--cream); margin: 1.5rem 0; max-width: 18ch; text-wrap: balance;
}
.fx-cta__sub { font-size: 1.12rem; color: var(--cream-85); max-width: 32rem; margin-bottom: 2.5rem; }
/* Zwei Wege: Formular und Anruf. Der Anruf ist auf Dunkel umrandet in Cream. Auf Handys stehen die Knöpfe untereinander. */
.fx-cta__actions { display: flex; flex-direction: column; align-items: stretch; gap: .75rem; max-width: 26rem; }
.fx-cta__actions .fx-btn { justify-content: space-between; }
.fx-cta .fx-btn--line { color: var(--cream); border-color: var(--cream-70); }
.fx-cta .fx-btn--line .fx-btn__ico { background: var(--line-dark); }
.fx-cta .fx-btn--line:hover { background: var(--cream); border-color: var(--cream); color: var(--teal-deep); }
.fx-cta .fx-btn--line:hover .fx-btn__ico { background: var(--teal-tint); }


/* =========================================================
   BREAKPOINTS
   ========================================================= */
@media (min-width: 900px) {
  /* Leiste „Auf dieser Seite“: Hero macht ihr im ersten Bildschirm Platz, die Situation übernimmt sie als oberen Abschluss */
  html { scroll-padding-top: 7.5rem; }
  .fx-hero { min-height: calc(100svh - 3.25rem + var(--radius-card)); }
  .fx-sub {
    display: block; position: sticky; top: 4.8rem; z-index: 50;
    margin-top: calc(-1 * var(--radius-card)); border-radius: var(--radius-card) var(--radius-card) 0 0;
    background: var(--bg); box-shadow: 0 1px 0 var(--line); transition: border-radius .4s var(--ease);
  }
  .fx-sub.is-stuck { border-radius: 0; }
  .fx-sit { margin-top: 0; border-radius: 0; }

  .fx-vn__main { grid-column: 1 / 8; }
  .fx-vn__side { grid-column: 9 / 13; }
  .fx-wall { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(12rem, 18vw, 16.5rem); }
  .fx-tile { grid-column: span 3; }
  .fx-tile .fx-frame__in { aspect-ratio: auto; height: 100%; }
  .fx-tile--big { grid-column: 1 / 7; grid-row: 1 / 3; }
  .fx-tile--big img { object-position: 50% 30%; }
  .fx-hero__poster, .fx-hero__video { object-position: 62% 30%; }
  .fx-hero--start .fx-hero__actions { align-items: flex-start; }
  .fx-hero--start .fx-hero__anruf { display: none; }
  .fx-hero--start .fx-hero__tel { display: inline-flex; }

  .fx-cta__actions { flex-direction: row; flex-wrap: wrap; align-items: center; max-width: none; }

  /* Situation: Bühne links, Liste rechts */
  .fx-sit__intro { grid-column: 1 / 6; }
  .fx-sit__list { grid-column: 7 / 13; }
  .fx-stage { display: block; }
  .fx-pimg { display: none; }

  /* Ansprechpartner (Verhältnis etwa 5:7) */
  .fx-person__fig { grid-column: 1 / 6; }
  .fx-person__body { grid-column: 6 / 13; padding-left: clamp(1rem, 4vw, 3.5rem); }
  .fx-person__frame .fx-frame__in { aspect-ratio: auto; min-height: 26rem; }

  /* Ablauf */
  .fx-flow { row-gap: 0; }
  .fx-flow__steps { grid-column: 7 / 13; padding-top: .5rem; }
  /* Laufweg nach Station 3: Die Bühne bleibt kleben, bis der fertige Raum zu sehen ist */
  .fx-anim .fx-flow__steps { padding-bottom: 45svh; }
  .fx-anim .fx-flow__media { display: block; grid-column: 1 / 6; align-self: start; position: sticky; top: 10rem; }
  .fx-anim .fx-step__duo { display: none; }
  html:not(.fx-anim) .fx-flow__steps { grid-column: 3 / 12; }
  .fx-step { padding-bottom: clamp(6rem, 24vh, 14rem); }
  .fx-step:last-child { padding-bottom: 0; }

  /* Versprechen */
  .fx-vow__main { grid-column: 1 / 10; }
  .fx-vow__lede { grid-column: 10 / 13; padding-bottom: .75rem; }
  .fx-vow { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .fx-calc { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }

  .fx-area__intro { grid-column: 1 / 6; }
  .fx-area__list { grid-column: 7 / 13; }
  .fx-faq__head { grid-column: 1 / 5; position: sticky; top: 10rem; align-self: start; }
  .fx-faq__list { grid-column: 6 / 13; }

}

@media (max-width: 559px) {
  .fx-city .fx-ico { display: none; }
  .fx-call { padding: 1.15rem 1.2rem; gap: 1rem; }
  .fx-call__ico { width: 46px; height: 46px; }
}

/* =========================================================
   REDUZIERTE BEWEGUNG: alles sofort im Endzustand
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .fx-anim [data-fade] { opacity: 1; transform: none; }
  .fx-anim [data-split] { visibility: visible; }
  .fx-anim .fx-w__i { transform: none; }
  .fx-anim .fx-frame[data-clip] .fx-frame__in { clip-path: inset(0 0 0 0 round var(--radius-card)); }
  .fx-anim .fx-frame[data-clip]::after { transform: none; }
  .fx-anim .fx-step::before { transform: none; }
  .fx-anim .fx-step__title, .fx-anim .fx-step.is-active .fx-step__body { transform: none; }
}
