/* Dunkles, mysteriöses Frontend-Theme. Wird nur von includes/header.php geladen
   (der Admin-Bereich bindet diese Datei nicht ein und bleibt hell). */

body.theme-dark {
  --bg: #07070d;
  --card-bg: #0e0e19;
  --text: #dcdcec;
  --muted: #8b8ba6;
  --border: #23233a;
  --accent: #8b5cf6;
  --accent-dark: #7040e0;
  --accent-glow: rgba(139, 92, 246, .35);
  --success: #3ec98b;
  --error: #ff6b6b;
  color-scheme: dark;
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(110, 70, 220, .22), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(60, 30, 130, .18), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}

/* feiner Nebel-/Vignetten-Effekt über der ganzen Seite */
body.theme-dark::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55) 100%);
  z-index: 0;
}
body.theme-dark > * { position: relative; z-index: 1; }

.theme-dark a { color: #a78bfa; }
.theme-dark a:hover { color: #c4b5fd; }

/* Header & Marke */
.theme-dark .site-header {
  background: rgba(7, 7, 13, .72);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.theme-dark .brand {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: 1.05rem;
  color: #e9e4ff;
  text-shadow: 0 0 18px var(--accent-glow);
}

/* Überschriften */
.theme-dark h1,
.theme-dark h2,
.theme-dark h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: .02em;
}
.theme-dark .intro h1 {
  font-size: 2.2rem;
  color: #efeaff;
  text-shadow: 0 0 30px var(--accent-glow);
}
.theme-dark .intro p { color: var(--muted); }
.theme-dark .intro strong { color: #c4b5fd; font-weight: 600; }

/* Bildkarten (Startseite) */
.theme-dark .image-card {
  background: var(--card-bg);
  border-color: var(--border);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0), 0 10px 30px rgba(0, 0, 0, .5);
}
.theme-dark .image-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, .55);
  box-shadow: 0 0 28px var(--accent-glow), 0 14px 36px rgba(0, 0, 0, .6);
}
.theme-dark .image-card-thumb { background: #05050a; }
.theme-dark .image-card-price { color: #c4b5fd; }

/* Fortschrittsbalken */
.theme-dark .progress-bar { background: #181828; }
.theme-dark .progress-bar-fill {
  background: linear-gradient(90deg, #5b3bd0, #a78bfa);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* Detailseite */
.theme-dark .back-link { color: var(--muted); }
.theme-dark .back-link:hover { color: #c4b5fd; }
.theme-dark .reveal-frame {
  background: #05050a;
  border-color: #2a2a45;
  box-shadow: 0 0 60px rgba(110, 70, 220, .18), 0 20px 50px rgba(0, 0, 0, .7);
}
.theme-dark .buy-panel {
  background: linear-gradient(180deg, #11111f, #0b0b15);
  border-color: var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .55);
}
.theme-dark .buy-panel h1 { color: #efeaff; }

/* Kaufoptionen */
.theme-dark .option {
  background: #0a0a14;
  border-color: var(--border);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.theme-dark .option:hover { border-color: #3a3a5c; }
.theme-dark .option:has(input:checked) {
  background: rgba(139, 92, 246, .12);
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}
.theme-dark .option small { color: var(--muted); }
.theme-dark input[type=radio],
.theme-dark input[type=checkbox] { accent-color: var(--accent); }

/* Formularfelder */
.theme-dark .buyer-fields input {
  background: #0a0a14;
  color: var(--text);
  border-color: var(--border);
}
.theme-dark .buyer-fields input::placeholder { color: #55556e; }
.theme-dark .buyer-fields input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.theme-dark .consent-check a { color: #a78bfa; }

/* Button */
.theme-dark .btn-primary {
  background: linear-gradient(135deg, #7c4dec, #5b3bd0);
  box-shadow: 0 0 20px var(--accent-glow);
  letter-spacing: .02em;
}
.theme-dark .btn-primary:hover {
  background: linear-gradient(135deg, #9166ff, #6e4ae6);
  box-shadow: 0 0 30px rgba(139, 92, 246, .55);
}

/* Bestenliste */
.theme-dark .leaderboard-card {
  background: linear-gradient(180deg, #11111f, #0b0b15);
  border-color: var(--border);
}
.theme-dark .leaderboard-name { color: #efeaff; font-family: Georgia, "Times New Roman", serif; }

/* Ergebnis- und Rechtsseiten */
.theme-dark .result-page h1 { color: #efeaff; }
.theme-dark .legal-toc {
  background: var(--card-bg);
  border-color: var(--border);
}
.theme-dark .legal-page h2 { border-top-color: var(--border); }
.theme-dark .legal-page em { color: var(--muted); }

/* Footer */
.theme-dark .site-footer {
  border-top-color: var(--border);
  color: #5f5f7c;
}
.theme-dark .site-footer a { color: #8b8ba6; }
.theme-dark .site-footer a:hover { color: #c4b5fd; }
