/* quran-verstehen.de — Plattform-Design-System
   Übernimmt die Farb-, Typo- und Formsprache der App „80% Wörter Quran“:
   tiefes Teal (Tinte) + feines Gold (Mushaf-Ornamentik), Serifen-Display für
   Titel, klare Sans für Fließtext, Naskh für Arabisch. Ruhig, buchhaft,
   würdevoll. Hell/Dunkel, responsiv, reduzierte Motion. */

:root {
  --accent: #0e7268;
  --accent-strong: #0a5d55;
  --accent-soft: rgba(14, 114, 104, 0.1);
  --accent-line: rgba(14, 114, 104, 0.18);
  --gold: #b8912f;
  --gold-soft: rgba(184, 145, 47, 0.35);
  --bg: #f3f4f2;
  --bg-elevated: #fbfbfa;
  --card: #ffffff;
  --text: #1b2528;
  --text-secondary: #5f6b6e;
  --border: rgba(27, 37, 40, 0.09);
  --shadow: 0 1px 2px rgba(27, 37, 40, 0.05), 0 10px 28px -18px rgba(27, 37, 40, 0.25);
  --shadow-lg: 0 2px 4px rgba(27, 37, 40, 0.06), 0 30px 60px -34px rgba(27, 37, 40, 0.4);
  --green: #2e8b4f;
  --orange: #b56a1e;
  --orange-soft: rgba(181, 106, 30, 0.1);
  --radius: 16px;
  --radius-lg: 22px;
  --nav-h: 66px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --arabic-font: "KFGQPC Uthman Taha Naskh", "Geeza Pro", "Al Bayan",
    "Noto Naskh Arabic", "Traditional Arabic", "Amiri", serif;
}

:root[data-theme="dark"] {
  --accent: #3aaf9f;
  --accent-strong: #4cc4b3;
  --accent-soft: rgba(58, 175, 159, 0.14);
  --accent-line: rgba(58, 175, 159, 0.24);
  --gold: #d0ab52;
  --gold-soft: rgba(208, 171, 82, 0.35);
  --bg: #131719;
  --bg-elevated: #171c1e;
  --card: #1d2326;
  --text: #eef1f1;
  --text-secondary: #98a4a6;
  --border: rgba(238, 241, 241, 0.09);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 30px -18px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 34px 60px -30px rgba(0, 0, 0, 0.75);
  --green: #67b385;
  --orange: #d29050;
  --orange-soft: rgba(210, 144, 80, 0.13);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --accent: #3aaf9f;
    --accent-strong: #4cc4b3;
    --accent-soft: rgba(58, 175, 159, 0.14);
    --accent-line: rgba(58, 175, 159, 0.24);
    --gold: #d0ab52;
    --gold-soft: rgba(208, 171, 82, 0.35);
    --bg: #131719;
    --bg-elevated: #171c1e;
    --card: #1d2326;
    --text: #eef1f1;
    --text-secondary: #98a4a6;
    --border: rgba(238, 241, 241, 0.09);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 30px -18px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 34px 60px -30px rgba(0, 0, 0, 0.75);
    --green: #67b385;
    --orange: #d29050;
    --orange-soft: rgba(210, 144, 80, 0.13);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  min-height: 100dvh;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 clamp(18px, 5vw, 40px); }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-weight: 600; transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Kopfzeile / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: 100%;
  display: flex; align-items: center; gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-logo { width: 40px; height: 40px; border-radius: 11px; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .logo-light { display: none; }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .logo-dark { display: block; }
}
.brand-name {
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  letter-spacing: 0.01em; color: var(--text); line-height: 1.1;
}
.brand-name b { color: var(--accent); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--text-secondary); font-size: 14.5px; font-weight: 550;
  padding: 9px 13px; border-radius: 10px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--text); background: var(--accent-soft); }
.nav-links a.active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.nav-links a.nav-app { color: var(--accent); font-weight: 600; }
.nav-cta { margin-left: 6px; }

/* Auth-Anzeige in der Navigation */
.nav-auth { display: inline-flex; align-items: center; gap: 8px; }
.nav-auth:empty { display: none; }
.nav-user {
  font-size: 13.5px; color: var(--text-secondary); font-weight: 550;
  max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-login {
  color: var(--text-secondary); font-size: 14.5px; font-weight: 550;
  padding: 9px 13px; border-radius: 10px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-login:hover { color: var(--accent); background: var(--accent-soft); }
.btn.compact { padding: 8px 14px; font-size: 13.5px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  cursor: pointer; flex: none; transition: border-color 0.15s ease, background 0.15s ease;
}
.icon-btn:hover { border-color: var(--accent); }
.icon-btn .ic { width: 20px; height: 20px; }
.icon-btn .ic-moon { display: none; }
:root[data-theme="dark"] .icon-btn .ic-sun { display: none; }
:root[data-theme="dark"] .icon-btn .ic-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .icon-btn .ic-sun { display: none; }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .icon-btn .ic-moon { display: block; }
}

.nav-toggle { display: none; }

/* Mobiles Menü */
@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 12px clamp(18px, 5vw, 40px) 20px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 13px 14px; font-size: 16px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-links { transition: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent; border-radius: 13px;
  padding: 13px 22px; font-size: 15.5px; font-weight: 600;
  font-family: inherit; cursor: pointer; text-align: center;
  background: var(--accent-soft); color: var(--accent);
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: color-mix(in srgb, var(--accent-soft) 70%, var(--accent) 12%); }
.btn:active { transform: scale(0.985); }
.btn .ic { width: 18px; height: 18px; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-strong); }
.btn.outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn.outline:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.large { padding: 15px 26px; font-size: 16.5px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn.disabled, .btn[aria-disabled="true"] {
  background: var(--accent-soft); color: var(--text-secondary);
  opacity: 0.6; cursor: not-allowed; pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .btn { transition: background 0.15s ease; } }

/* ---------- Typografie & Sektionen ---------- */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section.tight { padding: clamp(40px, 6vw, 72px) 0; }
.section.alt { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 650; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
}
.eyebrow::before { content: "✦"; color: var(--gold); font-size: 12px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--text); letter-spacing: 0.005em; }
h1 { font-size: clamp(30px, 5.4vw, 50px); font-weight: 600; line-height: 1.1; margin: 0 0 18px; }
h2.section-title { font-size: clamp(24px, 3.6vw, 36px); font-weight: 600; line-height: 1.15; margin: 0 0 14px; }
h3 { font-size: 20px; font-weight: 600; margin: 0 0 8px; }
.lead { font-size: clamp(16.5px, 2vw, 19px); color: var(--text-secondary); line-height: 1.65; max-width: 62ch; }
.section-head { max-width: 64ch; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
p { margin: 0 0 16px; }
.muted { color: var(--text-secondary); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(52px, 8vw, 92px); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-copy { max-width: 60ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero .trust {
  display: flex; flex-wrap: wrap; gap: 18px 26px; margin-top: 30px;
  color: var(--text-secondary); font-size: 14px;
}
.hero .trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero .trust .ic { width: 17px; height: 17px; color: var(--accent); flex: none; }

/* dekorativer Hintergrund */
.hero::before {
  content: ""; position: absolute; z-index: -1;
  width: 620px; height: 620px; top: -240px; right: -180px; border-radius: 50%;
  background: radial-gradient(circle at center, var(--accent-soft), transparent 68%);
  pointer-events: none;
}

/* Interaktive Hero-Lernkarte: Maus-Tilt + Klick-Flip (Demo).
   Der Flip liegt auf .flip-card-inner, der Tilt (per JS) auf der sichtbaren
   Seite — so stören sich die beiden Transforms nicht. */
.hero-visual { display: flex; justify-content: center; perspective: 1400px; }
.flip-card {
  position: relative; width: 100%; max-width: 380px;
  height: clamp(392px, 58vh, 468px);
  border-radius: var(--radius-lg);
  cursor: pointer; outline: none;
  -webkit-tap-highlight-color: transparent;
}
.flip-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.flip-card-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.25, 1);
}
.flip-card.is-flipped .flip-card-inner { transform: rotateY(180deg); }

.flip-face {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 42px 26px 26px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: box-shadow 0.25s ease-out;
  will-change: transform;
}
.flip-back { transform: rotateY(180deg); gap: 2px; }

/* Gold-Ornament (Mushaf-Anklang) auf beiden Seiten */
.flip-face::before {
  content: ""; position: absolute; top: 16px; left: 28px; right: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft) 18%, var(--gold-soft) 82%, transparent);
}
.flip-face::after {
  content: "✦"; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  font-size: 13px; color: var(--gold); background: var(--card); padding: 0 10px;
}

.flip-face .arabic { font-family: var(--arabic-font); direction: rtl; unicode-bidi: isolate; }
.flip-front .word-ar { font-size: clamp(46px, 11vw, 64px); line-height: 1.5; color: var(--text); }
.flip-front .word-translit { font-style: italic; color: var(--text-secondary); font-size: 18px; margin-top: 8px; }

.word-meaning { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.word-freq {
  display: inline-block; margin-top: 14px; padding: 4px 13px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 600;
}
.flip-back .verse { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); width: 100%; }
.flip-back .verse .arabic { font-size: 23px; line-height: 1.95; }
.flip-back .verse .hl { color: var(--gold); font-weight: 600; }
.flip-back .verse .verse-de { font-size: 13.5px; color: var(--text-secondary); margin-top: 10px; line-height: 1.6; }

/* Hinweis-Pille „zum Umdrehen tippen“ mit tippender Hand */
.flip-hint {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; white-space: nowrap;
  background: var(--accent-soft); color: var(--accent);
  font-size: 12.5px; font-weight: 600;
}
.flip-hint .ic { width: 16px; height: 16px; flex: none; animation: hint-tap 1.9s ease-in-out infinite; }
.flip-hint-back { background: transparent; color: var(--text-secondary); }

@keyframes hint-tap {
  0%, 55%, 100% { transform: translateY(0); }
  28% { transform: translateY(3px) scale(0.94); }
}

@media (prefers-reduced-motion: reduce) {
  .flip-card-inner { transition: transform 0.2s ease; }
  .flip-hint .ic { animation: none; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .flip-card { max-width: 340px; }
}

/* ---------- Statistik-Band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 20px; box-shadow: var(--shadow);
}
.stat .num {
  font-family: var(--font-display); font-size: clamp(28px, 4vw, 38px); font-weight: 600;
  color: var(--accent); font-variant-numeric: oldstyle-nums; line-height: 1;
}
.stat .lbl { color: var(--text-secondary); font-size: 13.5px; margin-top: 8px; }
@media (max-width: 720px) { .stat-band { grid-template-columns: 1fr 1fr; } }

/* ---------- Modul-Karten ---------- */
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.module-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.module-card.available:hover { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: var(--shadow-lg); }
.module-card.soon { opacity: 0.96; }
.module-card.placeholder { border-style: dashed; background: transparent; box-shadow: none; }
.module-top { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 16px; }
.module-icon {
  width: 60px; height: 60px; border-radius: 15px; flex: none;
  background: var(--accent-soft); display: flex; align-items: center; justify-content: center;
}
.module-icon img { width: 60px; height: 60px; border-radius: 15px; }
.module-icon .ic { width: 30px; height: 30px; color: var(--accent); }
.module-head { flex: 1; min-width: 0; }
.module-card h3 { margin: 2px 0 4px; font-size: 19px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 650; letter-spacing: 0.04em;
  padding: 4px 11px; border-radius: 999px;
}
.badge.on { background: var(--accent-soft); color: var(--accent); }
.badge.soon { background: var(--orange-soft); color: var(--orange); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.module-card p { color: var(--text-secondary); font-size: 14.5px; margin: 0 0 18px; flex: 1; }
.module-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 18px; }
.module-tags .tag {
  font-size: 12px; color: var(--text-secondary); background: var(--bg);
  border: 1px solid var(--border); padding: 3px 10px; border-radius: 999px;
}
.module-card .btn { margin-top: auto; }

/* ---------- Feature-Raster („Warum“) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.feature .f-icon {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 16px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.feature .f-icon .ic { width: 23px; height: 23px; }
.feature h3 { font-size: 18px; }
.feature p { color: var(--text-secondary); font-size: 14.5px; margin: 0; }

/* ---------- Schritte ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-left: 4px; }
.step .n {
  font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--accent);
  width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.step h3 { font-size: 17px; }
.step p { color: var(--text-secondary); font-size: 14.5px; margin: 0; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- CTA-Band ---------- */
.cta-band {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: clamp(32px, 5vw, 52px);
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: "✦"; position: absolute; top: 14px; right: 22px; color: var(--gold); font-size: 15px; opacity: 0.7;
}
.cta-band .cta-copy { max-width: 60ch; }
.cta-band h2 { font-size: clamp(23px, 3.2vw, 32px); margin: 0 0 8px; }
.cta-band p { color: var(--text-secondary); margin: 0; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Inhaltsseiten (Über / Kontakt) ---------- */
.page-hero { padding: clamp(44px, 7vw, 80px) 0 clamp(20px, 3vw, 32px); }
.prose { max-width: 68ch; }
.prose p { color: var(--text); font-size: 16.5px; }
.prose h2 { font-size: 24px; margin: 36px 0 12px; }
.prose ul { padding-left: 22px; margin: 0 0 18px; color: var(--text); }
.prose li { margin-bottom: 8px; }
.info-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); margin-bottom: 18px;
}
.info-card h3 { display: flex; align-items: center; gap: 10px; }
.info-card h3 .ic { width: 20px; height: 20px; color: var(--accent); }

/* Kontaktformular */
.form-grid { display: grid; gap: 16px; max-width: 560px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.field .req { color: var(--gold); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  font-size: 16px; font-family: inherit; transition: border-color 0.15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: 12.5px; color: var(--text-secondary); margin-top: 6px; }
.field .error { font-size: 12.5px; color: #c04a4a; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: #c04a4a; }
.field.invalid .error { display: block; }
.form-status {
  display: none; align-items: center; gap: 10px; margin-top: 4px;
  padding: 13px 16px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 14.5px;
}
.form-status.show { display: flex; }
.form-status .ic { width: 19px; height: 19px; flex: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 4px 20px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 0;
  font-weight: 600; font-size: 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { transition: transform 0.2s ease; color: var(--text-secondary); flex: none; }
.faq details[open] summary .chev { transform: rotate(90deg); color: var(--accent); }
.faq details p { color: var(--text-secondary); font-size: 15px; padding: 0 0 16px; margin: 0; }
@media (prefers-reduced-motion: reduce) { .faq summary .chev { transition: none; } }

/* ---------- Fußzeile ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-elevated); padding: clamp(40px, 6vw, 64px) 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 34px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--text-secondary); font-size: 14.5px; max-width: 40ch; margin: 0; }
.footer-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); margin: 4px 0 14px; font-weight: 650; }
.footer-col a { display: block; color: var(--text); font-size: 14.5px; padding: 5px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding-top: 22px; color: var(--text-secondary); font-size: 13.5px;
}
.footer-bottom .arabic { font-family: var(--arabic-font); direction: rtl; unicode-bidi: isolate; color: var(--gold); font-size: 16px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Auth-Seiten (Anmelden / Registrieren) ---------- */
.auth-wrap {
  min-height: calc(100dvh - var(--nav-h));
  display: grid; place-items: center;
  padding: clamp(32px, 6vw, 64px) 0 80px;
}
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: clamp(28px, 5vw, 44px);
  position: relative; overflow: hidden;
}
.auth-card::after {
  content: "✦"; position: absolute; top: 14px; right: 20px;
  color: var(--gold); font-size: 14px; opacity: 0.7;
}
.auth-card .eyebrow { justify-content: center; width: 100%; }
.welcome-check {
  width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
}
.welcome-check .ic { width: 30px; height: 30px; }
.auth-card .btn.block + .btn.block { margin-top: 10px; }
.auth-card h1 { font-size: clamp(26px, 4vw, 30px); text-align: center; margin: 0 0 8px; }
.auth-sub { text-align: center; color: var(--text-secondary); margin: 0 0 26px; font-size: 15px; }
.auth-card .form-grid { max-width: none; }
.auth-alt { text-align: center; margin-top: 22px; font-size: 14.5px; color: var(--text-secondary); }
.auth-alt a { font-weight: 600; }
.auth-legal { text-align: center; margin-top: 16px; font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; }
.auth-notice[hidden] { display: none; }
.auth-notice {
  display: flex; gap: 11px; align-items: flex-start;
  background: var(--orange-soft); color: var(--orange);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 22px;
  font-size: 13.5px; line-height: 1.5; font-weight: 500;
}
.auth-notice .ic { width: 19px; height: 19px; flex: none; margin-top: 1px; }
.auth-notice code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: rgba(0,0,0,0.06); padding: 1px 5px; border-radius: 5px; font-size: 12.5px;
}
:root[data-theme="dark"] .auth-notice code { background: rgba(255,255,255,0.08); }
.auth-error {
  display: none; align-items: center; gap: 10px; margin: 0 0 6px;
  padding: 12px 15px; border-radius: 12px;
  background: rgba(192, 74, 74, 0.12); color: #c04a4a;
  font-size: 14px; font-weight: 600; line-height: 1.45;
}
.auth-error.show { display: flex; }
.auth-error .ic { width: 18px; height: 18px; flex: none; }
:root[data-theme="dark"] .auth-error { background: rgba(217, 112, 112, 0.15); color: #e28d8d; }

/* ---------- Reveal-Animation ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.ic { width: 20px; height: 20px; flex: none; stroke-width: 1.9; }
