/* Projektweite Basis: lokale Schrift, Reset und gemeinsame Elementregeln. */

/* Gleichursprüngliche Seitenwechsel können ohne JavaScript weich überblenden. */
@view-transition {
  navigation: auto;
}

/* Roboto wird lokal geladen; swap zeigt bis dahin eine verfügbare Systemschrift. */
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-variable-subset.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* Einheitliches Boxmodell hält Breiten inklusive Innenabständen berechenbar. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* One-Pager-Navigation scrollt weich und rastet nur in Abschnittsnähe ein. */
html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

/* Grunddarstellung des gesamten Dokuments. */
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-family-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Gemeinsame, zurückhaltende Standardregeln für Bilder und Links. */
img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* Deutlicher Tastaturfokus bleibt unabhängig vom jeweiligen Bauteil sichtbar. */
:focus-visible {
  outline: 3px solid var(--color-text);
  outline-offset: 3px;
}

/* Die Systemeinstellung ersetzt weiches Scrollen durch einen direkten Wechsel. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
