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

html { font-size: 14px; }

body {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[hidden] { display: none !important; }

img, svg { max-width: 100%; }
img { height: auto; }

a { color: var(--color-ink); font-weight: 700; text-decoration: none; }
/* :where hält die Spezifität niedrig, damit Komponenten mit eigener Linkfarbe (Navigation, Footer, Buttons) unberührt bleiben */
:where(a):hover { color: var(--color-link-hover); }
a:focus, button:focus, input:focus, select:focus, textarea:focus { outline: 0; }
:focus-visible { outline: 1.5px dotted var(--color-text); outline-offset: 3px; }

button { font: inherit; color: inherit; cursor: pointer; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.5; }
h2 { font-size: 18px; margin: 2.4rem 0 1.2rem; }
h3 { font-size: 16px; margin: 1.5rem 0 var(--space-2); }
h4 { font-size: 1rem; margin: var(--space-1) 0; }
p { margin: var(--space-1) 0; line-height: 1.68; }

.screen-reader-text, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 6px;
  left: 6px;
  z-index: 100000;
  padding: 1em 1.5em;
  background: var(--color-paper);
  box-shadow: var(--shadow-raised);
}
