/* Gemeinsame Styles für alle Seiten */

:root {
  --ink: #0f1330;
  --ink-2: #171c47;
  --ink-3: #20265c;
  --text: #f1ece1;
  --dim: #a9abc9;
  --line: rgba(241, 236, 225, 0.16);
  --amber: #ffb23e;
  --amber-glow: rgba(255, 178, 62, 0.45);
  --on-amber: #1b1233;
  --radius: 14px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--text); text-decoration-color: var(--amber); text-underline-offset: 3px; }
a:hover { color: var(--amber); }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1080px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

[hidden] { display: none !important; }

h1, h2, h3 { font-family: 'Syne', 'Figtree', sans-serif; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }

/* Kopfzeile */
.top { padding-block: 18px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.15rem; text-decoration: none; color: var(--text); }
.top nav { display: flex; gap: 22px; }
.top nav a { text-decoration: none; color: var(--dim); font-weight: 600; font-size: 0.98rem; }
.top nav a:hover { color: var(--amber); }

/* Fußzeile */
.foot { border-top: 1px solid var(--line); padding-block: 26px 34px; margin-top: 40px; color: var(--dim); font-size: 0.95rem; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; justify-content: space-between; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { color: var(--dim); }
.foot a:hover { color: var(--amber); }
.visits { font-variant-numeric: tabular-nums; }

/* Rechtstexte */
.legal { width: min(680px, 100% - 2 * var(--gutter)); margin-inline: auto; padding-block: 36px 24px; }
.legal h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 28px; }
.legal h2 { font-size: 1.2rem; margin: 30px 0 8px; }
.legal p { color: var(--dim); margin: 0 0 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
