/* =========================================================
   Startseite. Nur hier geladen.
   Ein besonderer Moment (der Wisch), alles andere ruhig.
   ========================================================= */

@property --wisch {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 115%;
}

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

.buehne { padding: 0; }

.buehne-kopf {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  align-items: end;
  gap: 24px 48px;
  margin-top: clamp(32px, 3.4vw, 48px);
}

.buehne-titel {
  font-size: clamp(3.5rem, 11.4vw, 10rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.86;
  margin: 0;
  /* Optischer Ausgleich: das B steht sonst eingerückt */
  margin-left: -0.04em;
}

.buehne-text p {
  font-size: clamp(1.08rem, 1.4vw, 1.2rem);
  color: var(--schiefer);
  margin-bottom: 24px;
}

/* Glanz, der mit dem Wisch durch die Überschrift läuft */
.glanzschrift {
  display: inline-block;
  padding-right: 0.06em;
  color: var(--nacht);
}

.wisch-an .glanzschrift {
  background: linear-gradient(100deg, var(--nacht) 0 46.5%, #8fe0e2 49.2%, #ffffff 50%, #8fe0e2 50.8%, var(--nacht) 53.5% 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glanzschrift.glanz-los { animation: glanz-lauf 1400ms var(--ease-in-out) both; }

@keyframes glanz-lauf {
  from { background-position: 100% 0; }
  to { background-position: 0% 0; }
}

/* ---------- Der Wisch ---------- */

.wisch {
  position: relative;
  overflow: hidden;
  height: calc(100vh - 68px);
  height: 72svh;
  min-height: 420px;
  max-height: 820px;
  /* Überschrift und Knopf stehen am PC im ersten Bildschirm */
  height: clamp(360px, calc(100svh - 68px - 390px), 760px);
  background: #c9d3d6;
  isolation: isolate;
  --wisch: 115%;
}

.wisch picture, .wisch-bild { width: 100%; height: 100%; }

.wisch-bild {
  object-fit: cover;
  object-position: 58% 50%;
}

.wisch-schleier, .wisch-klinge, .wisch-abzieher { display: none; }

.wisch-an .wisch { --wisch: -20%; }

.wisch-an .wisch-schleier {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  -webkit-backdrop-filter: blur(14px) saturate(0.55) brightness(0.92) contrast(0.86);
  backdrop-filter: blur(14px) saturate(0.55) brightness(0.92) contrast(0.86);
  /* Weiche Wasserflecken statt Muster: keine Kacheln, keine Kanten */
  background:
    radial-gradient(60% 45% at 18% 28%, rgba(255, 255, 255, 0.22), transparent 70%),
    radial-gradient(45% 60% at 72% 64%, rgba(170, 160, 140, 0.28), transparent 72%),
    radial-gradient(35% 30% at 46% 82%, rgba(255, 255, 255, 0.14), transparent 70%),
    radial-gradient(30% 40% at 88% 18%, rgba(150, 142, 126, 0.22), transparent 70%),
    rgba(206, 200, 186, 0.34);
  -webkit-mask-image: linear-gradient(100deg, transparent calc(var(--wisch) - 2%), #000 calc(var(--wisch) + 6%));
  mask-image: linear-gradient(100deg, transparent calc(var(--wisch) - 2%), #000 calc(var(--wisch) + 6%));
}

.wisch-an .wisch-klinge {
  display: block;
  position: absolute;
  z-index: 2;
  top: -12%;
  bottom: -12%;
  left: calc(var(--wisch) - 150px);
  width: 160px;
  transform: rotate(10deg);
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(207, 241, 241, 0.18) 30%,
    rgba(255, 255, 255, 0.9) 49%,
    #ffffff 50%,
    rgba(207, 241, 241, 0.55) 53%,
    rgba(255, 255, 255, 0) 70%);
  mix-blend-mode: screen;
}

.wisch-an .wisch-abzieher {
  display: block;
  position: absolute;
  z-index: 3;
  top: 16%;
  height: 68%;
  width: auto;
  max-width: none;
  left: var(--wisch);
  /* Die Gummilippe (linker Rand des Bildes) liegt genau auf der Wischkante. */
  transform-origin: 2% 50%;
  transform: translateX(-2%) rotate(10deg);
  filter: drop-shadow(14px 18px 22px rgba(8, 24, 36, 0.34));
  pointer-events: none;
}

.wisch-los .wisch { animation: wisch-lauf 1900ms var(--ease-in-out) 160ms both; }
.wisch-los .wisch-klinge { animation: klinge-licht 1900ms linear 160ms both; }

@keyframes wisch-lauf {
  from { --wisch: -20%; }
  to { --wisch: 128%; }
}

@keyframes klinge-licht {
  0% { opacity: 0; }
  8% { opacity: 1; }
  88% { opacity: 1; }
  100% { opacity: 0; }
}

/* Danach: der Schleier ist weg, es bleibt nur das klare Bild. */
.wisch-fertig .wisch-schleier, .wisch-fertig .wisch-klinge, .wisch-fertig .wisch-abzieher { display: none; }

/* ---------- Drei Fakten unter dem Bild ---------- */

.fakten {
  list-style: none;
  margin: 0;
  padding: clamp(28px, 4vw, 44px) 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 48px;
}

.fakten li { display: grid; gap: 4px; }
.fakten strong { color: var(--nacht); font-weight: 650; font-size: 1.05rem; }
.fakten span { color: var(--schiefer); font-size: 0.98rem; }

/* ---------- Ergebnis (echte Vorher-Nachher-Fotos) ---------- */

.ergebnis-raster {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.ergebnis-text { position: sticky; top: 120px; padding-top: 8px; }
.ergebnis-text h2 { max-width: 13ch; }
.ergebnis-text .textlink { display: table; }
.ergebnis-text p { font-size: 1.15rem; max-width: 36ch; }

.umschalter {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 12px 0 28px;
  border-radius: 999px;
  background: rgba(13, 48, 73, 0.06);
}

.umschalter-knopf {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--schiefer);
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color var(--schnell) ease, color var(--schnell) ease;
}

.umschalter-knopf[aria-pressed="true"] {
  background: var(--weiss);
  color: var(--nacht);
  box-shadow: 0 1px 3px rgba(13, 48, 73, 0.12);
}

.ba-gross { aspect-ratio: 4 / 5; max-height: 82vh; margin-left: auto; }
.ba-gross img { transition: opacity 260ms ease; }
.ba-gross.wechselt img { opacity: 0; }

/* ---------- Leistungen ---------- */

.leistungen-kopf {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.leistungen-kopf h2 { margin: 0; max-width: 12ch; }

.reihe-pfeile { display: flex; gap: 8px; }

.pfeil {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(13, 48, 73, 0.07);
  color: var(--nacht);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--schnell) ease, opacity var(--schnell) ease, transform var(--schnell) var(--ease-out);
}

.pfeil svg { width: 22px; height: 22px; }
.pfeil:active { transform: scale(0.94); }
.pfeil:disabled { opacity: 0.35; cursor: default; }

@media (hover: hover) {
  .pfeil:not(:disabled):hover { background: rgba(13, 48, 73, 0.12); }
}

.reihe {
  overflow-x: auto;
  /* Platz, damit sich die Karten beim Zeigen anheben können, ohne oben abgeschnitten zu werden */
  padding-top: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  scroll-padding-inline: max(var(--rand), calc((100vw - var(--breite)) / 2));
}

.reihe::-webkit-scrollbar { display: none; }
.reihe:focus-visible { outline-offset: -2px; }

.reihe-spur {
  list-style: none;
  margin: 0;
  display: flex;
  gap: clamp(14px, 1.6vw, 20px);
  padding: 0 max(var(--rand), calc((100vw - var(--breite)) / 2));
  width: max-content;
}

.leistung {
  scroll-snap-align: start;
  width: clamp(270px, 29vw, 380px);
}

.leistung a { display: block; }

.leistung picture {
  display: block;
  border-radius: var(--radius-gross);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #dfe6e8;
  margin-bottom: 20px;
}

.leistung img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}

@media (hover: hover) {
  .leistung a { transition: transform 400ms var(--ease-out); }
  .leistung a:hover { transform: translateY(-2px); }
  .leistung a:hover img { transform: scale(1.03); }
}

.leistung h3 { font-size: 1.35rem; margin-bottom: 6px; }
.leistung p { color: var(--schiefer); font-size: 1rem; max-width: 32ch; margin: 0; }

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

.ablauf-titel { max-width: 13ch; margin-bottom: clamp(32px, 5vw, 72px); }

.ablauf-raster {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
}

.ablauf-schritte { list-style: none; margin: 0; padding: 0; }

.schritt {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid var(--linie);
  padding: 32px 0;
  opacity: 0.32;
  transition: opacity 400ms ease;
}

.schritt:first-child { border-top: 0; }
.schritt.ist-aktiv { opacity: 1; }

.schritt-nr {
  font-weight: 750;
  font-size: 0.95rem;
  color: var(--petrol-tief);
  margin-bottom: 10px;
}

.schritt h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.03em; margin-bottom: 12px; }
.schritt p { color: var(--schiefer); font-size: 1.08rem; max-width: 40ch; margin: 0; }

.schritt-bild { display: none; }

.ablauf-buehne { position: relative; }

.ablauf-rahmen {
  position: sticky;
  top: calc(50vh - min(34vh, 320px));
  height: min(68vh, 640px);
  border-radius: var(--radius-gross);
  overflow: hidden;
  background: var(--weiss);
}

.ablauf-rahmen .schritt-bild {
  display: block;
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 500ms ease, transform 900ms var(--ease-out);
}

.ablauf-rahmen .schritt-bild.ist-aktiv { opacity: 1; transform: none; }

.szene { width: 100%; height: 100%; }
.szene-foto picture, .szene-foto img { width: 100%; height: 100%; object-fit: cover; }

.szene-anruf {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: clamp(28px, 5vw, 64px);
  background: var(--nacht);
  color: #a9c3cc;
}

.szene-anruf strong {
  color: #fff;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1;
}

.szene-termin {
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(120% 90% at 20% 0%, #e7f4f4 0%, transparent 60%),
    var(--glas);
}

.termin-karte {
  display: grid;
  gap: 4px;
  width: min(320px, 100%);
  padding: 28px;
  border-radius: 24px;
  background: var(--weiss);
  box-shadow: 0 30px 60px -30px rgba(13, 48, 73, 0.35);
  border-left: 4px solid var(--petrol);
}

.termin-tag { color: var(--petrol-tief); font-weight: 650; }
.termin-karte strong { font-size: 2.4rem; color: var(--nacht); letter-spacing: -0.03em; line-height: 1.1; }
.termin-karte span { color: var(--nacht); }
.termin-karte .termin-rhythmus { color: var(--schiefer); font-size: 0.92rem; }

/* ---------- Stimmen ---------- */

.stimmen { padding-bottom: var(--abstand); }

.stimmen-kopf { margin-bottom: clamp(36px, 5vw, 64px); }
.stimmen-kopf h2 { max-width: 18ch; }

.sterne { display: flex; gap: 3px; color: #e9a23b; margin-bottom: 18px; }
.sterne svg { width: 22px; height: 22px; }

.stimmen-reihe {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
  margin-bottom: 36px;
}

.stimme { margin: 0; border-top: 1px solid var(--linie); padding-top: 24px; }

.stimme blockquote {
  margin: 0 0 18px;
  color: var(--nacht);
  font-size: 1.12rem;
  line-height: 1.5;
}

.stimme figcaption { color: var(--schiefer); font-size: 0.95rem; font-weight: 600; }

/* =========================================================
   Breiten
   ========================================================= */

@media (max-width: 980px) {
  .buehne-kopf { grid-template-columns: 1fr; }
  .buehne-text { max-width: 520px; }
  .ergebnis-raster { grid-template-columns: 1fr; }
  .ergebnis-text { position: static; }
  .ba-gross { max-height: none; }
  .ablauf-raster { grid-template-columns: 1fr; }
  .ablauf-buehne { display: none; }
  .schritt { min-height: 0; opacity: 1; padding: 0 0 48px; border-top: 0; }
  .schritt-bild {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-gross);
    overflow: hidden;
    margin-bottom: 24px;
    background: var(--weiss);
  }
  .stimmen-reihe { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .wisch { height: 64vh; height: 64svh; min-height: 360px; }
  .wisch-an .wisch-abzieher { top: 21%; height: 58%; }
  .buehne-titel { font-size: clamp(3rem, 16.4vw, 6rem); }
  .buehne .cta-row { display: none; }
  .buehne-text p { margin-bottom: 0; }
  .wisch-bild { object-position: 62% 50%; }
  .fakten { grid-template-columns: 1fr; gap: 18px; }
  .reihe-pfeile { display: none; }
  .leistung { width: 78vw; }
  .umschalter { display: flex; width: 100%; }
  .umschalter-knopf { flex: 1; }
}
