/* Apps-Seiten: apps.html und app-*.html. Erzeugt von .claude/scripts/website-apps.py,
   Tokens, Buttons und Nav kommen aus base.css. */
:root { --radius: 12px; --tr: .3s cubic-bezier(.4,0,.2,1); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 clamp(16px,5vw,48px); }
.nav-brand-name { font-size: 0; }
.nav-brand-name::after { content: attr(data-short); font-size: 16px; }
.nav-links a[aria-current="page"] { color: var(--blue); }

/* ── Screenshot-Rahmen ───────────────────────────────────── */
.shot { position: relative; background: linear-gradient(180deg, #E9EFF9, #DCE6F5); overflow: hidden; }
.shot img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 1px 2px rgba(15,23,42,.08), 0 14px 36px rgba(15,23,42,.16); background: #fff; }
.shot-leer { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--ink-3); font-size: 14px; }
.shot-leer svg { color: var(--ink-4); }

/* ── Übersicht ───────────────────────────────────────────── */
.apps-hero { padding: clamp(120px,14vw,160px) 0 clamp(40px,5vw,64px); background: var(--grad-hero), var(--bg); }
.apps-hero-inner { text-align: center; max-width: 720px; margin: 0 auto; }
.section-label.center { justify-content: center; }
.section-label.center::before { display: none; }
h1.page-title { font-family: var(--font-head); font-weight: 700; font-size: clamp(36px,5vw,60px); line-height: 1.08; letter-spacing: -.035em; margin-bottom: 22px; color: var(--ink-1); }
h1.page-title .accent { color: var(--blue); }
.hero-sub { font-size: 18px; color: var(--ink-3); line-height: 1.65; max-width: 600px; margin: 0 auto; }
.hero-zahlen { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-zahl { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 100px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.hero-zahl b { font-family: var(--font-head); color: var(--ink-1); }
.hero-zahl::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }

.gruppe { padding: clamp(48px,6vw,80px) 0; border-top: 1px solid var(--line); }
.gruppe--grau { background: var(--surface-2); }
.gruppe-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: var(--head-gap); }
.gruppe-kopf h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(22px,3vw,28px); letter-spacing: -.03em; color: var(--ink-1); }
.gruppe-kopf p { font-size: 16px; color: var(--ink-3); max-width: 520px; }

/* Große Karte für Koe */
.fokus { position: relative; display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 24px; transition: box-shadow var(--tr), transform var(--tr); }
.fokus:hover { box-shadow: var(--shadow-lg, var(--shadow-md)); transform: translateY(-2px); }
.fokus-text { padding: clamp(24px,4vw,44px); display: flex; flex-direction: column; justify-content: center; }
.fokus-label { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan-dark); margin-bottom: 16px; }
.fokus-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.fokus h3 { font-family: var(--font-head); font-weight: 700; font-size: clamp(28px,3.4vw,36px); letter-spacing: -.03em; color: var(--ink-1); line-height: 1.12; margin-bottom: 14px; }
.fokus h3 a::after { content: ''; position: absolute; inset: 0; }
.fokus p { font-size: 16px; color: var(--ink-2); line-height: 1.65; margin-bottom: 20px; }
.fokus-punkte { list-style: none; display: grid; gap: 8px; margin-bottom: 24px; }
.fokus-punkte li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.fokus-punkte li::before { content: ''; flex-shrink: 0; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--cyan); }
.fokus-mehr { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--blue); }
.fokus .shot { padding: 32px 0 0 32px; min-height: 100%; }
.fokus .shot img { border-radius: 10px 0 0 0; }
@media (max-width: 860px) {
  .fokus { grid-template-columns: minmax(0,1fr); }
  .fokus .shot { padding: 20px 0 0 20px; }
}

.apps-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
@media (max-width: 960px) { .apps-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 600px) { .apps-grid { grid-template-columns: minmax(0,1fr); } }

.app { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow var(--tr), transform var(--tr); }
.app:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.app .shot { aspect-ratio: 16 / 10; padding: 18px 18px 0; border-bottom: 1px solid var(--line); }
.app .shot img { border-radius: 8px 8px 0 0; height: 100%; object-fit: cover; object-position: top left; }
.app .shot--hoch { padding: 16px 16px 0; display: flex; justify-content: center; }
.app .shot--hoch img { width: auto; max-width: 100%; height: 100%; object-fit: cover; object-position: top; }
.app .shot--leer { display: flex; }
.app-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 0; }
.app-kopf { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.app-zeichen { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-family: 'Hiragino Sans','Hiragino Kaku Gothic ProN','Noto Sans JP',var(--font-head); font-weight: 700; font-size: 18px; color: var(--ink-1); }
.app-zeichen.lang { font-size: 12px; }
.app-name { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--ink-1); line-height: 1.2; }
.app-name a::after { content: ''; position: absolute; inset: 0; }
.app-was { font-size: 14px; color: var(--ink-3); margin-top: 2px; }
.app-body p { font-size: 16px; color: var(--ink-2); line-height: 1.6; margin-bottom: 18px; flex: 1; }
.app-fuss { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 0 16px; border-top: 1px solid var(--line); }
.app-art { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.app-art::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.app-art.bau::before { background: var(--orange); }
.app-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--blue); padding: 6px 0; transition: color var(--tr); }
.app-link:hover { color: var(--blue-dark); }
.app-mehr { font-size: 14px; color: var(--ink-3); padding: 6px 0; }
.app:hover .app-mehr { color: var(--blue); }

/* ── Unterseite ──────────────────────────────────────────── */
.d-hero { padding: clamp(112px,13vw,148px) 0 clamp(32px,4vw,48px); background: var(--grad-hero), var(--bg); }
.zurueck { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-3); padding: 6px 0; margin-bottom: 24px; transition: color var(--tr); }
.zurueck:hover { color: var(--blue); }
.d-kopf { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.d-kopf .app-zeichen { width: 64px; height: 64px; border-radius: 16px; font-size: 30px; background: var(--surface); box-shadow: var(--shadow-sm); }
.d-kopf .app-zeichen.lang { font-size: 18px; }
.d-kopf .app-zeichen svg { width: 30px; height: 30px; }
.d-label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan-dark); margin-bottom: 4px; }
.d-hero h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(36px,5vw,60px); line-height: 1.05; letter-spacing: -.035em; color: var(--ink-1); }
.d-tagline { font-family: var(--font-head); font-weight: 700; font-size: clamp(22px,2.6vw,28px); letter-spacing: -.03em; color: var(--blue); margin-bottom: 16px; }
.d-lead { font-size: 18px; line-height: 1.65; color: var(--ink-2); max-width: 720px; }
.d-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 28px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 100px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.chip.bau::before { background: var(--orange); }
.d-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn svg { flex-shrink: 0; }
.d-hinweis { font-size: 14px; color: var(--ink-3); }

.d-bild { padding-bottom: clamp(48px,6vw,80px); background: linear-gradient(180deg, var(--bg) 0, var(--bg) 50%, var(--surface-2) 50%); }
.d-bild .shot { border-radius: 16px; padding: clamp(16px,4vw,48px) clamp(16px,4vw,48px) 0; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.d-bild .shot img { border-radius: 10px 10px 0 0; }
.d-bild .shot--hoch { display: flex; justify-content: center; padding-bottom: clamp(16px,4vw,48px); }
.d-bild .shot--hoch img { width: auto; max-width: 100%; max-height: 640px; border-radius: 10px; }
.d-bild .shot--leer { min-height: 280px; padding-bottom: 32px; }

.d-abschnitt { padding: clamp(56px,7vw,96px) 0; }
.d-abschnitt--grau { background: var(--surface-2); }
.d-abschnitt + .d-abschnitt { border-top: 1px solid var(--line); }
.d-abschnitt h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(28px,3.4vw,36px); letter-spacing: -.03em; color: var(--ink-1); line-height: 1.15; margin-bottom: 16px; }
.d-abschnitt .intro { font-size: 18px; color: var(--ink-3); line-height: 1.65; max-width: 680px; margin-bottom: var(--head-gap); }
.d-text { max-width: 720px; }
.d-text p { font-size: 18px; color: var(--ink-2); line-height: 1.7; }
.d-text p + p { margin-top: 16px; }

.features { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: minmax(0,1fr); } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature b { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 16px; color: var(--ink-1); margin-bottom: 8px; }
.feature b::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }
.feature p { font-size: 16px; color: var(--ink-2); line-height: 1.6; }
kbd { font-family: var(--font-body); font-size: 14px; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-1); white-space: nowrap; }

.galerie { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
@media (max-width: 860px) { .galerie { grid-template-columns: minmax(0,1fr); } }
.galerie figure { margin: 0; }
.galerie .shot { border-radius: var(--radius); padding: 16px 16px 0; border: 1px solid var(--line); aspect-ratio: 16 / 11; }
.galerie .shot img { border-radius: 8px 8px 0 0; height: 100%; object-fit: cover; object-position: top left; }
.galerie figcaption { font-size: 14px; color: var(--ink-3); margin-top: 10px; line-height: 1.5; }

.technik p { font-size: 16px; color: var(--ink-2); line-height: 1.7; max-width: 720px; }
.technik p + p { margin-top: 14px; }
.technik code, .install code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--ink-1); word-break: break-word; }

/* Koe: Ablauf */
.ablauf { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; margin: 8px 0 var(--head-gap); }
@media (max-width: 860px) { .ablauf { grid-template-columns: minmax(0,1fr); } }
.schritt { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; margin: 0 10px; }
.schritt:first-child { margin-left: 0; }
.schritt:last-child { margin-right: 0; }
.schritt:not(:last-child)::after { content: ''; position: absolute; top: 50%; right: -15px; width: 10px; height: 10px; border-top: 2px solid var(--line-2); border-right: 2px solid var(--line-2); transform: translateY(-50%) rotate(45deg); }
@media (max-width: 860px) {
  .schritt { margin: 0 0 18px; }
  .schritt:not(:last-child)::after { top: auto; bottom: -15px; right: 50%; transform: translateX(50%) rotate(135deg); }
}
.schritt-nr { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan-dark); margin-bottom: 10px; }
.schritt b { display: block; font-family: var(--font-head); font-size: 18px; color: var(--ink-1); margin-bottom: 6px; }
.schritt p { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.schritt .zeit { display: inline-block; margin-top: 12px; font-size: 12px; color: var(--ink-3); background: var(--surface-2); border-radius: 100px; padding: 3px 10px; }

.vorher-nachher { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 16px; align-items: center; max-width: 820px; margin-bottom: var(--head-gap); }
@media (max-width: 640px) { .vorher-nachher { grid-template-columns: minmax(0,1fr); } .vorher-nachher .pfeil { transform: rotate(90deg); justify-self: center; } }
.vn { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.vn small { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.vn p { font-size: 18px; color: var(--ink-1); }
.vn--vorher p { color: var(--ink-2); }
.pfeil { color: var(--ink-4); }

.zwei { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-top: 32px; }
@media (max-width: 760px) { .zwei { grid-template-columns: minmax(0,1fr); } }
.kasten { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.kasten h3 { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--ink-1); margin-bottom: 10px; }
.kasten p, .kasten li { font-size: 16px; color: var(--ink-2); line-height: 1.6; }
.kasten ul { padding-left: 18px; display: grid; gap: 6px; }

.tabelle-wrap { overflow-x: auto; margin-top: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.teile { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
table.teile th, table.teile td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); line-height: 1.5; }
table.teile th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; background: var(--surface-2); }
table.teile tr:last-child td { border-bottom: none; }
table.teile td:first-child { color: var(--ink-1); font-weight: 500; }

/* Installieren */
.install { max-width: 760px; }
.voraus { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.schritte { list-style: none; counter-reset: s; display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; }
.schritte > li, .notiz { min-width: 0; }
.schritte > li { counter-increment: s; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 18px 64px; font-size: 16px; color: var(--ink-2); line-height: 1.6; }
.schritte > li::before { content: counter(s); position: absolute; left: 20px; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--tint-blue); color: var(--blue); font-family: var(--font-head); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.schritte > li b { color: var(--ink-1); }
.schritte ul { margin-top: 8px; padding-left: 18px; display: grid; gap: 4px; }
pre.befehl { margin-top: 12px; background: #0D1117; color: #E6EDF3; border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 14px; line-height: 1.6; }
.notiz { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 18px 20px; font-size: 16px; color: var(--ink-2); line-height: 1.6; }
.notiz--wichtig { border-color: rgba(239,72,97,.35); background: rgba(239,72,97,.05); }
.notiz b { color: var(--ink-1); }
.notiz a, .d-text a, .technik a, .kasten a { color: var(--blue); }

.blaettern { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.blaettern a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; transition: border-color var(--tr), box-shadow var(--tr); }
.blaettern a:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.blaettern small { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.blaettern b { font-family: var(--font-head); font-size: 18px; color: var(--ink-1); }
.blaettern span { display: block; font-size: 14px; color: var(--ink-3); margin-top: 2px; }
.blaettern .weiter { text-align: right; }

/* ── CTA und Footer ──────────────────────────────────────── */
.cta { padding: clamp(64px,8vw,112px) 0; text-align: center; background: var(--bg); border-top: 1px solid var(--line); }
.cta-title { font-family: var(--font-head); font-weight: 700; font-size: clamp(28px,4vw,36px); line-height: 1.15; letter-spacing: -.03em; margin-bottom: 14px; color: var(--ink-1); }
.cta-sub { font-size: 18px; color: var(--ink-3); max-width: 600px; margin: 0 auto 32px; line-height: 1.6; }
.cta-zweit { display: block; margin-top: 20px; font-size: 14px; color: var(--ink-3); }
.cta-zweit a { color: var(--blue); }
footer.apps-fuss { border-top: 1px solid var(--line); background: var(--surface); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 28px; border-radius: 6px; border: 1px solid var(--line); }
.footer-name { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--ink-1); }
.footer-copy { display: flex; gap: 16px; font-size: 12px; color: var(--ink-4); flex-wrap: wrap; align-items: center; }
.footer-copy a { color: var(--ink-3); transition: color var(--tr); display: inline-block; padding: 6px 0; }
.footer-copy a:hover { color: var(--blue); }

@media (max-width: 560px) {
  .hero-sub, .d-lead, .d-text p, .d-abschnitt .intro, .cta-sub { font-size: 16px; }
  .blaettern { grid-template-columns: minmax(0,1fr); }
  .blaettern .weiter { text-align: left; }
}
.apps-grid--zwei { grid-template-columns: repeat(2,minmax(0,1fr)); }
@media (max-width: 600px) { .apps-grid--zwei { grid-template-columns: minmax(0,1fr); } }

/* ═══════════════════════════════════════════════════════════
   SZENEN (Koe-Seite, seit 2026-11-03). Mechanik wie auf index.html:
   ein Element mit .sz bekommt .an, sobald es im Bild ist, und läuft
   genau einmal. Im CSS steht immer der ENDZUSTAND, die Keyframes
   beschreiben nur den Anfang. Ohne JS und bei reduzierter Bewegung
   steht sofort das fertige Bild. .a = vor dem Start unsichtbar,
   --d = Verzögerung, --s = Start eines Ablauf-Schritts.
   ═══════════════════════════════════════════════════════════ */
html.js .sz:not(.an) .a { opacity: 0 !important; }
.sz.an .a { animation: sz-ein .45s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0s); }
.sz.an .a.a-pop  { animation-name: sz-pop; }
.sz.an .a.a-zieh { animation-name: sz-zieh; }
.sz svg .a, svg.sz .a { transform-box: fill-box; transform-origin: center; }
@keyframes sz-ein  { from { opacity: 0; transform: translateY(8px); } }
@keyframes sz-pop  { from { opacity: 0; transform: scale(.7); } }
@keyframes sz-zieh { from { transform: scaleX(0); } }

/* ── Ablauf: vier Schritte nacheinander, je ein kleines Bild ── */
.ablauf .schritt { --d: var(--s); }
.sz.an .schritt:not(:last-child)::after { animation: sb-da .3s ease calc(var(--s) + .65s) both; }
@keyframes sb-da { from { opacity: 0; } }
.sb {
  height: 64px; margin: -6px -4px 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background:
    linear-gradient(rgba(37,99,235,.05) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, rgba(37,99,235,.05) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(180deg, #F2F6FC, var(--surface-2));
  border: 1px solid var(--line);
}
.sb i, .sb b { display: block; font-style: normal; }

/* 1 · Taste wird gedrückt, der Pegel schlägt aus */
.sb-key { width: 34px; height: 30px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 1px 0 var(--line-2); display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--ink-1); transform: translateY(2px); }
.sz.an .sb-key { animation: sb-druck .3s ease calc(var(--s) + .3s) both; }
@keyframes sb-druck { from { transform: none; box-shadow: 0 4px 0 var(--line-2); } }
.sb-pegel, .sb-welle { display: flex; align-items: center; gap: 3px; height: 36px; }
.sb-pegel i, .sb-welle i { width: 4px; height: calc(var(--h) * 34px); border-radius: 2px; background: var(--cyan); }
.sb-welle i { width: 3px; height: calc(var(--h) * 26px); background: var(--ink-4); }
.sz.an .sb-pegel i { animation: sb-pegel .5s cubic-bezier(.2,.7,.2,1) calc(var(--s) + .45s + var(--k) * .06s) both; }
@keyframes sb-pegel { from { transform: scaleY(.12); } }

/* 2 · aus der Welle werden Zeilen */
.sb-zu { color: var(--ink-4); display: flex; }
.sb-zu svg { width: 16px; height: 16px; }
.sb-zeilen { width: 58px; display: grid; gap: 6px; }
.sb-zeilen i { width: var(--w); height: 5px; border-radius: 3px; background: var(--ink-4); opacity: .55; transform-origin: left; }
.sz.an .sb-zeilen i { animation: sz-zieh .4s ease calc(var(--s) + .45s + var(--k) * .14s) both; }

/* 3 · markierte Wörter fliegen raus, ein Satzzeichen kommt dazu */
.sb-aufraeumen { flex-direction: column; gap: 7px; }
.sb-reihe { display: flex; align-items: center; width: 100px; }
.sb-reihe i { width: var(--w); height: 6px; margin-right: 4px; border-radius: 3px; background: var(--ink-4); opacity: .55; }
.sb-reihe i.raus { width: 0; margin-right: 0; opacity: 0; }
.sz.an .sb-reihe i.raus { animation: sb-raus .9s ease calc(var(--s) + .3s) both; }
.sz.an .sb-reihe + .sb-reihe i.raus { animation-delay: calc(var(--s) + .45s); }
@keyframes sb-raus {
  from { width: var(--w); margin-right: 4px; opacity: .55; background: var(--ink-4); }
  40%  { width: var(--w); margin-right: 4px; opacity: 1; background: var(--orange); }
}
.sb-punkt { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.sz.an .sb-punkt { animation: sz-pop .3s ease calc(var(--s) + 1.1s) both; }

/* 4 · der Text erscheint im Fenster am Cursor */
.sb-fenster { width: 116px; height: 46px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 6px 14px -8px rgba(15,23,42,.25); overflow: hidden; }
.sb-leiste { display: flex; gap: 3px; padding: 5px 6px; border-bottom: 1px solid var(--line); }
.sb-leiste i { width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); }
.sb-text { display: flex; align-items: center; gap: 2px; padding: 8px 8px 0; }
.sb-tipp { width: 66px; height: 5px; border-radius: 3px; background: var(--ink-1); opacity: .7; }
.sz.an .sb-tipp { animation: sb-tipp .6s steps(6, end) calc(var(--s) + .4s) both; }
@keyframes sb-tipp { from { width: 0; } }
.sb-caret { width: 2px; height: 13px; background: var(--blue); border-radius: 1px; }

/* ── Vorher-Nachher: der Text wird sichtbar aufgeräumt ── */
.vn p { line-height: 1.5; }
.weg {
  color: var(--ink-4);
  background: linear-gradient(var(--orange), var(--orange)) no-repeat 0 58% / 100% 2px;
}
.sz.an .weg { animation: vn-streich .9s ease var(--d, 0s) both; }
@keyframes vn-streich {
  from { background-size: 0% 2px; color: var(--ink-2); }
  55%  { background-size: 100% 2px; color: var(--ink-2); }
}
.vn-marken { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.vn-marken span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--orange-text); background: rgba(239,72,97,.07); border-radius: 100px; padding: 3px 10px; }
.vn-marken span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.vn--nachher { border-color: rgba(37,99,235,.3); box-shadow: var(--shadow-sm); }
.vn--nachher p span { display: inline-block; }
.vn-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; vertical-align: -2px; background: var(--blue); border-radius: 1px; }
.sz.an .pfeil.a { animation-name: vn-pfeil; }
@keyframes vn-pfeil { from { opacity: 0; transform: translateX(-8px); } }
@media (max-width: 640px) { .sz.an .pfeil.a { animation-name: vn-pfeil-hoch; } }
@keyframes vn-pfeil-hoch { from { opacity: 0; transform: rotate(90deg) translateX(-8px); } }

/* ── Kästen: Netz und Speicher ── */
.kasten-bild { display: block; width: 100%; margin-bottom: 18px; border-radius: 8px; border: 1px solid var(--line); background: linear-gradient(180deg, #F2F6FC, var(--surface-2)); }
svg.netz { height: auto; max-height: 112px; padding: 6px 4px 2px; }
.netz text { font-family: var(--font-body); font-size: 12px; fill: var(--ink-3); }
.nz-geraet { fill: var(--surface); stroke: var(--ink-2); stroke-width: 2; stroke-linejoin: round; }
.nz-cloud { fill: var(--surface); stroke: var(--ink-4); stroke-width: 2; stroke-linejoin: round; }
.nz-weg { stroke: var(--ink-4); stroke-width: 2; stroke-dasharray: 3 5; stroke-linecap: round; opacity: .6; }
.nz-linie { stroke: var(--blue); stroke-width: 3; stroke-linecap: round; }
svg.sz .nz-linie { transform-origin: left center; }
.nz-stopp { fill: var(--orange); }
.nz-x { stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }

.speicher { padding: 14px 16px 12px; }
.sp-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.sp-uhr { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 100px; padding: 2px 9px; color: var(--ink-2); }
.sp-uhr::before { content: ''; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink-3); box-sizing: border-box; }
.sp-balken { position: relative; height: 26px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line-2); overflow: hidden; }
.sp-modell { display: block; height: 100%; width: 12%; background: var(--blue); opacity: .85; }
.sz.an .sp-modell { animation: sp-schlaf 2.4s cubic-bezier(.4,0,.2,1) .2s both; }
@keyframes sp-schlaf {
  from { width: 0; }
  28%  { width: 64%; }
  62%  { width: 64%; }
}
.sp-frei { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 500; color: var(--cyan-dark); white-space: nowrap; }
.sz.an .sp-frei.a { animation-name: sp-frei; }
@keyframes sp-frei { from { opacity: 0; transform: translateY(-50%) translateX(6px); } }
.sp-legende { margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.sp-legende span { display: inline-flex; align-items: center; gap: 6px; }
.sp-legende span::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); opacity: .85; }

@media (prefers-reduced-motion: reduce) {
  .sz *, .sz *::before, .sz *::after { animation: none !important; }
  html.js .sz:not(.an) .a { opacity: 1 !important; }
}
