/* ==========================================================================
   Scroll-Story (Prototyp, Ranevi-Seite): ein Browserfenster bleibt stehen und verwandelt sich, waehrend die Schritte vorbeiscrollen.
   Reine Verbesserung: Ohne JavaScript, bei prefers-reduced-motion oder wenn scrollstory.js nicht greift, bleibt es die normale Schrittliste
   (Klasse .ss--on setzt erst das Skript). Farben nur ueber die Tokens aus site.css (hell/dunkel). Die Buehne ist dekorativ (aria-hidden);
   der Inhalt steht als echter Text in den Schritten.
   ========================================================================== */
.ss__stage { display: none; }

.ss--on .ss__layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.ss--on .ss__steps { list-style: none; margin: 0; padding: 0; counter-reset: ssstep; }
.ss--on .ss__step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; gap: .5rem; padding-block: 2rem; opacity: .38; transition: opacity .4s ease; counter-increment: ssstep; }
.ss--on .ss__step.is-current { opacity: 1; }
.ss--on .ss__step::before { content: counter(ssstep); display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); font-weight: 700; font-size: .95rem; transition: background .3s, color .3s; }
.ss--on .ss__step.is-current::before { background: var(--accent); color: var(--bg); }
.ss--on .ss__step strong { font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.1; letter-spacing: -.01em; }
.ss--on .ss__step span { color: var(--muted); max-width: 34ch; }

.ss--on .ss__stage { display: block; position: sticky; top: calc(var(--header-h) + 24px); height: min(78vh, 640px); align-self: start; perspective: 1400px; }
.ss__win { position: relative; height: 100%; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  }
.ss__scene { position: relative; height: 100%; transform-style: preserve-3d; transition: transform .5s ease-out;
  transform: rotateX(calc(2deg - var(--p, 0) * 2deg)) rotateY(calc(-3deg + var(--p, 0) * 3deg)); }
.ss__win { box-shadow: var(--shadow), 0 40px 60px -30px rgba(0, 0, 0, .35); }
/* Schwebende Funktions-Karten auf eigenen Tiefenebenen: je groesser --z, desto weiter vorn und desto staerker die Parallaxe zu Scroll und Maus */
.ss__float { position: absolute; z-index: 3; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: .8rem; font-weight: 700; white-space: nowrap; box-shadow: var(--shadow), 0 18px 30px -14px rgba(0, 0, 0, .35);
  transform: translate3d(0, calc(var(--p, 0) * var(--sp) * 36px), calc(var(--z) * .6px)); transition: transform .4s ease-out; }
.ss__float::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; }
.ss__float--a { left: -2%; top: 14%; }
.ss__float--b { right: 2%; top: 46%; }
.ss__float--c { left: 6%; bottom: 8%; }
.ss__bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.ss__dots { display: flex; gap: 6px; }
.ss__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); display: block; }
.ss__url { flex: 1; min-width: 0; font-size: .82rem; color: var(--muted); background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 5px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.ss__badge { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); transition: background .3s, color .3s, border-color .3s; white-space: nowrap; }
.ss[data-step="2"] .ss__badge { border-color: var(--accent); color: var(--accent); }
.ss[data-step="3"] .ss__badge { background: var(--accent); border-color: var(--accent); color: var(--bg); }

.ss__body { position: relative; flex: 1; }
.ss__layer { position: absolute; inset: 0; padding: clamp(14px, 2.4vw, 28px); opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .45s ease, transform .45s ease; pointer-events: none; }
.ss[data-step="1"] .ss__layer--1, .ss[data-step="2"] .ss__layer--2, .ss[data-step="3"] .ss__layer--3, .ss[data-step="4"] .ss__layer--4, .ss[data-step="5"] .ss__layer--5 { opacity: 1; transform: none; }

/* Ebene 1: Vorlagen-Raster */
.ss__tiles { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 12px; height: 100%; }
.ss__tile { border: 1px solid var(--border); border-radius: 12px; background: var(--bg-alt); padding: 10px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; font-size: .72rem; color: var(--muted); font-weight: 600; transition: transform .35s ease, border-color .35s, background .35s, opacity .35s, box-shadow .35s; position: relative; overflow: hidden; }
.ss__tile::before { content: ""; position: absolute; inset: 10px 10px auto 10px; height: 38%; border-radius: 6px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 26%, transparent), color-mix(in srgb, var(--accent) 6%, transparent)); }
.ss__tile::after { content: ""; position: absolute; inset: calc(10px + 38% + 8px) 10px auto 10px; height: 6px; border-radius: 3px; background: var(--border); box-shadow: 0 12px 0 -1px var(--border), 0 24px 0 -1px var(--border); }
.ss__tile.is-pick { border-color: var(--accent); background: var(--surface); transform: scale(1.06); box-shadow: var(--shadow); z-index: 1; color: var(--text); }
.ss__tiles.has-pick .ss__tile:not(.is-pick) { opacity: .45; }

/* Ebene 2: die gewaehlte Vorlage wird bearbeitet */
.ss__site { height: 100%; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; }
.ss__site-nav { display: flex; gap: 14px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: .72rem; color: var(--muted); }
.ss__site-nav b { color: var(--text); margin-right: auto; }
.ss__site-hero { padding: clamp(14px, 3vw, 30px); background: linear-gradient(135deg, color-mix(in srgb, var(--ss-accent, var(--accent)) 24%, var(--bg)), var(--bg)); flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; transition: background .2s; }
.ss__site-title { font-size: clamp(1.1rem, 2.6vw, 1.7rem); font-weight: 800; line-height: 1.1; min-height: 2.2em; letter-spacing: -.01em; }
.ss__caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; background: var(--accent); vertical-align: -.12em; animation: ssblink 1s steps(1) infinite; }
.ss__site-line { height: 7px; border-radius: 4px; background: color-mix(in srgb, var(--text) 14%, transparent); width: 80%; }
.ss__site-line.s { width: 55%; }
.ss__site-cta { align-self: flex-start; padding: 7px 16px; border-radius: 999px; background: var(--ss-accent, var(--accent)); color: var(--bg); font-size: .72rem; font-weight: 700; transition: background .2s; }
.ss__swatches { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--border); align-items: center; font-size: .7rem; color: var(--muted); }
.ss__swatches i { width: 18px; height: 18px; border-radius: 50%; display: block; border: 2px solid transparent; }
.ss__swatches i.on { border-color: var(--text); }

/* Ebene 3: Live mit eigener Domain */
.ss__live { height: 100%; display: grid; place-items: center; text-align: center; gap: 14px; align-content: center; }
.ss__ring { width: 88px; height: 88px; border-radius: 50%; border: 3px solid var(--accent); display: grid; place-items: center; color: var(--accent); position: relative; transform: scale(calc(.8 + var(--live, 0) * .2)); transition: transform .2s; }
.ss__ring::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 2px solid var(--accent); opacity: calc(.5 - var(--live, 0) * .4); transform: scale(calc(.9 + var(--live, 0) * .35)); }
.ss__ring svg { width: 40px; height: 40px; }
.ss__live strong { font-size: 1.1rem; }
.ss__live small { color: var(--muted); font-size: .8rem; }

.ss__progress { position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--p, 0) * 100%); background: var(--accent); }

@keyframes ssblink { 50% { opacity: 0; } }

@media (max-width: 899px) {
  .ss--on .ss__layout { display: flex; flex-direction: column; }
  .ss--on .ss__stage { order: -1; align-self: stretch; width: 100%; top: calc(var(--header-h) + 8px); height: 54vh; z-index: 2; margin-bottom: 8px; }
  .ss--on .ss__step { min-height: 40vh; justify-content: center; padding-block: 2vh; }
  .ss--on .ss__step span { max-width: none; }
  .ss__scene { transform: none; }
  .ss__float { display: none; }
  .ss__badge { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ss__scene, .ss__float, .ss__layer, .ss__tile, .ss__ring, .ss--on .ss__step { transition: none; }
  .ss__caret { animation: none; }
}

/* ==========================================================================
   Flow-Hintergrund: ein fester Verlauf hinter der ganzen Seite, der von Kapitel zu Kapitel ineinander uebergeht (Kapitel = [data-flow]-Sektionen,
   Werte "Intensitaet %, x %, y %, Farbmix"). scrollstory.js setzt --flow-* je Scrollstand und die Klasse .flow-on; ohne JS/bei reduzierter Bewegung
   bleibt alles beim normalen Seitenhintergrund. Intensitaet bewusst <= 25 %, damit Text und Karten ihren Kontrast behalten (hell wie dunkel).
   ========================================================================== */
.flow-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at var(--flow-x, 50%) var(--flow-y, 20%), color-mix(in srgb, var(--flow-c, var(--accent)) calc(var(--flow-mix, 0) * var(--flow-gain, 1) * 1%), transparent), transparent 70%),
    radial-gradient(ellipse 60% 50% at calc(100% - var(--flow-x, 50%)) calc(100% - var(--flow-y, 20%)), color-mix(in srgb, var(--flow-c, var(--accent)) calc(var(--flow-mix, 0) * var(--flow-gain, 1) * .55%), transparent), transparent 70%),
    var(--bg); }
.flow-on .section:not(.cta-band), .flow-on .section--alt:not(.cta-band), .flow-on .service:not(.cta-band) { background: transparent; }
.flow-on .hero, .flow-on .page-hero { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 140px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 140px), transparent); }

/* 3D-Hintergrund (scene3d.js): feste WebGL-Flaeche zwischen Seitenhintergrund (.flow-bg) und Inhalt */
.scene3d { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.scene3d-on .flow-bg { opacity: .85; }

/* Scroll-Choreografie (scrollstory.js): --sp je Element, --hp fuer den Hero, --bp fuer den Fortschrittsbalken.
   Einzelne transform-Eigenschaften (translate/rotate/scale), damit sie sich mit vorhandenen Effekten (data-tilt) nicht beissen. */
.flow-on .grid, .flow-on .cards { perspective: 1200px; }
.sc-card { opacity: calc(.3 + var(--sp, 1) * .7); translate: 0 calc((1 - var(--sp, 1)) * 28px); rotate: 1 0 0 calc((1 - var(--sp, 1)) * 5deg); scale: calc(.97 + var(--sp, 1) * .03); transform-origin: 50% 100%; will-change: translate, rotate, opacity; }
.sw-wrap .sw { display: inline; opacity: calc(.3 + clamp(0, var(--sp, 1) * (var(--n, 4) + 1.5) - var(--i, 0), 1) * .7); }
.flow-on .hero .container, .flow-on .page-hero .container { translate: 0 calc(var(--hp, 0) * 36px); opacity: calc(1 - var(--hp, 0) * .8); }
.sc-bar { position: fixed; left: 0; top: 0; height: 3px; width: calc(var(--bp, 0) * 100%); background: linear-gradient(90deg, var(--accent), var(--signal)); z-index: 60; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .sc-card, .sw-wrap .sw, .flow-on .hero .container { opacity: 1; translate: none; rotate: none; scale: none; } .sc-bar { display: none; } }

/* Dunkler Modus: kraeftigerer Verlauf, weil Akzentfarben auf Schwarz sonst schwaecher wirken (im hellen Modus waren sie deutlich kontrastreicher). */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --flow-gain: 1.9; } }
:root[data-theme="dark"] { --flow-gain: 1.9; }

/* ==========================================================================
   Geschichten-Fenster ([data-story], scrollstory.js liefert --s1..--sn): gemeinsame Bausteine und je Seite eine Szene (mws = Momentwerk, fxs = fX-Box, sws = Software).
   Alles aus Tokens (hell/dunkel); die bunten "Foto"-Kacheln sind Dekoration in gedaempften Mittelfarben, die auf beiden Grundfarben tragen.
   ========================================================================== */
.st-in { --v: clamp(0, (var(--sx, 1) - var(--at, 0)) * 7, 1); opacity: var(--v); transform: translateY(calc((1 - var(--v)) * 14px)) scale(calc(.94 + var(--v) * .06)); }
.ss--on[data-story] .ss__step { min-height: 70vh; }
.ss__layer { display: flex; flex-direction: column; justify-content: center; gap: 14px; }

/* Momentwerk */
.mws-cam { position: relative; flex: 1; min-height: 150px; border: 2px solid var(--border); border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 16%, var(--bg-alt)), var(--bg-alt)); }
.mws-cam .c { position: absolute; width: 22px; height: 22px; border: 3px solid var(--accent); z-index: 2; }
.mws-cam .tl { left: 12px; top: 12px; border-right: 0; border-bottom: 0; } .mws-cam .tr { right: 12px; top: 12px; border-left: 0; border-bottom: 0; }
.mws-cam .bl { left: 12px; bottom: 12px; border-right: 0; border-top: 0; } .mws-cam .br { right: 12px; bottom: 12px; border-left: 0; border-top: 0; }
.mws-scene { position: absolute; inset: 0; }
.mws-sun { position: absolute; right: 22%; top: 22%; width: 52px; height: 52px; border-radius: 50%; background: #E8C27A; opacity: .9; }
.mws-hill { position: absolute; left: -10%; right: -10%; bottom: -30%; height: 70%; border-radius: 50%; background: color-mix(in srgb, var(--accent) 38%, var(--bg-alt)); } .mws-hill.h2 { left: 20%; right: -40%; bottom: -42%; background: color-mix(in srgb, var(--accent) 60%, var(--bg-alt)); }
.mws-flash { position: absolute; inset: 0; background: #fff; z-index: 3; opacity: calc(min(clamp(0, (var(--s1) - .55) * 10, 1), clamp(0, (.85 - var(--s1)) * 10, 1)) * .8); }
.mws-chips { display: flex; flex-wrap: wrap; gap: 8px; } .mws-chips--col { flex-direction: column; justify-content: center; }
.mws-chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-alt); font-size: .78rem; font-weight: 600; }
.mws-qrwrap { display: flex; align-items: center; justify-content: center; gap: 22px; height: 100%; }
.mws-qr { width: min(46%, 210px); aspect-ratio: 1; color: var(--text); fill: currentColor; padding: 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); }
.mws-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; flex: 1; align-content: center; }
.mws-grid--dim { opacity: .55; flex: 0 1 auto; }
.mws-tile { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, var(--bg-alt))); }
.mws-heart { position: absolute; right: 8px; top: 8px; width: 22px; height: 22px; fill: #E2536B; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35)); }
.mws-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mws-btn { padding: 8px 20px; border-radius: 999px; background: var(--accent); color: var(--bg); font-weight: 700; font-size: .85rem; } .mws-btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.mws-prog { flex: 1 1 120px; height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; } .mws-prog i { display: block; height: 100%; background: var(--accent); }
.mws-cart { display: flex; flex-direction: column; gap: 12px; padding: 4px; }
.mws-row { display: grid; grid-template-columns: 54px 1fr 60px; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-alt); }
.mws-thumb { width: 54px; height: 40px; border-radius: 8px; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, var(--bg-alt))); }
.mws-row b { height: 8px; border-radius: 4px; background: var(--border); } .mws-row u { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--text) 30%, transparent); text-decoration: none; }
.mws-steps { display: flex; align-items: center; margin-top: 10px; }
.mws-dot { --v: clamp(0, (var(--sx, 1) - var(--at, 0)) * 8, 1); width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) calc(var(--v) * 100%), transparent); }
.mws-line { --v: clamp(0, (var(--sx, 1) - var(--at, 0)) * 8, 1); flex: 1; height: 3px; background: linear-gradient(90deg, var(--accent) calc(var(--v) * 100%), var(--border) 0); }

/* fX-Box */
.fxs-rig { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-content: center; height: 100%; }
.fxs-part { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 8px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-alt); font-size: .78rem; font-weight: 600; text-align: center; }
.fxs-part svg { width: 44px; height: 44px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fxs-screen { position: relative; flex: 1; display: grid; place-items: center; border: 2px solid var(--border); border-radius: 16px; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 18%, var(--bg-alt)), var(--bg-alt)); overflow: hidden; min-height: 200px; }
.fxs-count { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.fxs-count b { position: absolute; font-size: clamp(5rem, 14vw, 8rem); line-height: 1; font-weight: 800; color: var(--accent); }
.fxs-shot { position: absolute; width: 90px; height: 90px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fxs-flash { position: absolute; inset: 0; background: #fff; }
.fxs-printer { position: relative; display: flex; justify-content: center; align-items: flex-start; height: 100%; padding-top: 10px; overflow: hidden; }
.fxs-slot { position: absolute; top: 0; left: 18%; right: 18%; height: 14px; border-radius: 0 0 8px 8px; background: var(--border); z-index: 2; box-shadow: 0 6px 12px rgba(0, 0, 0, .25); }
.fxs-strip { display: flex; flex-direction: column; gap: 8px; width: 38%; max-width: 150px; padding: 12px 10px 8px; border-radius: 6px; background: #f6f3ec; color: #333; margin-top: 8px; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5); }
.fxs-frame { aspect-ratio: 4 / 3; border-radius: 3px; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #fff)); }
.fxs-strip em { font-style: normal; font-size: .58rem; text-align: center; letter-spacing: .06em; text-transform: uppercase; color: #666; }
.fxs-phone { align-self: center; width: 190px; padding: 18px 14px; border: 3px solid var(--border); border-radius: 26px; background: var(--bg-alt); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.fxs-qr { width: 96px; height: 96px; color: var(--text); fill: currentColor; }
.fxs-mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; width: 100%; } .fxs-mini span { aspect-ratio: 4 / 3; border-radius: 6px; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, var(--bg-alt))); }
.fxs-bars { display: flex; flex-direction: column; gap: 18px; justify-content: center; height: 100%; }
.fxs-bar span { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.fxs-track { height: 14px; border-radius: 7px; background: var(--border); overflow: hidden; } .fxs-track i { display: block; height: 100%; border-radius: 7px; background: color-mix(in srgb, var(--accent) 70%, transparent); } .fxs-bar--hl .fxs-track i { background: var(--accent); }

/* Software: App-Uebersicht im Fenster (sws) - Gruppen bauen sich nacheinander auf, fruehere Gruppen werden zurueckgenommen */
.sws-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 10px; align-content: center; height: 100%; padding: 6px 4px; }
.sws-grp { display: contents; }
.sws-cap { grid-column: 1 / -1; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-top: 6px; }
.sws-i { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: opacity .35s ease, filter .35s ease; }
.sws-i img { width: clamp(44px, 7.5vw, 64px); height: auto; border-radius: 22%; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .55); }
.sws-i figcaption { font-size: .66rem; font-weight: 600; color: var(--muted); text-align: center; line-height: 1.2; }
.ss[data-step="2"] .sws-i.g1, .ss[data-step="3"] .sws-i.g1, .ss[data-step="3"] .sws-i.g2 { opacity: .42; filter: saturate(.6); }
@media (max-width: 899px) { .sws-grid { gap: 6px 6px; } .sws-cap { margin-top: 0; font-size: .64rem; } .sws-i img { width: 40px; } .sws-i figcaption { font-size: .56rem; } .sws-i { gap: 3px; } }

/* Leistungen: Zeitleiste "Ein Event von A bis Z" (lst) - Punkte und Linien fuellen sich mit dem jeweiligen Schrittwert */
.ss__layer--all { opacity: 1; transform: none; }
.lst { list-style: none; margin: 0; padding: 4px 4px 4px 2px; display: flex; flex-direction: column; justify-content: center; height: 100%; }
.lst-row { --v: clamp(0, var(--sx, 0) * 9, 1); position: relative; display: flex; align-items: flex-start; gap: 14px; flex: 1; min-height: 0; }
.lst-dot { flex: none; width: 20px; height: 20px; margin-top: 8px; border-radius: 50%; border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) calc(var(--v) * 100%), transparent); z-index: 1; transition: background .2s; }
.lst-line { position: absolute; left: 9px; top: 30px; bottom: -8px; width: 3px; border-radius: 2px; background: linear-gradient(180deg, var(--accent) calc(clamp(0, (var(--sx, 0) - .15) * 2.2, 1) * 100%), var(--border) 0); }
.lst-card { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-alt); opacity: calc(.62 + var(--v) * .38); transform: translateX(calc((1 - var(--v)) * 8px)); }
.lst-card b { font-size: .95rem; }
.lst-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.lst-chips em { font-style: normal; font-size: .7rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--muted); opacity: clamp(0, (var(--sx, 0) - var(--at, 0)) * 6, 1); }
.ss--on[data-story] .lst-row { min-height: 52px; }

/* Handy: Zeitleisten-Zeilen kompakt halten, Etiketten brechen nicht um (sonst quetschen sich die unteren Zeilen) */
@media (max-width: 899px) {
  .lst-row { min-height: 44px; gap: 10px; }
  .lst-card { flex-wrap: nowrap; padding: 8px 12px; }
  .lst-card b { font-size: .88rem; white-space: nowrap; }
  .lst-chips { flex-wrap: nowrap; gap: 4px; }
  .lst-chips em { font-size: .62rem; padding: 3px 8px; white-space: nowrap; }
  .lst-dot { width: 18px; height: 18px; margin-top: 6px; } .lst-line { left: 8px; top: 26px; }
}
