/* =========================================================
   SKIMIND – Dark Performance Theme
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Vorgegebene Hauptfarben */
  --bg: #080C12;          /* Hintergrund */
  --surface: #121A24;     /* Karten */
  --ice: #78D5FF;         /* Akzent (Eisblau) */
  --text: #ffffff;        /* Text Weiss */
  --text-soft: #c9d2dc;   /* Text Hellgrau */

  /* Abgeleitete Abstufungen */
  --bg-alt: #0b111a;
  --surface-2: #18222f;
  --surface-3: #222e3d;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);
  --muted: #8b97a5;

  --ice-strong: #4cc3f5;
  --ice-soft: rgba(120, 213, 255, 0.12);
  --ice-glow: rgba(120, 213, 255, 0.35);

  --amber: #f3b35b;
  --amber-soft: rgba(243, 179, 91, 0.12);
  --green: #5fe0a5;
  --green-soft: rgba(95, 224, 165, 0.12);
  --red: #ff6b6b;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 68px;
}

/* ---------- Basis ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

svg { display: block; }

:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.mono { font-family: var(--mono); font-size: 0.78em; letter-spacing: 0.04em; }
.muted { color: var(--muted); }

.gradient-text {
  background: linear-gradient(100deg, #ffffff 0%, var(--ice) 55%, var(--ice-strong) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(7, 9, 12, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 32px; height: 32px; }
.logo-bg { fill: var(--surface-2); stroke: var(--line-strong); }
.logo-peak {
  fill: none;
  stroke: var(--ice);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.logo-text { font-weight: 800; letter-spacing: 0.14em; font-size: 15px; }
.logo-text span { color: var(--ice); }

.main-nav { display: flex; gap: 4px; }

.nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-link.is-active { color: var(--text); background: var(--ice-soft); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 24px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), opacity 0.25s;
}
.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}
.btn svg.fill { fill: currentColor; stroke: none; width: 14px; height: 14px; }
.btn:hover svg:not(.fill) { transform: translateX(3px); }

.btn-primary {
  background: var(--ice);
  color: #04131c;
  box-shadow: 0 0 0 0 var(--ice-glow);
}
.btn-primary:hover {
  background: #8fdcff;
  box-shadow: 0 8px 30px -6px var(--ice-glow);
  transform: translateY(-1px);
}
.btn-primary:disabled {
  background: var(--surface-3);
  color: var(--muted);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--ice); background: var(--ice-soft); }

.btn-quiet { background: transparent; color: var(--muted); }
.btn-quiet:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn-small { padding: 8px 16px; font-size: 13px; }

.icon-btn {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.icon-btn:hover { border-color: var(--ice); background: var(--ice-soft); }
.icon-btn svg { width: 16px; height: 16px; fill: var(--text); }
.icon-btn .i-pause { display: none; }
.icon-btn.is-playing .i-play { display: none; }
.icon-btn.is-playing .i-pause { display: block; }

/* ---------- Status-Badges & Chips ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-dev { color: var(--amber); background: var(--amber-soft); }
.status-live { color: var(--green); background: var(--green-soft); }
.status-ok { color: var(--green); background: var(--green-soft); }
.status-warn { color: var(--amber); background: var(--amber-soft); }
.status-error { color: var(--red); background: rgba(255, 107, 107, 0.12); }
.status-off { color: var(--muted); background: rgba(255, 255, 255, 0.05); }
.status-beta,
.status-ready,
.status-loading { color: var(--ice); background: var(--ice-soft); }
.status-loading::before { animation: pulse 1s ease-in-out infinite; }

h2 .status { margin-left: 10px; transform: translateY(-4px); }

.demo-badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 6px;
  color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid rgba(243, 179, 91, 0.25);
  font-size: 10.5px;
  font-weight: 500;
}

.chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.chip:hover { border-color: var(--ice); color: var(--text); }
.chip[aria-pressed="true"] {
  background: var(--ice-soft);
  border-color: var(--ice);
  color: var(--ice);
}
.chip-static { cursor: default; color: var(--ice); border-color: rgba(111, 209, 255, 0.3); background: var(--ice-soft); }
.chip-static:hover { color: var(--ice); }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 12px var(--ice);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
  isolation: isolate;
}

/* Hintergrundbild (SVG-Illustration) + Verlauf für gute Lesbarkeit */
.hero-bg {
  position: absolute;
  inset: 0 0 auto 0;
  height: 860px;
  z-index: -2;
}
.hero-bg svg { width: 100%; height: 100%; }
.hero-overlay {
  position: absolute;
  inset: 0 0 auto 0;
  height: 860px;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(8, 12, 18, 0.85) 35%, rgba(8, 12, 18, 0.15) 70%, rgba(8, 12, 18, 0.3) 100%),
    linear-gradient(180deg, rgba(8, 12, 18, 0.2) 0%, transparent 40%, var(--bg) 100%);
}
.hero-track {
  fill: none;
  stroke: url(#trackGrad);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 10 10;
  animation: dash 2.5s linear infinite;
}
.hero-track-glow { fill: none; stroke: var(--ice); stroke-opacity: 0.12; stroke-width: 18; stroke-linecap: round; }
.stars circle { animation: twinkle 4s ease-in-out infinite; }
.stars circle:nth-child(2n) { animation-delay: 1.5s; }
.stars circle:nth-child(3n) { animation-delay: 2.7s; }
@keyframes twinkle { 50% { opacity: 0.25; } }
@keyframes dash { to { stroke-dashoffset: -80; } }

.hero-inner {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  margin-bottom: 70px;
}
.hero-copy { max-width: 640px; }
.hero h1 {
  margin: 22px 0 24px;
  font-size: clamp(42px, 6.4vw, 80px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}
.hero-lead {
  max-width: 540px;
  font-size: 18px;
  color: var(--text-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* ---------- Feature-Karten ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: rgba(18, 26, 36, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(111, 209, 255, 0.09), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(111, 209, 255, 0.3); }
.feature-card:hover::after { opacity: 1; }
.feature-card .status { align-self: flex-start; }
.feature-card h3 { font-size: 21px; }
.feature-card p { color: var(--muted); font-size: 15px; flex: 1; }

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--ice-soft);
  border: 1px solid rgba(111, 209, 255, 0.2);
}
.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--ice);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ice);
}
.feature-link svg {
  width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}
.feature-card:hover .feature-link svg { transform: translateX(4px); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 {
  margin: 16px 0 16px;
  font-size: clamp(32px, 4.4vw, 50px);
  font-weight: 800;
}
.section-lead { color: var(--text-soft); font-size: 17px; }

/* ---------- Disziplin ---------- */
.discipline { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; flex-wrap: wrap; }
.discipline-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.segmented {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.segment {
  padding: 10px 20px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.segment strong { font-family: var(--mono); font-size: 12px; margin-right: 6px; opacity: 0.8; }
.segment:hover { color: var(--text); }
.segment.is-active { background: var(--ice); color: #04131c; }
.segmented-small .segment { padding: 6px 12px; font-size: 13px; font-family: var(--mono); }

/* ---------- Upload ---------- */
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.upload-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.card-head { display: flex; align-items: center; gap: 14px; }
.card-head h3 { font-size: 18px; }
.card-head p { font-size: 14px; }
.slot-index {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--ice);
}

.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  aspect-ratio: 16 / 9;
  padding: 24px;
  text-align: center;
  border-radius: var(--radius);
  border: 1.5px dashed var(--line-strong);
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
.dropzone:hover,
.dropzone.is-dragover { border-color: var(--ice); background: rgba(111, 209, 255, 0.05); }
.dropzone.is-dragover { transform: scale(1.01); }

.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dropzone-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ice-soft);
  margin-bottom: 4px;
}
.dropzone-icon svg {
  width: 24px; height: 24px; fill: none; stroke: var(--ice); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.dropzone-title { font-weight: 500; }
.dropzone-title u { color: var(--ice); text-decoration-color: rgba(111, 209, 255, 0.4); text-underline-offset: 3px; }
.dropzone-hint { color: var(--muted); }

.preview { display: flex; flex-direction: column; gap: 12px; animation: fadeUp 0.5s var(--ease); }

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
}
.video-frame video { width: 100%; height: 100%; object-fit: contain; display: block; cursor: pointer; }
.video-overlay-btn {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(7, 9, 12, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.video-overlay-btn svg { width: 24px; height: 24px; fill: #fff; margin-left: 3px; }
.video-overlay-btn:hover { transform: translate(-50%, -50%) scale(1.08); }
.video-frame.is-playing .video-overlay-btn { opacity: 0; pointer-events: none; }

.player-bar { display: flex; align-items: center; gap: 12px; }
.time { color: var(--muted); white-space: nowrap; min-width: 92px; text-align: right; }

.seek {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--ice) var(--p, 0%), var(--surface-3) var(--p, 0%));
  cursor: pointer;
}
.seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 0;
  box-shadow: 0 0 0 4px rgba(111, 209, 255, 0.25);
}
.seek::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 0;
  box-shadow: 0 0 0 4px rgba(111, 209, 255, 0.25);
}

.file-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.file-info { display: flex; flex-direction: column; min-width: 0; }
.file-name { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-actions { display: flex; gap: 6px; flex: none; }

.upload-error {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.25);
  color: #ffb1b1;
  font-size: 14px;
}

.session-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.checklist { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.checklist li { display: flex; align-items: center; gap: 10px; transition: color 0.3s; }
.checklist strong { color: var(--text); font-weight: 600; }
.check {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: grid; place-items: center;
  transition: all 0.3s var(--ease);
}
.checklist li.is-done { color: var(--text); }
.checklist li.is-done .check { background: var(--ice); border-color: var(--ice); }
.checklist li.is-done .check::after {
  content: "";
  width: 5px; height: 9px;
  border: solid #04131c;
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}

/* ---------- Movement ---------- */
.movement-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: start; }

.stage-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.stage-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.skeleton-svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: #090c10;
  border: 1px solid var(--line);
}
.scan-grid line { stroke: rgba(111, 209, 255, 0.05); stroke-width: 1; }
.scanline { stroke: var(--ice); stroke-opacity: 0.25; stroke-width: 1; }
.snow { stroke: rgba(255, 255, 255, 0.12); stroke-width: 1.5; stroke-dasharray: 3 5; }
.trail { fill: none; stroke: var(--amber); stroke-opacity: 0.6; stroke-width: 1.5; stroke-dasharray: 2 4; }

.bone { stroke: var(--ice); stroke-width: 3.5; stroke-linecap: round; stroke-opacity: 0.85; transition: stroke 0.3s, stroke-width 0.3s; }
.bone-ski { stroke: #c9d4de; stroke-width: 4; stroke-opacity: 0.6; }
.bone-pole { stroke: #c9d4de; stroke-width: 1.5; stroke-opacity: 0.45; }
.joint { fill: #07090c; stroke: #fff; stroke-width: 2; transition: r 0.3s, fill 0.3s; }
.joint-head { fill: none; stroke: var(--ice); stroke-width: 3; }
.bone.is-hl { stroke: #fff; stroke-width: 5; stroke-opacity: 1; }
.joint.is-hl { fill: var(--ice); stroke: #fff; filter: drop-shadow(0 0 6px var(--ice)); }
.joint-head.is-hl { stroke: #fff; fill: rgba(111, 209, 255, 0.2); }

.stage-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.stage-legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg { display: inline-block; width: 16px; height: 3px; border-radius: 2px; }
.lg-bone { background: var(--ice); }
.lg-joint { width: 9px; height: 9px; border-radius: 50%; border: 2px solid #fff; }
.lg-trail { background: repeating-linear-gradient(90deg, var(--amber) 0 3px, transparent 3px 6px); }

.movement-side { display: flex; flex-direction: column; gap: 20px; }

.panel {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.panel-title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.panel-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-sub { font-size: 14px; margin: 6px 0 16px; }

.angle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.angle-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.angle-label { font-size: 12px; color: var(--muted); }
.angle-value { font-size: 24px; font-weight: 500; color: var(--text); letter-spacing: 0; }

.roadmap { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.roadmap li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text-soft);
}
.roadmap li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--amber);
}

/* ---------- AI Coaching ---------- */
.coach-status {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.coach-status-icon {
  flex: none;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
}
.coach-status-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; }
.coach-status-text { flex: 1; }
.coach-status-text h3 { font-size: 18px; margin-bottom: 6px; }
.coach-status-text p { font-size: 15px; max-width: 620px; }

.coach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }

.coach-card {
  position: relative;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  animation: fadeUp 0.6s var(--ease) both;
}
.coach-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.coach-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.coach-card-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}
.coach-card h3 { font-size: 17px; }
.coach-card .coach-q { font-size: 13px; color: var(--muted); }
/* Ergebnisfeld: bleibt leer, bis eine echte Analyse existiert */
.coach-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 14px;
}
.coach-result::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--muted);
  animation: pulse 2.4s ease-in-out infinite;
}
.coach-criteria-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.coach-criteria { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.coach-criteria li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-soft);
}

/* ---------- Pro Comparison ---------- */
.compare-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.toolbar-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }

.compare-pane {
  margin: 0;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.pane-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pane-tag {
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--ice-soft);
  color: var(--ice);
  font-weight: 600;
}
.pane-tag-ref { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.pane-name { font-weight: 600; font-size: 15px; }

.pane-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.015) 0 12px, transparent 12px 24px),
    #090c10;
  border: 1px solid var(--line);
}
.pane-frame video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.pane-frame:not(.has-video) video { visibility: hidden; }
.pane-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}
.pane-frame.has-video .pane-empty { display: none; }

.guides { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s var(--ease); }
.guides.is-on { opacity: 1; }
.guides i {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: rgba(111, 209, 255, 0.45);
}
.guides i:nth-child(1) { top: 25%; }
.guides i:nth-child(2) { top: 50%; }
.guides i:nth-child(3) { top: 75%; }
.guides b {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  background: rgba(111, 209, 255, 0.6);
  box-shadow: 0 0 10px var(--ice);
}
.pane-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.frame-step { display: flex; align-items: center; gap: 6px; }
.pane-time { margin-left: 6px; color: var(--muted); }
.sync-value { color: var(--ice); margin-left: 4px; }
.icon-btn-sm { width: 32px; height: 32px; font-size: 18px; line-height: 1; color: var(--text); }

.table-wrap { overflow-x: auto; }
.metrics-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
.metrics-table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-strong);
}
.metrics-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); color: var(--text-soft); }
.metrics-table td.mono { color: var(--muted); font-size: 13px; }
.metrics-table tr:last-child td { border-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 13px; }
.logo-small .logo-mark { width: 26px; height: 26px; }
.logo-small .logo-text { font-size: 13px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  font-size: 14px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Animationen ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: 1fr; }
  .movement-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px 20px;
    background: rgba(7, 9, 12, 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .main-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav-link { padding: 14px 16px; font-size: 16px; border-radius: 12px; }

  .upload-grid,
  .compare-grid,
  .coach-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .hero { padding: 48px 0 70px; }
  .hero-lead { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 32px; }
  h2 .status { display: flex; width: max-content; margin: 12px 0 0; transform: none; }
  .segmented:not(.segmented-small) { width: 100%; }
  .segmented:not(.segmented-small) .segment { flex: 1; padding: 10px 12px; }
  .file-meta { flex-direction: column; align-items: stretch; }
  .file-actions .btn { flex: 1; }
  .session-bar { flex-direction: column; align-items: stretch; }
  .coach-status { flex-direction: column; align-items: flex-start; }
  .coach-status .btn { width: 100%; }
  .compare-toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-group:first-child .btn { flex: 1; }
  .feature-card, .coach-card { padding: 22px; }
}

/* Fokus-Rahmen für die (visuell versteckten) Datei-Inputs */
.upload-card { position: relative; }
.file-input:focus-visible + .dropzone { outline: 2px solid var(--ice); outline-offset: 3px; }

/* ---------- Movement: Skeleton Tracking ---------- */

/* Umschalten zwischen Demo (kein Video) und Live (eigenes Video) */
#movement[data-mode="demo"] .only-live,
#movement[data-mode="live"] .only-demo { display: none !important; }

.stage-controls { display: flex; align-items: center; gap: 10px; }

.live-badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 6px;
  color: var(--ice);
  background: var(--ice-soft);
  border: 1px solid rgba(120, 213, 255, 0.28);
  font-size: 10.5px;
  font-weight: 500;
}

/* Ein/Aus-Schalter */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-soft);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.switch input:checked + .switch-track { background: var(--ice); border-color: var(--ice); box-shadow: 0 0 16px var(--ice-glow); }
.switch input:checked + .switch-track::after { transform: translateX(20px); background: #04131c; }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--ice); outline-offset: 3px; }
.switch input:disabled ~ * { opacity: 0.45; cursor: not-allowed; }
.switch-label { font-size: 14px; font-weight: 600; }

/* Canvas liegt transparent exakt über dem Video */
.tracker-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tracker-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(8, 12, 18, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 14px;
  color: var(--text-soft);
}
.spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--surface-3);
  border-top-color: var(--ice);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.tracker-bar { margin-top: 12px; }
.tracker-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.demo-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--ice-soft);
  border: 1px solid rgba(120, 213, 255, 0.2);
  font-size: 14px;
}

/* Erkennungsstatus */
.track-message { font-size: 14px; color: var(--text-soft); margin: 10px 0 16px; min-height: 2.6em; }
.track-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.track-meta div {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.track-meta dt { font-size: 11px; color: var(--muted); }
.track-meta dd { margin: 2px 0 0; font-size: 13px; font-weight: 500; }

/* Erkannte Körperpunkte */
.landmark-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.landmark-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 13px;
}
.lm-pills { display: flex; gap: 6px; }
.lm-pill {
  min-width: 64px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-align: center;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.lm-pill b { font-weight: 500; }
.lm-pill.is-ok { color: var(--ice); background: var(--ice-soft); border-color: rgba(120, 213, 255, 0.35); }
.lm-pill.is-weak { color: var(--amber); background: var(--amber-soft); border-color: rgba(243, 179, 91, 0.3); }

.lm-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.lm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lm-dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--line-strong); }
.lm-dot.is-ok { background: var(--ice); border-color: var(--ice); }
.lm-dot.is-weak { background: var(--amber); border-color: var(--amber); }

/* Live-Winkel */
.angle-card-wide { grid-column: 1 / -1; }
.angle-note { font-size: 11px; color: var(--muted); min-height: 1.4em; }
.angle-card.is-empty .angle-value { color: var(--muted); }

@media (max-width: 600px) {
  .stage-top { flex-wrap: wrap; }
  .track-meta { grid-template-columns: 1fr; }
}

/* ---------- Pro Comparison: Einzelbildvergleich ---------- */

/* Ablauf-Schritte */
.cmp-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0 0 22px;
  padding: 14px 20px;
  list-style: none;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  counter-reset: step;
}
.cmp-steps li { display: flex; align-items: center; gap: 10px; transition: color 0.3s; }
.cmp-steps li.is-done { color: var(--text); }
.cmp-steps li.is-done .check { background: var(--ice); border-color: var(--ice); }
.cmp-steps li.is-done .check::after {
  content: "";
  width: 5px; height: 9px;
  border: solid #04131c;
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}

/* Präzise Player */
.picker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.picker {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  outline: none;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.picker:focus-within { border-color: rgba(120, 213, 255, 0.45); box-shadow: 0 0 0 3px rgba(120, 213, 255, 0.08); }
.picker-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.picker-file { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picker-frame .pane-empty { background: var(--surface-2); }

.picker-readout { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.picker-clock { font-size: 26px; font-weight: 500; color: var(--text); letter-spacing: 0.02em; }
.picker-frameno { font-size: 13px; color: var(--muted); }

.picker-controls { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.picker-controls .step-10 { width: auto; padding: 0 10px; border-radius: 999px; font-family: var(--mono); font-size: 12px; }

.picker-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.picker-precision { font-size: 11px; color: var(--muted); }
.picker-precision.is-assumed { color: var(--amber); }
.picker-foot .btn-primary { letter-spacing: 0.08em; }
.picker-keys { font-size: 12px; margin: 12px 0 20px; }

/* Vergleichsansicht */
.cmp-board { margin-bottom: 20px; }
.cmp-board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.cmp-options { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.still-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.still { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.still-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.still-label { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; color: var(--ice); }
.still[data-slot="ref"] .still-label { color: var(--text); }

/* Beide Standbilder im gleichen Format → gleich gross, ohne Verzerrung */
.still-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0 12px, transparent 12px 24px),
    #06090d;
  border: 1px solid var(--line);
}
.still-frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.still-tip { font-size: 12px; color: var(--muted); }
.still-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.still-empty strong { color: var(--ice); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; }

.still-meta { display: grid; grid-template-columns: auto auto 1fr; gap: 8px; margin: 0; }
.still-meta div {
  min-width: 0;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.still-meta dt { font-size: 11px; color: var(--muted); }
.still-meta dd { margin: 2px 0 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.still-actions { display: flex; gap: 8px; }

/* Vergleichstabelle */
.cmp-table td small.cmp-hint { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.cmp-table td.mono { color: var(--text); font-size: 14px; white-space: nowrap; }
.cmp-na { color: var(--muted); font-size: 13px; }
.cmp-na small { font-family: var(--font); font-size: 11px; }
.cmp-diff { position: relative; display: inline-flex; flex-direction: column; gap: 5px; min-width: 70px; font-weight: 500; }
.cmp-diff i { display: block; height: 3px; border-radius: 3px; background: currentColor; opacity: 0.7; }
.cmp-diff.is-low { color: var(--ice); }
.cmp-diff.is-mid { color: var(--amber); }
.cmp-diff.is-high { color: var(--red); }
.cmp-summary { font-size: 12px; margin-top: 14px; }

@media (max-width: 860px) {
  .picker-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .still-grid { gap: 10px; }
  .still-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .still-label { white-space: nowrap; font-size: 12px; }
  .still-head .status { font-size: 9.5px; padding: 3px 8px; }
  .still-meta { grid-template-columns: 1fr; gap: 6px; }
  .still-meta div { padding: 6px 10px; }
  .still-meta dd { font-size: 12px; }
  .still-tip { font-size: 11px; }
  .still-actions { flex-direction: column; }
  .still-actions .btn { width: 100%; padding: 8px 10px; }
  .cmp-table { min-width: 0; font-size: 13px; }
  .cmp-table th, .cmp-table td { padding: 10px 6px; }
  .cmp-table th { font-size: 10px; letter-spacing: 0.04em; }
  .cmp-table td.mono { font-size: 12px; }
  .cmp-diff { min-width: 0; }
  .picker-clock { font-size: 22px; }
  .cmp-board-head { flex-direction: column; align-items: stretch; }
}

/* Pro Comparison → Coaching */
.cmp-board-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

/* ---------- AI Coaching ---------- */
.coach-disclaimer {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  margin-bottom: 32px;
  border-radius: var(--radius);
  background: var(--amber-soft);
  border: 1px solid rgba(243, 179, 91, 0.25);
  color: #f3d7ad;
  font-size: 14px;
}
.coach-disclaimer svg { flex: none; width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; }
.coach-disclaimer strong { color: var(--amber); }

.coach-block-head { margin-bottom: 14px; }
.coach-block-head p { font-size: 14px; margin-top: 4px; }

/* Tags: Messwert / Interpretation / Empfehlung */
.tag {
  display: inline-block;
  padding: 2px 7px;
  margin-right: 4px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 1px;
  white-space: nowrap;
}
.tag-measured { color: var(--ice); background: var(--ice-soft); }
.tag-interpretation { color: #c9b5ff; background: rgba(182, 156, 255, 0.12); }
.tag-recommendation { color: var(--green); background: var(--green-soft); }
.tag-muted { color: var(--muted); background: rgba(255, 255, 255, 0.06); }

/* Phasen */
.phase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.phase-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.phase-card.is-empty { border-style: dashed; border-color: var(--line-strong); }
.phase-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.phase-head h4 { margin: 0; font-size: 15px; }
.phase-nr {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--ice-soft);
  color: var(--ice);
  font-size: 11px;
}
.phase-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 150px;
  color: var(--muted);
  font-size: 14px;
}
.phase-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phase-thumb { margin: 0; }
.phase-thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.phase-thumb figcaption { display: flex; flex-direction: column; gap: 1px; margin-top: 6px; font-size: 11px; color: var(--muted); }
.phase-thumb figcaption b { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--text); }
.phase-actions { display: flex; gap: 6px; }

.coach-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.coach-legend { display: flex; gap: 6px; flex-wrap: wrap; }

/* Bericht */
.coach-report { display: flex; flex-direction: column; gap: 20px; animation: fadeUp 0.5s var(--ease); }
.coach-section {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 0;
}
.coach-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.coach-section-head h3 { font-size: 18px; letter-spacing: 0.01em; }
.coach-section-head h3 small { font-size: 12px; font-weight: 400; margin-left: 6px; }
.coach-letter {
  width: 30px; height: 30px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--ice-soft);
  color: var(--ice);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}
.coach-letter.is-green { background: var(--green-soft); color: var(--green); }
.coach-letter.is-amber { background: var(--amber-soft); color: var(--amber); }
.coach-letter.is-muted { background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.coach-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.diff { font-weight: 500; white-space: nowrap; }
.diff.is-similar { color: var(--green); }
.diff.is-moderate { color: var(--amber); }
.diff.is-large { color: var(--red); }

/* A. Overview */
.overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.ov-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.ov-card header { display: flex; justify-content: space-between; align-items: baseline; }
.ov-card h4 { margin: 0; font-size: 15px; }
.ov-bars { display: flex; flex-wrap: wrap; gap: 6px; }
.ov-pill { padding: 4px 9px; border-radius: 999px; font-size: 12px; border: 1px solid var(--line-strong); color: var(--text-soft); }
.ov-pill b { font-family: var(--mono); margin-right: 3px; }
.ov-pill.is-similar b { color: var(--green); }
.ov-pill.is-moderate b { color: var(--amber); }
.ov-pill.is-large b { color: var(--red); }
.ov-top { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 14px; }
.ov-top .muted { grid-column: 1 / -1; font-size: 11px; }
.ov-frames { font-size: 11px; line-height: 1.6; }
.ov-warn { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--amber); display: grid; gap: 4px; }
.ov-ok { font-size: 12.5px; color: var(--green); }

/* B./C. Befunde */
.finding-list { display: grid; gap: 10px; }
.finding {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  font-size: 13.5px;
  color: var(--text-soft);
}
.finding.is-similar { border-left-color: var(--green); }
.finding.is-moderate { border-left-color: var(--amber); }
.finding.is-large { border-left-color: var(--red); }
.finding p { margin-top: 6px; }
.finding-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--text); }
.finding-head .diff { margin-left: auto; }
.phase-chip { padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); font-size: 11px; color: var(--muted); }
.finding-bar { height: 4px; margin-top: 10px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.finding-bar i { display: block; height: 100%; border-radius: 4px; background: currentColor; }
.finding.is-large .finding-bar i { background: var(--red); }
.finding.is-moderate .finding-bar i { background: var(--amber); }
.finding-values { font-size: 11.5px; color: var(--muted); }
.finding-note { font-size: 12px; color: var(--amber); }

/* D. Fokus */
.focus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.focus-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(120, 213, 255, 0.07), transparent 60%), var(--surface-2);
  border: 1px solid rgba(120, 213, 255, 0.22);
  font-size: 13.5px;
  color: var(--text-soft);
}
.focus-card h4 { margin: 0; font-size: 16px; color: var(--text); }
.focus-nr { font-size: 22px; color: var(--ice); font-weight: 500; }
.focus-based { font-size: 12px; color: var(--muted); }
.focus-drills { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13px; }

/* E. Erklärungen */
.explain-list { display: grid; gap: 8px; }
.explain { border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.explain summary { cursor: pointer; padding: 12px 14px; font-size: 14px; font-weight: 500; list-style-position: inside; }
.explain summary .diff { margin-right: 6px; }
.explain-body { display: grid; gap: 10px; padding: 0 14px 14px; font-size: 13.5px; color: var(--text-soft); }
.explain-label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }

.coach-limits ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; color: var(--text-soft); }

.coach-data { padding: 14px 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.coach-data summary { cursor: pointer; font-weight: 500; }
.coach-data p { margin: 10px 0; font-size: 12.5px; }
.coach-data pre {
  max-height: 320px;
  overflow: auto;
  margin: 0;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: #05080c;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-soft);
}

@media (max-width: 1000px) {
  .phase-grid { grid-template-columns: 1fr; }
  .coach-two { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .coach-section { padding: 16px; }
  .cmp-board-foot .btn { width: 100%; }
}

/* ---------- Dashboard: Bisherige Analysen ---------- */
.history { margin-top: 20px; }
.history-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.panel-title-lg { font-size: 20px; font-weight: 700; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.stat-value { font-size: 26px; font-weight: 500; color: var(--text); letter-spacing: 0; }
.stat-label { font-size: 12px; color: var(--muted); }

.history-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.history-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
  animation: fadeUp 0.4s var(--ease);
}
.history-badge {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--ice-soft);
  color: var(--ice);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}
.history-main { min-width: 0; }
.history-title { font-size: 14px; font-weight: 600; }
.history-files {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-status { font-size: 12px; color: var(--amber); white-space: nowrap; }

.history-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 860px) {
  .hero { padding-top: 80px; }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(8, 12, 18, 0.55) 0%, rgba(8, 12, 18, 0.8) 55%, var(--bg) 100%);
  }
}

@media (max-width: 600px) {
  .hero-inner { min-height: 0; margin-bottom: 48px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .history-item { grid-template-columns: auto 1fr; }
  .history-status { grid-column: 2; }
  .history-head { flex-direction: column; }
  .pane-foot { flex-direction: column; align-items: stretch; }
}

/* Video bleibt auf grossen Bildschirmen beim Scrollen durch die Panels sichtbar */
@media (min-width: 1001px) {
  #movement[data-mode="live"] .stage-card { position: sticky; top: calc(var(--header-h) + 16px); }
}

/* =========================================================
   SKIMIND 3D PERFORMANCE LAYER
   Rein optische Ebene über dem bestehenden Design:
   Tiefe durch Schatten, Verläufe und Lichtkanten; Bewegung nur
   über transform/opacity (GPU-freundlich). Keine Layoutänderungen.
   ========================================================= */

:root {
  --bg: #05080c;                 /* tiefes Schwarz */
  --bg-alt: #080c12;
  --glow: #40e0ff;               /* dezentes Cyan für Leuchteffekte */
  --glow-soft: rgba(64, 224, 255, 0.18);

  /* Kartenoberflächen: Anthrazit mit subtilem Verlauf + Lichtkante oben */
  --card-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0) 120px),
    linear-gradient(155deg, #172130 0%, #111923 45%, #0c121a 100%);
  --card-bg-inner:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 60%),
    linear-gradient(160deg, #1b2533, #141c27);
  --card-border: rgba(255, 255, 255, 0.075);
  --card-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.35),
    0 24px 48px -28px rgba(0, 0, 0, 0.9);
  --card-shadow-hover:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 4px 10px rgba(0, 0, 0, 0.4),
    0 34px 60px -26px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(64, 224, 255, 0.16),
    0 0 32px -10px rgba(64, 224, 255, 0.28);
}

/* Hintergrund: tiefes Schwarz mit zwei sehr weichen Lichtquellen */
body { background: var(--bg); }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(64, 224, 255, 0.07), transparent 60%),
    radial-gradient(900px 600px at -10% 60%, rgba(120, 213, 255, 0.045), transparent 60%);
}
.section-alt { background: linear-gradient(180deg, rgba(8, 12, 18, 0.9), rgba(5, 8, 12, 0.6)); }

/* Sanfte Bereichsübergänge: leuchtende Trennlinie statt harter Kante */
.section { position: relative; border-top-color: transparent; }
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(120, 213, 255, 0.28), transparent);
}

/* ---------- Haupt-Karten ---------- */
.feature-card,
.upload-card,
.panel,
.stage-card,
.picker,
.coach-section,
.phase-card,
.session-bar,
.cmp-steps,
.coach-toolbar,
.coach-status,
.coach-data,
.compare-toolbar {
  background: var(--card-bg);
  border-color: var(--card-border);
  box-shadow: var(--card-shadow);
}
.phase-card.is-empty { background: linear-gradient(155deg, rgba(23, 33, 48, 0.5), rgba(12, 18, 26, 0.5)); box-shadow: none; }

/* Leichtes Glas nur dort, wo Inhalt dahinter liegt (Hero) */
.feature-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 140px),
    linear-gradient(155deg, rgba(23, 33, 48, 0.78), rgba(12, 18, 26, 0.86));
}

/* ---------- Innere Kacheln ---------- */
.ov-card,
.focus-card,
.stat,
.history-item,
.angle-card,
.finding,
.landmark-row,
.track-meta div,
.still-meta div,
.explain,
.phase-thumb img {
  border-color: var(--card-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 18px -12px rgba(0, 0, 0, 0.8);
}
.ov-card, .stat, .history-item, .angle-card, .landmark-row, .track-meta div, .still-meta div, .explain {
  background: var(--card-bg-inner);
}
.focus-card {
  background:
    radial-gradient(260px 120px at 0% 0%, rgba(64, 224, 255, 0.12), transparent 70%),
    var(--card-bg-inner);
}
.stat-value, .focus-nr { text-shadow: 0 0 18px rgba(64, 224, 255, 0.35); }
.stat-value { color: #fff; }

/* ---------- Hover: Karten heben sich leicht an ---------- */
.feature-card,
.phase-card,
.focus-card,
.ov-card,
.stat,
.history-item {
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease),
    opacity 0.9s var(--ease);
  will-change: transform;
}
@media (hover: hover) {
  .feature-card:hover,
  .phase-card:not(.is-empty):hover,
  .focus-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(64, 224, 255, 0.28);
  }
  .ov-card:hover,
  .stat:hover,
  .history-item:hover {
    transform: translateY(-2px);
    border-color: rgba(64, 224, 255, 0.22);
  }
  /* Grosse Arbeitsflächen (Videos) heben sich nicht – nur ein leichtes Leuchten */
  .upload-card:hover,
  .picker:hover,
  .stage-card:hover {
    border-color: rgba(64, 224, 255, 0.2);
  }
}

/* 3D-Neigung beim Darüberfahren (per JavaScript, nur Maus/Trackpad) */
.is-tilting {
  transform:
    perspective(1000px)
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg))
    translateY(-4px) !important;
  transition: transform 0.12s linear, box-shadow 0.35s var(--ease), border-color 0.35s var(--ease) !important;
}

/* ---------- Buttons mit Leuchteffekt ---------- */
.btn-primary {
  background: linear-gradient(180deg, #a6e6ff 0%, #78D5FF 45%, #54c4f2 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(0, 60, 90, 0.25),
    0 6px 18px -8px rgba(64, 224, 255, 0.55);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #bdeeff 0%, #8fdcff 45%, #63caf5 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 0 0 1px rgba(64, 224, 255, 0.35),
    0 10px 28px -8px rgba(64, 224, 255, 0.7),
    0 0 24px -6px rgba(64, 224, 255, 0.55);
}
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-primary:disabled { background: var(--surface-3); box-shadow: none; }
.btn-ghost { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.btn-ghost:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 18px -6px rgba(64, 224, 255, 0.45); }
.icon-btn { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 4px 10px -6px rgba(0, 0, 0, 0.8); }
.icon-btn:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 16px -4px rgba(64, 224, 255, 0.5); }
.segment.is-active,
.chip[aria-pressed="true"] { box-shadow: 0 0 16px -6px rgba(64, 224, 255, 0.6); }
.switch input:checked + .switch-track { box-shadow: 0 0 18px -2px rgba(64, 224, 255, 0.55); }

/* ---------- Analysemonitore (Video-Flächen) ---------- */
.video-frame,
.still-frame,
.skeleton-svg {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 0 4px #070a0f,
    0 0 0 5px rgba(255, 255, 255, 0.06),
    0 18px 36px -18px rgba(0, 0, 0, 0.95);
}
/* HUD-Ecken + feine Scanlines – klickt "durch" (pointer-events: none) */
.picker-frame::after,
.still-frame::after,
.tracker-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(var(--glow), var(--glow)) left 10px top 10px / 16px 1.5px no-repeat,
    linear-gradient(var(--glow), var(--glow)) left 10px top 10px / 1.5px 16px no-repeat,
    linear-gradient(var(--glow), var(--glow)) right 10px top 10px / 16px 1.5px no-repeat,
    linear-gradient(var(--glow), var(--glow)) right 10px top 10px / 1.5px 16px no-repeat,
    linear-gradient(var(--glow), var(--glow)) left 10px bottom 10px / 16px 1.5px no-repeat,
    linear-gradient(var(--glow), var(--glow)) left 10px bottom 10px / 1.5px 16px no-repeat,
    linear-gradient(var(--glow), var(--glow)) right 10px bottom 10px / 16px 1.5px no-repeat,
    linear-gradient(var(--glow), var(--glow)) right 10px bottom 10px / 1.5px 16px no-repeat,
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px);
  opacity: 0.55;
}
.picker:focus-within .picker-frame::after { opacity: 0.9; }

/* Monitor-Kopfzeile und Digitalanzeige */
.picker-head .pane-tag,
.still-label { text-shadow: 0 0 12px rgba(64, 224, 255, 0.35); }
.picker-readout {
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #05080c, #0a1018);
  border: 1px solid rgba(64, 224, 255, 0.12);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.picker-clock {
  color: #dff7ff;
  text-shadow: 0 0 14px rgba(64, 224, 255, 0.45);
  font-variant-numeric: tabular-nums;
}
.picker:focus-within {
  box-shadow: var(--card-shadow), 0 0 0 1px rgba(64, 224, 255, 0.3), 0 0 36px -12px rgba(64, 224, 255, 0.35);
}

/* Vergleichsbrett der Standbilder */
.cmp-board {
  background:
    radial-gradient(700px 200px at 50% 0%, rgba(64, 224, 255, 0.06), transparent 70%),
    var(--card-bg);
}

/* ---------- Kopfzeile: Glas mit Lichtkante ---------- */
.site-header {
  background: rgba(5, 8, 12, 0.68);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04), 0 10px 30px -20px rgba(0, 0, 0, 0.9);
}
.nav-link.is-active { box-shadow: inset 0 0 0 1px rgba(64, 224, 255, 0.22), 0 0 18px -8px rgba(64, 224, 255, 0.6); }
.logo-mark { filter: drop-shadow(0 0 8px rgba(64, 224, 255, 0.35)); }

/* ---------- Mobile & reduzierte Bewegung ---------- */
@media (max-width: 600px) {
  /* weniger Tiefe auf kleinen Bildschirmen → ruhiger und schneller */
  .video-frame, .still-frame, .skeleton-svg {
    box-shadow: 0 0 0 3px #070a0f, 0 0 0 4px rgba(255, 255, 255, 0.06);
  }
  .picker-clock { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .feature-card:hover,
  .phase-card:hover,
  .focus-card:hover,
  .ov-card:hover,
  .stat:hover,
  .history-item:hover,
  .is-tilting { transform: none !important; }
  .btn-primary:active { transform: none; }
}

/* =========================================================
   SKIMIND OWNER ACCESS
   ========================================================= */

.status-owner { color: var(--ice); background: var(--ice-soft); box-shadow: inset 0 0 0 1px rgba(120, 213, 255, 0.25); }

/* Kopfzeile: Navigation rechts, daneben der Owner-Knopf */
.header-inner { justify-content: flex-start; }
.main-nav { margin-left: auto; }
.nav-lock {
  width: 12px;
  height: 12px;
  margin-left: 4px;
  vertical-align: -1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.7;
}
.is-owner .nav-lock { display: none; }

.owner-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s;
}
.owner-toggle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.owner-toggle .i-unlocked { display: none; }
.owner-toggle.is-unlocked { color: var(--ice); border-color: rgba(64, 224, 255, 0.35); box-shadow: 0 0 16px -6px rgba(64, 224, 255, 0.6); }
.owner-toggle.is-unlocked .i-locked { display: none; }
.owner-toggle.is-unlocked .i-unlocked { display: block; }
.owner-toggle:hover { color: var(--text); border-color: rgba(64, 224, 255, 0.4); box-shadow: 0 0 18px -6px rgba(64, 224, 255, 0.55); }

/* Gesperrte Bereiche */
.owner-lock {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  background:
    radial-gradient(420px 160px at 0% 50%, rgba(64, 224, 255, 0.08), transparent 70%),
    var(--card-bg);
  box-shadow: var(--card-shadow);
}
.owner-lock-icon {
  flex: none;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(160deg, #1d2a3a, #0e151e);
  border: 1px solid rgba(64, 224, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 24px -8px rgba(64, 224, 255, 0.5);
}
.owner-lock-icon svg, .owner-dialog-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--ice); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.owner-lock-text { flex: 1; }
.owner-lock-text h3 { font-size: 18px; margin-bottom: 4px; }
.owner-lock-text p { font-size: 14px; }

/* Anmeldedialog */
.owner-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; perspective: 1200px; }
.owner-modal[hidden] { display: none; }
.owner-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 8, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.owner-dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 34px 30px 26px;
  border-radius: 24px;
  text-align: center;
  border: 1px solid rgba(64, 224, 255, 0.18);
  background:
    radial-gradient(360px 180px at 50% 0%, rgba(64, 224, 255, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 140px),
    linear-gradient(155deg, #18222f, #0b1118);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 40px 80px -30px rgba(0, 0, 0, 0.95),
    0 0 60px -20px rgba(64, 224, 255, 0.35);
  opacity: 0;
  transform: translateY(14px) rotateX(8deg) scale(0.97);
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}
.owner-modal.is-open .owner-backdrop { opacity: 1; }
.owner-modal.is-open .owner-dialog { opacity: 1; transform: none; }
body.owner-modal-open { overflow: hidden; }

.owner-close { position: absolute; top: 14px; right: 14px; font-size: 13px; color: var(--muted); }
.owner-dialog-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(160deg, #1f2d3e, #0d141c);
  border: 1px solid rgba(64, 224, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 30px -6px rgba(64, 224, 255, 0.55);
}
.owner-dialog h2 { font-size: 20px; letter-spacing: 0.14em; font-weight: 800; }
.owner-subtitle { margin: 6px 0 24px; color: var(--muted); font-size: 14px; }

.owner-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.owner-label { font-size: 12px; color: var(--muted); font-family: var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.owner-form input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: #05080c;
  color: var(--text);
  font: inherit;
  font-size: 16px; /* verhindert Zoom auf dem iPhone */
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.owner-form input[type="password"]:focus {
  outline: none;
  border-color: rgba(64, 224, 255, 0.6);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 0 3px rgba(64, 224, 255, 0.12);
}
.owner-submit { width: 100%; letter-spacing: 0.12em; margin-top: 4px; }
.owner-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: #ffb4b4;
  font-size: 13px;
}
.owner-form.is-shaking { animation: owner-shake 0.4s var(--ease); }
@keyframes owner-shake {
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}
.owner-local { display: grid; gap: 14px; font-size: 13.5px; color: var(--text-soft); }
.owner-note { margin-top: 18px; font-size: 12px; color: var(--muted); }

.race-placeholder .roadmap { margin-top: 10px; }

@media (max-width: 860px) {
  .owner-toggle { margin-left: auto; margin-right: 8px; }
}
@media (max-width: 600px) {
  .owner-toggle-label { display: none; }
  .owner-toggle { padding: 9px 11px; }
  .owner-lock { flex-direction: column; align-items: flex-start; padding: 22px; }
  .owner-lock .btn { width: 100%; }
  .owner-dialog { padding: 30px 20px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .owner-dialog, .owner-backdrop { transition: none; transform: none; }
  .owner-form.is-shaking { animation: none; }
}
