/* ============================================================
   Gute Nacht – Landingpage
   Design: moderner Apple-Look (Referenz: taschengeld/web/styles.css).
   Viel Weissraum, grosse Headlines mit engem Letter-Spacing, ruhige
   Graustufen, Haarlinien statt Schatten, durchscheinende Nav.

   Besonderheit dieser App: das Thema ist die Nacht. Der Dunkelmodus
   fuehrt deshalb gestalterisch (tiefes Nachtblau statt reinem Schwarz,
   der Mond-Akzent traegt), der helle Modus bleibt aber vollstaendig
   und ruhig - beide muessen sauber sein.

   Hausregeln bleiben: keine externen Fonts, keine CDNs, keine Emoji.
   ============================================================ */

:root {
  --ink:        #1d1d1f;   /* Ueberschriften, fast schwarz */
  --body:       #494950;   /* Fliesstext */
  --muted:      #86868b;   /* Sekundaertext */
  --bg:         #ffffff;
  --bg-alt:     #f5f5f7;   /* die ruhige Sektionsflaeche */
  --card:       #ffffff;
  --hairline:   rgba(0,0,0,0.10);
  --hairline-2: rgba(0,0,0,0.16);
  --accent:     #5b4bc4;   /* Mond-Violett, sparsam eingesetzt */
  --accent-ink: #443398;
  --night:      #0d0f1e;   /* die Farbe der App selbst */

  --radius:     18px;
  --radius-lg:  28px;
  --container:  1024px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f0fa;
    --body: #c4c1d6;
    --muted: #8b87a3;
    --bg: #0d0f1e;          /* Nachtblau statt Schwarz - das ist die App */
    --bg-alt: #14162a;
    --card: #191c31;
    --hairline: rgba(255,255,255,0.10);
    --hairline-2: rgba(255,255,255,0.18);
    --accent: #a394f5;
    --accent-ink: #c3b8ff;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--body);
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.accent, .brand__accent { color: var(--accent); }

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

/* ---------- Navigation: durchscheinend wie Apples Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
@media (prefers-color-scheme: dark) {
  .nav { background: rgba(13,15,30,0.72); }
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 48px; gap: 18px;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em;
}
.brand__icon { width: 22px; height: auto; border-radius: 6px; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a { font-size: 12px; color: var(--body); transition: color .2s ease; }
.nav__links a:hover { color: var(--ink); }

.lang { display: inline-flex; gap: 4px; margin-left: 6px; }
.lang__btn {
  border: 0; background: transparent; padding: 3px; cursor: pointer;
  border-radius: 5px; line-height: 0; opacity: .45; transition: opacity .2s ease;
}
.lang__btn:hover { opacity: .8; }
.lang__btn--active { opacity: 1; }
.lang__btn svg { display: block; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 0; background: var(--bg); }
.hero__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.lead {
  margin-top: 20px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--body);
  max-width: 34em;
}
.hero__note { margin-top: 18px; font-size: 13px; color: var(--muted); }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 500; letter-spacing: 0;
  color: var(--accent);
  margin-bottom: 20px;
}
.pill svg { width: 15px; height: 15px; flex: none; }

.hero__visual { display: flex; justify-content: center; }

/* ---------- Geraet ---------- */
.phone {
  position: relative;
  width: 268px;
  padding: 9px;
  background: linear-gradient(160deg, #d8d8dc, #9a9aa0);
  border-radius: 44px;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.45);
}
@media (prefers-color-scheme: dark) {
  .phone { background: linear-gradient(160deg, #3a3a48, #1a1a24); }
}
.phone--hero { width: 292px; }
/* height:auto ist Pflicht: die <img> tragen width/height-Attribute (gut gegen
   Layout-Spruenge). Ohne height:auto bliebe das Hoehen-Attribut wirksam und
   wuerde den Screenshot in die Laenge ziehen. */
.phone__shot { width: 100%; height: auto; border-radius: 36px; display: block; background: var(--night); }

/* ---------- Store-Reihe ---------- */
.store-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 26px; }
.store-row--center { justify-content: center; }
.store-badge { display: inline-block; transition: opacity .2s ease; }
.store-badge:hover { opacity: .75; }
.store-badge[hidden] { display: none !important; }
/* Die Badges tragen jetzt width/height-Attribute (120x40 bzw. 135x40). Beide
   Badges muessen gleich HOCH stehen, ihre Seitenverhaeltnisse sind aber
   verschieden — deshalb hier ausnahmsweise width:auto statt height:auto.
   Verzerrt wird dadurch nichts: genau eine Achse ist gebunden. */
.store-badge img { height: 52px; width: auto; display: block; }
.store-soon { margin-top: 26px; font-size: 15px; font-weight: 500; color: var(--ink); }
.store-soon[hidden] { display: none !important; }

/* ---------- Vertrauensleiste ---------- */
.trust { border-top: 1px solid var(--hairline); margin-top: 84px; }
.trust__inner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px;
  padding: 22px 0;
}
.trust__item {
  font-size: 13px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.trust__item svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* ---------- Sektionen ---------- */
.section { padding: 104px 0; }
.section--alt { background: var(--bg-alt); }
.section__title {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-align: center;
  max-width: 18em; margin: 0 auto;
}
.section__sub {
  margin: 16px auto 0; text-align: center; max-width: 40em;
  font-size: 17px; color: var(--muted);
}

/* ---------- Karten ---------- */
.grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-top: 56px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
}
.section--alt .feature { border-color: transparent; }
.feature__icon { color: var(--accent); margin-bottom: 16px; line-height: 0; }
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 {
  font-size: 19px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.02em; margin-bottom: 8px;
}
.feature p { font-size: 15px; color: var(--muted); }

/* ---------- Schritte ---------- */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 56px;
}
.step {
  padding: 26px 22px; border-radius: var(--radius-lg);
  background: var(--card); border: 1px solid var(--hairline);
}
.section--alt .step { border-color: transparent; }
.step__num {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  background: var(--accent); color: #fff; margin-bottom: 14px;
}
.step h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.015em; }
.step p { font-size: 15px; color: var(--muted); }

/* ---------- Screenshot-Galerie ---------- */
.showcase {
  display: flex; gap: 30px; justify-content: center; flex-wrap: wrap;
  margin-top: 60px;
}
.showcase__item { text-align: center; max-width: 240px; }
.showcase__item figcaption { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* ---------- Pakete ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 44px; }
.chip {
  font-size: 14px; color: var(--body);
  border: 1px solid var(--hairline-2); border-radius: 999px;
  padding: 8px 16px; background: var(--card);
  display: inline-flex; align-items: center; gap: 8px;
}
.chip svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.chip--pack { border-color: var(--accent); color: var(--accent-ink); }
.price-note { margin-top: 26px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; margin: 52px auto 0; }
.faq__item { border-top: 1px solid var(--hairline); padding: 24px 0; }
.faq__item:last-child { border-bottom: 1px solid var(--hairline); }
.faq__item summary {
  font-size: 17px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.015em; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__a { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* ---------- Abschluss-Band ---------- */
.cta-band { padding: 104px 0; text-align: center; background: var(--bg-alt); }
.cta-band h2 {
  font-size: clamp(28px, 3.4vw, 40px); font-weight: 600;
  letter-spacing: -0.03em; color: var(--ink);
}
.cta-band p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.cta-band__icon { margin: 0 auto 22px; width: 64px; height: auto; border-radius: 15px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hairline); padding: 40px 0; background: var(--bg); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.footer__brand { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__links a { font-size: 12px; color: var(--muted); }
.footer__links a:hover { color: var(--ink); }
.footer__legal { font-size: 12px; color: var(--muted); margin-top: 22px; }

/* ---------- Rechtstexte (privacy.html / terms.html) ---------- */
.legal { padding: 64px 0 96px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.legal h2 { font-size: 21px; font-weight: 600; color: var(--ink); margin-top: 36px; margin-bottom: 10px; letter-spacing: -0.02em; }
.legal p, .legal li { font-size: 16px; color: var(--body); margin-bottom: 10px; }
.legal ul { padding-left: 20px; }
.legal__date { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .hero { padding-top: 56px; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero .store-row { justify-content: center; }
  .nav__links a { display: none; }
  .nav__links { gap: 10px; }
  .section { padding: 72px 0; }
  .trust { margin-top: 56px; }
}

@media (max-width: 480px) {
  .grid, .steps { grid-template-columns: 1fr; }
  .phone--hero { width: 258px; }
  .cta-band { padding: 72px 0; }
}

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