/* Funscript Player – Doku (Feature-Seite + Entwickler-Doku) */
:root {
  --bg: #111317; --card: #1a1d23; --card2: #22262e; --line: #2c313b; --text: #e8eaed; --muted: #9aa1ab;
  --accent: #e0457b; --accent-soft: rgba(224, 69, 123, .14); --gold: #ffc400; --blue: #3b8cff; --green: #36c47a;
  --code: #0c0e12;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f6f8; --card: #ffffff; --card2: #eef0f4; --line: #dde1e7; --text: #1b1e23; --muted: #5b636e;
    --accent: #c2185b; --accent-soft: rgba(194, 24, 91, .09); --code: #f0f2f5;
  }
}
:root[data-theme="light"] {
  --bg: #f5f6f8; --card: #ffffff; --card2: #eef0f4; --line: #dde1e7; --text: #1b1e23; --muted: #5b636e;
  --accent: #c2185b; --accent-soft: rgba(194, 24, 91, .09); --code: #f0f2f5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
img, svg { max-width: 100%; }

/* Kopf + Navigation */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1040px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand span { color: var(--accent); }
.top nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.top nav a { padding: 6px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 14px; white-space: nowrap; }
.top nav a:hover, .top nav a.on { background: var(--card); color: var(--text); }

main { max-width: 1040px; margin: 0 auto; padding: 0 16px 80px; }
section { padding-top: 56px; }
h1 { font-size: clamp(30px, 6vw, 48px); line-height: 1.1; margin: 0 0 14px; }
h2 { font-size: clamp(22px, 4vw, 30px); margin: 0 0 8px; }
h3 { font-size: 17px; margin: 0 0 6px; }
p { margin: 0 0 12px; }
.lead { color: var(--muted); font-size: 18px; max-width: 640px; }
.sub { color: var(--muted); max-width: 720px; margin-bottom: 22px; }
.kicker { display: inline-block; color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.muted { color: var(--muted); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 48px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); background: var(--card); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 10px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; }
.btn.ghost { background: var(--card); color: var(--text); border: 1px solid var(--line); }

/* Karten + Raster */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.card p, .card li { color: var(--muted); font-size: 15px; }
.card p:last-child { margin-bottom: 0; }
.card .icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); font-size: 20px; margin-bottom: 10px; }
.card ul { margin: 0; padding-left: 18px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.split.rev > :first-child { order: 2; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 12px 40px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; }
.note { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 10px 14px; border-radius: 0 10px 10px 0; color: var(--text); font-size: 15px; }
.kbd { display: inline-block; min-width: 22px; padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--card2); font: 13px ui-monospace, Consolas, monospace; text-align: center; }

/* Abbildung: Smartphone mit Player */
.phone { width: min(340px, 100%); margin: 0 auto; padding: 12px; border-radius: 34px; background: #050608; border: 1px solid #2c313b; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.screen { border-radius: 24px; overflow: hidden; background: #111317; color: #e8eaed; }
.scr-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 8px; font-size: 11px; }
.pill { padding: 2px 8px; border: 1px solid #3a404b; border-radius: 999px; color: #9aa1ab; }
.pill.on { border-color: #36c47a; color: #36c47a; }
.scr-modes { display: flex; gap: 4px; margin: 0 10px 10px; padding: 3px; border: 1px solid #2c313b; border-radius: 9px; font-size: 11px; }
.scr-modes span { flex: 1; text-align: center; padding: 5px 0; border-radius: 6px; color: #9aa1ab; }
.scr-modes .on { background: #e0457b; color: #fff; }
.video { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(120% 90% at 30% 20%, #6a2a4a, #1d2440 55%, #0c0e14); }
.video .play { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.5); display: grid; place-items: center; font-size: 16px; }
.video .stop { position: absolute; right: 8px; top: 8px; background: #c62828; color: #fff; font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 6px; }
.bar-wrap { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 8px 8px; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.heat { position: relative; height: 18px; border-radius: 4px; overflow: hidden;
  background: linear-gradient(90deg, #1e3ca0 0 8%, #1e90ff 8% 18%, #28c864 18% 30%, #1e90ff 30% 38%, #f0d228 38% 48%, #fa821e 48% 58%, #28c864 58% 66%, #e62832 66% 76%, #fa821e 76% 86%, #1e90ff 86% 100%); }
.heat::after { content: ""; position: absolute; inset: 0 0 0 42%; background: rgba(0,0,0,.45); }
.heat i { position: absolute; top: 0; width: 2px; height: 35%; background: #ffd54f; z-index: 1; }
.heat b { position: absolute; top: 0; bottom: 0; left: 42%; width: 2px; background: #fff; z-index: 1; }
.row { display: flex; gap: 4px; margin-top: 6px; align-items: center; font-size: 10px; }
.row span { padding: 3px 6px; border-radius: 5px; background: rgba(255,255,255,.15); white-space: nowrap; }
.row .t { background: none; padding: 3px 2px; }
.row .g { flex: 1; background: none; }
.row .gold { color: #ffc400; }
.scr-info { padding: 10px 12px 14px; font-size: 12px; }
.scr-info b { display: block; font-size: 14px; margin-bottom: 2px; }
.stars { color: #ffc400; letter-spacing: 1px; }

/* Abbildung: Player-Leiste groß mit Beschriftung */
.bar-demo { background: #0c0e14; color: #fff; border-radius: 14px; padding: 16px; border: 1px solid var(--line); }
.bar-demo .heat { height: 30px; }
.bar-demo .row { font-size: 13px; gap: 6px; flex-wrap: wrap; }
.bar-demo .row span { padding: 6px 10px; }
.legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 18px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.legend div b { color: var(--text); font-weight: 600; }
.scale { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.scale .grad { flex: 1; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #1e3ca0, #1e90ff, #28c864, #f0d228, #fa821e, #e62832); }

/* SVG-Diagramme */
.diagram { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram text { font-family: system-ui, sans-serif; }
.d-box { fill: var(--card2); stroke: var(--line); }
.d-acc { fill: var(--accent-soft); stroke: var(--accent); }
.d-t { fill: var(--text); font-size: 14px; font-weight: 600; }
.d-s { fill: var(--muted); font-size: 12px; }
.d-line { stroke: var(--muted); stroke-width: 1.6; fill: none; }
.d-arrow { fill: var(--muted); }
.d-hot { stroke: var(--accent); stroke-width: 2.4; fill: none; }
.d-gold { stroke: var(--gold); stroke-width: 2.4; fill: none; }

/* Code + Tabellen (Entwickler-Doku) */
code { font: .92em ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--code); padding: 1px 5px; border-radius: 5px; }
pre { background: var(--code); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; font-size: 14px; line-height: 1.5; }
pre code { background: none; padding: 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tbl th, .tbl td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { background: var(--card2); font-weight: 600; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { white-space: nowrap; }
.tbl-wrap { overflow-x: auto; }
.m { display: inline-block; min-width: 44px; font: 600 11px ui-monospace, Consolas, monospace; padding: 2px 6px; border-radius: 5px; text-align: center; background: var(--card2); }
.m.get { color: var(--green); } .m.post { color: var(--blue); } .m.put { color: var(--gold); } .m.ws { color: var(--accent); }

footer { margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

@media (max-width: 760px) {
  .hero, .split { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .hero { padding-top: 28px; gap: 28px; }
  .top nav a { padding: 6px 8px; font-size: 13px; }
  section { padding-top: 44px; }
}

/* Abbildung: Geräte-Fenster */
.sheet-demo { width: min(360px, 100%); margin: 0 auto; padding: 16px; border-radius: 16px; background: #1a1d23; color: #e8eaed; border: 1px solid #2c313b; box-shadow: 0 20px 44px rgba(0,0,0,.35); font-size: 13px; }
.sd-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sd-switch { display: inline-block; width: 28px; height: 16px; margin-left: 6px; vertical-align: -3px; border-radius: 999px; background: #e0457b; position: relative; }
.sd-switch::after { content: ""; position: absolute; right: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.sd-x { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #111317; border: 1px solid #2c313b; }
.sd-tabs { display: flex; gap: 14px; border-bottom: 1px solid #2c313b; margin-bottom: 12px; }
.sd-tabs span { padding: 0 0 8px; color: #9aa1ab; }
.sd-tabs .on { color: #e8eaed; border-bottom: 2px solid #e0457b; }
.sd-btn { padding: 9px; border-radius: 8px; text-align: center; font-weight: 600; margin-bottom: 10px; }
.sd-btn.ok { background: rgba(54,196,122,.15); color: #36c47a; border: 1px solid #36c47a; }
.sd-btn.fin { background: #6a2fb0; color: #fff; }
.sd-btn.stop { background: #c62828; color: #fff; margin-bottom: 0; }
.sd-row { display: flex; gap: 6px; margin-bottom: 12px; }
.sd-row span { flex: 1; padding: 6px; border-radius: 6px; background: #22262e; text-align: center; font-size: 12px; }
.sd-slider { display: grid; grid-template-columns: 1fr auto; gap: 4px; margin-bottom: 12px; }
.sd-slider b { font-weight: 500; color: #9aa1ab; }
.sd-slider i { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #22262e var(--s, 0%), #e0457b var(--s, 0%) var(--v), #22262e var(--v)); }
.scr-head .burger { font-size: 15px; }

/* Sync-Animation */
.sync-demo { display: grid; grid-template-columns: 200px minmax(0, 1fr) 220px; gap: 18px; align-items: stretch;
  margin: 8px 0 32px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.sd-cap { margin-top: 8px; font-size: 13px; color: var(--muted); }
.sd-cap b { display: block; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.sdv-frame { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden;
  background: radial-gradient(120% 90% at 30% 20%, #6a2a4a, #1d2440 55%, #0c0e14); }
.sdv-dot { position: absolute; left: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 18px rgba(255,255,255,.6); }
.sdv-play { position: absolute; left: 10px; bottom: 8px; font-size: 12px; color: rgba(255,255,255,.7); }
.sdv-bar { height: 6px; margin-top: 8px; border-radius: 3px; background: var(--card2); overflow: hidden; }
.sdv-bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.sdv-time { margin-top: 6px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sd-graph { display: flex; flex-direction: column; min-width: 0; }
.sd-graph canvas { flex: 1; width: 100%; min-height: 160px; border-radius: 10px; background: var(--card2); }
.sd-devs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sd-handy, .sd-vibe { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; }
.sd-rail { position: relative; width: 34px; flex: 1; min-height: 150px; border-radius: 17px; background: var(--card2); border: 1px solid var(--line); }
.sd-carriage { position: absolute; left: 3px; right: 3px; height: 14%; border-radius: 12px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.sd-orb { --lvl: 0; position: relative; width: 84px; height: 84px; margin: auto 0; display: grid; place-items: center; }
.sd-orb::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent);
  opacity: calc(.12 + var(--lvl) * .5); transform: scale(calc(.55 + var(--lvl) * .55)); filter: blur(calc(var(--lvl) * 6px)); }
.sd-orb span { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); transform: scale(calc(.8 + var(--lvl) * .4)); }
.sd-ctrl { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sd-ctrl button { padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--card2); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.sd-seg { display: inline-flex; gap: 4px; }
.sd-seg button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 860px) {
  .sync-demo { grid-template-columns: 1fr; }
  .sdv { display: grid; grid-template-columns: 140px 1fr; gap: 0 12px; align-items: center; }
  .sdv .sdv-frame { grid-row: span 3; }
  .sd-graph canvas { min-height: 140px; }
  .sd-rail { min-height: 120px; }
}
.sd-auto-info { margin-top: 2px; font-size: 12px; }
.sd-ctrl .sd-seg + .sd-seg { margin-left: 6px; }

/* ===== 2. Fassung der Seite (1.16): Schritte, Funktions-Blöcke, Abbildungen, Zeitleiste, Fragen ===== */
.three-steps { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; padding-top: 22px; }
.step .num { position: absolute; top: -14px; left: 18px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.feature.rev > :first-child { order: 2; }
.feature:last-of-type { border-bottom: 0; }
.f-title { font-size: 20px; margin-bottom: 10px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 0 0 10px 26px; color: var(--muted); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
.ticks b { color: var(--text); }
#funktionen > .grid { margin-top: 28px; }

/* Status-Anzeige (Abbildung) */
.m-chip { display: inline-flex; gap: 4px; padding: 3px 10px; border: 1px solid #3a404b; border-radius: 999px; color: #9aa1ab; font-size: 11px; }
.m-chip .ok { color: #36c47a; }
.scr-head { gap: 8px; }
.scr-devs { display: grid; gap: 6px; padding: 0 12px 14px; font-size: 11px; }
.mbtn { padding: 7px; border-radius: 7px; background: #22262e; text-align: center; font-weight: 600; }
.mbtn.fin { background: #6a2fb0; color: #fff; }
.mrow { display: grid; grid-template-columns: 70px 1fr 54px; align-items: center; gap: 6px; color: #9aa1ab; }
.mrow i { height: 5px; border-radius: 3px; background: linear-gradient(90deg, #22262e var(--s, 0%), #e0457b var(--s, 0%) var(--v), #22262e var(--v)); }
.mrow i.live { background: linear-gradient(90deg, #e0457b var(--v), #22262e var(--v)); }
.scr-info span { display: block; margin-top: 2px; }

/* Finger-Fläche (Abbildung) */
.pad-demo { width: min(360px, 100%); margin: 0 auto; padding: 14px; border-radius: 16px; background: #1a1d23; border: 1px solid #2c313b; color: #e8eaed; }
.pd-area { position: relative; height: 230px; border-radius: 12px; overflow: hidden; background: linear-gradient(to top, #1a1d23, #111317); border: 1px solid #2c313b; }
.pd-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 72%; background: linear-gradient(to top, rgba(224,69,123,.25), rgba(224,69,123,.8)); }
.pd-val { position: absolute; right: 12px; top: 10px; font-size: 22px; font-weight: 700; }
.pd-finger { position: absolute; left: 45%; top: calc(28% - 22px); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: 0 0 0 10px rgba(255,255,255,.15); }
.pd-hint { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 12px; color: #9aa1ab; }
.pd-opts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: #9aa1ab; align-items: center; }
.pd-rec { margin-left: auto; padding: 4px 10px; border-radius: 7px; background: #c62828; color: #fff; }

/* Bibliothek (Abbildung) */
.tiles-demo { width: min(420px, 100%); margin: 0 auto; padding: 14px; border-radius: 16px; background: #1a1d23; border: 1px solid #2c313b; color: #e8eaed; position: relative; }
.td-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; font-size: 11px; }
.td-bar span { padding: 4px 10px; border: 1px solid #2c313b; border-radius: 999px; color: #9aa1ab; }
.td-bar .on { background: #e0457b; border-color: #e0457b; color: #fff; }
.td-bar .sel { margin-left: auto; color: #e8eaed; }
.td-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 12px; }
.td-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; margin-bottom: 4px; }
.td-thumb span { position: absolute; left: 6px; top: 4px; font-size: 11px; }
.td-thumb i { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--h); }
.t1 { background: radial-gradient(120% 90% at 20% 30%, #7a3b2a, #241a2e 60%, #0e0f14); }
.t2 { background: radial-gradient(120% 90% at 70% 20%, #2e3b6a, #1b1f33 60%, #0e0f14); }
.t3 { background: radial-gradient(120% 90% at 40% 70%, #6a2a4a, #23182a 60%, #0e0f14); }
.t4 { background: radial-gradient(120% 90% at 30% 20%, #245a5a, #162428 60%, #0e0f14); }
.td-mini { position: absolute; left: -14px; bottom: -18px; display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px;
  background: radial-gradient(120% 90% at 30% 20%, #245a5a, #162428 70%); border: 1px solid #2c313b; font-size: 11px; box-shadow: 0 10px 24px rgba(0,0,0,.45); }
.td-mini b { padding: 2px 6px; border-radius: 5px; background: rgba(0,0,0,.6); }

/* Zeitleiste der Versionen */
.timeline { border-left: 2px solid var(--line); margin: 8px 0 16px 8px; }
.tl { position: relative; padding: 0 0 16px 22px; }
.tl::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.tl b { display: block; margin-bottom: 2px; }
.tl p { margin: 0; color: var(--muted); font-size: 15px; }

/* Fragen */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; gap: 20px; }
  .feature.rev > :first-child { order: 0; }
  .td-mini { left: 8px; bottom: -14px; }
}

/* Mini-Player zum Ausprobieren */
.try { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.tr-pick { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tr-pick .btn { cursor: pointer; border: 0; font: inherit; font-weight: 600; }
.tr-msg { font-size: 14px; }
.tr-stage { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 18px; margin-top: 16px; }
.tr-stage[hidden] { display: none; }
.tr-main video { width: 100%; max-height: 360px; border-radius: 10px; background: #000; display: block; }
.tr-main video[hidden] { display: none; }
.tr-name { font-size: 14px; margin: 8px 0; }
.tr-bar { display: block; width: 100%; height: 26px; border-radius: 6px; background: var(--card2); cursor: pointer; }
.tr-ctl { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.tr-play { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 18px; cursor: pointer; }
.tr-time { font-variant-numeric: tabular-nums; color: var(--muted); }
.tr-devs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.tr-dev { display: flex; flex-direction: column; align-items: center; text-align: center; }
.tr-real { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 12px; }
.tr-real summary { cursor: pointer; font-weight: 600; }
.tr-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tr-row .btn { border: 1px solid var(--line); cursor: pointer; font: inherit; }
.tr-key { flex: 1; min-width: 180px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
@media (max-width: 760px) { .tr-stage { grid-template-columns: 1fr; } }

/* Highlights: Script-Automatik, Auto-Umwandeln, Upscaling */
.chip.hl { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 40px; }
.hl-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; position: relative; overflow: hidden; }
.hl-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, #ff5c93, #a07bff); }
.hl-card h3 { font-size: 19px; margin: 12px 0 6px; }
.hl-card p { color: var(--muted); font-size: 15px; margin: 0; }
.hl-vis { height: 90px; border-radius: 12px; background: #101218; display: grid; place-items: center; padding: 8px 12px; }
.hl-vis svg { width: 100%; height: 70px; }
.hl-formats { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.hl-formats span { padding: 4px 9px; border-radius: 7px; background: #22262e; color: #c7ccd3; font: 600 12px ui-monospace, Consolas, monospace; }
.hl-formats b { color: #9098a3; font-size: 18px; margin: 0 4px; }
.hl-formats em { font-style: normal; padding: 6px 12px; border-radius: 999px; background: linear-gradient(135deg, #ff5c93, #a07bff); color: #fff; font-weight: 700; font-size: 13px; }
.hl-upscale { position: relative; padding: 0; overflow: hidden; display: block; }
.hl-upscale i { position: absolute; top: 0; bottom: 0; width: 50%; background: radial-gradient(70% 90% at 50% 45%, #f08aac 0, #b04a78 22%, #3c4a8a 52%, #0d0f16 88%); background-size: 200% 100%; }
.hl-upscale i.b { left: 0; background-position: 0 0; filter: blur(3.5px) saturate(.7) contrast(.85); }
.hl-upscale i.a { right: 0; background-position: 100% 0; filter: saturate(1.2) contrast(1.15); }
.hl-upscale i.a::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(60deg, rgba(255,255,255,.07) 0 1px, transparent 1px 5px); }
.hl-upscale .up-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1px; background: #fff; box-shadow: 0 0 8px rgba(0,0,0,.6); }
.hl-upscale .l, .hl-upscale .r { position: absolute; bottom: 8px; padding: 2px 8px; border-radius: 6px; background: rgba(0,0,0,.65); color: #fff; font: 700 12px ui-monospace, Consolas, monospace; }
.hl-upscale .l { left: 8px; } .hl-upscale .r { right: 8px; }
/* Vorher/Nachher im Funktions-Block */
.cmp { width: min(440px, 100%); margin: 0 auto; }
.cmp-img { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.cmp-l, .cmp-r { position: absolute; top: 0; bottom: 0; width: 50%; background: radial-gradient(70% 80% at 50% 45%, #e07a9a 0, #9b3f6a 25%, #33407a 55%, #0d0f16 90%); background-size: 200% 100%; }
.cmp-l { left: 0; background-position: 0 0; filter: blur(3px) saturate(.75) contrast(.9); }
.cmp-r { right: 0; background-position: 100% 0; filter: saturate(1.15) contrast(1.1); }
.cmp-r::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(60deg, rgba(255,255,255,.06) 0 1px, transparent 1px 5px); }
.cmp-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1px; background: #fff; box-shadow: 0 0 10px rgba(0,0,0,.5); }
.cmp-tag { position: absolute; bottom: 10px; padding: 3px 9px; border-radius: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; }
.cmp-tag.l { left: 10px; } .cmp-tag.r { right: 10px; }
.cmp-steps { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.cmp-steps span { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.cmp-steps .on { border-color: var(--accent); color: var(--text); }
@media (max-width: 860px) { .highlights { grid-template-columns: 1fr; } }

/* Für wen / Vergleich / Voraussetzungen / Mini-Player-Umschalter */
.vs { margin-top: 18px; overflow-x: auto; }
.vs-tbl { width: 100%; min-width: 520px; }
.vs-tbl td.no { color: var(--muted); }
.vs-tbl td.yes { color: var(--text); font-weight: 600; }
.vs-tbl td.yes::first-letter { color: #3ccf7a; }
.vs-tbl th:last-child, .vs-tbl td.yes { background: var(--accent-soft); }
.need h3 { margin-top: 0; }
.need.opt { border-style: dashed; }
.tr-sw { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tr-sw .sd-seg + .sd-seg { margin-left: 0; }
.tr-note { margin-top: 8px; font-size: 14px; color: var(--muted); min-height: 1.4em; }
.tr-bar { height: 64px; }
.vs-tbl td:first-child { white-space: normal; min-width: 150px; }
@media (max-width: 600px) { .vs-tbl { min-width: 0; font-size: 13px; } .vs-tbl th, .vs-tbl td { padding: 8px; } .vs-tbl td:first-child { min-width: 0; } }

/* DE/EN-Schalter */
.lang-switch { display: inline-flex; margin-left: 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.lang-switch button { background: none; border: 0; color: inherit; opacity: .6; font: inherit; font-size: 12px; font-weight: 700; padding: 4px 9px; cursor: pointer; }
.lang-switch button.on { opacity: 1; background: rgba(255,92,147,.25); }
/* 1.18: Kopf-Animation (hero.js) – Smartphone + Geräte daneben (Desktop) bzw. darunter (Smartphone) */
.hero-demo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.hero-demo .phone { width: min(320px, 100%); }
.hd-video .bar-wrap { padding-top: 10px; }
.hd-graph { display: block; width: 100%; height: 44px; border-radius: 4px; background: rgba(0,0,0,.25); }
.hd-track { height: 3px; margin-top: 4px; border-radius: 2px; background: rgba(255,255,255,.2); overflow: hidden; }
.hd-progress { display: block; height: 100%; width: 0; background: #e0457b; }
.hd-chip .busy { color: #ffb74d; }
.hd-chip .ok { color: #36c47a; }
.hero-demo.tapping .hd-chip { box-shadow: 0 0 0 3px rgba(224,69,123,.55); transition: box-shadow .2s; }
.hero-demo .play { transition: transform .2s; }
.hero-demo.playing .play { opacity: .0; transform: translate(-50%, -50%) scale(.6); }
.hd-devs { display: flex; flex-direction: column; gap: 18px; align-items: center; min-width: 110px; }
.hd-dev { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.hd-dev .sd-rail { flex: none; height: 170px; width: 30px; }
.hd-dev .sd-orb { width: 70px; height: 70px; }
.hd-dev b { color: var(--text); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  /* Smartphone: Animation oben, Geräte nebeneinander unter dem Telefon */
  .hero { gap: 22px; }
  .hero > .hero-demo { order: -1; }
  .hero-demo { grid-template-columns: 1fr; justify-items: center; }
  .hd-devs { flex-direction: row; gap: 34px; }
  .hd-dev .sd-rail { height: 120px; }
  .hero .lead { font-size: 16px; }
  /* Highlights als wischbare Karten */
  .highlights { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .highlights .hl-card { flex: 0 0 82%; scroll-snap-align: center; }
  /* Vergleich als Karten statt breiter Tabelle */
  .vs { overflow: visible; }
  .vs-tbl, .vs-tbl tbody, .vs-tbl tr, .vs-tbl td { display: block; min-width: 0; }
  .vs-tbl thead { display: none; }
  .vs-tbl tr { border-bottom: 1px solid var(--line); padding: 8px 4px; }
  .vs-tbl td { border: 0; padding: 2px 8px; background: none !important; }
  .vs-tbl td:first-child { font-weight: 700; }
  /* Alle Funktionen: Abbildungen unter den Text */
  .feature, .feature.rev { grid-template-columns: 1fr; }
}
/* Alle Funktionen aufklappbar */
.all-features { margin-top: 18px; }
.all-features > summary { cursor: pointer; display: inline-block; padding: 10px 18px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-weight: 600; list-style: none; }
.all-features > summary::-webkit-details-marker { display: none; }
.all-features[open] > summary { margin-bottom: 10px; }

/* 1.19: Einstieg kurz und groß, Animation als eigener Abschnitt darunter */
.hero.hero-short { display: block; text-align: center; padding: 72px 0 24px; max-width: 820px; margin: 0 auto; }
.hero-short h1 { font-size: clamp(36px, 7vw, 64px); line-height: 1.05; margin-bottom: 18px; }
.hero-short .grad { background: linear-gradient(90deg, #ff5c93, #a07bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-short .lead { margin: 0 auto; font-size: clamp(17px, 2.4vw, 20px); }
.hero-short .btns { justify-content: center; }
.hero-live { padding-top: 24px; }
.hero-live .hero-demo { max-width: 560px; margin: 0 auto; }
@media (max-width: 760px) {
  .hero.hero-short { padding-top: 40px; }
  .hero-live .hero-demo { grid-template-columns: 1fr; }
}
