/* ============================================================
   STRATIFY HOME — Scroll-Hero + Startseiten-Sektionen
   Baut auf design-system.css auf.
   ============================================================ */

/* ---------- Scroll-Hero ---------- */
.sh {
  position: relative;
  height: 420vh; /* Scrub-Strecke; .sh-static kollabiert auf eine Viewport-Höhe */
  z-index: 1;
}
.sh.sh-static { height: auto; }

.sh-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: #0E0F13;
}
.sh.sh-static .sh-stage { position: relative; height: 100svh; }

.sh-poster,
.sh-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sh-canvas { opacity: 0; transition: opacity 500ms var(--ease-soft); }
.sh.sh-live .sh-canvas { opacity: 1; }
.sh-loop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lesbarkeits-Scrims über dem Film */
/* Scrim: nur so viel Abdunklung wie die Lesbarkeit braucht, links
   fokussiert und frueh auslaufend — die Bildmitte bleibt frei. */
.sh-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(8,9,12,0.62) 0%, rgba(8,9,12,0.26) 30%, rgba(8,9,12,0) 52%),
    linear-gradient(to top, rgba(8,9,12,0.42) 0%, transparent 26%);
  pointer-events: none;
  transition: background 700ms var(--ease-soft);
}
/* Ab Beat 3 wird der Film hell und warm — dort braucht die weiße Schrift
   mehr Abdunklung unter sich, sonst sinkt der Kontrast ins Unlesbare. */
.sh[data-beat="3"] .sh-scrim,
.sh[data-beat="4"] .sh-scrim {
  background:
    linear-gradient(100deg, rgba(8,9,12,0.74) 0%, rgba(8,9,12,0.4) 32%, rgba(8,9,12,0) 58%),
    linear-gradient(to top, rgba(8,9,12,0.45) 0%, transparent 26%);
}

.sh-content {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: clamp(72px, 10vh, 110px) var(--gutter) clamp(56px, 9vh, 96px);
}
@media (max-width: 900px) {
  /* Mobile: Bühne wächst mit dem Inhalt (Static-Modus), Inhalt fließt */
  .sh.sh-static .sh-stage { height: auto; min-height: 100svh; }
  .sh-content {
    position: relative;
    inset: auto;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 30px;
    padding-top: 96px;
  }
  .sh-kpi { display: none; }
}

/* Intro-Text (Beat 0) und End-Claim (Beat 4) teilen die linke Spalte */
.sh-copy { position: relative; z-index: 3; color: #fff; }
.sh-copy .eyebrow {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.75);
  box-shadow: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  margin-bottom: 22px;
}
.sh-copy h1 {
  font-family: var(--font-heading);
  font-size: clamp(29px, 3.1vw, 44px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 14px;
  max-width: 15ch;
  text-wrap: balance;
  text-shadow: 0 1px 24px rgba(8,9,12,0.5);
}
/* Im Hero KEIN Farbverlauf auf der Schrift: über bewegtem Bild kostet
   jede Einfärbung Kontrast. Der Akzent kommt hier über das Gewicht,
   nicht über Farbe — der Marken-Verlauf bleibt den ruhigen Sektionen
   unterhalb des Films vorbehalten. */
.sh-copy .accent {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
}
.sh-copy .sub {
  font-size: clamp(14px, 1.02vw, 15.5px);
  line-height: 1.58;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 1px 16px rgba(8,9,12,0.45);
  max-width: 400px;
  margin-bottom: 22px;
}
.sh-copy .sub strong { color: #fff; }
.sh-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.6);
}
.sh-trust span { display: inline-flex; align-items: center; gap: 7px; }
.sh-trust svg { width: 13px; height: 13px; color: rgba(255,255,255,0.75); }

.sh-intro, .sh-final {
  grid-area: 1 / 1;
  transition: opacity 500ms var(--ease-soft), transform 500ms var(--ease-snap);
}
.sh-final { opacity: 0; transform: translateY(14px); pointer-events: none; }

/* Beat-Steuerung: Intro sichtbar in Beat 0, Finale in Beat 4 */
.sh[data-beat="1"] .sh-intro,
.sh[data-beat="2"] .sh-intro,
.sh[data-beat="3"] .sh-intro { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.sh[data-beat="4"] .sh-intro { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.sh[data-beat="4"] .sh-final { opacity: 1; transform: none; pointer-events: auto; }
.sh.sh-static .sh-final { display: none; }

/* Scroll-Hinweis */
.sh-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 400ms;
}
.sh-hint::after {
  content: '';
  width: 1px;
  height: 26px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
  animation: shHint 1.6s var(--ease-soft) infinite;
}
@keyframes shHint {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(10px); transform-origin: top; opacity: 0; }
}
.sh:not([data-beat="0"]) .sh-hint { opacity: 0; }
.sh.sh-static .sh-hint { display: none; }

/* ---------- Story-Panel (rechte Spalte): Phone + KPI ---------- */
.sh-story {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
}
@media (max-width: 900px) {
  .sh-story { padding-right: 6px; }
}

.sh-phone {
  width: min(256px, 62vw);
  aspect-ratio: 9 / 18.6;
  background: #0B0B10;
  border-radius: 36px;
  padding: 8px;
  box-shadow: var(--shadow-phone);
  position: relative;
}
@media (max-width: 900px) {
  .sh-phone { width: min(212px, 54vw); }
}
.sh-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: linear-gradient(175deg, #F7F7F9 0%, #EFEFF4 100%);
  overflow: hidden;
}
.sh-island {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 19px;
  background: #0B0B10;
  border-radius: 100px;
  z-index: 5;
}

/* Beat-States im Phone */
.sh-state {
  position: absolute;
  inset: 0;
  padding: 44px 11px 14px;
  opacity: 0;
  transform: translateY(12px) scale(0.99);
  transition: opacity 420ms var(--ease-soft), transform 420ms var(--ease-snap);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sh[data-beat="0"] .sh-state-0,
.sh[data-beat="1"] .sh-state-1,
.sh[data-beat="2"] .sh-state-2,
.sh[data-beat="3"] .sh-state-3,
.sh[data-beat="4"] .sh-state-3 { opacity: 1; transform: none; }

/* State 0: Anruf-Chaos */
.sh-callrow {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  box-shadow: 0 1px 2px rgba(10,10,15,0.05);
}
.sh-callrow .ico {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: rgba(239,68,68,0.12);
  color: var(--red);
}
.sh-callrow .ico svg { width: 13px; height: 13px; }
.sh-callrow .t { font-size: 10.5px; font-weight: 600; color: var(--ink); line-height: 1.25; white-space: nowrap; }
.sh-callrow .s { font-size: 9.5px; color: var(--muted); }
.sh-callrow .badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 6px;
  white-space: nowrap;
  border-radius: 100px;
  background: rgba(239,68,68,0.1);
  color: var(--red);
  animation: shPulse 1.2s ease-in-out infinite;
}
@keyframes shPulse { 50% { opacity: 0.45; } }
.sh-missed {
  text-align: center;
  font-size: 9.5px;
  line-height: 1.35;
  color: var(--red);
  font-weight: 600;
}

/* State 1: KI nimmt ab (Transkript) */
.sh-take {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo);
}
.sh-take .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--grad);
  animation: shPulse 1.4s ease-in-out infinite;
}
.sh-state .bubble { font-size: 10.5px; padding: 7px 10px; border-radius: 12px; line-height: 1.4; }
.sh-state .bubble.out { border-bottom-right-radius: 5px; }
.sh-state .bubble.in { border-bottom-left-radius: 5px; }

/* State 2: Buchungs-Card */
.sh-book {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 14px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.sh-book .check {
  width: 40px; height: 40px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981, #06B6D4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.sh-book .check svg { width: 20px; height: 20px; }
.sh-book .t { font-family: var(--font-heading); font-weight: 700; font-size: 14px; color: var(--ink); }
.sh-book .s { font-size: 11px; color: var(--muted); margin-top: 2px; }
.sh-book .rows { margin-top: 12px; border-top: 1px dashed var(--line-strong); padding-top: 10px; display: grid; gap: 7px; }
.sh-book .row { display: flex; justify-content: space-between; font-size: 10px; gap: 8px; }
.sh-book .row .l { color: var(--muted); }
.sh-book .row .v { font-weight: 600; color: var(--ink); }
.sh-book .row .v.acc {
  background: var(--grad);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* State 3: Dashboard */
.sh-dash-title { font-family: var(--font-heading); font-size: 13.5px; font-weight: 700; color: var(--ink); padding: 0 2px; }
.sh-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sh-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 11px;
}
.sh-tile .l { font-size: 9.5px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; font-family: var(--font-mono); }
.sh-tile .v { font-family: var(--font-heading); font-size: 17px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.sh-tile .d { font-size: 9.5px; color: var(--green); font-weight: 600; margin-top: 1px; }

/* KPI-Float-Karten am Phone */
.sh-kpi {
  position: absolute;
  z-index: 4;
  min-width: 128px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 450ms var(--ease-soft), transform 450ms var(--ease-snap);
}
/* Beide Karten hängen an der LINKEN Phone-Kante: rechts ist seit der
   rechtsbündigen Bühne kein Platz mehr, links liegen sie über dem Film. */
.sh-kpi.tr { top: 6%; right: auto; left: -84px; }
.sh-kpi.bl { bottom: 12%; left: -84px; }
@media (max-width: 900px) {
  .sh-kpi.tr { right: auto; left: -20px; top: 4%; }
  .sh-kpi.bl { left: -12px; }
}
.sh[data-beat] .sh-kpi.show { opacity: 1; transform: none; }
.sh[data-beat="0"] .sh-kpi.show,
.sh[data-beat="3"] .sh-kpi.show,
.sh[data-beat="4"] .sh-kpi.show { opacity: 0; transform: translateY(8px); }

/* Beat-Caption unten links */
.sh-caption {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(52px, 8vh, 76px);
  z-index: 3;
  max-width: 400px;
  color: rgba(255,255,255,0.9);
}
.sh-caption .line {
  display: none;
  gap: 12px;
  align-items: baseline;
}
.sh-caption .time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.62);
  letter-spacing: 0.08em;
  flex: none;
}
.sh-caption .txt { font-size: clamp(14px, 1.35vw, 16.5px); line-height: 1.45; }
.sh[data-beat="1"] .sh-caption .c1,
.sh[data-beat="2"] .sh-caption .c2,
.sh[data-beat="3"] .sh-caption .c3 { display: flex; }
@media (max-width: 900px) { .sh-caption { display: none; } }

/* Fortschritts-Punkte */
.sh-progress {
  position: absolute;
  right: clamp(14px, 2vw, 26px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sh-progress span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  transition: background 300ms, height 300ms;
}
.sh[data-beat="0"] .sh-progress span:nth-child(1),
.sh[data-beat="1"] .sh-progress span:nth-child(2),
.sh[data-beat="2"] .sh-progress span:nth-child(3),
.sh[data-beat="3"] .sh-progress span:nth-child(4),
.sh[data-beat="4"] .sh-progress span:nth-child(4) {
  background: #fff;
  height: 18px;
  border-radius: 100px;
}
.sh.sh-static .sh-progress { display: none; }

/* ---------- Sektionen der Startseite ---------- */

/* Problem-Karten */
.problem-card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--red);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: block;
}

/* Handlung-Demo (Chat links, System rechts) */
.act-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 36px);
  align-items: stretch;
}
@media (max-width: 860px) { .act-demo { grid-template-columns: 1fr; } }
.act-pane {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2.5vw, 26px);
  box-shadow: var(--shadow-card);
}
.act-pane-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.act-pane-head svg { width: 16px; height: 16px; color: var(--indigo); }
.act-sys { display: grid; gap: 10px; }
.act-sys-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 14px;
  font-size: 13.5px;
  color: var(--muted);
  background: var(--surface-2);
}
.act-sys-row.done {
  background: #fff;
  color: var(--ink);
  border-color: rgba(16,185,129,0.35);
}
.act-sys-row .st {
  width: 22px; height: 22px;
  border-radius: 50%;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(16,185,129,0.12);
  color: var(--green);
}
.act-sys-row .st svg { width: 12px; height: 12px; }

/* Schritte */
.steps { counter-reset: step; }
.step {
  position: relative;
  padding-left: 64px;
  padding-bottom: clamp(28px, 4vw, 40px);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: -2px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--indigo);
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(6,182,212,0.08));
  border: 1px solid rgba(79,70,229,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step::after {
  content: '';
  position: absolute;
  left: 19.5px;
  top: 44px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(79,70,229,0.25), transparent);
}
.step:last-child::after { display: none; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; max-width: 560px; }

/* Branchen-Tabs */
.vtabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.vtab {
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  transition: all 200ms var(--ease-soft);
}
.vtab.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.vpanel { display: none; }
.vpanel.active { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
@media (max-width: 860px) { .vpanel.active { grid-template-columns: 1fr; } }
.vpanel ul { display: grid; gap: 12px; margin-top: 18px; }
.vpanel ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text);
}
.vpanel ul li svg { width: 17px; height: 17px; color: var(--green); flex: none; margin-top: 3px; }
.vpanel ul li b { font-weight: 600; }

/* Kanal-Orbit */
.channels {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.channel-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 10px 18px 10px 12px;
  font-size: 14.5px;
  font-weight: 500;
  box-shadow: var(--shadow-card);
}
.channel-chip .ci {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(79,70,229,0.1), rgba(6,182,212,0.1));
  color: var(--indigo);
}
.channel-chip .ci svg { width: 15px; height: 15px; }
.channel-chip small { color: var(--muted); font-weight: 400; }

/* Vertrauen */
.trust-grid .card { text-align: left; }
.trust-grid .card-icon { background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(6,182,212,0.1)); color: var(--green); }

/* Preis-Teaser */
.price-teaser {
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.price-teaser::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 500px 300px at 85% 20%, rgba(79,70,229,0.35), transparent 60%),
    radial-gradient(ellipse 400px 260px at 10% 90%, rgba(6,182,212,0.22), transparent 60%);
  pointer-events: none;
}
.price-teaser > * { position: relative; }
.price-teaser h2 { color: #fff; }
.price-teaser p { color: rgba(255,255,255,0.72); }
.price-teaser .big {
  font-family: var(--font-heading);
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.price-teaser .big small { font-size: 0.4em; font-weight: 500; color: rgba(255,255,255,0.6); }
@media (max-width: 860px) { .price-teaser { grid-template-columns: 1fr; } }

/* Partner-CTA */
.partner {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
}
.partner h3 { margin-bottom: 4px; }
.partner p { color: var(--muted); font-size: 15px; max-width: 520px; }
