@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-main: #090a0f;
  --bg-surface: #12141d;
  --bg-elevated: #181b26;
  --bg-hover: rgba(225, 6, 0, 0.06);
  --border: #232736;
  --border-light: #2e3346;
  --red: #e10600;
  --red-hover: #ff1e17;
  --red-soft: rgba(225, 6, 0, 0.12);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  /* Podium & Fastest Lap Farben */
  --gold-bg: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  --gold-text: #111827;
  --silver-bg: linear-gradient(135deg, #e5e7eb 0%, #9ca3af 100%);
  --silver-text: #111827;
  --bronze-bg: linear-gradient(135deg, #d97706 0%, #92400e 100%);
  --bronze-text: #ffffff;
  --purple-bg: linear-gradient(135deg, #a855f7 0%, #6b21a8 100%);
  --purple-text: #ffffff;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 85% 0%, rgba(225, 6, 0, 0.12), transparent 35%),
    radial-gradient(circle at 15% 100%, rgba(225, 6, 0, 0.08), transparent 35%),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.012) 0px, rgba(255, 255, 255, 0.012) 1px, transparent 1px, transparent 16px);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

/* Header & Navigation */
.site-header {
  background: rgba(12, 14, 20, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, #7f1d1d 50%, var(--red) 100%);
}

.header-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
}

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(225, 6, 0, 0.35);
}

.brand-info h1 {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.brand-info h1 span {
  color: var(--red);
}

.brand-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: all 0.18s ease;
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  color: #fff;
  background: var(--red-soft);
  border: 1px solid rgba(225, 6, 0, 0.35);
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
}

.user-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

/* Main Content */
main {
  flex: 1;
  max-width: 1380px;
  width: 100%;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.page-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 0.2rem;
}

/* KPI / Status Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.kpi-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.kpi-value {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Cards & Panels */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.card-title::before {
  content: "";
  width: 4px;
  height: 18px;
  background: var(--red);
  border-radius: 2px;
}

/* Legend */
.legend-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.swatch.gold { background: var(--gold-