/* Basis: Reset, Grundschrift, Typo-Klassen, Browser-Flächen. Nur Tokens, keine festen Farben. */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--border-strong) var(--surface);
  accent-color: var(--brand);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--body-size);
  line-height: var(--body-line);
  font-weight: var(--body-weight);
  caret-color: var(--brand-ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; border-spacing: 0; }
[hidden] { display: none !important; }

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

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

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Typo-Klassen */
.display-lg {
  font-family: var(--font-display);
  font-size: var(--display-lg-size);
  line-height: var(--display-lg-line);
  font-weight: 600;
  letter-spacing: var(--display-lg-spacing);
}
.display-md {
  font-family: var(--font-display);
  font-size: var(--display-md-size);
  line-height: var(--display-md-line);
  font-weight: 600;
  letter-spacing: var(--display-md-spacing);
}
.title-md {
  font-size: var(--title-md-size);
  line-height: var(--title-md-line);
  font-weight: 600;
}
.body-strong { font-weight: 600; }
.body-sm {
  font-size: var(--body-sm-size);
  line-height: var(--body-sm-line);
}
.label {
  font-size: var(--label-size);
  line-height: var(--label-line);
  font-weight: 600;
  letter-spacing: var(--label-spacing);
}
.mono-sm {
  font-family: var(--font-mono);
  font-size: var(--mono-sm-size);
  line-height: var(--mono-sm-line);
  font-weight: 500;
}
.muted { color: var(--ink-muted); }
.subtle { color: var(--ink-subtle); }
.tabellenzahl { font-variant-numeric: tabular-nums; }
.nur-lesen {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: 20px; height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: var(--stroke-icon);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--16 { width: 16px; height: 16px; }
.icon--24 { width: 24px; height: 24px; }

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