/* ═══════════════════════════════════════════════════════════════════════
   ÖFFENTLICH · 01 — BASIS
   Reset, Grundtypografie, Fokus, Bewegung. Gilt für alles und kennt keine
   einzige Klasse aus dem Baukasten.
   ═════════════════════════════════════════════════════════════════════ */

@layer oe-basis {

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Wer Bewegung abstellt, meint es auch beim Springen zu einem Anker. */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--zeile-weit);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Überschriften ────────────────────────────────────────────────────
   Anton ist eine Anzeigetafel-Schrift: eng, hoch, laut. Sie braucht enge
   Zeilen und etwas Laufweite, sonst klebt sie. `text-wrap: balance` sorgt
   dafür, dass eine zweizeilige Überschrift nicht mit einem Wort endet. */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--zeile-eng);
  letter-spacing: .01em;
  text-transform: uppercase;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
h4 { font-size: var(--t-gross); }

p { margin: 0; }
/* Fliesstext bekommt seine Breite von der Lesebreite, nicht vom Behälter.
   Das ist der grösste Einzelhebel für Lesbarkeit — und der Grund, warum
   Texte auf breiten Schirmen sonst zäh werden. */
p, li { text-wrap: pretty; }

ul, ol { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--marke-text); text-underline-offset: 3px; }
a:hover { color: var(--marke-dunkel); }
hr { border: 0; border-top: 1px solid var(--linie); margin: var(--s-6) 0; }
strong, b { font-weight: 600; }
small { font-size: var(--t-klein); }

/* Zahlen stehen untereinander — überall, ohne dass es jemand anfordert. */
table, time, .zahl, .wert, .score { font-variant-numeric: tabular-nums; }

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

/* ── Fokus ────────────────────────────────────────────────────────────
   Sichtbar, und zwar deutlich. Zwei Ringe: der Marken-Ring aussen und ein
   weisser Spalt innen — damit er auch auf einer dunklen Fläche oder einem
   Foto zu sehen ist. */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-s);
}
:focus:not(:focus-visible) { outline: none; }
.section-dark :focus-visible, .dunkel :focus-visible { outline-color: var(--n-00); }

/* ── Sprungmarke ─────────────────────────────────────────────────────── */
.pn-skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  padding: var(--s-3) var(--s-4);
  background: var(--marke); color: #fff; text-decoration: none;
  font-size: var(--t-klein); font-weight: 600;
}
.pn-skip:focus { left: 0; }

::selection { background: var(--marke); color: #fff; }

/* ── Bewegung ────────────────────────────────────────────────────────
   Wer sie abstellt, meint es. Dann fällt sie vollständig weg, nicht
   „grösstenteils". */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

}
