/* Basis — Reset & Elementstandards */

/* Satoshi (statisch, selbst gehostet, kein CDN) — seit 2026-10-13 (Abend)
   wieder die EINZIGE Schriftart der Seite, löst die nur Stunden zuvor
   eingeführte Lora/Manrope-Zweistimmigkeit wieder ab. Fontshare Free
   License (kostenlos für private/kommerzielle Projekte inkl. Self-Hosting).
   Fünf Schnitte geladen (300/400/500/700/900 — kein 600er/800er-Schnitt
   verfügbar), kein Kursiv-Schnitt, da nirgends auf der Seite tatsächlich
   Italic verwendet wird. Gewichts-Zuordnung der --weight-*-Tokens siehe
   tokens.css und DESIGN.md, Abschnitt "Typography". */
@font-face {
  font-family: "Satoshi";
  src: url("/assets/fonts/Satoshi-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("/assets/fonts/Satoshi-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("/assets/fonts/Satoshi-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("/assets/fonts/Satoshi-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

/* 2026-10-29: Lora Regular = Schrift aus dem Logo ("Anwaltskanzlei").
   Nur als Akzent für Eyebrows und Zitate, siehe --font-accent. */
@font-face {
  font-family: "Lora";
  src: url("/assets/fonts/Lora-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

* { margin: 0; }

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

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-fg);
  background-color: var(--color-surface);
  background-image: linear-gradient(
    to bottom,
    var(--color-ivory) 0%,
    var(--color-surface) 20%
  );
  background-repeat: no-repeat;
  background-size: 100% 100vh;
}

img, picture, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-roman);
  line-height: var(--leading-tight);
  color: var(--color-heading);
  text-wrap: balance;
  /* 2026-10-25: lange deutsche Komposita ("Verkehrsunfallschäden") ragten
     in der größeren H1 auf dem Handy über den Bildschirmrand. */
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

/* 2026-10-25 — "kontrastreich": Hierarchie über Gewicht statt nur Größe.
   H1 Black, H2 Bold, beide mit enger Laufweite (RAdirekt-Wirkung). */
h1 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-black);
  letter-spacing: var(--tracking-display);
  line-height: 1.05;
}
h2 {
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-heading);
  line-height: 1.1;
}
h3 { font-size: var(--text-lg); font-weight: var(--weight-medium); letter-spacing: -0.01em; }
h4 { font-size: var(--text-md); font-weight: var(--weight-medium); }

p { text-wrap: pretty; }

a {
  color: var(--color-accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover { color: var(--color-ink-800); }

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

button { cursor: pointer; }

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

:focus-visible {
  outline: 2px solid var(--color-accent-ink);
  outline-offset: 2px;
}

::selection {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

@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;
  }
}

.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;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: var(--space-4);
  z-index: 100;
  background: var(--color-accent);
  color: var(--color-on-accent);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  transition: top var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
  top: var(--space-4);
}

.skip-link:hover {
  color: var(--color-on-accent);
}
