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

/* Schützt das hidden-Attribut gegen jede Klasse, die display setzt (z.B.
   .btn { display: inline-flex }) — sonst gewinnt die Klasse gegen die sehr
   niedrige Spezifität der UA-Regel [hidden]{display:none} und das Element
   bleibt trotz hidden sichtbar. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font: var(--weight-regular) var(--fs-body) / var(--lh-body) var(--font-core);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  background: var(--surface-sunken);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: var(--weight-medium);
  letter-spacing: -0.03em;
}

p { margin: 0; }

a {
  color: var(--text-link);
  text-decoration: none;
}
a:hover { color: var(--text-link-hover); }

button { font-family: inherit; }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.grow { flex: 1; min-width: 0; }
.center { display: flex; justify-content: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.ts-label {
  display: block;
  font: var(--weight-medium) var(--fs-label) / var(--lh-label) var(--font-core);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: var(--space-8) 0 var(--space-2) var(--space-4);
}
.ts-label:first-child { margin-top: var(--space-2); }
