/*
  Basis, Rescue Trade™ Website
  Reset, Schriftbindung (@font-face, selbst gehostet) und Grundtypografie.
  Werte ausschließlich aus tokens.css, siehe dort.
*/

/* -----------------------------------------------------------------
   @font-face – Roboto (Marken- und Fließtextschrift, selbst gehostet)
----------------------------------------------------------------- */
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* @font-face – IBM Plex Mono (technische Angaben/Labels, SIL OFL,
   siehe fonts/IBMPlexMono-LICENSE.txt) */
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Sprungmarken-Ziele landen sonst unter dem fixierten Header
     (--size-header-height) – projektweit, eine Regel statt scroll-margin-top an jeder Sektion. */
  scroll-padding-top: var(--size-header-height);
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, dl, dd, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

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

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

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

a {
  color: var(--color-gray);
}
a:hover {
  color: var(--color-red);
}

/* -----------------------------------------------------------------
   Grundtypografie
----------------------------------------------------------------- */
body {
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-17);
  line-height: var(--lh-165);
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection {
  background: var(--color-gray);
  color: var(--color-white);
}

/* Sichtbarer Fokusrahmen für Tastaturbedienung. Grau in Ruhe, siehe
   .btn:focus-visible in components.css für die rote Ausnahme bei
   Aktionen (Buttons, künftige Formularfelder) und die Abschnitte mit
   dunklem Grund für die dortige --focus-ring-color-Überschreibung. */
:focus-visible {
  outline: 2px solid var(--focus-ring-color);
  outline-offset: 2px;
}

/* -----------------------------------------------------------------
   Bewegungsreduzierung – globale Absicherung.
   Einzelne Animationsblöcke (ab Schritt Interaktion) respektieren
   dies zusätzlich gezielt.
----------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
