/* MatchTrace Webseite, Prototyp v2 (24.11.2026). Gestaltung nach Hero-Entwurf C „Glaswand“.
   Tag (helle Systemeinstellung): Farben von Entwurf C. Nacht (dunkle Systemeinstellung): Farben von Entwurf B.
   Kein Schalter, nichts im Browser gespeichert. Schriften lokal unter fonts/ (SIL OFL 1.1). */

@font-face{ font-family:"Gabarito"; src:url(fonts/gabarito-latin-wght.woff2) format("woff2"); font-weight:400 900; font-display:swap; }
@font-face{ font-family:"Figtree"; src:url(fonts/figtree-latin-wght.woff2) format("woff2"); font-weight:300 900; font-display:swap; }

/* ---------- Tag ---------- */
:root{
  color-scheme:light;
  --bg:#f2f5f9; --bg-2:#e7eef8; --surface:#ffffff; --ink:#0f1e36; --muted:#3e4d68;
  --line:rgba(15,30,54,.10); --line-strong:rgba(15,30,54,.28);
  --accent:#1f54a8; --cta:#1f54a8; --cta-ink:#ffffff; --cta-glow:rgba(31,84,168,.40); --focus:#1f54a8;
  --fuge:rgba(15,30,54,.07); --licht:transparent;
  --geraet:#0f1e36; --schatten:0 40px 80px -36px rgba(15,30,54,.45); --schatten-karte:0 24px 48px -28px rgba(15,30,54,.30);
  --app-bg:#f5f7fa; --app-surface:#ffffff; --app-ink:#0d1f3c; --app-muted:#52658a; --app-line:#d6deea;
  --serie-1:#1f54a8; --serie-2:#0a6c7d; --gut:#137a3e; --schlecht:#b4232c; --pad-wir:#e6eefa; --pad-rand:#1f54a8; --pad-text:#1f54a8;
  --logo-ink:#0f1e36; --logo-spur:#1f54a8; --logo-grund:#f2f5f9; --logo-ball-rand:#0f1e36;
  --f-display:"Gabarito", system-ui, sans-serif; --f-text:"Figtree", system-ui, sans-serif;
  --ease:cubic-bezier(.23,1,.32,1); --ease-io:cubic-bezier(.77,0,.175,1);
  --r-s:10px; --r-m:16px; --r-l:24px; --r-knopf:14px;
  --kopf:72px;
}
/* ---------- Nacht ---------- */
@media (prefers-color-scheme: dark){
  :root{
    color-scheme:dark;
    --bg:#12151c; --bg-2:#171b24; --surface:#1a1f29; --ink:#eef1f6; --muted:#a6aec0;
    --line:rgba(238,241,246,.08); --line-strong:rgba(238,241,246,.30);
    --accent:#8fd3e6; --cta:#e3f43a; --cta-ink:#12151c; --cta-glow:rgba(227,244,58,.40); --focus:#e3f43a;
    --fuge:rgba(238,241,246,.05); --licht:rgba(60,110,200,.38);
    --geraet:#0a0c11; --schatten:0 50px 100px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.07); --schatten-karte:none;
    --app-bg:#0b1a33; --app-surface:#122a4f; --app-ink:#f5f7fa; --app-muted:#9aaccb; --app-line:#24406b;
    --serie-1:#e3f43a; --serie-2:#8fd3e6; --gut:#6be3a2; --schlecht:#ff8f94; --pad-wir:#2a3a14; --pad-rand:#e3f43a; --pad-text:#e3f43a;
    --logo-ink:#eef1f6; --logo-spur:#e3f43a; --logo-grund:#12151c; --logo-ball-rand:none;
  }
}

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-padding-top:calc(var(--kopf) + 12px); scroll-padding-bottom:72px; }
body{ margin:0; background:var(--bg); color:var(--ink); font-family:var(--f-text); font-size:1.0625rem; line-height:1.6;
  -webkit-font-smoothing:antialiased; overflow-x:clip; -webkit-tap-highlight-color:transparent; }
img,svg{ display:block; max-width:100%; }
a{ color:inherit; }
a,button,summary{ touch-action:manipulation; }
:focus-visible{ outline:2px solid var(--focus); outline-offset:3px; border-radius:6px; }
.sprung{ position:absolute; left:16px; top:-80px; z-index:60; padding:10px 14px; border-radius:8px; background:var(--cta); color:var(--cta-ink); font-weight:600; text-decoration:none; }
.sprung:focus-visible{ top:12px; }
.nw{ white-space:nowrap; }
.zahlen{ font-variant-numeric:tabular-nums; }

.wrap{ --rand:max(20px, env(safe-area-inset-left), env(safe-area-inset-right)); width:min(100% - 2 * var(--rand), 1216px); margin-inline:auto; }
@media (min-width:768px){ .wrap{ --rand:64px; } }

h1,h2,h3{ font-family:var(--f-display); margin:0; text-wrap:balance; }
h1{ font-weight:700; font-size:clamp(2.75rem, 1.5rem + 4.3vw, 4.75rem); line-height:1; letter-spacing:-.035em; }
h2{ font-weight:700; font-size:clamp(2rem, 1.3rem + 2.6vw, 3.5rem); line-height:1.04; letter-spacing:-.03em; }
h3{ font-weight:600; font-size:1.25rem; line-height:1.25; letter-spacing:-.01em; }
p{ margin:0; text-wrap:pretty; }
.fakt{ margin:0; font-size:.9375rem; color:var(--muted); }
.lead{ font-size:clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height:1.55; color:var(--muted); max-width:42ch; }
.text-m{ color:var(--muted); max-width:52ch; }

/* ---------- Knöpfe ---------- */
.knopf{ display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:0 22px; border-radius:var(--r-knopf);
  font:600 1rem/1 var(--f-text); text-decoration:none; border:1px solid transparent; white-space:nowrap; cursor:pointer;
  transition:transform 140ms var(--ease), background-color .18s ease, border-color .18s ease, box-shadow .18s ease; }
.knopf:active{ transform:scale(.97); }
.knopf.haupt{ background:var(--cta); color:var(--cta-ink); }
.knopf.zweit{ border-color:var(--line-strong); color:var(--ink); }
.knopf.klein{ min-height:44px; padding:0 16px; font-size:.9375rem; }
@media (hover:hover) and (pointer:fine){
  .knopf.haupt:hover{ transform:translateY(-1px); box-shadow:0 10px 26px -10px var(--cta-glow); }
  .knopf.zweit:hover{ border-color:var(--ink); }
  .knopf.haupt:active, .knopf.zweit:active{ transform:scale(.97); }
}
.knoepfe{ display:flex; flex-wrap:wrap; gap:12px; }

/* ---------- Kopf ---------- */
.kopf{ position:sticky; top:0; z-index:50; }
.kopf::before{ content:""; position:absolute; inset:0; z-index:-1; background:color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter:saturate(1.4) blur(14px); backdrop-filter:saturate(1.4) blur(14px); border-bottom:1px solid var(--line); }
.kopf .wrap{ display:flex; align-items:center; gap:28px; height:var(--kopf); }
.marke{ display:flex; align-items:center; min-height:44px; border-radius:6px; }
.marke svg{ height:26px; width:auto; }
.nav{ display:flex; gap:4px; }
.nav a{ text-decoration:none; color:var(--muted); font-weight:500; font-size:.9375rem; padding:12px 12px; border-radius:10px; position:relative; transition:color .16s ease; }
.nav a::after{ content:""; position:absolute; left:12px; right:12px; bottom:8px; height:1.5px; background:currentColor; transform:scaleX(0); transform-origin:left; transition:transform .22s var(--ease); }
.nav a:hover{ color:var(--ink); } .nav a:hover::after{ transform:scaleX(1); }
.kopf-rechts{ margin-left:auto; display:flex; align-items:center; gap:8px; }
.kopf-rechts .leise{ text-decoration:none; color:var(--muted); font-weight:500; padding:12px; border-radius:10px; }
.kopf-rechts .leise:hover{ color:var(--ink); }
.menue{ display:none; position:relative; }
.menue summary{ list-style:none; display:grid; place-items:center; width:44px; height:44px; border-radius:12px; border:1px solid var(--line-strong); cursor:pointer; }
.menue summary::-webkit-details-marker{ display:none; }
.menue summary svg{ width:20px; height:20px; }
.menue-liste{ position:absolute; right:0; top:calc(100% + 10px); min-width:240px; padding:8px; display:grid; border-radius:var(--r-m);
  background:var(--surface); border:1px solid var(--line-strong); box-shadow:0 24px 48px -20px rgba(0,0,0,.35); transform-origin:top right; }
.menue-liste a{ padding:12px 14px; border-radius:10px; text-decoration:none; font-weight:500; }
.menue-liste a:hover{ background:var(--bg-2); }
@media (prefers-reduced-motion: no-preference){ .menue[open] .menue-liste{ animation:menue .2s var(--ease); } }
@keyframes menue{ from{ opacity:0; transform:translateY(-6px) scale(.98); } }
@media (max-width:900px){ .nav, .kopf-rechts .leise{ display:none; } .menue{ display:block; } .kopf .wrap{ gap:12px; } }
@media (max-width:379px){ .kopf-rechts .knopf{ display:none; } }

/* ---------- Abschnitte ---------- */
main > section{ position:relative; padding-block:clamp(88px, 11vw, 152px); }
.kopfzeile{ display:grid; gap:20px; max-width:760px; margin-bottom:clamp(40px, 5vw, 64px); }
.split{ display:grid; gap:clamp(40px, 6vw, 88px); align-items:start; }
/* Splits auf dem 12-Spalten-Raster (Taste-Skill SR-8): Text Spalten 1-5, Bild ab Spaltenlinie 5, auf jeder Seite gleich */
@media (min-width:1024px){
  .split, .hero-raster{ grid-template-columns:repeat(12, minmax(0,1fr)); column-gap:24px; }
  .split > :first-child, .hero-raster > :first-child{ grid-column:1 / 6; }
  .split > :last-child, .hero-raster > :last-child{ grid-column:6 / -1; }
}
.punkte{ list-style:none; margin:28px 0 0; padding:0; display:grid; gap:16px; max-width:48ch; }
.punkte li{ display:grid; grid-template-columns:24px 1fr; gap:12px; color:var(--muted); }
.punkte svg{ width:22px; height:22px; color:var(--accent); margin-top:2px; }
.punkte b{ color:var(--ink); font-weight:600; }
.pro{ display:inline-block; vertical-align:3px; margin-left:4px; padding:1px 8px; border-radius:999px; border:1px solid var(--accent); color:var(--accent); font:600 .75rem/1.5 var(--f-text); }

/* ---------- Hero ---------- */
.hero{ min-height:calc(100svh - var(--kopf)); display:flex; align-items:center; padding-block:32px 72px !important; isolation:isolate; overflow:hidden; }
.hero::before{ content:""; position:absolute; z-index:-1; inset:0 0 0 46%; pointer-events:none; border-radius:0 0 0 48px;
  background:repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), var(--fuge) calc(25% - 1px) 25%), linear-gradient(180deg, var(--bg-2), var(--bg) 85%); }
.hero::after{ content:""; position:absolute; z-index:-1; right:-10%; top:-30%; width:70%; height:110%; pointer-events:none;
  background:radial-gradient(50% 50% at 50% 50%, var(--licht), transparent 70%); }
.hero-raster{ display:grid; row-gap:56px; align-items:start; }

.hero-text{ display:grid; gap:24px; justify-items:start; }
.hero-text h1{ max-width:13ch; }
@media (max-width:400px){ .hero-text h1{ font-size:clamp(2rem, 11.5vw, 2.75rem); } }
.hero-text .knoepfe{ margin-top:8px; }
.buehne{ display:grid; grid-template-columns:auto 1fr; gap:20px; align-items:center; }
.stapel{ display:grid; gap:20px; }
@media (max-width:1023px){
  .hero::before{ inset:42% 0 0 0; border-radius:48px 48px 0 0; }
  .buehne{ grid-template-columns:1fr; justify-items:center; }
  .stapel{ grid-template-columns:repeat(2, minmax(0,1fr)); width:100%; }
}
@media (max-width:640px){ .stapel{ grid-template-columns:1fr; } .hero-text .knopf{ flex:1 1 100%; } }

/* ---------- Gerät und App-Teile ---------- */
.handy{ width:300px; flex:none; border-radius:46px; padding:10px; background:var(--geraet); box-shadow:var(--schatten); }
.handy-innen{ position:relative; height:610px; border-radius:37px; overflow:hidden; background:var(--app-bg); color:var(--app-ink);
  padding:46px 14px 12px; display:flex; flex-direction:column; gap:12px; }
.handy-innen::before{ content:""; position:absolute; top:12px; left:50%; width:92px; height:26px; margin-left:-46px; border-radius:20px; background:#000; }
@media (max-width:400px){ .handy{ width:284px; } }
.app-karte{ background:var(--app-surface); color:var(--app-ink); border:1px solid var(--app-line); border-radius:20px; padding:18px; box-shadow:var(--schatten-karte); }
.app-karte h3{ font:600 .9375rem/1.3 var(--f-text); letter-spacing:0; }
.app-gedaempft{ color:var(--app-muted); }
.zeile{ display:flex; justify-content:space-between; align-items:baseline; gap:12px; font-size:.875rem; }
.legende{ display:flex; flex-wrap:wrap; gap:6px 14px; font-size:.75rem; color:var(--app-muted); }
.legende > span{ display:inline-flex; align-items:center; gap:6px; }
.legende i{ width:16px; border-top:2.5px solid var(--serie-1); }
.legende i.gestr{ border-top-style:dashed; border-color:var(--serie-2); }
.kurve{ width:100%; height:auto; overflow:visible; }
.kurve .gitter{ stroke:var(--app-line); }
.kurve .achse{ fill:var(--app-muted); font:500 18px var(--f-text); }
.kurve-breit .achse{ font-size:13px; }
.kurve .achse .rechts{ fill:var(--serie-2); }
.tabs{ margin-top:auto; display:grid; grid-template-columns:repeat(5,1fr); gap:2px; padding:8px 2px 0; border-top:1px solid var(--app-line); font-size:.625rem; color:var(--app-muted); text-align:center; }
.tabs span{ display:grid; justify-items:center; gap:4px; }
.tabs span::before{ content:""; width:18px; height:18px; border-radius:6px; border:1.5px solid currentColor; opacity:.7; }
.tabs span.an{ color:var(--serie-1); font-weight:600; }
.kurve .rating{ fill:none; stroke:var(--serie-1); stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
.kurve .level{ fill:none; stroke:var(--serie-2); stroke-width:2.5; stroke-dasharray:7 6; stroke-linecap:round; }
.mini-kopf{ font:700 1.25rem/1.2 var(--f-display); padding:2px 4px 0; letter-spacing:-.01em; }
.kacheln{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.kachel{ background:var(--app-surface); border:1px solid var(--app-line); border-radius:14px; padding:10px 12px; min-width:0; }
.kachel small{ display:block; font-size:.6875rem; color:var(--app-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kachel b{ font:700 1.25rem/1.2 var(--f-display); font-variant-numeric:tabular-nums; }
.feld{ background:var(--app-surface); border:1px solid var(--app-line); border-radius:16px; padding:12px; }
.liste{ display:grid; gap:8px; font-size:.8125rem; }
.liste .gut{ color:var(--gut); font-weight:600; font-variant-numeric:tabular-nums; }
.liste .schlecht{ color:var(--schlecht); font-weight:600; font-variant-numeric:tabular-nums; }
.balken{ display:grid; height:10px; border-radius:6px; overflow:hidden; margin:10px 0 6px; background:var(--app-line); }
.balken i{ display:block; height:100%; background:var(--gut); border-radius:6px 0 0 6px; }
.gross{ font:700 2rem/1.1 var(--f-display); letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.platz{ display:grid; grid-template-columns:1fr auto 1fr; gap:8px; align-items:center; font-size:.875rem; padding:10px 0; border-top:1px solid var(--app-line); }
.platz:first-of-type{ border-top:0; }
.platz small{ display:block; font-size:.75rem; color:var(--app-muted); font-variant-numeric:tabular-nums; }
.platz .mitte{ font-size:.75rem; color:var(--app-muted); }
.platz > div:last-child{ text-align:right; }
.platz .platz-titel{ grid-column:1 / -1; font-size:.75rem; font-weight:600; color:var(--app-muted); }

/* Übersicht im Hero-Handy, Aufbau wie padel-dashboard.html (stat-row, level-preview, recentMatches) */
.uebersicht{ gap:8px; }
.uebersicht .kachel{ padding:8px 10px; }
.uebersicht .kachel b{ display:block; font-size:1.125rem; }
.kachel em{ display:block; font-style:normal; font-size:.625rem; color:var(--app-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.auf{ color:var(--gut) !important; }
.serie{ display:flex; gap:3px; margin-top:6px; }
.serie i{ font-style:normal; font-size:.5625rem; font-weight:700; width:18px; height:18px; border-radius:50%; display:grid; place-items:center; border:1px solid; }
.serie .s{ color:var(--gut); background:color-mix(in srgb, var(--gut) 12%, transparent); }
.serie .n{ color:var(--schlecht); background:color-mix(in srgb, var(--schlecht) 12%, transparent); }
.vorschau{ display:grid; gap:4px; padding:10px 12px; }
.vorschau small, .vfuss{ font-size:.625rem; color:var(--app-muted); }
.vwerte{ display:flex; gap:12px; font-size:.6875rem; color:var(--app-muted); }
.vwerte b{ color:var(--app-ink); font-variant-numeric:tabular-nums; }
.vwerte em{ font-style:normal; }
.minikurve{ width:100%; height:44px; display:block; }
.minikurve .rating{ fill:none; stroke:var(--serie-1); stroke-width:2; }
.minikurve .level{ fill:none; stroke:var(--serie-2); stroke-width:1.8; stroke-dasharray:5 4; }
.partien{ flex:1; min-height:0; overflow:hidden; display:grid; gap:8px; align-content:start; padding:10px 12px; font-size:.75rem; }
.partie{ display:grid; gap:4px; padding-top:8px; border-top:1px solid var(--app-line); }
.partie .zeile{ font-size:.625rem; }
.partie .meta{ color:var(--app-muted); }
.badge{ font-size:.5625rem; font-weight:700; letter-spacing:.02em; padding:2px 6px; border-radius:6px; }
.badge.s{ color:var(--gut); background:color-mix(in srgb, var(--gut) 12%, transparent); }
.badge.n{ color:var(--schlecht); background:color-mix(in srgb, var(--schlecht) 12%, transparent); }
.paar{ display:grid; grid-template-columns:1fr 1fr; gap:8px; font-size:.6875rem; line-height:1.35; }
.paar b{ display:block; }
.paar span:last-child{ text-align:right; align-self:end; }
.saetze{ font-weight:600; font-variant-numeric:tabular-nums; white-space:pre; }
.gast{ font-size:.75rem; font-weight:600; padding:1px 8px; border-radius:6px; border:1px solid var(--app-line); color:var(--app-muted); }

/* Live-Zählfeld */
.live{ display:grid; grid-template-rows:auto auto 1fr auto 1fr auto; height:610px; }
.live-kopf{ display:flex; justify-content:space-between; font-size:.75rem; color:var(--app-muted); padding:0 4px; }
.pad{ border-radius:20px; display:grid; place-items:center; font-weight:600; font-size:1.0625rem; background:var(--app-surface); border:1px solid var(--app-line); }
.pad.wir{ background:var(--pad-wir); border-color:var(--pad-rand); color:var(--pad-text); }
.stand{ text-align:center; }
.stand-sub{ font-size:.75rem; color:var(--app-muted); font-variant-numeric:tabular-nums; }
.live-saetze{ display:flex; justify-content:center; gap:6px; }
.live-saetze span{ font-size:.75rem; font-weight:600; padding:3px 10px; border-radius:8px; border:1px solid var(--app-line); font-variant-numeric:tabular-nums; }
.live-saetze .aktiv{ border-color:var(--serie-1); color:var(--serie-1); }
.stand-info{ font-size:.75rem; font-weight:600; color:var(--pad-text); min-height:1.2em; }
.stand-zahl{ font:600 3.25rem/1.05 var(--f-display); font-variant-numeric:tabular-nums; letter-spacing:-.02em; }
.stand-zahl b{ font-weight:inherit; display:inline-block; min-width:1.6ch; }
.live-fuss{ display:flex; gap:6px; }
.live-fuss span{ flex:1; text-align:center; font-size:.75rem; font-weight:600; padding:10px 2px; border-radius:12px; border:1px solid var(--app-line); }
.neu{ animation:ziffer .22s var(--ease); }
@keyframes ziffer{ from{ opacity:0; transform:translateY(-35%); } }
.tipp{ animation:tipp .26s var(--ease); }
@keyframes tipp{ 40%{ transform:scale(.96); } }
@media (max-width:400px){ .live{ height:560px; } }

/* ---------- Abschnitt Live: Glasstreifen ---------- */
.live-abschnitt{ background:var(--bg-2); }
.live-abschnitt .bild{ display:flex; justify-content:center; }

/* ---------- App-Fenster (Entwicklung) ---------- */
.fenster{ border-radius:20px; background:var(--app-bg); border:1px solid var(--app-line); overflow:hidden; box-shadow:var(--schatten); }
.leiste{ display:flex; align-items:center; gap:8px; height:40px; padding:0 16px; border-bottom:1px solid var(--app-line); }
.leiste i{ width:11px; height:11px; border-radius:50%; background:var(--app-line); }
.app{ display:grid; grid-template-columns:190px 1fr; color:var(--app-ink); }
.seite{ border-right:1px solid var(--app-line); padding:12px 10px; display:grid; gap:0; align-content:start; font-size:.875rem; }
.seite span{ padding:6px 12px; border-radius:10px; color:var(--app-muted); }
.seite em{ font-style:normal; font-size:.6875rem; font-weight:600; color:var(--app-muted); padding:10px 12px 2px; opacity:.8; }
.seite span.an{ background:var(--app-surface); color:var(--app-ink); box-shadow:inset 2px 0 0 var(--serie-1); }
.inhalt{ padding:22px 24px; display:grid; gap:16px; align-content:start; min-width:0; }
.inhalt h3{ font:700 1.375rem/1.2 var(--f-display); letter-spacing:-.02em; }
.fenster-panel{ display:grid; gap:12px; }
.knopf-app{ font-size:.75rem; font-weight:600; padding:6px 10px; border-radius:8px; border:1px solid var(--app-line); }
.auswahl{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:10px; }
.auswahl span{ font-size:.8125rem; padding:8px 10px; border-radius:10px; border:1px solid var(--app-line); background:var(--app-bg); min-width:0; }
.auswahl small{ display:block; font-size:.6875rem; color:var(--app-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.zoom{ display:flex; gap:6px; }
.zoom span{ font-size:.75rem; font-weight:600; padding:5px 9px; border-radius:8px; border:1px solid var(--app-line); color:var(--app-muted); }
.zoom span.an{ border-color:var(--serie-1); color:var(--serie-1); }
@media (max-width:480px){ .zoom{ display:none; } }
@media (max-width:860px){ .app{ grid-template-columns:1fr; } .seite{ display:none; } .auswahl{ grid-template-columns:1fr; } .inhalt{ padding:16px; } }

/* Moment: die Kurve zeichnet sich einmal, wenn das Fenster ins Bild kommt */
@media (prefers-reduced-motion: no-preference){
  .js .zeichnen{ clip-path:inset(0 100% 0 0); }
  .js .gezeichnet .zeichnen{ animation:zeichnen 1.5s var(--ease-io) .15s both; }
  @keyframes zeichnen{ from{ clip-path:inset(0 100% 0 0); } to{ clip-path:inset(0 0 0 0); } }
}

/* ---------- Stil ---------- */
.spirale{ padding:clamp(20px, 3vw, 36px); }
.spirale svg{ width:min(440px, 100%); margin-inline:auto; overflow:visible; }
.spirale .raster{ fill:none; stroke:var(--app-line); }
.spirale .achse-text{ fill:var(--app-muted); font:500 12px var(--f-text); }
.spirale{ display:grid; gap:12px; }
.spirale .beginn{ fill:none; stroke:var(--app-muted); stroke-width:2; stroke-dasharray:6 5; }
.spirale .jetzt{ fill:color-mix(in srgb, var(--serie-1) 16%, transparent); stroke:var(--serie-1); stroke-width:2.5; }
.spirale .legende i{ border-color:var(--serie-1); }
.spirale .legende i.gestr{ border-color:var(--app-muted); }
.chips{ display:flex; flex-wrap:wrap; gap:8px; margin:28px 0 0; padding:0; list-style:none; }
.chips li{ padding:7px 14px; border-radius:999px; border:1px solid var(--line-strong); font-size:.9375rem; color:var(--muted); }

/* ---------- Gemeinsam: Raster ---------- */
.raster4{ display:grid; gap:20px; }
@media (min-width:768px){ .raster4{ grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (min-width:1200px){ .raster4{ grid-template-columns:repeat(4, minmax(0,1fr)); } }
.funktion{ display:grid; gap:12px; align-content:start; padding:24px; border-radius:var(--r-l); background:var(--surface); border:1px solid var(--line); }
.titel{ display:flex; align-items:center; gap:8px; }
.titel .pro{ margin-left:0; }
.funktion > p{ color:var(--muted); font-size:1rem; }
.funktion .app-karte{ margin-top:8px; box-shadow:none; }

/* ---------- Tarife ---------- */
.tarife{ display:grid; gap:20px; }
@media (min-width:900px){ .tarife{ grid-template-columns:1fr 1fr; } }
.tarif{ display:grid; gap:20px; align-content:start; padding:clamp(24px, 3vw, 36px); border-radius:var(--r-l); background:var(--surface); border:1px solid var(--line); }
.tarif-pro{ border:1.5px solid var(--accent); }
.tarif-kopf{ display:flex; justify-content:space-between; align-items:baseline; gap:16px; flex-wrap:wrap; }
.tarif-kopf h3{ font-size:1.25rem; }
.preis{ font:700 2.25rem/1 var(--f-display); letter-spacing:-.02em; }
.preis small{ font:500 1rem var(--f-text); color:var(--muted); letter-spacing:0; }
.tarif ul{ list-style:none; margin:0; padding:0; display:grid; gap:12px; }
.tarif li{ display:grid; grid-template-columns:22px 1fr; gap:10px; color:var(--muted); }
.tarif li svg{ width:20px; height:20px; margin-top:3px; color:var(--accent); }
.kleingedruckt{ font-size:.875rem; color:var(--muted); }

/* ---------- Fragen ---------- */
.fragen{ max-width:none; }
.fragen details{ border-top:1px solid var(--line-strong); }
.fragen details:last-child{ border-bottom:1px solid var(--line-strong); }
.fragen summary{ list-style:none; cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:24px; padding:22px 0; font:600 1.125rem/1.35 var(--f-text); }
.fragen summary::-webkit-details-marker{ display:none; }
.fragen summary svg{ flex:none; width:22px; height:22px; color:var(--muted); transition:transform .2s var(--ease); }
.fragen details[open] summary svg{ transform:rotate(45deg); color:var(--accent); }
.fragen .antwort{ padding:0 0 24px; color:var(--muted); max-width:64ch; }
@media (prefers-reduced-motion: no-preference){ .fragen details[open] .antwort{ animation:blende .2s var(--ease); } }
@keyframes blende{ from{ opacity:0; } }
@media (prefers-reduced-motion: reduce){ .fragen summary svg{ transition:none; } }

/* ---------- Schluss und Fuß ---------- */
.schluss{ text-align:left; overflow:hidden; isolation:isolate; }
.schluss::before{ content:""; position:absolute; inset:0; z-index:-1; background:repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), var(--fuge) calc(12.5% - 1px) 12.5%), radial-gradient(40% 60% at 50% 100%, var(--licht), transparent 70%); }
.schluss .wrap{ display:grid; justify-items:start; gap:28px; }
.schluss h2{ max-width:16ch; }
.fuss{ border-top:1px solid var(--line); padding-block:56px calc(36px + env(safe-area-inset-bottom)); font-size:.9375rem; color:var(--muted); }
.fuss-raster{ display:grid; gap:32px; }
@media (min-width:768px){ .fuss-raster{ grid-template-columns:repeat(12, minmax(0,1fr)); column-gap:24px; } .fuss-raster > :first-child{ grid-column:1 / 6; } .fuss-raster > :last-child{ grid-column:6 / -1; } }
.fuss h2{ font:600 .9375rem/1.4 var(--f-text); color:var(--ink); letter-spacing:0; margin-bottom:10px; }
.fuss ul{ list-style:none; margin:0; padding:0; display:grid; }
.fuss a{ display:inline-block; padding:10px 0; text-decoration:none; color:var(--muted); background:linear-gradient(currentColor,currentColor) 0 calc(100% - 8px) / 0 1px no-repeat; transition:background-size .22s var(--ease), color .16s ease; }
.fuss a:hover{ color:var(--ink); background-size:100% 1px; }
.fuss .marke svg{ height:24px; }
.distanz{ margin-top:40px; padding-top:24px; border-top:1px solid var(--line); font-size:.875rem; }

/* ---------- Auftritt des Hero beim Laden ---------- */
@media (prefers-reduced-motion: no-preference){
  [data-enter] > *{ transition:opacity .7s var(--ease), transform .7s var(--ease); }
  @starting-style{ [data-enter] > *{ opacity:0; transform:translateY(14px); } }
  [data-enter] > :nth-child(2){ transition-delay:.08s; } [data-enter] > :nth-child(3){ transition-delay:.14s; } [data-enter] > :nth-child(4){ transition-delay:.2s; }
}
@media (prefers-reduced-motion: reduce){ .neu, .tipp{ animation:none; } }

/* Kennzeichen Prototyp (nicht Teil der Gestaltung) */
.prototyp{ position:fixed; left:12px; bottom:12px; z-index:40; font:500 12px/1.3 system-ui, sans-serif; padding:6px 10px; border-radius:8px; background:rgba(0,0,0,.7); color:#fff; pointer-events:none; }

/* Nachbauten aus App-Markup, App-CSS und Chart.js der App (app-ansichten/), maßstäblich verkleinert */
.ansicht{ position:relative; overflow:hidden; aspect-ratio:var(--seiten, 16 / 10); }
.ansicht iframe{ position:absolute; top:0; left:0; border:0; transform-origin:0 0; transform:scale(var(--mass, 1)); background:transparent; }

/* ---------- Ansichten aus der App (Markup, CSS und Schriften der App, Beispieldaten) ---------- */
.geraet-ansicht{ height:auto; padding:0; display:block; gap:0; }
.app-teil{ min-width:0; }
/* Der Rahmen bekommt das Farbschema light, weil Chrome sonst im Nachtmodus einen deckenden
   weißen Hintergrund hinter den Nachbau malt (Ecken der App-Karten); auf das Innere wirkt das nicht. */
.ansicht iframe{ color-scheme:light; }
.funktion .app-teil{ margin-top:8px; }
.ansicht.gekappt{ -webkit-mask-image:linear-gradient(#000 80%, transparent); mask-image:linear-gradient(#000 80%, transparent); }
.nur-schmal, .bis-1100{ display:none; }
.handy-zentriert{ justify-content:center; }
@media (max-width:767px){ .nur-breit{ display:none; } .nur-schmal{ display:block; } .handy-zentriert{ display:flex; } }
@media (max-width:1099px){ .ab-1100{ display:none; } .bis-1100{ display:block; } }
/* Nachbauten nie über ihre Originalgröße vergrößern (Maßstab höchstens 1), sonst wirken sie gezoomt;
   --breite steht je Rahmen im Markup. */
.ansicht{ max-width:var(--breite, none); margin-inline:auto; }

/* Eigene Rechtsseiten der Webseite (datenschutz.html, impressum.html), 26.11.2026 */
.recht{ padding-block:48px 88px; }
.recht .wrap > *{ max-width:72ch; }
.recht h1{ font-size:clamp(1.75rem, 1.2rem + 3vw, 3.25rem); margin-bottom:12px; hyphens:auto; overflow-wrap:break-word; }
.recht h2{ font-size:1.375rem; line-height:1.25; letter-spacing:-.015em; margin:40px 0 12px; }
.recht p, .recht address{ margin:0 0 12px; }
.recht address{ font-style:normal; }
.recht ul{ margin:0 0 12px; padding-left:1.25em; }
.recht li{ margin-bottom:4px; }
.recht a{ text-underline-offset:3px; }
.recht-meta{ color:var(--muted); font-size:.9375rem; }
.kopf-rechts .zurueck{ display:inline-flex; }
