/* ════════════════════════════════════════════════════════════════════════════
   HARAMAIN COMPANION · HAJJ-MODUL · CSS
   ────────────────────────────────────────────────────────────────────────────
   v414-LIGHT-CARDS · 02.05.2026
   ────────────────────────────────────────────────────────────────────────────

   ÄNDERUNGEN gegenüber v3.0 (1713 Zeilen → 2048 Zeilen):

   ✓ ENTFERNT: Teal-Override Block (alter Z. 1428-1713) — der hell-grüne
     Look der das Variante-B-Theme überschrieben hat. Theme jetzt sauber.

   ✓ STUFE 1 — Variante-B-Theme-Fixes (8 Diffs):
     • Du'ā-Box: Lila → Gold
     • "JETZT" Badge: Gold → Grün
     • Hero-Source: Weiß → Gold
     • Step-Cell .done: Gold → Teal
     • Day-Pill .active: Teal-Pfeil ↓ als ::after hinzugefügt
     • Hero-Card: Pseudo-Elemente entfernt (Clean-Look)
     • Step-Cell .active: Scale 1.04 statt 1.08, kein Outer-Ring
     • Day-Pill .done: Häkchen-Akzent + 0.65 Opazität (statt grünem Theme)

   ✓ NEU: Audio-Button (.hcj-step-dua-audio + Light-Variant)
          → Rendert per JS nur wenn audio_url in DB gesetzt ist

   ✓ NEU: Madhāhib-Section (.hcj-mad-* + bestehende .hcj-mdh-* gepatcht)
          → 5 Akzent-Farben: Standard (weiß) · Ḥanafī (teal) ·
            Mālikī (gold) · Shāfiʿī (violet) · Ḥanbalī (grün)

   ✓ NEU: Light-Mode (html[data-hc-theme="light"] · 139 Regeln)
          → Sandstein-Theme (#faf5e8 → #ebe1c8) · dunkler Text
          → Tracker, Du'ā, Madhāhib, alle Komponenten lesbar

   DEPENDENCIES (Schritt 3-4 — kommen separat):
   • hajj-v2.js: Audio-Button-Render-Logik · Cog-Button stopPropagation
   • settings.js: Theme-Selector (Dark/Light/Auto) · data-hc-theme schreiben
   • app.js: popstate-Handler für Back-Button · Theme bei Boot setzen
   • app.html: Inline-Script für Theme-Flash-Prevention


   ════════════════════════════════════════════════════════════════════════════
   v402 ADDITIONAL CHANGES (gegenüber v401):
   ────────────────────────────────────────────────────────────────────────────
   ✓ SUN-OPTIMIZED: Hintergrund heller (#1a3326 statt #050c07) für Mekka-Sonne
   ✓ MAROON TAG-PILLS: Day-Pill aktiv jetzt #8b2c2c (war Teal-Grün)
                        → klar unterscheidbar von Step-Gold und Done-Teal
   ✓ MEKKA-BACKGROUND: subtile Skyline-Silhouette als SVG-Pattern (data-URL)
                        → Sterne oben, Berge + Minarette + Kaaba unten
                        → ~3 KB inline, kein Extra-Download
   ✓ GLAS-CARDS: backdrop-filter: blur() auf Hero-Card und Du'ā-Box
                  → Hintergrund schimmert durch
                  → 2026-Premium-Look
   ✓ HIGH-CONTRAST LIGHT: Step-Cells weiß mit teal Border (war fast unsichtbar)
                          Day-Pill aktiv ebenfalls Maroon
   ✓ SETTINGS-TOGGLE: html[data-hc-bg="off"] versteckt Mekka-Pattern
                       (User kann's ausschalten in starker Sonne)

   ✓ SETTINGS-TOGGLE: html[data-hc-bg="off"] versteckt Mekka-Pattern
                       (User kann's ausschalten in starker Sonne)

   ════════════════════════════════════════════════════════════════════════════
   v403 ADDITIONAL CHANGES (gegenüber v402):
   ────────────────────────────────────────────────────────────────────────────
   ✓ KAABA-BEI-NACHT BACKGROUND: Schwarzer Himmel statt blau
                                  → Kaaba-Foto-Look mit goldenem Glow
                                  → Sterne am Himmel + Mosque-Silhouette unten
   ✓ LIGHT-MODE STEP-CELLS: Gold-Gradient statt Weiß (waren unsichtbar!)
                            → Inaktiv: helles Gold (#e8c878 → #c9a14a)
                            → Aktiv: kräftiger Gold + weiße Schrift + Schatten
                            → Done: dunkleres Gold mit grünem Häkchen-Akzent
   ✓ Mekka-Silhouette-SVG: Mosque-Skyline beibehalten, Schwerpunkt jetzt Kaaba

   ✓ Mekka-Silhouette-SVG: Mosque-Skyline beibehalten, Schwerpunkt jetzt Kaaba

   ════════════════════════════════════════════════════════════════════════════
   v404 FINAL FIXES (gegenüber v403, nach Sonne-Test):
   ────────────────────────────────────────────────────────────────────────────
   ✓ LIGHT-MODE STEP-CELLS: aktiver Step jetzt klar unterscheidbar
                              → Inaktiv: weiße Card + goldener Border
                              → Aktiv: kräftiges Gold + weiße Schrift + scale
   ✓ PATTERN: 4 Minarett-Linien entfernt (User: "die 4 Striche stören")
              → Nur Mosque-Silhouette + Kaaba bleiben
   ✓ LIGHT-MODE PATTERN: komplett aus (User: "die Cover stört")
                          → opacity: 0 in Light-Mode
   ✓ MADHĀHIB TOPIC-CARDS: weniger durchsichtig + blur
                            → Text klar lesbar, Pattern schimmert nicht durch

   ════════════════════════════════════════════════════════════════════════════
   v405 FINAL-FINAL FIX:
   ────────────────────────────────────────────────────────────────────────────
   ✓ KAABA AUS PATTERN ENTFERNT (User: "der ist nicht weg im OLED-Mode")
              → Nur Mosque-Silhouette (2 Berge) + Foreground bleiben
              → Sauberer, ablenkungsfreier Hintergrund

   ════════════════════════════════════════════════════════════════════════════
   v408 ADDITIONAL (Sub-Task 3 — Audio + Auto-Day):
   ────────────────────────────────────────────────────────────────────────────
   ✓ AUDIO-BUTTON STYLES: .hcj-step-dua-audio (gold-tinted glass pill)
                            .playing animated pulse state
                            Light-Mode variant

   ════════════════════════════════════════════════════════════════════════════
   v411 — Sub-Task 4 FINAL: 11 SVG-Animationen IN der Card:
   ────────────────────────────────────────────────────────────────────────────
   ✓ NEU .hcj-hero-anim Container 64×64 — sitzt in .hcj-hero-titlerow
   ✓ ALTE .hcj-step-anim entfernt (separate Box)
   ✓ 11 Animationen: ihram, tawaf, say (statisch), wuquf, jamarat,
                       halq (NEU frontal+Rasierer), bus, mabit, stones,
                       mosque (NEU), hady (NEU)
   ✓ SAʿY: rein statisch, nur Berge S/M, kein Glow, kein Pilger
   ✓ WUQŪF: Arme UNTEN am Körper
   ✓ HALQ: Frontal-Pilger + Rasierer fährt + fallende Haare
   ✓ MOSQUE: Mosque mit Mond, Sternen, pulsierende Fenster (für Gebete)
   ✓ HADY: Schaf atmet, Ohren zucken, Schwanz wackelt

   SERVICE WORKER:
   • sw.js CACHE_VERSION → 'hc-v413-LIGHT-ANIMS'
   ════════════════════════════════════════════════════════════════════════════ */

/* ── MODAL CONTAINER ─────────────────────────────────────────────────────── */
#hcj-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  -webkit-font-smoothing: antialiased;
}
.hcj-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 240ms ease-out;
}
.hcj-modal--open .hcj-overlay { opacity: 1; }

/* ── SCREEN ───────────────────────────────────────────────────────────── */
.hcj-screen {
  position: absolute;
  inset: 0;
  margin: 0 auto;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  /* v403: Kaaba bei Nacht — schwarzer Himmel + goldener Kaaba-Glow + Sterne */
  background:
    /* Dark overlay for readability */
    linear-gradient(180deg, rgba(8,12,18,0.55) 0%, rgba(15,15,12,0.45) 50%, rgba(15,12,8,0.7) 100%),
    /* Stars */
    radial-gradient(circle at 15% 5%, rgba(255,255,255,0.7) 0%, transparent 0.3%),
    radial-gradient(circle at 35% 8%, rgba(255,255,255,0.5) 0%, transparent 0.2%),
    radial-gradient(circle at 55% 4%, rgba(255,255,255,0.6) 0%, transparent 0.3%),
    radial-gradient(circle at 75% 9%, rgba(255,255,255,0.4) 0%, transparent 0.2%),
    radial-gradient(circle at 88% 3%, rgba(255,255,255,0.7) 0%, transparent 0.3%),
    radial-gradient(circle at 25% 14%, rgba(255,255,255,0.4) 0%, transparent 0.2%),
    radial-gradient(circle at 65% 12%, rgba(255,255,255,0.5) 0%, transparent 0.2%),
    /* Golden Kaaba glow at center-bottom */
    radial-gradient(ellipse at 50% 75%, rgba(232,180,90,0.5) 0%, rgba(180,130,60,0.3) 25%, transparent 55%),
    /* Mosque lights radiating */
    radial-gradient(ellipse at 30% 70%, rgba(220,180,120,0.25) 0%, transparent 35%),
    radial-gradient(ellipse at 70% 70%, rgba(220,180,120,0.25) 0%, transparent 35%),
    /* Schwarzer Himmel zu warmer Erde */
    linear-gradient(180deg, #050810 0%, #0a1018 25%, #1a1815 50%, #3a2818 70%, #4a3018 85%, #1a1410 100%);
  background-size: cover;
  color: #f0f4f1;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  transform: translateY(100%);
  transition: transform 280ms cubic-bezier(0.32, 0.72, 0, 1);
  overflow-x: hidden;
}
/* v403: Kaaba-fokussierte Silhouette */
.hcj-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 800' preserveAspectRatio='xMidYMax slice'%3E%3Cpath d='M0 660 L0 620 Q40 605 120 605 L160 590 L200 605 Q240 605 280 605 Q320 605 360 590 L400 605 Q440 605 480 620 L480 660 Z' fill='rgba(20,15,10,0.55)'/%3E%3Cpath d='M0 720 Q120 700 240 695 Q360 700 480 720 L480 800 L0 800 Z' fill='rgba(0,0,0,0.65)'/%3E%3C/svg%3E");
  background-size: 100% auto;
  background-position: center bottom;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  transition: opacity 240ms ease;
}
/* Settings-Toggle: User kann Hintergrund deaktivieren */
html[data-hc-bg="off"] .hcj-screen::before {
  opacity: 0;
}
/* Alle direkten Kinder MÜSSEN über dem Pattern liegen */
.hcj-screen > * {
  position: relative;
  z-index: 1;
}
.hcj-modal--open .hcj-screen { transform: translateY(0); }

/* ── STATUSBAR ────────────────────────────────────────────────────────── */
.hcj-statusbar {
  flex-shrink: 0;
  padding: 8px 18px 4px;
  padding-top: max(8px, env(safe-area-inset-top, 8px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 9.5px;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
}
.hcj-offline-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.25);
  border-radius: 999px;
  color: #4ade80;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hcj-offline-pill::before {
  content: ''; width: 5px; height: 5px;
  background: #4ade80; border-radius: 50%;
}

/* ── HEADER ───────────────────────────────────────────────────────────── */
.hcj-hdr {
  flex-shrink: 0;
  padding: 6px 18px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hcj-hdr-back, .hcj-hdr-cog {
  width: 36px; height: 36px;
  border-radius: 11px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: rgba(20,148,106,0.12);
  border: 1px solid rgba(20,148,106,0.25);
  color: #f0f4f1;
  transition: background 160ms;
  padding: 0;
}
.hcj-hdr-back:active, .hcj-hdr-cog:active { background: rgba(20,148,106,0.22); }
.hcj-hdr-back svg, .hcj-hdr-cog svg { width: 16px; height: 16px; stroke-width: 2; }
.hcj-hdr-mid { flex: 1; min-width: 0; text-align: center; }
.hcj-hdr-eyebrow {
  font-size: 9px;
  color: #14946a;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}
.hcj-hdr-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════════
   DAY-PICKER (Tag-Auswahl als horizontale Pills)
   ═══════════════════════════════════════════════════════════════════════ */
.hcj-day-picker {
  flex-shrink: 0;
  padding: 4px 18px 8px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.hcj-day-picker::-webkit-scrollbar { display: none; }

.hcj-day-pill {
  flex: 1 0 auto;
  min-width: 60px;
  padding: 8px 10px;
  border-radius: 10px;
  /* v402: helleres Weiß für sun-readable */
  background: rgba(255,255,255,0.32);
  border: 1px solid rgba(255,255,255,0.45);
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: all 160ms ease;
  color: #fff;
}
.hcj-day-pill:hover { background: rgba(255,255,255,0.42); color: #fff; }
.hcj-day-pill.done {
  opacity: 0.65;
  /* Hintergrund bleibt wie default — kein neues Farb-Theme */
  position: relative;
}
.hcj-day-pill.done::after {
  content: '✓';
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 8px;
  color: #2dd4bf;
  font-weight: 900;
  line-height: 1;
}
.hcj-day-pill.active {
  /* v402: Maroon (Burgundy) — distinct from green/gold/teal/violet */
  background: linear-gradient(135deg, rgba(139,44,44,0.65), rgba(107,31,31,0.7));
  color: #fff;
  border-color: rgba(180,80,80,0.85);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 2px 12px rgba(139,44,44,0.4);
  position: relative;
}
.hcj-day-pill.active::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid rgba(180,80,80,0.85);
}
.hcj-day-pill-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 2px;
}
.hcj-day-pill.active .hcj-day-pill-tag { opacity: 0.95; color: #fff; }
.hcj-day-pill.active .hcj-day-pill-name { color: #fff; }
.hcj-day-pill-name {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════════
   STEP-INDEX (Schritte des aktuellen Tages, nicht Tage!)
   ═══════════════════════════════════════════════════════════════════════ */
.hcj-step-idx-wrap {
  flex-shrink: 0;
  padding: 8px 18px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hcj-step-idx-label {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #2dd4bf;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hcj-step-idx-label::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 13px;
  background: #2dd4bf;
  border-radius: 999px;
  flex-shrink: 0;
}
.hcj-step-idx {
  flex: 1;
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: flex-end;
}
.hcj-step-cell {
  flex: 1;
  max-width: 50px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 8px;
  /* v402: helleres Teal mit weißer Schrift (sun-readable) */
  background: rgba(45,212,191,0.28);
  color: #fff;
  border: 1px solid rgba(45,212,191,0.55);
  cursor: pointer;
  transition: all 200ms ease;
  position: relative;
}
.hcj-step-cell:hover { background: rgba(45,212,191,0.25); }
.hcj-step-cell.done {
  background: rgba(45,212,191,0.25);
  color: #2dd4bf;
  border-color: rgba(45,212,191,0.45);
}
.hcj-step-cell.active {
  background: linear-gradient(135deg, #d4a843, #c9a14a);
  color: #1a0e00;
  border-color: #c9a14a;
  transform: scale(1.04);
  box-shadow: 0 4px 14px rgba(201,161,74,0.5);
}
.hcj-step-cell-check {
  font-size: 14px;
  line-height: 1;
}
/* v285: Fortschritts-Anzeige "X / Y erledigt" */
.hcj-step-progress {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
  white-space: nowrap;
}
.hcj-step-progress .done-count { color: #4ade80; }

/* ── TABS ────────────────────────────────────────────────────────────── */
.hcj-tabs {
  flex-shrink: 0;
  padding: 4px 20px;
  display: flex;
  gap: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hcj-tab {
  background: none;
  border: none;
  padding: 9px 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  color: rgba(255,255,255,0.5);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hcj-tab:hover { color: rgba(255,255,255,0.8); }
.hcj-tab.active { color: #fff; }
.hcj-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 2px;
  background: #2dd4bf;
  border-radius: 2px;
}
.hcj-tab-cnt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  padding: 2px 6px;
  background: rgba(20,148,106,0.15);
  border-radius: 999px;
  font-weight: 700;
  color: #14946a;
}
.hcj-tab:not(.active) .hcj-tab-cnt {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
}

/* ── CANVAS ────────────────────────────────────────────────────────── */
.hcj-canvas {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px 150px; /* v285: erhöht von 110 → 150px damit Du'ā nicht hinter CTA */
  -webkit-overflow-scrolling: touch;
  padding-bottom: max(150px, calc(env(safe-area-inset-bottom, 0px) + 130px));
}

/* ═══════════════════════════════════════════════════════════════════════
   ★ HERO-CARD (aktueller Schritt — MASSIV prominenter!)
   ═══════════════════════════════════════════════════════════════════════ */
.hcj-hero-card {
  position: relative;
  /* v402: Glass-Card with backdrop blur */
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 18px;
  padding: 18px 18px 20px;
  margin-bottom: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    0 8px 32px rgba(0,0,0,0.3);
  overflow: hidden;
}
/* Fallback if backdrop-filter not supported */
@supports not (backdrop-filter: blur(1px)) {
  .hcj-hero-card { background: rgba(255,255,255,0.32); }
}
/* Hero-Card pseudo-elements entfernt für Variante-B Clean-Look (v401) */
.hcj-hero-card.critical {
  background: linear-gradient(135deg, rgba(239,68,68,0.15) 0%, rgba(201,161,74,0.1) 100%);
  border-color: rgba(239,68,68,0.5);
  box-shadow: 
    0 12px 36px -10px rgba(239,68,68,0.4),
    0 0 0 1px rgba(239,68,68,0.18),
    inset 0 1px 0 rgba(255,255,255,0.08);
}
.hcj-hero-card.critical::after {
  background: linear-gradient(90deg, transparent 0%, rgba(239,68,68,0.6) 50%, transparent 100%);
}
.hcj-hero-card.is-done {
  background: linear-gradient(135deg, rgba(74,222,128,0.1) 0%, rgba(34,197,94,0.05) 100%);
  border-color: rgba(74,222,128,0.3);
  opacity: 0.85;
}
.hcj-hero-card.is-done::after {
  background: linear-gradient(90deg, transparent 0%, rgba(74,222,128,0.5) 50%, transparent 100%);
}

.hcj-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.hcj-hero-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hcj-hero-status.now {
  background: rgba(74,222,128,0.12);
  color: #4ade80;
  border: 1px solid rgba(74,222,128,0.28);
  box-shadow: 0 0 12px -2px rgba(74,222,128,0.3);
}
.hcj-hero-status.done {
  background: rgba(74,222,128,0.18);
  color: #4ade80;
  border: 1px solid rgba(74,222,128,0.4);
}
.hcj-hero-status-marker {
  width: 7px; height: 7px;
  background: #4ade80;
  border-radius: 50%;
  position: relative;
}
.hcj-hero-status.done .hcj-hero-status-marker { background: #4ade80; }
.hcj-hero-status-marker::after {
  content: '';
  position: absolute; inset: -3px;
  border: 1px solid #4ade80;
  border-radius: 50%;
  animation: hcj-pulse 1.8s infinite;
}
.hcj-hero-status.done .hcj-hero-status-marker::after { border-color: #4ade80; }
@keyframes hcj-pulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.8); }
}

.hcj-hero-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(201,161,74,0.18);
  color: #c9a14a;
  border: 1px solid rgba(201,161,74,0.4);
}
.hcj-hero-badge.critical {
  background: rgba(239,68,68,0.18);
  color: #fca5a5;
  border-color: rgba(239,68,68,0.4);
}

.hcj-hero-stepnum {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #2dd4bf;
  margin-bottom: 6px;
  position: relative; z-index: 1;
}

.hcj-hero-titlerow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  position: relative; z-index: 1;
}
.hcj-hero-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(45,212,191,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(45,212,191,0.28);
  box-shadow: 0 4px 12px -4px rgba(45,212,191,0.2);
}
.hcj-hero-title {
  flex: 1;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #fff;
}
.hcj-hero-instr {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(45,212,191,0.82);
  position: relative; z-index: 1;
  font-weight: 400;
}

.hcj-hero-source {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  padding: 5px 10px;
  background: rgba(201,161,74,0.1);
  border: 1px solid rgba(201,161,74,0.22);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 600;
  color: rgba(201,161,74,0.9);
  position: relative; z-index: 1;
}

.hcj-hero-extra-tracker {
  margin-top: 14px;
  padding: 12px;
  background: rgba(201,161,74,0.08);
  border: 1px solid rgba(201,161,74,0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative; z-index: 1;
}
.hcj-hero-extra-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(201,161,74,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.hcj-hero-extra-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 800;
  color: #c9a14a;
  letter-spacing: 0.05em;
}
.hcj-hero-extra-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════
   "ALS NÄCHSTES" Vorschau-Card (prominent mit Tag-Label & Pfeil)
   ═══════════════════════════════════════════════════════════════════════ */
.hcj-next-preview {
  margin-bottom: 16px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(20,148,106,0.1) 0%, rgba(20,148,106,0.04) 100%);
  border: 1.5px solid rgba(20,148,106,0.3);
  border-radius: 14px;
  cursor: pointer;
  transition: all 200ms ease;
  position: relative;
  overflow: hidden;
}
.hcj-next-preview::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #14946a, #0e6e4f);
}
.hcj-next-preview:hover {
  background: linear-gradient(135deg, rgba(20,148,106,0.18) 0%, rgba(20,148,106,0.08) 100%);
  border-color: rgba(20,148,106,0.5);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(20,148,106,0.3);
}
.hcj-next-preview:active { transform: scale(0.99); }

.hcj-next-preview--day {
  background: linear-gradient(135deg, rgba(167,139,250,0.1) 0%, rgba(167,139,250,0.04) 100%);
  border-color: rgba(167,139,250,0.3);
}
.hcj-next-preview--day::before {
  background: linear-gradient(180deg, #a78bfa, #8b5cf6);
}
.hcj-next-preview--day:hover {
  background: linear-gradient(135deg, rgba(167,139,250,0.18) 0%, rgba(167,139,250,0.08) 100%);
  border-color: rgba(167,139,250,0.5);
}

.hcj-next-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #14946a;
  margin-bottom: 8px;
}
.hcj-next-preview--day .hcj-next-label {
  color: #a78bfa;
}
.hcj-next-arrow-down {
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  animation: hcj-arrow-bounce 1.6s ease-in-out infinite;
}
@keyframes hcj-arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}
.hcj-next-tag {
  margin-left: auto;
  padding: 2px 8px;
  background: rgba(20,148,106,0.15);
  color: #14946a;
  border-radius: 999px;
  font-size: 8.5px;
  letter-spacing: 0.1em;
}
.hcj-next-preview--day .hcj-next-tag {
  background: rgba(167,139,250,0.15);
  color: #a78bfa;
}

.hcj-next-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 8px;
}
.hcj-next-icon {
  font-size: 28px;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.95;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.hcj-next-mid { flex: 1; min-width: 0; }
.hcj-next-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.hcj-next-arrow {
  width: 22px;
  height: 22px;
  color: #14946a;
  flex-shrink: 0;
  animation: hcj-arrow-pulse 1.8s ease-in-out infinite;
}
.hcj-next-preview--day .hcj-next-arrow { color: #a78bfa; }
@keyframes hcj-arrow-pulse {
  0%, 100% { transform: translateX(0); opacity: 0.7; }
  50% { transform: translateX(3px); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════════════
   SECTION-DIVIDER
   ═══════════════════════════════════════════════════════════════════════ */
.hcj-section-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 10px;
}
.hcj-section-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}
.hcj-section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ═══════════════════════════════════════════════════════════════════════
   SUN-FIGURE (Tag 2 Tracker)
   ═══════════════════════════════════════════════════════════════════════ */
.hcj-fig-sun-tiny { animation: hcj-sun-pulse 4s ease-in-out infinite; }
@keyframes hcj-sun-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(251,191,36,0.4)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 8px rgba(251,191,36,0.6)); }
}
.hcj-sun-rays-tiny { animation: hcj-sun-rotate 40s linear infinite; transform-origin: center; transform-box: fill-box; }
@keyframes hcj-sun-rotate { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════════════
   CONTENT BLOCKS (Hadith, Quran, Du'a, Fiqh)
   ═══════════════════════════════════════════════════════════════════════ */
.hcj-blk {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid var(--hcj-blk-c, #14946a);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.hcj-blk[data-type="quran"]  { --hcj-blk-c: #14946a; }
.hcj-blk[data-type="hadith"] { --hcj-blk-c: #c9a14a; }
.hcj-blk[data-type="dua"]    { --hcj-blk-c: #c9a14a; }
.hcj-blk[data-type="fiqh"]   { --hcj-blk-c: #4ade80; }
.hcj-blk-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 10px;
  align-items: start;
}
.hcj-blk-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
}
.hcj-blk-meta-label {
  font-size: 9.5px;
  margin-bottom: 2px;
  color: var(--hcj-blk-c);
}
.hcj-blk-meta-ref {
  opacity: 0.55;
  font-weight: 500;
  color: #fff;
}
.hcj-blk-arabic {
  font-family: 'Amiri', 'Scheherazade New', serif;
  font-size: 18px;
  line-height: 1.85;
  direction: rtl;
  font-weight: 700;
  margin-bottom: 4px;
  text-align: right;
  color: #f0f4f1;
}
.hcj-blk-translit {
  font-size: 11px;
  line-height: 1.5;
  margin-bottom: 4px;
  font-style: italic;
  color: rgba(255,255,255,0.6);
}
[data-hc-translit="off"] .hcj-blk-translit { display: none; }
.hcj-blk-text {
  font-size: 12.5px;
  line-height: 1.55;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.92);
}
.hcj-blk-source {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(201,161,74,0.1);
  color: #c9a14a;
  border: 1px solid rgba(201,161,74,0.2);
  text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════════════
   MADHĀHIB-SECTION (Akkordeon - alle eingeklappt)
   ═══════════════════════════════════════════════════════════════════════ */
.hcj-madhahib {
  margin-top: 24px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(167,139,250,0.08), rgba(167,139,250,0.02));
  border: 1px solid rgba(167,139,250,0.25);
  border-radius: 14px;
}
.hcj-madhahib-hdr {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.hcj-madhahib-icon { font-size: 18px; }
.hcj-madhahib-title {
  font-size: 13px;
  font-weight: 700;
  color: #a78bfa;
}
.hcj-madhahib-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  margin-bottom: 14px;
  font-style: italic;
}
.hcj-madhahib-block {
  margin-bottom: 8px;
  /* v404: Höhere Opacity + blur — Pattern darunter schimmert nicht mehr durch */
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 200ms ease;
}
@supports not (backdrop-filter: blur(1px)) {
  .hcj-madhahib-block { background: rgba(255,255,255,0.18); }
}
.hcj-madhahib-block.open {
  border-color: rgba(167,139,250,0.35);
}
.hcj-madhahib-block-hdr {
  width: 100%;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  /* v404: Lila-Akzent stärker (war 0.06 — kaum sichtbar) */
  background: rgba(167,139,250,0.14);
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  text-align: left;
  transition: background 160ms ease;
}
.hcj-madhahib-block-hdr:hover {
  background: rgba(167,139,250,0.22);
}
.hcj-madhahib-block.open .hcj-madhahib-block-hdr {
  background: rgba(167,139,250,0.22);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.hcj-madhahib-block-icon { font-size: 18px; flex-shrink: 0; }
.hcj-madhahib-block-title {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.hcj-madhahib-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: rgba(167,139,250,0.7);
  transition: transform 240ms ease;
}
.hcj-madhahib-block.open .hcj-madhahib-chevron {
  transform: rotate(180deg);
}
.hcj-madhahib-block-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms cubic-bezier(0.4, 0.0, 0.2, 1);
}
.hcj-madhahib-block.open .hcj-madhahib-block-content {
  max-height: 5000px;
}
.hcj-madhahib-block-content > .hcj-vgl-target {
  padding: 12px 14px;
}
@keyframes hcj-accordion-open {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════════════
   BOTTOM-NAV (Vor / Erledigt / Zurück)
   ═══════════════════════════════════════════════════════════════════════ */
.hcj-bottom-cta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 20; /* v286: FIX — muss über canvas-Stacking-Context liegen */
  padding: 14px 18px;
  padding-bottom: max(14px, calc(env(safe-area-inset-bottom, 0px) + 14px));
  background: linear-gradient(180deg, transparent 0%, rgba(10,15,13,0.95) 30%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.hcj-bottom-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.hcj-cta-side {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.14);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 160ms ease;
  font-family: inherit;
}
@media (hover: hover) and (pointer: fine) {
  .hcj-cta-side:hover { background: rgba(255,255,255,0.22); }
}
.hcj-cta-side:active { transform: scale(0.95); }
.hcj-cta-side.disabled, .hcj-cta-side[disabled] {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}
.hcj-cta-side svg { width: 18px; height: 18px; }

.hcj-cta-main {
  flex: 1;
  border: 1px solid rgba(20,148,106,0.5);
  height: 42px;
  border-radius: 13px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #14946a, #0a6a48);
  color: #fff;
  box-shadow: 0 4px 14px rgba(20,148,106,0.45);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .hcj-cta-main:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(20,148,106,0.6); }
}
.hcj-cta-main:active { transform: translateY(0); }
.hcj-cta-main.is-done {
  background: linear-gradient(135deg, #4ade80, #22c55e);
}
.hcj-cta-main svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════════════
   LOADING / EMPTY / ERROR
   ═══════════════════════════════════════════════════════════════════════ */
.hcj-loading {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255,255,255,0.5);
}
.hcj-loading-spinner {
  display: inline-block;
  width: 24px; height: 24px;
  border: 2px solid rgba(20,148,106,0.2);
  border-top-color: #14946a;
  border-radius: 50%;
  animation: hcj-spin 0.8s linear infinite;
  margin-bottom: 12px;
}
@keyframes hcj-spin { to { transform: rotate(360deg); } }
.hcj-error {
  text-align: center;
  padding: 30px 20px;
  color: #ef4444;
  font-size: 13px;
}
.hcj-empty {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}

/* ═══════════════════════════════════════════════════════════════════════
   FONT-SCALE (von HC_Settings)
   ═══════════════════════════════════════════════════════════════════════ */
html[data-hc-font="small"]  .hcj-blk-text     { font-size: calc(12.5px * 0.875); }
html[data-hc-font="large"]  .hcj-blk-text     { font-size: calc(12.5px * 1.15); }
html[data-hc-font="small"]  .hcj-blk-arabic   { font-size: calc(18px * 0.875); }
html[data-hc-font="large"]  .hcj-blk-arabic   { font-size: calc(18px * 1.15); }
html[data-hc-font="small"]  .hcj-blk-translit { font-size: calc(11px * 0.875); }
html[data-hc-font="large"]  .hcj-blk-translit { font-size: calc(11px * 1.15); }
html[data-hc-font="small"]  .hcj-hero-title   { font-size: calc(22px * 0.92); }
html[data-hc-font="large"]  .hcj-hero-title   { font-size: calc(22px * 1.1); }
html[data-hc-font="small"]  .hcj-hero-instr   { font-size: calc(14px * 0.92); }
html[data-hc-font="large"]  .hcj-hero-instr   { font-size: calc(14px * 1.1); }

/* ═══════════════════════════════════════════════════════════════════════
   v3.2 · TRACKER (Tawāf · Saʿy · Ramy)
   ═══════════════════════════════════════════════════════════════════════ */
.hcj-tracker {
  margin-top: 14px;
  padding: 12px 13px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  position: relative;
  z-index: 1;
}
.hcj-tracker-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}
.hcj-tracker-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.hcj-tracker-icon { font-size: 14px; }
.hcj-tracker-count {
  font-size: 12px;
  font-weight: 800;
  color: #c9a14a;
}

/* Circles for Tawāf / Saʿy — Variante B */
.hcj-tracker-circles {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}
.hcj-tracker-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  transition: all 200ms ease;
}
.hcj-tracker-circle.done {
  background: linear-gradient(135deg, #d4a843, #c9a14a);
  border-color: transparent;
  color: #1a0e00;
  box-shadow: 0 2px 8px rgba(201,161,74,0.4);
}

/* Stones for Ramy — Variante B */
.hcj-tracker-stones {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.hcj-tracker-stones-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.hcj-tracker-stones-label {
  width: 38px;
  flex-shrink: 0;
  font-size: 8px;
  font-weight: 700;
  color: rgba(201,161,74,0.85);
}
.hcj-tracker-stones-dots {
  display: flex;
  gap: 4px;
  flex: 1;
}
.hcj-tracker-stone {
  flex: 1;
  height: 16px;
  border-radius: 4px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  transition: all 200ms ease;
}
.hcj-tracker-stone.done {
  background: #c9a14a;
  border-color: transparent;
}

/* Tracker Buttons */
.hcj-tracker-btns {
  display: flex;
  gap: 8px;
  align-items: center;
}
.hcj-tracker-btn {
  border: none;
  font-family: inherit;
  cursor: pointer;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 160ms ease;
  font-weight: 800;
}
.hcj-tracker-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.hcj-tracker-btn--minus {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.18);
}
.hcj-tracker-btn--minus svg { width: 18px; height: 18px; }
.hcj-tracker-btn--minus:hover:not(:disabled) { background: rgba(255,255,255,0.16); }
.hcj-tracker-btn--plus {
  flex: 1;
  height: 40px;
  background: linear-gradient(135deg, #d4a843, #c9a14a);
  color: #1a0e00;
  font-size: 11.5px;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(201,161,74,0.4);
}
.hcj-tracker-btn--plus svg { width: 18px; height: 18px; }
.hcj-tracker-btn--plus:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(201,161,74,0.5);
}
.hcj-tracker-btn--plus:active:not(:disabled) { transform: translateY(0); }
.hcj-tracker-btn--reset {
  width: 44px;
  height: 44px;
  background: rgba(239,68,68,0.08);
  color: rgba(239,68,68,0.7);
  border: 1px solid rgba(239,68,68,0.2);
}
.hcj-tracker-btn--reset svg { width: 16px; height: 16px; }
.hcj-tracker-btn--reset:hover { background: rgba(239,68,68,0.15); }


/* ═══════════════════════════════════════════════════════════════════════
   v3.2 · STEP-DU'A (klappbar — eingeklappt by default)
   ═══════════════════════════════════════════════════════════════════════ */
.hcj-step-dua {
  margin-bottom: 16px;
  /* v402: Gold glass */
  background: rgba(201,161,74,0.22);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  border: 1px solid rgba(201,161,74,0.42);
  border-radius: 0 14px 14px 0;
  position: relative;
  overflow: hidden;
}
@supports not (backdrop-filter: blur(1px)) {
  .hcj-step-dua { background: rgba(201,161,74,0.32); }
}
.hcj-step-dua::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: rgba(201,161,74,0.95);
  z-index: 1;
}
.hcj-step-dua-hdr {
  width: 100%;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  text-align: left;
  transition: background 160ms ease;
  position: relative;
  z-index: 2;
}
.hcj-step-dua-hdr:hover {
  background: rgba(201,161,74,0.05);
}
.hcj-step-dua.open .hcj-step-dua-hdr {
  border-bottom: 1px solid rgba(201,161,74,0.2);
}
.hcj-step-dua-icon { font-size: 18px; flex-shrink: 0; }
.hcj-step-dua-title {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9a14a;
}
.hcj-step-dua-ref {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  color: #d4b066;
  padding: 2px 8px;
  background: rgba(201,161,74,0.18);
  border: 1px solid rgba(201,161,74,0.35);
  border-radius: 999px;
  flex-shrink: 0;
}
.hcj-step-dua-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: rgba(201,161,74,0.85);
  transition: transform 240ms ease;
}
.hcj-step-dua.open .hcj-step-dua-chevron {
  transform: rotate(180deg);
}
.hcj-step-dua-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms cubic-bezier(0.4, 0.0, 0.2, 1);
  padding: 0 16px;
}
.hcj-step-dua.open .hcj-step-dua-content {
  max-height: 2000px;
  padding: 12px 16px 14px;
}
.hcj-step-dua-arabic {
  font-family: 'Amiri', 'Scheherazade New', serif;
  font-size: 18px;
  line-height: 1.85;
  direction: rtl;
  font-weight: 700;
  margin-bottom: 6px;
  text-align: right;
  color: #fff8d8;
  padding: 12px 16px 0;
  word-break: break-word;
  overflow-wrap: break-word;
}
.hcj-step-dua-translit {
  font-size: 11.5px;
  line-height: 1.5;
  margin-bottom: 6px;
  font-style: italic;
  color: rgba(255,255,255,0.65);
  padding: 0 16px;
  word-break: break-word;
  overflow-wrap: break-word;
}
[data-hc-translit="off"] .hcj-step-dua-translit { display: none; }
.hcj-step-dua-text {
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
  margin-bottom: 6px;
  padding: 0 16px;
  word-break: break-word;
}
.hcj-step-dua-source {
  display: inline-block;
  margin: 4px 16px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  color: rgba(201,161,74,0.9);
  padding: 2px 8px;
  background: rgba(201,161,74,0.1);
  border: 1px solid rgba(201,161,74,0.22);
  border-radius: 999px;
}


/* ═══════════════════════════════════════════════════════════════════════
   v3.2 · CONTEXT-ACCORDION (Hadith/Fiqh eingeklappt)
   ═══════════════════════════════════════════════════════════════════════ */
.hcj-ctx-block {
  margin-bottom: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid var(--hcj-blk-c, #c9a14a);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 200ms ease;
}
.hcj-ctx-block[data-type="hadith"] { --hcj-blk-c: #c9a14a; }
.hcj-ctx-block[data-type="fiqh"]   { --hcj-blk-c: #4ade80; }
.hcj-ctx-block.open {
  border-color: rgba(255,255,255,0.15);
}
.hcj-ctx-hdr {
  width: 100%;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  text-align: left;
  transition: background 160ms ease;
}
.hcj-ctx-hdr:hover {
  background: rgba(255,255,255,0.03);
}
.hcj-ctx-block.open .hcj-ctx-hdr {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hcj-ctx-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hcj-blk-c);
  flex-shrink: 0;
}
.hcj-ctx-preview {
  flex: 1;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.hcj-ctx-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.5);
  transition: transform 240ms ease;
}
.hcj-ctx-block.open .hcj-ctx-chevron {
  transform: rotate(180deg);
}
.hcj-ctx-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms cubic-bezier(0.4, 0.0, 0.2, 1);
}
.hcj-ctx-block.open .hcj-ctx-content {
  max-height: 2000px;
  padding: 10px 14px 14px;
}
.hcj-blk-source-inline {
  display: inline-flex;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(201,161,74,0.1);
  color: #c9a14a;
  border: 1px solid rgba(201,161,74,0.2);
  margin-top: 6px;
}

/* ═══════════════════════════════════════════════════════════════════════
   v3.3 · Eigener Madhāhib-Renderer (synchron, kein async-Loading)
   ═══════════════════════════════════════════════════════════════════════ */
.hcj-mdh-rulings {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
}
.hcj-mdh-ruling {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px 12px;
  border-left: 3px solid var(--hcj-mdh-c, #a78bfa);
}
.hcj-mdh-ruling--standard { 
  --hcj-mdh-c: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.18);
}
.hcj-mdh-ruling--standard .hcj-mdh-ruling-name { color: rgba(255,255,255,0.95); }
.hcj-mdh-ruling--hanafi   { --hcj-mdh-c: #2dd4bf; }
.hcj-mdh-ruling--maliki   { --hcj-mdh-c: #c9a14a; }
.hcj-mdh-ruling--shafii   { --hcj-mdh-c: #a78bfa; }
.hcj-mdh-ruling--hanbali  { --hcj-mdh-c: #4ade80; }
.hcj-mdh-ruling-hdr {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.hcj-mdh-ruling-icon {
  font-family: 'Amiri', serif;
  font-size: 16px;
  font-weight: 700;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: var(--hcj-mdh-c);
}
.hcj-mdh-ruling-name {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 800;
  color: var(--hcj-mdh-c);
  letter-spacing: 0.05em;
}
.hcj-mdh-ruling-page {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  padding: 2px 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
}
.hcj-mdh-ruling-text {
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
}
.hcj-mdh-empty {
  padding: 12px 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* Context-Accordion: max-height transition statt hidden attribute */
.hcj-ctx-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms cubic-bezier(0.4, 0.0, 0.2, 1), padding 320ms ease;
  padding: 0 14px;
}
.hcj-ctx-block.open .hcj-ctx-content {
  max-height: 5000px;
  padding: 10px 14px 14px;
}


/* ═══════════════════════════════════════════════════════════════════════
   v401 · AUDIO-BUTTON (rendert nur wenn audio_url vorhanden)
   ═══════════════════════════════════════════════════════════════════════ */
.hcj-step-dua-audio {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(201,161,74,0.22);
  border: 1px solid rgba(201,161,74,0.45);
  color: #d4b066;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: all 160ms ease;
  font-family: inherit;
  padding: 0;
}
.hcj-step-dua-audio:hover {
  background: rgba(201,161,74,0.32);
  transform: scale(1.05);
}
.hcj-step-dua-audio:active { transform: scale(0.95); }
.hcj-step-dua-audio.playing {
  background: rgba(74,222,128,0.18);
  border-color: rgba(74,222,128,0.5);
  color: #4ade80;
  animation: hcj-audio-pulse 1.5s ease-in-out infinite;
}
.hcj-step-dua-audio.loading {
  opacity: 0.6;
  cursor: wait;
}
.hcj-step-dua-audio[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
}
.hcj-step-dua-audio svg {
  width: 14px;
  height: 14px;
}
@keyframes hcj-audio-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
}


/* ═══════════════════════════════════════════════════════════════════════
   v401 · MADHĀHIB-SECTION + TOPIC-CARDS (5 Meinungen pro Topic)
   Standard (Uthaymin) + Ḥanafī + Mālikī + Shāfiʿī + Ḥanbalī
   ═══════════════════════════════════════════════════════════════════════ */
.hcj-mad-section {
  margin: 14px 0 12px;
  padding: 0;
  position: relative;
  z-index: 1;
}

.hcj-mad-box {
  background: rgba(201,161,74,0.05);
  border: 1px solid rgba(201,161,74,0.18);
  border-radius: 14px;
  padding: 13px 13px 11px;
}
.hcj-mad-box-hdr {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.hcj-mad-box-icon { font-size: 18px; }
.hcj-mad-box-title {
  font-size: 13px;
  font-weight: 800;
  color: #d4b066;
  letter-spacing: 0.5px;
}
.hcj-mad-box-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  font-style: italic;
  margin-bottom: 10px;
  line-height: 1.45;
}

/* TOPIC-CARDS (klappbar) */
.hcj-mad-topic {
  background: rgba(167,139,250,0.07);
  border: 1px solid rgba(167,139,250,0.2);
  border-left: 3px solid #a78bfa;
  border-radius: 11px;
  margin-bottom: 6px;
  overflow: hidden;
  transition: background 200ms ease;
}
.hcj-mad-topic:last-child { margin-bottom: 0; }
.hcj-mad-topic-hdr {
  width: 100%;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  text-align: left;
}
.hcj-mad-topic-hdr:hover {
  background: rgba(167,139,250,0.05);
}
.hcj-mad-topic-emoji {
  font-size: 17px;
  flex-shrink: 0;
}
.hcj-mad-topic-title {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}
.hcj-mad-topic-chev {
  color: #a78bfa;
  font-size: 13px;
  font-weight: 900;
  transition: transform 280ms ease;
  flex-shrink: 0;
}
.hcj-mad-topic.open .hcj-mad-topic-chev { transform: rotate(180deg); }

/* TOPIC-CONTENT (max-height transition) */
.hcj-mad-topic-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms ease;
  padding: 0 12px;
}
.hcj-mad-topic.open .hcj-mad-topic-content {
  max-height: 2500px;
  padding: 0 12px 11px;
}

/* OPINION CARDS — 5 Meinungen pro Topic */
.hcj-mad-opin {
  padding: 9px 11px;
  margin-top: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid rgba(255,255,255,0.4);
  border-radius: 9px;
}
.hcj-mad-opin.standard {
  background: rgba(255,255,255,0.07);
  border-left-color: rgba(255,255,255,0.5);
}
.hcj-mad-opin.hanafi   { border-left-color: #2dd4bf; }
.hcj-mad-opin.maliki   { border-left-color: #c9a14a; }
.hcj-mad-opin.shafii   { border-left-color: #a78bfa; }
.hcj-mad-opin.hanbali  { border-left-color: #4ade80; }

.hcj-mad-opin-hdr {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.hcj-mad-opin-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hcj-mad-opin.standard .hcj-mad-opin-name { color: rgba(255,255,255,0.95); }
.hcj-mad-opin.hanafi   .hcj-mad-opin-name { color: #2dd4bf; }
.hcj-mad-opin.maliki   .hcj-mad-opin-name { color: #c9a14a; }
.hcj-mad-opin.shafii   .hcj-mad-opin-name { color: #a78bfa; }
.hcj-mad-opin.hanbali  .hcj-mad-opin-name { color: #4ade80; }

.hcj-mad-opin-tag {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  font-weight: 700;
  flex-shrink: 0;
}
.hcj-mad-opin.standard .hcj-mad-opin-tag {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.hcj-mad-opin-text {
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255,255,255,0.78);
}

/* Hide Madhāhib if Settings toggle disabled */
[data-hc-madhahib="off"] .hcj-mad-section { display: none; }


/* ═══════════════════════════════════════════════════════════════════════════
   v401 · LIGHT-MODE (Sandstein-Theme)
   ─────────────────────────────────────────────────────────────────────────────
   Aktiviert via:  <html data-hc-theme="light">
   Wirkt als kompletter Override für alle .hcj-* Klassen.
   Sandstein-Hintergrund (#faf5e8 → #ebe1c8), dunkler Text, Gold + Teal Akzente
   in dunkleren Kontrast-Farben (Teal #0d8a6b, Gold #a07030).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── SCREEN BACKGROUND ─────────────────────────────────────────────────── */
html[data-hc-theme="light"] .hcj-screen {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(20,148,106,0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(201,161,74,0.08) 0%, transparent 50%),
    linear-gradient(180deg, #faf5e8 0%, #f3ecd9 50%, #ebe1c8 100%);
  color: #1a1410;
}
html[data-hc-theme="light"] .hcj-overlay {
  background: rgba(0,0,0,0.4);
}

/* ── STATUSBAR ─────────────────────────────────────────────────────────── */
html[data-hc-theme="light"] .hcj-statusbar { color: rgba(0,0,0,0.7); }
html[data-hc-theme="light"] .hcj-offline-pill {
  background: rgba(34,197,94,0.1);
  border-color: rgba(34,197,94,0.3);
  color: #15803d;
}
html[data-hc-theme="light"] .hcj-offline-pill::before { background: #15803d; }

/* ── HEADER ────────────────────────────────────────────────────────────── */
html[data-hc-theme="light"] .hcj-hdr-back,
html[data-hc-theme="light"] .hcj-hdr-cog {
  background: rgba(20,148,106,0.1);
  border-color: rgba(20,148,106,0.22);
  color: #14946a;
}
html[data-hc-theme="light"] .hcj-hdr-back:active,
html[data-hc-theme="light"] .hcj-hdr-cog:active {
  background: rgba(20,148,106,0.18);
}
html[data-hc-theme="light"] .hcj-hdr-eyebrow { color: #0d8a6b; }
html[data-hc-theme="light"] .hcj-hdr-title { color: #1a1410; }

/* ── DAY-PILLS ─────────────────────────────────────────────────────────── */
html[data-hc-theme="light"] .hcj-day-pill {
  /* v402: Pure white card for high contrast on sandstein */
  background: #fff;
  border: 1px solid rgba(0,0,0,0.15);
  color: #1a1410;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  font-weight: 700;
}
html[data-hc-theme="light"] .hcj-day-pill:hover {
  background: rgba(255,255,255,0.75);
  color: #1a1410;
}
html[data-hc-theme="light"] .hcj-day-pill.active {
  /* v402: Maroon also in light mode */
  background: linear-gradient(135deg, #8b2c2c, #6b1f1f);
  border-color: #5a1818;
  color: #fff;
  box-shadow: 0 2px 8px rgba(139,44,44,0.4);
}
html[data-hc-theme="light"] .hcj-day-pill.active .hcj-day-pill-tag,
html[data-hc-theme="light"] .hcj-day-pill.active .hcj-day-pill-name { color: #fff; }
html[data-hc-theme="light"] .hcj-day-pill.active::after {
  border-top-color: #6b1f1f;
}
html[data-hc-theme="light"] .hcj-day-pill.done::after {
  color: #0d8a6b;
}

/* ── STEP-INDEX ────────────────────────────────────────────────────────── */
html[data-hc-theme="light"] .hcj-step-idx-label { color: #0d8a6b; }
html[data-hc-theme="light"] .hcj-step-idx-label::before { background: #0d8a6b; }
html[data-hc-theme="light"] .hcj-step-cell {
  /* v404: WEISS für inaktive Steps (aktiver Step muss klar herausstechen) */
  background: rgba(255,255,255,0.75);
  border: 1.5px solid rgba(160,112,48,0.45);
  color: #7a5520;
  font-weight: 800;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
html[data-hc-theme="light"] .hcj-step-cell.active {
  /* v404: KRÄFTIGES GOLD für den aktiven Step — klar erkennbar */
  background: linear-gradient(135deg, #d4a843, #a07030);
  border: 1.5px solid #7a5520;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(201,161,74,0.65);
}
html[data-hc-theme="light"] .hcj-step-cell:hover {
  background: rgba(255,255,255,0.95);
  border-color: #a07030;
}
html[data-hc-theme="light"] .hcj-step-cell.done {
  /* v404: Sanftes Gold mit Opacity (zwischen weiß und aktiv) */
  background: rgba(232,200,120,0.4);
  border-color: rgba(160,112,48,0.5);
  color: #7a5520;
  opacity: 0.8;
}
html[data-hc-theme="light"] .hcj-step-progress { color: rgba(0,0,0,0.45); }
html[data-hc-theme="light"] .hcj-step-progress .done-count { color: #15803d; }

/* ── TABS ──────────────────────────────────────────────────────────────── */
html[data-hc-theme="light"] .hcj-tabs {
  border-bottom-color: rgba(0,0,0,0.08);
}
html[data-hc-theme="light"] .hcj-tab { color: rgba(0,0,0,0.42); }
html[data-hc-theme="light"] .hcj-tab:hover { color: rgba(0,0,0,0.7); }
html[data-hc-theme="light"] .hcj-tab.active { color: #1a1410; }
html[data-hc-theme="light"] .hcj-tab.active::after { background: #0d8a6b; }
html[data-hc-theme="light"] .hcj-tab-cnt {
  background: rgba(20,148,106,0.1);
  color: #0d8a6b;
}
html[data-hc-theme="light"] .hcj-tab:not(.active) .hcj-tab-cnt {
  background: rgba(0,0,0,0.06);
  color: rgba(0,0,0,0.5);
}

/* ── HERO CARD ─────────────────────────────────────────────────────────── */
html[data-hc-theme="light"] .hcj-hero-card {
  background: rgba(255,255,255,0.55);
  border-color: rgba(0,0,0,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 4px 16px rgba(0,0,0,0.06);
}
html[data-hc-theme="light"] .hcj-hero-card.critical {
  background: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, rgba(255,235,235,0.6) 100%);
  border-color: rgba(220,38,38,0.4);
}
html[data-hc-theme="light"] .hcj-hero-card.is-done {
  background: linear-gradient(135deg, rgba(255,255,255,0.55) 0%, rgba(220,255,220,0.4) 100%);
  border-color: rgba(34,197,94,0.3);
}
html[data-hc-theme="light"] .hcj-hero-status.now {
  background: rgba(34,197,94,0.12);
  color: #15803d;
  border-color: rgba(34,197,94,0.32);
  box-shadow: 0 0 12px -2px rgba(34,197,94,0.25);
}
html[data-hc-theme="light"] .hcj-hero-status-marker { background: #15803d; }
html[data-hc-theme="light"] .hcj-hero-status-marker::after { border-color: #15803d; }
html[data-hc-theme="light"] .hcj-hero-status.done {
  background: rgba(34,197,94,0.12);
  color: #15803d;
  border-color: rgba(34,197,94,0.32);
}
html[data-hc-theme="light"] .hcj-hero-status.done .hcj-hero-status-marker { background: #15803d; }
html[data-hc-theme="light"] .hcj-hero-status.done .hcj-hero-status-marker::after { border-color: #15803d; }
html[data-hc-theme="light"] .hcj-hero-badge {
  background: rgba(201,161,74,0.13);
  color: #a07030;
  border-color: rgba(201,161,74,0.32);
}
html[data-hc-theme="light"] .hcj-hero-badge.critical {
  background: rgba(220,38,38,0.1);
  color: #b91c1c;
  border-color: rgba(220,38,38,0.3);
}
html[data-hc-theme="light"] .hcj-hero-stepnum { color: #0d8a6b; }
html[data-hc-theme="light"] .hcj-hero-icon {
  background: rgba(20,148,106,0.1);
  border-color: rgba(20,148,106,0.25);
  box-shadow: 0 2px 8px rgba(20,148,106,0.1);
}
html[data-hc-theme="light"] .hcj-hero-title { color: #1a1410; }
html[data-hc-theme="light"] .hcj-hero-instr { color: #0d6a52; }
html[data-hc-theme="light"] .hcj-hero-source {
  background: rgba(201,161,74,0.12);
  border-color: rgba(201,161,74,0.32);
  color: #a07030;
}
html[data-hc-theme="light"] .hcj-hero-extra-tracker {
  background: rgba(201,161,74,0.08);
  border-color: rgba(201,161,74,0.28);
}
html[data-hc-theme="light"] .hcj-hero-extra-icon {
  background: rgba(201,161,74,0.18);
}
html[data-hc-theme="light"] .hcj-hero-extra-title { color: #a07030; }
html[data-hc-theme="light"] .hcj-hero-extra-desc { color: rgba(0,0,0,0.65); }

/* ── NEXT-PREVIEW ─────────────────────────────────────────────────────── */
html[data-hc-theme="light"] .hcj-next-preview {
  background: linear-gradient(135deg, rgba(20,148,106,0.08) 0%, rgba(20,148,106,0.03) 100%);
  border-color: rgba(20,148,106,0.3);
}
html[data-hc-theme="light"] .hcj-next-preview:hover {
  background: linear-gradient(135deg, rgba(20,148,106,0.15) 0%, rgba(20,148,106,0.06) 100%);
  border-color: rgba(20,148,106,0.5);
}
html[data-hc-theme="light"] .hcj-next-label { color: #0d8a6b; }
html[data-hc-theme="light"] .hcj-next-tag {
  background: rgba(20,148,106,0.12);
  color: #0d8a6b;
}
html[data-hc-theme="light"] .hcj-next-title { color: #1a1410; }
html[data-hc-theme="light"] .hcj-next-arrow { color: #0d8a6b; }
html[data-hc-theme="light"] .hcj-next-preview--day {
  background: linear-gradient(135deg, rgba(167,139,250,0.08) 0%, rgba(167,139,250,0.03) 100%);
  border-color: rgba(167,139,250,0.35);
}
html[data-hc-theme="light"] .hcj-next-preview--day .hcj-next-label { color: #6d28d9; }
html[data-hc-theme="light"] .hcj-next-preview--day .hcj-next-arrow { color: #6d28d9; }
html[data-hc-theme="light"] .hcj-next-preview--day .hcj-next-tag {
  background: rgba(167,139,250,0.13);
  color: #6d28d9;
}

/* ── SECTION-DIVIDER ──────────────────────────────────────────────────── */
html[data-hc-theme="light"] .hcj-section-line { background: rgba(0,0,0,0.08); }
html[data-hc-theme="light"] .hcj-section-label { color: rgba(0,0,0,0.45); }

/* ── CONTENT BLOCKS (Hadith/Quran/Du'a/Fiqh accordion) ────────────────── */
html[data-hc-theme="light"] .hcj-blk {
  background: rgba(255,255,255,0.55);
  border-color: rgba(0,0,0,0.08);
}
html[data-hc-theme="light"] .hcj-blk[data-type="quran"]  { --hcj-blk-c: #0d8a6b; }
html[data-hc-theme="light"] .hcj-blk[data-type="hadith"] { --hcj-blk-c: #a07030; }
html[data-hc-theme="light"] .hcj-blk[data-type="dua"]    { --hcj-blk-c: #a07030; }
html[data-hc-theme="light"] .hcj-blk[data-type="fiqh"]   { --hcj-blk-c: #15803d; }

/* ── BOTTOM-CTA ────────────────────────────────────────────────────────── */
html[data-hc-theme="light"] .hcj-bottom-cta {
  background: linear-gradient(180deg, transparent 0%, rgba(245,235,215,0.95) 30%);
}
html[data-hc-theme="light"] .hcj-cta-side {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.13);
  color: #1a1410;
}
html[data-hc-theme="light"] .hcj-cta-side:hover {
  background: rgba(0,0,0,0.1);
}
/* hcj-cta-main bleibt grüner Gradient — gut sichtbar auf hellem Hintergrund */

/* ── TRACKER ────────────────────────────────────────────────────────────── */
html[data-hc-theme="light"] .hcj-tracker {
  background: rgba(255,255,255,0.55);
  border-color: rgba(0,0,0,0.09);
}
html[data-hc-theme="light"] .hcj-tracker-title { color: #1a1410; }
html[data-hc-theme="light"] .hcj-tracker-count { color: #a07030; }
html[data-hc-theme="light"] .hcj-tracker-circle {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.15);
  color: rgba(0,0,0,0.4);
}
/* v2.0 (03.05.2026): Light-Mode .done — Orange für Sichtbarkeit
   (vorher überschrieb der Light-Mode-Selector die .done-Regel wegen CSS-Spezifizität) */
html[data-hc-theme="light"] .hcj-tracker-circle.done {
  background: linear-gradient(135deg, #f97316, #d97706) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(217,119,6,0.4) !important;
}
html[data-hc-theme="light"] .hcj-tracker-stones-label { color: rgba(160,112,48,0.85); }
html[data-hc-theme="light"] .hcj-tracker-stone {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.13);
}
/* v2.0 (03.05.2026): Light-Mode .done — Orange für Sichtbarkeit */
html[data-hc-theme="light"] .hcj-tracker-stone.done {
  background: linear-gradient(135deg, #f97316, #d97706) !important;
  border-color: transparent !important;
  box-shadow: 0 1px 3px rgba(217,119,6,0.4) !important;
}
html[data-hc-theme="light"] .hcj-tracker-btn--minus {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.15);
  color: rgba(0,0,0,0.6);
}
html[data-hc-theme="light"] .hcj-tracker-btn--minus:hover:not(:disabled) {
  background: rgba(0,0,0,0.1);
}
/* btn--plus bleibt Gold */
html[data-hc-theme="light"] .hcj-tracker-btn--reset {
  background: rgba(220,38,38,0.06);
  border-color: rgba(220,38,38,0.2);
  color: rgba(220,38,38,0.7);
}
html[data-hc-theme="light"] .hcj-tracker-btn--reset:hover {
  background: rgba(220,38,38,0.12);
}

/* ── DU'Ā BOX ──────────────────────────────────────────────────────────── */
html[data-hc-theme="light"] .hcj-step-dua {
  background: rgba(201,161,74,0.13);
  border-color: rgba(201,161,74,0.4);
}
html[data-hc-theme="light"] .hcj-step-dua::before {
  background: #a07030;
}
html[data-hc-theme="light"] .hcj-step-dua-hdr:hover {
  background: rgba(201,161,74,0.06);
}
html[data-hc-theme="light"] .hcj-step-dua.open .hcj-step-dua-hdr {
  border-bottom: 1px solid rgba(160,112,48,0.18);
}
html[data-hc-theme="light"] .hcj-step-dua-title { color: #7a5520; }
html[data-hc-theme="light"] .hcj-step-dua-ref {
  color: #7a5520;
  background: rgba(201,161,74,0.18);
  border-color: rgba(201,161,74,0.4);
}
html[data-hc-theme="light"] .hcj-step-dua-chevron { color: rgba(160,112,48,0.85); }
html[data-hc-theme="light"] .hcj-step-dua-arabic { color: #1a1410; }
html[data-hc-theme="light"] .hcj-step-dua-translit { color: rgba(0,0,0,0.55); }
html[data-hc-theme="light"] .hcj-step-dua-text { color: #1a1410; }
html[data-hc-theme="light"] .hcj-step-dua-source {
  color: #7a5520;
  background: rgba(201,161,74,0.13);
  border-color: rgba(201,161,74,0.32);
}

/* ── AUDIO-BUTTON ──────────────────────────────────────────────────────── */
html[data-hc-theme="light"] .hcj-step-dua-audio {
  background: rgba(201,161,74,0.18);
  border-color: rgba(201,161,74,0.5);
  color: #a07030;
}
html[data-hc-theme="light"] .hcj-step-dua-audio:hover {
  background: rgba(201,161,74,0.28);
}
html[data-hc-theme="light"] .hcj-step-dua-audio.playing {
  background: rgba(34,197,94,0.15);
  border-color: rgba(34,197,94,0.5);
  color: #15803d;
}

/* ── MADHĀHIB-SECTION ──────────────────────────────────────────────────── */
html[data-hc-theme="light"] .hcj-mad-box {
  background: rgba(201,161,74,0.08);
  border-color: rgba(201,161,74,0.28);
}
html[data-hc-theme="light"] .hcj-mad-box-title { color: #7a5520; }
html[data-hc-theme="light"] .hcj-mad-box-sub { color: rgba(0,0,0,0.5); }
html[data-hc-theme="light"] .hcj-mad-topic {
  background: rgba(255,255,255,0.55);
  border-color: rgba(167,139,250,0.3);
  border-left: 3px solid #7c4dff;
}
html[data-hc-theme="light"] .hcj-mad-topic:hover { background: rgba(255,255,255,0.7); }
html[data-hc-theme="light"] .hcj-mad-topic-hdr:hover { background: rgba(167,139,250,0.05); }
html[data-hc-theme="light"] .hcj-mad-topic-title { color: #1a1410; }
html[data-hc-theme="light"] .hcj-mad-topic-chev { color: #7c4dff; }
html[data-hc-theme="light"] .hcj-mad-opin {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.08);
  border-left-color: rgba(0,0,0,0.4);
}
html[data-hc-theme="light"] .hcj-mad-opin.standard {
  background: rgba(255,255,255,0.95);
  border-left-color: rgba(0,0,0,0.5);
}
html[data-hc-theme="light"] .hcj-mad-opin.hanafi   { border-left-color: #0d8a6b; }
html[data-hc-theme="light"] .hcj-mad-opin.maliki   { border-left-color: #a07030; }
html[data-hc-theme="light"] .hcj-mad-opin.shafii   { border-left-color: #6d28d9; }
html[data-hc-theme="light"] .hcj-mad-opin.hanbali  { border-left-color: #15803d; }
html[data-hc-theme="light"] .hcj-mad-opin.standard .hcj-mad-opin-name { color: #1a1410; }
html[data-hc-theme="light"] .hcj-mad-opin.hanafi   .hcj-mad-opin-name { color: #0d8a6b; }
html[data-hc-theme="light"] .hcj-mad-opin.maliki   .hcj-mad-opin-name { color: #a07030; }
html[data-hc-theme="light"] .hcj-mad-opin.shafii   .hcj-mad-opin-name { color: #6d28d9; }
html[data-hc-theme="light"] .hcj-mad-opin.hanbali  .hcj-mad-opin-name { color: #15803d; }
html[data-hc-theme="light"] .hcj-mad-opin-tag {
  background: rgba(0,0,0,0.07);
  color: rgba(0,0,0,0.55);
}
html[data-hc-theme="light"] .hcj-mad-opin.standard .hcj-mad-opin-tag {
  background: rgba(0,0,0,0.1);
  color: #1a1410;
}
html[data-hc-theme="light"] .hcj-mad-opin-text { color: #2a2018; }

/* ── CONTEXT-ACCORDION (existierend) ──────────────────────────────────── */
html[data-hc-theme="light"] .hcj-ctx-block {
  background: rgba(255,255,255,0.55);
  border-color: rgba(0,0,0,0.08);
}

/* ── LOADING / EMPTY / ERROR ──────────────────────────────────────────── */
html[data-hc-theme="light"] .hcj-loading { color: rgba(0,0,0,0.55); }
html[data-hc-theme="light"] .hcj-loading-spinner {
  border-color: rgba(20,148,106,0.2);
  border-top-color: #0d8a6b;
}
html[data-hc-theme="light"] .hcj-empty { color: rgba(0,0,0,0.55); }


/* ── MADHĀHIB-SECTION (existierend) — Light-Mode-Patches ──────────────── */
html[data-hc-theme="light"] .hcj-madhahib {
  background: rgba(201,161,74,0.08);
  border-color: rgba(201,161,74,0.28);
}
html[data-hc-theme="light"] .hcj-madhahib-title { color: #7a5520; }
html[data-hc-theme="light"] .hcj-madhahib-desc { color: rgba(0,0,0,0.5); }
html[data-hc-theme="light"] .hcj-madhahib-block {
  background: rgba(255,255,255,0.55);
  border-color: rgba(167,139,250,0.3);
  border-left: 3px solid #7c4dff;
}
html[data-hc-theme="light"] .hcj-madhahib-block:hover {
  background: rgba(255,255,255,0.7);
}
html[data-hc-theme="light"] .hcj-madhahib-block-hdr:hover {
  background: rgba(167,139,250,0.05);
}
html[data-hc-theme="light"] .hcj-madhahib-block-title { color: #1a1410; }
html[data-hc-theme="light"] .hcj-madhahib-chevron { color: #7c4dff; }

/* mdh-ruling cards in Light-Mode */
html[data-hc-theme="light"] .hcj-mdh-ruling {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.08);
}
html[data-hc-theme="light"] .hcj-mdh-ruling--standard {
  --hcj-mdh-c: rgba(0,0,0,0.4);
  background: rgba(255,255,255,0.95);
  border-color: rgba(0,0,0,0.1);
}
html[data-hc-theme="light"] .hcj-mdh-ruling--standard .hcj-mdh-ruling-name { color: #1a1410; }
html[data-hc-theme="light"] .hcj-mdh-ruling--hanafi   { --hcj-mdh-c: #0d8a6b; }
html[data-hc-theme="light"] .hcj-mdh-ruling--maliki   { --hcj-mdh-c: #a07030; }
html[data-hc-theme="light"] .hcj-mdh-ruling--shafii   { --hcj-mdh-c: #6d28d9; }
html[data-hc-theme="light"] .hcj-mdh-ruling--hanbali  { --hcj-mdh-c: #15803d; }
html[data-hc-theme="light"] .hcj-mdh-ruling-icon {
  background: rgba(0,0,0,0.05);
}
html[data-hc-theme="light"] .hcj-mdh-ruling-page {
  background: rgba(0,0,0,0.06);
  color: rgba(0,0,0,0.55);
}
html[data-hc-theme="light"] .hcj-mdh-ruling-text { color: #2a2018; }
html[data-hc-theme="light"] .hcj-mdh-empty { color: rgba(0,0,0,0.5); }


/* ═══════════════════════════════════════════════════════════════════════════
   v402 · LIGHT-MODE BACKGROUND PATTERN
   ───────────────────────────────────────────────────────────────────────────
   Im Light-Mode wird das Mekka-Pattern subtiler dargestellt (sandstein ist
   schon "premium" genug). Pattern ist drin, aber mit reduzierter Opacity.
   ═══════════════════════════════════════════════════════════════════════════ */
html[data-hc-theme="light"] .hcj-screen::before {
  /* v404: Pattern in Light-Mode komplett aus (störte als "Cover") */
  opacity: 0;
}
html[data-hc-theme="light"][data-hc-bg="off"] .hcj-screen::before {
  opacity: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   v402 · GLASS-CARDS in Light-Mode
   ═══════════════════════════════════════════════════════════════════════════ */
html[data-hc-theme="light"] .hcj-hero-card {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 4px 16px rgba(0,0,0,0.06);
}
@supports not (backdrop-filter: blur(1px)) {
  html[data-hc-theme="light"] .hcj-hero-card { background: rgba(255,255,255,0.85); }
}
html[data-hc-theme="light"] .hcj-step-dua {
  background: rgba(201,161,74,0.18);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
}

/* ═══════════════════════════════════════════════════════════════════════════
   v402 · BACKGROUND TOGGLE — visible in Settings UI
   ═══════════════════════════════════════════════════════════════════════════ */
/* The toggle is set on <html> via JS:
     html.dataset.hcBg = 'on'  (default)
     html.dataset.hcBg = 'off'
   Persisted in HC_Settings.background ('on' | 'off')
   ═══════════════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════════════
   v406 (02.05.2026): Audio-Button im Du'ā-Header
   ═══════════════════════════════════════════════════════════════════════════ */
.hcj-step-dua-audio {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(232,200,120,0.55);
  border-radius: 999px;
  color: #fff;
  font-family: inherit;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 200ms ease;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hcj-step-dua-audio:hover {
  background: rgba(232,200,120,0.28);
  border-color: rgba(232,200,120,0.75);
  transform: translateY(-1px);
}
.hcj-step-dua-audio:active {
  transform: translateY(0);
}
.hcj-step-dua-audio.playing {
  background: linear-gradient(135deg, #c9a14a, #a07030);
  border-color: #7a5520;
  color: #fff;
  box-shadow: 0 2px 8px rgba(201,161,74,0.45);
  animation: hcjAudioPulse 1.2s ease-in-out infinite;
}
@keyframes hcjAudioPulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(201,161,74,0.45); }
  50% { box-shadow: 0 2px 14px rgba(232,200,120,0.7); }
}
.hcj-step-dua-audio svg {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
}

/* Light-Mode adaption */
html[data-hc-theme="light"] .hcj-step-dua-audio {
  background: rgba(255,255,255,0.7);
  border-color: rgba(160,112,48,0.5);
  color: #5a3a18;
}
html[data-hc-theme="light"] .hcj-step-dua-audio:hover {
  background: rgba(232,200,120,0.55);
}
html[data-hc-theme="light"] .hcj-step-dua-audio.playing {
  background: linear-gradient(135deg, #d4a843, #a07030);
  color: #fff;
  border-color: #7a5520;
}


/* ═══════════════════════════════════════════════════════════════════════════
   v411 (02.05.2026): SVG-ANIMATIONS — 11 Animationen IN der Hero-Card (64×64)
   ───────────────────────────────────────────────────────────────────────────
   ihram, tawaf, say (statisch), wuquf, jamarat, halq, bus, mabit, stones,
   mosque (NEU), hady (NEU)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Container */
.hcj-hero-anim {
  width: 64px;
  height: 64px;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(232, 200, 120, 0.4);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.hcj-hero-anim svg {
  width: 60px;
  height: 60px;
  display: block;
}
html[data-hc-theme="light"] .hcj-hero-anim {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(160, 112, 48, 0.45);
}
html[data-hc-theme="light"] .hcj-hero-anim svg text {
  fill: rgba(140, 90, 30, 0.95) !important;
}

/* ─── 1. IḤRĀM ───────────────────────────────────────────────────────────── */
.hcjA-ihram .hcjA-cloth { animation: hcjAIhramFlow 3s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.hcjA-ihram .hcjA-cloth-2 { animation-delay: 0.5s; }
@keyframes hcjAIhramFlow {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-1px); }
}
.hcjA-ihram .hcjA-spark { animation: hcjASparkle 2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.hcjA-ihram .hcjA-spark-2 { animation-delay: 0.4s; }
.hcjA-ihram .hcjA-spark-3 { animation-delay: 0.8s; }
.hcjA-ihram .hcjA-spark-4 { animation-delay: 1.2s; }
@keyframes hcjASparkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50%      { opacity: 1; transform: scale(1); }
}

/* ─── 2. TAWĀF ──────────────────────────────────────────────────────────── */
.hcjA-tawaf .hcjA-pilgrim { transform-origin: 60px 60px; animation: hcjATawafSpin 5s linear infinite; }
@keyframes hcjATawafSpin { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
.hcjA-tawaf .hcjA-trail-1 { animation-delay: -0.15s; opacity: 0.5; }
.hcjA-tawaf .hcjA-trail-2 { animation-delay: -0.3s; opacity: 0.3; }
.hcjA-tawaf .hcjA-trail-3 { animation-delay: -0.5s; opacity: 0.18; }
.hcjA-tawaf .hcjA-glow {
  animation: hcjATawafPulse 3s ease-in-out infinite;
  transform-origin: 60px 60px; transform-box: fill-box;
}
@keyframes hcjATawafPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(1.1); }
}

/* ─── 3. SAʿY — STATISCH (keine Animation) ───────────────────────────────── */
/* nichts — die SVG ist rein statisch */

/* ─── 4. WUQŪF — Sonne wandert, Pilger atmet ─────────────────────────────── */
.hcjA-wuquf .hcjA-sun { animation: hcjAWuqufSunArc 8s linear infinite; transform-origin: 60px 95px; }
@keyframes hcjAWuqufSunArc {
  0%   { transform: rotate(-50deg); }
  100% { transform: rotate(50deg); }
}
.hcjA-wuquf .hcjA-pilgrim {
  animation: hcjAWuqufBreath 3s ease-in-out infinite;
  transform-origin: 60px 70px; transform-box: fill-box;
}
@keyframes hcjAWuqufBreath {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.03); }
}
.hcjA-wuquf .hcjA-glow {
  animation: hcjAWuqufGlow 2.5s ease-in-out infinite;
  transform-origin: 60px 68px; transform-box: fill-box;
}
@keyframes hcjAWuqufGlow {
  0%, 100% { opacity: 0.2; transform: scale(0.9); }
  50%      { opacity: 0.5; transform: scale(1.15); }
}

/* ─── 5. JAMARĀT ─────────────────────────────────────────────────────────── */
.hcjA-jamarat .hcjA-stone { animation: hcjAJamThrow 1.5s ease-in infinite; opacity: 0; }
.hcjA-jamarat .hcjA-stone-2 { animation-delay: 0.5s; }
.hcjA-jamarat .hcjA-stone-3 { animation-delay: 1s; }
@keyframes hcjAJamThrow {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translate(38px, -10px); opacity: 0; }
}
.hcjA-jamarat .hcjA-pillar { animation: hcjAJamShake 1.5s ease-in-out infinite; animation-delay: 0.45s; }
@keyframes hcjAJamShake {
  0%, 100% { transform: translateX(0); }
  3%       { transform: translateX(-1.5px); }
  6%       { transform: translateX(1.5px); }
  9%       { transform: translateX(0); }
}
.hcjA-jamarat .hcjA-pilgrim-throw {
  animation: hcjAJamThrowArm 1.5s ease-in-out infinite;
  transform-origin: 28px 70px;
}
@keyframes hcjAJamThrowArm {
  0%, 100% { transform: rotate(0deg); }
  10%      { transform: rotate(-15deg); }
  20%      { transform: rotate(20deg); }
  30%      { transform: rotate(0deg); }
}

/* ─── 6. ḤALQ — NEU: Frontal-Pilger + Rasierer fährt drüber ──────────────── */
.hcjA-halq .hcjA-razor { animation: hcjAHalqRazor 2.5s ease-in-out infinite; }
@keyframes hcjAHalqRazor {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(50px); }
}
.hcjA-halq .hcjA-hair-1, .hcjA-halq .hcjA-hair-2,
.hcjA-halq .hcjA-hair-3, .hcjA-halq .hcjA-hair-4,
.hcjA-halq .hcjA-hair-5 { animation: hcjAHalqHair 2.5s ease-in-out infinite; }
.hcjA-halq .hcjA-hair-1 { animation-delay: 0.4s; }
.hcjA-halq .hcjA-hair-2 { animation-delay: 0.6s; }
.hcjA-halq .hcjA-hair-3 { animation-delay: 0.8s; }
.hcjA-halq .hcjA-hair-4 { animation-delay: 1.0s; }
.hcjA-halq .hcjA-hair-5 { animation-delay: 1.2s; }
@keyframes hcjAHalqHair {
  0%, 25%   { opacity: 1; }
  35%, 60%  { opacity: 0; }
  75%, 100% { opacity: 1; }
}
.hcjA-halq .hcjA-fall { animation: hcjAHalqFall 2.5s linear infinite; opacity: 0; }
.hcjA-halq .hcjA-fall-2 { animation-delay: 0.4s; }
.hcjA-halq .hcjA-fall-3 { animation-delay: 0.8s; }
@keyframes hcjAHalqFall {
  0%, 25%   { opacity: 0; transform: translateY(0); }
  35%       { opacity: 0.85; }
  100%      { opacity: 0; transform: translateY(40px); }
}

/* ─── 7. BUS ─────────────────────────────────────────────────────────────── */
.hcjA-bus .hcjA-bus-body { animation: hcjABusDrive 4s ease-in-out infinite; }
@keyframes hcjABusDrive {
  0%   { transform: translateX(-50px); }
  45%  { transform: translateX(0); }
  55%  { transform: translateX(0); }
  100% { transform: translateX(50px); }
}
.hcjA-bus .hcjA-wheel-l { animation: hcjABusWheel 0.5s linear infinite; transform-origin: 42px 78px; }
.hcjA-bus .hcjA-wheel-r { animation: hcjABusWheel 0.5s linear infinite; transform-origin: 84px 78px; }
@keyframes hcjABusWheel { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.hcjA-bus .hcjA-road { animation: hcjABusRoad 0.4s linear infinite; }
@keyframes hcjABusRoad { from { transform: translateX(0); } to { transform: translateX(-25px); } }
.hcjA-bus .hcjA-smoke { animation: hcjABusSmoke 1.5s ease-out infinite; opacity: 0; }
.hcjA-bus .hcjA-smoke-2 { animation-delay: 0.5s; }
.hcjA-bus .hcjA-smoke-3 { animation-delay: 1s; }
@keyframes hcjABusSmoke {
  0%   { transform: translate(0, 0) scale(0.5); opacity: 0; }
  20%  { opacity: 0.6; }
  100% { transform: translate(-15px, -12px) scale(1.5); opacity: 0; }
}

/* ─── 8. MABIT ──────────────────────────────────────────────────────────── */
.hcjA-mabit .hcjA-moon { animation: hcjAMabitMoon 4s ease-in-out infinite; transform-origin: 92px 38px; transform-box: fill-box; }
@keyframes hcjAMabitMoon {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.05); }
}
.hcjA-mabit .hcjA-star { animation: hcjAStarTwinkle 2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.hcjA-mabit .hcjA-star-2 { animation-delay: 0.4s; }
.hcjA-mabit .hcjA-star-3 { animation-delay: 0.8s; }
.hcjA-mabit .hcjA-star-4 { animation-delay: 1.2s; }
.hcjA-mabit .hcjA-tent-light { animation: hcjATentLight 3s ease-in-out infinite; }
@keyframes hcjAStarTwinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.7); }
  50%      { opacity: 1; transform: scale(1); }
}
@keyframes hcjATentLight {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.85; }
}

/* ─── 9. STONES ─────────────────────────────────────────────────────────── */
.hcjA-stones .hcjA-bend { animation: hcjAStoneBend 2.5s ease-in-out infinite; transform-origin: 35px 75px; }
@keyframes hcjAStoneBend {
  0%, 100% { transform: rotate(0deg); }
  35%, 65% { transform: rotate(-25deg); }
}
.hcjA-stones .hcjA-pile { animation: hcjAStonePile 2.5s ease-in-out infinite; }
.hcjA-stones .hcjA-pile-2 { animation-delay: 0.3s; }
.hcjA-stones .hcjA-pile-3 { animation-delay: 0.6s; }
.hcjA-stones .hcjA-pile-4 { animation-delay: 0.9s; }
@keyframes hcjAStonePile {
  0%, 30%   { opacity: 0; transform: translateY(-3px); }
  50%, 100% { opacity: 1; transform: translateY(0); }
}
.hcjA-stones .hcjA-stone-grab { animation: hcjAStoneGrab 2.5s ease-in-out infinite; opacity: 0; }
@keyframes hcjAStoneGrab {
  0%        { opacity: 0; transform: translate(0, 0); }
  35%       { opacity: 1; transform: translate(0, 0); }
  60%       { opacity: 1; transform: translate(15px, -25px); }
  70%, 100% { opacity: 0; }
}
.hcjA-stones .hcjA-star { animation: hcjAStarTwinkle 2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }

/* ─── 10. MOSQUE — NEU: pulsierende Fenster, leuchtender Mond ───────────── */
.hcjA-mosque .hcjA-star { animation: hcjAStarTwinkle 2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.hcjA-mosque .hcjA-star-2 { animation-delay: 0.4s; }
.hcjA-mosque .hcjA-star-3 { animation-delay: 0.8s; }
.hcjA-mosque .hcjA-star-4 { animation-delay: 1.2s; }
.hcjA-mosque .hcjA-moon { animation: hcjAMabitMoon 4s ease-in-out infinite; transform-origin: 92px 30px; transform-box: fill-box; }
.hcjA-mosque .hcjA-window { animation: hcjAMosqueWindow 3s ease-in-out infinite; }
.hcjA-mosque .hcjA-window-2 { animation-delay: 0.5s; }
.hcjA-mosque .hcjA-window-3 { animation-delay: 1s; }
@keyframes hcjAMosqueWindow {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

/* ─── 11. HADY — NEU: Schaf atmet, Ohren zucken, Schwanz wackelt ────────── */
.hcjA-hady .hcjA-body { animation: hcjAHadyBreath 2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes hcjAHadyBreath {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(1.04); }
}
.hcjA-hady .hcjA-ear-l { animation: hcjAHadyEarL 1.5s ease-in-out infinite; transform-origin: 34px 54px; }
.hcjA-hady .hcjA-ear-r { animation: hcjAHadyEarR 1.5s ease-in-out infinite; transform-origin: 44px 54px; }
@keyframes hcjAHadyEarL {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(-15deg); }
}
@keyframes hcjAHadyEarR {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(15deg); }
}
.hcjA-hady .hcjA-tail { animation: hcjAHadyTail 0.6s ease-in-out infinite; transform-origin: 84px 65px; transform-box: fill-box; }
@keyframes hcjAHadyTail {
  0%, 100% { transform: rotate(-15deg); }
  50%      { transform: rotate(15deg); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hcjA *, .hcjA {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   v413 (02.05.2026): LIGHT MODE — SVG-Animation Override
   ───────────────────────────────────────────────────────────────────────────
   Im Light Mode sind die Animationen blass (weiße Pilger auf weißem BG).
   Hier setzen wir explizit dunklere Farben für Sichtbarkeit.
   ═══════════════════════════════════════════════════════════════════════════ */

html[data-hc-theme="light"] .hcj-hero-anim {
  background: rgba(40, 30, 20, 0.85);
  border-color: rgba(140, 90, 30, 0.6);
}

/* Pilger-Figuren (Iḥrām, Wuqūf, Jamarāt, Stones, Halq):
   Im Light Mode: weiß auf dunklem Hintergrund bleibt — Container ist jetzt dunkel */
html[data-hc-theme="light"] .hcj-hero-anim svg text {
  fill: rgba(255, 220, 130, 0.95) !important;
}

/* Saʿy: Berge S/M dunkler im Light Mode */
html[data-hc-theme="light"] .hcjA-say path {
  fill: rgba(180, 130, 60, 0.85);
  stroke: rgba(255, 200, 100, 0.9);
}
html[data-hc-theme="light"] .hcjA-say line {
  stroke: rgba(255, 255, 255, 0.3);
}
html[data-hc-theme="light"] .hcjA-say text {
  fill: rgba(255, 220, 130, 1) !important;
}

/* Wuqūf: Berg + Pilger heller */
html[data-hc-theme="light"] .hcjA-wuquf path[d*="M28 95"] {
  fill: rgba(160, 110, 60, 0.7);
  stroke: rgba(200, 150, 80, 0.8);
}

/* Tawāf: Kreis + Kaaba */
html[data-hc-theme="light"] .hcjA-tawaf circle[stroke-dasharray] {
  stroke: rgba(255, 255, 255, 0.35);
}

/* Mosque: Kuppel + Minarette stärker */
html[data-hc-theme="light"] .hcjA-mosque rect[fill*="220,210,190"],
html[data-hc-theme="light"] .hcjA-mosque ellipse[fill*="220,210,190"] {
  fill: rgba(240, 230, 210, 0.95);
  stroke: rgba(140, 100, 60, 0.8);
}

/* Hady: Schaf-Kontur stärker */
html[data-hc-theme="light"] .hcjA-hady ellipse[fill*="255,255,255"],
html[data-hc-theme="light"] .hcjA-hady circle[fill*="255,255,255"] {
  stroke: rgba(120, 90, 60, 0.7);
  stroke-width: 0.7;
}


/* ═══════════════════════════════════════════════════════════════════════════
   v414 (02.05.2026): LIGHT MODE — KOMPLETTER OVERRIDE FÜR ALLE CONTENT-BLOCKS
   ───────────────────────────────────────────────────────────────────────────
   Bug: Im Light Mode waren alle Hadith/Fiqh/Quran-Cards UNSICHTBAR weil sie
   weißen Hintergrund (rgba(255,255,255,0.04)) + weißen Text hatten.
   Fix: Im Light Mode jetzt heller halbtransparenter BG + dunkler Text.
   ═══════════════════════════════════════════════════════════════════════════ */

html[data-hc-theme="light"] .hcj-blk {
  background: rgba(255,255,255,0.55);
  border-color: rgba(60, 40, 20, 0.18);
  box-shadow: 0 1px 3px rgba(60, 40, 20, 0.06);
}
html[data-hc-theme="light"] .hcj-blk-arabic {
  color: #2d1810;
}
html[data-hc-theme="light"] .hcj-blk-translit {
  color: rgba(60, 40, 20, 0.65);
}
html[data-hc-theme="light"] .hcj-blk-text {
  color: rgba(40, 30, 20, 0.92);
}
html[data-hc-theme="light"] .hcj-blk-meta-ref {
  color: rgba(60, 40, 20, 0.7);
}
html[data-hc-theme="light"] .hcj-blk-source {
  background: rgba(201, 161, 74, 0.18);
  color: #8b6d3f;
  border-color: rgba(201, 161, 74, 0.4);
}
html[data-hc-theme="light"] .hcj-step-dua {
  background: linear-gradient(135deg, rgba(245, 240, 228, 0.85) 0%, rgba(245, 240, 228, 0.5) 100%);
  border-color: rgba(167, 139, 250, 0.4);
}
html[data-hc-theme="light"] .hcj-step-dua-title {
  color: #2d1810;
}
html[data-hc-theme="light"] .hcj-step-dua-ref {
  color: rgba(60, 40, 20, 0.6);
}
html[data-hc-theme="light"] .hcj-step-dua-chevron {
  color: rgba(60, 40, 20, 0.6);
}
html[data-hc-theme="light"] .hcj-madhahib {
  background: linear-gradient(135deg, rgba(167,139,250,0.12), rgba(167,139,250,0.04));
  border-color: rgba(167, 139, 250, 0.35);
}
html[data-hc-theme="light"] .hcj-madhahib-hdr,
html[data-hc-theme="light"] .hcj-madhahib-title,
html[data-hc-theme="light"] .hcj-madhahib-row,
html[data-hc-theme="light"] .hcj-madhahib-school,
html[data-hc-theme="light"] .hcj-madhahib-text {
  color: #2d1810;
}
html[data-hc-theme="light"] .hcj-hero-title { color: #2d1810; }
html[data-hc-theme="light"] .hcj-hero-instr { color: rgba(40, 30, 20, 0.85); }
html[data-hc-theme="light"] .hcj-hero-step  { color: #0d6e4f; }
html[data-hc-theme="light"] .hcj-hero-source {
  color: rgba(60, 40, 20, 0.7);
  background: rgba(201, 161, 74, 0.15);
}
html[data-hc-theme="light"] .hcj-section-label { color: #0d6e4f; }
html[data-hc-theme="light"] .hcj-more-knowledge,
html[data-hc-theme="light"] .hcj-more-knowledge-title { color: #2d1810; }
html[data-hc-theme="light"] .hcj-audio-btn {
  background: rgba(167,139,250,0.15);
  color: #5a3c9c;
  border-color: rgba(167,139,250,0.3);
}
html[data-hc-theme="light"] .hcj-day-pill { color: #2d1810; }
html[data-hc-theme="light"] .hcj-hero-badge[data-pillar="rukn"] {
  background: rgba(220, 38, 38, 0.15);
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.35);
}
html[data-hc-theme="light"] .hcj-hero-badge[data-pillar="wajib"] {
  background: rgba(201, 161, 74, 0.18);
  color: #8b6d3f;
  border-color: rgba(201, 161, 74, 0.4);
}
html[data-hc-theme="light"] .hcj-hero-badge[data-pillar="sunnah"] {
  background: rgba(74, 222, 128, 0.18);
  color: #15803d;
  border-color: rgba(74, 222, 128, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SUNAN-BLOCK (v3.9 · 03.05.2026)
   Ausklappbares Akkordeon unter dem Du'a-Block, grün-getönt
   ═══════════════════════════════════════════════════════════════════════════ */
.hcj-sunan-block {
  background: linear-gradient(135deg, rgba(34,197,94,0.08), rgba(132,204,22,0.04));
  border: 1px solid rgba(132,204,22,0.22);
  border-radius: 14px;
  margin-top: 14px;
  overflow: hidden;
}
.hcj-sunan-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: inherit;
}
.hcj-sunan-icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
}
.hcj-sunan-titles {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.hcj-sunan-title {
  font-size: 11px;
  font-weight: 700;
  color: #84cc16;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hcj-sunan-count {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
}
.hcj-sunan-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.5);
  transition: transform 200ms ease;
}
.hcj-sunan-toggle.expanded .hcj-sunan-chevron {
  transform: rotate(180deg);
}
.hcj-sunan-content {
  padding: 4px 16px 14px;
  border-top: 1px solid rgba(132,204,22,0.12);
}
.hcj-sunan-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.hcj-sunan-item:last-child {
  border-bottom: none;
}
.hcj-sunan-check {
  flex-shrink: 0;
  color: #84cc16;
  font-weight: 800;
  font-size: 14px;
  margin-top: 1px;
  line-height: 1.5;
}
.hcj-sunan-text {
  flex: 1;
  font-size: 13px;
  color: rgba(255,255,255,0.88);
  line-height: 1.55;
}

/* Light Mode */
html[data-hc-theme="light"] .hcj-sunan-block {
  background: linear-gradient(135deg, rgba(34,197,94,0.07), rgba(132,204,22,0.04));
  border-color: rgba(132,204,22,0.35);
}
html[data-hc-theme="light"] .hcj-sunan-title {
  color: #4d7c0f;
}
html[data-hc-theme="light"] .hcj-sunan-count {
  color: rgba(0,0,0,0.55);
}
html[data-hc-theme="light"] .hcj-sunan-chevron {
  color: rgba(0,0,0,0.5);
}
html[data-hc-theme="light"] .hcj-sunan-content {
  border-top-color: rgba(132,204,22,0.18);
}
html[data-hc-theme="light"] .hcj-sunan-item {
  border-bottom-color: rgba(0,0,0,0.06);
}
html[data-hc-theme="light"] .hcj-sunan-check {
  color: #4d7c0f;
}
html[data-hc-theme="light"] .hcj-sunan-text {
  color: rgba(0,0,0,0.82);
}
