/* GorillaStrong-Website. Farben wie in der App (src/theme.ts): Blau des App-Icons, helle und dunkle Fassung.
   Keine Web-Schriften und nichts von fremden Servern: so braucht die Seite kein Cookie-Banner. */
:root {
  --bg: #f2f2f7;
  --surface: #ffffff;
  --text: #1c1c1e;
  --muted: #5b5b60;
  --line: #d9d9de;
  --accent: #007aff;
  --accent-strong: #0062cc;
  --on-accent: #ffffff;
  --radius: 18px;
  --page: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --text: #f2f2f7;
    --muted: #a5a5ab;
    --line: #38383a;
    --accent: #0a84ff;
    --accent-strong: #409cff;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 20px; }

/* Kopfzeile */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--text); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--text); font-size: 16px; }
.nav a:hover { background: var(--bg); }
.nav a.lang { border: 1px solid var(--line); font-weight: 600; }

/* Startseite */
.hero { background: linear-gradient(160deg, #007aff 0%, #0050c8 100%); color: #ffffff; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.08; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero p { font-size: 20px; margin: 0 0 28px; max-width: 34em; color: rgba(255, 255, 255, 0.92); }
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store { display: inline-block; padding: 13px 22px; border-radius: 14px; font-weight: 600; text-decoration: none; background: #ffffff; color: #0050c8; }
.store:hover { color: #003a94; }
.store.soon { background: rgba(255, 255, 255, 0.16); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.45); }
.hero-art { display: flex; justify-content: center; }
.hero-icon { width: min(260px, 60vw); height: auto; aspect-ratio: 1; border-radius: 22%; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); border: 4px solid rgba(255, 255, 255, 0.9); }
.phone { width: min(290px, 70vw); border-radius: 44px; border: 10px solid #111114; background: #111114; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); overflow: hidden; }
.phone img { width: 100%; height: auto; }

section { padding: 56px 0; }
section h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.15; margin: 0 0 10px; letter-spacing: -0.01em; }
.lead { color: var(--muted); font-size: 19px; margin: 0 0 30px; max-width: 40em; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.card h3 { margin: 0 0 10px; font-size: 20px; color: var(--accent); }
.card ul { margin: 0; padding-left: 20px; }
.card li { margin: 6px 0; }
.card p { margin: 0; }
.card p.source-link { margin-top: 12px; }

.shots { display: flex; gap: 18px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x mandatory; }
/* Schrumpfen bis 200 px, damit auf dem Laptop alle vier Bilder ganz zu sehen sind statt eins angeschnitten. */
.shots figure { margin: 0; flex: 0 1 240px; min-width: 200px; scroll-snap-align: start; }
.shots img { border-radius: 26px; border: 1px solid var(--line); width: 100%; height: auto; }
.shots figcaption { text-align: center; color: var(--muted); font-size: 15px; margin-top: 8px; }

.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-bottom: 22px; }
.facts strong { display: block; font-size: 22px; line-height: 1.2; margin-bottom: 4px; }
.facts span { color: var(--muted); }

/* Textseiten (Datenschutz, Impressum, Support …) */
.doc { max-width: 760px; padding-top: 44px; padding-bottom: 64px; }
.doc h1 { font-size: clamp(30px, 4.4vw, 40px); line-height: 1.15; margin: 0 0 18px; letter-spacing: -0.01em; }
.doc h2 { font-size: 22px; margin: 34px 0 8px; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc p, .doc li { overflow-wrap: anywhere; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc address { font-style: normal; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 14px 0; }
.doc code { font-size: 0.92em; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }
.note { color: var(--muted); font-size: 15px; }
.todo { background: #fff3cd; color: #5c4400; border-radius: 4px; padding: 0 4px; font-weight: 600; }

/* Fußzeile */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 15px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

@media (max-width: 760px) {
  /* Handy: erst Überschrift und Store-Knöpfe, dann das Bild (sonst füllt der Screenshot den ganzen ersten Bildschirm).
     Das App-Icon (ohne Screenshots) bleibt als kleines Logo oben. */
  .hero .wrap { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 48px; gap: 32px; }
  .hero-art:has(.hero-icon) { order: -1; }
  .hero-icon { width: 132px; }
  .phone { width: min(240px, 64vw); border-radius: 38px; border-width: 8px; }
  .shots figure { flex: 0 0 240px; }
  section { padding: 40px 0; }
  /* Kopfzeile in EINER Zeile (Matias 2026-12-02: umgebrochen sah sie am iPhone „scuffed“ aus). „Funktionen“ fällt weg,
     der Abschnitt kommt beim Scrollen ohnehin direkt. */
  .top .wrap { min-height: 56px; flex-wrap: nowrap; }
  .brand { font-size: 17px; gap: 8px; }
  .brand img { width: 30px; height: 30px; border-radius: 8px; }
  .nav { flex-wrap: nowrap; }
  .nav a { padding: 7px 9px; font-size: 15px; white-space: nowrap; }
  .nav a.nav-features { display: none; }
  /* Sehr schmale Geräte (iPhone SE der 1. Generation): Support steht auch in der Fußzeile. */
  @media (max-width: 359px) {
    .nav a.nav-support { display: none; }
    /* „Trainingstagebuch“ ist bei 320 px breiter als der Bildschirm: trennen statt über den Rand ragen. */
    .hero .wrap > div { min-width: 0; }
    .hero h1 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
  }
}
