@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f6f6f6;
  --pill: #dcdcdc;
  --ink: #000000;
  --text: #232323;
  --muted: #595959; /* 5,1:1 auf der Pille, 6,5:1 auf dem Grund */
  --gutter: 36px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
abbr { text-decoration: none; }

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

/* Menü-Pille */
.bar {
  display: flex;
  justify-content: center;
  padding: var(--gutter) 16px 0;
}

.pill {
  display: flex;
  align-items: center;
  gap: 17px;
  height: 41px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--pill);
  font-size: 15px;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.pill a { padding: 12px 0; transition: color 0.15s ease; } /* größere Tippfläche, gleiche Optik */
.pill a:hover { color: var(--ink); }
.pill a[aria-current="page"] { color: var(--muted); }

.clock {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Startseite */
.home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px var(--gutter);
}

.mark {
  flex: 1;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 220px;
  padding-top: 16px;
}

.mark-box {
  position: relative;
  width: min(314px, 51vw);
  width: min(314px, 51vw, 60svh); /* Querformat am Handy */
  aspect-ratio: 1255 / 838;
}

.mark-box img,
.mark-box canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mark-box canvas { opacity: 0; transition: opacity 0.6s ease; }
.mark-box.live canvas { opacity: 1; }
.mark-box.live img { opacity: 0; transition: opacity 0s 0.6s; } /* bleibt für Screenreader mit alt-Text erhalten */

.intro { text-align: center; }

.intro h1 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.intro p {
  margin: 18px auto 0;
  font-size: 13.75px;
  line-height: 21px;
}

/* Rechtliches */
.legal {
  max-width: 640px;
  margin: 0 auto;
  padding: 96px 20px 64px;
}

.legal h1 {
  margin: 0 0 56px;
  color: var(--ink);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.legal h2 {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.legal section + section { margin-top: 80px; }

.legal h3 {
  margin: 36px 0 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.legal h4 {
  margin: 24px 0 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.legal p, .legal ul { margin: 0 0 12px; font-size: 14px; line-height: 1.6; }
.legal ul { padding-left: 18px; }
.legal li + li { margin-top: 6px; }
.legal address { font-style: normal; }
.legal a { text-decoration: underline; text-decoration-color: #a8a8a8; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal a:hover { text-decoration-color: currentColor; }
.legal .caps { font-size: 13px; letter-spacing: 0.01em; }

.legal footer {
  margin-top: 64px;
  color: var(--muted);
}

.legal footer p { font-size: 13px; }

/* 404 */
.missing {
  flex: 1;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 0 16px 20vh;
  text-align: center;
}

.missing h1 { margin: 0; color: var(--ink); font-size: 22px; font-weight: 400; letter-spacing: -0.02em; }
.missing p { margin: 0; }
.missing a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 480px) {
  .intro h1 { font-size: 18.7px; }
  .intro p { font-size: 13.25px; line-height: 21.5px; }
  .legal { padding-top: 72px; }
  .legal h1 { font-size: 28px; margin-bottom: 40px; }
}

@media (max-width: 359px) {
  .intro br { display: none; }
  .intro p { text-wrap: balance; }
}

@media (max-height: 500px) {
  :root { --gutter: 20px; }
  .mark { min-height: 0; padding-top: 12px; }
  .intro p { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
