/* ============================================================
   BASE / RESET
   ============================================================ */

/* Geist Mono — lokal gehostet (variable, latin). Kein Abruf von
   Google-Servern → keine IP-Übertragung an Dritte. */
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/geist-mono-latin-variable.woff2") format("woff2");
}

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

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--fs-200);
  line-height: var(--lh-base);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--lh-tight);
  font-weight: 600;
  text-wrap: balance;
}

/* Homepage & Unterseiten nutzen durchgehend Geist Mono (inkl. Logo/Navigation) */
.page-home,
.page-home h1,
.page-home h2,
.page-home h3,
.page-home h4,
.page-home .site-header__logo,
.page-sub,
.page-sub h1,
.page-sub h2,
.page-sub h3,
.page-sub h4,
.page-sub .site-header__logo {
  font-family: var(--font-mono);
}
.page-home h1,
.page-home h2,
.page-home h3,
.page-sub h1,
.page-sub h2,
.page-sub h3 {
  letter-spacing: -0.03em;
}

h1 { font-size: var(--fs-600); }
h2 { font-size: var(--fs-500); }
h3 { font-size: var(--fs-400); }

p { text-wrap: pretty; }

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

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol { list-style: none; }

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; background: none; border: none; }

/* Sichtbarer Fokus für Tastatur-Navigation */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Nur für Screenreader */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
