/* ============================================================
   VRDACHT.DE – Design System
   Stil: Literarischer Krimi-Noir mit dezenten Neonakzenten
   ============================================================ */

/* ---- DESIGN TOKENS ---- */
:root {
  /* Farben */
  --color-bg:         #0d0d0d;
  --color-bg-2:       #141414;
  --color-bg-3:       #1a1a1a;
  --color-bg-card:    #181818;
  --color-bg-hover:   #222222;
  --color-border:     #2a2a2a;
  --color-border-2:   #333333;

  --color-gold:       #c9a84c;
  --color-gold-light: #e0c06a;
  --color-gold-dark:  #9a7a30;
  --color-red:        #8b1a1a;
  --color-red-light:  #b52020;
  --color-cream:      #f0ead6;
  --color-cream-dim:  #c8bfa8;

  /* Neonakzente (dezent) */
  --color-neon:       rgba(0, 200, 200, 0.15);
  --color-neon-text:  #00c8c8;

  /* Text */
  --text-primary:     #f0ead6;
  --text-secondary:   #c8bfa8;
  --text-muted:       #7a7060;
  --text-gold:        #c9a84c;

  /* Typografie */
  --font-serif:       'Playfair Display', Georgia, serif;
  --font-sans:        'Inter', system-ui, sans-serif;
  --font-literary:    'Crimson Text', Georgia, serif;

  /* Abstände */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  4rem;
  --space-4xl:  6rem;

  /* Radien */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;

  /* Schatten */
  --shadow-card:  0 4px 24px rgba(0,0,0,0.6);
  --shadow-glow:  0 0 20px rgba(201,168,76,0.15);

  /* Übergänge */
  --transition:   0.2s ease;
  --transition-slow: 0.4s ease;

  /* Layout */
  --max-width:    1200px;
  --header-h:     72px;

  /* Aliase für ältere Komponenten (case-intro, investigation) */
  --bg-primary:    #0d0d0d;
  --bg-card:       #181818;
  --bg-elevated:   #1a1a1a;
  --border-subtle: #2a2a2a;
  --font-ui:       'Inter', system-ui, sans-serif;
  --font-display:  'Playfair Display', Georgia, serif;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-gold-light); }
h1,h2,h3,h4,h5 { font-family: var(--font-serif); font-weight: 700; line-height: 1.2; }
p { line-height: 1.7; }
ul { list-style: none; }

.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--color-gold); color: var(--color-bg);
  padding: 8px 16px; z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

@media (max-width: 768px) {
  .container { padding: 0 var(--space-md); }
}

/* ---- HEADER ---- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-slow);
}

.site-header.scrolled {
  background: rgba(13,13,13,0.99);
  box-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo { display: flex; align-items: center; }
.logo-img { height: 36px; width: auto; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.site-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.site-nav a:hover { color: var(--color-gold); }

.site-nav .nav-freebie {
  color: var(--color-gold);
  border: 1px solid var(--color-gold-dark);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-sm);
}
.site-nav .nav-freebie:hover {
  background: var(--color-gold);
  color: var(--color-bg);
}

.site-nav .nav-admin {
  color: var(--text-muted);
  font-size: 0.72rem;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .header-inner { padding: 0 var(--space-md); }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(13,13,13,0.98);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-lg) var(--space-md);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-slow);
  }
  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
  }
  .site-nav a { font-size: 1rem; }
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-bg);
  border-color: var(--color-gold);
}
.btn-primary:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
  color: var(--color-bg);
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold-dark);
}
.btn-outline:hover {
  background: rgba(201,168,76,0.08);
  border-color: var(--color-gold);
  color: var(--color-gold-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--color-border-2);
}
.btn-ghost:hover {
  color: var(--text-secondary);
  border-color: var(--text-muted);
}

.btn-danger {
  background: var(--color-red-light);
  color: #fff;
  border-color: var(--color-red-light);
}
.btn-danger:hover {
  background: #c02020;
  border-color: #c02020;
  color: #fff;
}

.btn-large { padding: 0.85rem 2rem; font-size: 0.9rem; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.75rem; }
.btn-disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* ---- SECTION HEADERS ---- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}
.section-header h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}
.section-header h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--color-gold);
  margin: var(--space-md) auto 0;
}
.section-sub {
  font-family: var(--font-literary);
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding-top: var(--header-h);
}

/* Kompakte Hero-Variante: Karussell ist am unteren Rand sichtbar */
.hero--compact {
  min-height: calc(100vh - 120px);
  max-height: calc(100vh - 80px);
}

/* Peek-Streifen am unteren Hero-Rand */
.hero-carousel-peek {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent 0%, var(--color-bg-2) 100%);
  z-index: 3;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1.0); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(13,13,13,0.92) 0%,
    rgba(13,13,13,0.75) 50%,
    rgba(13,13,13,0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-xl);
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-lg);
}

.hero-headline {
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  max-width: 700px;
}

.hero-sub {
  font-family: var(--font-literary);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 540px;
  font-style: italic;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--text-muted);
  text-decoration: none;
  animation: bounce 2s infinite;
}
.scroll-arrow { font-size: 1.5rem; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@media (max-width: 768px) {
  .hero-content { padding: var(--space-3xl) var(--space-md); }
  .hero-br { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

/* ---- FREEBIE SECTION ---- */
.freebie-section {
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, #0f0a04 0%, #1a1000 50%, #0f0a04 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.freebie-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-gold-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  box-shadow: 0 0 60px rgba(201,168,76,0.08), var(--shadow-card);
}

.freebie-badge-wrap {
  position: absolute;
  top: -14px;
  left: var(--space-3xl);
}
.freebie-badge {
  background: var(--color-gold);
  color: var(--color-bg);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 0.3rem 0.9rem;
  border-radius: 2px;
}

.freebie-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.freebie-text {
  color: var(--text-secondary);
  font-family: var(--font-literary);
  font-size: 1.05rem;
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.freebie-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}
.freebie-features li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding-left: 1.5rem;
  position: relative;
}
.freebie-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-weight: 700;
}

.freebie-cover {
  width: 220px;
  flex-shrink: 0;
}
.freebie-cover img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border-2);
}

@media (max-width: 768px) {
  .freebie-card {
    grid-template-columns: 1fr;
    padding: var(--space-2xl) var(--space-lg);
    padding-top: calc(var(--space-2xl) + 14px);
  }
  .freebie-cover {
    width: 160px;
    margin: 0 auto;
  }
  .freebie-badge-wrap { left: var(--space-lg); }
}

/* ---- HOW IT WORKS ---- */
.how-it-works {
  padding: var(--space-4xl) 0;
  background: var(--color-bg);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.step-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}
.step-card:hover {
  border-color: var(--color-gold-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.step-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(201,168,76,0.12);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.step-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.step-title {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.step-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* ---- CASES CAROUSEL ---- */
.cases-section {
  padding: var(--space-4xl) 0;
  background: var(--color-bg-2);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.carousel-outer {
  position: relative;
  overflow: hidden;
}

.carousel-wrapper {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  padding: var(--space-md) var(--space-xl) var(--space-xl);
}
.carousel-wrapper::-webkit-scrollbar { display: none; }
.carousel-wrapper.dragging { cursor: grabbing; user-select: none; }

.carousel-track {
  display: flex;
  gap: var(--space-lg);
  width: max-content;
}

.case-card {
  width: 280px;
  flex-shrink: 0;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.case-card:hover {
  border-color: var(--color-gold-dark);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.case-card--freebie {
  border-color: var(--color-gold-dark);
  box-shadow: 0 0 30px rgba(201,168,76,0.1);
}

.case-card--soon {
  opacity: 0.7;
}

.case-cover {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.case-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.case-card:hover .case-cover img { transform: scale(1.04); }

.case-badge-wrap {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
}

.badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}
.badge--free { background: var(--color-gold); color: var(--color-bg); }
.badge--premium { background: var(--color-red-light); color: #fff; }
.badge--soon { background: rgba(255,255,255,0.15); color: var(--text-secondary); border: 1px solid var(--color-border-2); }

.case-info {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.case-title {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.case-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.case-meta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-xs);
}
.case-difficulty, .case-duration {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.difficulty-icons {
  font-size: 0.8rem;
  letter-spacing: -0.05em;
}
.difficulty-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(13,13,13,0.9);
  border: 1px solid var(--color-border-2);
  color: var(--text-primary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn:hover {
  background: var(--color-bg-hover);
  border-color: var(--color-gold-dark);
  color: var(--color-gold);
}
.carousel-btn--prev { left: var(--space-md); }
.carousel-btn--next { right: var(--space-md); }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border-2);
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition);
}
.carousel-dot.active {
  background: var(--color-gold);
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .carousel-wrapper { padding: var(--space-md) var(--space-md) var(--space-lg); }
  .carousel-btn { display: none; }
  .case-card { width: 240px; }
}

/* ---- FAQ ---- */
.faq-section {
  padding: var(--space-4xl) 0;
  background: var(--color-bg);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item[open] {
  border-color: var(--color-gold-dark);
}

.faq-question {
  padding: var(--space-lg) var(--space-xl);
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  color: var(--color-gold);
  font-size: 1.3rem;
  font-weight: 300;
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: var(--space-md);
}
.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 var(--space-xl) var(--space-lg);
  color: var(--text-secondary);
  font-family: var(--font-literary);
  font-size: 1rem;
  line-height: 1.8;
  font-style: italic;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--color-bg-2);
  border-top: 1px solid var(--color-border);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: var(--space-2xl);
}

.footer-brand { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-logo { height: 28px; width: auto; }
.footer-tagline {
  font-family: var(--font-literary);
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-xl);
  justify-content: center;
}
.footer-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-nav a:hover { color: var(--color-gold); }

.footer-copy {
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-muted);
  align-self: end;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 0 var(--space-md);
  }
  .footer-brand { align-items: center; }
  .footer-copy { text-align: center; }
}

/* ---- FLASH MESSAGES ---- */
.flash-messages { padding: var(--space-md) var(--space-xl); }
.flash {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
}
.flash-success { background: rgba(40,120,40,0.2); border: 1px solid rgba(40,120,40,0.4); color: #6dcc6d; }
.flash-error   { background: rgba(139,26,26,0.2); border: 1px solid rgba(139,26,26,0.4); color: #e06060; }
.flash-info    { background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.3); color: var(--color-gold); }

/* ============================================================
   CASE INTRO PAGE
   ============================================================ */
.case-intro-page {
  padding-top: var(--header-h);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-intro-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-xl);
  text-align: center;
}

.case-intro-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.case-intro-subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-2xl);
}

.case-intro-text {
  font-family: var(--font-literary);
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.9;
  font-style: italic;
  margin-bottom: var(--space-2xl);
  text-align: left;
}

.case-intro-form {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.case-intro-form input[type="text"] {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-2);
  color: var(--text-primary);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  width: 220px;
  transition: border-color var(--transition);
}
.case-intro-form input[type="text"]:focus {
  outline: none;
  border-color: var(--color-gold-dark);
}
.case-intro-form input::placeholder { color: var(--text-muted); }

.case-intro-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: var(--space-md);
  font-style: italic;
}

@media (max-width: 600px) {
  .case-intro-form { flex-direction: column; align-items: stretch; }
  .case-intro-form input[type="text"] { width: 100%; }
}

/* ============================================================
   INVESTIGATION PAGE
   ============================================================ */
.investigation-page {
  padding-top: var(--header-h);
  min-height: 100vh;
  background: var(--color-bg);
}

.investigation-layout {
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  gap: 0;
  height: calc(100vh - var(--header-h));
}

/* --- Sidebar --- */
.sidebar {
  background: var(--color-bg-2);
  border-right: 1px solid var(--color-border);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-2) transparent;
}
.sidebar-right {
  border-right: none;
  border-left: 1px solid var(--color-border);
}

.sidebar-section {
  border-bottom: 1px solid var(--color-border);
}

.sidebar-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.sidebar-toggle:hover { color: var(--color-gold); }
.sidebar-toggle .toggle-arrow {
  font-size: 0.6rem;
  transition: transform var(--transition);
  color: var(--text-muted);
}
.sidebar-section.open .toggle-arrow { transform: rotate(180deg); }

.sidebar-help {
  padding: 0 var(--space-lg) var(--space-sm);
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

.sidebar-body {
  display: none;
  padding: 0 var(--space-md) var(--space-md);
}
.sidebar-section.open .sidebar-body { display: block; }

.sidebar-item {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
  margin-bottom: 2px;
}
.sidebar-item:hover { background: var(--color-bg-hover); }
.sidebar-item-name {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 500;
}
.sidebar-item-role {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- Chat Area --- */
.chat-area {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  overflow: hidden;
}

.chat-header {
  padding: var(--space-md) var(--space-xl);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chat-header-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text-primary);
  font-style: italic;
}

.budget-bar-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.budget-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.budget-bar {
  width: 120px;
  height: 4px;
  background: var(--color-border-2);
  border-radius: 2px;
  overflow: hidden;
}
.budget-fill {
  height: 100%;
  background: var(--color-gold);
  border-radius: 2px;
  transition: width 0.5s ease, background 0.3s ease;
}
.budget-fill.warning { background: #e0a020; }
.budget-fill.danger  { background: var(--color-red-light); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-2) transparent;
}

.message {
  max-width: 85%;
  animation: fadeInUp 0.3s ease;
}
.message--archivar { align-self: flex-start; }
.message--user     { align-self: flex-end; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.message-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.message--archivar .message-label { color: var(--color-gold); }

.message-bubble {
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-md);
  font-family: var(--font-literary);
  font-size: 1rem;
  line-height: 1.8;
}
.message--archivar .message-bubble {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--text-primary);
  border-bottom-left-radius: 2px;
}
.message--user .message-bubble {
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.2);
  color: var(--text-secondary);
  border-bottom-right-radius: 2px;
}

.message-bubble em { color: var(--color-gold-light); font-style: italic; }
.message-bubble strong { color: var(--text-primary); }

.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
}
.typing-dot {
  width: 6px; height: 6px;
  background: var(--color-gold);
  border-radius: 50%;
  animation: typingBounce 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* --- Chat Input --- */
.chat-input-area {
  border-top: 1px solid var(--color-border);
  padding: var(--space-md) var(--space-xl);
  flex-shrink: 0;
  background: var(--color-bg-2);
}

.chat-input-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: var(--space-sm);
}

.chat-textarea {
  flex: 1;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-2);
  color: var(--text-primary);
  padding: 0.75rem 3rem 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-literary);
  font-size: 0.95rem;
  line-height: 1.5;
  resize: none;
  min-height: 52px;
  max-height: 140px;
  transition: border-color var(--transition);
  overflow-y: auto;
}
.chat-textarea:focus {
  outline: none;
  border-color: var(--color-gold-dark);
}
.chat-textarea::placeholder { color: var(--text-muted); font-style: italic; }

/* Mic button INSIDE textarea */
.mic-inline-btn {
  position: absolute;
  right: 60px;
  bottom: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: color var(--transition), background var(--transition);
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}
.mic-inline-btn:hover { color: var(--color-gold); background: rgba(201,168,76,0.1); }
.mic-inline-btn.recording {
  color: var(--color-red-light);
  animation: micPulse 1s infinite;
}
@keyframes micPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.send-btn {
  background: var(--color-gold);
  border: none;
  color: var(--color-bg);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  flex-shrink: 0;
}
.send-btn:hover { background: var(--color-gold-light); }
.send-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.char-counter {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
}
.char-counter.warning { color: #e0a020; }
.char-counter.danger  { color: var(--color-red-light); }

.chat-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-sm);
  align-items: center;
  flex-wrap: wrap;
}

.hint-btn {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--color-border-2);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}
.hint-btn:hover { color: var(--color-gold); border-color: var(--color-gold-dark); }

.accuse-btn {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-red);
  border: 1px solid var(--color-red-light);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.accuse-btn:hover {
  background: var(--color-red-light);
  color: #fff;
  box-shadow: 0 2px 12px rgba(139,26,26,0.4);
}

.accuse-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 4px;
}

/* Transcription preview */
.transcription-preview {
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: none;
}
.transcription-preview.visible { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); }
.transcription-text { flex: 1; font-style: italic; }
.transcription-confirm { font-size: 0.75rem; }

/* Budget alert */
.budget-alert {
  background: rgba(139,26,26,0.15);
  border: 1px solid rgba(139,26,26,0.3);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.82rem;
  color: #e06060;
  margin-top: var(--space-sm);
  display: none;
}
.budget-alert.visible { display: block; }

/* Hint/Clue items in sidebar */
.clue-item, .evidence-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.clue-item { border-left: 2px solid var(--color-gold-dark); }
.evidence-item { border-left: 2px solid var(--color-red); }
.clue-item-title, .evidence-item-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-empty {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  padding: var(--space-sm) var(--space-md);
}

/* ---- MOBILE INVESTIGATION ---- */
@media (max-width: 900px) {
  .investigation-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    height: auto;
    min-height: calc(100vh - var(--header-h));
  }

  .sidebar { display: none; }
  .sidebar-right { display: none; }

  .mobile-tabs {
    display: flex;
    background: var(--color-bg-2);
    border-bottom: 1px solid var(--color-border);
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 0;
  }
  .mobile-tabs::-webkit-scrollbar { display: none; }

  .mobile-tab {
    flex-shrink: 0;
    padding: 0.6rem 1rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
  }
  .mobile-tab.active {
    color: var(--color-gold);
    border-bottom-color: var(--color-gold);
  }

  .mobile-panel {
    display: none;
    padding: var(--space-md);
    background: var(--color-bg-2);
    border-bottom: 1px solid var(--color-border);
  }
  .mobile-panel.active { display: block; }

  .chat-area {
    height: calc(100vh - var(--header-h) - 44px - 120px);
    min-height: 400px;
  }

  .chat-messages { padding: var(--space-md); }
  .chat-input-area { padding: var(--space-sm) var(--space-md); }
  .chat-header { padding: var(--space-sm) var(--space-md); }

  .message { max-width: 95%; }
}

@media (min-width: 901px) {
  .mobile-tabs { display: none; }
  .mobile-panel { display: none !important; }
}

/* ============================================================
   ACCUSATION PAGE
   ============================================================ */
.accusation-page {
  padding-top: var(--header-h);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: var(--space-4xl);
}

.accusation-inner {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-xl);
}

.accusation-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.accusation-subtitle {
  font-family: var(--font-literary);
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
}

.accusation-form { display: flex; flex-direction: column; gap: var(--space-lg); }

.form-group { display: flex; flex-direction: column; gap: var(--space-sm); }
.form-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.form-select, .form-textarea {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-2);
  color: var(--text-primary);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-literary);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}
.form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-gold-dark);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-select option { background: var(--color-bg-card); }

/* ============================================================
   VERDICT PAGE
   ============================================================ */
.verdict-page {
  padding-top: var(--header-h);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.verdict-inner {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-xl);
  text-align: center;
}

.verdict-icon { font-size: 3rem; margin-bottom: var(--space-lg); }
.verdict-title { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: var(--space-md); }
.verdict-correct .verdict-title { color: var(--color-gold); }
.verdict-wrong .verdict-title { color: var(--color-red-light); }

.verdict-text {
  font-family: var(--font-literary);
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
}

.verdict-truth {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: left;
  margin-bottom: var(--space-2xl);
}
.verdict-truth h3 {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}
.verdict-truth p {
  font-family: var(--font-literary);
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============================================================
   SIMPLE PAGES (Newsletter, Kontakt, Impressum, etc.)
   ============================================================ */
.simple-page {
  padding-top: var(--header-h);
  min-height: 100vh;
  padding-bottom: var(--space-4xl);
}

.simple-page-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-xl);
}

.simple-page-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--text-primary);
  margin-bottom: var(--space-2xl);
}

.simple-page-inner p, .simple-page-inner li {
  font-family: var(--font-literary);
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-gold   { color: var(--color-gold); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.hidden { display: none !important; }


/* ============================================================
   LOGO SIZING
   ============================================================ */
.logo-img {
  height: 44px;
  max-height: 44px;
  width: auto;
  max-width: 220px;   /* verhindert üerbreite Logos */
  object-fit: contain;
  display: block;
}

.footer-logo {
  height: 36px;
  width: auto;
  display: block;
  opacity: 0.85;
}

/* ============================================================
   CASE INTRO PAGE
   ============================================================ */
.page-case-intro {
  background: var(--bg-primary);
}

.case-intro-section {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: var(--space-4xl) 0;
}

.case-intro-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-3xl);
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.case-intro-cover {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
}

.case-intro-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-intro-badge-wrap {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
}

.case-intro-info {
  padding: var(--space-3xl) var(--space-3xl) var(--space-3xl) 0;
}

.case-intro-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.case-intro-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  line-height: 1.15;
}

.case-intro-meta {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.case-intro-text {
  font-family: var(--font-literary);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border-subtle);
}

.case-intro-form {
  margin-bottom: var(--space-xl);
}

.form-row {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  flex-wrap: wrap;
}

.form-input {
  flex: 1;
  min-width: 180px;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--color-gold);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-hint {
  margin-top: var(--space-sm);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.case-intro-features {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.feature-item {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .case-intro-card {
    grid-template-columns: 1fr;
  }

  .case-intro-cover {
    aspect-ratio: 16/9;
    max-height: 260px;
  }

  .case-intro-info {
    padding: var(--space-xl);
  }

  .form-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ============================================================
   CAROUSEL HERO EDGE VARIANT
   ============================================================ */
.cases-section--hero-edge {
  padding-top: var(--space-3xl);
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.section-header--compact {
  padding-bottom: var(--space-lg);
}

.section-header--compact h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

/* ============================================================
   STATIC CONTENT PAGES (Impressum, Datenschutz, Kontakt)
   ============================================================ */
.static-content {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-xl);
  font-family: var(--font-literary);
  color: var(--text-secondary);
  line-height: 1.8;
}

.static-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--text-primary);
  margin-bottom: var(--space-2xl);
}

.static-content h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-gold);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.static-content p {
  margin-bottom: var(--space-md);
}

.static-content a {
  color: var(--color-gold);
  text-decoration: underline;
}

/* ============================================================
   ANKLAGE-MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.modal-box {
  background: var(--color-bg-card);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  max-width: 560px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.modal-close:hover { color: var(--color-gold); background: rgba(201,168,76,0.1); }

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.modal-intro {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.form-group { margin-bottom: var(--space-md); }

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 6px;
}

.form-select,
.form-textarea {
  width: 100%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}
.form-textarea { resize: vertical; min-height: 64px; }

.modal-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

/* ============================================================
   SCHNELLBUTTONS
   ============================================================ */
.quick-action-btn {
  display: block;
  width: 100%;
  background: rgba(201, 168, 76, 0.07);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.82rem;
  text-align: left;
  padding: 8px 12px;
  cursor: pointer;
  margin-bottom: 6px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: var(--font-sans);
}
.quick-action-btn:hover {
  background: rgba(201, 168, 76, 0.15);
  color: var(--color-gold);
  border-color: var(--color-gold);
}

/* ============================================================
   CHAT-HEADER SPIELERNAME
   ============================================================ */
.chat-header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chat-header-player {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.chat-header-player strong {
  color: var(--color-gold);
}

/* ============================================================
   MOBILE TAB BADGE
   ============================================================ */
.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-red-light);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  vertical-align: middle;
}

/* ============================================================
   NEUE HINWEIS/BEWEIS-ANIMATION
   ============================================================ */
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.new-item {
  animation: slideInRight 0.4s ease forwards;
  border-left: 2px solid var(--color-gold);
}

/* ============================================================
   KARUSSELL – Infinite Loop (transform-basiert)
   ============================================================ */
.carousel-wrapper {
  overflow: hidden !important;
  cursor: grab;
}
.carousel-wrapper:active { cursor: grabbing; }

.carousel-track {
  display: flex !important;
  gap: 24px;
  will-change: transform;
  /* transition wird per JS gesetzt */
}

/* ============================================================
   RESPONSIVE MODAL
   ============================================================ */
@media (max-width: 600px) {
  .modal-box {
    padding: var(--space-lg);
    border-radius: var(--radius-md);
  }
  .modal-actions {
    flex-direction: column;
  }
  .modal-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* ============================================================
   CRIMSON COLOR ALIAS
   ============================================================ */
:root {
  --color-crimson: var(--color-red-light);
  --color-surface: var(--color-bg-card);
}


/* ============================================================
   NAVIGATION (main-nav / nav-inner / nav-links / nav-burger)
   Passend zu templates/header.php
   ============================================================ */
.main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: #0d0d0d;
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-slow);
}
.main-nav.scrolled {
  background: #0d0d0d;
  box-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}
.nav-links li { list-style: none; }
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--color-gold); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Hamburger-Button */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  transition: all var(--transition);
}
.nav-burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1001;
}
.mobile-nav-overlay.open { display: block; }

.mobile-nav {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: #111;
  border-left: 1px solid var(--color-border);
  z-index: 1002;
  padding: var(--space-xl) var(--space-lg);
  transition: right var(--transition-slow);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.mobile-nav.open { right: 0; }

.mobile-nav-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  align-self: flex-end;
  padding: 4px 8px;
  transition: color var(--transition);
}
.mobile-nav-close:hover { color: var(--color-gold); }

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  flex: 1;
}
.mobile-nav ul li { list-style: none; }
.mobile-nav ul a {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.mobile-nav ul a:hover { color: var(--color-gold); }

.btn-full { width: 100%; text-align: center; }

@media (max-width: 768px) {
  .nav-burger { display: flex; }
  .nav-links { display: none; }
  .nav-actions .nav-cta { display: none; }
}

/* ============================================================
   HERO – Klassen aus index.php
   ============================================================ */
.hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  max-width: 700px;
}

.hero-subtitle {
  font-family: var(--font-literary);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 540px;
  font-style: italic;
  line-height: 1.8;
}

/* ============================================================
   CAROUSEL SECTION – Klassen aus index.php
   ============================================================ */
.carousel-section {
  padding: var(--space-xl) 0 var(--space-3xl);
  background: var(--color-bg-2);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.carousel-card {
  width: 280px;
  flex-shrink: 0;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.carousel-card:hover {
  border-color: var(--color-gold-dark);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.carousel-card.coming-soon { opacity: 0.7; }

/* ─── Schärpen-Badges: diagonales Eckbanner rechts oben ─────────────────── */
/* Der Karten-Container braucht overflow:hidden (bereits gesetzt) */
.card-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  z-index: 3;
  pointer-events: none;
}
.card-badge::before {
  content: attr(data-label);
  position: absolute;
  top: 18px;
  right: -36px;
  width: 120px;
  text-align: center;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0;
  transform: rotate(45deg);
  transform-origin: center;
  pointer-events: none;
  white-space: nowrap;
}
/* Farben je Typ */
.badge-free::before   { background: var(--color-gold); color: var(--color-bg); }
.badge-soon::before   { background: rgba(255,255,255,0.18); color: var(--text-secondary); border-top: 1px solid var(--color-border-2); border-bottom: 1px solid var(--color-border-2); }
.badge-new::before        { background: #4caf50; color: #fff; }
.badge-beliebt::before    { background: #ff9800; color: #1a1a2e; }
.badge-bestseller::before { background: #c9a84c; color: #1a1a2e; }
.badge-highlight::before  { background: #5b9bd5; color: #fff; }

.card-cover {
  aspect-ratio: 3/4;
  overflow: hidden;
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.carousel-card:hover .card-cover img { transform: scale(1.04); }

.card-info {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}
.card-info h3 {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.3;
  min-height: 2.6em; /* 2 Zeilen reservieren, damit alle Titel gleich hoch sind */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}
/* Preis-Zeile und Details-Button immer am unteren Rand */
.card-info .card-price-row { margin-top: auto; }
.card-info > .btn:last-child { margin-top: auto; }
/* Altersempfehlung in der Meta-Zeile */
.card-age-inline {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0.75;
}
/* Sterne-Bewertung in der Karten-Meta-Zeile */
.card-rating {
  font-size: 0.72rem;
  color: var(--color-gold);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
}
.card-rating small {
  color: var(--text-muted);
  font-size: 0.68rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(13,13,13,0.9);
  border: 1px solid var(--color-border-2);
  color: var(--text-primary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn:hover {
  background: var(--color-bg-hover);
  border-color: var(--color-gold-dark);
  color: var(--color-gold);
}
.carousel-prev { left: var(--space-md); }
.carousel-next { right: var(--space-md); }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) 0 0;
}

/* ============================================================
   FREEBIE SECTION – Klassen aus index.php
   ============================================================ */
.freebie-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.freebie-cover {
  position: relative;
}
.freebie-cover img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.freebie-badge {
  position: absolute;
  top: -12px;
  left: var(--space-md);
  background: var(--color-gold);
  color: var(--color-bg);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 0.3rem 0.9rem;
  border-radius: 2px;
}

.freebie-content { display: flex; flex-direction: column; gap: var(--space-md); }
.freebie-desc {
  font-family: var(--font-literary);
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.8;
}
.freebie-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.freebie-features span {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
}

/* Freebie 2×2 Feature-Boxen */
.freebie-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-top: 0.25rem;
}
.freebie-feature-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
}
.freebie-feature-box .ffb-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.freebie-feature-box strong {
  display: block;
  font-size: 0.85rem;
  color: var(--color-gold);
  margin-bottom: 0.2rem;
  font-weight: 600;
}
.freebie-feature-box p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .freebie-feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .freebie-grid {
    grid-template-columns: 1fr;
  }
  .freebie-cover {
    max-width: 200px;
    margin: 0 auto;
  }
}

/* ============================================================
   HOW SECTION – Klassen aus index.php
   ============================================================ */
.how-section {
  padding: var(--space-4xl) 0;
  background: var(--color-bg);
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--text-primary);
  margin-bottom: var(--space-3xl);
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--color-gold);
  margin-top: var(--space-md);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.how-step {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: border-color var(--transition), transform var(--transition);
}
.how-step:hover {
  border-color: var(--color-gold-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.how-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  display: block;
}

.how-step h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}
.how-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FAQ SECTION – Klassen aus index.php
   ============================================================ */
.faq-section {
  padding: var(--space-4xl) 0;
  background: var(--color-bg-2);
}

.faq-container {
  max-width: 760px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
}

.faq-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item[open] { border-color: var(--color-gold-dark); }

.faq-item summary {
  padding: var(--space-lg) var(--space-xl);
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--color-gold);
  font-size: 1.3rem;
  font-weight: 300;
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: var(--space-md);
}
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  padding: 0 var(--space-xl) var(--space-lg);
  color: var(--text-secondary);
  font-family: var(--font-literary);
  font-size: 1rem;
  line-height: 1.8;
  font-style: italic;
}

/* ============================================================
   NEWSLETTER SECTION – Klassen aus index.php
   ============================================================ */
.newsletter-section {
  padding: var(--space-4xl) 0;
  background: var(--color-bg-3);
  border-top: 1px solid var(--color-border);
}

/* Honeypot: absolut unsichtbar für Menschen */
.newsletter-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

/* Input + Button nebeneinander */
.newsletter-input-row {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.newsletter-input-row input[type='email'] {
  flex: 1;
  padding: 0.65rem 1rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-2);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color var(--transition);
}

.newsletter-input-row input[type='email']:focus {
  outline: none;
  border-color: var(--color-gold);
}

.newsletter-input-row input[type='email']::placeholder {
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .newsletter-input-row { flex-direction: column; }
}

/* Datenschutz-Checkbox */
.newsletter-privacy {
  margin-top: var(--space-sm);
}

.privacy-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.privacy-label input[type='checkbox'] {
  flex-shrink: 0;
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--color-gold);
  cursor: pointer;
}

.privacy-label a {
  color: var(--color-gold);
  text-decoration: underline;
}

.privacy-label a:hover {
  color: var(--color-gold-light);
}

.newsletter-inner {
  max-width: 600px;
  text-align: center;
}
.newsletter-inner h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}
.newsletter-inner p {
  color: var(--text-secondary);
  font-family: var(--font-literary);
  font-style: italic;
  margin-bottom: var(--space-xl);
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-2);
  color: var(--text-primary);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: border-color var(--transition);
}
.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-gold-dark);
}
.newsletter-form input::placeholder { color: var(--text-muted); }

.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  font-size: 0.9rem;
}
.alert-success { background: rgba(40,120,40,0.2); border: 1px solid rgba(40,120,40,0.4); color: #6dcc6d; }
.alert-error   { background: rgba(139,26,26,0.2); border: 1px solid rgba(139,26,26,0.4); color: #e06060; }

/* ---- Newsletter AJAX-Meldungen ---- */
.nl-message {
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.5;
}
.nl-message--success {
  background: rgba(40,120,40,0.2);
  border: 1px solid rgba(40,120,40,0.4);
  color: #6dcc6d;
}
.nl-message--error {
  background: rgba(139,26,26,0.2);
  border: 1px solid rgba(139,26,26,0.4);
  color: #e06060;
}

/* Fehler-Hervorhebung für E-Mail-Feld */
.nl-input-error {
  border-color: #c0392b !important;
  box-shadow: 0 0 0 2px rgba(192,57,43,0.25);
}

/* Fehler-Hervorhebung für Datenschutz-Label */
.nl-privacy-error {
  color: #e06060 !important;
}
.nl-privacy-error input[type='checkbox'] {
  outline: 2px solid #c0392b;
  outline-offset: 2px;
}

/* ============================================================
   FOOTER – Klassen aus templates/footer.php
   ============================================================ */
.main-footer {
  background: var(--color-bg-2);
  border-top: 1px solid var(--color-border);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3xl);
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.footer-brand img { height: 32px; width: auto; }
.footer-brand p {
  font-family: var(--font-literary);
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: var(--space-3xl);
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-col li { list-style: none; }
.footer-col a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--color-gold); }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  text-align: center;
}
.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand { align-items: center; }
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-xl);
  }
}

/* btn-lg Alias für btn-large */
.btn-lg { padding: 0.85rem 2rem; font-size: 0.9rem; }


/* ─── Dynamische Seiteninhalte (Admin-Seiten-Editor) ─────────────────────── */
/* Einheitlicher Navbar-Abstand: Navbar ist position:fixed, daher braucht jede
   Seite padding-top = Navbar-Höhe. Seiten mit .page-hero haben es bereits. */
.page-content,
.main-content {
    min-height: 60vh;
    padding-top: var(--header-h, 72px);
}

.page-narrow { max-width: 820px; margin: 0 auto; }

.page-content-section { padding: 4rem 0; }
/* Erste Sektion direkt unter Navbar: einheitlich ~1.7cm Luft */
.page-content > .page-content-section:first-child,
.main-content > .page-content-section:first-child {
    padding-top: 1.5rem;
}
/* Einheitlicher Abstand für cart und faelle */
.page-content > .cart-section:first-child,
.page-content > .faelle-page-header:first-child {
    padding-top: 1.5rem;
}

.page-content-section h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}
.page-content-section h2 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.page-content-section h3 {
    font-size: 1.1rem;
    color: var(--color-gold);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.page-content-section p,
.page-content-section li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}
.page-content-section a { color: var(--color-gold); text-decoration: underline; }
.page-content-section ul,
.page-content-section ol { padding-left: 1.5rem; margin-bottom: 1rem; list-style: disc; }
.page-content-section ol { list-style: decimal; }
.page-content-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}
.page-content-section th {
    background: rgba(201,168,76,0.1);
    color: var(--color-gold);
    padding: 0.6rem 0.85rem;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.08);
}
.page-content-section td {
    padding: 0.6rem 0.85rem;
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-secondary);
}
.page-content-section blockquote {
    border-left: 3px solid var(--color-gold);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-style: italic;
}

/* ─── Page Hero ──────────────────────────────────────────────────────────── */
.page-hero {
    /* Seiten mit .page-hero haben bereits padding-top via .page-content;
       daher hier nur noch den visuellen Zusatzabstand (kein doppeltes header-h) */
    padding: 3rem 0 3rem;
    text-align: center;
}
.page-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--text-primary);
    margin: 0.5rem 0 1rem;
}
.page-lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* ─── Features Grid ──────────────────────────────────────────────────────── */
.page-features { padding: 3rem 0 4rem; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.feature-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: var(--color-gold); transform: translateY(-3px); }
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.feature-card h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.feature-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* ─── Kontaktformular ────────────────────────────────────────────────────── */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }
.contact-form .form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.contact-form label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}
.contact-form input,
.contact-form textarea {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    resize: vertical;
    transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--color-gold); }
.contact-alt { color: var(--text-secondary); font-size: 0.9rem; }
.contact-alt a { color: var(--color-gold); }

/* ─── Fall-Detailseite: Medien & GEO ─────────────────────────────────────── */

/* Medien-Bereich Container */
.case-media-section {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.case-media-block {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.75rem;
}

.case-media-heading {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--color-gold);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.case-media-icon { font-size: 1.4rem; }

/* Video-Player */
.case-video-wrap {
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    line-height: 0;
}
.case-video-player {
    width: 100%;
    max-height: 520px;
    display: block;
    border-radius: 8px;
}

/* Song-Player */
.case-song-player {
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 1.25rem;
}
.song-player-inner {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.song-cover {
    position: relative;
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
}
.song-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.song-cover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}
.song-note {
    font-size: 2rem;
    color: var(--color-gold);
    text-shadow: 0 0 12px rgba(201,168,76,0.6);
}
.song-info {
    flex: 1;
    min-width: 0;
}
.song-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.song-artist {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.song-audio {
    width: 100%;
    height: 36px;
    accent-color: var(--color-gold);
}
@media (max-width: 500px) {
    .song-player-inner { flex-direction: column; align-items: flex-start; }
    .song-cover { width: 70px; height: 70px; }
}

/* GEO-Zusammenfassung */
.case-geo-summary {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: rgba(201,168,76,0.04);
    border-left: 3px solid var(--color-gold-dark);
    border-radius: 0 8px 8px 0;
}
.geo-summary-text {
    font-family: var(--font-literary);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FALL-DETAILSEITE – Buch-Layout
   ═══════════════════════════════════════════════════════════════════════════ */

.page-fall {
    background: var(--color-bg);
    min-height: 100vh;
}

/* ─── Hero-Bereich ─────────────────────────────────────────────────────────── */
.fall-hero {
    padding: calc(var(--header-h, 72px) + 1.5rem) 0 3rem;
    background: linear-gradient(180deg, #0a0a0a 0%, var(--color-bg) 100%);
}

.fall-hero-inner {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 900px) {
    .fall-hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ─── Buch-Spalte ──────────────────────────────────────────────────────────── */
.fall-book-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
}

/* ─── 3D-Buch ──────────────────────────────────────────────────────────────── */
.fall-book {
    position: relative;
    width: 220px;
    height: 310px;
    transform-style: preserve-3d;
    transform: perspective(900px) rotateY(-18deg);
    transition: transform 0.5s ease;
    cursor: default;
}

.fall-book:hover {
    transform: perspective(900px) rotateY(-8deg);
}

/* Buchrücken */
.book-spine {
    position: absolute;
    left: -32px;
    top: 0;
    width: 32px;
    height: 310px;
    background: linear-gradient(180deg, #5a3a10 0%, #3a2208 40%, #5a3a10 100%);
    border-radius: 3px 0 0 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: -4px 0 12px rgba(0,0,0,0.7);
}

.book-spine-title {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-family: var(--font-serif);
    font-size: 0.65rem;
    color: #c9a84c;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.5rem 0;
    max-height: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Seiten-Stapel-Effekt */
.book-pages {
    position: absolute;
    right: -6px;
    top: 3px;
    width: 10px;
    height: 304px;
    background: repeating-linear-gradient(
        to bottom,
        #e8dfc8 0px, #e8dfc8 1px,
        #d4c9a8 1px, #d4c9a8 2px
    );
    border-radius: 0 2px 2px 0;
    opacity: 0.8;
}

/* Cover */
.book-cover {
    position: relative;
    width: 220px;
    height: 310px;
    border-radius: 2px 4px 4px 2px;
    overflow: hidden;
    box-shadow:
        4px 6px 30px rgba(0,0,0,0.8),
        inset -3px 0 10px rgba(0,0,0,0.4);
}

.book-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Glanzeffekt */
.book-cover-gloss {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.12) 0%,
        rgba(255,255,255,0.04) 30%,
        transparent 60%
    );
    pointer-events: none;
}

/* Kostenlos-Badge */
.book-badge {
    position: absolute;
    top: 12px;
    right: -2px;
    background: var(--color-gold);
    color: #1a0e00;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    border-radius: 2px 0 0 2px;
    z-index: 2;
    box-shadow: -2px 2px 6px rgba(0,0,0,0.5);
}

/* Buch-Schatten */
.book-shadow {
    position: absolute;
    bottom: -18px;
    left: -20px;
    right: -10px;
    height: 20px;
    background: radial-gradient(ellipse at 40% 50%, rgba(0,0,0,0.6) 0%, transparent 70%);
    filter: blur(8px);
    transform: scaleY(0.4);
}

/* ─── Soundtrack-Player unter dem Buch ─────────────────────────────────────── */
.fall-song-player {
    width: 220px;
    background: linear-gradient(135deg, #1a0e00 0%, #2a1a04 100%);
    border: 1px solid var(--color-gold-dark);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.fall-song-player:not(.autoplay-blocked) {
    border-color: var(--color-gold);
    box-shadow: 0 0 20px rgba(201,168,76,0.25);
    animation: songPulse 3s ease-in-out infinite;
}

@keyframes songPulse {
    0%, 100% { box-shadow: 0 0 14px rgba(201,168,76,0.2); }
    50%       { box-shadow: 0 0 28px rgba(201,168,76,0.45); }
}

/* Header-Zeile: Icon + Meta + Toggle-Button */
.song-player-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
}

.song-player-icon {
    font-size: 1.3rem;
    color: var(--color-gold);
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.song-player-icon.pulsing {
    animation: iconBeat 1.2s ease-in-out infinite;
}

@keyframes iconBeat {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.2); }
}

.song-player-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.song-player-label {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-gold);
    line-height: 1;
}

.song-player-title {
    font-size: 0.72rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-toggle-btn {
    background: rgba(201,168,76,0.12);
    border: 1px solid rgba(201,168,76,0.35);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-gold);
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.song-toggle-btn:hover {
    background: rgba(201,168,76,0.25);
    border-color: var(--color-gold);
    transform: scale(1.1);
}

/* Lautstärke-Zeile */
.song-player-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vol-icon {
    font-size: 0.85rem;
    flex-shrink: 0;
    opacity: 0.7;
}

.song-volume {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(to right, var(--color-gold) 0%, var(--color-gold) 60%, rgba(255,255,255,0.15) 60%);
    outline: none;
    cursor: pointer;
}

.song-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-gold);
    cursor: pointer;
    box-shadow: 0 0 4px rgba(201,168,76,0.5);
}

.song-volume::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-gold);
    border: none;
    cursor: pointer;
}

/* Autoplay-blockiert: dezenter Hinweis */
.fall-song-player.autoplay-blocked {
    border-color: rgba(201,168,76,0.3);
    box-shadow: none;
    animation: none;
}

/* ─── Info-Spalte ──────────────────────────────────────────────────────────── */
.fall-info-col {
    padding-top: 0.5rem;
}

.fall-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.fall-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

/* ─── Facts-Leiste ─────────────────────────────────────────────────────────── */
.fall-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.fall-fact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: rgba(201,168,76,0.06);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    min-width: 80px;
    text-align: center;
}

.fact-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.fact-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.fact-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ─── Bewertungs-Fact-Box (fünfte Box in der Facts-Leiste) ──────────────────── */
.fall-fact-rating {
    border-color: rgba(201,168,76,0.35);
}
.fact-stars {
    display: flex;
    gap: 1px;
    line-height: 1;
    margin-bottom: 1px;
}
.star { font-size: 0.85rem; }
.star-full  { color: var(--color-gold); }
.star-half  { color: var(--color-gold); opacity: 0.6; }
.star-empty { color: var(--color-border); }
.fall-fact-rating .fact-value small {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ─── Testimonials-Sektion (4-Karten-Grid) ──────────────────────────────────── */
.fall-testimonials-section {
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(201,168,76,0.12);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
@media (max-width: 900px) {
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .testimonials-grid { grid-template-columns: 1fr; }
}
.testimonial-card {
    background: rgba(201,168,76,0.04);
    border: 1px solid rgba(201,168,76,0.18);
    border-radius: 10px;
    padding: 1.25rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.testimonial-stars {
    display: flex;
    gap: 2px;
}
.testimonial-text {
    font-family: var(--font-literary);
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.7;
    margin: 0;
    quotes: none;
    flex: 1;
}
.testimonial-author {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: auto;
}

/* ─── Intro-Text ───────────────────────────────────────────────────────────── */
.fall-intro-text {
    font-family: var(--font-literary);
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 2.5rem;
    border-left: 2px solid var(--color-gold-dark);
    padding-left: 1.25rem;
}

/* ─── Ermittlungsstart-Formular ────────────────────────────────────────────── */
.fall-start-form {
    background: rgba(201,168,76,0.04);
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 12px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

/* Namensfeld */
.fall-name-field {
    margin-bottom: 1.5rem;
}

.fall-name-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-serif);
    font-size: 0.85rem;
    color: var(--color-gold);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    cursor: default;
}

.name-label-icon { font-size: 1.1rem; }

.fall-name-input-wrap {
    position: relative;
}

.fall-name-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(201,168,76,0.3);
    padding: 0.6rem 0;
    font-family: var(--font-literary);
    font-size: 1.1rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.3s;
    letter-spacing: 0.03em;
}

.fall-name-input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.fall-name-input:focus {
    border-bottom-color: var(--color-gold);
}

.fall-name-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
    transition: width 0.4s ease;
    border-radius: 1px;
}

.fall-name-input:focus ~ .fall-name-underline {
    width: 100%;
}

.fall-name-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

/* Start-Button */
.btn-start-investigation {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-gold-dark) 0%, var(--color-gold) 50%, var(--color-gold-dark) 100%);
    background-size: 200% 100%;
    background-position: 100% 0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-position 0.4s ease, box-shadow 0.3s ease, transform 0.15s ease;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #1a0e00;
    margin-bottom: 0.75rem;
}

.btn-start-investigation:hover {
    background-position: 0% 0;
    box-shadow: 0 4px 24px rgba(201,168,76,0.4);
    transform: translateY(-1px);
}

.btn-start-investigation:active {
    transform: translateY(0);
}

.btn-start-icon  { font-size: 1.1rem; }
.btn-start-text  { flex: 1; text-align: center; }
.btn-start-arrow { font-size: 1.1rem; transition: transform 0.2s; }
.btn-start-investigation:hover .btn-start-arrow { transform: translateX(4px); }

.fall-start-disclaimer {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
}

/* ─── Feature-Tags ─────────────────────────────────────────────────────────── */
.fall-feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.fall-tag {
    font-size: 0.72rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 0.3rem 0.75rem;
}

/* ─── Video-Sektion ────────────────────────────────────────────────────────── */
.fall-video-section {
    padding: 3rem 0;
    border-top: 1px solid var(--color-border);
}

.fall-section-heading {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.fall-video-wrap {
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 8px 40px rgba(0,0,0,0.7);
}

.fall-video-player {
    width: 100%;
    max-height: 560px;
    display: block;
}

/* ─── GEO-Sektion ──────────────────────────────────────────────────────────── */
.fall-geo-section {
    padding: 2.5rem 0;
    border-top: 1px solid var(--color-border);
}

.fall-geo-inner {
    padding: 1.5rem;
    background: rgba(201,168,76,0.03);
    border-left: 3px solid var(--color-gold-dark);
    border-radius: 0 8px 8px 0;
}

.fall-geo-text {
    font-family: var(--font-literary);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* Hilfreich für Schema.org */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .fall-book-col {
        flex-direction: row;
        align-items: flex-start;
        flex-wrap: wrap;
        justify-content: center;
    }
    .fall-song-trigger { width: auto; }
    .btn-song-play { width: auto; min-width: 160px; }
}

@media (max-width: 600px) {
    .fall-hero { padding: 2rem 0; }
    .fall-book {
        width: 160px;
        height: 226px;
        transform: perspective(600px) rotateY(-12deg);
    }
    .book-cover { width: 160px; height: 226px; }
    .book-spine { height: 226px; left: -24px; width: 24px; }
    .book-pages { height: 220px; }
    .fall-facts { gap: 0.5rem; }
    .fall-fact { padding: 0.5rem 0.75rem; min-width: 70px; }
    .fall-start-form { padding: 1.25rem; }
}

/* ============================================================
   ERMITTLUNGSSEITE – Investigation Layout (v2)
   Vollständige Styles für ermittlung.php
   ============================================================ */

/* ─── Grundlayout ─────────────────────────────────────────── */
.investigation-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: calc(100vh - var(--header-h));
    margin-top: var(--header-h);
    overflow: hidden;
    background: var(--color-bg);
}

/* ─── Sidebar (Fallakte) ──────────────────────────────────── */
.inv-sidebar {
    background: var(--color-bg-2);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border-2) transparent;
}
.inv-sidebar::-webkit-scrollbar { width: 4px; }
.inv-sidebar::-webkit-scrollbar-thumb { background: var(--color-border-2); border-radius: 2px; }

.sidebar-header {
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-3);
    flex-shrink: 0;
}
.sidebar-title {
    font-family: var(--font-serif);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin: 0 0 0.35rem;
}
.sidebar-case {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
    margin: 0 0 0.2rem;
    font-family: var(--font-serif);
    line-height: 1.3;
}
.sidebar-player {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 0;
}
.sidebar-player strong { color: var(--text-secondary); }

/* Sidebar Sections (details/summary) */
.sidebar-section {
    border-bottom: 1px solid var(--color-border);
}
.sidebar-section > summary {
    padding: 0.7rem 1.25rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color var(--transition);
    user-select: none;
}
.sidebar-section > summary::-webkit-details-marker { display: none; }
.sidebar-section > summary::after {
    content: '▾';
    font-size: 0.6rem;
    color: var(--text-muted);
    transition: transform var(--transition);
}
.sidebar-section[open] > summary::after { transform: rotate(180deg); }
.sidebar-section > summary:hover { color: var(--color-gold); }
.sidebar-section[open] > summary { color: var(--text-secondary); }

/* Sidebar list items */
.sidebar-list {
    list-style: none;
    padding: 0.25rem 0.75rem 0.75rem;
    margin: 0;
}
.sidebar-list li {
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3rem;
    cursor: default;
    border: 1px solid transparent;
}
.sidebar-list li:hover {
    background: rgba(201,168,76,0.08);
    color: var(--text-primary);
    border-color: rgba(201,168,76,0.25);
    box-shadow: 0 0 8px rgba(201,168,76,0.12);
}
.sidebar-list li:hover strong {
    color: var(--color-gold-light);
    text-shadow: 0 0 6px rgba(201,168,76,0.4);
}
.sidebar-list li:hover .char-role.role-suspect {
    background: rgba(201,168,76,0.22);
    color: var(--color-gold);
    border-color: rgba(201,168,76,0.5);
}
.sidebar-list li:hover .char-role.role-victim {
    background: rgba(139,26,26,0.4);
    color: #f08080;
    border-color: rgba(139,26,26,0.6);
}
.sidebar-list li.item-done { opacity: 0.55; }

/* Character roles */
.char-role {
    font-size: 0.57rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    flex-shrink: 0;
}
.role-victim {
    background: rgba(139,26,26,0.25);
    color: #e06060;
    border: 1px solid rgba(139,26,26,0.4);
}
.role-suspect {
    background: rgba(201,168,76,0.12);
    color: var(--color-gold-dark);
    border: 1px solid rgba(201,168,76,0.2);
}

/* Location icon */
.loc-icon { font-size: 0.75rem; flex-shrink: 0; }

/* Clue items */
.clue-list li { flex-direction: column; align-items: flex-start; gap: 0.1rem; }
.clue-cat {
    font-size: 0.57rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gold-dark);
    background: rgba(201,168,76,0.08);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
}
.clue-found { border-left: 2px solid var(--color-gold-dark) !important; padding-left: 0.75rem !important; }
.clue-locked-item {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.75rem;
}
/* Tooltip für gesperrte Hinweise – position:fixed via JS (kein overflow-clipping) */
.clue-locked-tooltip {
    cursor: help;
}
/* Das eigentliche Tooltip-Element wird per JS als #clueTooltipFloat in body eingehängt */
#clueTooltipFloat {
    display: none;
    position: fixed;
    background: #1e1e1e;
    border: 1px solid var(--color-gold-dark, #c9a84c);
    color: #ddd;
    font-size: 0.75rem;
    font-style: normal;
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
    white-space: normal;
    width: 210px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,.6);
    pointer-events: none;
    line-height: 1.4;
}
#clueTooltipFloat::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 14px;
    border: 5px solid transparent;
    border-top-color: var(--color-gold-dark, #c9a84c);
}
.evidence-item { border-left: 2px solid var(--color-red-light) !important; padding-left: 0.75rem !important; }

.sidebar-empty {
    padding: 0.4rem 1.25rem 0.75rem;
    font-size: 0.74rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Anklage-Button in Sidebar */
.sidebar-accuse {
    padding: 1rem 1.25rem;
    margin-top: auto;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-2);
    position: sticky;
    bottom: 0;
    flex-shrink: 0;
}
.btn-accuse {
    width: 100%;
    background: var(--color-red);
    color: #fff;
    border: 1px solid var(--color-red-light);
    padding: 0.65rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.btn-accuse:hover {
    background: var(--color-red-light);
    box-shadow: 0 0 16px rgba(139,26,26,0.5);
}

/* ─── Hauptbereich (Chat) ─────────────────────────────────── */
.inv-main {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--color-bg);
}

/* Budget-Warnung */
.budget-warning {
    background: rgba(139,26,26,0.15);
    border-bottom: 1px solid rgba(139,26,26,0.3);
    padding: 0.55rem 1.5rem;
    font-size: 0.8rem;
    color: #e06060;
    text-align: center;
    flex-shrink: 0;
}

/* Mobile Tabs */
.mobile-tabs {
    display: none;
    background: var(--color-bg-2);
    border-bottom: 1px solid var(--color-border);
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 0;
}
.mobile-tabs::-webkit-scrollbar { display: none; }
.tab-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 1.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
}
.tab-btn.active {
    color: var(--color-gold);
    border-bottom-color: var(--color-gold);
}
.tab-btn:hover { color: var(--text-secondary); }

/* Tab panels */
.tab-panel {
    display: none;
    flex: 1;
    overflow: hidden;
    flex-direction: column;
    min-height: 0;
}
.tab-panel.active { display: flex; }

/* ─── Chat-Panel ──────────────────────────────────────────── */
.chat-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

/* Chat-Nachrichten-Feed */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border-2) transparent;
    min-height: 0;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--color-border-2); border-radius: 2px; }

/* Willkommensnachricht */
.chat-welcome {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    max-width: 680px;
}

/* Einzel-Nachricht */
.chat-message {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    max-width: 720px;
}
.user-message {
    flex-direction: row-reverse;
    align-self: flex-end;
    max-width: 580px;
}

/* Archivar-Avatar */
.archivar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Chat-Blasen */
.chat-bubble {
    padding: 0.75rem 1.1rem;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    line-height: 1.65;
    max-width: 100%;
}
.archivar-bubble {
    background: var(--color-bg-3);
    border: 1px solid var(--color-border-2);
    color: var(--text-secondary);
    border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
    font-family: var(--font-literary);
    font-size: 0.97rem;
}
.archivar-bubble p { margin: 0 0 0.5rem; }
.archivar-bubble p:last-child { margin-bottom: 0; }
.user-bubble {
    background: rgba(201,168,76,0.09);
    border: 1px solid rgba(201,168,76,0.18);
    color: var(--text-primary);
    border-radius: var(--radius-md) 0 var(--radius-md) var(--radius-md);
}

/* Typing-Indikator */
.chat-typing {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.chat-typing.hidden { display: none; }
.typing-indicator {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--color-bg-3);
    border: 1px solid var(--color-border-2);
    border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
}
.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--color-gold-dark);
    border-radius: 50%;
    animation: typingBounce 1.2s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

/* ─── Schnellbuttons ──────────────────────────────────────── */
.quick-actions-bar {
    border-top: 1px solid var(--color-border);
    background: rgba(20,20,20,0.8);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
.quick-actions {
    padding: 0.65rem 1.5rem 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    background: transparent;
    border-top: none;
}
.quick-btn {
    background: var(--color-bg-3);
    border: 1px solid var(--color-border-2);
    color: var(--text-secondary);
    padding: 0.38rem 0.9rem;
    border-radius: 20px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    font-family: var(--font-sans);
    line-height: 1.4;
}
.quick-btn:hover {
    background: rgba(201,168,76,0.1);
    border-color: var(--color-gold-dark);
    color: var(--color-gold);
}
.quick-btn:active { transform: scale(0.97); }

/* ─── Eingabebereich ──────────────────────────────────────── */
.chat-input-area {
    padding: 0.9rem 1.5rem 1.1rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-2);
    flex-shrink: 0;
}
.input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}
.input-wrapper textarea {
    flex: 1;
    background: var(--color-bg-3);
    border: 1px solid var(--color-border-2);
    color: var(--text-primary);
    padding: 0.7rem 1rem;
    border-radius: var(--radius-md);
    font-family: var(--font-literary);
    font-size: 0.97rem;
    line-height: 1.5;
    resize: none;
    min-height: 52px;
    max-height: 120px;
    transition: border-color var(--transition), background var(--transition);
    overflow-y: auto;
}
.input-wrapper textarea:focus {
    outline: none;
    border-color: var(--color-gold-dark);
    background: var(--color-bg-card);
}
.input-wrapper textarea::placeholder {
    color: var(--text-muted);
    font-style: italic;
}
.mic-btn {
    width: 44px;
    height: 44px;
    background: var(--color-bg-3);
    border: 1px solid var(--color-border-2);
    color: var(--text-muted);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
}
.mic-btn:hover { color: var(--color-gold); border-color: var(--color-gold-dark); }
.mic-btn.recording {
    color: #e06060;
    border-color: var(--color-red-light);
    animation: micPulse 1s infinite;
}
@keyframes micPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.input-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.4rem;
}
.char-count {
    font-size: 0.7rem;
    color: var(--text-muted);
}
.char-count.warning { color: #e0a020; }
.char-count.danger { color: var(--color-red-light); }
.interaction-count {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
    white-space: nowrap;
    transition: color 0.3s;
}
.btn-send {
    background: var(--color-gold);
    border: none;
    color: var(--color-bg);
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition);
    letter-spacing: 0.05em;
}
.btn-send:hover { background: var(--color-gold-light); }
.btn-send:disabled { opacity: 0.4; cursor: not-allowed; }

/* KI-Disclaimer unter Chat-Eingabe */
.ki-disclaimer {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    text-align: center;
    margin: 0.3rem 0 0;
    letter-spacing: 0.02em;
}

/* ─── Mobile Panels (Personen/Hinweise) ───────────────────── */
.mobile-section {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}
.mobile-section h3 {
    font-family: var(--font-serif);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin: 0 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--color-border);
}
.mobile-section h3 + h3,
.mobile-section h3:not(:first-child) { margin-top: 1.5rem; }
.mobile-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.mobile-list li {
    padding: 0.5rem 0.75rem;
    background: var(--color-bg-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: baseline;
}
.empty-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
    padding: 0.2rem 0;
    margin-bottom: 0.5rem;
}
.mobile-accuse {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}
.mobile-accuse .btn-accuse { width: 100%; }

/* ─── Verdict-Modal ───────────────────────────────────────── */
.verdict-box { max-width: 600px; }
.verdict-header {
    text-align: center;
    padding: 1.5rem 0 1rem;
}
.verdict-header.verdict-correct .verdict-icon { color: var(--color-gold); }
.verdict-header.verdict-wrong .verdict-icon { color: var(--color-red-light); }
.verdict-icon { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }
.verdict-header h2 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--text-primary);
}
.verdict-text {
    background: var(--color-bg-3);
    border: 1px solid var(--color-border-2);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    font-family: var(--font-literary);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
.verdict-parts { margin-bottom: 0.75rem; }
.verdict-parts h4 {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}
.verdict-parts ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.verdict-parts li {
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding: 0.3rem 0.6rem;
    background: var(--color-bg-3);
    border-radius: var(--radius-sm);
}

/* ─── Responsive: Mobile ──────────────────────────────────── */
@media (max-width: 900px) {
    .investigation-layout {
        grid-template-columns: 1fr;
        height: calc(100vh - var(--header-h));
    }
    .inv-sidebar { display: none; }
    .inv-main { height: 100%; }
    .mobile-tabs { display: flex; }
    .chat-messages { padding: 1rem 1.25rem; }
    .chat-input-area { padding: 0.75rem 1rem 1rem; }
    .quick-actions { padding: 0.5rem 1rem; }
}

@media (max-width: 600px) {
    .chat-bubble { font-size: 0.88rem; }
    .archivar-bubble { font-size: 0.9rem; }
    .quick-btn { font-size: 0.74rem; padding: 0.32rem 0.7rem; }
    .btn-send { padding: 0.4rem 0.9rem; font-size: 0.78rem; }
    .chat-messages { gap: 0.75rem; }
    .chat-message { max-width: 100%; }
    .user-message { max-width: 100%; }
}

/* ============================================================
   ONBOARDING-OVERLAY & TOUR
   ============================================================ */

/* ─── Onboarding Welcome Overlay ─────────────────────────── */
.onboarding-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    animation: fadeIn 0.4s ease;
}
.onboarding-box {
    background: var(--color-bg-2);
    border: 1px solid var(--color-gold);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 60px rgba(197,160,74,0.15);
}
.onboarding-logo {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1;
}
.onboarding-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-gold);
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}
.onboarding-sub {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}
.onboarding-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}
.onboarding-actions .btn {
    min-width: 160px;
}

/* ─── Tour Backdrop ───────────────────────────────────────── */
.tour-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9998;
    pointer-events: none;
}

/* ─── Tour Highlight ──────────────────────────────────────── */
.tour-highlight {
    position: relative;
    z-index: 9999 !important;
    box-shadow: 0 0 0 4px var(--color-gold), 0 0 30px rgba(197,160,74,0.4) !important;
    border-radius: var(--radius-sm);
    pointer-events: auto;
}

/* ─── Tour Tooltip ────────────────────────────────────────── */
.tour-tooltip {
    background: var(--color-bg-2);
    border: 1px solid var(--color-gold);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.25rem 1rem;
    width: 300px;
    max-width: 90vw;
    box-shadow: 0 8px 40px rgba(0,0,0,0.7);
    z-index: 10001;
}
.tour-step-counter {
    font-size: 0.72rem;
    color: var(--color-gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    font-weight: 600;
}
.tour-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}
.tour-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 1rem;
}
.tour-nav {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
}
.tour-close {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: var(--text-muted, #555);
    font-size: 0.75rem;
    cursor: pointer;
    text-align: center;
    padding: 0.25rem 0;
    transition: color var(--transition-fast);
}
.tour-close:hover { color: var(--color-gold); }

/* ─── Ghost Button (für Tour-Navigation) ─────────────────── */
.btn-ghost {
    background: transparent;
    border: 1px solid var(--color-border-2, #444);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    transition: border-color var(--transition-fast), color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-ghost:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}
.btn-sm {
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
}

/* ============================================================
   SPRACHEINGABE: WAVEFORM VISUALIZER + MIC-HILFE
   ============================================================ */

/* ─── Voice Visualizer Bar ────────────────────────────────── */
.voice-visualizer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--color-bg-3);
    border: 1px solid var(--color-gold-dark);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    animation: fadeIn 0.2s ease;
}
#waveCanvas {
    flex: 1;
    height: 40px;
    min-width: 0;
    border-radius: 4px;
}
.voice-status-text {
    font-size: 0.75rem;
    color: var(--color-gold);
    white-space: nowrap;
    animation: micPulse 1.2s infinite;
}
.voice-timer {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    min-width: 2.5rem;
    text-align: right;
}

/* ─── Mic Help Button (inline footer) ────────────────────── */
.mic-help-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.72rem;
    cursor: pointer;
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast);
    white-space: nowrap;
}
.mic-help-btn:hover { color: var(--color-gold); }

/* ─── Mic Help Modal ──────────────────────────────────────── */
.mic-help-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.82);
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.25s ease;
}
.mic-help-box {
    background: var(--color-bg-2);
    border: 1px solid var(--color-gold-dark);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem 1.75rem;
    max-width: 480px;
    width: 92%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}
.mic-help-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast);
}
.mic-help-close:hover { color: var(--color-gold); }
.mic-help-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.75rem;
}
.mic-help-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 0.6rem;
}
.mic-help-intro {
    font-size: 0.88rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1.25rem;
    line-height: 1.55;
}
.mic-help-browser {
    background: var(--color-bg-3);
    border: 1px solid var(--color-border-2);
    border-radius: var(--radius-md);
    padding: 0.9rem 1rem;
    margin-bottom: 0.75rem;
}
.mic-help-browser-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.mic-help-steps {
    margin: 0 0 0.5rem 1.1rem;
    padding: 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.mic-help-steps li { margin-bottom: 0.15rem; }
.mic-help-steps kbd {
    background: var(--color-bg);
    border: 1px solid var(--color-border-2);
    border-radius: 3px;
    padding: 0 4px;
    font-size: 0.78rem;
    font-family: monospace;
}
.mic-help-steps code {
    background: var(--color-bg);
    border-radius: 3px;
    padding: 1px 4px;
    font-size: 0.78rem;
    color: var(--color-gold-light);
}
.mic-help-alt {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0;
}
.mic-help-alt code {
    background: var(--color-bg);
    border-radius: 3px;
    padding: 1px 4px;
    font-size: 0.75rem;
    color: var(--color-gold-light);
}
.mic-help-note {
    background: rgba(197,160,76,0.08);
    border-left: 3px solid var(--color-gold-dark);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 0.5rem;
}

/* ─── Voice State Sub-Layouts ─────────────────────────────── */
.voice-recording-state {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}
.voice-transcribing-state {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    justify-content: center;
    padding: 0.25rem 0;
}
.voice-transcribing-text {
    font-size: 0.82rem;
    color: var(--color-gold);
    font-style: italic;
}
/* Spinner */
.voice-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(201,168,76,0.25);
    border-top-color: var(--color-gold);
    border-radius: 50%;
    animation: voiceSpin 0.8s linear infinite;
    flex-shrink: 0;
}
@keyframes voiceSpin {
    to { transform: rotate(360deg); }
}

/* ─── Tipp-Button ────────────────────────────────────────── */
.hint-btn {
    background: rgba(255, 215, 0, 0.08) !important;
    border-color: rgba(255, 215, 0, 0.4) !important;
    color: #ffd700 !important;
    font-style: italic;
}
.hint-btn:hover:not(:disabled) {
    background: rgba(255, 215, 0, 0.18) !important;
    border-color: #ffd700 !important;
}
.hint-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* ─── REGISTRIERUNGS-MODAL ─────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.82);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.modal-box {
    background: #0f0f1a;
    border: 1px solid #2a2a3e;
    border-radius: 8px;
    padding: 2rem;
    width: 100%;
    max-width: 480px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #888;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    transition: color 0.2s;
}
.modal-close:hover { color: #c9a84c; }

.modal-title {
    font-family: var(--font-serif);
    color: var(--color-gold);
    font-size: 1.4rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

/* Form groups inside modal */
.modal-box .form-group {
    margin-bottom: 1rem;
}

.modal-box .form-group label {
    display: block;
    font-size: 0.82rem;
    color: #aaa;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-box .form-group input[type="text"],
.modal-box .form-group input[type="email"],
.modal-box .form-group input[type="password"] {
    width: 100%;
    padding: 0.55rem 0.85rem;
    background: #1a1a2e;
    border: 1px solid #2a2a4a;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 0.9rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.modal-box .form-group input:focus {
    outline: none;
    border-color: var(--color-gold);
}

.btn-outline {
    background: transparent;
    border: 1px solid #444;
    color: #aaa;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: #888; color: #e0e0e0; }

/* ─── PAUSE-BUTTON & PAUSE-MODAL ────────────────────────────────────────────── */
.btn-pause {
    display: block;
    width: 100%;
    margin-top: 0.6rem;
    padding: 0.45rem 0;
    background: transparent;
    border: 1px solid #444;
    border-radius: 4px;
    color: #888;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    text-align: center;
}
.btn-pause:hover {
    border-color: #888;
    color: #ccc;
}

.pause-modal-box {
    max-width: 440px;
    text-align: center;
}

.pause-modal-icon {
    font-size: 2.5rem;
    margin: 0 0 0.5rem;
    line-height: 1;
}

.pause-modal-sub {
    color: #aaa;
    font-size: 0.9rem;
    margin: 0.5rem 0 1.25rem;
    line-height: 1.5;
}

.pause-link-box {
    background: #1a1a2e;
    border: 1px solid #2a2a4a;
    border-radius: 6px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    text-align: left;
}

.pause-link-label {
    font-size: 0.78rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.4rem;
}

.pause-link-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pause-link-input {
    flex: 1;
    padding: 0.45rem 0.7rem;
    background: #0f0f1a;
    border: 1px solid #333;
    border-radius: 4px;
    color: #c9a84c;
    font-size: 0.78rem;
    font-family: monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-copy {
    padding: 0.45rem 0.65rem;
    background: #2a2a3e;
    border: 1px solid #444;
    border-radius: 4px;
    color: #c9a84c;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
    flex-shrink: 0;
}
.btn-copy:hover { background: #3a3a5e; }

.pause-link-hint {
    font-size: 0.78rem;
    margin: 0.35rem 0 0;
    min-height: 1em;
}

.pause-register-hint {
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 6px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    text-align: left;
    font-size: 0.88rem;
    color: #ccc;
    line-height: 1.5;
}
.pause-register-hint p { margin: 0 0 0.6rem; }

.pause-modal-actions {
    justify-content: center;
    gap: 1rem;
}

.btn-pause-leave {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: #c9a84c;
    color: #0a0a14;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-pause-leave:hover { background: #e0be6a; }

.btn-sm {
    padding: 0.35rem 0.9rem;
    font-size: 0.82rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAUSE-BUTTON (PROMINENT)
═══════════════════════════════════════════════════════════════════════════ */
.btn-pause-prominent {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.6rem 1rem;
    background: transparent;
    border: 1.5px solid var(--color-border-2, #555);
    border-radius: 6px;
    color: var(--color-text-2, #aaa);
    font-size: 0.8rem;
    font-family: var(--font-body);
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    text-align: center;
}
.btn-pause-prominent:hover {
    border-color: var(--color-gold, #c9a84c);
    color: var(--color-gold, #c9a84c);
    background: rgba(201,168,76,0.06);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAUSE-MODAL (REDESIGN)
═══════════════════════════════════════════════════════════════════════════ */
.pause-modal-box {
    max-width: 480px;
    text-align: center;
}
.pause-modal-icon {
    font-size: 2rem;
    margin: 0 0 0.4rem;
    opacity: 0.7;
}
.pause-modal-sub {
    color: var(--color-text-2, #aaa);
    font-size: 0.9rem;
    margin: 0 0 1.2rem;
}

/* SAVED STATE (eingeloggter Nutzer) */
.pause-cta-saved {
    background: rgba(40, 167, 69, 0.08);
    border: 1.5px solid rgba(40, 167, 69, 0.5);
    border-radius: 10px;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1rem;
    text-align: center;
}
.pause-saved-icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: rgba(40, 167, 69, 0.2);
    border: 2px solid rgba(40, 167, 69, 0.6);
    color: #4caf70;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.6rem;
}
.pause-cta-saved .pause-cta-label {
    color: #4caf70;
    text-align: center;
}
.pause-cta-saved .pause-cta-desc {
    margin-bottom: 0;
    text-align: center;
}

/* PRIMARY CTA */
.pause-cta-primary {
    background: rgba(201,168,76,0.08);
    border: 1.5px solid var(--color-gold, #c9a84c);
    border-radius: 10px;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1rem;
    text-align: left;
}
.pause-cta-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-gold, #c9a84c);
    margin: 0 0 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.pause-cta-desc {
    font-size: 0.82rem;
    color: var(--color-text-2, #aaa);
    margin: 0 0 0.9rem;
}
.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* DIVIDER */
.pause-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0.8rem 0;
    color: var(--color-text-3, #666);
    font-size: 0.8rem;
}
.pause-divider::before,
.pause-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border-1, #333);
}

/* SECONDARY: Token-Link */
.pause-link-box {
    background: var(--color-bg-3, #1a1a1a);
    border: 1px solid var(--color-border-1, #333);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    text-align: left;
    margin-bottom: 0.8rem;
}
.pause-link-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-2, #aaa);
    margin: 0 0 0.5rem;
}
.pause-link-row {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}
.pause-link-input {
    flex: 1;
    background: var(--color-bg-2, #111);
    border: 1px solid var(--color-border-1, #333);
    border-radius: 5px;
    padding: 0.4rem 0.6rem;
    font-size: 0.78rem;
    color: var(--color-text-1, #e0e0e0);
    font-family: monospace;
    min-width: 0;
}
.pause-link-hint {
    font-size: 0.75rem;
    color: var(--color-gold, #c9a84c);
    margin: 0.3rem 0 0;
    min-height: 1rem;
}
.pause-link-warning {
    font-size: 0.72rem;
    color: #e07070;
    margin: 0.4rem 0 0;
}

/* MODAL ACTIONS */
.pause-modal-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.8rem;
    justify-content: center;
}
.btn-pause-leave {
    text-decoration: none;
    padding: 0.55rem 1.2rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--color-bg-3, #1a1a1a);
    border: 1px solid var(--color-border-2, #555);
    color: var(--color-text-2, #aaa);
    transition: border-color 0.2s, color 0.2s;
}
.btn-pause-leave:hover {
    border-color: #e07070;
    color: #e07070;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SESSION ABGELAUFEN
═══════════════════════════════════════════════════════════════════════════ */
.page-expired {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}
.expired-box {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    background: var(--color-bg-2, #111);
    border: 1px solid var(--color-border-1, #333);
    border-radius: 12px;
    padding: 2.5rem 2rem;
}
.expired-icon { font-size: 3rem; margin-bottom: 0.8rem; opacity: 0.7; }
.expired-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-gold, #c9a84c);
    margin: 0 0 0.8rem;
}
.expired-sub {
    color: var(--color-text-2, #aaa);
    font-size: 0.9rem;
    margin: 0 0 1.5rem;
}
.expired-cta-box {
    background: rgba(201,168,76,0.08);
    border: 1.5px solid var(--color-gold, #c9a84c);
    border-radius: 10px;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1rem;
    text-align: left;
}
.expired-cta-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-gold, #c9a84c);
    margin: 0 0 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.expired-cta-desc {
    font-size: 0.82rem;
    color: var(--color-text-2, #aaa);
    margin: 0 0 0.9rem;
}
.expired-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1rem 0;
    color: var(--color-text-3, #666);
    font-size: 0.8rem;
}
.expired-divider::before,
.expired-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border-1, #333);
}

/* ═══════════════════════════════════════════════════════════════════════════
   QUICK-BTN: BEREITS ERKUNDET
═══════════════════════════════════════════════════════════════════════════ */
.quick-btn-done {
    opacity: 0.45;
    border-color: var(--color-border-1, #333) !important;
    color: var(--color-text-3, #666) !important;
    order: 99;
}
.quick-btn-done:hover {
    opacity: 0.65;
    border-color: var(--color-border-2, #555) !important;
    color: var(--color-text-2, #aaa) !important;
}
.quick-btn-check {
    font-size: 0.7rem;
    margin-left: 0.3rem;
    color: var(--color-gold, #c9a84c);
    opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAUSE-MODAL: LEAVE-LINK
═══════════════════════════════════════════════════════════════════════════ */
.pause-leave-link {
    display: block;
    text-align: center;
    margin-top: 0.6rem;
    font-size: 0.78rem;
    color: var(--color-text-3, #666);
    text-decoration: none;
    transition: color 0.2s;
}
.pause-leave-link:hover {
    color: #e07070;
    text-decoration: underline;
}

/* ─── Registrierungs-Modal: kompakt, keine Versalien ──────────────────────── */
.reg-modal-box {
    max-width: 480px;
    padding: 1.25rem 1.5rem;
}

/* Labels ohne Versalien, kleiner */
.reg-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: 4px;
    text-transform: none;
    letter-spacing: 0;
}

/* Kompaktere Abstände zwischen Feldern */
.reg-field {
    margin-bottom: 0.6rem;
}

/* Checkbox-Zeilen: Checkbox links, Text daneben */
.reg-check-row {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.45rem;
}

.reg-check-row input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
    width: 15px;
    height: 15px;
    accent-color: var(--color-gold);
    cursor: pointer;
}

.reg-check-row label {
    font-size: 0.82rem;
    color: #bbb;
    cursor: pointer;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0;
}

.reg-check-row label a {
    color: var(--color-gold);
    text-decoration: none;
}

.reg-check-row label a:hover {
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAV: USER-DROPDOWN (Männchen-Symbol)
   ═══════════════════════════════════════════════════════════════════════════ */
.nav-user-wrap {
    position: relative;
}
.nav-user-btn {
    display: flex;
    align-items: center;
    gap: .45rem;
    background: none;
    border: 1.5px solid rgba(201,168,76,.45);
    border-radius: 2rem;
    padding: .35rem .85rem .35rem .6rem;
    color: var(--text-primary);
    cursor: pointer;
    font-size: .85rem;
    font-family: inherit;
    transition: border-color .2s, background .2s;
}
.nav-user-btn:hover,
.nav-user-wrap.open .nav-user-btn {
    border-color: var(--color-gold);
    background: rgba(201,168,76,.1);
}
.nav-user-icon {
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
    color: var(--color-gold);
}
.nav-user-name {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-user-caret {
    width: .55rem;
    height: .55rem;
    opacity: .6;
    transition: transform .2s;
}
.nav-user-wrap.open .nav-user-caret {
    transform: rotate(180deg);
}
.nav-user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + .5rem);
    right: 0;
    min-width: 210px;
    background: var(--color-bg-card);
    border: 1px solid rgba(201,168,76,.3);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0,0,0,.7);
    z-index: 1100;
    overflow: hidden;
}
.nav-user-wrap.open .nav-user-dropdown {
    display: block;
}
.nav-user-item {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .65rem 1.1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: .88rem;
    transition: background .15s, color .15s;
    white-space: nowrap;
    line-height: 1.3;
}
.nav-item-icon {
    display: inline-block;
    width: 1.5em;
    text-align: center;
    flex-shrink: 0;
}
.nav-user-item:hover {
    background: rgba(201,168,76,.1);
    color: var(--color-gold);
}
.nav-user-item-logout {
    color: var(--color-red-light);
}
.nav-user-item-logout:hover {
    background: rgba(139,26,26,.15);
    color: #e74c3c;
}
.nav-user-divider {
    height: 1px;
    background: rgba(201,168,76,.15);
    margin: .25rem 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MEIN KONTO – SEITE
   ═══════════════════════════════════════════════════════════════════════════ */
.konto-main {
    min-height: 80vh;
    background: var(--color-bg);
    padding-top: var(--header-h, 72px);
    padding-bottom: 4rem;
}
.konto-hero {
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-3) 60%, var(--color-bg) 100%);
    border-bottom: 1px solid rgba(201,168,76,.2);
    padding: 1.5rem 0 0;
}
.konto-hero-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.konto-avatar {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: rgba(201,168,76,.1);
    border: 2px solid rgba(201,168,76,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.konto-avatar-icon { font-size: 2rem; }
.konto-hero-label {
    font-size: .78rem;
    letter-spacing: .12em;
    color: var(--color-gold);
    text-transform: uppercase;
    margin: 0 0 .2rem;
}
.konto-hero-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 .3rem;
}
.konto-hero-email {
    font-size: .88rem;
    color: var(--text-muted);
    margin: 0 0 .2rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.konto-hero-since { font-size: .8rem; color: var(--text-muted); margin: 0; }
.konto-badge {
    font-size: .72rem;
    padding: .15rem .55rem;
    border-radius: 1rem;
    font-weight: 600;
}
.konto-badge-ok   { background: rgba(39,174,96,.15); color: #2ecc71; border: 1px solid rgba(39,174,96,.3); }
.konto-badge-warn { background: rgba(231,76,60,.12); color: #e74c3c; border: 1px solid rgba(231,76,60,.25); }
.konto-tabs {
    display: flex;
    gap: 0;
}
.konto-tab {
    padding: .75rem 1.4rem;
    font-size: .88rem;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
    white-space: nowrap;
}
.konto-tab:hover { color: var(--color-gold); }
.konto-tab.active { color: var(--color-gold); border-bottom-color: var(--color-gold); }
.konto-flash {
    padding: .85rem 1.25rem;
    border-radius: var(--radius-sm);
    margin: 1.25rem 0 0;
    font-size: .9rem;
}
.konto-flash-ok  { background: rgba(39,174,96,.12); color: #2ecc71; border: 1px solid rgba(39,174,96,.25); }
.konto-flash-err { background: rgba(231,76,60,.12); color: #e74c3c; border: 1px solid rgba(231,76,60,.25); }
.konto-content { padding-top: 2rem; }
.konto-section-title { margin-bottom: 1.75rem; }
.konto-section-title h2 { font-size: 1.4rem; color: var(--text-primary); margin: 0 0 .35rem; }
.konto-section-sub { color: var(--text-muted); font-size: .9rem; margin: 0; }
.konto-empty { text-align: center; padding: 3rem 1rem; }
.konto-empty-icon { font-size: 3rem; margin-bottom: .75rem; }
.konto-empty-text { color: var(--text-muted); margin-bottom: 1.5rem; }
.konto-sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.konto-session-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color .2s, transform .2s;
}
.konto-session-card:hover {
    border-color: var(--color-gold-dark);
    transform: translateY(-2px);
}
.konto-session-img {
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.konto-session-status {
    position: absolute;
    top: .6rem;
    left: .6rem;
    font-size: .72rem;
    padding: .2rem .6rem;
    border-radius: 1rem;
    font-weight: 600;
}
.konto-session-status.active { background: rgba(52,152,219,.2); color: #3498db; border: 1px solid rgba(52,152,219,.35); }
.konto-session-status.solved { background: rgba(39,174,96,.2);  color: #2ecc71; border: 1px solid rgba(39,174,96,.35); }
.konto-session-status.paused { background: rgba(241,196,15,.15); color: #f1c40f; border: 1px solid rgba(241,196,15,.3); }
.konto-session-body { padding: 1rem; }
.konto-session-title { font-size: 1rem; font-weight: 600; color: var(--text-primary); margin: 0 0 .5rem; }
.konto-session-meta { display: flex; gap: .75rem; flex-wrap: wrap; font-size: .78rem; color: var(--text-muted); margin-bottom: .75rem; }
.konto-progress-wrap { margin-bottom: .75rem; }
.konto-progress-bar { height: 4px; background: rgba(255,255,255,.06); border-radius: 2px; overflow: hidden; margin-bottom: .3rem; }
.konto-progress-fill { height: 100%; background: linear-gradient(90deg, var(--color-gold), var(--color-gold-dark)); border-radius: 2px; transition: width .4s; }
.konto-progress-label { font-size: .72rem; color: var(--text-muted); }
.konto-session-solved-badge { font-size: .78rem; color: #2ecc71; font-style: italic; }
.konto-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}
.konto-case-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color .2s, transform .2s;
}
.konto-case-card:hover { border-color: var(--color-gold-dark); transform: translateY(-2px); }
.konto-case-img { height: 130px; background-size: cover; background-position: center; position: relative; }
.case-badge-free {
    position: absolute; top: .5rem; left: .5rem;
    background: var(--color-gold); color: var(--color-bg);
    font-size: .7rem; font-weight: 700; padding: .2rem .55rem;
    border-radius: 1rem; text-transform: uppercase; letter-spacing: .05em;
}
.case-badge-price {
    position: absolute; top: .5rem; left: .5rem;
    background: rgba(0,0,0,.65); color: var(--color-gold);
    font-size: .75rem; font-weight: 700; padding: .2rem .55rem;
    border-radius: 1rem; border: 1px solid rgba(201,168,76,.35);
}
.konto-case-body { padding: 1rem; }
.konto-case-title { font-size: .95rem; font-weight: 600; color: var(--text-primary); margin: 0 0 .4rem; }
.konto-case-desc { font-size: .82rem; color: var(--text-muted); margin: 0 0 .6rem; }
.konto-case-meta { display: flex; gap: .75rem; font-size: .78rem; color: var(--text-muted); margin-bottom: .75rem; }
.konto-profil-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}
.konto-profil-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}
.konto-profil-card-title {
    font-size: 1rem; font-weight: 600; color: var(--color-gold);
    margin: 0 0 1rem; padding-bottom: .6rem;
    border-bottom: 1px solid var(--color-border);
}
.konto-form-group { margin-bottom: .9rem; }
.konto-form-label { display: block; font-size: .82rem; color: var(--text-muted); margin-bottom: .35rem; }
.konto-form-input {
    width: 100%;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--color-border-2);
    border-radius: var(--radius-sm);
    padding: .6rem .85rem;
    color: var(--text-primary);
    font-size: .9rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color .2s;
}
.konto-form-input:focus { outline: none; border-color: rgba(201,168,76,.5); }
.konto-pw-wrap { position: relative; }
.konto-pw-wrap .konto-form-input { padding-right: 2.5rem; }
.konto-pw-toggle {
    position: absolute; right: .6rem; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; font-size: 1rem; padding: 0; line-height: 1;
}
.konto-pw-strength { height: 4px; background: rgba(255,255,255,.06); border-radius: 2px; margin-top: .4rem; overflow: hidden; }
.konto-pw-strength-fill { height: 100%; width: 0; border-radius: 2px; transition: width .3s, background .3s; }
.konto-pw-strength-label { font-size: .75rem; display: block; margin-top: .25rem; }
.konto-check-row { display: flex; align-items: flex-start; gap: .65rem; }
.konto-check-row input[type="checkbox"] { flex-shrink: 0; margin-top: .15rem; width: 1rem; height: 1rem; accent-color: var(--color-gold); cursor: pointer; }
.konto-check-row label { font-size: .85rem; color: var(--text-secondary); cursor: pointer; line-height: 1.45; }
.konto-profil-info { color: var(--text-primary); font-size: .9rem; margin: 0 0 .5rem; }
.konto-profil-ok   { color: #2ecc71; font-size: .85rem; margin: 0 0 .5rem; }
.konto-profil-warn { color: #e67e22; font-size: .85rem; margin: 0 0 .5rem; }
.konto-profil-hint { color: var(--text-muted); font-size: .8rem; margin: .5rem 0 0; }
.konto-info-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.konto-info-table td { padding: .4rem 0; color: var(--text-muted); }
.konto-info-table td:last-child { color: var(--text-primary); text-align: right; }

/* ═══════════════════════════════════════════════════════════════════════════
   LOGOUT-SEITE
   ═══════════════════════════════════════════════════════════════════════════ */
.logout-main {
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: var(--color-bg);
    padding: 4rem 0;
}
.logout-card {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    background: var(--color-bg-card);
    border: 1px solid rgba(201,168,76,.2);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
}
.logout-icon { font-size: 3rem; margin-bottom: 1rem; }
.logout-title { font-size: 1.6rem; color: var(--text-primary); margin: 0 0 .75rem; }
.logout-text { color: var(--text-muted); font-size: .95rem; margin: 0 0 2rem; }
.logout-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Responsive ── */
@media (max-width: 640px) {
    .konto-hero-inner { flex-direction: column; align-items: flex-start; }
    .konto-tabs { overflow-x: auto; }
    .konto-tab { padding: .65rem 1rem; font-size: .82rem; }
    .konto-sessions-grid,
    .konto-cases-grid,
    .konto-profil-grid { grid-template-columns: 1fr; }
    .nav-user-name { display: none; }
}

/* ============================================================
   STRIPE / KAUF-INTEGRATION – Styles
   ============================================================ */

/* ── Warenkorb-Icon in der Navigation ── */
.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s;
  margin-right: 0.25rem;
}
.nav-cart:hover { color: var(--color-gold); }
.nav-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-gold);
  color: #0d0d0d;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

/* ── Login-Link (nicht eingeloggt) ── */
.nav-login-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-login-link:hover { color: var(--color-gold); }
.nav-login-link svg { flex-shrink: 0; }

/* ── Kauf-Button (btn-purchase) ── */
.btn-purchase,
.btn.btn-purchase,
a.btn-purchase {
  background: var(--color-gold);
  color: #0d0d0d;
  border: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s;
}
.btn-purchase:hover { background: var(--color-gold-light); transform: translateY(-1px); }

/* ── Preis-Zeile in Fallkarten ── */
.card-price-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.card-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-gold);
  font-family: var(--font-serif);
}

/* ── Kauf-Box auf der Falldetailseite ── */
.fall-purchase-box {
  background: rgba(201, 168, 76, 0.07);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.fall-price-display {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}
.fall-price-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gold);
  font-family: var(--font-serif);
  line-height: 1;
}
.fall-price-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.btn-start-investigation.btn-purchase {
  background: var(--color-gold);
  color: #0d0d0d;
}
.btn-start-investigation.btn-purchase:hover {
  background: var(--color-gold-light);
}
.fall-purchased-badge {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   COOKIE-CONSENT-BANNER (EU-DSGVO)
   ═══════════════════════════════════════════════════════════════════════════ */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1a1a1a;
  border-top: 1px solid #333;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.6);
  opacity: 1;
  transition: opacity 0.3s ease;
}
.cookie-consent__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}
.cookie-consent__text {
  flex: 1;
  font-size: 0.88rem;
  color: var(--text-muted, #aaa);
  line-height: 1.5;
}
.cookie-consent__text strong {
  display: block;
  color: var(--text-light, #e0e0e0);
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}
.cookie-consent__text p {
  margin: 0;
}
.cookie-consent__text a {
  color: var(--color-gold, #c9a84c);
  text-decoration: underline;
}
.cookie-consent__text a:hover {
  color: var(--color-gold-light, #e0c070);
}
.cookie-consent__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.cookie-consent__btn {
  padding: 0.55rem 1.25rem;
  border: none;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.cookie-consent__btn--primary {
  background: var(--color-gold, #c9a84c);
  color: #0d0d0d;
}
.cookie-consent__btn--primary:hover {
  background: var(--color-gold-light, #e0c070);
}
.cookie-consent__btn--secondary {
  background: #2e2e2e;
  color: var(--text-muted, #aaa);
  border: 1px solid #444;
}
.cookie-consent__btn--secondary:hover {
  background: #3a3a3a;
  color: var(--text-light, #e0e0e0);
}

/* Responsive: auf kleinen Screens stapeln */
@media (max-width: 640px) {
  .cookie-consent__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .cookie-consent__actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FRAGEN-LIMIT-BANNER (Spielsitzung)
   ═══════════════════════════════════════════════════════════════════════════ */
.question-limit-banner {
  padding: 0.55rem 1.5rem;
  font-size: 0.82rem;
  text-align: center;
  flex-shrink: 0;
  line-height: 1.5;
}
.question-limit-banner strong {
  display: block;
  margin-bottom: 0.15rem;
}
/* 80 %: Hinweis (Gold) */
.question-limit-banner--warning {
  background: rgba(201, 168, 76, 0.1);
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--color-gold, #c9a84c);
}
/* 90 %: Warnung (Orange) */
.question-limit-banner--critical {
  background: rgba(200, 100, 20, 0.15);
  border-bottom: 1px solid rgba(200, 100, 20, 0.35);
  color: #e07030;
}
/* 100 %: Gesperrt (Rot) */
.question-limit-banner--full {
  background: rgba(139, 26, 26, 0.2);
  border-bottom: 1px solid rgba(139, 26, 26, 0.4);
  color: #e06060;
  padding: 0.75rem 1.5rem;
}
/* Topup-Bereich innerhalb des vollen Banners */
.qlb-main {
  margin-bottom: 0.5rem;
}
.qlb-topup {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(201, 168, 76, 0.25);
  text-align: center;
}
.qlb-topup-text {
  margin: 0 0 0.5rem;
  color: #ddd;
  font-size: 0.9rem;
}
.qlb-topup-hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #888;
}
/* Gold-Button für Topup */
.btn-gold {
  background: linear-gradient(135deg, #c9a84c, #a07830);
  color: #1a1209;
  border: none;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  border-radius: 6px;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}
.btn-gold:hover {
  opacity: 0.88;
}
.btn-gold:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Social-Media-Sektion (Startseite) ── */
.social-section {
  padding: 3rem 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-2);
}
.social-inner {
  text-align: center;
}
.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: all 0.2s;
  background: rgba(255,255,255,0.05);
}
.social-link:hover {
  border-color: currentColor;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  background: rgba(255,255,255,0.08);
}
.social-link--instagram:hover { color: #e1306c; border-color: #e1306c; }
.social-link--facebook:hover  { color: #1877f2; border-color: #1877f2; }
.social-link--tiktok:hover    { color: #ff0050; border-color: #ff0050; }
.social-link--youtube:hover   { color: #ff0000; border-color: #ff0000; }
.social-link--twitter:hover   { color: #e7e7e7; border-color: #e7e7e7; }
.social-link--linkedin:hover  { color: #0a66c2; border-color: #0a66c2; }

/* ── Ermittlerprofil-Tab (mein-konto.php?tab=ermittler) ─────────────────── */
/* ═══════════════════════════════════════════════════════════════════════════
   ERMITTLERPROFIL – Redesign
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hero-Karte: Rang + XP */
.ermittler-hero {
    background: linear-gradient(135deg, rgba(201,168,76,.10) 0%, rgba(30,20,10,.6) 100%);
    border: 1px solid rgba(201,168,76,.3);
    border-radius: 14px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
.ermittler-hero::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(201,168,76,.12) 0%, transparent 70%);
    pointer-events: none;
}
.ermittler-rank-badge {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-shrink: 0;
}
.ermittler-rank-icon {
    font-size: 3.5rem;
    line-height: 1;
    filter: drop-shadow(0 0 12px rgba(201,168,76,.4));
}
.ermittler-rank-label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--text-muted);
    margin-bottom: .2rem;
}
.ermittler-rank-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: .02em;
}
.ermittler-xp-block   { flex: 1; min-width: 220px; }
.ermittler-xp-label   {
    display: flex;
    justify-content: space-between;
    margin-bottom: .5rem;
    font-size: .85rem;
    font-weight: 600;
}
.ermittler-xp-bar {
    height: 10px;
    background: rgba(255,255,255,.08);
    border-radius: 5px;
    overflow: hidden;
}
.ermittler-xp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-gold) 0%, #f0d080 100%);
    border-radius: 5px;
    transition: width .8s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 0 8px rgba(201,168,76,.5);
}

/* Rangliste-Link */
.ermittler-ranking-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: .8rem;
    font-size: .8rem;
    color: var(--color-gold);
    text-decoration: none;
    opacity: .8;
    transition: opacity .15s;
}
.ermittler-ranking-link:hover { opacity: 1; text-decoration: underline; }

/* Statistik-Kacheln */
.ermittler-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.ermittler-stat {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    padding: 1.2rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    transition: border-color .15s, background .15s;
}
.ermittler-stat:hover {
    background: rgba(201,168,76,.06);
    border-color: rgba(201,168,76,.2);
}
.ermittler-stat-icon { font-size: 1.6rem; }
.ermittler-stat-val  { font-size: 1.6rem; font-weight: 700; color: var(--color-gold); line-height: 1; }
.ermittler-stat-lbl  { font-size: .68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }

/* Abzeichen-Sektion */
.ermittler-section       { margin-top: 2rem; }
.ermittler-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.2rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.ermittler-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.ermittler-section-count {
    font-size: .8rem;
    color: var(--color-gold);
    font-weight: 400;
}

/* Kategorie-Gruppe */
.ermittler-cat-group { margin-bottom: 1.5rem; }
.ermittler-cat-label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-muted);
    margin-bottom: .6rem;
    padding-left: .2rem;
}

/* Badge-Grid */
.ermittler-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: .85rem;
}

/* Badge-Card */
.ermittler-badge {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    padding: 1rem .75rem .8rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    cursor: default;
    transition: border-color .2s, background .2s, transform .15s;
    position: relative;
}
.ermittler-badge.unlocked {
    border-color: rgba(201,168,76,.3);
    background: rgba(201,168,76,.05);
}
.ermittler-badge.unlocked:hover {
    border-color: rgba(201,168,76,.6);
    background: rgba(201,168,76,.09);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(201,168,76,.15);
}
.ermittler-badge.locked {
    opacity: .55;
}
.ermittler-badge-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: .1rem;
}
.ermittler-badge.locked .ermittler-badge-icon {
    filter: grayscale(1);
    opacity: .4;
}
.ermittler-badge-name {
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.25;
}
.ermittler-badge.locked .ermittler-badge-name { opacity: .5; }
.ermittler-badge-desc {
    font-size: .65rem;
    color: var(--text-muted);
    line-height: 1.3;
    display: none;
}
.ermittler-badge.unlocked:hover .ermittler-badge-desc { display: block; }
.ermittler-badge-date {
    font-size: .65rem;
    color: var(--color-gold);
    font-weight: 500;
    margin-top: .1rem;
}
.ermittler-badge-lock {
    font-size: .65rem;
    color: var(--text-muted);
    opacity: .5;
}

/* Rarity-Indikator */
.ermittler-badge-rarity {
    position: absolute;
    top: .4rem; right: .4rem;
    font-size: .55rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .1rem .3rem;
    border-radius: 3px;
    font-weight: 700;
}
.rarity-common    { background: rgba(255,255,255,.08); color: var(--text-muted); }
.rarity-rare      { background: rgba(59,130,246,.15);  color: #60a5fa; }
.rarity-epic      { background: rgba(139,92,246,.15);  color: #a78bfa; }
.rarity-legendary { background: rgba(201,168,76,.2);   color: var(--color-gold); }

/* Hinweis-Banner */
.ermittler-badges-hint {
    background: rgba(201,168,76,.07);
    border: 1px solid rgba(201,168,76,.2);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    font-size: .88rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

/* Datenschutz-Toggle */
.ermittler-privacy-form { max-width: 540px; }
.ermittler-toggle-label {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    cursor: pointer;
    padding: .9rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.07);
    background: rgba(255,255,255,.03);
    transition: border-color .15s;
}
.ermittler-toggle-label:hover { border-color: rgba(201,168,76,.3); }
.ermittler-toggle-label input[type="checkbox"] {
    margin-top: .25rem;
    accent-color: var(--color-gold);
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}
.ermittler-toggle-text { line-height: 1.45; font-size: .88rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   RANGLISTE
   ═══════════════════════════════════════════════════════════════════════════ */
.rangliste-main {
    min-height: 80vh;
    background: var(--color-bg);
    padding-top: var(--header-h, 72px);
    padding-bottom: 4rem;
}
.rangliste-hero {
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-3) 60%, var(--color-bg) 100%);
    border-bottom: 1px solid rgba(201,168,76,.2);
    padding: 2.5rem 0 2rem;
    text-align: center;
}
.rangliste-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: var(--text-primary);
    margin: .4rem 0 .6rem;
}
.rangliste-subtitle { color: var(--text-muted); font-size: .95rem; margin: 0 0 .75rem; }
.rangliste-count {
    display: inline-block;
    background: rgba(201,168,76,.08);
    border: 1px solid rgba(201,168,76,.2);
    border-radius: 2rem;
    padding: .25rem 1rem;
    font-size: .82rem;
    color: var(--color-gold);
    margin: 0;
}
.rangliste-container { padding-top: 2rem; }
.rangliste-my-pos {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    background: rgba(201,168,76,.07);
    border: 1px solid rgba(201,168,76,.25);
    border-radius: var(--radius-md);
    padding: .85rem 1.25rem;
    margin-bottom: 2rem;
    font-size: .9rem;
}
.rangliste-my-pos-hidden { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.08); }
.rangliste-my-pos-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--color-gold); font-weight: 600; }
.rangliste-my-pos-num { font-size: 1.4rem; font-weight: 700; color: var(--text-primary); }
.rangliste-my-pos-detail { color: var(--text-secondary); font-size: .88rem; }
.rangliste-podest {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.podest-card {
    text-align: center;
    background: var(--color-bg-card);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.25rem 1.25rem;
    min-width: 150px;
    flex: 0 0 auto;
}
.podest-gold   { border-color: rgba(201,168,76,.5); background: rgba(201,168,76,.06); }
.podest-silver { border-color: rgba(192,192,192,.3); }
.podest-bronze { border-color: rgba(176,141,87,.3); }
.podest-first  { transform: translateY(-1rem); }
.podest-medal  { font-size: 2rem; margin-bottom: .4rem; }
.podest-avatar { font-size: 1.8rem; margin-bottom: .5rem; }
.podest-name   { font-size: .9rem; font-weight: 700; color: var(--text-primary); margin-bottom: .2rem; }
.podest-rank   { font-size: .75rem; color: var(--text-muted); margin-bottom: .4rem; }
.podest-xp     { font-size: 1rem; font-weight: 700; color: var(--color-gold); }
.podest-solved { font-size: .78rem; color: var(--text-muted); margin-top: .2rem; }
.rangliste-table-wrap { overflow-x: auto; }
.rangliste-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.rangliste-table th { text-align: left; padding: .6rem .75rem; color: var(--text-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid rgba(255,255,255,.07); }
.rangliste-table td { padding: .7rem .75rem; border-bottom: 1px solid rgba(255,255,255,.04); color: var(--text-secondary); }
.rangliste-table tr:hover td { background: var(--color-bg-hover); }
.rangliste-row-me td { background: rgba(201,168,76,.05); }
.rangliste-own-row td { background: rgba(201,168,76,.04); }
.rangliste-avatar-inline { font-size: 1rem; margin-right: .4rem; }
.rangliste-name-cell { font-weight: 600; color: var(--text-primary); }
.rangliste-name a { color: var(--text-primary); text-decoration: none; font-weight: 600; }
.rangliste-name a:hover { color: var(--color-gold); }
.rangliste-me-badge, .rangliste-you-badge {
    display: inline-block;
    background: var(--color-gold);
    color: var(--color-bg);
    border-radius: 1rem;
    padding: 1px 7px;
    font-size: .7rem;
    font-weight: 700;
    margin-left: .4rem;
}
.rangliste-rank-pill, .rangliste-rank-badge {
    display: inline-block;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 1rem;
    padding: 2px 9px;
    font-size: .75rem;
    color: var(--text-muted);
}
.rangliste-rank-badge { margin-left: .4rem; font-size: .7rem; }
.rangliste-score { color: var(--color-gold); font-weight: 600; }
.rangliste-empty { text-align: center; padding: 4rem 1rem; color: var(--text-muted); }
.rangliste-empty h2 { color: var(--text-secondary); margin-bottom: .5rem; }
.rangliste-cta {
    text-align: center;
    background: var(--color-bg-card);
    border: 1px solid rgba(201,168,76,.2);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    margin-top: 3rem;
}
.rangliste-cta h3 { color: var(--text-primary); font-size: 1.3rem; margin-bottom: .5rem; }
.rangliste-cta p  { color: var(--text-muted); }
.rangliste-tabs { display: flex; gap: 0; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 2rem; }
.rangliste-tab { background: none; border: none; border-bottom: 2px solid transparent; padding: .75rem 1.5rem; font-size: .9rem; color: var(--text-muted); cursor: pointer; transition: color .2s, border-color .2s; margin-bottom: -1px; font-family: inherit; }
.rangliste-tab:hover { color: var(--text-primary); }
.rangliste-tab.active { color: var(--color-gold); border-bottom-color: var(--color-gold); }
.rangliste-tab-content { display: none; }
.rangliste-tab-content.active { display: block; }
.rangliste-case-select-wrap { margin-bottom: 1.5rem; }
.rangliste-case-select { background: var(--color-bg-3); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-sm); padding: .5rem .75rem; color: var(--text-primary); font-size: .88rem; min-width: 280px; }
.rangliste-own-result { background: var(--color-bg-card); border: 1px solid rgba(201,168,76,.2); border-radius: var(--radius-md); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.rangliste-own-result-title { font-size: .8rem; color: var(--color-gold); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 1rem; }
.rangliste-own-result-grid { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.rangliste-own-stat { text-align: center; }
.rangliste-own-val { display: block; font-size: 1.3rem; font-weight: 700; color: var(--text-primary); }
.rangliste-own-lbl { display: block; font-size: .75rem; color: var(--text-muted); margin-top: .2rem; }
.rangliste-own-stat--highlight .rangliste-own-val { color: var(--color-gold); }
.rangliste-case-title { font-size: 1rem; color: var(--text-secondary); margin-bottom: 1rem; }
.rangliste-own-pos { display: inline-block; background: rgba(201,168,76,.08); border: 1px solid rgba(201,168,76,.25); border-radius: 2rem; padding: .3rem 1rem; font-size: .88rem; color: var(--color-gold); margin-top: .5rem; }
@media (max-width: 600px) {
    .rangliste-col-rate { display: none; }
    .podest-first { transform: none; }
}

/* ─── CREDITS ──────────────────────────────────────────────────────────────── */
.credits-balance-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid var(--color-gold);
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 0 30px rgba(232,184,109,.15);
}
.credits-balance-amount {
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1;
}
.credits-balance-label {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: .5rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.credits-balance-value {
    font-size: .95rem;
    color: var(--text-secondary);
    margin-top: .75rem;
}
.credits-voucher-card { margin-bottom: 2rem; }
.credits-voucher-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}
.credits-voucher-form .konto-form-input { flex: 1; min-width: 180px; }
.credits-voucher-msg {
    margin-top: .75rem;
    padding: .6rem 1rem;
    border-radius: .5rem;
    font-size: .9rem;
}
.credits-voucher-ok  { background: rgba(52,211,153,.15); color: #34d399; border: 1px solid #34d399; }
.credits-voucher-err { background: rgba(248,113,113,.15); color: #f87171; border: 1px solid #f87171; }
.credits-plus  { color: #34d399; font-weight: 700; }
.credits-minus { color: #f87171; font-weight: 700; }
.konto-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gold);
    color: #0d0d0d;
    font-size: .7rem;
    font-weight: 700;
    border-radius: 999px;
    min-width: 1.4em;
    height: 1.4em;
    padding: 0 .35em;
    margin-left: .4rem;
    vertical-align: middle;
}
/* Admin Credits-Formular */
.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem 1.5rem;
}
.admin-card { background: var(--bg-card); border-radius: .75rem; padding: 1.5rem; margin-bottom: 1.5rem; }
.admin-card-title { font-size: 1.1rem; font-weight: 600; color: var(--color-gold); margin-bottom: 1.25rem; }
.text-success { color: #34d399 !important; }
.text-danger  { color: #f87171 !important; }

/* ── FAQ: KI-Register (VRDACHT-Noir-Design) ───────────────────────────────── */
.faq-item-ki[open] { border-color: var(--color-gold); }

.faq-item-ki summary {
  font-family: var(--font-serif);
  letter-spacing: .03em;
}

.faq-ki-content {
  padding: 0 var(--space-xl) var(--space-xl);
}

.faq-ki-intro {
  color: var(--text-secondary);
  font-family: var(--font-literary);
  font-style: italic;
  line-height: 1.85;
  font-size: .97rem;
  margin-bottom: 1.75rem;
  border-left: 2px solid var(--color-gold-dark);
  padding-left: 1rem;
}

/* 2-Spalten-Grid für Ja/Nein-Karten */
.faq-ki-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
@media (max-width: 640px) {
  .faq-ki-grid { grid-template-columns: 1fr; }
}

.faq-ki-box {
  background: var(--color-bg-3);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem 1rem;
  border: 1px solid var(--color-border-2);
  position: relative;
}
.faq-ki-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.faq-ki-box--yes::before { background: linear-gradient(90deg, #34d399, transparent); }
.faq-ki-box--no::before  { background: linear-gradient(90deg, #f87171, transparent); }

.faq-ki-box-title {
  font-size: .88rem;
  font-weight: 700;
  margin: 0 0 .85rem;
  color: var(--color-cream);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.faq-ki-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.faq-ki-box ul li {
  font-size: .88rem;
  color: var(--color-cream-dim);
  line-height: 1.65;
  padding: .3rem 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.faq-ki-box ul li::before {
  flex-shrink: 0;
  margin-top: .15em;
  font-size: .8rem;
}
.faq-ki-box--yes ul li::before { content: '✓'; color: #34d399; }
.faq-ki-box--no  ul li::before { content: '✕'; color: #f87171; }
.faq-ki-box ul li:last-child { border-bottom: none; }

/* Textabschnitte */
.faq-ki-section,
.faq-ki-promise {
  margin-bottom: 1.4rem;
  padding: 1.1rem 1.25rem;
  background: var(--color-bg-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.faq-ki-section h4,
.faq-ki-promise h4 {
  font-size: .82rem;
  font-weight: 700;
  color: var(--color-gold);
  margin: 0 0 .6rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.faq-ki-section p,
.faq-ki-promise p {
  color: var(--text-secondary);
  font-family: var(--font-literary);
  font-style: italic;
  line-height: 1.8;
  font-size: .93rem;
  margin: 0 0 .4rem;
}
.faq-ki-section p:last-child,
.faq-ki-promise p:last-child { margin-bottom: 0; }

.faq-ki-promise-list {
  margin: .6rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .75rem;
}
.faq-ki-promise-list li {
  color: var(--color-gold-light);
  font-size: .9rem;
  font-style: italic;
  font-family: var(--font-literary);
  padding: .2rem .6rem;
  border: 1px solid var(--color-gold-dark);
  border-radius: 2rem;
  background: rgba(201,168,76,.06);
}

/* ── Referral / Freunde einladen ──────────────────────────────────────────── */
.referral-hero-box {
  background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
  border: 1px solid var(--color-gold-dark);
  border-radius: 10px;
  padding: 2rem 2rem 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.referral-hero-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.referral-hero-title { color: var(--color-gold); font-size: 1.25rem; margin: 0 0 .5rem; }
.referral-hero-sub { color: var(--text-muted); font-size: .9rem; max-width: 520px; margin: 0 auto 1.25rem; }
.referral-link-row { display: flex; gap: .5rem; max-width: 560px; margin: 0 auto 1rem; }
.referral-link-input { flex: 1; padding: 10px 14px; background: #0d0d0d; border: 1px solid #444; color: #e0e0e0; border-radius: 4px; font-family: monospace; font-size: .85rem; cursor: pointer; }
.referral-link-input:focus { outline: none; border-color: var(--color-gold); }
.referral-copy-btn { white-space: nowrap; }
.referral-share-row { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.referral-share-btn { display: inline-block; padding: 8px 20px; border-radius: 4px; font-weight: 600; font-size: .85rem; text-decoration: none; transition: opacity .15s; }
.referral-share-btn:hover { opacity: .85; }
.referral-share-wa   { background: #25d366; color: #fff; }
.referral-share-mail { background: #444; color: #e0e0e0; border: 1px solid #555; }
.referral-code-hint { color: var(--text-muted); font-size: .82rem; margin: 0; }
.referral-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.referral-stat-card { background: #1a1a1a; border: 1px solid #333; border-radius: 8px; padding: 1.25rem 1rem; text-align: center; }
.referral-stat-num { font-size: 2rem; font-weight: 700; color: var(--color-gold); line-height: 1; margin-bottom: .35rem; }
.referral-stat-label { color: var(--text-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.referral-stat-rewarded { border-color: rgba(46,204,113,.3); }
.referral-stat-rewarded .referral-stat-num { color: #2ecc71; }
.referral-stat-pending  { border-color: rgba(241,196,15,.3); }
.referral-stat-pending  .referral-stat-num { color: #f1c40f; }
.referral-empty-hint { background: #111; border: 1px dashed #333; border-radius: 8px; padding: 1.5rem; text-align: center; color: var(--text-muted); margin-bottom: 1.5rem; }
.referral-howto { background: #111; border: 1px solid #2a2a2a; border-radius: 8px; padding: 1.5rem 2rem; margin-top: 1.5rem; }
.referral-howto h3 { color: var(--color-gold); margin: 0 0 1rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.referral-steps { margin: 0; padding-left: 1.25rem; color: var(--text-secondary); font-size: .9rem; line-height: 1.7; }
.referral-steps li { margin-bottom: .5rem; }
.referral-steps strong { color: var(--text-primary); }
@media (max-width: 600px) {
  .referral-stats-row { grid-template-columns: 1fr; }
  .referral-link-row  { flex-direction: column; }
  .referral-hero-box  { padding: 1.5rem 1rem 1rem; }
}

/* ============================================================
   DARK-NAV: Transparentes Logo auf dunklen Seiten (Ermittlung)
   ============================================================ */
body.dark-nav #navLogoImg {
    content: attr(data-logo-dark);
    /* Fallback: JS übernimmt den Src-Wechsel */
}

/* ============================================================
   QUICK-ACTIONS-BAR: Slider + Footer mit Pause/Anklage
   ============================================================ */
/* Mobil: Quick-Actions als horizontaler Scroll-Slider */
@media (max-width: 900px) {
    .quick-actions {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0.5rem 1rem 0.4rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .quick-actions::-webkit-scrollbar { display: none; }
}

/* Footer-Zeile: Pause + Anklage */
.quick-actions-footer {
    display: flex;
    gap: 0.5rem;
    padding: 0.3rem 1rem 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.btn-pause-sm {
    background: transparent;
    border: 1px solid var(--color-border-2);
    color: var(--text-muted);
    padding: 0.28rem 0.75rem;
    border-radius: 20px;
    font-size: 0.74rem;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    font-family: var(--font-sans);
}
.btn-pause-sm:hover {
    border-color: var(--color-gold-dark);
    color: var(--color-gold);
    background: rgba(201,168,76,0.08);
}

.btn-accuse-sm {
    background: transparent;
    border: 1px solid rgba(201,168,76,0.4);
    color: var(--color-gold);
    padding: 0.28rem 0.75rem;
    border-radius: 20px;
    font-size: 0.74rem;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    font-family: var(--font-sans);
    font-weight: 600;
}
.btn-accuse-sm:hover {
    background: rgba(201,168,76,0.15);
    border-color: var(--color-gold);
}

/* Desktop: Footer ausblenden (Sidebar hat Pause/Anklage) */
@media (min-width: 901px) {
    .quick-actions-footer { display: none; }
    .quick-actions {
        flex-wrap: wrap;
        overflow-x: visible;
    }
}

/* Mobil: mobile-accuse ausblenden (jetzt im Footer) */
@media (max-width: 900px) {
    .mobile-accuse { display: none; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   BARRIEREFREIHEIT: HOCHKONTRAST-MODUS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Toggle-Button in der Navigation */
.nav-a11y-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    background: transparent;
    color: var(--text-secondary, #ccc);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    flex-shrink: 0;
}
.nav-a11y-btn:hover,
.nav-a11y-btn[aria-pressed="true"] {
    border-color: var(--color-gold, #c9a84c);
    color: var(--color-gold, #c9a84c);
    background: rgba(201,168,76,0.1);
}

/* ── Hochkontrast-Überschreibungen ────────────────────────────────────────── */
body.hochkontrast {
    --color-bg:         #000 !important;
    --color-bg-2:       #0a0a0a !important;
    --color-bg-3:       #111 !important;
    --color-bg-card:    #111 !important;
    --color-bg-hover:   #1a1a1a !important;
    --color-border:     #fff !important;
    --color-border-2:   #ddd !important;
    --color-gold:       #ffe066 !important;
    --color-gold-light: #fff099 !important;
    --text-primary:     #fff !important;
    --text-secondary:   #eee !important;
    --text-muted:       #ccc !important;
    background: #000 !important;
    color: #fff !important;
    font-size: 1.05em;
}

body.hochkontrast a {
    color: #ffe066 !important;
    text-decoration: underline !important;
}
body.hochkontrast a:hover {
    color: #fff !important;
}

body.hochkontrast .btn-primary,
body.hochkontrast .btn.btn-primary {
    background: #ffe066 !important;
    color: #000 !important;
    border: 2px solid #fff !important;
    font-weight: 700 !important;
}
body.hochkontrast .btn-secondary,
body.hochkontrast .btn.btn-secondary {
    background: #000 !important;
    color: #ffe066 !important;
    border: 2px solid #ffe066 !important;
}

body.hochkontrast .main-nav,
body.hochkontrast .nav-inner {
    background: #000 !important;
    border-bottom: 2px solid #fff !important;
}
body.hochkontrast .nav-links a,
body.hochkontrast .nav-login-link {
    color: #ffe066 !important;
}

body.hochkontrast .case-card,
body.hochkontrast .card,
body.hochkontrast .settings-card,
body.hochkontrast .faq-item {
    background: #111 !important;
    border: 2px solid #fff !important;
}

body.hochkontrast input,
body.hochkontrast select,
body.hochkontrast textarea {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}
body.hochkontrast input:focus,
body.hochkontrast select:focus,
body.hochkontrast textarea:focus {
    border-color: #ffe066 !important;
    outline: 2px solid #ffe066 !important;
}

body.hochkontrast .hero-section,
body.hochkontrast .hero-bg {
    filter: contrast(1.3) brightness(0.9);
}

body.hochkontrast .cookie-banner {
    background: #000 !important;
    border: 2px solid #fff !important;
    color: #fff !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ZAHLUNGS-BADGES (Kaufbereich Fallseite)
   Lizenzrechtlich sauber: Nur stilisierte Text-Badges, keine Markenlogos
   ═══════════════════════════════════════════════════════════════════════════ */
.payment-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin: 0.75rem 0 0.5rem;
}
.payment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    padding: 0 0.5rem;
    border-radius: 4px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.55);
    cursor: default;
    user-select: none;
}
.payment-badge--visa {
    background: #1a1f71;
    color: #fff;
    border-color: #1a1f71;
    font-style: italic;
    font-size: 0.68rem;
}
.payment-badge--mc {
    background: #252525;
    border-color: #444;
    width: 36px;
    padding: 0;
    position: relative;
    overflow: visible;
}
.mc-circle {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.mc-left  { background: #eb001b; left: 3px; }
.mc-right { background: #f79e1b; right: 3px; opacity: 0.9; }
.payment-badge--amex {
    background: #007bc1;
    color: #fff;
    border-color: #007bc1;
    font-size: 0.58rem;
}
.payment-badge--sepa {
    background: #003399;
    color: #fc0;
    border-color: #003399;
    font-size: 0.62rem;
}
.payment-badge--applepay {
    background: #000;
    color: #fff;
    border-color: #333;
    font-size: 0.62rem;
}
.payment-badge--googlepay {
    background: #fff;
    color: #5f6368;
    border-color: #dadce0;
    font-size: 0.62rem;
}
@media (max-width: 360px) {
    .payment-badge { height: 20px; font-size: 0.56rem; }
}
