/*
 * MigräneKompass – einziges Stylesheet der Website (docs/web/).
 *
 * Regeln (docs/website.md, Abschnitt „Autorenregeln docs/web/“):
 *   - Alle Seiten binden nur diese Datei ein: <link rel="stylesheet" href="/style.css" />.
 *   - Kein Inline-Style, kein <style>-Block: die CSP setzt style-src 'self' ohne 'unsafe-inline'
 *     (docs/deploy/nginx-migraenekompass.conf, Plan 08-03).
 *   - Kein @import, keine Webfonts, keine Adressen fremder Hosts: Systemschrift, damit keine
 *     Besucherin ihre IP-Adresse an einen Dritten schickt (D-02).
 *   - Farbwelt aus dem App-Theme (Plan 08-11, D-25): Seed #6750A4 (flutter_app/lib/core/theme/
 *     app_theme.dart, _primarySeed) und die Material-3-Baseline-Palette dazu (primary #6750A4,
 *     onPrimaryContainer-nah #4F378B, primaryContainer #EADDFF); Fußzeile #1A1A2E wie die dunkle
 *     Startfläche der App. Die Marke oben links ist /brand-mark.svg (App-Icon, same host).
 */

:root {
  --brand: #6750A4;
  --brand-dark: #4F378B;
  --brand-soft: #EADDFF;
  --text: #1f2933;
  --muted: #5b6573;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --border: #dde3ea;
  --card: #ffffff;
  --link: #4F378B;
  --footer-bg: #1A1A2E;
  --footer-text: rgba(255, 255, 255, 0.72);
  --footer-muted: rgba(255, 255, 255, 0.5);
  --radius: 12px;
  --maxw: 960px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--link); }
a:hover, a:focus-visible { color: var(--brand-dark); }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

h1, h2, h3 { line-height: 1.25; color: var(--text); }
h1 { font-size: 1.9rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 0.6rem; }
h3 { font-size: 1.1rem; margin: 1.4rem 0 0.4rem; }
p, li { max-width: 70ch; }
ul { padding-left: 1.3rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 200;
  background: var(--bg);
  padding: 0.4rem 0.8rem;
  border: 2px solid var(--brand);
  border-radius: 6px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.25rem;
}

/* ── Kopf und Navigation ─────────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.site-header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  /* App-Icon als Marke (08-11); das Textkürzel im Markup bleibt aria-hidden und ist nur optisch ersetzt. */
  background: #6750A4 url("/brand-mark.svg") center / contain no-repeat;
  border: 1px solid var(--border);
  color: transparent;
  font-size: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
}

/* ── Inhalt ──────────────────────────────────────────────────────────── */
main { display: block; }

.hero {
  background: var(--brand-soft);
  border-bottom: 1px solid var(--border);
}
.hero .wrap { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.hero h1 { font-size: 2.2rem; }
.lead { font-size: 1.2rem; color: var(--muted); }

.promise {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--brand);
  background: var(--bg);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.promise strong { display: block; font-size: 1.15rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.card h3 { margin-top: 0; }

.store-note {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 0.9rem;
  border: 1px dashed var(--brand);
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--bg);
}

.disclaimer {
  margin: 2rem 0 0;
  padding: 0.9rem 1.1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
}

.legal h2 { border-top: 1px solid var(--border); padding-top: 1.2rem; }
.legal section:first-of-type h2 { border-top: 0; padding-top: 0; }
.muted { color: var(--muted); }
.stand { margin-top: 2rem; color: var(--muted); font-size: 0.95rem; }

.placeholder {
  background: #fff4d6;
  border: 1px solid #e0b84a;
  border-radius: 4px;
  padding: 0 0.25rem;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.9em;
}

.plus-features li { margin: 0.2rem 0; }

address { font-style: normal; }

/* FAQ ohne JavaScript: <details>/<summary> */
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.2rem 1.1rem;
  margin: 0.75rem 0;
  background: var(--card);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.7rem 0;
}
.faq details[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 0.6rem; }

/* ── Fuß ─────────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 3rem;
  background: var(--footer-bg);
  color: var(--footer-text);
  font-size: 0.95rem;
}
.site-footer .wrap { padding-top: 2rem; padding-bottom: 1.5rem; }
.site-footer a { color: var(--footer-text); }
.site-footer a:hover, .site-footer a:focus-visible { color: #ffffff; }
.footer-nav ul {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
}
.footer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.9rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
}
.footer-langs a { color: var(--footer-muted); text-decoration: none; }
.footer-langs a:hover { color: #ffffff; text-decoration: underline; }
.footer-langs a[aria-current="page"] { color: #ffffff; font-weight: 600; }
.footer-meta {
  margin: 1rem 0 0;
  color: var(--footer-muted);
  font-size: 0.85rem;
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  h1, .hero h1 { font-size: 1.6rem; }
  .site-header-inner { flex-direction: column; align-items: flex-start; }
}
