/* ============================================================
   DIE ERSTE URSACHE — Die Reise zum Anfang von allem
   Premium journey design system
   ============================================================ */

:root {
  --bg: #060a13;
  --bg-2: #0a1020;
  --bg-3: #0e1628;
  --ink: #e9e6dc;
  --ink-soft: #c3c4c9;
  --muted: #8b93a5;
  --gold: #d4af5f;
  --gold-soft: #b9994f;
  --gold-glow: rgba(212, 175, 95, 0.35);
  --line: rgba(212, 175, 95, 0.18);
  --line-soft: rgba(233, 230, 220, 0.08);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --body: "Spectral", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --max-prose: 44rem;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.85;
  overflow-x: hidden;
}

::selection { background: rgba(212, 175, 95, 0.3); color: #fff; }

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

a { color: var(--gold); text-decoration: none; }

/* ---------- Reading progress bar ---------- */
.progress-track {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(233, 230, 220, 0.06);
  z-index: 100;
}
.progress-track span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #8a6d2f, var(--gold), #f0d896);
  box-shadow: 0 0 12px var(--gold-glow);
  transition: width 0.08s linear;
}

/* ---------- Top navigation ---------- */
.topnav {
  position: fixed;
  top: 3px; left: 0; right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
.topnav.is-scrolled {
  background: rgba(6, 10, 19, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
}
.brand {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}
.brand .brand-mark {
  color: var(--gold);
  font-size: 1.1rem;
}
.nav-stations {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--sans);
}
.nav-stations a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid transparent;
  transition: all 0.25s ease;
}
.nav-stations a:hover { color: var(--gold); border-color: var(--line); }
.nav-stations a.is-active {
  color: var(--bg);
  background: var(--gold);
  box-shadow: 0 0 14px var(--gold-glow);
}
.nav-stations .nav-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 0.6rem;
}

/* ---------- Hero (landing) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 5rem;
  isolation: isolate;
}
#stars {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 55% at 50% 115%, rgba(212, 175, 95, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% -10%, rgba(56, 89, 150, 0.18), transparent 65%),
    linear-gradient(to bottom, transparent 55%, var(--bg) 98%);
  pointer-events: none;
}
.hero-kicker {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.6rem;
  opacity: 0;
  animation: rise 1.2s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 7.5vw, 5.4rem);
  line-height: 1.08;
  margin: 0;
  max-width: 17ch;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #fdfcf8 20%, #d8d2bf 60%, #a89b78 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  animation: rise 1.4s 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 1.8rem 0 0;
  line-height: 1.6;
  opacity: 0;
  animation: rise 1.4s 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero-cta {
  margin-top: 3rem;
  opacity: 0;
  animation: rise 1.4s 1.05s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 1.3rem;
  animation: bob 2.6s ease-in-out infinite;
  opacity: 0.7;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #10131c;
  background: linear-gradient(135deg, #e8cd8a, var(--gold) 55%, #a8843c);
  padding: 1.05rem 2.2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(212, 175, 95, 0.25), inset 0 1px 0 rgba(255,255,255,0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(212, 175, 95, 0.38), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: all 0.25s ease;
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(212, 175, 95, 0.07); }

/* ---------- Section shells ---------- */
.section {
  position: relative;
  padding: clamp(4.5rem, 10vw, 8rem) 1.5rem;
}
.section-inner { max-width: 62rem; margin: 0 auto; }

.section-kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.2rem;
  text-align: center;
}
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.15;
  text-align: center;
  margin: 0 auto 1.2rem;
  max-width: 24ch;
  color: #f4f1e7;
}

/* ---------- Ornament divider ---------- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: clamp(2.5rem, 6vw, 4rem) auto;
  color: var(--gold);
  opacity: 0.85;
}
.ornament::before, .ornament::after {
  content: "";
  height: 1px;
  width: clamp(3rem, 10vw, 6rem);
  background: linear-gradient(90deg, transparent, var(--line));
}
.ornament::after { background: linear-gradient(90deg, var(--line), transparent); }
.ornament svg { width: 18px; height: 18px; }

/* ---------- Vorwort / prose ---------- */
.prose {
  max-width: var(--max-prose);
  margin: 0 auto;
}
.prose p {
  margin: 0 0 1.6rem;
  color: var(--ink-soft);
}
.prose p strong { color: var(--ink); font-weight: 500; }
.prose .lead {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.65;
  color: var(--ink);
  font-weight: 500;
}
.prose .lead::first-letter {
  font-family: var(--serif);
  float: left;
  font-size: 4.6rem;
  line-height: 0.82;
  padding: 0.08em 0.14em 0 0;
  color: var(--gold);
  font-weight: 600;
}
.prose h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 2.15rem);
  font-weight: 600;
  line-height: 1.25;
  color: #f4f1e7;
  margin: 3.5rem 0 1.4rem;
}
.prose h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold);
  margin: 2.8rem 0 1rem;
}
.prose ul {
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
}
.prose ul li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.85rem;
  color: var(--ink-soft);
}
.prose ul li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0.1em;
  font-size: 0.7rem;
  color: var(--gold);
}

/* Emphasized question inside prose */
.big-question {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  line-height: 1.35;
  text-align: center;
  color: #f4f1e7;
  margin: 3rem auto;
  max-width: 30ch;
}
.big-question::before, .big-question::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 1px;
  margin: 1.4rem auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Analogy / thought-experiment card */
.analogy {
  position: relative;
  background: linear-gradient(160deg, rgba(212, 175, 95, 0.06), rgba(212, 175, 95, 0.015) 60%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.6rem, 4vw, 2.4rem) clamp(1.4rem, 4vw, 2.6rem);
  margin: 2.6rem 0;
}
.analogy .analogy-tag {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}
.analogy p { margin-bottom: 1.2rem; }
.analogy p:last-child { margin-bottom: 0; }

/* Conclusion / fazit block */
.fazit {
  position: relative;
  border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, rgba(212, 175, 95, 0.08), transparent 75%);
  border-radius: 0 12px 12px 0;
  padding: 1.8rem 2rem;
  margin: 3rem 0;
}
.fazit .fazit-tag {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.8rem;
}
.fazit p {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 1rem;
}
.fazit p:last-child { margin-bottom: 0; }

/* Quran verse block */
.verse {
  text-align: center;
  margin: 2.8rem auto;
  padding: 0 1rem;
  max-width: 38rem;
}
.verse .verse-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  line-height: 1.65;
  color: #f0ead6;
  margin: 0;
}
.verse .verse-ref {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--gold);
}
.verse + .verse { margin-top: 3.4rem; }

/* Numbered argument blocks */
.argument {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  margin: 2.4rem 0;
  align-items: start;
}
.argument .arg-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  padding-top: 0.2rem;
  min-width: 2.4rem;
  text-align: center;
}
.argument h3 { margin: 0 0 0.6rem; }
.argument p { margin-bottom: 1rem; }
.argument p:last-child { margin-bottom: 0; }

/* ---------- Journey map (landing) ---------- */
.journey { position: relative; }
.journey-path {
  position: relative;
  max-width: 46rem;
  margin: 4rem auto 0;
  padding-left: 0;
}
.journey-path::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  bottom: 4rem;
  left: 1.55rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold) 0%, rgba(212,175,95,0.25) 60%, transparent);
}
.station {
  position: relative;
  display: grid;
  grid-template-columns: 3.1rem 1fr;
  gap: 1.6rem;
  padding: 1.6rem 0;
  align-items: start;
}
.station-node {
  position: relative;
  z-index: 1;
  width: 3.1rem; height: 3.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold);
  background: var(--bg-2);
  border: 1px solid var(--line);
  box-shadow: 0 0 0 6px var(--bg);
  transition: all 0.3s ease;
}
.station-card {
  display: block;
  background: linear-gradient(160deg, rgba(255,255,255,0.03), rgba(255,255,255,0.008));
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 1.7rem 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.station-card:hover {
  transform: translateY(-3px);
  border-color: var(--line);
  background: linear-gradient(160deg, rgba(212,175,95,0.07), rgba(212,175,95,0.015));
  box-shadow: 0 18px 45px rgba(0,0,0,0.4);
}
.station:hover .station-node {
  background: var(--gold);
  color: var(--bg);
  box-shadow: 0 0 0 6px var(--bg), 0 0 22px var(--gold-glow);
}
.station-eyebrow {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.5rem;
}
.station-card h3 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.8vw, 1.65rem);
  font-weight: 600;
  line-height: 1.3;
  color: #f4f1e7;
  margin: 0 0 0.55rem;
}
.station-card p {
  font-size: 0.98rem;
  color: var(--muted);
  margin: 0 0 0.9rem;
  line-height: 1.7;
}
.station-go {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.station-go .arrow { display: inline-block; transition: transform 0.25s ease; }
.station-card:hover .station-go .arrow { transform: translateX(5px); }

/* ---------- Chapter hero ---------- */
.chapter-hero {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 6rem;
  isolation: isolate;
  overflow: hidden;
}
.chapter-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 50% 120%, rgba(212, 175, 95, 0.1), transparent 60%),
    linear-gradient(to bottom, transparent 50%, var(--bg) 96%);
  pointer-events: none;
}
.chapter-num {
  font-family: var(--serif);
  font-size: clamp(6rem, 18vw, 11rem);
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 175, 95, 0.5);
  margin: 0 0 0.5rem;
  opacity: 0;
  animation: rise 1.2s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.chapter-eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.4rem;
  opacity: 0;
  animation: rise 1.2s 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.chapter-hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.8vw, 4rem);
  line-height: 1.15;
  max-width: 20ch;
  margin: 0 auto;
  color: #f6f3e9;
  opacity: 0;
  animation: rise 1.3s 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

/* ---------- Next chapter CTA ---------- */
.next-chapter {
  padding: clamp(4rem, 9vw, 7rem) 1.5rem clamp(5rem, 10vw, 8rem);
}
.next-card {
  position: relative;
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3.5rem);
  background:
    radial-gradient(ellipse 90% 100% at 50% 0%, rgba(212, 175, 95, 0.09), transparent 70%),
    linear-gradient(160deg, rgba(255,255,255,0.02), transparent);
  overflow: hidden;
}
.next-card .next-eyebrow {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 1rem;
}
.next-card h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.25;
  color: #f4f1e7;
  margin: 0 0 1rem;
}
.next-card p {
  color: var(--muted);
  max-width: 34rem;
  margin: 0 auto 2rem;
}
.next-back {
  display: block;
  text-align: center;
  margin-top: 2rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s ease;
}
.next-back:hover { color: var(--gold); }

/* ---------- Contact / final ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin: 2.5rem 0;
}
.contact-item {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 1.5rem 1.6rem;
  text-align: center;
  background: rgba(255,255,255,0.015);
  transition: border-color 0.3s ease, transform 0.3s ease;
  overflow-wrap: anywhere;
}
.contact-item:hover { border-color: var(--line); transform: translateY(-2px); }
.contact-item .contact-label {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.6rem;
}
.contact-item a { font-size: 0.98rem; }

.shahada-block {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(2.2rem, 6vw, 3.5rem) clamp(1.4rem, 5vw, 3rem);
  margin: 3rem 0;
  background:
    radial-gradient(ellipse 90% 120% at 50% -10%, rgba(212, 175, 95, 0.1), transparent 70%);
}
.shahada-block .shahada-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  line-height: 1.7;
  color: #f0ead6;
  margin: 0 0 1.2rem;
}
.shahada-block .shahada-translation {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line-soft);
  padding: 3rem 1.5rem 3.5rem;
  text-align: center;
}
footer .footer-brand {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.8rem;
}
footer p {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.3rem 0;
}
footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
  margin-top: 1.4rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
footer .footer-nav a { color: var(--muted); transition: color 0.25s ease; }
footer .footer-nav a:hover { color: var(--gold); }
footer .footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
  margin-top: 1.3rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
footer .footer-legal a { color: var(--muted); opacity: 0.75; transition: color 0.25s ease, opacity 0.25s ease; }
footer .footer-legal a:hover { color: var(--gold); opacity: 1; }

/* ---------- Journey state: resume banner (landing) ---------- */
.resume-banner {
  margin-top: 1.6rem;
  opacity: 0;
  animation: rise 1.2s 1.25s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.resume-banner[hidden] { display: none; }
.resume-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(212, 175, 95, 0.07);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}
.resume-link:hover { border-color: var(--gold); background: rgba(212, 175, 95, 0.14); }
.resume-link .resume-mark { color: var(--gold); }

/* ---------- Journey state: completion marks ---------- */
.station-node.is-done {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
  box-shadow: 0 0 0 6px var(--bg), 0 0 16px rgba(212, 175, 95, 0.25);
  font-size: 1.05rem;
}
.station-node.is-current {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 0 6px var(--bg), 0 0 18px var(--gold-glow);
}
.station-state {
  display: inline-block;
  margin-left: 0.5rem;
  color: var(--gold);
  font-size: 0.65rem;
  letter-spacing: 0.24em;
}
.nav-stations a.is-done {
  color: var(--gold);
  border-color: var(--line);
}
.nav-stations a.is-done.is-active { color: var(--bg); }
.side-dots a.is-done { background: var(--gold-soft); }

/* ---------- Journey state: resume pill (chapter pages) ---------- */
.resume-pill {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  transform: translate(-50%, 0);
  z-index: 85;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(10, 16, 32, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  opacity: 0;
  translate: 0 14px;
  transition: opacity 0.45s ease, translate 0.45s ease, border-color 0.25s ease;
  pointer-events: none;
}
.resume-pill.is-shown { opacity: 1; translate: 0 0; pointer-events: auto; }
.resume-pill:hover { border-color: var(--gold); }
.resume-pill .arrow { color: var(--gold); }

/* ---------- Reading time meta ---------- */
.chapter-meta {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.4rem 0 0;
  opacity: 0;
  animation: rise 1.3s 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.chapter-meta .meta-dot { color: var(--gold); margin: 0 0.45rem; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s cubic-bezier(0.2, 0.7, 0.2, 1), transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Side journey dots (chapter pages) ---------- */
.side-dots {
  position: fixed;
  right: 1.6rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  z-index: 80;
}
.side-dots a {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(233, 230, 220, 0.18);
  transition: all 0.3s ease;
}
.side-dots a:hover { background: var(--gold-soft); transform: scale(1.3); }
.side-dots a.is-active {
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold-glow);
  transform: scale(1.35);
}

/* ---------- Nav text link (Ressourcen) ---------- */
.nav-stations .nav-link {
  width: auto;
  height: auto;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  margin-left: 0.55rem;
}
.nav-stations .nav-link:hover { color: var(--gold); border-color: var(--line); }
.nav-stations .nav-link.is-active {
  color: var(--bg);
  background: var(--gold);
  box-shadow: 0 0 14px var(--gold-glow);
}

/* ---------- Language switch ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 0.55rem;
  padding-left: 0.6rem;
  border-left: 1px solid var(--line-soft);
}
.lang-switch a {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.lang-switch a:hover { color: var(--gold); border-color: var(--line); }
.lang-switch a.is-active {
  color: var(--bg);
  background: var(--gold);
  box-shadow: 0 0 14px var(--gold-glow);
}

/* ---------- Resources page ---------- */
.resource-group {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  color: #f4f1e7;
  text-align: center;
  margin: clamp(3rem, 7vw, 4.5rem) 0 0.6rem;
}
.resource-group-sub {
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  max-width: 38rem;
  margin: 0 auto 2.2rem;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1.3rem;
  max-width: 54rem;
  margin: 0 auto;
}
.resource-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, rgba(255,255,255,0.03), rgba(255,255,255,0.008));
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 1.6rem 1.8rem;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.resource-card:hover {
  transform: translateY(-3px);
  border-color: var(--line);
  background: linear-gradient(160deg, rgba(212,175,95,0.07), rgba(212,175,95,0.015));
  box-shadow: 0 18px 45px rgba(0,0,0,0.4);
}
.resource-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}
.resource-domain {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.resource-lang {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  white-space: nowrap;
}
.resource-card h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
  color: #f4f1e7;
  margin: 0 0 0.55rem;
}
.resource-card p {
  font-size: 0.96rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 1.1rem;
  flex: 1;
}
.resource-card:hover .station-go .arrow { transform: translateX(5px); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  body { font-size: 1.05rem; }
  .nav-stations .nav-label { display: none; }
  .nav-stations { gap: 0.1rem; }
  .topnav { padding: 0.9rem 1.1rem; }
  .side-dots { display: none; }
}

@media (max-width: 520px) {
  .brand .brand-text { display: none; }
  .brand .brand-mark { font-size: 1.5rem; }
  .station { grid-template-columns: 2.6rem 1fr; gap: 1rem; }
  .station-node { width: 2.6rem; height: 2.6rem; font-size: 1.05rem; }
  .journey-path::before { left: 1.3rem; }
  .station-card { padding: 1.3rem 1.4rem; }
  .argument { grid-template-columns: 1fr; gap: 0.4rem; }
  .argument .arg-num { text-align: left; min-width: 0; }
}

/* ---------- Mobile menu (hamburger + drawer) ---------- */
.nav-toggle {
  display: none;
  position: relative;
  width: 2.7rem;
  height: 2.7rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(212, 175, 95, 0.06);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.nav-toggle:hover { border-color: var(--gold); }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  display: block;
  width: 18px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.2s ease, background 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; left: 0; top: -6px; }
.nav-toggle-bars::after { position: absolute; left: 0; top: 6px; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 2.5rem;
  background: rgba(6, 10, 19, 0.95);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu-inner {
  position: relative;
  width: 100%;
  max-width: 21rem;
  transform: translateY(14px);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.mobile-menu.is-open .mobile-menu-inner { transform: translateY(0); }
.mobile-menu-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 2.7rem;
  height: 2.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(212, 175, 95, 0.06);
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.25s ease;
}
.mobile-menu-close:hover { border-color: var(--gold); }
.mobile-menu-kicker {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin: 0 0 1.5rem;
}
.mobile-menu-stations {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-soft);
  margin-bottom: 1.6rem;
}
.mobile-menu-station {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0.3rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}
.mobile-menu-station .mm-num {
  flex: 0 0 auto;
  width: 2.3rem;
  height: 2.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.mobile-menu-station .mm-label {
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.mobile-menu-station.is-done .mm-num,
.mobile-menu-station.is-active .mm-num {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}
.mobile-menu-station.is-active .mm-label { color: var(--ink); }
.mobile-menu-link {
  display: block;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.mobile-menu-link:hover { border-color: var(--gold); background: rgba(212, 175, 95, 0.07); }
.mobile-menu-langs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.6rem 0 0;
  padding: 0;
  border-left: none;
}
.mobile-menu-langs a {
  padding: 0.5rem 0.9rem;
  font-size: 0.72rem;
  border: 1px solid var(--line-soft);
}

@media (max-width: 720px) {
  .nav-stations { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand .brand-text { display: inline; }
  .brand .brand-mark { font-size: 1.2rem; }
}

/* ---------- Logic chain (landing page argument map) ---------- */
.logic-chain {
  position: relative;
  max-width: 40rem;
  margin: 3.5rem auto 0;
  padding: 0;
  list-style: none;
}
.logic-chain::before {
  content: "";
  position: absolute;
  top: 1.4rem;
  bottom: 1.6rem;
  left: 0.56rem;
  width: 1px;
  background: linear-gradient(to bottom, rgba(212, 175, 95, 0.15), var(--gold) 55%, rgba(212, 175, 95, 0.25));
}
.logic-chain li {
  position: relative;
  padding: 1.05rem 0 1.05rem 2.7rem;
}
.logic-chain li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.6rem;
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
  background: var(--bg);
}
.logic-chain .lc-tag {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.4rem;
}
.logic-chain .lc-text {
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.5;
  color: var(--ink);
}
.logic-chain li.lc-conclusion {
  margin: 0.9rem 0;
  border-left: 2px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, rgba(212, 175, 95, 0.09), transparent 78%);
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
}
.logic-chain li.lc-conclusion::before {
  left: 0.14rem;
  top: 1.95rem;
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
}
.logic-chain li.lc-conclusion .lc-tag { color: var(--gold); }
.logic-chain li.lc-conclusion .lc-text { font-size: 1.42rem; font-weight: 600; }
.logic-chain li.lc-question .lc-text {
  font-style: italic;
  color: var(--gold);
}
@media (max-width: 520px) {
  .logic-chain li { padding-left: 2.2rem; }
  .logic-chain .lc-text { font-size: 1.15rem; }
  .logic-chain li.lc-conclusion .lc-text { font-size: 1.26rem; }
}

/* ---------- Chapter mini table of contents ---------- */
.chapter-toc {
  margin: 0 0 2.4rem;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(10, 16, 32, 0.5);
  padding: 0.95rem 1.3rem;
}
.chapter-toc summary {
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.chapter-toc ol {
  margin: 1rem 0 0.3rem;
  padding-left: 1.3rem;
}
.chapter-toc li { margin: 0.5rem 0; }
.chapter-toc a {
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.chapter-toc a:hover { color: var(--gold); }

/* ---------- Journey progress chip ---------- */
.journey-chip {
  position: fixed;
  left: 1.2rem;
  bottom: 1.2rem;
  z-index: 84;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(10, 16, 32, 0.92);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  backdrop-filter: blur(6px);
  transition: opacity 0.35s ease, visibility 0.35s;
}
.journey-chip:hover { color: var(--ink); border-color: var(--line); }
.journey-chip.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.journey-chip .jc-dots { display: inline-flex; gap: 0.18rem; letter-spacing: 0; }
.journey-chip .jc-dot { color: rgba(233, 230, 220, 0.28); font-size: 0.58rem; }
.journey-chip .jc-dot.is-done { color: var(--gold); }
.journey-chip .jc-count { color: var(--ink-soft); }
@media (max-width: 520px) {
  .journey-chip { left: 0.8rem; bottom: 0.8rem; padding: 0.45rem 0.8rem; }
  .journey-chip .jc-label { display: none; }
}

/* ---------- Accessibility: visible focus + skip link ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--gold);
  color: #10131c;
  padding: 0.7rem 1.2rem;
  font-family: var(--sans);
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Quran reference links (injected by main.js) ---------- */
.verse-ref a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}
.prose a.quran-ref {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px dotted rgba(212, 175, 95, 0.45);
}
.prose a.quran-ref:hover,
.verse-ref a:hover { border-bottom-style: solid; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-kicker, .hero h1, .hero-sub, .hero-cta,
  .chapter-num, .chapter-eyebrow, .chapter-hero h1 { opacity: 1; }
}

/* ---------- Voice reader (text-to-speech) ---------- */
.tts-bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: max-content;
  margin: 0 0 2.6rem;
  padding: 0.55rem 0.85rem 0.55rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(14, 22, 40, 0.65), rgba(10, 16, 32, 0.65));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: border-color 0.3s ease;
}
.tts-bar.is-active { border-color: rgba(212, 175, 95, 0.42); }

.tts-toggle {
  flex: none;
  width: 2.9rem;
  height: 2.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #10131c;
  background: linear-gradient(135deg, #e8cd8a, var(--gold) 55%, #a8843c);
  box-shadow: 0 6px 20px rgba(212, 175, 95, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tts-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(212, 175, 95, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.tts-toggle svg { width: 1.05rem; height: 1.05rem; display: block; }

.tts-meta {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  min-width: 9.5rem;
}
.tts-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.tts-progress {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: rgba(212, 175, 95, 0.16);
  overflow: hidden;
}
.tts-progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
  transition: width 0.3s ease;
}

.tts-stop {
  flex: none;
  width: 2.3rem;
  height: 2.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.tts-stop:hover { color: var(--gold); border-color: var(--gold); }
.tts-stop svg { width: 0.8rem; height: 0.8rem; display: block; }
.tts-stop[hidden] { display: none; }

/* The paragraph currently being read aloud */
.prose .tts-reading {
  background: linear-gradient(90deg, rgba(212, 175, 95, 0.12), rgba(212, 175, 95, 0.03) 55%, transparent);
  box-shadow: inset 0.18rem 0 0 var(--gold);
  border-radius: 6px;
  scroll-margin-top: 6rem;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
/* The hero title, while it is the line being read */
.chapter-hero h1.tts-reading {
  color: var(--gold);
  text-shadow: 0 0 26px var(--gold-glow);
  transition: color 0.35s ease, text-shadow 0.35s ease;
}

@media (max-width: 480px) {
  .tts-bar { width: 100%; max-width: none; }
  .tts-meta { flex: 1; min-width: 0; }
}
