/* ==========================================================================
   eGohm – Promo-Website
   Farben und Typografie folgen dem eGohm-Flex-Theme der App
   (app/lib/core/theme/flutter_flex_theme.dart, Klasse EgohmPalette).
   ========================================================================== */

/* --- Schriften (self-hosted, SIL OFL – siehe assets/fonts/SIL-OFL.txt) --- */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorantgaramond-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo Narrow';
  src: url('../fonts/archivonarrow-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'eGohm Coptic';
  src: url('../fonts/egohm-coptic.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- Palette --- */
:root {
  --brown: #483c30;
  --brown-shade: #3f352a;
  --brown-tint: #5a5045;
  --ink: #29263f;
  --ink-shade: #242137;
  --ink-tint: #3e3c52;
  --gold: #deb98e;
  --gold-shade: #c3a37d;
  --gold-tint: #e1c099;
  --accent: #a0522d;

  --surface: #f7f2f5;
  --surface-2: #f1ebee;
  --surface-3: #ece6e9;
  --bg: #e7e1e4;
  --text: #1b1a18;
  --text-muted: #5c574f;
  --border: rgba(72, 60, 48, 0.16);
  --shadow: 0 18px 48px -24px rgba(41, 38, 63, 0.45);

  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1180px;

  --font-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Archivo Narrow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-coptic: 'eGohm Coptic', serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #1e1e1e;
    --surface-2: #232227;
    --surface-3: #2a2830;
    --bg: #121212;
    --text: #f2efe9;
    --text-muted: #b3aca1;
    --border: rgba(222, 185, 142, 0.18);
    --shadow: 0 18px 48px -24px rgba(0, 0, 0, 0.75);
    --accent: #deb98e;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
}
h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
}
h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1rem;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section--alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.9rem;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 62ch;
}

.section-head {
  max-width: 70ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* --- Wortmarke --- */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15em;
  font-family: var(--font-coptic);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.02em;
  color: inherit;
  text-decoration: none;
}

/* --- Kopfzeile --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: blur(10px);
  color: #fff;
  border-bottom: 1px solid rgba(222, 185, 142, 0.22);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 62px;
}

.site-header a {
  color: #fff;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.6rem);
}

.site-nav a {
  font-size: 0.95rem;
  text-decoration: none;
  opacity: 0.86;
}

.site-nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(222, 185, 142, 0.45);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.lang-switch a {
  padding: 0.2rem 0.62rem;
  text-decoration: none;
  opacity: 0.75;
}

.lang-switch a[aria-current='true'] {
  background: var(--gold);
  color: var(--ink);
  opacity: 1;
}

.nav-toggle {
  display: none;
}

/* Auf schmalen Bildschirmen bleiben nur Sprachwechsel und App-Knopf stehen. */
@media (max-width: 860px) {
  .site-nav > a:not(.btn) {
    display: none;
  }
}

@media (max-width: 480px) {
  .site-header .wrap {
    gap: 0.6rem;
  }
  .wordmark {
    font-size: 1.3rem;
  }
  .site-nav {
    gap: 0.5rem;
  }
  .site-nav .btn--sm {
    padding: 0.38rem 0.7rem;
    font-size: 0.82rem;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--gold);
  color: #2b2418;
  box-shadow: 0 10px 26px -14px rgba(222, 185, 142, 0.9);
}

.btn--primary:hover {
  background: var(--gold-tint);
}

.btn--ghost {
  border-color: rgba(222, 185, 142, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--sm {
  padding: 0.42rem 0.95rem;
  font-size: 0.9rem;
}

.btn svg {
  width: 1.05em;
  height: 1.05em;
  flex: none;
}

/* --- Hero --- */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(120% 90% at 88% 6%, rgba(222, 185, 142, 0.28), transparent 58%),
    linear-gradient(150deg, var(--ink) 0%, var(--ink-shade) 42%, var(--brown) 100%);
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.hero h1 {
  color: #fff;
}

.hero .hero-coptic {
  font-family: var(--font-coptic);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.35em;
  display: block;
}

.hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hero-note {
  margin-top: 1.1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Zierleiste im Stil der Reader-Kopfzeile */
.ornament {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  opacity: 0.8;
  margin-bottom: 1.2rem;
  user-select: none;
}

/* --- Telefon-Rahmen --- */
.phone {
  position: relative;
  width: min(300px, 78vw);
  border-radius: 34px;
  padding: 9px;
  background: linear-gradient(160deg, #4a4438, #211f21 60%);
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(222, 185, 142, 0.25);
  flex: none;
}

.phone img {
  border-radius: 26px;
  width: 100%;
  height: auto;
  background: var(--surface-2);
}

.phone--tall img {
  max-height: 620px;
  object-fit: cover;
  object-position: top;
}

.phone::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 62px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  z-index: 2;
}

/* --- Kennzahlen --- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  background: var(--surface);
  padding: 1.5rem 1.2rem;
  text-align: center;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Feature-Karten --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 0.35rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: linear-gradient(150deg, var(--gold-tint), var(--gold-shade));
  color: #3f352a;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

/* --- Wechselnde Bild/Text-Blöcke --- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

.split + .split {
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

.split--reverse .split-visual {
  order: -1;
}

.split-visual {
  display: flex;
  justify-content: center;
}

.split-text ul {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.split-text li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.55rem;
  color: var(--text-muted);
}

.split-text li::before {
  content: '✧';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold-shade);
}

/* --- Sprachen --- */
.langs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.lang-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  background: var(--surface);
}

.lang-card b {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.lang-card .sample {
  font-size: 1.15rem;
  line-height: 1.5;
}

.sample--cop {
  font-family: var(--font-coptic);
}

.sample--ara {
  font-family: 'Noto Naskh Arabic', 'Geeza Pro', serif;
  direction: rtl;
  text-align: right;
}

/* --- Download --- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.platform {
  border: 1px solid rgba(222, 185, 142, 0.3);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
}

.platform h3 {
  color: #fff;
  margin-bottom: 0.3rem;
}

.platform p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.platform .btn {
  margin-top: 0.6rem;
}

.section--dark {
  background: linear-gradient(150deg, var(--brown) 0%, var(--ink-shade) 100%);
  color: #fff;
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section--dark .lead {
  color: rgba(255, 255, 255, 0.78);
}

.section--dark .eyebrow {
  color: var(--gold);
}

/* --- Unterseiten (Spenden, Danke, Impressum, Datenschutz) --- */
.page-hero {
  background:
    radial-gradient(110% 120% at 88% 0%, rgba(222, 185, 142, 0.22), transparent 60%),
    linear-gradient(150deg, var(--ink) 0%, var(--ink-shade) 55%, var(--brown) 100%);
  color: #fff;
  padding-block: clamp(2.6rem, 6vw, 4.2rem);
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  margin-bottom: 0.4em;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 58ch;
  margin: 0;
}

.page-hero .eyebrow {
  color: var(--gold);
}

/* Lauftext-Spalte für rechtliche Seiten */
.prose {
  max-width: 72ch;
}

.prose h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  margin-top: 2.4rem;
}

.prose h3 {
  margin-top: 1.8rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose > h2:first-child {
  margin-top: 0;
}

/* Noch zu füllende Abschnitte sichtbar markieren */
.placeholder {
  border: 1px dashed var(--gold-shade);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  padding: 1rem 1.2rem;
  margin: 0 0 1.4rem;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.placeholder b {
  color: var(--accent);
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Spendenkarte mit PayPal-Formular */
.donate-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}

.donate-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  text-align: center;
}

.donate-box h2 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.donate-box form {
  margin: 1.4rem 0 0.6rem;
}

.donate-box input[type='image'] {
  cursor: pointer;
  max-width: 100%;
}

.donate-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.8rem 0 0;
}

.usage-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
}

.usage-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.9rem 0;
  border-top: 1px solid var(--border);
}

.usage-list li:last-child {
  border-bottom: 1px solid var(--border);
}

.usage-list .usage-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--gold-tint), var(--gold-shade));
  color: #3f352a;
}

.usage-list svg {
  width: 19px;
  height: 19px;
}

.usage-list b {
  display: block;
}

.usage-list span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .donate-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Bestätigungsseite nach der Spende */
.thanks {
  text-align: center;
  max-width: 60ch;
  margin-inline: auto;
}

.thanks-mark {
  font-family: var(--font-coptic);
  font-size: clamp(3rem, 9vw, 5rem);
  color: var(--gold-shade);
  line-height: 1;
  margin-bottom: 1rem;
}

.thanks .btn {
  margin: 0.4rem 0.3rem 0;
}

/* --- Fußzeile --- */
.site-footer {
  background: var(--ink-shade);
  color: rgba(255, 255, 255, 0.72);
  padding-block: 3rem 2.2rem;
  font-size: 0.94rem;
}

.site-footer a {
  color: var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 2rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 1.05rem;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* --- Einblenden beim Scrollen ---
   Nur wenn JavaScript läuft (`html.js`), sonst bleibt alles sichtbar. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
}

/* --- Schmale Bildschirme --- */
@media (max-width: 900px) {
  .hero .wrap,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual,
  .split-visual {
    order: 2;
  }

  .split--reverse .split-visual {
    order: 2;
  }
}
