/* Zînur: Website im Stil «Himmel nach Tageszeit». Farben aus GebetKit/Design/SkyPalette.swift. */

:root {
  color-scheme: light dark;
  --bg: #F5F1E8;
  --surface: #FFFFFF;
  --surface-2: #EEE8DA;
  --ink: #141B3D;
  --ink-2: #4A5070;
  --line: rgba(20, 27, 61, 0.12);
  --accent: #8A5A14;
  --accent-soft: rgba(200, 134, 42, 0.14);
  --gold: #FCD499;
  --shadow: 0 1px 2px rgba(20, 27, 61, 0.06), 0 8px 24px rgba(20, 27, 61, 0.06);
  --radius: 22px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* Himmel der Kopfzone: Zenit plus satte Töne (deepStops), tragen weisse Schrift. Standard: Maghrib. */
  --sky-0: #1B1F4A;
  --sky-1: #1B1F4A;
  --sky-2: #7A3554;
  --sky-3: #964C36;
}

:root[data-sky="fajr"]    { --sky-0: #141B3D; --sky-1: #141B3D; --sky-2: #3F3B74; --sky-3: #7B4E6C; }
:root[data-sky="dhuhr"]   { --sky-0: #113C86; --sky-1: #12397A; --sky-2: #1E55A8; --sky-3: #2661AB; }
:root[data-sky="asr"]     { --sky-0: #223E78; --sky-1: #1F3A70; --sky-2: #6A4A6E; --sky-3: #905036; }
:root[data-sky="maghrib"] { --sky-0: #1B1F4A; --sky-1: #1B1F4A; --sky-2: #7A3554; --sky-3: #964C36; }
:root[data-sky="isha"]    { --sky-0: #03050F; --sky-1: #05081A; --sky-2: #141C3D; --sky-3: #27315E; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #05081A;
    --surface: #0E1430;
    --surface-2: #141C3D;
    --ink: #F5F1E8;
    --ink-2: #B9BCD0;
    --line: rgba(245, 241, 232, 0.12);
    --accent: #FCD499;
    --accent-soft: rgba(252, 212, 153, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

img, svg { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 10px; z-index: 10;
}
.skip:focus { left: 8px; }

/* Kopfleiste ------------------------------------------------------------- */

.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  color: #fff;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 18px; padding-bottom: 18px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: inherit; text-decoration: none;
  font-family: var(--font-round); font-weight: 650; font-size: 20px; letter-spacing: 0.01em;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255,255,255,0.18); }
.nav { display: flex; gap: 4px; flex-wrap: nowrap; justify-content: flex-end; }
.nav a {
  color: rgba(255, 255, 255, 0.88); text-decoration: none; font-size: 15px;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* Himmel ----------------------------------------------------------------- */

.sky {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, var(--sky-0) 0%, var(--sky-1) 18%, var(--sky-2) 62%, var(--sky-3) 100%);
}
.sky::before {
  /* leise Sterne, nur im Dunkeln des Zenits */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(255,255,255,0.8), transparent 60%),
    radial-gradient(1px 1px at 28% 9%, rgba(255,255,255,0.6), transparent 60%),
    radial-gradient(1.4px 1.4px at 46% 22%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1px 1px at 64% 12%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1.2px 1.2px at 81% 26%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1px 1px at 91% 8%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1px 1px at 7% 36%, rgba(255,255,255,0.45), transparent 60%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 45%);
          mask-image: linear-gradient(180deg, #000 0%, transparent 45%);
}
:root[data-sky="dhuhr"] .sky::before { opacity: 0; }

.hero { padding: 120px 0 72px; }
.hero .wrap { position: relative; display: grid; gap: 48px; align-items: center; }
.hero-icon {
  width: 88px; height: 88px; border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255,255,255,0.15);
  margin-bottom: 22px;
}
.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.8); margin: 0 0 10px;
}
.hero h1 {
  font-family: var(--font-round); font-weight: 700;
  font-size: clamp(44px, 9vw, 76px); line-height: 1.02; letter-spacing: -0.01em; margin: 0 0 14px;
}
.hero .lead { font-size: clamp(18px, 2.4vw, 21px); line-height: 1.5; color: rgba(255,255,255,0.9); max-width: 34ch; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: #141B3D; border-radius: 14px; padding: 10px 18px 10px 14px;
  font-weight: 600; line-height: 1.2; text-decoration: none;
}
.store-badge svg { width: 22px; height: 22px; }
.store-badge small { display: block; font-size: 11px; font-weight: 500; opacity: 0.7; letter-spacing: 0.02em; }
.store-badge[aria-disabled="true"] { cursor: default; }
.ghost {
  color: #fff; text-decoration: none; padding: 12px 16px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.35);
}
.ghost:hover { background: rgba(255,255,255,0.1); }
.hero .meta { margin: 18px 0 0; font-size: 14px; color: rgba(255,255,255,0.75); }

/* Beispielkarte wie in der App (Glas über Himmel) */
.glass {
  background: rgba(10, 16, 48, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
          backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.preview { max-width: 380px; width: 100%; justify-self: center; padding: 22px; }
.preview-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: rgba(255,255,255,0.78); }
.preview-next { margin: 14px 0 18px; }
.preview-next .label { font-size: 14px; color: rgba(255,255,255,0.78); }
.preview-next .name { font-family: var(--font-round); font-size: 34px; font-weight: 700; line-height: 1.1; }
.preview-next .time { font-size: 15px; color: var(--gold); }
.prayers { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,0.14); }
.prayers li {
  display: flex; justify-content: space-between; padding: 10px 2px;
  border-bottom: 1px solid rgba(255,255,255,0.1); font-variant-numeric: tabular-nums;
}
.prayers li:last-child { border-bottom: 0; }
.prayers li.now { color: var(--gold); font-weight: 600; }
.prayers .check { opacity: 0.7; }
.preview-note { margin: 12px 0 0; font-size: 12px; color: rgba(255,255,255,0.6); text-align: center; }

/* Abschnitte ------------------------------------------------------------- */

section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head h2 {
  font-family: var(--font-round); font-weight: 700; font-size: clamp(28px, 4.5vw, 38px);
  line-height: 1.15; margin: 0 0 10px; letter-spacing: -0.005em;
}
.section-head p { color: var(--ink-2); margin: 0; }
.kicker { display: block; color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { font-size: 19px; line-height: 1.3; margin: 14px 0 6px; }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; }
.card .ico {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.card .ico svg { width: 24px; height: 24px; }

.feature-dua { grid-column: 1 / -1; }
.quote {
  margin: 16px 0 0; padding: 16px 18px; border-radius: 16px; background: var(--surface-2);
  font-size: 15px; color: var(--ink-2);
}
.quote .ar { font-size: 22px; line-height: 1.8; color: var(--ink); direction: rtl; text-align: right; margin: 0 0 6px; font-family: "Geeza Pro", "Noto Naskh Arabic", "Arabic Typesetting", serif; }
.quote cite { display: block; font-style: normal; font-size: 13px; margin-top: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { font-size: 14px; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink); }

/* Leitplanken */
.promise { background: var(--surface-2); }
.promise-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
.promise-list li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px;
}
.promise-list svg { flex: none; width: 24px; height: 24px; color: var(--accent); margin-top: 2px; }
.promise-list strong { display: block; }
.promise-list span { color: var(--ink-2); font-size: 15px; }

/* Premium */
.price-card {
  position: relative; overflow: hidden; color: #fff; border-radius: 28px; padding: 32px 26px;
  background: linear-gradient(160deg, #141B3D 0%, #3F3B74 55%, #7B4E6C 100%);
  box-shadow: var(--shadow);
}
.price-card h3 { font-family: var(--font-round); font-size: 26px; margin: 0 0 4px; }
.price { font-family: var(--font-round); font-size: 44px; font-weight: 700; line-height: 1.1; margin: 16px 0 2px; }
.price small { font-size: 17px; font-weight: 500; color: rgba(255,255,255,0.8); }
.price-alt { color: rgba(255,255,255,0.85); margin: 0; }
.trial {
  display: inline-block; margin-top: 18px; padding: 6px 12px; border-radius: 999px;
  background: rgba(252, 212, 153, 0.18); color: var(--gold); font-weight: 600; font-size: 15px;
}
.price-card ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.price-card li { padding-left: 26px; position: relative; color: rgba(255,255,255,0.92); }
.price-card li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 12px; height: 7px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg) translateY(-50%); }
.fine { font-size: 14px; color: var(--ink-2); margin: 16px 0 0; }
.price-card .fine { color: rgba(255,255,255,0.72); }

/* Fussleiste */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 15px; color: var(--ink-2); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer a { color: var(--ink); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Textseiten (Datenschutz, Support) -------------------------------------- */

.page-hero { padding: 116px 0 44px; }
.page-hero h1 { font-family: var(--font-round); font-weight: 700; font-size: clamp(34px, 6vw, 52px); line-height: 1.08; margin: 0 0 10px; }
.page-hero p { margin: 0; color: rgba(255,255,255,0.86); max-width: 56ch; }

.prose { max-width: 720px; padding-top: 48px; padding-bottom: 72px; }
.prose h2 { font-family: var(--font-round); font-size: 24px; line-height: 1.25; margin: 44px 0 10px; }
.prose h3 { font-size: 18px; margin: 26px 0 6px; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose .muted { color: var(--ink-2); }
.summary {
  background: var(--accent-soft); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin: 0 0 8px;
}
.summary p { margin: 0; }
.toc { border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; margin: 24px 0 0; background: var(--surface); }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.toc li { margin: 3px 0; break-inside: avoid; }
.table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table th { font-weight: 600; }

/* FAQ */
.faq { display: grid; gap: 10px; margin-top: 8px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 18px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 16px; color: var(--ink); }
.faq details > div p:first-child { margin-top: 0; }
.faq ol, .faq ul { padding-left: 22px; }

.contact-card { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 12px; }
.button {
  display: inline-block; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600;
  padding: 12px 18px; border-radius: 14px;
}
.button:hover { opacity: 0.9; }

/* Breitere Bildschirme --------------------------------------------------- */

@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .promise-list { grid-template-columns: repeat(2, 1fr); }
  .price-card { padding: 40px; }
}

@media (min-width: 980px) {
  .hero { padding: 150px 0 96px; }
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .feature-dua { grid-column: span 2; }
  .premium-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav a.hide-sm { display: none; }
  .nav a { padding: 8px 9px; font-size: 14px; }
  .toc ol { columns: 1; }
  section { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

.tag {
  display: inline-block; vertical-align: 2px; margin-left: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
}
