:root {
  --primary: #0054A6; --primary-dark: #003D7A; --primary-soft: #E6EEF6; --accent: #FF7A00;
  --bg: #F7F9FB; --surface: #FFFFFF; --text: #1A2230; --muted: #5A6577; --line: #DDE3EA;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #6AA8E8; --primary-dark: #9CC6F2; --primary-soft: #16263A;
    --bg: #0F141B; --surface: #172029; --text: #E8EDF3; --muted: #A2AEBD; --line: #2A3542;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
a { color: var(--primary); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }

header { border-bottom: 1px solid var(--line); background: var(--surface); }
header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.marke { font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; }
.marke span { color: var(--accent); }

.held { padding: 56px 0 32px; }
.held h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.2; margin: 0 0 12px; }
.held p { color: var(--muted); font-size: 19px; margin: 0; max-width: 640px; }

.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 16px 0 48px; }
.app { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.app h2 { font-size: 20px; margin: 0 0 6px; }
.app h2 span { color: var(--primary); }
.app p { margin: 0; color: var(--muted); }

main.text { padding: 40px 0 56px; }
main.text h1 { font-size: 30px; margin: 0 0 24px; }
main.text h2 { font-size: 20px; margin: 28px 0 8px; }
main.text p { margin: 0 0 12px; }

footer { border-top: 1px solid var(--line); padding: 20px 0 32px; color: var(--muted); font-size: 16px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { color: var(--muted); display: inline-block; min-height: 44px; line-height: 44px; }

/* Impressumsangaben als Bild (scripts/impressum_bild.py), im Dunkelmodus hell */
img.angaben { display: block; max-width: 100%; height: auto; user-select: none; -webkit-user-drag: none; pointer-events: none; }
@media (prefers-color-scheme: dark) { img.angaben { filter: invert(1) brightness(0.92); } }
