/* ── Base ─────────────────────────────────────────────────────────────────── */
body {
  background-color: #0f1117;
  color: #e0e0e0;
}

.navbar {
  background-color: #16181f !important;
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background-color: #1a1d27;
  border-color: #2e3143 !important;
}

.season-card:hover {
  border-color: #f0a500 !important;
  background-color: #1f2233;
  transition: border-color 0.15s, background-color 0.15s;
}

/* ── Tables ───────────────────────────────────────────────────────────────── */
.table-dark {
  --bs-table-bg: #1a1d27;
  --bs-table-hover-bg: #22253a;
  --bs-table-border-color: #2e3143;
}

.ranking-table td, .ranking-table th {
  padding: 0.6rem 0.9rem;
  vertical-align: middle;
}

.rank-num {
  color: #6c757d;
  font-size: 0.85rem;
  width: 36px;
}

/* ── Medal rows ───────────────────────────────────────────────────────────── */
.rank-gold td:first-child  { border-left: 3px solid #f0a500; }
.rank-silver td:first-child { border-left: 3px solid #e2e6ea; }
.rank-bronze td:first-child { border-left: 3px solid #cd7f32; }

.rank-gold .fw-semibold    { color: #f0c040; }
.rank-silver .fw-semibold  { color: #f0f2f5; }
.rank-bronze .fw-semibold  { color: #cd9060; }

/* ── Rules list / Satzung ─────────────────────────────────────────────────── */
.rules-title {
  font-weight: 700;
  color: #f0c040;
}

.rules-subtitle {
  color: #8b93a8;
}

.rules-ornament {
  color: #f0a500;
  font-size: 1.1rem;
  margin-top: 0.5rem;
  opacity: 0.7;
}

.rules-list {
  list-style: none;
  padding-left: 0;
  counter-reset: none;
}

.rules-list li {
  margin-bottom: 1.15rem;
  padding-bottom: 1.15rem;
  line-height: 1.7;
  color: #d0d8e0;
  border-bottom: 1px solid rgba(46, 49, 67, 0.7);
}

.rules-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.rule-para {
  display: inline-block;
  font-weight: 700;
  color: #f0a500;
  margin-right: 0.35rem;
}

/* ── Breadcrumb ───────────────────────────────────────────────────────────── */
.breadcrumb {
  background: transparent;
  padding: 0;
  --bs-breadcrumb-divider-color: #555;
  --bs-breadcrumb-item-active-color: #adb5bd;
}

.breadcrumb-item a {
  color: #f0a500;
  text-decoration: none;
}

/* ── Forms ────────────────────────────────────────────────────────────────── */
.form-control, .form-select {
  background-color: #22253a;
  border-color: #3a3f58;
  color: #e0e0e0;
}

.form-control:focus, .form-select:focus {
  background-color: #22253a;
  border-color: #f0a500;
  color: #e0e0e0;
  box-shadow: 0 0 0 0.2rem rgba(240, 165, 0, 0.2);
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn-warning, .btn-warning:hover {
  color: #000;
}

/* ── List group ───────────────────────────────────────────────────────────── */
.list-group-item-dark {
  background-color: #1a1d27;
  color: #e0e0e0;
  border-color: #2e3143;
}

.list-group-item-dark:hover {
  background-color: #22253a;
  color: #f0c040;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer {
  border-color: #2e3143 !important;
}

/* ── Alert ────────────────────────────────────────────────────────────────── */
.alert-success {
  background-color: #0d2b1a;
  border-color: #155724;
  color: #75c98e;
}

/* ── Hintergrund-Canvas (Startseite) ─────────────────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Inhalt über dem Canvas halten */
.navbar, .container, footer {
  position: relative;
  z-index: 1;
}

/* ── Datensatz-Umschalter (Startseite + Dart) ────────────────────────────── */
.dataset-switcher .nav-link {
  color: #adb5bd;
  background-color: #1a1d27;
  border: 1px solid #2e3143;
  font-size: 0.9rem;
}

.dataset-switcher .nav-link:hover {
  color: #f0c040;
  border-color: #3a3f58;
}

.dataset-switcher .nav-link.active {
  color: #000;
  background-color: #f0a500;
  border-color: #f0a500;
  font-weight: 600;
}

/* ── Podium (Startseite) ─────────────────────────────────────────────────── */
.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.75rem;
}

.podium-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: clamp(90px, 26vw, 170px);
}

.podium-trophy {
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.podium-trophy-1 { color: #f0a500; font-size: 1.6rem; }
.podium-trophy-2 { color: #e2e6ea; }
.podium-trophy-3 { color: #cd7f32; }

.podium-name {
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-points {
  color: #adb5bd;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.podium-block {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.4rem;
  border-radius: 6px 6px 0 0;
  border: 1px solid #2e3143;
  border-bottom: none;
}

.podium-rank {
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.55);
}

.podium-1 {
  height: 120px;
  background: linear-gradient(180deg, #f0a500, #9a6a00);
}

.podium-2 {
  height: 88px;
  background: linear-gradient(180deg, #e2e6ea, #8d949c);
}

.podium-3 {
  height: 64px;
  background: linear-gradient(180deg, #cd7f32, #7d4d1e);
}
