/* Reset, Schrift, Fokus, Typo */
@font-face {
  font-family: 'Raleway';
  src: local('Raleway'), url('../fonts/raleway-variabel.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-base);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  /* Raleway hat sonst Mediävalziffern (die 0 sieht aus wie ein o) – überall Versalziffern */
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}
/* Formularfelder erben die Schrift-Features nicht von selbst */
input, select, textarea, button { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }

h1, h2, h3, h4 { margin: 0; line-height: var(--lh-tight); text-wrap: balance; color: var(--text); }
h1 { font-size: var(--fs-xl); font-weight: var(--fw-black); letter-spacing: -.01em; }
h2 { font-size: var(--fs-lg); font-weight: var(--fw-bold); }
h3 { font-size: var(--fs-md); font-weight: var(--fw-bold); }
p  { margin: 0; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; }

:focus { outline: none; }
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--r-btn);
}
h1:focus, h1:focus-visible { box-shadow: none; }

.num { font-family: var(--font-num); font-feature-settings: var(--num-features); font-variant-numeric: lining-nums tabular-nums; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; max-width: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
table.sr-only { display: block; }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: calc(var(--z-toast) + 1);
  background: var(--blue); color: #fff; font-weight: var(--fw-bold);
  padding: 12px 20px; border-radius: var(--r-btn); text-decoration: none;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus, .skip-link:focus-visible { top: 12px; color: #fff; }

.mini-label {
  font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2);
}
.text-2 { color: var(--text-2); }
.klein { font-size: var(--fs-sm); }
.mini  { font-size: var(--fs-xs); }
.fett  { font-weight: var(--fw-bold); }
[hidden] { display: none !important; }
