/* Startseite, Abschnitt „Genau das, was Sie brauchen.“: Scroll-Szene.
   Ohne Skript oder bei reduzierter Bewegung bleibt der Abschnitt ein ruhiger Text. */

.stance-layout { display: grid; gap: 2rem; }
.stance-steps { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.stance-step p { font-size: 1.2rem; color: var(--ink); max-width: 30em; }
.stance-step + .stance-step p { color: var(--muted); }
.stance-step-label { display: none; }
.stance-canvas, .stance-dots { display: none; }
@media (min-width: 900px) { .stance-layout { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }

/* ---------- Szene (Skript setzt .stance-on) ---------- */
.stance-on .stance { --hh: 72px; height: calc(100svh - var(--hh) + 260vh); padding: 0; }
.stance-on .stance-stage {
  position: sticky; top: var(--hh); height: calc(100svh - var(--hh));
  display: flex; flex-direction: column; justify-content: center; gap: clamp(1rem, 3vh, 2.2rem);
  overflow: hidden;
}
.stance-on .stance-layout { align-items: center; }
@media (min-width: 900px) { .stance-on .stance-layout { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }

/* Texte: drei Schritte liegen übereinander, der aktive wird eingeblendet */
.stance-on .stance-steps { display: grid; gap: 0; margin-top: 1.4rem; }
.stance-on .stance-step {
  grid-area: 1 / 1; display: grid; gap: 0.6rem; align-content: start;
  opacity: 0; transform: translateY(14px); transition: opacity 0.45s var(--ease, ease), transform 0.45s var(--ease, ease);
  pointer-events: none;
}
.stance-on .stance-step.is-active { opacity: 1; transform: none; }
.stance-on .stance-step p, .stance-on .stance-step + .stance-step p { color: var(--ink); font-size: clamp(1.1rem, 1.5vw, 1.35rem); }
.stance-on .stance-step-label {
  display: inline-block; justify-self: start; padding: 0.3rem 0.75rem; border-radius: 999px;
  background: var(--light); color: var(--blue); font: 600 0.82rem var(--font-display); letter-spacing: 0.04em; text-transform: uppercase;
}

.stance-on .stance-dots { display: flex; gap: 1.2rem; margin-top: 1.6rem; }
.stance-dots button {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.2rem 0; border: 0; background: none; cursor: pointer;
  font: 600 0.9rem var(--font-display); color: var(--muted); transition: color 0.3s;
}
.stance-dots button span { position: relative; width: 26px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.stance-dots button span::after { content: ""; position: absolute; inset: 0; background: var(--blue); transform-origin: 0 50%; transform: scaleX(var(--f, 0)); }
.stance-dots button.is-active { color: var(--blue); }

/* Bühne rechts */
.stance-on .stance-canvas {
  display: block; position: relative; height: min(56vh, 520px);
  border-radius: 28px; background: radial-gradient(70% 70% at 50% 50%, var(--light), var(--surface) 70%);
  border: 1px solid var(--line);
}
.stance-chips { list-style: none; margin: 0; padding: 0; }
.stance-chips li {
  position: absolute; left: 0; top: 0; white-space: nowrap; will-change: transform, opacity;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 0.95rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line);
  font: 600 clamp(0.8rem, 1vw, 0.95rem) var(--font-display); color: var(--ink);
  box-shadow: 0 6px 18px -8px rgba(12, 26, 68, 0.25);
  transition: background-color 0.35s, border-color 0.35s, color 0.35s;
}
.stance-chips li.is-keep { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46, 230, 176, 0.22), 0 8px 22px -8px rgba(12, 26, 68, 0.3); }
.stance-chips li::before {
  content: ""; width: 0; height: 18px; border-radius: 50%; flex: none; transition: width 0.3s;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%230c1a44' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.stance-chips li.is-placed { background: var(--white); }
.stance-chips li.is-placed::before { width: 18px; }

.stance-q, .stance-fit { position: absolute; left: 50%; top: 50%; opacity: 0; pointer-events: none; }
.stance-q {
  display: inline-flex; align-items: center; gap: 0.7rem; max-width: 78%; padding: 0.9rem 1.3rem; border-radius: 20px;
  background: var(--night); color: var(--white); font: 650 clamp(1rem, 1.5vw, 1.25rem)/1.25 var(--font-display);
  box-shadow: 0 20px 50px -18px rgba(12, 26, 68, 0.6); z-index: 4;
}
.stance-q-mark { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: var(--night); font-weight: 800; }
.stance-fit {
  width: min(78%, 340px); border-radius: 22px; background: var(--blue);
  box-shadow: 0 24px 60px -20px rgba(39, 82, 236, 0.7); padding: 1rem 1.2rem;
}
.stance-fit-head { display: block; color: var(--white); font: 700 1.05rem var(--font-display); }
.stance-fit-head::after { content: "Genau das, was Sie brauchen"; display: block; margin-top: 0.15rem; font: 400 0.85rem var(--font-body); color: #d3dcfb; }

/* Kernzeile: Wörter erscheinen nacheinander */
.stance-on .core-line { margin-top: 0; padding-top: clamp(1rem, 2.4vh, 1.8rem); font-size: clamp(1.7rem, 4.2vw, 3.8rem); }
.stance-on .core-line span { opacity: var(--o, 0.12); transform: translateY(calc((1 - var(--o, 0.12)) * 10px)); display: inline-block; }
.stance-on .core-line span:nth-child(odd) { color: var(--ink); }
.stance-on .core-line span.is-on { color: var(--blue); }

@media (max-width: 899px) {
  .stance-on .stance-stage { justify-content: flex-start; padding-top: 1.2rem; gap: 0.8rem; }
  .stance-on .stance-layout { gap: 1rem; }
  .stance-on .stance h2 { font-size: 1.75rem; }
  .stance-on .stance-steps { margin-top: 0.7rem; min-height: 7.6em; }
  .stance-on .stance-step p { font-size: 1.02rem; }
  .stance-on .stance-dots { margin-top: 0.2rem; gap: 0.9rem; }
  .stance-dots button { font-size: 0.8rem; }
  .stance-on .stance-canvas { height: min(40svh, 340px); border-radius: 20px; }
  .stance-chips li { padding: 0.35rem 0.65rem; font-size: 0.74rem; }
  .stance-q { font-size: 0.95rem; padding: 0.7rem 0.9rem; max-width: 70%; }
  .stance-q-mark { width: 1.6rem; height: 1.6rem; }
  .stance-on .core-line { font-size: 1.55rem; }
}
