:root {
  --bg-primary: #232b3a;
  --bg-secondary: #1a2332;
  --bg-card: #2d3748;
  --bg-card-hover: #334155;
  --accent: #06d6a0;
  --accent-glow: rgba(6, 214, 160, 0.15);
  --accent-secondary: #ffd166;
  --text-primary: #f0f4f8;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #475569;
  --station-1: #ef4444;
  --station-2: #06b6d4;
  --station-3: #fbbf24;
  --station-4: #a78bfa;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  font-size: 1.15rem;
}
h1, h2, h3, h4, h5, h6 {
  color: #f0f4f8;
  font-weight: 700;
}
h3, h4 {
  color: var(--accent);
}

.card, .info-card, .station-card, .materials-card, .quiz-container, .timeline-content, .code-block, .mission-box, .criteria-item, .puzzle-section, .hint-box, .answer-section, .footer-note {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

nav, footer {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-primary {
  background: var(--accent);
  color: #232b3a;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: var(--radius);
  border: none;
  box-shadow: 0 2px 8px rgba(6, 214, 160, 0.15);
}

.btn-secondary {
  background: var(--bg-card-hover);
  color: var(--accent);
  border: 1px solid var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: var(--radius);
}

input, textarea {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  font-size: 1.05rem;
  border-radius: 8px;
  padding: 0.5rem 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  color: var(--accent-secondary);
}

::-webkit-scrollbar {
  background: var(--bg-secondary);
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background: var(--accent-glow);
  border-radius: 8px;
}

/* ================================
   Lösungs-Versteck-Klassen
   ================================ */
.solution-hidden,
.solution-code-hidden,
.sms-solution-hidden,
.totp-solution-hidden,
.bio-solution-hidden {
  filter: blur(0.35em);
  user-select: none;
  pointer-events: none;
  opacity: 0.25;
  transition: all 0.3s ease;
}

/* ================================
   Einheitliche Navigation
   ================================ */
.station-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.station-nav a {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.station-nav a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ================================
   Footer-Note Styling
   ================================ */
.footer-note {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  margin-top: 2rem;
  color: var(--text-secondary);
}

.footer-note strong {
  color: var(--accent);
}

/* ================================
   Erfolgs-Bereich
   ================================ */
.success-section {
  background: linear-gradient(135deg, rgba(6, 214, 160, 0.1) 0%, rgba(34, 211, 238, 0.1) 100%);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  margin: 2rem 0;
}

.success-section h3 {
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.station-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 8px;
  margin-top: 0.5rem;
}

/* ================================
   Barrierefreiheit
   ================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
