/* Shared by privacy.html / datenschutz.html / impressum.html. Deliberately
   outside the app's Tailwind/token system — these are static files with no
   build step, read by a fraction of visitors, so a small self-contained
   stylesheet beats wiring up the app's CSS pipeline for three pages. Follows
   OS dark/light preference (no toggle, no JS) rather than the app's own
   user-pickable theme. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #1a1d21;
  --text-secondary: #55606b;
  --border: #d8dde2;
  --link: #5b4fb8;
  --card: #f4f5f7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0f12;
    --text: #f3f4f6;
    --text-secondary: #9aa4ae;
    --border: #2a2f35;
    --link: #b3a9f0;
    --card: #15181c;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  hyphens: auto;
}

main {
  max-width: 38rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

a {
  color: var(--link);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 0 0 0.25rem;
  overflow-wrap: break-word;
}

.updated {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0 0 2rem;
}

nav.toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

nav.toc p {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

nav.toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

section {
  margin-bottom: 2.25rem;
  scroll-margin-top: 1.5rem;
}

h2 {
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
  overflow-wrap: break-word;
}

h3 {
  font-size: 1rem;
  margin: 1.25rem 0 0.4rem;
}

p {
  margin: 0 0 0.75rem;
  overflow-wrap: break-word;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.card dt {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.card dd {
  margin: 0 0 0.75rem;
  color: var(--text-secondary);
}

.card dd:last-child {
  margin-bottom: 0;
}

footer {
  color: var(--text-secondary);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 2rem;
}
