/* =========================================================
   Hero „Orbit bei Nacht" — Living Still + 3D-Tiefe
   ========================================================= */

:root {
  /* Bildpfad zentral (AVIF > WebP > JPG) */
  --hero-img: image-set(url("assets/hero-orbit.avif") type("image/avif"),
                        url("assets/hero-orbit.webp") type("image/webp"),
                        url("assets/hero-orbit.jpg") type("image/jpeg"));

  /* Fokuspunkte (am Bild justiert, normalisiert 0–100%) */
  --mecca-x: 50%;     --mecca-y: 83%;   /* Kaaba, weiß */
  --medina-x: 47.5%;  --medina-y: 27%;  /* Medina, grün */
  --jerusalem-x: 35%; --jerusalem-y: 16%; /* Jerusalem, gold */

  --gold: #d8b25e;
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Farbthemen (Standard: HELL) ---------- */
html[data-theme="light"] {
  --bg: #faf8f3;
  --bg-alt: #f1ece1;
  --bg-deep: #ece6d9;
  --ink: #1d2128;
  --ink-dim: #585c66;
  --line: rgba(20, 24, 33, 0.14);
  --card: rgba(20, 24, 33, 0.025);
  --gold-bright: #9a7b22;
  --green: #2f8f5f;
  --nav-bg: rgba(250, 248, 243, 0.92);
}
html[data-theme="dark"] {
  --bg: #05070d;
  --bg-alt: #070b14;
  --bg-deep: #04060c;
  --ink: #eaf0ff;
  --ink-dim: rgba(234, 240, 255, 0.74);
  --line: rgba(234, 240, 255, 0.12);
  --card: rgba(255, 255, 255, 0.02);
  --gold-bright: #f1d488;
  --green: #5bbf8a;
  --nav-bg: rgba(5, 7, 13, 0.85);
}
/* Hero bleibt IMMER dunkel (heller Text), egal welches Theme */
.hero {
  --ink: #eaf0ff;
  --ink-dim: rgba(234, 240, 255, 0.74);
  --gold-bright: #f1d488;
  --line: rgba(234, 240, 255, 0.18);
}

* { box-sizing: border-box; }

html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s var(--ease-soft), color 0.4s var(--ease-soft);
}

/* ---------- Hero-Bühne ---------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
}

/* gemeinsamer Vollflächen-Layer */
.hero__webgl,
.hero__still,
.hero__stars,
.hero__grain,
.hero__vignette,
.hero__scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Ebene 0 — echtes Standbild (Ken-Burns-Fallback) */
.hero__still {
  background: var(--hero-img) center / cover no-repeat;
  transform: scale(1.04);
  animation: kenburns 26s var(--ease-soft) infinite alternate;
  z-index: 0;
}
@keyframes kenburns {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.15) translate3d(-0.5%, 0.8%, 0); } /* mehr Zoom, sanft Richtung Kaaba */
}

/* Ebene 0 — WebGL-Plane */
.hero__webgl {
  z-index: 1;
  opacity: 0;
  transition: opacity 0.8s var(--ease-soft);
}

/* Modus-Umschaltung: im „depth"-Modus WebGL zeigen, Standbild verstecken */
/* Tiefen-Modus blendet erst auf, wenn die Textur bereit ist -> kein schwarzes Aufblitzen */
body[data-mode="depth"].webgl-ready .hero__webgl { opacity: 1; }
body[data-mode="depth"].webgl-ready .hero__still { opacity: 0; }
body[data-mode="still"]  .hero__webgl { opacity: 0; }
body[data-mode="still"]  .hero__still { opacity: 1; }
/* Wenn WebGL nicht verfügbar ist: immer Standbild */
body.no-webgl .hero__webgl { display: none; }
body.no-webgl .hero__still { opacity: 1 !important; }

.hero__still { transition: opacity 0.8s var(--ease-soft); }

/* Ebene 1 — Sterne */
.hero__stars { z-index: 2; }


/* Ebene 4 — Filmkorn (sehr dezent) */
.hero__grain {
  z-index: 6;
  opacity: 0.03;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.6s steps(2) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-4%, 3%); }
}

/* Ebene 4 — Vignette (dezenter, Kaaba unten bleibt sichtbar) */
.hero__vignette {
  z-index: 6;
  background: radial-gradient(125% 105% at 50% 48%,
    transparent 60%, rgba(2, 4, 10, 0.42) 100%);
}

/* Ebene 4 — Lese-Scrim: links-betont, damit Bildmitte/Moscheen frei bleiben */
.hero__scrim {
  z-index: 6;
  background:
    /* sanfter Boden-Verlauf, leicht – verdeckt die Kaaba nicht */
    linear-gradient(to top,
      rgba(3, 5, 12, 0.62) 0%,
      rgba(3, 5, 12, 0.22) 16%,
      transparent 36%),
    /* kräftiger, aber lokaler Backing-Glow unten LINKS für den Text */
    radial-gradient(78% 95% at 8% 100%,
      rgba(3, 5, 12, 0.88) 0%,
      rgba(3, 5, 12, 0.45) 38%,
      transparent 68%);
}

/* Ebene 6 — cinematischer Intro-Aufblender */
.hero__intro {
  position: absolute;
  inset: 0;
  z-index: 12;
  background: #04060c;
  pointer-events: none;
  animation: introFade 1.3s var(--ease-soft) forwards;
}
@keyframes introFade {
  0%   { opacity: 1; }
  30%  { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

/* ---------- Inhalt ---------- */
.hero__content {
  position: relative;
  z-index: 8;
  max-width: 38rem; /* links -> Bildmitte (Kaaba) frei */
  padding: clamp(1.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(1.8rem, 5vh, 3.5rem);
}
.hero__eyebrow {
  margin: 0 0 0.7rem;
  font-family: "Amiri", serif;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  color: var(--gold-bright);
  font-weight: 400;
  opacity: 0;
  animation: rise 1s var(--ease-soft) 0.2s forwards;
}
.hero__title {
  margin: 0 0 1.05rem;
  color: var(--ink); /* immer hell (Hero ist dunkel, auch im Hellmodus) */
  font-family: "Amiri", Georgia, serif;
  font-weight: 700;
  line-height: 1.08;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  letter-spacing: -0.01em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: rise 1.2s var(--ease-soft) 0.4s forwards;
}
.hero__lead {
  margin: 0 0 1.6rem;
  max-width: 44ch;
  font-size: clamp(0.96rem, 1.4vw, 1.1rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-dim);
  opacity: 0;
  animation: rise 1.2s var(--ease-soft) 0.62s forwards;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  opacity: 0;
  animation: rise 1.2s var(--ease-soft) 0.84s forwards;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.25s var(--ease-soft), box-shadow 0.25s var(--ease-soft),
              background 0.25s var(--ease-soft);
}
.btn--gold {
  color: #2a1d05;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  box-shadow: 0 10px 34px -8px rgba(216, 178, 94, 0.6);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(216, 178, 94, 0.75); }
.btn--ghost {
  color: var(--ink);
  border: 1px solid rgba(234, 240, 255, 0.35);
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.04);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: rgba(234, 240, 255, 0.6); }

/* ---------- Scroll-Hinweis ---------- */
.hero__scroll {
  position: absolute;
  z-index: 9;
  right: clamp(1.5rem, 5vw, 4rem);   /* rechts statt mittig -> verdeckt die Kaaba nicht */
  bottom: clamp(1rem, 3vh, 1.6rem);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
  animation: rise 1.2s var(--ease-soft) 1.1s forwards;
}
.hero__scroll svg { animation: nudge 1.8s ease-in-out infinite; }
.hero__scroll:hover { color: var(--gold-bright); }
@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}

/* =========================================================
   Seiten-Sektionen (Inhalt von assahaba.de, in unserem Design)
   ========================================================= */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.2rem, 5vw, 3.5rem);
  background: linear-gradient(to bottom, rgba(4, 6, 12, 0.6), transparent);
}
.nav__brand { text-decoration: none; color: #eaf0ff; display: flex; flex-direction: column; line-height: 1.1; }
.nav__name { font-family: "Amiri", serif; font-weight: 700; font-size: 1.15rem; }
.nav__sub { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: #f1d488; }
.nav__right { display: flex; align-items: center; gap: 1.4rem; }
.nav__links { display: flex; gap: 1.6rem; }
.nav__links a { color: rgba(234, 240, 255, 0.82); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav__links a:hover { color: #f1d488; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(234, 240, 255, 0.3);
  background: rgba(255, 255, 255, 0.07);
  color: #eaf0ff; font-size: 1.05rem; line-height: 1;
  backdrop-filter: blur(6px); transition: 0.2s;
}
.theme-toggle:hover { color: #f1d488; border-color: rgba(234, 240, 255, 0.6); }
/* Solide Nav (nach dem Hero) -> Farben aus dem aktiven Theme */
.nav.scrolled .nav__brand { color: var(--ink); }
.nav.scrolled .nav__sub { color: var(--gold-bright); }
.nav.scrolled .nav__links a { color: var(--ink-dim); }
.nav.scrolled .nav__links a:hover { color: var(--gold-bright); }
.nav.scrolled .theme-toggle { color: var(--ink-dim); border-color: var(--line); background: transparent; }
.nav.scrolled .theme-toggle:hover { color: var(--gold-bright); }

/* ---------- Sprachumschalter ---------- */
.lang { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid rgba(234, 240, 255, 0.28); }
.lang button { border: 0; background: transparent; color: rgba(234, 240, 255, 0.82); cursor: pointer; font: inherit; font-size: 0.78rem; font-weight: 600; line-height: 1; padding: 0.3rem 0.55rem; border-radius: 999px; transition: 0.2s; }
.lang button:hover:not(.is-active) { color: #f1d488; }
.lang button.is-active { background: var(--gold); color: #1a1405; }
.nav.scrolled .lang { border-color: var(--line); }
.nav.scrolled .lang button { color: var(--ink-dim); }
.nav.scrolled .lang button:hover:not(.is-active) { color: var(--gold-bright); }

/* ---------- Arabische Schrift ---------- */
html[lang="ar"] body { font-family: "Noto Sans Arabic", "Inter", system-ui, sans-serif; }
html[lang="ar"] .band__title,
html[lang="ar"] .hero__title,
html[lang="ar"] .card__h,
html[lang="ar"] .support__h,
html[lang="ar"] .person__name,
html[lang="ar"] .stat__num,
html[lang="ar"] .verse__text,
html[lang="ar"] .jumua__h { font-family: "Amiri", "Noto Sans Arabic", serif; }

/* ---------- RTL-Anpassungen (Arabisch) ---------- */
html[dir="rtl"] .goals li { padding-left: 0; padding-right: 1.7rem; }
html[dir="rtl"] .goals li::before { left: auto; right: 0; }
html[dir="rtl"] .jumua { border-left: 0; border-right: 3px solid var(--green); padding: 0.6rem 1.2rem 0.6rem 0; }
html[dir="rtl"] .support__copy { margin-left: 0; margin-right: 0.6rem; }
html[dir="rtl"] .hero__scroll { right: auto; left: clamp(1.5rem, 5vw, 4rem); }

/* ---------- Sektions-Grundgerüst ---------- */
.band { background: var(--bg); color: var(--ink); padding: clamp(3.5rem, 9vw, 7rem) 0; border-top: 1px solid var(--line); }
.band--intro { background: var(--bg-alt); }
.band--times { background: var(--bg); }
.band--offer { background: var(--bg-alt); }
.band--verein { background: var(--bg); }
.band--team { background: var(--bg-alt); }
.band--contact { background: var(--bg-alt); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(1.5rem, 6vw, 3.5rem); }
.eyebrow { margin: 0 0 0.8rem; color: var(--gold-bright); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; }
.band__title { margin: 0 0 1.4rem; font-family: "Amiri", serif; font-weight: 700; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.12; }
.lede { max-width: 62ch; margin: 0 0 2rem; color: var(--ink-dim); font-weight: 300; line-height: 1.75; font-size: clamp(1rem, 1.4vw, 1.15rem); }
.lede strong { color: var(--ink); font-weight: 600; }
.note { margin: 1.6rem 0 0; font-size: 0.9rem; color: var(--ink-dim); }
.note a, .lede a { color: var(--gold-bright); }

/* ---------- Über uns: Stats ---------- */
.stats { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 3.5rem); margin-top: 2.5rem; }
.stat { display: flex; flex-direction: column; }
.stat__num { font-family: "Amiri", serif; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--gold-bright); line-height: 1; }
.stat__lbl { margin-top: 0.4rem; font-size: 0.85rem; color: var(--ink-dim); letter-spacing: 0.04em; }

/* ---------- Gebetszeiten ---------- */
.prayers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.8rem; margin-top: 1.5rem; }
.prayer { border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 0.8rem; text-align: center; background: var(--card); }
.prayer__name { display: block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-bright); }
.prayer__time { display: block; margin-top: 0.5rem; font-family: "Amiri", serif; font-size: 1.7rem; }
.jumua { margin-top: 1.8rem; border-left: 3px solid var(--green); padding: 0.6rem 0 0.6rem 1.2rem; }
.jumua__h { margin: 0 0 0.5rem; font-size: 1.05rem; font-weight: 600; }
.jumua__grid { display: flex; flex-wrap: wrap; gap: 0.4rem 2rem; color: var(--ink-dim); font-size: 0.95rem; }
.jumua__season { color: var(--ink); font-weight: 600; margin-right: 0.4rem; }

/* ---------- Aktivitäten: Karten ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: 1.8rem; }
.card { border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.3rem, 3vw, 1.9rem); background: var(--card); transition: border-color 0.25s, transform 0.25s; }
.card:hover { border-color: rgba(216, 178, 94, 0.4); transform: translateY(-3px); }
.card__h { margin: 0 0 0.7rem; font-family: "Amiri", serif; font-size: 1.3rem; color: var(--gold-bright); }
.card__p { margin: 0; color: var(--ink-dim); line-height: 1.65; font-weight: 300; }
.card__p strong { color: var(--ink); font-weight: 600; }
.schedule { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.schedule li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;   /* Tag | Inhalt, sauber ausgerichtet */
  gap: 0.15rem 1rem;
  align-items: baseline;
  color: var(--ink-dim);
  font-size: 0.95rem;
  line-height: 1.45;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);    /* dezente Trennlinien -> tabellarisch, edel */
}
.schedule li:first-child { border-top: 0; }
.schedule span { color: var(--gold-bright); font-weight: 600; }

/* ---------- Verein: Ziele ---------- */
.goals { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem 2rem; }
.goals li { position: relative; padding-left: 1.7rem; color: var(--ink-dim); line-height: 1.5; }
.goals li::before { content: "☾"; position: absolute; left: 0; top: -0.05em; color: var(--green); font-size: 1.05rem; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.8rem; }
.person { border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem 1.2rem; background: var(--card); display: flex; flex-direction: column; gap: 0.25rem; }
.person--lead { border-color: rgba(216, 178, 94, 0.4); background: rgba(216, 178, 94, 0.06); }
.person__role { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-bright); }
.person__name { font-family: "Amiri", serif; font-size: 1.25rem; }
.person__meta { font-size: 0.85rem; color: var(--ink-dim); }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 3rem); align-items: stretch; }
.contact__address { font-style: normal; line-height: 1.7; color: var(--ink-dim); margin: 0.5rem 0 1.2rem; }
.contact__list { list-style: none; margin: 0 0 1.4rem; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.contact__list a { color: var(--ink); text-decoration: none; }
.contact__list a:hover { color: var(--gold-bright); }
.socials { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.socials a { font-size: 0.85rem; color: var(--ink-dim); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.9rem; transition: 0.2s; }
.socials a:hover { color: var(--gold-bright); border-color: rgba(216, 178, 94, 0.4); }
.contact__map { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); min-height: 320px; }
.contact__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; filter: grayscale(0.3) brightness(0.85); display: block; }
html[data-theme="light"] .contact__map iframe { filter: none; }

/* ---------- Footer ---------- */
.foot { background: var(--bg-deep); color: var(--ink-dim); border-top: 1px solid var(--line); padding: 2.5rem 0 1.5rem; }
.foot__inner { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; justify-content: space-between; }
.foot__brand { color: var(--ink); line-height: 1.5; font-size: 0.95rem; }
.foot__give { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.foot__give-label { font-size: 0.8rem; }
.foot__iban { font-variant-numeric: tabular-nums; color: var(--ink); font-size: 0.92rem; }
.foot__copy { cursor: pointer; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 999px; padding: 0.35rem 0.8rem; font: inherit; font-size: 0.8rem; transition: 0.2s; }
.foot__copy:hover { border-color: rgba(216, 178, 94, 0.5); color: var(--gold-bright); }
.foot__copy.copied { background: #7bd6a0; color: #06210f; border-color: transparent; }
.foot__links { display: flex; gap: 1.2rem; }
.foot__links a { color: var(--ink-dim); text-decoration: none; font-size: 0.88rem; }
.foot__links a:hover { color: var(--gold-bright); }
.foot__copy-note { text-align: center; margin: 1.8rem 0 0; font-size: 0.8rem; color: var(--ink-dim); opacity: 0.7; }

/* ---------- Mawaqit Live-Widget ---------- */
.mawaqit { margin-top: 1.5rem; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #000; }
.mawaqit iframe { display: block; width: 100%; height: 520px; border: 0; }

/* ---------- Leitgedanke (Foto gerahmt + Spruch daneben) ---------- */
.verse__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.verse__photo { margin: 0; }
.verse__photo img {
  display: block; width: 100%; height: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.55);
}
.verse__text {
  margin: 0;
  font-family: "Amiri", serif;
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  line-height: 1.3;
  color: var(--ink);
  max-width: 22ch;
}
.verse__text span { color: var(--gold-bright); }

/* ---------- Nav: solide nach dem Hero ---------- */
.nav.scrolled { background: var(--nav-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }

/* ---------- Karten-Spotlight (Cursor-Glow) ---------- */
.card { position: relative; }
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), rgba(216,178,94,0.14), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.card:hover::before { opacity: 1; }

/* ---------- Scroll-Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease-soft), transform 0.7s var(--ease-soft); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Nav-Logo ---------- */
/* Logo: transparenter Hintergrund -> verschmilzt. Über dem dunklen Hero weiß,
   auf hellem Grund (gescrollt, helles Theme) im Original-Farbton. */
.nav__logo { height: 42px; width: auto; display: block; filter: brightness(0) invert(1); }
.nav.scrolled .nav__logo { filter: none; }
html[data-theme="dark"] .nav.scrolled .nav__logo { filter: brightness(0) invert(1); }

/* ---------- Gebetszeiten: Live + nächstes Gebet ---------- */
.prayers__next { margin: 0 0 1rem; font-size: 0.95rem; color: var(--gold-bright); font-weight: 500; }
.prayer { transition: border-color 0.3s, background 0.3s, transform 0.3s, box-shadow 0.3s; }
.prayer.is-next { border-color: var(--green); background: rgba(91, 191, 138, 0.10); transform: translateY(-4px); box-shadow: 0 10px 30px -12px rgba(91, 191, 138, 0.55); }
.prayer.is-next .prayer__name { color: var(--green); }

/* ---------- Unterstützen / Spenden ---------- */
.band--support { background: var(--bg); }
.support { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.8rem; }
.support__card { border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.4rem, 3vw, 2rem); background: var(--card); display: flex; flex-direction: column; gap: 0.7rem; }
.support__card--paypal { border-color: rgba(216, 178, 94, 0.4); background: rgba(216, 178, 94, 0.06); }
.support__tag { align-self: flex-start; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-bright); border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem 0.7rem; }
.support__h { margin: 0.3rem 0 0; font-family: "Amiri", serif; font-size: 1.4rem; }
.support__p { margin: 0 0 0.4rem; color: var(--ink-dim); line-height: 1.6; font-weight: 300; }
.support__card .btn { align-self: flex-start; }
.support__bank { margin: 0.2rem 0 0; display: flex; flex-direction: column; gap: 0.6rem; }
.support__bank div { display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; align-items: baseline; }
.support__bank dt { width: 6rem; color: var(--ink-dim); font-size: 0.85rem; margin: 0; }
.support__bank dd { margin: 0; font-weight: 500; }
.support__bank #iban { font-variant-numeric: tabular-nums; letter-spacing: 0.03em; }
.support__copy { margin-left: 0.6rem; cursor: pointer; border: 0; border-radius: 999px; padding: 0.32rem 0.85rem; font: inherit; font-size: 0.78rem; font-weight: 600; color: #2a1d05; background: linear-gradient(135deg, var(--gold-bright), var(--gold)); transition: transform 0.2s; }
.support__copy:hover { transform: translateY(-1px); }
.support__copy.copied { background: #7bd6a0; color: #06210f; }

/* ---------- Kontakt-Verbesserungen ---------- */
.contact__route { margin: 0 0 1.4rem; }
.contact__map { min-height: 360px; }
.contact__map iframe { min-height: 360px; }

/* ---------- Rotierender Globus neben dem Logo (reines CSS, läuft in der fixen Leiste mit) ---------- */
.nav__left { display: flex; align-items: center; gap: clamp(0.55rem, 1.5vw, 0.95rem); }
.globe {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background-image: url("assets/earth-map.jpg");
  background-size: auto 100%;
  background-repeat: repeat-x;
  background-position: 0 center;
  box-shadow:
    0 0 12px rgba(241, 212, 136, 0.45),                 /* warmer Gold-Halo */
    -2px 0 3px rgba(195, 244, 255, 0.45) inset,          /* hell beleuchtete Kante links */
    4px 1px 7px rgba(0, 0, 0, 0.6) inset,
    -7px 0 10px rgba(195, 244, 255, 0.25) inset,
    28px 0 16px rgba(0, 0, 0, 0.55) inset;               /* Schattenseite rechts */
  --spin: -70.3px;                                        /* eine Texturbreite bei 44px -> nahtlos */
  animation: globeSpin 24s linear infinite;
}
@keyframes globeSpin {
  from { background-position: 0 center; }
  to   { background-position: var(--spin) center; }
}

/* ---------- Barrierefreiheit / sparsame Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  .verse__bg { transform: none; }
  .globe { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .hero__still { animation: none; transform: scale(1.04); }
  .hero__grain { animation: none; }
  .hero__intro { animation: none; opacity: 0; visibility: hidden; }
  .hero__eyebrow,
  .hero__title,
  .hero__lead,
  .hero__actions { animation-duration: 0.01ms; opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .cards { grid-template-columns: 1fr; }
  .goals { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .support { grid-template-columns: 1fr; }
  .verse__inner { grid-template-columns: 1fr; }
  .prayers { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero { align-items: flex-end; }
  /* Text kompakt ganz unten -> klarer Abstand zu den (nach oben gerückten) Moscheen */
  .hero__content { padding-bottom: clamp(1.4rem, 5vh, 2.4rem); }
  .hero__title { font-size: clamp(1.55rem, 6vw, 2.1rem); line-height: 1.12; margin-bottom: 0.6rem; }
  .hero__lead { font-size: 0.86rem; line-height: 1.45; max-width: 34ch; margin-bottom: 0.9rem; }
  .hero__scroll { display: none; }
  .prayers { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: 1fr; }
  .foot__inner { flex-direction: column; align-items: flex-start; }

  /* Obere Leiste oben klar abgesetzt -> Logo wirkt nicht "auf" der Moschee */
  .nav { background: linear-gradient(to bottom, rgba(4, 6, 12, 0.96), rgba(4, 6, 12, 0.6) 65%, transparent); }
  /* Logo kompakter + etwas eingerückt (weiter rechts vom Rand) */
  .nav { padding-left: 1.4rem; }
  .nav__logo { height: 30px; }
  .nav__sub { font-size: 0.56rem; letter-spacing: 0.16em; }
  /* Globus kleiner (Platz sparen), Rotation bleibt nahtlos */
  .globe { width: 34px; height: 34px; --spin: -54.3px; }
  .nav__left { gap: 0.5rem; }

  /* Hero-Buttons untereinander gestapelt + kompakt -> bleiben links, weg von der Kaaba */
  .hero__actions { flex-direction: column; align-items: flex-start; gap: 0.55rem; }
  .hero__content .btn { padding: 0.56rem 1.05rem; font-size: 0.82rem; }
}
