/* Reset, Grundtypografie, Fokus, Reduced Motion. */

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

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

body {
  margin: 0;
  background: var(--c-cream);
  color: var(--c-blue);
  font-family: var(--f-text);
  font-size: var(--t-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;           /* fängt Schrägschnitt-Überstände ab */
}

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

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: var(--t-h1);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: var(--t-h2);
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h3 {
  font-family: var(--f-text);
  font-weight: 600;
  font-size: var(--t-h3);
  line-height: 1.25;
}

p { max-width: 68ch; }

a { color: inherit; }

/* Zweifarbiger Fokusring: innen Weiss, aussen Dunkelblau. Auf jedem der neun
   Markenhintergruende traegt mindestens einer der beiden Ringe ueber 3:1 —
   Weiss auf den dunklen Gruenden, Dunkelblau auf den hellen. Die transparente
   outline bleibt stehen, damit der Ring im Forced-Colors-Modus von Windows
   nicht verschwindet, wo box-shadow ignoriert wird. */
:focus-visible {
  outline: var(--focus-ring) solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--c-white), 0 0 0 5px var(--c-blue);
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

/* Skip-Link */
.skip {
  position: absolute;
  left: var(--s-4);
  top: var(--s-4);
  z-index: 100;
  transform: translateY(-200%);
  background: var(--c-white);
  color: var(--c-blue);
  font-weight: 600;
  padding: var(--s-3) var(--s-5);
  text-decoration: none;
}
.skip:focus { transform: translateY(0); }

/* Reduced Motion ist eine gleichwertige Variante, keine Notabschaltung.
   In Stufe 1 gibt es ohnehin keine Animation; die Regel steht hier,
   damit Stufe 2 sie nicht vergisst. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
