/* ============================================================
   HyperShot – Peacock Feather
   Live dunkel (Kamera-Anmutung), Auswertung hell (Creme),
   Apple-Anmutung: Weißraum, weiche Schatten, runde Karten.
   ============================================================ */
:root {
  --indigo: #4D52B4;
  --indigo-tief: #3B3F94;
  --blau: #4E9CE8;
  --tuerkis: #70D6C5;
  --gruen: #CAE5BC;
  --creme: #E1EDD4;
  --dunkel: #16182E;
  --koralle: #E2574C;
  --tinte: #1C1E33;
  --leise: #6A6F8E;
  --karte-bg: #FFFFFF;
  --radius: 18px;
  --radius-klein: 12px;
  --schatten: 0 10px 30px rgba(22, 24, 46, 0.10), 0 2px 6px rgba(22, 24, 46, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --safe-oben: env(safe-area-inset-top, 0px);
  --safe-unten: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--tinte);
  background: var(--dunkel);
  overscroll-behavior: none;
}
#screen { min-height: 100%; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
button { font-family: inherit; }
img { display: block; max-width: 100%; }

/* ---------- Knöpfe ---------- */
.btn {
  border: 0; cursor: pointer; font-weight: 600; font-size: 16px;
  padding: 12px 20px; border-radius: var(--radius-klein);
  transition: transform 0.06s ease, filter 0.15s ease, opacity 0.15s;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn-primaer { background: var(--indigo); color: #fff; box-shadow: 0 6px 18px rgba(77, 82, 180, 0.35); }
.btn-primaer:hover { filter: brightness(1.07); }
.btn-still { background: rgba(22, 24, 46, 0.07); color: var(--tinte); }
.btn-gefahr { background: var(--koralle); color: #fff; }
.btn-gefahr-dunkel { background: rgba(226, 87, 76, 0.92); color: #fff; }
.btn-glas { background: rgba(255, 255, 255, 0.14); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glas:hover { background: rgba(255, 255, 255, 0.22); }
.btn-gross { font-size: 18px; padding: 16px 28px; border-radius: 16px; }
.btn-klein { font-size: 14px; padding: 8px 14px; }
.btn-breit { width: 100%; }

/* ---------- Formulare ---------- */
label { display: block; font-size: 14px; font-weight: 600; color: var(--leise); }
label small { font-weight: 500; color: var(--blau); }
input, select {
  width: 100%; margin-top: 6px; font-size: 17px; font-family: inherit;
  padding: 12px 14px; border-radius: var(--radius-klein);
  border: 1.5px solid rgba(22, 24, 46, 0.12); background: #fff; color: var(--tinte);
  appearance: none; -webkit-appearance: none;
}
input:focus, select:focus { outline: none; border-color: var(--blau); box-shadow: 0 0 0 3px rgba(78, 156, 232, 0.18); }
.form-stapel { display: grid; gap: 14px; justify-items: start; }
.form-stapel label { width: 100%; }

/* ---------- Karten, Badges ---------- */
.karte { background: var(--karte-bg); border-radius: var(--radius); box-shadow: var(--schatten); }
.badge {
  display: inline-block; font-weight: 700; font-size: 14px; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: 999px;
}
.badge-tor { background: var(--gruen); color: #2F5226; }
.badge-vorbei { background: rgba(22, 24, 46, 0.08); color: var(--leise); }
.badge-mini { font-size: 11px; padding: 3px 8px; }

/* ---------- Toasts ---------- */
#toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(86px + var(--safe-unten)); z-index: 90; display: grid; gap: 8px; width: min(92vw, 440px); pointer-events: none; }
.toast {
  background: rgba(22, 24, 46, 0.92); color: #fff; padding: 12px 18px;
  border-radius: 14px; font-size: 15px; text-align: center;
  opacity: 0; translate: 0 8px; transition: 0.3s ease;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.toast.zeigen { opacity: 1; translate: 0 0; }
.toast-warn { background: rgba(226, 87, 76, 0.94); }

/* ---------- Dialog ---------- */
.dialog-hintergrund {
  position: fixed; inset: 0; z-index: 80; background: rgba(22, 24, 46, 0.45);
  display: grid; place-items: center; padding: 20px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.dialog { max-width: 380px; padding: 24px; }
.dialog h3 { font-size: 19px; margin-bottom: 8px; }
.dialog p { margin: 0 0 18px; color: var(--leise); line-height: 1.45; }
.dialog-knoepfe { display: flex; gap: 10px; justify-content: flex-end; }

/* ---------- Spinner ---------- */
.laden { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 40px; color: var(--leise); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(77, 82, 180, 0.2); border-top-color: var(--indigo); animation: drehen 0.8s linear infinite; }
@keyframes drehen { to { transform: rotate(360deg); } }

/* ---------- Tab-Leiste ---------- */
#tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-around;
  padding: 6px 8px calc(6px + var(--safe-unten));
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(22, 24, 46, 0.08);
}
body.session-aktiv #tabbar, body.kalib-aktiv #tabbar { display: none; } /* modaler Flow */
.tab {
  background: none; border: 0; cursor: pointer; color: var(--leise);
  display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 600;
  padding: 6px 18px; border-radius: 12px;
}
.tab svg { width: 24px; height: 24px; }
.tab.aktiv { color: var(--blau); }

/* ============================================================
   Login
   ============================================================ */
.login-seite {
  min-height: 100dvh; display: grid; place-items: center; align-content: center;
  background: linear-gradient(160deg, var(--dunkel) 0%, #232858 60%, var(--indigo-tief) 100%);
  padding: 24px;
}
.login-karte { width: min(100%, 380px); padding: 36px 30px; text-align: center; }
.login-karte .logo { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 17px; box-shadow: 0 10px 26px rgba(77, 82, 180, 0.45); }
.login-karte h1 { font-size: 30px; color: var(--indigo); }
.login-sub { color: var(--leise); margin: 6px 0 24px; }
.login-form { display: grid; gap: 14px; text-align: left; }
.login-fehler { color: var(--koralle); font-size: 14px; font-weight: 600; }
.login-hinweis { font-size: 13px; color: var(--leise); margin: 18px 0 0; }
.login-version { text-align: center; color: rgba(255, 255, 255, 0.45); font-size: 12px; margin-top: 18px; }
.seite .login-version { color: var(--leise); }

/* ============================================================
   Live-Screen (dunkel)
   ============================================================ */
.live { height: 100dvh; background: var(--dunkel); overflow: hidden; }
.live-haupt { height: 100%; display: grid; grid-template-columns: 1fr; }
.buehne { position: relative; height: 100%; overflow: hidden; background: #0D0F22; }
.buehne video, .buehne #freeze, .buehne #overlay {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.buehne video, .buehne #freeze { object-fit: contain; }
#overlay { touch-action: none; z-index: 5; }
#freeze { z-index: 2; background: #0D0F22; }

.statusleiste {
  position: absolute; top: 0; left: 0; right: 0; z-index: 35; /* bleibt über dem Replay */
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: calc(10px + var(--safe-oben)) 14px 10px;
  background: linear-gradient(rgba(13, 15, 34, 0.75), transparent);
  color: #fff;
}
.status-links { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; min-width: 0; }
.status-links #statTitel { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.status-links #statSchuesse { color: var(--tuerkis); font-size: 14px; }
.status-rechts { display: flex; align-items: center; gap: 8px; }
.rec-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--koralle); animation: pulsieren 1.6s ease infinite; }
@keyframes pulsieren { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.quellwahl {
  width: auto; margin: 0; font-size: 13px; padding: 7px 10px;
  background: rgba(255, 255, 255, 0.14); color: #fff; border: 0; border-radius: 10px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); max-width: 44vw;
}
.quellwahl option { color: var(--tinte); }

.chip {
  position: absolute; z-index: 10; left: 50%; transform: translateX(-50%);
  top: calc(58px + var(--safe-oben));
  background: rgba(22, 24, 46, 0.66); color: #fff;
  padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
}
.chip-bereit { background: rgba(112, 214, 197, 0.22); color: var(--tuerkis); box-shadow: 0 0 0 1.5px rgba(112, 214, 197, 0.5) inset; }
.chip-flug { background: rgba(202, 229, 188, 0.25); color: var(--gruen); }
.chip-unten { top: auto; bottom: calc(22px + var(--safe-unten)); }

/* Frontkamera-Hinweis (dezent, unter der Statusleiste) */
.front-banner {
  position: absolute; z-index: 12; left: 50%; transform: translateX(-50%);
  top: calc(58px + var(--safe-oben));
  display: flex; align-items: center; gap: 12px;
  max-width: min(92vw, 520px);
  background: rgba(22, 24, 46, 0.72); color: rgba(255, 255, 255, 0.9);
  padding: 8px 10px 8px 16px; border-radius: 999px; font-size: 13.5px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

/* Querformat-Hinweis: nur Touch-Geräte im Hochformat, nie auf Desktop */
.dreh-overlay {
  display: none; position: absolute; inset: 0; z-index: 40;
  background: var(--dunkel); color: #fff;
  place-items: center; align-content: center; text-align: center;
  padding: 32px; gap: 6px;
}
.dreh-overlay .dreh-icon { width: 64px; height: 64px; margin: 0 auto 14px; color: var(--tuerkis); }
.dreh-overlay .dreh-icon svg { width: 100%; height: 100%; }
.dreh-overlay h2 { font-size: 22px; }
.dreh-overlay p { max-width: 420px; margin: 8px 0 0; color: rgba(255, 255, 255, 0.7); line-height: 1.5; font-size: 15px; }
.dreh-overlay .dreh-stativ { font-size: 13.5px; color: rgba(255, 255, 255, 0.45); }
@media (pointer: coarse) and (orientation: portrait) {
  .dreh-overlay { display: grid; }
}

.start-panel {
  position: absolute; inset: 0; z-index: 20;
  display: grid; place-items: end center;
  padding-bottom: calc(96px + var(--safe-unten));
  pointer-events: none;
}
.start-innen { display: grid; gap: 12px; justify-items: center; pointer-events: auto; }
.hell-text { color: #fff; }

/* Kalibrier-Panel: scrollbarer Inhalt, Aktions-Buttons bleiben immer sichtbar */
.kalib-panel {
  position: absolute; z-index: 20; left: 50%; transform: translateX(-50%);
  bottom: calc(10px + var(--safe-unten));
  width: min(94vw, 560px);
  display: flex; flex-direction: column;
  /* respektiert Statusleiste oben sowie Safe Areas – passt auf jede iPhone-Größe */
  max-height: calc(100dvh - 74px - var(--safe-oben) - var(--safe-unten));
  background: rgba(22, 24, 46, 0.82); color: #fff;
  border-radius: var(--radius);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.kalib-scroll {
  overflow-y: auto; -webkit-overflow-scrolling: touch; min-height: 0;
  padding: 16px 18px 6px;
  overscroll-behavior: contain;
}
.kalib-kopf { display: grid; gap: 4px; margin-bottom: 12px; }
.kalib-kopf b { color: var(--tuerkis); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.kalib-kopf span { font-size: 14.5px; line-height: 1.45; color: rgba(255, 255, 255, 0.85); }
.kalib-erklaerung { display: flex; gap: 14px; align-items: center; }
.kalib-erklaerung span { font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, 0.85); }
.ecken-skizze { flex: none; width: 118px; height: auto; opacity: 0.95; }
.kalib-knoepfe {
  flex: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end;
  padding: 10px 18px calc(12px);
  background: rgba(22, 24, 46, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.kalib-form label { color: rgba(255, 255, 255, 0.75); }
.kalib-form input, .kalib-form select { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.18); color: #fff; }
.kalib-form select option { color: var(--tinte); }
.kalib-form { display: grid; gap: 10px; }
.kalib-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feld-hinweis { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 400; line-height: 1.45; color: rgba(255, 255, 255, 0.6); }

/* Schützen-Schnellauswahl */
.schuetzen-block { display: grid; gap: 8px; }
.chips-reihe { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-wahl {
  border: 1.5px solid rgba(255, 255, 255, 0.25); background: transparent; color: #fff;
  font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 999px; cursor: pointer;
}
.chip-wahl.an { background: var(--blau); border-color: var(--blau); }
.chip-wahl.chip-neu { border-style: dashed; opacity: 0.85; }
.schuetze-neu { display: grid; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); }
.schuetze-neu-knoepfe { display: flex; gap: 8px; align-items: flex-end; justify-content: flex-end; }

/* Replay */
.replay-wrap { position: absolute; inset: 0; z-index: 30; background: #0D0F22; }
.player { position: absolute; inset: 0; display: grid; }
.player-buehne { position: relative; overflow: hidden; }
.player-buehne video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.player-trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.player-tempo {
  position: absolute; top: calc(64px + var(--safe-oben)); right: 14px;
  background: rgba(255, 255, 255, 0.16); border: 0; color: #fff; font-weight: 700; font-size: 15px;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.player-stats {
  position: absolute; z-index: 5; left: 50%; transform: translateX(-50%);
  bottom: calc(48px + var(--safe-unten));
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center;
  background: rgba(22, 24, 46, 0.72); color: #fff;
  padding: 12px 22px; border-radius: 20px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  max-width: 92vw;
}
.stat-kmh { display: flex; align-items: baseline; gap: 6px; }
.stat-kmh .zahl { font-family: var(--mono); font-size: 44px; font-weight: 700; line-height: 1; color: #fff; }
.stat-kmh .einheit { color: var(--tuerkis); font-weight: 600; }
.stat-winkel { font-size: 13.5px; color: rgba(255, 255, 255, 0.8); font-family: var(--mono); }
.player-fehler { color: #fff; opacity: 0.8; padding: 20px; text-align: center; }
.replay-hinweis {
  position: absolute; z-index: 5; left: 50%; transform: translateX(-50%);
  bottom: calc(16px + var(--safe-unten));
  color: rgba(255, 255, 255, 0.55); font-size: 12.5px; pointer-events: none;
}

/* Seitenpanel (iPad/Laptop) */
.live-panel { display: none; }

/* ============================================================
   Helle Auswertungsseiten
   ============================================================ */
.seite {
  min-height: 100dvh; background: var(--creme);
  padding: calc(18px + var(--safe-oben)) 18px calc(96px + var(--safe-unten));
}
.seiten-kopf { max-width: 760px; margin: 0 auto 18px; }
.seiten-kopf h1 { font-size: 30px; color: var(--tinte); }
.seiten-kopf p { color: var(--leise); margin: 6px 0 0; }
.zurueck { background: none; border: 0; color: var(--blau); font-size: 16px; font-weight: 600; padding: 0 0 8px; cursor: pointer; }
.leise { color: var(--leise); }
.abschnitt { max-width: 760px; margin: 0 auto 18px; }
.karte.abschnitt { padding: 20px; }
.karte.abschnitt h2 { font-size: 18px; margin-bottom: 14px; }
.unterzeile { font-size: 15px; margin: 18px 0 8px; }
.leer-karte { max-width: 760px; margin: 0 auto; padding: 36px; text-align: center; display: grid; gap: 14px; justify-items: center; color: var(--leise); }

/* KPI-Reihe */
.kpi-reihe { max-width: 760px; margin: 0 auto 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { padding: 14px 8px; text-align: center; display: grid; gap: 2px; }
.kpi .zahl { font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--indigo); }
.kpi label { font-size: 12px; }

/* Session-Karten im Archiv */
.session-karte {
  width: 100%; max-width: 760px; margin: 0 auto 12px; display: flex; align-items: center; gap: 14px;
  border: 0; text-align: left; cursor: pointer; padding: 12px;
}
.session-thumb { width: 86px; height: 60px; border-radius: 12px; overflow: hidden; background: var(--indigo); flex: none; }
.session-thumb img { width: 100%; height: 100%; object-fit: cover; }
.session-thumb-platzhalter { width: 100%; height: 100%; display: grid; place-items: center; }
.session-thumb-platzhalter svg { width: 26px; height: 26px; }
.session-infos { display: grid; gap: 3px; min-width: 0; }
.session-infos b { font-size: 16.5px; }
.session-datum { color: var(--leise); font-size: 13.5px; }
.session-zahlen { display: flex; gap: 12px; color: var(--indigo); font-size: 13px; font-weight: 600; }
.karte-pfeil { margin-left: auto; color: var(--leise); font-size: 26px; }

/* Tabelle */
.tabelle-scroll { overflow-x: auto; margin: 0 -6px; }
.schuss-tabelle { width: 100%; border-collapse: collapse; font-size: 15px; }
.schuss-tabelle th { text-align: left; font-size: 12px; color: var(--leise); font-weight: 600; padding: 8px 10px; border-bottom: 1.5px solid rgba(22, 24, 46, 0.08); }
.schuss-tabelle td { padding: 10px; border-bottom: 1px solid rgba(22, 24, 46, 0.06); }
.schuss-tabelle .re { text-align: right; }
.kmh-zelle { font-weight: 700; color: var(--indigo); }
.abspielen {
  background: var(--indigo); color: #fff; border: 0; width: 34px; height: 34px;
  border-radius: 50%; cursor: pointer; font-size: 13px;
}
.zeile-loeschen { background: none; border: 0; color: var(--leise); font-size: 20px; cursor: pointer; padding: 4px 8px; }
.zeile-loeschen:hover { color: var(--koralle); }

/* Charts */
.chart { width: 100%; height: auto; }
.chart-tick { font-family: var(--mono); font-size: 11px; fill: var(--leise); }
.chart-max { font-family: var(--mono); font-size: 13px; font-weight: 700; fill: var(--indigo); }
.chart-leer { color: var(--leise); padding: 18px 0; }
.trefferbild { width: 100%; height: auto; }
.legende { display: flex; gap: 18px; align-items: center; margin-top: 10px; font-size: 13.5px; color: var(--leise); }
.legende .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.dot-tor { background: var(--gruen); box-shadow: 0 0 0 1.5px #fff inset; border: 1px solid rgba(22,24,46,0.15); }
.dot-vorbei { background: rgba(22, 24, 46, 0.28); }
.legende-masse { margin-left: auto; font-family: var(--mono); }

/* Speicher */
.speicher-balken { height: 12px; border-radius: 999px; background: rgba(22, 24, 46, 0.08); overflow: hidden; }
.speicher-fuellung { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blau), var(--tuerkis)); transition: width 0.4s ease; }
.speicher-fuellung.voll { background: linear-gradient(90deg, #E8A03C, var(--koralle)); }
.clip-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(22, 24, 46, 0.06); }
.gefahr-zone { display: grid; justify-items: center; padding-top: 6px; }

/* Player-Modal (Archiv) */
.modal-dunkel { background: rgba(13, 15, 34, 0.92); }
.modal-player { width: min(96vw, 860px); display: grid; gap: 12px; }
.modal-buehne { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #0D0F22; }
.modal-buehne .player { position: absolute; inset: 0; }
.modal-aktionen { display: flex; gap: 10px; justify-content: center; }

/* Live-Panel KPIs */
.panel-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 16px; }
.panel-kpis > div { background: rgba(255, 255, 255, 0.06); border-radius: 12px; padding: 10px 6px; text-align: center; display: grid; gap: 2px; }
.panel-kpis .zahl { font-size: 22px; font-weight: 700; color: var(--tuerkis); }
.panel-kpis label { font-size: 11px; color: rgba(255, 255, 255, 0.55); }
.panel-liste { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
.panel-liste li { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); font-size: 14px; }
.panel-kmh { margin-left: auto; color: var(--tuerkis); font-weight: 700; }

/* ---------- Trainer-Tipps (Session-Auswertung) ---------- */
.tipps-einordnung {
  padding: 12px 16px; border-radius: 12px; background: rgba(77, 82, 180, 0.07);
  border-left: 3px solid var(--indigo); font-size: 15px; line-height: 1.5; margin-bottom: 14px;
}
.tipp { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid rgba(22, 24, 46, 0.06); }
.tipp:last-child { border-bottom: 0; }
.tipp b { font-size: 14.5px; color: var(--indigo); }
.tipp span { font-size: 14.5px; line-height: 1.5; color: var(--tinte); }
.tipps-kopfzeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tipps-kopfzeile h2 { margin: 0; }

/* ---------- Schalter (Checkbox-Zeilen) ---------- */
.schalter-zeile {
  display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500;
  color: var(--tinte); padding: 4px 0; cursor: pointer; -webkit-user-select: none; user-select: none;
}
.schalter-zeile input { width: auto; margin: 0; width: 20px; height: 20px; accent-color: var(--indigo); }
.schalter-zeile small { display: block; font-weight: 400; color: var(--leise); }

/* ---------- Analyse-Export ---------- */
.export-modal { width: min(94vw, 720px); display: grid; gap: 12px; }
.export-modal textarea {
  width: 100%; height: min(44vh, 380px); resize: vertical;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.5;
  border-radius: var(--radius-klein); border: 1.5px solid rgba(22, 24, 46, 0.12);
  padding: 12px; color: var(--tinte); background: #fff;
}
.export-modal h3 { color: #fff; }
.export-modal .leise-hell { color: rgba(255, 255, 255, 0.65); font-size: 13.5px; line-height: 1.5; margin: 0; }
.export-aktionen { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* ---------- Tutorial ---------- */
.tutorial-hintergrund {
  position: fixed; inset: 0; z-index: 85; background: rgba(13, 15, 34, 0.78);
  display: grid; place-items: center; padding: 18px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.tutorial-karte {
  width: min(100%, 460px); padding: 26px 26px 20px; display: grid; gap: 6px;
  max-height: calc(100dvh - 40px); overflow-y: auto;
}
.tutorial-bild { color: var(--indigo); background: rgba(77, 82, 180, 0.06); border-radius: 14px; padding: 14px 18px; }
.tutorial-bild svg { width: 100%; height: auto; display: block; }
.tutorial-schritt { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blau); margin-top: 12px; }
.tutorial-karte h3 { font-size: 20px; }
.tutorial-karte p { margin: 4px 0 10px; color: var(--leise); line-height: 1.55; font-size: 15px; }
.tutorial-punkte { display: flex; gap: 6px; margin-bottom: 14px; }
.tutorial-punkte i { width: 7px; height: 7px; border-radius: 50%; background: rgba(22, 24, 46, 0.15); }
.tutorial-punkte i.an { background: var(--indigo); }
.tutorial-knoepfe { display: flex; gap: 8px; align-items: center; }
.tutorial-knoepfe .spacer { flex: 1; }

/* ---------- Clip-Status in der Schusstabelle ---------- */
.clip-status { font-size: 12px; color: var(--leise); white-space: nowrap; }

/* ============================================================
   Responsiv
   ============================================================ */
@media (min-width: 1000px) {
  .live-haupt { grid-template-columns: 1fr clamp(280px, 24vw, 400px); }
  .live-panel {
    display: flex; flex-direction: column; padding: 22px 20px;
    background: #1B1E3B; color: #fff; overflow: hidden;
  }
  .live-panel h3 { font-size: 16px; color: rgba(255, 255, 255, 0.85); }
  #tabbar { bottom: auto; top: 0; border-top: 0; border-bottom: 1px solid rgba(22, 24, 46, 0.08); justify-content: center; gap: 28px; }
  .tab { grid-auto-flow: column; align-items: center; gap: 7px; font-size: 13px; }
  .tab svg { width: 19px; height: 19px; }
  .seite { padding-top: 86px; }
  .live { height: 100vh; }
  body:not(.session-aktiv) .live-haupt { padding-top: 58px; }
  #toasts { bottom: 30px; }
}

@media (max-width: 640px) {
  .schmal-weg { display: none; }
  .kpi-reihe { grid-template-columns: repeat(2, 1fr); }
  .kpi .zahl { font-size: 22px; }
  .stat-kmh .zahl { font-size: 36px; }
  .kalib-reihe { grid-template-columns: 1fr; }
}

@media (display-mode: standalone) {
  body { -webkit-user-select: none; user-select: none; }
  input, select { -webkit-user-select: auto; user-select: auto; }
}
