/* Wow-Ausbau 01.11.2026 (Runde 2): Leistungen als Bühne (aus Variante B), Ablauf-Linie, Beispiel im Gerät,
   gestaffeltes Einblenden. Lädt nach style.css. Ohne JS, bei reduzierter Bewegung (html ohne .bewegt) und in sehr
   flachen Fenstern (html.flach, bis 500 px Höhe) sind alle Momente statisch und vollständig.
   Gerätefamilie: Laptop 16:10 (Bezel #0f1424, Fuß #2a3147), Telefon 19,5:9 (Eckradius 9 % der Breite). */
:root { --nacht: #0b0f1c; --nacht-2: #121728; --rand-metall: #2b3148; --text-dunkel: #c3c8da; --text-leise: #8e95b0; --pwn: 0.302; }

/* Leistungen: der eine dunkle Abschnitt der Seite */
#bauen { background: var(--nacht); color: #fff; padding: 0; border-top: 0; border-radius: 28px 28px 0 0; position: relative; z-index: 1; }
#bauen + section { border-top: 0; }
#bauen .titel-zeile { display: flex; align-items: baseline; gap: 22px; flex-wrap: wrap; }
#bauen .titel-zeile h2 { font-size: 15px; letter-spacing: 0; font-weight: 600; color: #fff; margin: 0; padding-right: 22px; border-right: 1px solid #262c44; line-height: 1; }
#bauen .szenen h3 { font-family: var(--display); font-weight: 500; }
#bauen .szenen .lb-preis { font-family: var(--display); font-weight: 500; }
#bauen .inhalt { font-family: var(--body); }
#bauen .dash .logo, #bauen .dash header b, #bauen .kpis b, #bauen .app .kopf-a b { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; }
.licht { position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(55% 60% at 50% -12%, rgba(255, 255, 255, 0.085), transparent 70%),
    radial-gradient(40% 40% at 50% -4%, rgba(233, 161, 59, 0.10), transparent 70%); }
.korn { position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.045; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* Bühne: ein Gerät, drei Szenen, der Fortschritt kommt aus dem Scrollen. Text oben, Gerät groß darunter. */
.buehne-b { position: relative; height: 300vh; border-top: 0; padding: 0; overflow-x: clip; }
.kleben { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.kleben .innen { position: relative; z-index: 1; height: 100%; display: grid; grid-template-rows: auto auto minmax(0, 1fr); align-content: start; gap: 18px; padding-top: calc(76px + 2.5vh); width: min(var(--maxw), 100% - 2 * var(--rand)); margin-inline: auto; }

/* Fortschritt als Kopfzeile der Bühne: drei Wörter, das aktive in Bernstein */
.fortschritt { display: flex; gap: 18px; }
.fortschritt li { display: grid; gap: 8px; min-width: 88px; font-size: 13px; letter-spacing: 0.01em; font-weight: 500; color: var(--text-leise); white-space: nowrap; }
.fortschritt li::before { content: ""; height: 2px; border-radius: 2px; background: #262c44; }
.fortschritt li.aktiv { color: #fff; } .fortschritt li.aktiv::before { background: #fff; }

/* Szenentexte: zwei Spalten, überlagert, nur über Deckkraft ausgeblendet (bleiben für Vorleseprogramme da) */
.szenen { position: relative; height: 7.2em; font-size: clamp(16px, 1.2vw, 18px); }
.szenen .s { position: absolute; left: 0; top: 0; width: 100%; opacity: 0; transform: translateY(14px); will-change: opacity, transform; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(24px, 4vw, 64px); align-items: start; }
.szenen .s[data-i="0"] { opacity: 1; transform: none; }
.szenen h3 { font-size: clamp(32px, 3vw, 44px); line-height: 1; letter-spacing: -0.028em; color: #fff; }
.szenen p { margin: 4px 0 0; color: var(--text-dunkel); font-size: 1em; line-height: 1.5; max-width: 29.3em; }
.szenen small { display: block; margin-top: 10px; color: var(--text-leise); font-size: 0.8em; letter-spacing: 0.02em; }
.szenen .lb-preis { display: inline-block; margin-top: 12px; font-family: var(--display); font-size: 1.25em; color: #fff; }

/* Gerät: fester Rahmen, die Verwandlung läuft über clip-path und scale, nie über Breite und Höhe.
   --m 0 = Laptop, --m 1 = Telefon. --pw = Breite des Telefons im Verhältnis zum Laptop (19,5:9 bei gleicher Höhe). */
.geraet-wrap { --m: 0; --ty: 0px; --tx: 0px; position: relative; justify-self: center; isolation: isolate; width: min(78%, calc((100svh - 330px) / 0.654)); }
.geraet { --pw: 30.2%; --bz: 6px; --s0: 1; --s1: 1.1; --ox: 50%; --mc: min(1, var(--m) * 4); position: relative; aspect-ratio: 1000 / 654; width: 100%; transform: translate(var(--tx), calc(var(--ty) * var(--m))) scale(calc(var(--s0) + (var(--s1) - var(--s0)) * var(--m))); transform-origin: calc(var(--ox) + (50% - var(--ox)) * var(--m)) 0; }
/* Leuchten: Teil des Geräts, liegt dahinter; schrumpft über transform von Laptop- auf Telefonbreite (kein Layout) */
.leuchten { position: absolute; z-index: -1; pointer-events: none; top: 86%; height: 30%; left: -5%; right: -5%; border-radius: 50%; background: radial-gradient(closest-side, rgba(195, 200, 218, 0.42), rgba(195, 200, 218, 0.12) 55%, transparent); filter: blur(14px); transform: scaleX(calc(1 - (1 - var(--pwn) - 0.1) * var(--m))); transform-origin: 50% 50%; }
.geraet.spiegelt { -webkit-box-reflect: below 3px linear-gradient(transparent 90%, rgba(0, 0, 0, 0.15)); }
.schatten { position: absolute; pointer-events: none; }
.schatten.pc { inset: 0 0 4.4% 0; border-radius: 1.5% / 2.3%; box-shadow: 0 0 0 2.5px #0a0d16, 0 50px 110px rgba(0, 0, 0, 0.62), 0 18px 40px rgba(0, 0, 0, 0.45); opacity: calc(1 - var(--mc)); }
.schatten.tel { top: 0; bottom: 0; left: calc(50% - var(--pw) / 2); width: var(--pw); border-radius: 9% / 4.2%; box-shadow: 0 0 0 2.5px #0a0d16, 0 50px 110px rgba(0, 0, 0, 0.62), 0 18px 40px rgba(0, 0, 0, 0.45); opacity: var(--mc); }
.schirm { position: absolute; inset: 0; border: 1px solid var(--rand-metall); background: linear-gradient(160deg, #1d2235, var(--geraet));
  clip-path: inset(0 calc((100% - var(--pw)) / 2 * var(--mc)) calc(4.4% * (1 - var(--mc))) calc((100% - var(--pw)) / 2 * var(--mc)) round calc(1.5% + 1.2% * var(--mc)) / calc(2.3% + 1.9% * var(--mc))); }
.bild { position: absolute; left: var(--bz); right: var(--bz); top: var(--bz); bottom: calc(4.4% + var(--bz)); border-radius: 1% / 1.6%; overflow: hidden; background: #0f1320; container-type: size; opacity: clamp(0, 1 - (var(--mc) - 0.5) * 3.4, 1); }
.telschirm { position: absolute; top: var(--bz); bottom: var(--bz); left: calc(50% - var(--pw) / 2 + var(--bz)); width: calc(var(--pw) - 2 * var(--bz)); border-radius: 8.5% / 3.9%; overflow: hidden; background: #f7f6f2; container-type: size; opacity: clamp(0, (var(--mc) - 0.65) * 4, 1); }
.glas { position: absolute; inset: 0; pointer-events: none; z-index: 6; background: linear-gradient(112deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 22%, transparent 42%); }
.kamera { position: absolute; left: 50%; top: calc(var(--bz) / 2); width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: #0a0d16; box-shadow: 0 0 0 1.5px #2a3046, inset 0 0 1px 1px #1f3b63; opacity: calc(1 - var(--mc)); }
.basis { position: absolute; left: -7.5%; width: 115%; top: 95.6%; height: 4.4%; border-radius: 3px 3px 16px 16px / 3px 3px 10px 10px; background: linear-gradient(#343c58, var(--geraet-fuss) 40%, #1b2033); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset, 0 -1px 0 rgba(0, 0, 0, 0.6) inset, 0 20px 40px rgba(0, 0, 0, 0.5); opacity: calc(1 - var(--mc)); transform: translateY(calc(var(--mc) * 24px)); }
.basis::before { content: ""; position: absolute; left: 50%; top: 0; width: 15%; height: 42%; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #0a0d16; box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.geraet.tel-fertig .basis { visibility: hidden; }
/* Telefon-Merkmale erst, wenn die Form fast fertig ist */
.insel { position: absolute; left: 50%; top: 2.6cqw; width: 27cqw; height: 6.4cqw; transform: translateX(-50%) scale(calc(0.6 + 0.4 * clamp(0, (var(--m) - 0.88) * 9, 1))); border-radius: 999px; background: #050710; z-index: 7; opacity: clamp(0, (var(--m) - 0.88) * 9, 1); }
.insel::after { content: ""; position: absolute; right: 2.2cqw; top: 50%; width: 2.4cqw; height: 2.4cqw; margin-top: -1.2cqw; border-radius: 50%; background: #11182b; box-shadow: inset 0 0 0 0.5cqw #0b1020; }
.home { position: absolute; left: 50%; bottom: 2.2cqw; width: 36cqw; height: 1.3cqw; transform: translateX(-50%); border-radius: 999px; background: rgba(20, 27, 46, 0.55); z-index: 7; opacity: clamp(0, (var(--m) - 0.85) * 7, 1); }
.taste { position: absolute; width: 3px; background: linear-gradient(90deg, #363d58, #1b2033); border-radius: 2px; opacity: clamp(0, (var(--m) - 0.85) * 7, 1); }
.taste.stumm { left: calc(50% - var(--pw) / 2 - 3px); top: 12%; height: 3.5%; }
.taste.laut { left: calc(50% - var(--pw) / 2 - 3px); top: 19%; height: 7%; }
.taste.laut2 { left: calc(50% - var(--pw) / 2 - 3px); top: 28%; height: 7%; }
.taste.an { left: calc(50% + var(--pw) / 2); top: 22%; height: 11%; }

/* Inhalte im Bildschirm. Maße in cqw: skalieren mit dem Gerät. */
.inhalt { position: absolute; inset: 0; opacity: 0; will-change: opacity; font-family: var(--body); color: var(--ink); background: #fff; }
.inhalt.web, .inhalt.app { opacity: 1; }
.inhalt .ct { font-size: 1.7cqw; color: #565d7a; font-weight: 600; }

/* Szene 1: echte Webseite im Browser */
.browser { height: 4.8cqw; background: #ecebe6; border-bottom: 1px solid #dcdad2; display: flex; align-items: center; gap: 0.9cqw; padding: 0 1.6cqw; }
.browser i { width: 1.3cqw; height: 1.3cqw; border-radius: 50%; background: #ff5f57; } .browser i:nth-child(2) { background: #febc2e; } .browser i:nth-child(3) { background: #28c840; }
.browser span { margin-left: 1.6cqw; flex: 1; max-width: 54cqw; height: 3.1cqw; border-radius: 0.8cqw; background: #fff; color: #5a6079; font-size: 1.6cqw; display: flex; align-items: center; justify-content: center; gap: 0.6cqw; }
.browser span svg { width: 1.3cqw; height: 1.3cqw; }
.seite-bild { position: absolute; left: 0; right: 0; top: 4.8cqw; bottom: 0; overflow: hidden; }
.seite-bild img { width: 100%; height: auto; will-change: transform; transform: translate3d(0, 0, 0); }
/* Ohne JS zeigt der noscript-Rückfall das Bild; der Platzhalter mit Datenadresse bleibt dann unsichtbar */
html:not(.js) #seite-img { display: none; }

/* Szene 2: Verwaltung einer Praxis (Beispiel, Tannengrün) */
.dash { display: grid; grid-template-columns: 19.5cqw minmax(0, 1fr); font-size: 1.7cqw; line-height: 1.35; }
.dash .seite { background: #f4f3ee; border-right: 1px solid #e6e4dc; padding: 2.4cqw 1.8cqw; display: flex; flex-direction: column; }
.dash .logo { font-family: var(--display); font-size: 2.3cqw; letter-spacing: -0.01em; line-height: 1.1; color: var(--tanne); }
.dash .logo small { display: block; font-family: var(--body); font-size: 1.75cqw; color: #565d7a; font-weight: 500; margin-top: 0.5cqw; }
.dash .nav { margin-top: 3cqw; display: grid; gap: 0.5cqw; }
.dash .nav li { display: flex; align-items: center; gap: 1cqw; padding: 0.95cqw 1.1cqw; border-radius: 0.9cqw; color: #4d5570; font-weight: 500; }
.dash .nav li svg { width: 1.7cqw; height: 1.7cqw; }
.dash .nav li.aktiv { background: var(--tanne); color: #fff; }
.dash .seite .unten { margin-top: auto; display: flex; align-items: center; gap: 1cqw; color: #565d7a; font-size: 1.75cqw; }
.dash .haupt { padding: 2.2cqw 2.6cqw; display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 1.8cqw; }
.dash header { display: flex; align-items: baseline; gap: 1.4cqw; }
.dash header b { font-family: var(--display); font-size: 2.7cqw; font-weight: 500; }
.dash header span { color: #565d7a; font-size: 1.75cqw; }
.dash header em { margin-left: auto; font-style: normal; background: var(--tanne); color: #fff; font-size: 1.75cqw; font-weight: 600; padding: 0.8cqw 1.4cqw; border-radius: 999px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6cqw; }
.kpis div { border: 1px solid #e6e4dc; border-radius: 1.2cqw; padding: 1.4cqw 1.7cqw; }
.kpis small { display: block; color: #565d7a; font-size: 1.75cqw; }
.kpis b { display: block; font-family: var(--display); font-size: 3.6cqw; font-weight: 500; line-height: 1.1; margin-top: 0.4cqw; letter-spacing: -0.02em; }
.kpis span { display: block; color: #4d5570; font-size: 1.75cqw; margin-top: 0.3cqw; }
.kpis span.gut { color: #1f7a4d; }
.kpis span.warn { color: var(--ink); }
.unten2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.6cqw; min-height: 0; }
.unten2 > div { border: 1px solid #e6e4dc; border-radius: 1.2cqw; padding: 1.4cqw 1.7cqw; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 1.1cqw; }
.chart .flaeche { display: grid; grid-template-columns: auto 1fr; gap: 0.8cqw; min-height: 13cqw; }
.chart .y { display: flex; flex-direction: column; justify-content: space-between; color: #565d7a; font-size: 1.75cqw; padding-bottom: 2.6cqw; }
.chart .balken { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2cqw; align-items: end; border-left: 1px solid #e6e4dc; padding-left: 1cqw; position: relative; }
.chart .balken::before { content: ""; position: absolute; left: 0; right: 0; bottom: 2.6cqw; border-top: 1px solid #e6e4dc; }
.chart .balken li { display: grid; grid-template-rows: 1fr auto; gap: 0.6cqw; height: 100%; align-items: end; }
.chart .balken li i { display: block; height: calc(var(--v) * 100%); border-radius: 0.5cqw 0.5cqw 0 0; background: #cfe3dd; transform-origin: 50% 100%; }
.dash.lebt { --u2: 0; }
.dash.lebt .kpis .gut { opacity: clamp(0, (var(--u2) - 0.85) * 7, 1); }
.dash.lebt .chart .balken li { --k: 0; } .dash.lebt .chart .balken li:nth-child(2) { --k: 1; } .dash.lebt .chart .balken li:nth-child(3) { --k: 2; } .dash.lebt .chart .balken li:nth-child(4) { --k: 3; } .dash.lebt .chart .balken li:nth-child(5) { --k: 4; } .dash.lebt .chart .balken li:nth-child(6) { --k: 5; }
.dash.lebt .chart .balken li i { transform: scaleY(clamp(0.06, (var(--u2) - var(--k) * 0.07) * 1.9, 1)); }
.dash.lebt .heute li.neu-eintrag { opacity: clamp(0, (var(--u2) - 0.72) * 5, 1); transform: translateY(calc((1 - clamp(0, (var(--u2) - 0.72) * 5, 1)) * 1.2cqw)); }
.chart .balken li.heute i { background: var(--tanne); }
.chart .balken li span { font-size: 1.75cqw; color: #565d7a; text-align: center; height: 2cqw; }
.heute ul { display: grid; gap: 0.5cqw; align-content: start; }
.heute li { display: grid; grid-template-columns: auto 1fr auto; gap: 1cqw; align-items: center; padding: 0.65cqw 0; border-bottom: 1px solid #efede7; font-size: 1.75cqw; }
.heute li:last-child { border-bottom: 0; color: #565d7a; grid-template-columns: 1fr; text-align: center; }
.heute time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.heute em { font-style: normal; color: #565d7a; white-space: nowrap; }
.heute li.jetzt time { color: var(--tanne); }

/* Szene 3: App auf dem Telefon (Maße relativ zum Telefon-Bildschirm, Sicherheitsabstand 6 % für Statusleiste und Tab-Leiste) */
.app { --af: 4.85cqw; display: flex; flex-direction: column; background: #f7f6f2; font-size: var(--af); line-height: 1.3; padding: 0 6cqw 0; }
.app .lb-status { display: flex; justify-content: space-between; align-items: center; height: 13cqw; font-size: var(--af); font-weight: 600; padding: 0 3cqw 0 4cqw; }
.app .lb-status .sym { display: flex; gap: 1.6cqw; align-items: center; } .app .lb-status svg { width: 4.4cqw; height: 4cqw; }
.app .kopf-a { margin-top: 2.8cqw; }
.app .kopf-a small { display: block; font-size: var(--af); color: #565d7a; font-weight: 600; }
.app .kopf-a b { display: block; font-family: var(--display); font-size: 8cqw; font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; margin-top: 1cqw; }
.app .kopf-a span { display: block; color: #4d5570; font-size: var(--af); margin-top: 1cqw; }
.app .monat { margin-top: 2.6cqw; display: flex; justify-content: space-between; font-weight: 600; font-size: var(--af); }
.app .monat span { color: #565d7a; font-weight: 500; }
.app .lb-tage { margin-top: 2.2cqw; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2cqw; }
.app .lb-tage li { background: #fff; border: 1px solid #e6e4dc; border-radius: 3.2cqw; padding: 2.2cqw 0; text-align: center; font-weight: 600; font-size: var(--af); }
.app .lb-tage li small { display: block; font-size: var(--af); color: #565d7a; font-weight: 500; margin-bottom: 0.4cqw; }
.app.wahl-tag .lb-tage li.aktiv { background: var(--tanne); color: #fff; border-color: var(--tanne); } .app.wahl-tag .lb-tage li.aktiv small { color: #d9ebe6; }
.app .lb-tage li, .app .lb-zeiten li { transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.app .ct { font-size: var(--af); margin-top: 2.6cqw; }
.app .lb-zeiten { margin-top: 2.2cqw; display: grid; grid-template-columns: 1fr 1fr; gap: 2cqw; }
.app .lb-zeiten li { background: #fff; border: 1px solid #e6e4dc; border-radius: 3cqw; padding: 3cqw 0; text-align: center; font-weight: 600; font-size: var(--af); font-variant-numeric: tabular-nums; }
.app.wahl-zeit .lb-zeiten li.gewaehlt { border-color: var(--tanne); box-shadow: inset 0 0 0 1px var(--tanne); color: var(--tanne); }
.app .zusammen, .app .erinnerung { transition: opacity 0.4s var(--ease); }
.app.lebt:not(.wahl-zeit) .zusammen { opacity: 0.35; }
.app .lb-karte { margin-top: 2.2cqw; background: #fff; border: 1px solid #e6e4dc; border-radius: 3cqw; padding: 2.4cqw 3.5cqw; font-size: var(--af); color: #4d5570; text-wrap: pretty; }
.app .lb-karte b { display: block; color: var(--ink); font-size: var(--af); font-weight: 600; }
.app .erinnerung { display: flex; align-items: center; justify-content: space-between; gap: 2cqw; }
.app .erinnerung i { flex: none; width: 9cqw; height: 5.2cqw; border-radius: 999px; background: var(--tanne); position: relative; }
.app .erinnerung i::after { content: ""; position: absolute; right: 0.6cqw; top: 0.6cqw; width: 4cqw; height: 4cqw; border-radius: 50%; background: #fff; }
.app .zusammen { display: grid; gap: 0.4cqw; }
.app .cta { flex: none; margin-top: 2.4cqw; background: var(--tanne); color: #fff; border-radius: 999px; text-align: center; font-weight: 600; font-size: var(--af); padding: 3.4cqw 0; position: relative; overflow: hidden; transition: background 0.4s var(--ease); }
.app .cta .b { display: none; }
.app.bestaetigt .cta { background: #14503f; }
.app.bestaetigt .cta .a { display: none; } .app.bestaetigt .cta .b { display: inline; }
.app.lebt .cta .b::before { content: ""; display: inline-block; width: 2.6cqw; height: 1.4cqw; border-left: 0.5cqw solid #fff; border-bottom: 0.5cqw solid #fff; transform: translateY(-0.4cqw) rotate(-45deg); margin-right: 1.6cqw; }
.app .tabs { margin: auto -6cqw 0; padding: 2.4cqw 9cqw 8cqw; background: #fff; border-top: 1px solid #e6e4dc; display: flex; justify-content: space-between; }
.app .tabs span { display: grid; justify-items: center; gap: 1cqw; font-size: var(--af); color: #565d7a; font-weight: 500; }
.app .tabs svg { width: 6.5cqw; height: 6.5cqw; }
.app .tabs span.aktiv { color: var(--tanne); }

@media (max-width: 900px) {
  .kleben .innen { gap: 10px; padding-top: calc(66px + 2vh); }
  .fortschritt { gap: 10px; } .fortschritt li { min-width: 0; font-size: 11px; letter-spacing: 0.1em; gap: 6px; }
  .szenen { height: auto; min-height: 10.5em; font-size: 15px; }
  .szenen .s { grid-template-columns: 1fr; }
  .szenen h3 { font-size: clamp(30px, 8.6vw, 44px); }
  .szenen p { margin-top: 10px; max-width: none; }
  .szenen small { margin-top: 6px; }
  .szenen .lb-preis { margin-top: 8px; }
  /* Am Handy wird der Laptop herangezoomt (Ausschnitt), das Telefon füllt die Höhe. Werte setzt das Skript. */
  .geraet-wrap { align-self: start; width: 100%; margin-top: 4px; }
  .leuchten { filter: blur(10px); background: radial-gradient(closest-side, rgba(233, 161, 59, 0.5), rgba(233, 161, 59, 0.14) 55%, transparent); left: -5%; right: 55%; transform-origin: 50% 50%; transform: translateX(calc(var(--m) * 60%)) scaleX(calc(1 - (1 - var(--pwn) * 2 - 0.1) * var(--m))); }
  .geraet { --s0: 2; --s1: 2.3; --ox: 0%; --bz: 4px; }
  /* Mindestschrift 9,2 px auf dem Bildschirm: Maßstab des Geräts (--s0 Laptop, --s1 Telefon) herausrechnen */
  .app { --af: max(5.2cqw, calc(9.2px / var(--s1, 1))); }
  .app .tabs { padding-bottom: 9.5cqw; }
  .home { bottom: 2cqw; }
  .app.eng1 .lb-karte:not(.erinnerung):not(.zusammen), .app.eng2 .kopf-a span, .app.eng2 .monat, .app.eng3 .zusammen { display: none; }
  .dash .kpis small, .dash .kpis span, .dash .chart .y, .dash .chart .balken li span, .inhalt .ct, .browser span { font-size: max(1.75cqw, calc(9.2px / var(--s0, 1))); }
  .dash header b { font-size: max(2.7cqw, calc(12px / var(--s0, 1))); }
  .chart .balken li span { height: auto; }
  .kpis > div:nth-child(3) { grid-column: 1 / -1; }
  /* Der herangezoomte Laptop läuft rechts am Fensterrand weich ins Dunkel aus: kein Maskieren des Wrappers (das schnitt das
     vergrößerte Gerät ab), sondern ein Verlauf in Nachtblau am Fensterrand, der mit der Verwandlung verschwindet */
  .geraet-wrap.zoomwrap::after { content: none; }
  .browser span { justify-content: flex-start; padding: 0 1.2cqw; max-width: 40cqw; } .browser span b { font-weight: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  /* Dashboard im Ausschnitt (linke Hälfte des herangezoomten Bildschirms): ohne Seitenleiste, Kennzahlen zu zweit, Wochen-Balken sichtbar */
  .dash { grid-template-columns: minmax(0, 1fr); }
  .dash .seite { display: none; }
  .dash .haupt { width: 54cqw; padding: 2.2cqw 2.6cqw; }
  .dash header span, .dash header em, .unten2 .heute { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 1.2cqw; }
  .unten2 { grid-template-columns: 1fr; }
  .basis { left: -4%; width: 108%; }
}
@media (min-width: 901px) and (max-height: 850px) {
  .kleben .innen { gap: 12px; padding-top: calc(76px + 1vh); }
  .szenen { height: 6.4em; font-size: 16px; }
  .szenen p { line-height: 1.4; }
  .geraet-wrap { width: min(78%, calc((100svh - 300px) / 0.654)); }
}

/* Ohne JS, bei reduzierter Bewegung oder in sehr flachen Fenstern: drei Szenen untereinander, jede mit ihrem Gerät, keine Spiegelung */
.statisch { display: none; }
:is(html:not(.js), html:not(.bewegt), html.flach) .buehne-b { height: auto; }
:is(html:not(.js), html:not(.bewegt), html.flach) .kleben { position: static; height: auto; overflow: visible; padding: 56px 0 24px; }
:is(html:not(.js), html:not(.bewegt), html.flach) .kleben .innen { height: auto; }
:is(html:not(.js), html:not(.bewegt), html.flach) .szenen { height: auto; min-height: 0; }
:is(html:not(.js), html:not(.bewegt), html.flach) .szenen .s { position: static; opacity: 1 !important; transform: none !important; }
:is(html:not(.js), html:not(.bewegt), html.flach) .szenen .s:not([data-i="0"]) { display: none; }
:is(html:not(.js), html:not(.bewegt), html.flach) .inhalt { opacity: 1 !important; visibility: visible !important; }
:is(html:not(.js), html:not(.bewegt), html.flach) #geraet .inhalt.dash { display: none; }
:is(html:not(.js), html:not(.bewegt), html.flach) .geraet { transform: none !important; -webkit-box-reflect: none; }
:is(html:not(.js), html:not(.bewegt), html.flach) .geraet-wrap { width: min(100%, 78%); }
:is(html:not(.js), html:not(.bewegt), html.flach) .fortschritt { display: none; }
:is(html:not(.js), html:not(.bewegt), html.flach) .statisch { display: block; padding: 0 0 64px; border-top: 0; overflow-x: clip; }
.statisch .paar { display: grid; gap: 22px; padding: 40px 0 56px; overflow-x: clip; }
.statisch .paar .szenen { height: auto; }
.statisch .paar .szenen .s { position: static; opacity: 1; transform: none; }
.statisch .geraet.telefon { --m: 1; --pw: 100%; aspect-ratio: 311 / 654; width: min(320px, 100%); margin-inline: auto; }
.statisch .geraet.telefon .schirm { clip-path: inset(0 round 9% / 4.3%); }
.statisch .geraet.telefon .schatten.tel { left: 0; width: 100%; border-radius: 9% / 4.3%; }
.statisch .geraet.telefon .telschirm { border-radius: 8.5% / 3.9%; }
.statisch .geraet.telefon .taste { opacity: 1; }
.statisch .geraet.telefon .insel, .statisch .geraet.telefon .home { opacity: 1; }
.statisch .geraet.telefon .leuchten { transform: none; left: 10%; right: 10%; }
.statisch .geraet.pc .telschirm, .statisch .geraet.pc .schatten.tel, .statisch .geraet.pc .taste { display: none; }
.statisch .geraet.telefon .bild, .statisch .geraet.telefon .schatten.pc, .statisch .geraet.telefon .basis, .statisch .geraet.telefon .kamera { display: none; }
@media (max-width: 900px) {
  :is(html:not(.js), html:not(.bewegt), html.flach) .geraet-wrap { width: 100%; }
  .statisch .geraet.telefon { width: 72%; }
  /* Laptop als vergrößerter Ausschnitt (wie mit Skript), der Wrapper schneidet */
  :is(html:not(.js), html:not(.bewegt), html.flach) .zoomwrap { overflow: hidden; border-radius: 8px; aspect-ratio: 1000 / 1180; }
  :is(html:not(.js), html:not(.bewegt), html.flach) .zoomwrap .geraet { transform: scale(2) !important; transform-origin: 0 0; }
  :is(html:not(.js), html:not(.bewegt), html.flach) .zoomwrap .basis { display: none; }
  :is(html:not(.js), html:not(.bewegt), html.flach) .zoomwrap::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 24%; height: auto; background: linear-gradient(90deg, rgba(11, 15, 28, 0), var(--nacht) 85%); pointer-events: none; z-index: 5; opacity: 1; }
  :is(html:not(.js), html:not(.bewegt), html.flach) .zoomwrap .leuchten { display: none; }
}

/* ---------- Beispiel: Arbeitsprobe im Laptop, Telefon davor (gleiche Familie) ---------- */
.vorfuehrung { position: relative; }
.vorfuehrung .geraete { position: relative; padding: 0 0 8% 0; }
.vorfuehrung .lap { position: relative; width: 100%; }
.vorfuehrung .lap-schirm { position: relative; border-radius: 1.6% / 2.6%; background: var(--geraet); padding: 1.6% 1.6% 1.4%; box-shadow: 0 0 0 1px #2b3148, 0 40px 80px rgba(20, 27, 46, 0.22), 0 14px 30px rgba(20, 27, 46, 0.14); }
.vorfuehrung .lap-schirm::before { content: ""; position: absolute; left: 50%; top: 0.8%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #0a0d16; box-shadow: 0 0 0 1.5px #2a3046; }
.vorfuehrung .lap-schirm::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(112deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 22%, transparent 42%); }
.vorfuehrung .lap-schirm img { display: block; width: 100%; height: auto; border-radius: 0.9% / 1.5%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.vorfuehrung .lap-basis { position: relative; margin: 0 -6%; height: 2.2vw; max-height: 26px; min-height: 14px; border-radius: 3px 3px 16px 16px / 3px 3px 10px 10px; background: linear-gradient(#343c58, var(--geraet-fuss) 40%, #1b2033); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset, 0 -1px 0 rgba(0, 0, 0, 0.6) inset, 0 18px 36px rgba(20, 27, 46, 0.25); }
.vorfuehrung .lap-basis::before { content: ""; position: absolute; left: 50%; top: 0; width: 15%; height: 42%; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #0a0d16; }
.vorfuehrung .tel { position: absolute; right: -2%; bottom: 0; width: 24%; border-radius: 9% / 4.15%; background: var(--geraet); padding: 2.6%; box-shadow: 0 0 0 1px #2b3148, 0 30px 60px rgba(20, 27, 46, 0.3), 0 10px 24px rgba(20, 27, 46, 0.2); }
.vorfuehrung .tel-schirm { position: relative; aspect-ratio: 480 / 1039; border-radius: 7.5% / 3.5%; overflow: hidden; background: #f7f6f2; }
.vorfuehrung .tel-schirm img { display: block; width: 100%; height: auto; }
.vorfuehrung .tel-insel { position: absolute; left: 50%; top: 3.4%; width: 27%; height: 3.2%; transform: translateX(-50%); border-radius: 999px; background: #050710; }
.vorfuehrung .tel-home { position: absolute; left: 50%; bottom: 3.6%; width: 36%; height: 3px; transform: translateX(-50%); border-radius: 999px; background: rgba(20, 27, 46, 0.5); }
.vorfuehrung figcaption { margin-top: 18px; font-size: 13.5px; color: var(--ink-soft); max-width: 68%; }
.bewegt .vorfuehrung.reveal { opacity: 0; transform: translateY(32px) scale(0.985); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.bewegt .vorfuehrung.reveal.sichtbar { opacity: 1; transform: none; }
.bewegt .vorfuehrung .tel { transition: transform 1.1s var(--ease) 0.25s; transform: translateY(20px); }
.bewegt .vorfuehrung.sichtbar .tel { transform: none; }
@media (max-width: 900px) {
  /* Handy: Laptop mit Rand, die Bildunterschrift dazwischen, das Telefon darunter */
  .vorfuehrung { display: flex; flex-direction: column; align-items: center; }
  .vorfuehrung .geraete { display: contents; }
  .vorfuehrung .lap { width: 92%; order: 0; }
  .vorfuehrung .lap-basis { height: 14px; margin: 0 -4%; }
  .vorfuehrung figcaption { order: 3; max-width: none; text-align: center; }
  .vorfuehrung .tel { position: relative; right: auto; bottom: auto; order: 2; width: 44%; max-width: 220px; margin-top: 22px; }
  .bewegt .vorfuehrung .tel { transform: none; }
}

/* ---------- Ablauf: eine Linie, die sich beim Scrollen zeichnet, und als Faden weiterläuft ---------- */
.ablauf-feld { position: relative; }
.ablauf-feld .ablauf-liste { grid-template-columns: repeat(5, 1fr); }
.ablauf-feld .ablauf-liste li { border-top-color: transparent; }
.ablauf-feld .faden { display: grid; align-content: center; padding-top: 20px; counter-increment: none; }
.ablauf-feld .faden::before { display: none; }
.ablauf-feld .faden p { color: var(--ink); font-size: 15.5px; font-weight: 600; }
.ablauf-feld .faden small { display: block; color: var(--ink-soft); font-weight: 400; font-size: 14.5px; margin-top: 4px; }
.ablauf-linie { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ablauf-linie path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ablauf-linie .grund { stroke: var(--line); }
.ablauf-linie circle { fill: var(--paper); stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; transition: transform var(--t-med) var(--ease); transform-box: fill-box; transform-origin: center; }
.ablauf-linie circle.ende { fill: var(--accent); }
.bewegt .ablauf-linie circle { transform: scale(0); }
.bewegt .ablauf-linie circle.da { transform: scale(1); }
html:not(.js) .ablauf-feld .ablauf-liste li { border-top-color: var(--accent); }
@media (max-width: 900px) { .ablauf-feld .ablauf-liste { grid-template-columns: 1fr 1fr; } .ablauf-feld .faden { grid-column: 1 / -1; padding-top: 10px; } }
@media (max-width: 560px) { .ablauf-feld .ablauf-liste { grid-template-columns: 1fr; } .ablauf-feld .ablauf-liste li { padding-left: 28px; border-top: 0; padding-top: 0; } .ablauf-feld .ablauf-liste li::before { margin-bottom: 8px; } .ablauf-feld .faden { padding-left: 28px; } }

/* ---------- Zusagen: ruhig gestaffelt ---------- */
.bewegt .zusagen-liste li { opacity: 0; transform: translateY(12px); }
.bewegt .reveal.sichtbar .zusagen-liste li { opacity: 1; transform: none; transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); transition-delay: calc(var(--i, 0) * 0.12s + 0.2s); }
