/* selbst-ableser — Website
   Dieselben Gestaltungsmerkmale wie die Anwendung selbst (Farben, Radien,
   Schrift, Karten): Wer von hier auf die Demo klickt, soll nicht das Gefühl
   haben, die Seite gewechselt zu haben. Keine externen Schriften, keine CDN,
   keine Tracker — eine Datei, die alles mitbringt. */

:root {
  color-scheme: light dark;

  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-alt: #f0f2f5;
  --border: #e3e6eb;

  --fg: #161b22;
  --fg-muted: #5b6672;
  --fg-faint: #8a94a1;

  --accent: #2455c9;
  --accent-hover: #1d47ab;
  --accent-fg: #ffffff;
  --accent-tint: #e8eefc;

  --shadow-sm: 0 1px 2px rgba(20, 25, 35, 0.05);
  --shadow-md: 0 2px 8px rgba(20, 25, 35, 0.07), 0 1px 2px rgba(20, 25, 35, 0.05);

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.875rem;

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

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f16;
    --surface: #121822;
    --surface-alt: #161e2b;
    --border: #232d3d;

    --fg: #e7ebf1;
    --fg-muted: #97a2b3;
    --fg-faint: #6c7789;

    --accent: #5b8cf0;
    --accent-hover: #7ba2f5;
    --accent-fg: #0b0f16;
    --accent-tint: #16233d;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 2px 10px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.75rem; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 0.75rem; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
ul { margin: 0 0 0.75rem; padding-left: 1.25rem; }
li { margin-bottom: 0.25rem; }

/* ---------- Kopfzeile ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.25rem;
  height: 3.5rem;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: var(--fg);
  white-space: nowrap;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  background: var(--accent);
  color: var(--accent-fg);
  flex-shrink: 0;
}

.topbar-nav { display: flex; gap: 0.25rem; margin-left: auto; }
.topbar-nav a {
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--fg-muted);
  text-decoration: none;
  font-weight: 500;
}
.topbar-nav a:hover { background: var(--surface-alt); color: var(--fg); }

@media (max-width: 600px) {
  .topbar-nav a:not(.nav-keep) { display: none; }
  .brand span:last-child { font-size: 0.9375rem; }
}

/* ---------- Aufbau ---------- */

main { max-width: 62rem; margin: 0 auto; padding: 2rem 1.25rem 1rem; }
section { margin-bottom: 3rem; }
.section-head { max-width: 44rem; margin-bottom: 1.25rem; }
.section-head p { color: var(--fg-muted); margin: 0; }

/* ---------- Aufmacher ---------- */

.hero {
  text-align: center;
  padding: 2.5rem 1rem 2rem;
  max-width: 44rem;
  margin: 0 auto 2.5rem;
}
.hero h1 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); margin-bottom: 0.75rem; }
.hero .lead { font-size: 1.0625rem; color: var(--fg-muted); margin-bottom: 1.5rem; }
.hero .lead strong { color: var(--fg); font-weight: 650; }

.pills { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin-bottom: 1.75rem; }
.pill {
  background: var(--accent-tint);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.625rem; justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-fg); }
.btn-secondary { background: var(--surface); color: var(--fg); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-alt); color: var(--fg); }

/* ---------- Karten ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
}
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--fg-muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  background: var(--accent-tint);
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* ---------- Bildstrecke ---------- */

figure {
  margin: 0 0 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
figure img { display: block; width: 100%; height: auto; }
figcaption {
  padding: 0.75rem 1.1rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
}
figcaption strong { color: var(--fg); font-weight: 650; }

/* ---------- Zitat ---------- */

.quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
}
.quote p:last-child { margin-bottom: 0; }
.quote cite { display: block; margin-bottom: 0.5rem; font-style: normal; font-weight: 650; font-size: 0.875rem; }

/* ---------- Rechtstexte ---------- */

.legal { max-width: 46rem; }
.legal h2 { margin-top: 2rem; font-size: 1.125rem; }
.legal h3 { margin-top: 1.5rem; color: var(--fg-muted); font-size: 0.9375rem; }
.legal h2:first-child, .legal .content-card > h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--fg-muted); }
.legal .content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}

/* ---------- Fußzeile ---------- */

footer {
  text-align: center;
  padding: 2rem 1rem 2.5rem;
  font-size: 0.8125rem;
  color: var(--fg-faint);
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}
footer a { color: var(--fg-muted); text-decoration: none; }
footer a:hover { color: var(--accent); }
.footer-slogan { margin: 0 0 0.4rem; color: var(--fg-muted); }
.footer-slogan strong { font-weight: 650; color: var(--fg); }
