/* ════════════════════════════════════════════════════════════════════════
   MADINAH-BESUCH MODUL v2 — CSS Skeleton (Phase 1)
   ────────────────────────────────────────────────────────────────────────
   v2.1 · 08.05.2026 — exakt nach MADINAH-MOCKUP-V2.html
   ════════════════════════════════════════════════════════════════════════ */

:root {
  --hcm-cat-nabawi:   #2dd4bf;
  --hcm-cat-grave:    #d4a843;
  --hcm-cat-baqi:     #3b82f6;
  --hcm-cat-quba:     #dc2626;
  --hcm-cat-duas:     #a78bfa;
  --hcm-cat-error:    #dc2626;

  --hcm-bg:           #0a1814;
  --hcm-text:         rgba(255,255,255,0.95);
  --hcm-text-muted:   rgba(255,255,255,0.7);
  --hcm-text-faint:   rgba(255,255,255,0.5);
}

/* ─── Modal Override — VOLLBILD ────────────────────────────────────── */
#modal-madinah {
  align-items: stretch !important;
  justify-content: stretch !important;
  padding: 0 !important;
}

#modal-madinah .modal__box {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border-top: none !important;
  background: #0a1814;
  background-image:
    radial-gradient(ellipse at 50% 100%, rgba(20, 148, 106, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, #0a1814 0%, #0d2419 50%, #0a1814 100%);
  color: var(--hcm-text);
}

#modal-madinah .modal__header { display: none !important; }
#modal-madinah .modal__body  {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: block !important;
  flex-direction: initial !important;
  gap: 0 !important;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#madinah-body {
  padding: 0;
  background: transparent;
  color: var(--hcm-text);
  font-family: inherit;
}

/* ─── Header ────────────────────────────────────────────────────────── */
.hcm-hdr {
  padding: 6px 14px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0a1814;
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.hcm-hdr-back,
.hcm-hdr-settings {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(20, 148, 106, 0.15);
  border: 1px solid rgba(20, 148, 106, 0.25);
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
  font-family: inherit;
  flex-shrink: 0;
  padding: 0;
}

.hcm-hdr-back:hover,
.hcm-hdr-settings:hover { background: rgba(20, 148, 106, 0.25); }
.hcm-hdr-back:active,
.hcm-hdr-settings:active { transform: scale(0.92); }

.hcm-hdr-title { flex: 1; text-align: center; min-width: 0; }

.hcm-hdr-eyebrow {
  font-size: 9px;
  color: var(--hcm-cat-nabawi);
  letter-spacing: 1.4px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}

.hcm-hdr-name {
  font-size: 13px;
  color: #fff;
  font-weight: 600;
  margin-top: 2px;
  line-height: 1.2;
}

/* ─── Tabs ──────────────────────────────────────────────────────────── */
.hcm-tabs {
  padding: 8px 12px;
  display: flex;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  overflow-x: auto;
}
.hcm-tabs::-webkit-scrollbar { display: none; }

.hcm-tab {
  flex: 1;
  min-width: 60px;
  height: 60px;
  padding: 8px 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  text-align: center;
  position: relative;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.hcm-tab:active { transform: scale(0.96); }

.hcm-tab-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hcm-tab-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.hcm-tab-name {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1;
  display: block;
  visibility: visible;
  opacity: 1;
}

.hcm-tab-count {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  line-height: 1;
  display: block;
  visibility: visible;
  opacity: 1;
}

.hcm-tab-arrow {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid transparent;
  opacity: 0;
}
.hcm-tab.hcm-tab--active .hcm-tab-arrow { opacity: 1; }

/* Active states per category */
.hcm-tab.hcm-cat-nabawi.hcm-tab--active {
  background: linear-gradient(135deg, rgba(45,212,191,0.20), rgba(45,212,191,0.05));
  border-color: var(--hcm-cat-nabawi);
}
.hcm-tab.hcm-cat-nabawi.hcm-tab--active .hcm-tab-name  { color: var(--hcm-cat-nabawi); }
.hcm-tab.hcm-cat-nabawi.hcm-tab--active .hcm-tab-arrow { border-top-color: var(--hcm-cat-nabawi); }

.hcm-tab.hcm-cat-grave.hcm-tab--active {
  background: linear-gradient(135deg, rgba(212,168,67,0.20), rgba(212,168,67,0.05));
  border-color: var(--hcm-cat-grave);
}
.hcm-tab.hcm-cat-grave.hcm-tab--active .hcm-tab-name  { color: var(--hcm-cat-grave); }
.hcm-tab.hcm-cat-grave.hcm-tab--active .hcm-tab-arrow { border-top-color: var(--hcm-cat-grave); }

.hcm-tab.hcm-cat-baqi.hcm-tab--active {
  background: linear-gradient(135deg, rgba(59,130,246,0.20), rgba(59,130,246,0.05));
  border-color: var(--hcm-cat-baqi);
}
.hcm-tab.hcm-cat-baqi.hcm-tab--active .hcm-tab-name  { color: var(--hcm-cat-baqi); }
.hcm-tab.hcm-cat-baqi.hcm-tab--active .hcm-tab-arrow { border-top-color: var(--hcm-cat-baqi); }

.hcm-tab.hcm-cat-quba.hcm-tab--active {
  background: linear-gradient(135deg, rgba(220,38,38,0.20), rgba(220,38,38,0.05));
  border-color: var(--hcm-cat-quba);
}
.hcm-tab.hcm-cat-quba.hcm-tab--active .hcm-tab-name  { color: var(--hcm-cat-quba); }
.hcm-tab.hcm-cat-quba.hcm-tab--active .hcm-tab-arrow { border-top-color: var(--hcm-cat-quba); }

.hcm-tab.hcm-cat-duas.hcm-tab--active {
  background: linear-gradient(135deg, rgba(168,139,250,0.20), rgba(168,139,250,0.05));
  border-color: var(--hcm-cat-duas);
}
.hcm-tab.hcm-cat-duas.hcm-tab--active .hcm-tab-name  { color: var(--hcm-cat-duas); }
.hcm-tab.hcm-cat-duas.hcm-tab--active .hcm-tab-arrow { border-top-color: var(--hcm-cat-duas); }

/* ─── Live-Animationen für SVG Icons ────────────────────────────────── */
.hcm-anim-mosque  svg { animation: hcmPulseMosque  4s   ease-in-out infinite; }
.hcm-anim-rose    svg { animation: hcmPulseRose    3s   ease-in-out infinite; }
.hcm-anim-tree    svg { animation: hcmPulseTree    5s   ease-in-out infinite; transform-origin: 50% 80%; }
.hcm-anim-warning svg { animation: hcmPulseWarning 2.5s ease-in-out infinite; }
.hcm-anim-dua     svg { animation: hcmPulseDua     3s   ease-in-out infinite; }

@keyframes hcmPulseMosque {
  0%, 100% { opacity: 0.85; transform: translateY(0); }
  50%      { opacity: 1;    transform: translateY(-1px); }
}
@keyframes hcmPulseRose {
  0%, 100% { opacity: 0.8; transform: scale(0.95); }
  50%      { opacity: 1;   transform: scale(1.05); }
}
@keyframes hcmPulseTree {
  0%, 100% { transform: rotate(-2deg); }
  50%      { transform: rotate(2deg); }
}
@keyframes hcmPulseWarning {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.08); }
}
@keyframes hcmPulseDua {
  0%, 100% { opacity: 0.85; transform: scale(0.95); }
  50%      { opacity: 1;    transform: scale(1.05); }
}

/* ─── Banner ────────────────────────────────────────────────────────── */
.hcm-banner {
  margin: 10px 14px;
  padding: 11px 13px;
  border-radius: 11px;
  border: 1px solid;
}

.hcm-banner-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 3px;
  line-height: 1.3;
}

.hcm-banner-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  line-height: 1.5;
}

.hcm-banner.hcm-cat-nabawi { background: rgba(45,212,191,0.08); border-color: rgba(45,212,191,0.30); }
.hcm-banner.hcm-cat-nabawi .hcm-banner-title { color: var(--hcm-cat-nabawi); }
.hcm-banner.hcm-cat-grave  { background: rgba(212,168,67,0.08); border-color: rgba(212,168,67,0.30); }
.hcm-banner.hcm-cat-grave  .hcm-banner-title { color: var(--hcm-cat-grave); }
.hcm-banner.hcm-cat-baqi   { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.30); }
.hcm-banner.hcm-cat-baqi   .hcm-banner-title { color: var(--hcm-cat-baqi); }
.hcm-banner.hcm-cat-quba   { background: rgba(220,38,38,0.08); border-color: rgba(220,38,38,0.30); }
.hcm-banner.hcm-cat-quba   .hcm-banner-title { color: var(--hcm-cat-quba); }
.hcm-banner.hcm-cat-duas   { background: rgba(168,139,250,0.08); border-color: rgba(168,139,250,0.30); }
.hcm-banner.hcm-cat-duas   .hcm-banner-title { color: var(--hcm-cat-duas); }

/* ─── Punkte-Bereich (Phase 3: hcm-point Akkordeons) ───────────────── */
.hcm-points-legacy { padding: 4px 14px 0; }

.hcm-point {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--hcm-cat-nabawi);
  border-radius: 11px;
  margin-bottom: 8px;
  overflow: hidden;
}

.hcm-point.hcm-cat-grave    { border-left-color: var(--hcm-cat-grave); }
.hcm-point.hcm-cat-baqi     { border-left-color: var(--hcm-cat-baqi); }
.hcm-point.hcm-cat-quba     { border-left-color: var(--hcm-cat-quba); }
.hcm-point.hcm-cat-duas     { border-left-color: var(--hcm-cat-duas); }
.hcm-point.hcm-point--error {
  border-left-color: var(--hcm-cat-error);
  background: rgba(220, 38, 38, 0.04);
}

.hcm-point-head {
  padding: 11px 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.hcm-point-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  line-height: 1;
}

.hcm-point-head-content {
  flex: 1;
  min-width: 0;
}

.hcm-point-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 3px;
  color: var(--hcm-cat-nabawi);
}

.hcm-point.hcm-cat-grave    .hcm-point-badge { color: var(--hcm-cat-grave); }
.hcm-point.hcm-cat-baqi     .hcm-point-badge { color: var(--hcm-cat-baqi); }
.hcm-point.hcm-cat-quba     .hcm-point-badge { color: var(--hcm-cat-quba); }
.hcm-point.hcm-cat-duas     .hcm-point-badge { color: var(--hcm-cat-duas); }
.hcm-point.hcm-point--error .hcm-point-badge { color: var(--hcm-cat-error); }

.hcm-point-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 3px;
}

.hcm-point-title-ar {
  font-family: 'Amiri', 'Scheherazade New', serif;
  font-size: 14px;
  color: var(--hcm-cat-grave);
  direction: rtl;
  text-align: right;
  margin-top: 3px;
  line-height: 1.4;
}

.hcm-point-chevron {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-top: 3px;
}

.hcm-point.expanded .hcm-point-chevron { transform: rotate(180deg); }

.hcm-point-body {
  display: none;
  padding: 0 13px 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 10px;
}

.hcm-point.expanded .hcm-point-body { display: block; }

.hcm-point-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 10px;
  white-space: pre-wrap;
}
.hcm-point-desc strong { color: var(--hcm-cat-grave); font-weight: 700; }

/* ─── Sub-Akkordeon "Mehr aus dem Buch" ────────────────────────────── */
.hcm-point-details { margin-bottom: 10px; }

.hcm-point-details-toggle {
  padding: 8px 11px;
  background: rgba(212, 168, 67, 0.08);
  border: 1px solid rgba(212, 168, 67, 0.25);
  border-radius: 9px;
  font-size: 11px;
  color: var(--hcm-cat-grave);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.hcm-point-details-toggle:hover { background: rgba(212, 168, 67, 0.12); }

.hcm-point-details-content {
  display: none;
  margin-top: 8px;
  padding: 11px 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  white-space: pre-wrap;
}
.hcm-point-details-content strong { color: var(--hcm-cat-grave); font-weight: 700; }

.hcm-point-details.expanded .hcm-point-details-content { display: block; }
.hcm-point-details.expanded .hcm-point-details-toggle  { background: rgba(212, 168, 67, 0.15); }

/* ─── Quelle-Box pro Punkt (rechts ausgerichtet) ──────────────────── */
.hcm-point-source {
  margin-top: 10px;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.5);
  text-align: right;
  background: rgba(0, 0, 0, 0.2);
  padding: 5px 9px;
  border-radius: 6px;
  display: inline-block;
  float: right;
}
.hcm-point-body::after { content: ''; display: block; clear: both; }

/* ─── Source-Footer ─────────────────────────────────────────────────── */
.hcm-source-footer {
  margin: 14px 14px 30px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 9px;
  text-align: center;
}

.hcm-source-footer-line1 {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.hcm-source-footer-line2 {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

.hcm-source-footer strong { color: var(--hcm-cat-grave); font-weight: 700; }

/* ─── Mobile responsive ────────────────────────────────────────────── */
@media (max-width: 360px) {
  .hcm-tabs   { gap: 3px; padding: 8px 8px; }
  .hcm-tab    { min-width: 52px; height: 56px; }
  .hcm-tab-name  { font-size: 8px; }
  .hcm-tab-count { font-size: 7px; }
}

/* ════════════════════════════════════════════════════════════════════
   PHASE 5 — SETTINGS-MODAL
   ──────────────────────────────────────────────────────────────────── */

/* ─── Hide-Klassen (von HCM_Settings.applyToDom gesetzt) ───────────── */
#madinah-body.hcm-no-arabic      .hcm-point-title-ar  { display: none; }
#madinah-body.hcm-no-source      .hcm-point-source    { display: none; }
#madinah-body.hcm-no-source      .hcm-source-footer   { display: none; }
#madinah-body.hcm-no-error-hl    .hcm-point--error    {
  border-left-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
#madinah-body.hcm-no-error-hl    .hcm-point--error .hcm-point-badge { color: rgba(255,255,255,0.6); }

/* Schriftgröße */
#madinah-body.hcm-fs-s  .hcm-point-title    { font-size: 12px; }
#madinah-body.hcm-fs-s  .hcm-point-desc     { font-size: 11px; }
#madinah-body.hcm-fs-s  .hcm-point-title-ar { font-size: 13px; }
#madinah-body.hcm-fs-l  .hcm-point-title    { font-size: 15px; }
#madinah-body.hcm-fs-l  .hcm-point-desc     { font-size: 14px; }
#madinah-body.hcm-fs-l  .hcm-point-title-ar { font-size: 16px; }

/* Settings-Show-Mode: blendet alles andere aus */
#madinah-body.hcm-show-settings .hcm-tabs,
#madinah-body.hcm-show-settings .hcm-banner,
#madinah-body.hcm-show-settings .hcm-points-legacy,
#madinah-body.hcm-show-settings .hcm-source-footer { display: none; }

/* ─── Settings-Panel ───────────────────────────────────────────────── */
.hcm-settings-panel {
  display: none;
  padding: 0 14px 30px;
}
#madinah-body.hcm-show-settings .hcm-settings-panel { display: block; }

.hcm-set-hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 14px;
}
.hcm-set-hdr-title {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.hcm-set-hdr-close {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  cursor: pointer;
  font-family: inherit;
}

.hcm-set-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  padding: 12px;
  margin-bottom: 10px;
}

.hcm-set-title {
  font-size: 11px;
  color: var(--hcm-cat-grave);
  font-weight: 700;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
}

.hcm-set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  gap: 10px;
}
.hcm-set-row:last-child { border-bottom: none; }

.hcm-set-row-label {
  font-size: 12px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

/* Toggle Switch */
.hcm-set-toggle {
  width: 38px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  position: relative;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}
.hcm-set-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.hcm-set-toggle--on { background: var(--hcm-cat-nabawi); }
.hcm-set-toggle--on::after { transform: translateX(18px); }

/* Font-Size-Picker */
.hcm-set-fs-picker {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.hcm-set-fs-btn {
  width: 32px;
  height: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.hcm-set-fs-btn--on {
  background: var(--hcm-cat-nabawi);
  border-color: var(--hcm-cat-nabawi);
  color: #0a1814;
}

/* Sprach-Select */
.hcm-set-select {
  font-size: 12px;
  color: var(--hcm-cat-nabawi);
  font-weight: 600;
  flex-shrink: 0;
}

/* Quelle-Info */
.hcm-set-source-info {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  padding: 6px 0;
}
.hcm-set-source-info strong { color: var(--hcm-cat-grave); font-weight: 700; }
.hcm-set-source-book {
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
}
.hcm-set-source-pub {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  margin-top: 4px;
  display: inline-block;
}

/* Schließen-Button */
.hcm-set-close-btn {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 11px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  margin-top: 6px;
}
.hcm-set-close-btn:hover { background: rgba(255, 255, 255, 0.10); }

/* ════════════════════════════════════════════════════════════════════
   PHASE 6 — LIGHT MODE
   ──────────────────────────────────────────────────────────────────── */

html.hcm-light-mode #modal-madinah .modal__box {
  background: #fafaf5;
  background-image:
    radial-gradient(ellipse at 50% 100%, rgba(20, 148, 106, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, #fafaf5 0%, #f5efe2 50%, #fafaf5 100%);
  color: #1a1a1a;
}

html.hcm-light-mode .hcm-hdr {
  background: #fafaf5;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

html.hcm-light-mode .hcm-hdr-back,
html.hcm-light-mode .hcm-hdr-settings {
  background: rgba(20, 148, 106, 0.10);
  border-color: rgba(20, 148, 106, 0.25);
  color: #1a4d3a;
}

html.hcm-light-mode .hcm-hdr-eyebrow { color: #0d9488; }
html.hcm-light-mode .hcm-hdr-name    { color: #1a1a1a; }

html.hcm-light-mode .hcm-tabs {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

html.hcm-light-mode .hcm-tab {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.10);
}
html.hcm-light-mode .hcm-tab-name  { color: rgba(0, 0, 0, 0.7); }
html.hcm-light-mode .hcm-tab-count { color: rgba(0, 0, 0, 0.5); }

html.hcm-light-mode .hcm-banner-sub      { color: rgba(0, 0, 0, 0.7); }

html.hcm-light-mode .hcm-point {
  background: rgba(0, 0, 0, 0.025);
  border-color: rgba(0, 0, 0, 0.08);
}
html.hcm-light-mode .hcm-point-title    { color: #1a1a1a; }
html.hcm-light-mode .hcm-point-desc     { color: rgba(0, 0, 0, 0.85); }
html.hcm-light-mode .hcm-point-chevron  { color: rgba(0, 0, 0, 0.4); }
html.hcm-light-mode .hcm-point-body     { border-top-color: rgba(0, 0, 0, 0.05); }
html.hcm-light-mode .hcm-point-details-content {
  background: rgba(0, 0, 0, 0.04);
  color: rgba(0, 0, 0, 0.85);
}
html.hcm-light-mode .hcm-point-source {
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.6);
}

html.hcm-light-mode .hcm-source-footer {
  background: rgba(0, 0, 0, 0.04);
}
html.hcm-light-mode .hcm-source-footer-line1,
html.hcm-light-mode .hcm-source-footer-line2 { color: rgba(0, 0, 0, 0.6); }

/* Settings-Panel im Light-Mode */
html.hcm-light-mode .hcm-set-card {
  background: rgba(0, 0, 0, 0.025);
  border-color: rgba(0, 0, 0, 0.08);
}
html.hcm-light-mode .hcm-set-row { border-bottom-color: rgba(0, 0, 0, 0.05); }
html.hcm-light-mode .hcm-set-row-label { color: #1a1a1a; }
html.hcm-light-mode .hcm-set-hdr-title { color: #1a1a1a; }
html.hcm-light-mode .hcm-set-hdr-close {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.8);
}
html.hcm-light-mode .hcm-set-toggle { background: rgba(0, 0, 0, 0.15); }
html.hcm-light-mode .hcm-set-fs-btn {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.7);
}
html.hcm-light-mode .hcm-set-source-info { color: rgba(0, 0, 0, 0.7); }
html.hcm-light-mode .hcm-set-close-btn {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.10);
  color: #1a1a1a;
}

/* ════════════════════════════════════════════════════════════════════
   PHASE 7 — DU'AS CARDS
   ──────────────────────────────────────────────────────────────────── */

.hcm-dua-card {
  margin-bottom: 10px;
  padding: 12px;
  background: rgba(168, 139, 250, 0.08);
  border: 1px solid rgba(168, 139, 250, 0.25);
  border-radius: 10px;
}

.hcm-dua-arabic {
  font-family: 'Amiri', 'Scheherazade New', serif;
  font-size: 20px;
  line-height: 2;
  color: var(--hcm-cat-grave);
  text-align: right;
  direction: rtl;
  margin-bottom: 8px;
}

.hcm-dua-translit {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 6px;
}

.hcm-dua-translation {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.5;
}

/* Toggles für Du'a-Bestandteile */
#madinah-body.hcm-no-arabic      .hcm-dua-arabic      { display: none; }
#madinah-body.hcm-no-translit    .hcm-dua-translit    { display: none; }
#madinah-body.hcm-no-translation .hcm-dua-translation { display: none; }

html.hcm-light-mode .hcm-dua-card {
  background: rgba(168, 139, 250, 0.10);
  border-color: rgba(168, 139, 250, 0.35);
}
html.hcm-light-mode .hcm-dua-translit    { color: rgba(0, 0, 0, 0.7); }
html.hcm-light-mode .hcm-dua-translation { color: #1a1a1a; }

/* ════════════════════════════════════════════════════════════════════
   PHASE 8 — BOOKMARKS
   ──────────────────────────────────────────────────────────────────── */

.hcm-point-bookmark {
  display: none;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-top: 0;
  padding: 0;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, transform 0.1s ease;
}
.hcm-point-bookmark:active { transform: scale(0.92); }

#madinah-body.hcm-bookmarks-on .hcm-point-bookmark { display: flex; }

.hcm-bm-icon-on  { display: none; }
.hcm-bm-icon-off { display: inline; }
.hcm-point-bookmark--on .hcm-bm-icon-off { display: none; }
.hcm-point-bookmark--on .hcm-bm-icon-on  { display: inline; }
.hcm-point-bookmark--on {
  background: rgba(212, 168, 67, 0.20);
  border-color: rgba(212, 168, 67, 0.50);
}

/* Visueller Bookmark-Indicator auf der ganzen Karte */
.hcm-point.hcm-bookmarked {
  box-shadow: 0 0 0 1px rgba(212, 168, 67, 0.20);
}

html.hcm-light-mode .hcm-point-bookmark {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
}

/* Empty State (Bookmarks-Tab leer) */
.hcm-empty-state {
  text-align: center;
  padding: 60px 30px 40px;
  color: rgba(255, 255, 255, 0.6);
}
.hcm-empty-icon  { font-size: 48px; margin-bottom: 16px; opacity: 0.6; }
.hcm-empty-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.hcm-empty-sub   { font-size: 13px; line-height: 1.5; max-width: 280px; margin: 0 auto; }

html.hcm-light-mode .hcm-empty-title { color: #1a1a1a; }
html.hcm-light-mode .hcm-empty-state { color: rgba(0, 0, 0, 0.6); }

/* ────────────────────────────────────────────────────────────────────
   Smooth Transitions für Light-Mode-Switch
   ──────────────────────────────────────────────────────────────────── */
#modal-madinah .modal__box,
#madinah-body, #madinah-body * {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

/* ════════════════════════════════════════════════════════════════════
   v2.2 (08.05.2026) — Font-Size auch im Settings-Panel sichtbar
   + Sprach-Select klickbar
   ──────────────────────────────────────────────────────────────────── */

/* Font-Size: Settings-Labels mit verändern für sofortiges visuelles Feedback */
#madinah-body.hcm-fs-s .hcm-set-row-label  { font-size: 11px; }
#madinah-body.hcm-fs-s .hcm-set-title      { font-size: 10px; }
#madinah-body.hcm-fs-s .hcm-set-source-info{ font-size: 10.5px; }
#madinah-body.hcm-fs-l .hcm-set-row-label  { font-size: 14px; }
#madinah-body.hcm-fs-l .hcm-set-title      { font-size: 12px; }
#madinah-body.hcm-fs-l .hcm-set-source-info{ font-size: 13px; }

/* Auch Banner und Source-Footer skalieren */
#madinah-body.hcm-fs-s .hcm-banner-title      { font-size: 11px; }
#madinah-body.hcm-fs-s .hcm-banner-sub        { font-size: 10px; }
#madinah-body.hcm-fs-s .hcm-source-footer-line1,
#madinah-body.hcm-fs-s .hcm-source-footer-line2 { font-size: 9px; }
#madinah-body.hcm-fs-l .hcm-banner-title      { font-size: 14px; }
#madinah-body.hcm-fs-l .hcm-banner-sub        { font-size: 13px; }
#madinah-body.hcm-fs-l .hcm-source-footer-line1,
#madinah-body.hcm-fs-l .hcm-source-footer-line2 { font-size: 11.5px; }

/* Auch Du'a-Cards skalieren */
#madinah-body.hcm-fs-s .hcm-dua-arabic      { font-size: 18px; }
#madinah-body.hcm-fs-s .hcm-dua-translit    { font-size: 11px; }
#madinah-body.hcm-fs-s .hcm-dua-translation { font-size: 12px; }
#madinah-body.hcm-fs-l .hcm-dua-arabic      { font-size: 24px; }
#madinah-body.hcm-fs-l .hcm-dua-translit    { font-size: 14px; }
#madinah-body.hcm-fs-l .hcm-dua-translation { font-size: 15px; }

/* ─── Sprach-Select (klickbares native Dropdown) ────────────────────── */
.hcm-set-lang-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 26px 7px 10px;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
  min-width: 130px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><polygon points='2,3 5,7 8,3' fill='%232dd4bf'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 10px 10px;
}
.hcm-set-lang-select:focus {
  outline: none;
  border-color: var(--hcm-cat-nabawi);
}
.hcm-set-lang-select option {
  background: #0a1814;
  color: #fff;
}

html.hcm-light-mode .hcm-set-lang-select {
  background-color: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.18);
  color: #1a1a1a;
}
html.hcm-light-mode .hcm-set-lang-select option {
  background: #fafaf5;
  color: #1a1a1a;
}

/* ─── Tab-Level Premium-Gate (nur Nabawi frei) ──────────────────────── */
.hcm-tab-locked {
  margin: 14px 14px;
  padding: 26px 18px;
  background: linear-gradient(135deg, rgba(212,168,67,0.10), rgba(212,168,67,0.04));
  border: 2px dashed rgba(212,168,67,0.40);
  border-radius: 14px;
  text-align: center;
}
.hcm-tab-locked-icon {
  font-size: 42px;
  margin-bottom: 12px;
}
.hcm-tab-locked-title {
  font-size: 15px;
  color: var(--hcm-cat-grave);
  font-weight: 700;
  margin-bottom: 6px;
}
.hcm-tab-locked-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  margin-bottom: 14px;
}
.hcm-tab-locked-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #d4a843, #b8923a);
  border: none;
  border-radius: 10px;
  color: #0a1814;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

html.hcm-light-mode .hcm-tab-locked-sub { color: rgba(0,0,0,0.7); }
