/* ═══════════════════════════════════════════════════════════
   athlet.css — Spezifisch für athlet.html
   ═══════════════════════════════════════════════════════════ */

/* ── Profil-Header ─────────────────────────────────────── */
.profile-header {
  background:#fff; border:1px solid #e8e8e8; border-radius:14px;
  padding:20px 22px; margin-bottom:14px;
  display:flex; align-items:center; gap:18px; flex-wrap:wrap;
}
.profile-name { font-size:20px; font-weight:700; color:#1e3a5f; margin-bottom:4px; }
.profile-meta { font-size:12px; color:#888; display:flex; gap:14px; flex-wrap:wrap; }
.profile-meta span { display:flex; align-items:center; gap:4px; }

/* ── Ergebnis-Tabelle ──────────────────────────────────── */
.results-table-wrap { background:#fff; border:1px solid #e8e8e8; border-radius:12px; overflow:hidden; }
.results-table-head {
  display:grid; grid-template-columns:90px 1fr 130px 70px 70px 70px 50px;
  padding:9px 14px; background:#f9f9f9;
  border-bottom:1px solid #eee; font-size:10px;
  font-weight:600; color:#888; text-transform:uppercase; letter-spacing:0.4px;
}
.result-row {
  display:grid; grid-template-columns:90px 1fr 130px 70px 70px 70px 50px;
  padding:9px 14px; border-bottom:1px solid #f5f5f5;
  font-size:12px; align-items:center; transition:background 0.1s;
}
.result-row:last-child { border-bottom:none; }
.result-row:hover { background:#f9fbff; }
.result-row.is-pb { background:#f0fff8; }
.result-row.is-pb:hover { background:#e8fff4; }
.result-time { font-weight:700; font-size:13px; color:#1e3a5f; }
.result-time.is-pb { color:#059669; }
.result-meet { font-size:11px; color:#888; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.result-pts  { font-size:11px; color:#666; }
@media(max-width:640px) {
  .results-table-head { grid-template-columns:80px 1fr 100px 55px 55px; }
  .results-table-head .col-age, .results-table-head .col-dsq { display:none; }
  .result-row { grid-template-columns:80px 1fr 100px 55px 55px; }
  .result-row .col-age, .result-row .col-dsq { display:none; }
}

/* ── Bestzeiten-Karten ─────────────────────────────────── */
.pb-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:10px; }
.pb-card {
  background:#fff; border:1px solid #e8e8e8; border-radius:12px;
  padding:14px 16px; transition:box-shadow 0.15s;
}
.pb-card:hover { box-shadow:0 2px 10px rgba(30,58,95,0.08); }
.pb-card.improved { border-left:3px solid #059669; }
.pb-discipline {
  font-size:11px; font-weight:600; color:#888; text-transform:uppercase;
  margin-bottom:6px; display:flex; justify-content:space-between;
}
.pb-time { font-size:22px; font-weight:800; color:#1e3a5f; margin-bottom:4px; }
.pb-time.scm { color:#0369a1; }
.pb-time.lcm { color:#166534; }
.pb-detail { font-size:11px; color:#aaa; }
.pb-delta { font-size:11px; font-weight:600; color:#059669; margin-top:4px; }
.pb-delta.worse { color:#dc2626; }

/* ── Zeitverlauf-Chart ─────────────────────────────────── */
.chart-wrap { background:#fff; border:1px solid #e8e8e8; border-radius:12px; padding:16px; margin-bottom:14px; overflow:hidden; }
.chart-title {
  font-size:12px; font-weight:600; color:#1e3a5f; margin-bottom:12px;
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px;
}
.chart-legend { display:flex; gap:12px; flex-wrap:wrap; }
.legend-dot { width:8px; height:8px; border-radius:50%; display:inline-block; margin-right:4px; }
svg.chart { width:100%; display:block; }

/* ── Saison-Tabelle ────────────────────────────────────── */
.season-table { width:100%; border-collapse:collapse; font-size:12px; }
.season-table th {
  text-align:left; padding:8px 12px; background:#f9f9f9;
  border-bottom:1px solid #eee; font-size:10px; font-weight:600;
  color:#888; text-transform:uppercase; letter-spacing:0.4px;
}
.season-table td { padding:9px 12px; border-bottom:1px solid #f5f5f5; }
.season-table tr:last-child td { border-bottom:none; }
.season-table tr:hover td { background:#f9fbff; }
.bar-cell { min-width:80px; }
.mini-bar-wrap { height:8px; background:#f0f0f0; border-radius:4px; overflow:hidden; }
.mini-bar { height:100%; border-radius:4px; background:#1e3a5f; }

/* ── SCM vs LCM Vergleich ──────────────────────────────── */
.compare-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:10px; }
.compare-card { background:#fff; border:1px solid #e8e8e8; border-radius:12px; padding:14px 16px; }
.compare-label { font-size:11px; font-weight:600; color:#888; text-transform:uppercase; margin-bottom:8px; }
.compare-row { display:flex; justify-content:space-between; align-items:center; padding:5px 0; border-bottom:1px solid #f5f5f5; }
.compare-row:last-child { border-bottom:none; }
.compare-course { font-size:11px; }
.compare-time { font-size:13px; font-weight:700; }
.compare-time.scm { color:#0369a1; }
.compare-time.lcm { color:#166534; }
.compare-diff { font-size:10px; color:#888; }

/* ── DSQ ───────────────────────────────────────────────── */
.dsq-summary { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:14px; }
.dsq-kpi { background:#fff; border:1px solid #e8e8e8; border-radius:12px; padding:12px 16px; text-align:center; flex:1; min-width:120px; }
.dsq-kpi .val { font-size:22px; font-weight:800; }
.dsq-kpi.red .val { color:#dc2626; }
.dsq-kpi.green .val { color:#059669; }
.dsq-kpi .lbl { font-size:11px; color:#888; margin-top:3px; }

/* ── Filter-Leiste ─────────────────────────────────────── */
.filter-bar { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:12px; align-items:center; }
.filter-bar select, .filter-bar input {
  padding:7px 11px; border:1px solid #ddd; border-radius:8px; font-size:12px; background:#fff; color:#111;
}
.filter-bar select:focus, .filter-bar input:focus { outline:none; border-color:#1e3a5f; }
.result-count { font-size:11px; color:#888; margin-left:auto; }

/* ── Disziplin-Chips (Chart-Selektor) ──────────────────── */
.disc-select-wrap { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:12px; }
.disc-chip { padding:5px 12px; border-radius:16px; border:1px solid #ddd; background:#fff; font-size:11px; cursor:pointer; transition:all 0.12s; white-space:nowrap; }
.disc-chip.on { background:#1e3a5f; color:#fff; border-color:#1e3a5f; }
