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

/* ── Saison-Navigator ──────────────────────────────────── */
.season-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.season-nav-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}

.season-nav-btn:hover:not(:disabled) {
  border-color: #1e3a5f;
  color: #1e3a5f;
}

.season-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.season-nav-select {
  flex: 1;
  min-width: 160px;
  padding: 7px 11px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  color: #1e3a5f;
}

.season-nav-select:focus {
  outline: none;
  border-color: #1e3a5f;
}

.season-dates {
  font-size: 11px;
  color: #888;
}

.season-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: #d1fae5;
  color: #065f46;
}

/* ── Intern/Extern Toggle ──────────────────────────────── */
.scope-toggle {
  display: flex;
  gap: 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.scope-btn {
  padding: 6px 14px;
  border: none;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  transition: all 0.15s;
}

.scope-btn.active {
  background: #1e3a5f;
  color: #fff;
}

.scope-btn:not(.active):hover {
  background: #f5f5f5;
}

/* ── SVG Charts ────────────────────────────────────────── */
.chart-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

.chart-card-title {
  font-size: 12px;
  font-weight: 600;
  color: #1e3a5f;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.chart-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #666;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-line {
  width: 16px;
  height: 3px;
  border-radius: 2px;
  flex-shrink: 0;
}

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

@media(max-width: 700px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
}

svg.chart {
  width: 100%;
  display: block;
  overflow: visible;
}

/* ── Gruppen-Tabelle ───────────────────────────────────── */
.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.group-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 14px 16px;
  transition: box-shadow 0.15s;
}

.group-card:hover {
  box-shadow: 0 2px 10px rgba(30, 58, 95, 0.08);
}

.group-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 2px;
}

.group-short {
  font-size: 10px;
  color: #aaa;
  margin-bottom: 10px;
}

.group-stat {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #666;
  padding: 3px 0;
  border-bottom: 1px solid #f5f5f5;
}

.group-stat:last-child {
  border-bottom: none;
}

.group-stat-val {
  font-weight: 700;
  color: #1e3a5f;
}

/* ── Athleten-Rangliste ────────────────────────────────── */
.athlete-rank-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.athlete-rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 12px;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.1s;
}

.athlete-rank-row:last-child {
  border-bottom: none;
}

.athlete-rank-row:hover {
  background: #f9fbff;
}

.athlete-rank-pos {
  width: 24px;
  flex-shrink: 0;
}

.athlete-rank-name {
  flex: 1;
  font-weight: 600;
}

.athlete-rank-meta {
  font-size: 10px;
  color: #aaa;
}

.athlete-rank-val {
  font-weight: 700;
  color: #1e3a5f;
  font-size: 13px;
  min-width: 50px;
  text-align: right;
}

.athlete-rank-sub {
  font-size: 10px;
  color: #888;
  min-width: 50px;
  text-align: right;
}

/* ── Wettkampf-Kalender ────────────────────────────────── */
.meet-calendar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meet-cal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  font-size: 12px;
  transition: border-color 0.15s;
}

.meet-cal-item:hover {
  border-color: #1e3a5f;
}

.meet-cal-date {
  font-size: 11px;
  color: #888;
  min-width: 80px;
  flex-shrink: 0;
}

.meet-cal-name {
  flex: 1;
  font-weight: 600;
  color: #1e3a5f;
}

.meet-cal-city {
  font-size: 11px;
  color: #aaa;
}

.meet-cal-stats {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: #666;
  flex-shrink: 0;
}

.meet-cal-internal {
  border-left: 3px solid #0369a1;
}

.meet-cal-external {
  border-left: 3px solid #166534;
}

.meet-type-pill {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 600;
  flex-shrink: 0;
}

.meet-type-int {
  background: #e0f2fe;
  color: #0369a1;
}

.meet-type-ext {
  background: #dcfce7;
  color: #166534;
}

/* ── Erst-Starter ──────────────────────────────────────── */
.first-timers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}

.first-timer-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
}

.first-timer-name {
  font-size: 12px;
  font-weight: 600;
  color: #065f46;
}

.first-timer-meta {
  font-size: 10px;
  color: #888;
  margin-top: 2px;
}

/* ── Vergleich Vorjahr ─────────────────────────────────── */
.compare-grid-season {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.cmp-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 14px 16px;
}

.cmp-card-label {
  font-size: 10px;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
}

.cmp-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cmp-side-label {
  font-size: 10px;
  color: #aaa;
}

.cmp-side-val {
  font-size: 20px;
  font-weight: 800;
  color: #1e3a5f;
  line-height: 1;
}

.cmp-arrow {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin: 6px 0;
}

.cmp-arrow.up {
  color: #059669;
}

.cmp-arrow.down {
  color: #dc2626;
}

.cmp-arrow.eq {
  color: #aaa;
}