/* ==================================================================
   Grundlayout – nutzt ausschließlich Bedeutungs-Tokens aus tokens.css
   ================================================================== */

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

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  /* Hauchfeines Punktraster – im hellen Theme unsichtbar (Token = transparent) */
  background-image: radial-gradient(var(--color-grid-dot) 1px, transparent 1px);
  background-size: 20px 20px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

/* Sichtbarer Fokusrahmen nur bei Tastaturbedienung */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Gleich breite Ziffern – für Uhrzeiten und Zahlen, die sich ändern */
.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Symbole: Größe über --icon-size, Farbe folgt dem Text */
.icon {
  display: inline-flex;
  flex-shrink: 0;
  width: var(--icon-size, 18px);
  height: var(--icon-size, 18px);
}

.icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.75;
}

/* Nur für Screenreader sichtbar */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}