/* Gemeinsame Grundlage aller Seiten von funkiapp.de (SC-000718, docs/designsystem.md):
   Farben, Schrift, Kopf- und Fußzeile, Textseiten (Hilfe, Datenschutz, Impressum, Sicherheit).
   Gerade Kanten und Linien statt Karten. */

/* Nunito (SIL Open Font License, schrift/OFL.txt), selbst ausgeliefert: Safari kennt ui-rounded, Chrome und Firefox nicht. */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("/schrift/nunito-latin.woff2") format("woff2"); }

:root {
  --navy: #0f2042;
  --navy-2: #1d3a6b;
  --accent: #ffcc00;
  --tx: #ff453a;
  --rx: #30d158;
  --on-navy: #c9d3e6;
  --rule-navy: rgba(255, 255, 255, 0.16);
  --bg: #ffffff;
  --surface: #f3f5f9;
  --text: #0f2042;
  --muted: #4a5770;
  --rule: rgba(15, 32, 66, 0.14);
  --accent-text: #1d3a6b;
  --link: #1d3a6b;
  --display: "Nunito", ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d12;
    --surface: #141822;
    --text: #f2f4f8;
    --muted: #a9b3c6;
    --rule: rgba(255, 255, 255, 0.12);
    --accent-text: #ffcc00;
    --link: #ffd633;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Sprungziele nicht unter der festen Kopfzeile verstecken */
[id] { scroll-margin-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.label { font-family: var(--mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.mono { font-family: var(--mono); font-size: 0.95em; }

/* ---------- Kopfzeile ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top nav { display: flex; align-items: center; gap: 24px; font-size: 0.95rem; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); }
.top nav a.go { background: var(--accent); color: var(--navy); padding: 8px 16px; font-weight: 700; }
@media (max-width: 720px) { .top nav a.opt { display: none; } .top nav { gap: 16px; } }

/* ---------- Textseiten ---------- */
.legal { padding: 56px 0 24px; }
.legal .narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.legal .crumb { color: var(--muted); margin-bottom: 18px; }
.legal .crumb a { color: var(--muted); text-decoration: none; }
.legal h1 { font-size: clamp(2.1rem, 4.4vw, 3rem); padding-bottom: 20px; margin-bottom: 28px; border-bottom: 2px solid var(--text); }
.legal h2 { font-size: 1.5rem; margin: 44px 0 12px; }
.legal h3 { font-size: 1.1rem; letter-spacing: 0; margin: 28px 0 6px; }
.legal p, .legal address { margin: 0 0 12px; font-style: normal; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal li { margin-bottom: 4px; }
.legal .note { color: var(--muted); font-size: 0.95rem; }
.legal .advisory { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 14px 0; margin-bottom: 12px; }
/* Angaben als Liste mit Haarlinien (Impressum) */
.facts { border-top: 2px solid var(--text); margin: 0 0 12px; }
.facts div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--rule); }
.facts dt { font-family: var(--mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.facts dd { margin: 0; }
@media (max-width: 640px) { .facts div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Fußzeile ---------- */
footer { border-top: 1px solid var(--rule); margin-top: 48px; padding: 28px 0 48px; color: var(--muted); font-size: 0.875rem; }
footer .wrap { display: flex; gap: 12px 24px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
footer .brand { font-size: 1rem; }
footer .brand img { width: 24px; height: 24px; border-radius: 6px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer nav a { color: var(--muted); }
