/* ==========================================================================
   Erzähl Was! / Tale Today — Landingpage
   Gemeinsames Stylesheet für alle 3 Seiten
   ========================================================================== */

/* ===== Lokal eingebettete Schrift (DSGVO-konform, kein Google CDN) ===== */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/Nunito-variable.woff2') format('woff2');
}

:root {
  /* Farbpalette: "Lagerfeuer-Geschichte trifft Nachthimmel" */
  --indigo: #5b4bd6;
  --indigo-dark: #3f33a3;
  --indigo-soft: #ece9ff;
  --coral: #ff7a59;
  --coral-dark: #e85f3d;
  --gold: #ffc23c;
  --mint: #2ec5a8;
  --ink: #211d3b;
  --ink-soft: #5a5575;
  --cream: #fdfbff;
  --surface: #ffffff;
  --border: #e7e3f5;
  --shadow-sm: 0 2px 8px rgba(40, 30, 90, 0.06);
  --shadow-md: 0 12px 30px rgba(40, 30, 90, 0.10);
  --shadow-lg: 0 24px 60px rgba(40, 30, 90, 0.16);
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 34px;
  --maxw: 1140px;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

h1, h2, h3 { line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }

.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo);
  background: var(--indigo-soft);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.02rem;
  padding: 15px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(232, 95, 61, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(232, 95, 61, 0.42); }
.btn-ghost {
  background: var(--surface);
  color: var(--indigo);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 255, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 900;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  display: block;
}
.brand-mark img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  font-weight: 700;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--indigo); }

.nav-right { display: flex; align-items: center; gap: 16px; }

/* ===== Sprachumschalter ===== */
.lang-switch {
  display: inline-flex;
  background: var(--indigo-soft);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.lang-switch button {
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--indigo);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 7px 12px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--indigo);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: 0.2s; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 9vw, 120px);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 12% 8%, rgba(91, 75, 214, 0.14), transparent 60%),
    radial-gradient(50% 50% at 92% 18%, rgba(255, 122, 89, 0.14), transparent 60%),
    radial-gradient(55% 55% at 78% 92%, rgba(46, 197, 168, 0.12), transparent 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  margin-bottom: 20px;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--indigo), var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 30px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 22px;
  margin-top: 30px; color: var(--ink-soft); font-weight: 700; font-size: 0.95rem;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { color: var(--mint); flex-shrink: 0; }

/* ===== Screenshot Gallery ===== */
.screenshots-wrap {
  position: relative;
  display: grid;
  place-items: center;
  padding: 20px 0 10px;
}
.screenshots {
  display: flex;
  align-items: center;
  justify-content: center;
}
.screen-img {
  width: 175px;
  border-radius: 4px;
  display: block;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.screen-left {
  transform: rotate(-7deg) translateY(22px) scale(0.88);
  margin-right: -28px;
  z-index: 1;
  filter: drop-shadow(0 16px 32px rgba(40, 30, 90, 0.18));
}
.screen-center {
  transform: rotate(-2deg) translateY(-8px);
  z-index: 3;
  filter: drop-shadow(0 28px 56px rgba(40, 30, 90, 0.28));
}
.screen-right {
  transform: rotate(5deg) translateY(18px) scale(0.88);
  margin-left: -28px;
  z-index: 1;
  filter: drop-shadow(0 16px 32px rgba(40, 30, 90, 0.18));
}
.screenshots-wrap:hover .screen-left { transform: rotate(-7deg) translateY(14px) scale(0.88) translateX(-6px); }
.screenshots-wrap:hover .screen-right { transform: rotate(5deg) translateY(10px) scale(0.88) translateX(6px); }

.float-badge {
  position: absolute;
  background: var(--surface);
  border-radius: 16px;
  padding: 11px 15px;
  box-shadow: var(--shadow-md);
  font-weight: 800; font-size: 0.9rem;
  display: flex; align-items: center; gap: 9px;
  z-index: 3;
}
.float-badge .dot { font-size: 1.3rem; }
.float-1 { top: 16%; left: -6%; animation: bob 4s ease-in-out infinite; }
.float-2 { bottom: 12%; right: -4%; animation: bob 4s ease-in-out infinite 1.6s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ===== Mission Strip ===== */
.mission-strip {
  background: linear-gradient(135deg, var(--indigo-soft) 0%, #fff2f0 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
}
.mission-text {
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
  font-weight: 700;
  color: var(--ink);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.5;
}
.mission-text::before { content: "✨ "; }

/* ===== Sections ===== */
section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.7rem;
  margin-bottom: 18px;
}
.fi-1 { background: var(--indigo-soft); }
.fi-2 { background: #ffe7df; }
.fi-3 { background: #d8f4e2; }
.fi-4 { background: #d8f7f0; }
.fi-5 { background: #e9e5ff; }
.fi-6 { background: #ffe1ec; }
.fi-7 { background: #dff0ff; }
.fi-8 { background: #fff2cf; }
.fi-9 { background: #fde8ff; }
.feature-card h3 { font-size: 1.22rem; margin-bottom: 9px; }
.feature-card p { color: var(--ink-soft); font-size: 0.98rem; }

/* How it works */
.how { background: linear-gradient(180deg, #fff, var(--indigo-soft) 140%); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  text-align: center;
}
.step-num {
  width: 46px; height: 46px; margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--coral));
  color: #fff; font-weight: 900; font-size: 1.2rem;
  display: grid; place-items: center;
}
.step .emoji { font-size: 2rem; margin-bottom: 10px; display: block; }
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.95rem; }

/* Heroes strip */
.heroes-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px; }
.hero-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; gap: 10px;
}
.hero-chip .emoji { font-size: 1.3rem; }

/* Languages */
.lang-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 820px; margin: 0 auto; }
.lang-card {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 22px;
  box-shadow: var(--shadow-sm);
}
.lang-card .flag { font-size: 2.6rem; margin-bottom: 12px; }
.lang-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.lang-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* Download / CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--indigo), var(--indigo-dark));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 70px);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%;
}
.cta-band::before { width: 280px; height: 280px; background: rgba(255,122,89,0.25); top: -120px; right: -60px; }
.cta-band::after { width: 220px; height: 220px; background: rgba(46,197,168,0.22); bottom: -110px; left: -40px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); margin-bottom: 14px; }
.cta-band p { font-size: 1.1rem; opacity: 0.92; max-width: 560px; margin: 0 auto 30px; }

/* App store badges */
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #111; color: #fff;
  padding: 12px 22px; border-radius: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.22);
}
.store-badge:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0,0,0,0.3); }
.store-badge svg { width: 28px; height: 28px; flex-shrink: 0; }
.store-badge .sb-text { text-align: left; line-height: 1.15; }
.store-badge .sb-text small { display: block; font-size: 0.68rem; font-weight: 600; opacity: 0.85; }
.store-badge .sb-text b { font-size: 1.12rem; font-weight: 800; }
.store-badge[aria-disabled="true"] { opacity: 0.55; cursor: default; pointer-events: none; }
.store-soon {
  display: inline-block; margin-top: 16px;
  font-size: 0.85rem; font-weight: 700; opacity: 0.8;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: #cfc9e8;
  padding: 56px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer p { color: #9d96bf; font-size: 0.95rem; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #cfc9e8; transition: color 0.15s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between; align-items: center;
  font-size: 0.88rem; color: #9d96bf;
}
.footer-bottom a { color: #cfc9e8; }
.footer-bottom a:hover { color: #fff; }

/* ===== Legal pages ===== */
.legal {
  padding: clamp(48px, 7vw, 84px) 0;
}
.legal-wrap { max-width: 820px; margin: 0 auto; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 10px; }
.legal .updated { color: var(--ink-soft); font-weight: 700; margin-bottom: 36px; }
.legal h2 {
  font-size: 1.4rem; margin: 38px 0 12px;
  padding-top: 14px;
}
.legal h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.legal p, .legal li { color: #443f63; font-size: 1.02rem; margin-bottom: 12px; }
.legal p { white-space: pre-line; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal a { color: var(--indigo); font-weight: 700; text-decoration: underline; }
.legal .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}
.legal .note {
  background: #fff7e6;
  border: 1px dashed var(--gold);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 0.95rem;
  color: #7a5d00;
  margin: 18px 0;
}
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; color: var(--indigo); margin-bottom: 26px;
}

/* placeholder highlight for the owner to fill in */
.fill { background: #fff2cf; padding: 1px 6px; border-radius: 6px; font-weight: 700; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-cta { justify-content: flex-start; }
  .screenshots-wrap { order: -1; }
  .screen-img { width: 150px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 74px; left: 0; right: 0;
    background: var(--surface); padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    gap: 16px; box-shadow: var(--shadow-md);
  }
  .screen-left, .screen-right { display: none; }
  .screen-center { transform: rotate(-2deg); margin: 0; }
  .screen-img { width: min(220px, 60vw); }
  .feature-grid, .lang-cards, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .lang-card, .feature-card { text-align: center; }
  .feature-icon { margin-left: auto; margin-right: auto; }
}
