/* Islamify.ai dark landing concept, scoped to codex.html */

html[data-page="codex-dark"] {
  scroll-behavior: smooth;
  background: #020817;
}

html[data-page="codex-dark"] body {
  background: #020817;
  color: #f8fafc;
  overflow-x: hidden;
}

.ai-dark-page {
  --cyan: #00e5ff;
  --cyan-2: #00cfe8;
  --cyan-3: #00a9c7;
  --navy: #020817;
  --navy-2: #030b13;
  --panel: rgba(7, 17, 31, 0.78);
  --panel-2: rgba(11, 23, 38, 0.78);
  --line: rgba(0, 229, 255, 0.16);
  --line-strong: rgba(0, 229, 255, 0.34);
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --dim: #64748b;
  --dark-container: 1240px;
  background:
    radial-gradient(circle at 76% 20%, rgba(0, 229, 255, 0.18), transparent 32%),
    radial-gradient(circle at 14% 18%, rgba(0, 187, 212, 0.08), transparent 28%),
    linear-gradient(180deg, #020817 0%, #030b13 52%, #020817 100%);
  min-height: 100vh;
}

.ai-dark-page *,
.ai-dark-page h1,
.ai-dark-page h2,
.ai-dark-page h3,
.ai-dark-page h4,
.ai-dark-page .btn-dark,
.ai-dark-page .brand-lockup,
.ai-dark-page .section-label {
  letter-spacing: 0;
}

.starfield,
.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.starfield {
  z-index: 0;
}

/* CSS-only Sterne: jeder Layer ist ein einzelnes 1.5-2.5px Element,
   das sich per box-shadow vervielfacht. opacity-Animation läuft GPU-
   compositing ohne JS in der Render-Loop. 8 Layer × 6-9 Sterne ≈ 60
   Punkte in 8 Phasen-Gruppen → "alle blinzeln, abwechselnd". */
.starfield .star-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: opacity;
}

.starfield .star-layer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1.6px;
  height: 1.6px;
  border-radius: 50%;
  background: rgba(180, 245, 255, 0.95);
  box-shadow: var(--stars, 0 0 transparent);
  animation: starTwinkle var(--dur, 5s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.starfield .star-layer.lg::before {
  width: 2.4px;
  height: 2.4px;
  background: rgba(200, 250, 255, 0.9);
}

.starfield .star-layer.tiny::before {
  width: 1px;
  height: 1px;
  background: rgba(170, 240, 255, 0.8);
}

@keyframes starTwinkle {
  0%, 100% { opacity: 0.18; }
  50%      { opacity: 0.95; }
}

@media (prefers-reduced-motion: reduce) {
  .starfield .star-layer::before {
    animation: none;
    opacity: 0.5;
  }
}

/* ========================================================================
   Cloudfield — Light-Mode Pendant zum Starfield. Dezente, weiche Wolken
   driften langsam von links nach rechts. CSS-only, GPU-composite,
   pausiert wenn Tab inaktiv.
   ======================================================================== */
.cloudfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  opacity: 0;
  transition: opacity 5s ease-in-out;
}
html[data-theme="light"] .cloudfield { opacity: 1; }

/* Sterne fade out wenn Light, fade in wenn Dark */
.starfield {
  transition: opacity 5s ease-in-out;
}
html[data-theme="light"] .starfield { opacity: 0; }

/* Echte Cumulus-Wolken: mehrere überlagerte Kreise ergeben eine puffy
   Form, weiches Blur am Rand für sommerliche Weichheit. CSS-only. */
.cloud {
  position: absolute;
  pointer-events: none;
  filter: blur(8px) drop-shadow(0 6px 16px rgba(80, 100, 120, 0.08));
  background:
    radial-gradient(circle at 22% 65%, #ffffff 0, #ffffff 22%, transparent 23%),
    radial-gradient(circle at 38% 42%, #ffffff 0, #ffffff 26%, transparent 27%),
    radial-gradient(circle at 55% 55%, #ffffff 0, #ffffff 30%, transparent 31%),
    radial-gradient(circle at 72% 45%, #ffffff 0, #ffffff 27%, transparent 28%),
    radial-gradient(circle at 85% 60%, #ffffff 0, #ffffff 22%, transparent 23%),
    radial-gradient(circle at 47% 70%, #ffffff 0, #ffffff 24%, transparent 25%);
  background-repeat: no-repeat;
  will-change: transform;
  animation: cloudDrift linear infinite;
}

.cloud-1 { width: 380px; height: 130px; top:  7%; left: -32%; animation-duration: 110s; }
.cloud-2 { width: 520px; height: 180px; top: 28%; left: -36%; animation-duration: 140s; animation-delay:  -45s; }
.cloud-3 { width: 320px; height: 110px; top: 52%; left: -30%; animation-duration: 125s; animation-delay:  -75s; }
.cloud-4 { width: 460px; height: 160px; top: 72%; left: -34%; animation-duration: 155s; animation-delay: -110s; }

@keyframes cloudDrift {
  from { transform: translateX(0); }
  to   { transform: translateX(155vw); }
}

@media (prefers-reduced-motion: reduce) {
  .cloud { animation: none; }
}

/* ========================================================================
   Light Mode — wird über [data-theme="light"] auf <html> aktiviert.
   Theme-detection läuft synchron im <head> bevor der erste Paint kommt.
   ======================================================================== */
html[data-theme="light"] {
  background: #e8f0f7;
  color-scheme: light;
}

html[data-theme="light"] body {
  background: #e8f0f7;
  color: #1f1812;
}

/* Sanfter Sommerhimmel: oben heller, unten warmer Cream-Touch im Übergang
   damit die warmen Card-Töne und der honig-Hero gut harmonieren. */
html[data-theme="light"] .ai-dark-page {
  background:
    radial-gradient(circle at 76% 18%, rgba(14, 116, 144, 0.06), transparent 32%),
    linear-gradient(180deg,
      #d9e7f1 0%,
      #e6efe9 38%,
      #f0ecdf 72%,
      #f5ede0 100%);
}

/* (Sterne/Wolken-Sichtbarkeit wird oben über opacity-transition geregelt
   damit Theme-Wechsel als sanfter Sonnenauf-/Sonnenuntergang animiert) */

/* Page-Glow Pattern dezent in Teal-Beige statt Cyan */
html[data-theme="light"] .page-glow {
  background-image:
    linear-gradient(rgba(14, 116, 144, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 116, 144, 0.025) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(14, 116, 144, 0.05), transparent 54%);
}

/* Header */
html[data-theme="light"] .dark-header {
  background: rgba(250, 246, 236, 0.78);
  border-bottom-color: rgba(14, 116, 144, 0.14);
}
html[data-theme="light"] .dark-header.is-scrolled {
  background: rgba(250, 246, 236, 0.5);
  border-bottom-color: rgba(14, 116, 144, 0.08);
}
html[data-theme="light"] .brand-lockup { color: #1f1812; }
html[data-theme="light"] .brand-lockup small { color: #8b7e6e; }
html[data-theme="light"] .desktop-nav a { color: #5d534a; }
html[data-theme="light"] .desktop-nav a:hover,
html[data-theme="light"] .desktop-nav a.is-active { color: #0e7490; }
html[data-theme="light"] .desktop-nav a::after {
  background: #0e7490;
  box-shadow: 0 0 14px rgba(14, 116, 144, 0.45);
}
html[data-theme="light"] .theme-button {
  border-color: rgba(120, 100, 80, 0.18);
  background: rgba(255, 250, 238, 0.6);
  color: #5d534a;
}
html[data-theme="light"] .theme-button:hover {
  color: #0e7490;
  border-color: rgba(14, 116, 144, 0.4);
}

/* Buttons */
html[data-theme="light"] .btn-cyan {
  color: #ffffff;
  background: linear-gradient(135deg, #0e7490 0%, #0891b2 50%, #0369a1 100%);
  box-shadow: 0 0 24px rgba(14, 116, 144, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}
html[data-theme="light"] .btn-cyan:hover {
  box-shadow: 0 0 32px rgba(14, 116, 144, 0.32), 0 14px 32px -16px rgba(14, 116, 144, 0.55);
}
html[data-theme="light"] .btn-ghost-dark {
  color: #1f1812;
  background: rgba(255, 252, 245, 0.7);
  border-color: rgba(14, 116, 144, 0.3);
}
html[data-theme="light"] .btn-ghost-dark:hover {
  color: #0e7490;
  background: rgba(14, 116, 144, 0.08);
  border-color: rgba(14, 116, 144, 0.5);
}

/* Hero */
html[data-theme="light"] .hero-bg-veil {
  background:
    linear-gradient(90deg,
      rgba(250, 246, 236, 0.94) 0%,
      rgba(250, 246, 236, 0.86) 26%,
      rgba(250, 246, 236, 0.55) 46%,
      rgba(250, 246, 236, 0.18) 68%,
      rgba(250, 246, 236, 0.42) 100%
    ),
    linear-gradient(180deg,
      transparent 0%,
      transparent 78%,
      rgba(250, 246, 236, 0.18) 86%,
      rgba(250, 246, 236, 0.55) 93%,
      rgba(250, 246, 236, 0.88) 98%,
      #faf6ec 100%
    ),
    radial-gradient(circle at 72% 52%, rgba(212, 165, 116, 0.10), transparent 38%);
}
html[data-theme="light"] .hero-badge {
  background: rgba(255, 252, 245, 0.7);
  border-color: rgba(14, 116, 144, 0.28);
  color: #2c2418;
}
html[data-theme="light"] .hero-badge span { color: #0e7490; }
html[data-theme="light"] .hero-copy h1 { color: #1f1812; }
html[data-theme="light"] .hero-copy h1 span {
  color: #0e7490;
  text-shadow: 0 0 24px rgba(14, 116, 144, 0.18);
}
html[data-theme="light"] .hero-lede { color: #5d534a; }
html[data-theme="light"] .hero-microcopy { color: #8b7e6e; }

/* Section labels + headlines */
html[data-theme="light"] .section-label { color: #0e7490; }
html[data-theme="light"] .section-heading h2,
html[data-theme="light"] .work-copy h2,
html[data-theme="light"] .trust-panel h2,
html[data-theme="light"] .final-card h2 { color: #1f1812; }
html[data-theme="light"] .section-heading p,
html[data-theme="light"] .work-copy p,
html[data-theme="light"] .trust-panel p,
html[data-theme="light"] .final-card p { color: #5d534a; }
html[data-theme="light"] .section-heading i {
  background: linear-gradient(90deg, transparent, #0e7490, transparent);
  box-shadow: 0 0 16px rgba(14, 116, 144, 0.4);
}

/* Karten / Panels — gemeinsamer Block-Selector aus dem Original */
html[data-theme="light"] .benefit-item,
html[data-theme="light"] .feature-card,
html[data-theme="light"] .chat-mockup,
html[data-theme="light"] .trust-panel,
html[data-theme="light"] .price-card,
html[data-theme="light"] .final-card,
html[data-theme="light"] .ayah-card {
  background: rgba(255, 252, 245, 0.85);
  border-color: rgba(14, 116, 144, 0.16);
  box-shadow: 0 16px 48px -32px rgba(120, 90, 60, 0.35);
}

html[data-theme="light"] .benefit-item span { color: #0e7490; }
html[data-theme="light"] .benefit-item strong { color: #1f1812; }
html[data-theme="light"] .benefit-item p { color: #5d534a; }

html[data-theme="light"] .feature-card h3,
html[data-theme="light"] .price-card h3 { color: #1f1812; }
html[data-theme="light"] .feature-card p,
html[data-theme="light"] .price-card p { color: #5d534a; }

html[data-theme="light"] .feature-icon,
html[data-theme="light"] .step-list article > span,
html[data-theme="light"] .shield-icon {
  background: rgba(14, 116, 144, 0.10);
  color: #0e7490;
  box-shadow: inset 0 0 0 1px rgba(14, 116, 144, 0.28);
}
html[data-theme="light"] .step-list h3 { color: #1f1812; }
html[data-theme="light"] .step-list p { color: #5d534a; }

html[data-theme="light"] .soon-dark {
  border-color: rgba(14, 116, 144, 0.3);
  background: rgba(14, 116, 144, 0.08);
  color: #0e7490;
}

html[data-theme="light"] .feature-card:hover,
html[data-theme="light"] .price-card:hover,
html[data-theme="light"] .benefit-item:hover {
  border-color: rgba(14, 116, 144, 0.4);
  box-shadow: 0 0 28px rgba(14, 116, 144, 0.1), 0 22px 56px -36px rgba(120, 90, 60, 0.55);
}

/* Mock chat */
html[data-theme="light"] .mock-sidebar {
  background: rgba(245, 238, 224, 0.7);
  border-right-color: rgba(14, 116, 144, 0.16);
}
html[data-theme="light"] .mock-brand { color: #1f1812; }
html[data-theme="light"] .mock-sidebar nav span,
html[data-theme="light"] .mock-sidebar small { color: #6b6452; }
html[data-theme="light"] .mock-sidebar nav span.on {
  color: #1f1812;
  background: rgba(14, 116, 144, 0.1);
  box-shadow: inset 0 0 0 1px rgba(14, 116, 144, 0.22);
}
html[data-theme="light"] .mock-main {
  background:
    radial-gradient(circle at 72% 18%, rgba(14, 116, 144, 0.08), transparent 34%),
    rgba(255, 252, 245, 0.55);
}
html[data-theme="light"] .mock-top { color: #6b6452; }
html[data-theme="light"] .mock-top b { color: #0e7490; }
html[data-theme="light"] .question-bubble {
  background: linear-gradient(135deg, #0e7490, #0369a1);
  color: #ffffff;
}
html[data-theme="light"] .answer-card {
  background: rgba(255, 248, 232, 0.9);
  border-color: rgba(14, 116, 144, 0.16);
}
html[data-theme="light"] .answer-card p { color: #1f1812; }
html[data-theme="light"] .answer-card li { color: #5d534a; }
html[data-theme="light"] .answer-card li::before { background: #0e7490; box-shadow: 0 0 8px rgba(14, 116, 144, 0.45); }
html[data-theme="light"] .mock-input {
  background: rgba(255, 252, 245, 0.6);
  border-color: rgba(14, 116, 144, 0.16);
}
html[data-theme="light"] .mock-input input { color: #1f1812; }
html[data-theme="light"] .mock-input input::placeholder { color: #8b7e6e; }
html[data-theme="light"] .mock-input button {
  background: #0e7490;
  color: #ffffff;
}

/* Ayah + Bismillah */
html[data-theme="light"] .ayah-arabic {
  color: #1f1812;
  text-shadow: 0 0 28px rgba(14, 116, 144, 0.14);
}
html[data-theme="light"] .ayah-card p { color: #2c2418; }
html[data-theme="light"] .ayah-card span {
  border-color: rgba(14, 116, 144, 0.22);
  color: #6b6452;
}
html[data-theme="light"] .ayah-card::before,
html[data-theme="light"] .final-card::before {
  background: linear-gradient(90deg, transparent, #0e7490, transparent);
  box-shadow: 0 0 18px rgba(14, 116, 144, 0.45);
}
html[data-theme="light"] .final-card .bismillah-arabic {
  color: #0e7490;
  text-shadow: 0 0 30px rgba(14, 116, 144, 0.18);
}

/* Featured price card */
html[data-theme="light"] .price-card.featured {
  border-color: rgba(14, 116, 144, 0.4);
  box-shadow: 0 0 32px rgba(14, 116, 144, 0.12), 0 22px 60px -38px rgba(14, 116, 144, 0.55);
}
html[data-theme="light"] .plan-ar { color: #0e7490; }
html[data-theme="light"] .price-card strong { color: #1f1812; }
html[data-theme="light"] .price-card small { color: #6b6452; }

/* Footer */
html[data-theme="light"] .dark-footer {
  border-top-color: rgba(14, 116, 144, 0.15);
  background:
    radial-gradient(circle at 50% 0%, rgba(14, 116, 144, 0.08), transparent 42%),
    linear-gradient(180deg, #f4ecdf 0%, #faf6ec 100%);
}
html[data-theme="light"] .footer-brand p { color: #5d534a; }
html[data-theme="light"] .dark-footer h4 { color: #0e7490; }
html[data-theme="light"] .dark-footer a { color: #5d534a; }
html[data-theme="light"] .dark-footer a:hover { color: #0e7490; }
html[data-theme="light"] .footer-bottom {
  border-top-color: rgba(120, 100, 80, 0.16);
  color: #8b7e6e;
}

.page-glow {
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.018) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(0, 229, 255, 0.05), transparent 54%);
  background-size: 80px 80px, 80px 80px, 100% 100%;
  /* Pattern nur im mittleren Drittel des Viewports sichtbar, sodass es weder
     gegen den Hero-Bottom-Veil noch gegen den Footer scharf abreißt. */
  mask-image: linear-gradient(180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.18) 32%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(0, 0, 0, 0.18) 70%,
    transparent 100%);
  -webkit-mask-image: linear-gradient(180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.18) 32%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(0, 0, 0, 0.18) 70%,
    transparent 100%);
}

.ai-dark-page main,
.dark-header,
.dark-footer {
  position: relative;
  z-index: 1;
}

.skip-link {
  position: fixed;
  left: 20px;
  top: 14px;
  z-index: 200;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 10px;
  background: #f8fafc;
  color: #020817;
  font-weight: 700;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.dark-container {
  width: min(var(--dark-container), calc(100% - 48px));
  margin: 0 auto;
}

.dark-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(0, 229, 255, 0.12);
  background: rgba(2, 8, 23, 0.78);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  transition: background 220ms ease, border-color 220ms ease,
              backdrop-filter 220ms ease, box-shadow 220ms ease;
}

/* Beim Scrollen wird die Bar leichter und schwebt deutlicher: Hintergrund
   transparenter, Border subtiler, Blur stärker — "frosted glass"-Look. */
.dark-header.is-scrolled {
  background: rgba(2, 8, 23, 0.42);
  border-bottom-color: rgba(0, 229, 255, 0.07);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: 0 10px 30px -28px rgba(0, 229, 255, 0.35);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: 2px;
  pointer-events: none;
  background: transparent;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--cyan-2));
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.72);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  min-width: max-content;
}

.brand-lockup:hover {
  text-decoration: none;
}

.brand-lockup img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 0 26px rgba(0, 229, 255, 0.24);
}

.brand-lockup span {
  display: grid;
  gap: 2px;
}

.brand-lockup strong {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1;
}

.brand-lockup small {
  color: var(--subtle);
  font-size: 11px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex: 1;
}

.desktop-nav a {
  position: relative;
  color: #cbd5e1;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 2px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.55);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--cyan);
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-button {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.42);
  color: var(--muted);
  transition: color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.theme-button:hover {
  color: var(--cyan);
  border-color: var(--line-strong);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.16);
}

/* Sun-Icon im Dark-Mode (= "wechsle zu hell"), Mond im Light-Mode */
.theme-button .icon-sun,
.theme-button .icon-moon {
  display: none;
}
html[data-theme="dark"] .theme-button .icon-sun  { display: inline-block; }
html[data-theme="light"] .theme-button .icon-moon { display: inline-block; }

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.btn-dark:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-large {
  min-height: 54px;
  padding: 0 24px;
  font-size: 15px;
}

.btn-cyan {
  color: #021018;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-2) 52%, var(--cyan-3) 100%);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-cyan:hover {
  box-shadow: 0 0 42px rgba(0, 229, 255, 0.38), 0 18px 44px -24px rgba(0, 229, 255, 0.75);
}

.btn-ghost-dark {
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.42);
  border-color: rgba(0, 229, 255, 0.28);
}

.btn-ghost-dark:hover {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.52);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.22);
}

.section-anchor {
  scroll-margin-top: 98px;
}

.hero-section {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: 96px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  filter: saturate(1.06) contrast(1.04);
  transition: opacity 5s ease-in-out;
}

/* Beide Hero-Bilder liegen übereinander; je nach Theme blendet eins ein */
html[data-theme="dark"] .hero-bg-night { opacity: 1; }
html[data-theme="dark"] .hero-bg-day   { opacity: 0; }
html[data-theme="light"] .hero-bg-night { opacity: 0; }
html[data-theme="light"] .hero-bg-day   { opacity: 1; }

.hero-bg-veil {
  position: absolute;
  inset: 0;
  background:
    /* Horizontaler Veil: links solid, rechts Bild voll sichtbar (Text-Schutz) */
    linear-gradient(
      90deg,
      rgba(2, 8, 23, 0.96) 0%,
      rgba(2, 8, 23, 0.9) 26%,
      rgba(2, 8, 23, 0.6) 46%,
      rgba(2, 8, 23, 0.18) 68%,
      rgba(2, 8, 23, 0.42) 100%
    ),
    /* Vertikaler Veil: erst die letzten ~20% des Bildes faden in den
       Page-Hintergrund, davor transparent damit das Bild voll lebt */
    linear-gradient(
      180deg,
      transparent 0%,
      transparent 78%,
      rgba(2, 8, 23, 0.16) 86%,
      rgba(2, 8, 23, 0.5) 93%,
      rgba(2, 8, 23, 0.85) 98%,
      #020817 100%
    ),
    radial-gradient(circle at 72% 52%, rgba(0, 229, 255, 0.13), transparent 38%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.hero-copy {
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(0, 229, 255, 0.26);
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.68);
  color: #d9faff;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.08);
}

.hero-badge:hover {
  color: var(--cyan);
  text-decoration: none;
}

.hero-badge span {
  display: inline-flex;
  color: var(--cyan);
}

.hero-copy h1 {
  margin: 18px 0 0;
  color: #fff;
  font-size: clamp(42px, 4.4vw, 68px);
  line-height: 1.05;
  font-weight: 800;
  max-width: 760px;
}

.hero-copy h1 span {
  color: var(--cyan);
  text-shadow: 0 0 28px rgba(0, 229, 255, 0.28);
}

.hero-lede {
  max-width: 600px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-microcopy {
  margin-top: 16px;
  color: var(--subtle);
  font-size: 13px;
}


.benefit-band {
  padding: 26px 0 54px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.benefit-item,
.feature-card,
.chat-mockup,
.trust-panel,
.price-card,
.final-card,
.ayah-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 80px -52px rgba(0, 229, 255, 0.42);
}

.benefit-item {
  min-height: 126px;
  padding: 22px;
  border-radius: 20px;
}

.benefit-item span {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
}

.benefit-item strong {
  display: block;
  margin-top: 14px;
  color: #fff;
  font-size: 17px;
}

.benefit-item p {
  margin: 7px 0 0;
  color: var(--subtle);
  font-size: 14px;
}

.feature-section,
.work-section,
.trust-section,
.pricing-section,
.final-cta {
  padding: 104px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 42px;
}

.section-heading.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-label {
  display: inline-flex;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.section-heading h2,
.work-copy h2,
.trust-panel h2,
.final-card h2 {
  margin: 12px 0 0;
  color: #fff;
  font-size: clamp(32px, 3.8vw, 54px);
  line-height: 1.08;
  font-weight: 800;
}

.section-heading p,
.work-copy p,
.trust-panel p,
.final-card p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.section-heading i {
  display: inline-block;
  width: 86px;
  height: 2px;
  margin-top: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  position: relative;
  min-height: 292px;
  padding: 28px;
  border-radius: 22px;
  overflow: hidden;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.feature-card::before,
.price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 0%, rgba(0, 229, 255, 0.12), transparent 38%);
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}

.feature-card:hover,
.price-card:hover,
.benefit-item:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.36);
  box-shadow: 0 0 42px rgba(0, 229, 255, 0.12), 0 32px 90px -58px rgba(0, 229, 255, 0.72);
}

.feature-card:hover::before,
.price-card:hover::before {
  opacity: 1;
}

.feature-icon {
  position: relative;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.26), 0 0 26px rgba(0, 229, 255, 0.12);
}

.feature-card h3,
.price-card h3 {
  position: relative;
  margin: 24px 0 0;
  color: #fff;
  font-size: 21px;
}

.feature-card p,
.price-card p {
  position: relative;
  margin: 12px 0 0;
  color: var(--subtle);
  line-height: 1.62;
}

.ayah-section {
  padding: 36px 0 72px;
}

.ayah-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: clamp(40px, 7vw, 84px) clamp(24px, 4vw, 56px);
  text-align: center;
  border-color: rgba(0, 229, 255, 0.18);
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 229, 255, 0.16), transparent 56%),
    radial-gradient(circle at 50% 100%, rgba(0, 229, 255, 0.06), transparent 50%),
    rgba(7, 17, 31, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 60px rgba(0, 229, 255, 0.05),
    0 30px 90px -60px rgba(0, 229, 255, 0.55);
}

/* Dezenter Cyan-Akzent oben in der Mitte (statt Kachel-Pattern) */
.ayah-card::before,
.final-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.5);
  pointer-events: none;
}

.ayah-arabic {
  position: relative;
  color: #ffffff;
  /* "Amiri Quran" (ohne "Colored") — Tajweed-Farben aus, alles weiß */
  font-family: 'Amiri Quran', serif;
  font-size: clamp(46px, 7.6vw, 92px);
  line-height: 1.55;
  letter-spacing: 0;
  text-shadow: 0 0 38px rgba(0, 229, 255, 0.22);
}

.ayah-card p {
  position: relative;
  margin: 26px auto 0;
  max-width: 38ch;
  color: #f0f4f8;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: 0.005em;
}

.ayah-card span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 6px 14px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 999px;
  color: var(--subtle);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}

.step-list {
  display: grid;
  gap: 18px;
  margin: 32px 0;
}

.step-list article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
}

.step-list article > span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.28);
}

.step-list h3 {
  margin: 0;
  color: #fff;
  font-size: 19px;
}

.soon-dark {
  display: inline-flex;
  padding: 2px 8px;
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 999px;
  color: #d9faff;
  background: rgba(0, 229, 255, 0.08);
  font-size: 0.86em;
}

.chat-mockup {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 536px;
  border-radius: 26px;
  overflow: hidden;
  border-color: rgba(0, 229, 255, 0.22);
  box-shadow: 0 0 56px rgba(0, 229, 255, 0.12), 0 34px 120px -58px #000;
}

.mock-sidebar {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-right: 1px solid rgba(0, 229, 255, 0.12);
  background: rgba(2, 8, 23, 0.42);
}

.mock-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
}

.mock-brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.mock-sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 30px;
}

.mock-sidebar nav span,
.mock-sidebar small {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--subtle);
  font-size: 13px;
}

.mock-sidebar nav span.on {
  color: #fff;
  background: rgba(0, 229, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.18);
}

.mock-sidebar small {
  margin-top: auto;
}

.mock-main {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  padding: 24px;
  background:
    radial-gradient(circle at 72% 18%, rgba(0, 229, 255, 0.1), transparent 34%),
    rgba(11, 23, 38, 0.48);
}

.mock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--subtle);
  font-family: var(--font-mono);
  font-size: 12px;
}

.mock-top b {
  color: var(--cyan);
  font-weight: 700;
}

.question-bubble {
  justify-self: end;
  max-width: 78%;
  padding: 13px 15px;
  border-radius: 16px 16px 4px 16px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-3));
  color: #021018;
  font-weight: 800;
}

.answer-card {
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(2, 8, 23, 0.48);
}

.answer-kicker {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.answer-card p {
  margin: 12px 0 0;
  color: #e2e8f0;
}

.answer-card ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.answer-card li {
  color: var(--muted);
  font-size: 14px;
}

.answer-card li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.58);
}

.mock-input {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(0, 229, 255, 0.16);
  border-radius: 16px;
  background: rgba(2, 8, 23, 0.52);
}

.mock-input input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
}

.mock-input input::placeholder {
  color: var(--dim);
}

.mock-input button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: var(--cyan);
  color: #021018;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.trust-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  border-radius: 26px;
  padding: clamp(26px, 4vw, 42px);
  border-color: rgba(0, 229, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.09), rgba(15, 23, 42, 0.72) 42%, rgba(2, 8, 23, 0.7));
}

.shield-icon {
  width: 68px;
  height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.25), 0 0 32px rgba(0, 229, 255, 0.16);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.price-card {
  position: relative;
  min-height: 250px;
  padding: 26px;
  border-radius: 22px;
  overflow: hidden;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.price-card.featured {
  border-color: rgba(0, 229, 255, 0.42);
  box-shadow: 0 0 44px rgba(0, 229, 255, 0.15), 0 28px 100px -62px rgba(0, 229, 255, 0.82);
}

.plan-ar {
  color: var(--cyan);
  font-family: var(--font-arabic);
  font-size: 42px;
  line-height: 1;
}

.price-card strong {
  position: absolute;
  left: 26px;
  bottom: 24px;
  color: #fff;
  font-size: 32px;
}

.price-card small {
  margin-left: 4px;
  color: var(--subtle);
  font-size: 13px;
}

.final-cta {
  padding-top: 54px;
}

.final-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: clamp(60px, 8vw, 110px) clamp(24px, 4vw, 56px) clamp(48px, 7vw, 92px);
  text-align: center;
  border-color: rgba(0, 229, 255, 0.22);
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 229, 255, 0.18), transparent 56%),
    radial-gradient(circle at 50% 100%, rgba(0, 229, 255, 0.06), transparent 50%),
    rgba(7, 17, 31, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 70px rgba(0, 229, 255, 0.06),
    0 36px 110px -64px rgba(0, 229, 255, 0.65);
}

.final-card h2,
.final-card p,
.final-card a,
.final-card span,
.final-card .bismillah-arabic {
  position: relative;
}

.final-card .bismillah-arabic {
  /* "Amiri Quran" ohne Colored: einheitliches Weiß für die Ligatur */
  font-family: 'Amiri Quran', serif;
  font-size: clamp(38px, 4.8vw, 70px);
  line-height: 1.5;       /* genug Raum für Hareket oben + Mim-Schweif unten */
  color: #ffffff;
  text-shadow: 0 0 42px rgba(0, 229, 255, 0.3);
  margin: 0 auto 36px;
  padding-top: 6px;       /* puffert obere Tajweed-Marken vor dem Card-Rand */
  max-width: 100%;
  overflow-wrap: anywhere;
}

.final-card h2 {
  margin-top: 8px;
}

.final-card p {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.final-card .btn-dark {
  margin-top: 26px;
}

.dark-footer {
  margin-top: 62px;
  padding: 78px 0 34px;
  border-top: 1px solid rgba(0, 229, 255, 0.22);
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 229, 255, 0.12), transparent 42%),
    linear-gradient(180deg, #030b13 0%, #020817 100%);
  overflow: hidden;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 42px;
}

.footer-brand p {
  max-width: 380px;
  margin: 18px 0 0;
  color: var(--subtle);
  line-height: 1.7;
}

.dark-footer h4 {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.dark-footer a {
  display: block;
  color: #cbd5e1;
  text-decoration: none;
  margin-top: 11px;
}

.dark-footer a:hover {
  color: var(--cyan);
}

.footer-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 54px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 12px;
}

.footer-bottom a {
  display: inline;
  margin: 0;
  color: inherit;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 680ms ease, transform 680ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1120px) {
  .desktop-nav {
    display: none;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-bg-veil {
    background:
      linear-gradient(
        90deg,
        rgba(2, 8, 23, 0.94) 0%,
        rgba(2, 8, 23, 0.82) 48%,
        rgba(2, 8, 23, 0.4) 78%,
        rgba(2, 8, 23, 0.55) 100%
      ),
      linear-gradient(
        180deg,
        transparent 0%,
        transparent 76%,
        rgba(2, 8, 23, 0.18) 86%,
        rgba(2, 8, 23, 0.55) 93%,
        rgba(2, 8, 23, 0.85) 98%,
        #020817 100%
      );
  }

  .feature-grid,
  .price-grid,
  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .dark-container {
    width: min(100% - 32px, var(--dark-container));
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-lockup small,
  .hide-mobile,
  .theme-button {
    display: none;
  }

  .brand-lockup img {
    width: 36px;
    height: 36px;
  }

  .hero-section {
    min-height: 88vh;
    padding: 88px 0 64px;
  }

  .hero-bg-img {
    object-position: 72% 50%;
  }

  .hero-bg-veil {
    background:
      linear-gradient(
        180deg,
        rgba(2, 8, 23, 0.55) 0%,
        rgba(2, 8, 23, 0.42) 30%,
        rgba(2, 8, 23, 0.32) 60%,
        rgba(2, 8, 23, 0.65) 86%,
        #020817 100%
      );
  }

  .hero-copy h1 {
    font-size: clamp(28px, 7.6vw, 38px);
    line-height: 1.1;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
  }

  .hero-copy {
    max-width: 100%;
    overflow: hidden;
  }

  .hero-actions .btn-dark,
  .benefit-grid,
  .feature-grid,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn-dark {
    width: 100%;
  }

  .feature-section,
  .work-section,
  .trust-section,
  .pricing-section,
  .final-cta {
    padding: 74px 0;
  }

  .chat-mockup {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .mock-sidebar {
    display: none;
  }

  .mock-main {
    padding: 18px;
  }

  .question-bubble {
    max-width: 100%;
  }

  .trust-panel {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .header-actions .btn-cyan {
    min-height: 40px;
    padding: 0 13px;
    font-size: 13px;
  }

  .benefit-item,
  .feature-card,
  .price-card {
    padding: 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-page="codex-dark"] {
    scroll-behavior: auto;
  }

  .ai-dark-page *,
  .ai-dark-page *::before,
  .ai-dark-page *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .starfield {
    display: none;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ========================================================================
   Theme-Transition — IMMER an, keine Wrapper-Klasse.
   Beim Klick auf den Theme-Toggle setzt chrome.js nur `data-theme="light"`
   bzw. `"dark"` auf <html>. Weil ALLE theme-relevanten Properties (color,
   background-color, border-color, fill, stroke) global eine 5s-Transition
   haben, interpoliert der Browser automatisch durch alle Graustufen —
   Hintergrund + Schrift wandern synchron, kein Snapping.

   Hover-Animationen auf Buttons/Cards/Links bleiben schnell, weil deren
   spezifische `transition: ... 180ms ease` Rules per Specificity gewinnen.
   ======================================================================== */
*,
*::before,
*::after {
  transition:
    background-color 5s ease,
    border-color 5s ease,
    color 5s ease,
    fill 5s ease,
    stroke 5s ease;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
  .hero-bg-img,
  .starfield,
  .cloudfield {
    transition: none !important;
  }
}

/* ========================================================================
   App-Store-CTA — "Bald als App, inshāʾAllāh"
   ======================================================================== */
.app-cta {
  padding: 24px 0 64px;
  position: relative;
  z-index: 1;
}

.app-cta-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 56px);
  border-radius: 24px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  background: rgba(7, 17, 31, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.app-cta-copy h3 {
  margin: 12px 0 0;
  color: #fff;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.app-cta-copy p {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.6;
}

.app-badges {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}

.store-badge {
  display: inline-flex;
  border-radius: 10px;
  cursor: not-allowed;
  opacity: 0.78;
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none; /* Nicht klickbar — Apps sind in Planung */
}

.store-badge svg {
  display: block;
  height: 52px;
  width: auto;
  direction: ltr;
  unicode-bidi: isolate;
}

.app-badges {
  direction: ltr;
}

@media (max-width: 800px) {
  .app-cta-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .app-badges {
    flex-wrap: wrap;
  }
  .store-badge svg {
    height: 46px;
  }
}

/* ========================================================================
   Footer-Erweiterung — 5 Spalten + Sprache-Zeile + Social-Icons
   ======================================================================== */
.footer-grid {
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
}

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dark-footer .social-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin: 0 -12px 0 -12px;
  border-radius: 10px;
  color: #cbd5e1;
  text-decoration: none;
  transition: color 200ms ease, background-color 200ms ease, transform 200ms ease;
}

.dark-footer .social-icon:hover {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.06);
  transform: translateX(2px);
}

.dark-footer .social-icon svg {
  flex-shrink: 0;
}

.dark-footer .social-icon span {
  font-size: 14px;
  font-weight: 500;
}

/* Sprach-Zeile: zwischen Footer-Grid und Footer-Bottom */
.footer-langs {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 38px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.footer-langs .lang-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  flex-shrink: 0;
}

.footer-langs .lang-switch,
.login-topbar .lang-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.footer-langs .lang-switch button,
.footer-langs .lang-switch .lang-btn,
.login-topbar .lang-switch button,
.login-topbar .lang-switch .lang-btn {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  vertical-align: middle;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 180ms ease;
  position: relative;
}

.footer-langs .lang-switch button:hover,
.footer-langs .lang-switch .lang-btn:hover,
.login-topbar .lang-switch button:hover,
.login-topbar .lang-switch .lang-btn:hover {
  opacity: 1;
}

.footer-langs .lang-switch button.on,
.footer-langs .lang-switch .lang-btn.on,
.login-topbar .lang-switch button.on,
.login-topbar .lang-switch .lang-btn.on {
  opacity: 1;
}

.footer-langs .lang-switch button.on::after,
.footer-langs .lang-switch .lang-btn.on::after,
.login-topbar .lang-switch button.on::after,
.login-topbar .lang-switch .lang-btn.on::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 1px solid var(--cyan);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.45);
  pointer-events: none;
}

.footer-langs .lang-switch button[data-soon],
.footer-langs .lang-switch .lang-btn[data-soon],
.login-topbar .lang-switch button[data-soon],
.login-topbar .lang-switch .lang-btn[data-soon] {
  opacity: 0.45;
}

.footer-langs .lang-switch button[data-soon]:hover,
.footer-langs .lang-switch .lang-btn[data-soon]:hover,
.login-topbar .lang-switch button[data-soon]:hover,
.login-topbar .lang-switch .lang-btn[data-soon]:hover {
  opacity: 0.85;
}

.footer-bottom {
  margin-top: 22px;
}

/* Lang-Toast (kommt aus chrome.js) */
.lang-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 200;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.92);
  border: 1px solid rgba(0, 229, 255, 0.32);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 24px rgba(0, 229, 255, 0.15);
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
  backdrop-filter: blur(12px);
  pointer-events: none;
}
.lang-toast--in {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========================================================================
   Light-Mode Overrides für die neuen Bereiche
   ======================================================================== */
html[data-theme="light"] .app-cta-grid {
  background: rgba(255, 252, 245, 0.85);
  border-color: rgba(14, 116, 144, 0.16);
}
html[data-theme="light"] .app-cta-copy h3 { color: #1f1812; }
html[data-theme="light"] .app-cta-copy p { color: #5d534a; }

html[data-theme="light"] .footer-langs {
  border-top-color: rgba(120, 100, 80, 0.12);
}
html[data-theme="light"] .footer-langs .lang-label { color: #0e7490; }
html[data-theme="light"] .footer-langs .lang-switch button.on::after,
html[data-theme="light"] .footer-langs .lang-switch .lang-btn.on::after {
  border-color: #0e7490;
  box-shadow: 0 0 10px rgba(14, 116, 144, 0.35);
}

html[data-theme="light"] .dark-footer .social-icon { color: #5d534a; }
html[data-theme="light"] .dark-footer .social-icon:hover {
  color: #0e7490;
  background: rgba(14, 116, 144, 0.08);
}

html[data-theme="light"] .lang-toast {
  background: rgba(255, 252, 245, 0.95);
  border-color: rgba(14, 116, 144, 0.32);
  color: #1f1812;
}


/* Legal-Pages (Impressum, Datenschutz, AGB) — engeres typografisches Layout */
.legal-page {
  padding: 96px 0 80px;
  position: relative;
  z-index: 1;
}
.legal-page .dark-container { max-width: 760px; }
.legal-page h1 {
  font-family: inherit;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 12px;
  letter-spacing: -0.015em;
}
.legal-page .legal-meta {
  font-size: 14px;
  color: #94a3b8;
  margin: 0 0 32px;
}
.legal-page h2 {
  font-family: inherit;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  color: #f8fafc;
  margin: 36px 0 14px;
  letter-spacing: -0.01em;
}
.legal-page h3 {
  font-size: 16px;
  font-weight: 600;
  color: #f8fafc;
  margin: 24px 0 8px;
  letter-spacing: 0;
}
.legal-page p, .legal-page li {
  color: #cbd5e1;
  font-size: 15.5px;
  line-height: 1.7;
}
.legal-page p { margin: 0 0 14px; }
.legal-page ul, .legal-page ol { margin: 0 0 16px; padding-left: 24px; }
.legal-page ul li, .legal-page ol li { margin-bottom: 8px; }
.legal-page a { color: #1cadd2; }
.legal-page a:hover { color: #67e8f9; }
.legal-page strong { color: #f8fafc; }
.legal-page hr { border: none; border-top: 1px solid rgba(148, 163, 184, 0.16); margin: 32px 0; }
html[data-theme="light"] .legal-page h1,
html[data-theme="light"] .legal-page h2,
html[data-theme="light"] .legal-page h3 { color: #1f1812; }
html[data-theme="light"] .legal-page p,
html[data-theme="light"] .legal-page li { color: #5d534a; }
html[data-theme="light"] .legal-page strong { color: #1f1812; }
html[data-theme="light"] .legal-page a { color: #0e7490; }
html[data-theme="light"] .legal-page .legal-meta { color: #8b7e6e; }
html[data-theme="light"] .legal-page hr { border-top-color: rgba(112, 100, 84, 0.18); }

/* ========================================================================
   Subpage-Content-Wrapper — die alten Pages sind als <article> mit Crumb
   gebaut und brauchen einen schmalen, mittig zentrierten Container.
   Wir wrappen sie hier in `.page-content` damit der Stern-Hintergrund
   durchscheint, der Text aber lesbar in der Mitte sitzt.
   ======================================================================== */
.page-content {
  padding: 80px 64px 96px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
@media (max-width: 760px) {
  .page-content { padding: 56px 22px 72px; }
}

/* Crumb in dark-mode anpassen */
.page-content .crumb {
  color: #94a3b8;
  font-size: 13px;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.page-content .crumb a {
  color: #cbd5e1;
  text-decoration: none;
}
.page-content .crumb a:hover { color: #1cadd2; }
html[data-theme="light"] .page-content .crumb { color: #8b7e6e; }
html[data-theme="light"] .page-content .crumb a { color: #5d534a; }
html[data-theme="light"] .page-content .crumb a:hover { color: #0e7490; }

/* Article-Heading & Lede in der Subpage */
.page-content article > h1 {
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #f8fafc;
  margin: 0 0 18px;
  max-width: 22ch;
}
.page-content article > .lede {
  color: #cbd5e1;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  margin: 0 0 32px;
  max-width: 64ch;
}
.page-content article > h2 {
  font-family: inherit;
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.18;
  color: #f8fafc;
  margin: 48px 0 14px;
  letter-spacing: -0.01em;
}
.page-content article > h3 {
  font-size: 18px;
  font-weight: 600;
  color: #f8fafc;
  margin: 28px 0 10px;
}
.page-content article > p,
.page-content article > ul li,
.page-content article > ol li {
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.7;
}
.page-content article > p { margin: 0 0 16px; }
.page-content article > ul,
.page-content article > ol { padding-left: 22px; margin: 0 0 18px; }
.page-content article > ul li,
.page-content article > ol li { margin-bottom: 8px; }
.page-content article > p strong,
.page-content article > ul li strong,
.page-content article > ol li strong { color: #f8fafc; font-weight: 600; }
.page-content article > p a,
.page-content article > ul li a,
.page-content article > ol li a { color: #1cadd2; }
.page-content article > p a:hover,
.page-content article > ul li a:hover { color: #67e8f9; }
.page-content article > .muted { color: #94a3b8; font-style: italic; }

html[data-theme="light"] .page-content article > h1,
html[data-theme="light"] .page-content article > h2,
html[data-theme="light"] .page-content article > h3 { color: #1f1812; }
html[data-theme="light"] .page-content article > .lede,
html[data-theme="light"] .page-content article > p,
html[data-theme="light"] .page-content article > ul li,
html[data-theme="light"] .page-content article > ol li { color: #5d534a; }
html[data-theme="light"] .page-content article > p strong,
html[data-theme="light"] .page-content article > ul li strong,
html[data-theme="light"] .page-content article > ol li strong { color: #1f1812; }
html[data-theme="light"] .page-content article > p a,
html[data-theme="light"] .page-content article > ul li a { color: #0e7490; }
html[data-theme="light"] .page-content article > p a:hover { color: #155e75; }
html[data-theme="light"] .page-content article > .muted { color: #8b7e6e; }

/* Pricing-Page hat eigenen body-style (nicht <article>) */
.page-content > h1 {
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #f8fafc;
  margin: 0 0 18px;
}
.page-content > .lede {
  color: #cbd5e1;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  margin: 0 0 32px;
}
html[data-theme="light"] .page-content > h1 { color: #1f1812; }
html[data-theme="light"] .page-content > .lede { color: #5d534a; }

/* === Subpage-Boxen (Codex-Stil — gilt für quality, features, about, faq, pricing, blog) === */

/* Ayah-Pull (Quran-Vers-Box) — wie Standard Codex-Box, full cyan border */
.ayah-pull {
  margin: 40px 0;
  padding: 26px 30px;
  border-radius: 16px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  background: rgba(7, 17, 31, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 200ms ease;
}
.ayah-pull:hover { border-color: rgba(0, 229, 255, 0.32); }
.ayah-pull .ar {
  font-family: var(--font-quran);
  font-size: 28px;
  direction: rtl;
  line-height: 1.9;
  margin-bottom: 12px;
  color: #fff;
  text-align: right;
}
.ayah-pull .tr {
  font-style: italic;
  color: #cbd5e1;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.6;
}
.ayah-pull .rf {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
html[data-theme="light"] .ayah-pull {
  background: rgba(255, 252, 245, 0.72);
  border-color: rgba(120, 100, 80, 0.18);
}
html[data-theme="light"] .ayah-pull .ar { color: #1f1812; }
html[data-theme="light"] .ayah-pull .tr { color: #5d534a; }
html[data-theme="light"] .ayah-pull .rf { color: #0e7490; }


/* Article-Listen (used auf quality, features, about) */
.page-content article ul { padding-left: 0; list-style: none; }
.page-content article ul li {
  padding: 12px 0 12px 26px; position: relative;
  font-size: 16px; line-height: 1.6;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}
.page-content article ul li::before {
  content: ""; position: absolute; left: 0; top: 22px;
  width: 14px; height: 1px;
  background: var(--cyan);
}
html[data-theme="light"] .page-content article ul li {
  color: #5d534a;
  border-bottom-color: rgba(112, 100, 84, 0.16);
}

/* TOC (about) */
.toc {
  margin: 40px 0;
  padding: 22px 26px;
  border-radius: 14px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  background: rgba(7, 17, 31, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  max-width: 62ch;
}
.toc .lbl {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--cyan); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 14px;
}
.toc ol { padding-left: 18px; margin: 0; display: grid; gap: 6px; }
.toc a { color: #cbd5e1; font-size: 14.5px; text-decoration: none; }
.toc a:hover { color: var(--cyan); }

/* KV-Block (about, quality) — einheitliche Codex-Box */
.kv-block {
  margin: 40px 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-radius: 16px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  background: rgba(7, 17, 31, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transition: border-color 200ms ease;
}
.kv-block:hover { border-color: rgba(0, 229, 255, 0.32); }
.kv-block .cell {
  background: transparent;
  padding: 22px 24px;
}
.kv-block .k {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--cyan); letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 8px; display: block;
}
.kv-block .v {
  font-family: inherit; font-size: 22px;
  font-weight: 700; letter-spacing: -0.01em; line-height: 1.25;
  color: #fff;
}

/* Next-Page (about) */
.next-page {
  margin-top: 56px;
  padding: 26px 30px;
  border-radius: 14px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  background: rgba(7, 17, 31, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transition: border-color 200ms ease;
}
.next-page:hover { border-color: rgba(0, 229, 255, 0.32); }
.next-page .l {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--cyan); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 6px;
}
.next-page .t { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: #fff; }

/* Anatomy-Block (features) — Tabellarische Antwort-Struktur */
.anatomy {
  margin: 40px 0;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(7, 17, 31, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.anatomy .row {
  display: grid; grid-template-columns: 180px 1fr;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
.anatomy .row:last-child { border-bottom: none; }
.anatomy .row .lbl {
  padding: 18px 22px;
  background: rgba(0, 229, 255, 0.04);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--cyan); letter-spacing: 0.08em;
  text-transform: uppercase;
  border-right: 1px solid rgba(148, 163, 184, 0.1);
  display: flex; align-items: flex-start;
}
.anatomy .row .val {
  padding: 18px 24px;
  font-size: 15px; line-height: 1.6;
  color: #cbd5e1;
}
.anatomy .row .val .ar {
  font-family: var(--font-quran); font-size: 20px;
  direction: rtl; line-height: 1.7; margin-bottom: 6px;
  color: #fff;
}
.anatomy .row .val .meta {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--muted); margin-top: 4px;
}

/* CTA-Row (features) */
.cta-row {
  margin-top: 56px;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  background: rgba(7, 17, 31, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
  box-shadow: 0 0 32px rgba(0, 229, 255, 0.08);
}
.cta-row h3 {
  font-size: 22px; letter-spacing: -0.01em;
  margin-bottom: 10px; margin-top: 0;
  color: #fff; font-weight: 700;
}
.cta-row p {
  color: var(--muted); font-size: 15px;
  margin-bottom: 22px; max-width: 52ch;
  margin-left: auto; margin-right: auto;
}

/* FAQ-List */
.faq-list { margin-top: 40px; max-width: 860px; }
.faq-list h2 { font-size: 26px; letter-spacing: -0.01em; margin-bottom: 24px; margin-top: 0; font-weight: 700; }

/* Lang-chips & placeholder (features) */
.placeholder { height: 280px; margin: 28px 0; max-width: 100%; }
.lang-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 28px; }

/* Responsive */
@media (max-width: 1100px) {
  .kv-block { grid-template-columns: 1fr; }
  .anatomy .row { grid-template-columns: 1fr; }
  .anatomy .row .lbl { border-right: none; border-bottom: 1px solid rgba(148, 163, 184, 0.1); }
}

/* Light-Theme Overrides */
html[data-theme="light"] .toc,
html[data-theme="light"] .kv-block,
html[data-theme="light"] .kv-block .cell,
html[data-theme="light"] .next-page,
html[data-theme="light"] .anatomy,
html[data-theme="light"] .cta-row {
  background: rgba(255, 252, 245, 0.72);
  border-color: rgba(120, 100, 80, 0.18);
}
html[data-theme="light"] .kv-block { background: rgba(120, 100, 80, 0.18); }
html[data-theme="light"] .toc a,
html[data-theme="light"] .kv-block .v,
html[data-theme="light"] .next-page .t,
html[data-theme="light"] .anatomy .row .val,
html[data-theme="light"] .anatomy .row .val .ar,
html[data-theme="light"] .cta-row h3 { color: #1f1812; }
html[data-theme="light"] .toc .lbl,
html[data-theme="light"] .kv-block .k,
html[data-theme="light"] .next-page .l,
html[data-theme="light"] .anatomy .row .lbl { color: #0e7490; }
html[data-theme="light"] .cta-row p,
html[data-theme="light"] .anatomy .row .val .meta { color: #5d534a; }
html[data-theme="light"] .anatomy .row .lbl { background: rgba(14, 116, 144, 0.06); }
html[data-theme="light"] .anatomy .row { border-bottom-color: rgba(112, 100, 84, 0.16); }

/* Contact-Page (Codex-Stil) */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 40px 0;
}
.contact-card {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  background: rgba(7, 17, 31, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.contact-card:hover {
  border-color: rgba(0, 229, 255, 0.32);
  transform: translateY(-1px);
}
.contact-card .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact-card .nm {
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}
.contact-card .ds {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}
.closing-note {
  margin-top: 40px;
  padding: 22px 26px;
  background: rgba(7, 17, 31, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-inline-start: 3px solid var(--cyan);
  border-radius: 0 14px 14px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #e6edf5;
  max-width: 62ch;
}
.address-block {
  margin-top: 48px;
  padding: 22px 26px;
  border-radius: 14px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  background: rgba(7, 17, 31, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.7;
  max-width: 62ch;
}
.address-block .label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}
@media (max-width: 1100px) {
  .contact-grid { grid-template-columns: 1fr; }
}
html[data-theme="light"] .contact-card,
html[data-theme="light"] .closing-note,
html[data-theme="light"] .address-block {
  background: rgba(255, 252, 245, 0.72);
  border-color: rgba(120, 100, 80, 0.18);
}
html[data-theme="light"] .contact-card .nm { color: #1f1812; }
html[data-theme="light"] .contact-card .ds { color: #5d534a; }
html[data-theme="light"] .closing-note {
  border-inline-start-color: #0e7490;
  color: #1f1812;
}
html[data-theme="light"] .address-block { color: #5d534a; }
html[data-theme="light"] .contact-card .lbl,
html[data-theme="light"] .address-block .label { color: #0e7490; }

/* === inline styles aus blog.html === */
  article p { max-width: 62ch; }


/* Theme-abhängiges Anzeigen der Email/Telefon-PNG-Buttons.
   Light-Variante zeigt sich nur in dark-mode (heller Text auf dunkel),
   dark-Variante nur in light-mode. Sonst doppelte PNGs übereinander. */
.reveal-light, .reveal-dark { display: none; }
html[data-theme="dark"] .reveal-light { display: inline-block; }
html[data-theme="light"] .reveal-dark { display: inline-block; }

/* ========================================================================
   Login-Page (Codex)
   ======================================================================== */
.login-section {
  padding: 56px 0 80px;
  position: relative;
  z-index: 1;
}

.login-codex-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

@media (max-width: 960px) {
  .login-codex-grid { grid-template-columns: 1fr; }
}

.login-codex-left,
.login-codex-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.codex-hadith {
  padding: 24px 28px;
  border-radius: 16px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  background: rgba(7, 17, 31, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.codex-hadith.small { padding: 18px 22px; }
.codex-hadith-body {
  color: #e6edf5;
  font-size: 16px;
  line-height: 1.6;
  font-style: italic;
}
.codex-hadith.small .codex-hadith-body { font-size: 14px; }
.codex-hadith-ref {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--cyan);
  text-transform: uppercase;
}

.codex-mini-tiers {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.codex-mini-tier {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(0, 229, 255, 0.12);
  background: rgba(7, 17, 31, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 200ms ease, transform 200ms ease;
}
.codex-mini-tier:hover {
  border-color: rgba(0, 229, 255, 0.32);
  transform: translateY(-1px);
}
.codex-mini-tier.featured {
  border-color: rgba(0, 229, 255, 0.42);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.12);
}
.codex-mini-tier .ar {
  font-size: 16px;
  color: var(--cyan);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.codex-mini-tier .nm {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.codex-mini-tier .nm small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 2px;
}
.codex-mini-tier .desc {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.codex-access {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.codex-access-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  background: rgba(7, 17, 31, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.codex-access-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan);
}
.codex-access-body h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.codex-access-body p {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}
.codex-access-body .mail-reveal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--cyan);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  background: rgba(0, 229, 255, 0.06);
  transition: background 180ms ease, border-color 180ms ease;
}
.codex-access-body .mail-reveal:hover {
  background: rgba(0, 229, 255, 0.12);
  border-color: var(--cyan);
}

.codex-login-card {
  padding: 32px;
  border-radius: 20px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  background: rgba(7, 17, 31, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 0 32px rgba(0, 229, 255, 0.08);
}
.codex-greet {
  text-align: center;
  margin-bottom: 22px;
}
.codex-greet .ar {
  font-size: 24px;
  color: var(--cyan);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.codex-greet .salam {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.codex-greet h1 {
  margin: 0 0 6px;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.codex-greet p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.codex-consent {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.42);
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 16px;
  transition: border-color 180ms ease;
}
.codex-consent:hover { border-color: rgba(0, 229, 255, 0.32); }
.codex-consent input {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: border-color 180ms ease, background 180ms ease;
}
.codex-consent input:checked {
  border-color: var(--cyan);
  background: var(--cyan);
}
.codex-consent input:checked::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 4px;
  width: 4px;
  height: 8px;
  border: solid #07111f;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.codex-consent a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }

.codex-sso-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.codex-sso-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
  text-align: left;
}
.codex-sso-btn:hover {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.06);
  transform: translateY(-1px);
}
.codex-sso-btn .ic {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.codex-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.codex-sep::before,
.codex-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(148, 163, 184, 0.14);
}

.codex-alt-login a {
  display: block;
  text-align: center;
  font-size: 13.5px;
  color: var(--cyan);
  text-decoration: none;
  padding: 10px;
  border-radius: 8px;
  border: 1px dashed rgba(0, 229, 255, 0.22);
  transition: border-color 180ms ease, background 180ms ease;
}
.codex-alt-login a:hover {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.06);
}
.codex-alt-login p {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

html[data-theme="light"] .codex-hadith,
html[data-theme="light"] .codex-mini-tier,
html[data-theme="light"] .codex-access-card,
html[data-theme="light"] .codex-login-card {
  background: rgba(255, 252, 245, 0.72);
  border-color: rgba(120, 100, 80, 0.18);
}
html[data-theme="light"] .codex-hadith-body,
html[data-theme="light"] .codex-greet h1,
html[data-theme="light"] .codex-mini-tier .nm,
html[data-theme="light"] .codex-access-body h3,
html[data-theme="light"] .codex-sso-btn { color: #1f1812; }
html[data-theme="light"] .codex-mini-tier .desc,
html[data-theme="light"] .codex-access-body p,
html[data-theme="light"] .codex-greet p,
html[data-theme="light"] .codex-mini-tier .nm small,
html[data-theme="light"] .codex-consent { color: #5d534a; }
html[data-theme="light"] .codex-hadith-ref,
html[data-theme="light"] .codex-mini-tier .ar,
html[data-theme="light"] .codex-greet .ar { color: #0e7490; }
html[data-theme="light"] .codex-sso-btn { background: rgba(255, 252, 245, 0.85); }
html[data-theme="light"] .codex-sso-btn:hover {
  border-color: #0e7490;
  background: rgba(14, 116, 144, 0.06);
}

html[data-theme="light"] .codex-access-body .mail-reveal,
html[data-theme="light"] .mail-reveal {
  color: #0e7490;
  border-color: rgba(14, 116, 144, 0.4);
  background: rgba(14, 116, 144, 0.08);
  font-weight: 600;
}
html[data-theme="light"] .codex-access-body .mail-reveal:hover,
html[data-theme="light"] .mail-reveal:hover {
  background: rgba(14, 116, 144, 0.14);
  border-color: #0e7490;
  color: #0e7490;
}

html[data-theme="light"] .codex-consent {
  background: rgba(255, 252, 245, 0.85);
  border-color: rgba(14, 116, 144, 0.28);
  color: #1f1812;
}
html[data-theme="light"] .codex-consent:hover { border-color: #0e7490; }
html[data-theme="light"] .codex-consent input {
  border: 1.5px solid #0e7490;
  background: #ffffff;
}
html[data-theme="light"] .codex-consent input:checked {
  background: #0e7490;
  border-color: #0e7490;
}
html[data-theme="light"] .codex-consent input:checked::after {
  border-color: #ffffff;
}
html[data-theme="light"] .codex-consent a { color: #0e7490; }

html[data-theme="light"] .codex-alt-login a {
  color: #0e7490;
  border-color: rgba(14, 116, 144, 0.4);
  font-weight: 600;
}
html[data-theme="light"] .codex-alt-login a:hover {
  border-color: #0e7490;
  background: rgba(14, 116, 144, 0.08);
}

/* Consent-gate: deaktiviere SSO-Buttons + alt-login solange Checkbox nicht angehakt */
.codex-login-card.gated .codex-sso-btn,
.codex-login-card.gated .codex-alt-login a {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
  filter: grayscale(0.6);
}
.codex-login-card.gated .codex-alt-login p { opacity: 0.55; }

/* ========================================================================
   404 Error Page
   ======================================================================== */
.error-section {
  padding: 80px 0 120px;
  position: relative;
  z-index: 1;
}
.error-grid {
  display: flex;
  justify-content: center;
  text-align: center;
}
.error-copy {
  max-width: 640px;
}
.error-code {
  font-family: var(--font-mono);
  font-size: clamp(80px, 14vw, 160px);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--cyan), rgba(0, 229, 255, 0.4));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}
.error-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.error-copy p {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
.error-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
html[data-theme="light"] .error-copy h1 { color: #1f1812; }
html[data-theme="light"] .error-copy p { color: #5d534a; }

/* DOM-Reorder fix for login: h1 in DOM before h2 (a11y), but visually keep
   left=info, right=login-card */
.login-codex-grid .login-codex-left  { grid-column: 1; grid-row: 1; }
.login-codex-grid .login-codex-right { grid-column: 2; grid-row: 1; }
@media (max-width: 960px) {
  .login-codex-grid .login-codex-right { grid-column: 1; grid-row: 1; }
  .login-codex-grid .login-codex-left  { grid-column: 1; grid-row: 2; }
}

/* Contact-Page reveal-button images: keep at reasonable size */
.contact-card .reveal-contact img,
.address-block .reveal-contact img {
  max-height: 22px;
  width: auto;
  vertical-align: middle;
}
.contact-card .reveal-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  background: rgba(0, 229, 255, 0.06);
  color: var(--cyan);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
  font-family: var(--font-mono);
  font-size: 13px;
  align-self: flex-start;
}
.contact-card .reveal-contact:hover {
  background: rgba(0, 229, 255, 0.12);
  border-color: var(--cyan);
}
.address-block .reveal-contact {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

/* ========================================================================
   Pricing-Page Tier-Karten + Access-Card + Fine-Print (Codex-Stil)
   ======================================================================== */
.tier {
  padding: 28px 26px;
  border-radius: 16px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  background: rgba(7, 17, 31, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.tier:hover {
  border-color: rgba(0, 229, 255, 0.32);
  transform: translateY(-1px);
}
.tier { background-image: none; }
.tier.featured {
  background: rgba(7, 17, 31, 0.7) !important;
  background-image: none !important;
  border-color: rgba(0, 229, 255, 0.42);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.18);
}
.tier.beitrag {
  background: rgba(7, 17, 31, 0.65) !important;
  background-image: none !important;
  border-style: solid;
  border-color: rgba(0, 229, 255, 0.18);
}

/* Access-Card auf Pricing (Muhsin-Hilfe) */
.pricing-page .access-card,
.page-content .access-card,
article .access-card {
  margin: 40px 0;
  padding: 26px 28px;
  border-radius: 16px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  background: rgba(7, 17, 31, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.08);
}
.pricing-page .access-card::before,
.page-content .access-card::before,
article .access-card::before {
  display: none;
}

/* Fine-Print auf Pricing */
.fine {
  margin-top: 36px;
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  background: rgba(7, 17, 31, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* ========================================================================
   FAQ-Accordion (Codex-Stil) — auf faq + pricing
   ======================================================================== */
.faq-section {
  margin: 48px 0;
}
details.faq {
  margin-bottom: 12px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  background: rgba(7, 17, 31, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transition: border-color 200ms ease;
}
details.faq[open],
details.faq:hover {
  border-color: rgba(0, 229, 255, 0.32);
}
details.faq summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  color: var(--cyan);
  font-size: 22px;
  line-height: 1;
  transition: transform 200ms ease;
}
details.faq[open] summary::after {
  content: "−";
}
details.faq > *:not(summary) {
  padding: 0 22px 18px;
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.6;
}

/* Light-Theme Overrides */
html[data-theme="light"] .tier,
html[data-theme="light"] .tier.beitrag,
html[data-theme="light"] .pricing-page .access-card,
html[data-theme="light"] .page-content .access-card,
html[data-theme="light"] article .access-card,
html[data-theme="light"] .fine,
html[data-theme="light"] details.faq {
  background: rgba(255, 252, 245, 0.72);
  border-color: rgba(120, 100, 80, 0.18);
}
html[data-theme="light"] details.faq summary { color: #1f1812; }
html[data-theme="light"] details.faq > *:not(summary) { color: #5d534a; }
html[data-theme="light"] details.faq summary::after { color: #0e7490; }
html[data-theme="light"] .fine { color: #5d534a; }

/* Blog-Karten / Feature-Karten — Codex-Stil (war components.css mit linear-gradient + var(--border)) */
.feature {
  padding: 26px 24px !important;
  border-radius: 16px !important;
  background: rgba(7, 17, 31, 0.55) !important;
  background-image: none !important;
  border: 1px solid rgba(0, 229, 255, 0.22) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: none !important;
  transition: border-color 200ms ease, transform 200ms ease;
  position: relative;
}
.feature::before { display: none !important; }
.feature:hover {
  border-color: rgba(0, 229, 255, 0.42) !important;
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.08) !important;
}
.feature .num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.feature h2,
.feature h3 {
  font-size: 20px;
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}
.feature p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 8px;
}
.feature .soon {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.32);
  background: rgba(0, 229, 255, 0.06);
}
html[data-theme="light"] .feature {
  background: rgba(255, 252, 245, 0.72) !important;
  border-color: rgba(120, 100, 80, 0.18) !important;
}
html[data-theme="light"] .feature h2,
html[data-theme="light"] .feature h3 { color: #1f1812; }
html[data-theme="light"] .feature p { color: #5d534a; }
html[data-theme="light"] .feature .num,
html[data-theme="light"] .feature .soon { color: #0e7490; }
html[data-theme="light"] .feature .soon {
  border-color: rgba(14, 116, 144, 0.32);
  background: rgba(14, 116, 144, 0.06);
}
