/* ════════════════════════════════════════════════════════════════════════════
   GERMAN RACERS — ENDURANCE BLUE THEME
   Präzise. Technisch. Electric Cyan Power.
   ════════════════════════════════════════════════════════════════════════════ */

:root {
  --bg:           #050505;
  --bg2:          #0a0a0a;
  --panel:        rgba(255,255,255,0.03);
  --panel-hover:  rgba(255,255,255,0.06);
  --border:       rgba(0,209,255,0.1);
  --border-hover: rgba(0,209,255,0.25);
  --primary:      #00d1ff; /* Electric Cyan */
  --primary-dim:  rgba(0,209,255,0.15);
  --primary-glow: 0 0 15px rgba(0,209,255,0.4);
  --accent:       #ffffff;
  --accent-dim:   rgba(255,255,255,0.08);
  --text:         #f0f0f0;
  --text-dim:     #888888;
  --text-dimmer:  #444444;
  --success:      #22c55e;
  --purple:       #a78bfa;
  --gold:         #FFD700;
  --silver:       #d1d5db;
  --bronze:       #b45309;
  --header-h:     60px;
  --footer-h:     52px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── BACKGROUND ─────────────────────────────────────────────── */
.bg-wrap { position: fixed; inset: 0; z-index: -2; }
.bg-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 3s ease;
  filter: blur(8px) brightness(0.06) grayscale(0.8);
  transform: scale(1.04);
}
.bg-slide.active { opacity: 1; }
.bg-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% -20%, #002b36 0%, #050505 100%);
}

/* ── HEADER ─────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200; height: var(--header-h);
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.site-header::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--primary) 0%, transparent 60%);
  opacity: 0.8;
}
.header-inner {
  width: 95%; max-width: 2600px; margin: 0 auto; padding: 0;
  height: 100%; display: flex; align-items: center; gap: 24px;
}
.logo-sub { color: var(--primary); font-weight: 600; text-shadow: var(--primary-glow); }

/* ── SCROLLBARS ─────────────────────────────────────────────── */
* { scrollbar-width: thin; scrollbar-color: var(--primary) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

/* ── LAYOUT ─────────────────────────────────────────────────── */
.section { width: 95%; max-width: 2600px; margin: 0 auto; padding: 40px 0; }
.section-title::before { background: var(--primary); box-shadow: var(--primary-glow); }

/* ── CARDS & MODULES ────────────────────────────────────────── */
.card, .dashboard-module {
  background: var(--panel) !important;
  border: 1px solid var(--border) !important;
  border-left: 3px solid var(--primary) !important;
  border-radius: 4px !important;
  transition: all 0.2s ease !important;
}
.card:hover, .dashboard-module:hover {
  background: var(--panel-hover) !important;
  border-color: var(--primary) !important;
}
.stat-number { color: var(--primary); text-shadow: var(--primary-glow); }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-primary { background: var(--primary); color: #000; font-weight: 700; }
.btn-primary:hover { background: #00f2ff; box-shadow: var(--primary-glow); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); text-shadow: var(--primary-glow); }

/* ── TABLES ─────────────────────────────────────────────────── */
.data-table tr:hover td { background: rgba(0,209,255,0.03); }

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer { background: var(--bg2); border-top: 1px solid var(--border); }
.footer-inner { width: 95%; max-width: 2600px; margin: 0 auto; }
.footer-links a:hover { color: var(--primary); text-shadow: var(--primary-glow); }

/* ── 404 ERROR PAGE ── */
.error-page-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 40px 20px;
  text-align: center;
  font-family: var(--font-main, 'Rajdhani', sans-serif);
}

.error-visual {
  position: relative;
  margin-bottom: 40px;
  max-width: 600px;
  width: 100%;
}

.error-image {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 0 50px rgba(232, 35, 42, 0.3);
  border: 1px solid rgba(232, 35, 42, 0.2);
}

.error-glitch-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 120px;
  font-weight: 900;
  color: #fff;
  font-family: var(--font-title, 'Orbitron', sans-serif);
  text-shadow: 0 0 20px rgba(232, 35, 42, 0.8);
  letter-spacing: 10px;
  pointer-events: none;
}

.error-title {
  font-family: var(--font-title, 'Orbitron', sans-serif);
  font-size: 48px;
  font-weight: 900;
  color: var(--primary, #e8232a);
  margin: 0 0 15px 0;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.error-message {
  font-size: 18px;
  color: var(--text-dim, #aaa);
  max-width: 500px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

@media (max-width: 768px) {
  .error-glitch-text { font-size: 80px; }
  .error-title { font-size: 32px; }
  .error-actions { flex-direction: column; }
}
