/* Reset und Grundsatz der Typografie: Zeitung, nicht Interface */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 2rem;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.58;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

:focus-visible {
  outline: var(--line) solid var(--ink);
  outline-offset: 3px;
  background: var(--cyan);
}

::selection { background: var(--cyan); color: var(--ink); }

/* --- Schlagzeilen: kondensierte Grotesk, gemischt-schriftlich ---------
   Die Breitenachse der Variable macht die Hierarchie: je größer die
   Zeile, desto schmaler läuft sie — wie im Zeitungskopf.            */

.h-xl, .h-lg, .h-md, .h-sm {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.015em;
  text-wrap: balance;
  /* Notbremse: kein Wort darf je aus seiner Spalte laufen. Greift nur, wenn
     es keine andere Umbruchstelle gibt. */
  overflow-wrap: break-word;
}

/* Große Schlagzeilen haben Platz — dort wäre eine Trennung ein Satzfehler
   („Stim-me"). Sie werden von Hand getrennt, wenn nötig (&shy;). */
.h-xl,
.h-lg { hyphens: manual; }

/* Mittlere und kleine Überschriften stehen in Spalten, Kästen und Seitenleisten.
   Dort sind deutsche Komposita länger als die Spalte — „Schülervertretungs-
   arbeit" muss also trennen dürfen. Das ist im deutschen Satz der Normalfall. */
.h-md,
.h-sm {
  hyphens: auto;
  -webkit-hyphens: auto;
}

.h-xl {
  font-size: var(--step-5);
  font-variation-settings: "wdth" 74;
  line-height: 0.88;
  letter-spacing: -0.02em;
}

.h-lg {
  font-size: var(--step-4);
  font-variation-settings: "wdth" 78;
  line-height: 0.92;
}

.h-md {
  font-size: var(--step-3);
  font-variation-settings: "wdth" 84;
}

.h-sm {
  font-size: var(--step-2);
  font-weight: 700;
  font-variation-settings: "wdth" 88;
  line-height: 1.02;
}

/* Auszeichnung im Fließtext: der Textmarker */
.mark {
  background: var(--cyan);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 0.12em;
}

/* Ressortzeile — klein, gesperrt, gedruckt */
.kicker {
  font-family: var(--font-head);
  font-size: var(--step--1);
  font-weight: 700;
  font-variation-settings: "wdth" 92;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.kicker--ink { color: var(--ink); }
.kicker--quiet { color: var(--ink-45); }

.dateline {
  font-family: var(--font-head);
  font-size: var(--step--1);
  font-weight: 600;
  font-variation-settings: "wdth" 88;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--ink-70);
}

/* --- Fließtext ------------------------------------------------------- */

.lead {
  font-size: var(--step-1);
  line-height: 1.44;
  max-width: 42ch;
}

.prose { max-width: 34em; }

.prose > * + * { margin-top: 0.95em; }

.prose p { line-height: 1.62; }

/* Erster Absatz eines Textblocks: Initialzeile, wie im Blattsatz */
.prose--opening > p:first-child {
  font-size: var(--step-1);
  line-height: 1.45;
}

.prose h2 {
  font-family: var(--font-head);
  font-size: var(--step-2);
  font-weight: 700;
  font-variation-settings: "wdth" 88;
  line-height: 1.05;
  margin-top: 1.9em;
}

.prose h3 {
  font-family: var(--font-head);
  font-size: var(--step-1);
  font-weight: 700;
  font-variation-settings: "wdth" 92;
  margin-top: 1.6em;
}

.prose strong { font-weight: 700; }

/* Lange Adressen in Quellenangaben haben keine Umbruchstelle. Ohne diese
   Regel ragen sie aus der Spalte und die Seite scrollt seitlich. */
.prose a { overflow-wrap: anywhere; }

.prose ul,
.prose ol { padding-left: 1.1em; }

.prose li + li { margin-top: 0.35em; }

.prose li::marker { color: var(--cyan-deep); }

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--cyan);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.16em;
}

.prose a:hover { background: var(--cyan); text-decoration: none; }

.prose blockquote {
  border-left: var(--bar) solid var(--cyan);
  padding-left: 1.1rem;
  font-size: var(--step-1);
  font-style: italic;
}

/* --- Hilfsklassen ----------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  border: var(--line) solid var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
