/* Grundstil – übernommen aus der Next.js-Version (globals.css) */
::-webkit-scrollbar {
  display: none;
}

html, body {
  width: 100vw!important;
  overflow-x: hidden!important;
  font-family: helvetica;
  font-weight: 900;
  font-size: var(--font-size-2);
  background: var(--color-4);
  line-height: var(--line-height-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-touch-callout: none;
}
/* Firefox: Ist body durch overflow-x: hidden ein eigener Scroll-Container und hat
   overscroll-behavior: none, lässt sich die Seite nicht scrollen. Deshalb an body „clip“
   (schneidet genauso ab, ist aber kein Scroll-Container) und overscroll-behavior nur am html. */
html {
  overscroll-behavior: none;
}
body {
  overflow-x: clip!important;
}
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  color: black;
  font-size: var(--font-size-2);
}
img {
  width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
h1, h2, h3, h4 {
  font-weight: 900;
  font-size: var(--font-size-2);
}

/* Semantische Listen und Buttons sehen aus wie die bisherigen divs/spans */
ul, li {
  list-style: none;
}
.button-reset {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  text-align: inherit;
  cursor: inherit;
}

/* hidden-Attribut gewinnt immer, auch gegen .inline, .bl usw. */
[hidden] {
  display: none !important;
}

/* Barrierefreiheit */
:focus-visible {
  /* Doppelter Ring: schwarz außen, hell innen – sichtbar auf hellen und dunklen Flächen */
  outline: var(--focus-width) solid var(--color-2);
  outline-offset: var(--focus-width);
  box-shadow: 0 0 0 var(--focus-width) var(--color-1);
}
main:focus {
  outline: none;
}
.visually-hidden,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  z-index: 9999;
  top: var(--vertical-space-1);
  left: var(--horizontal-space-1);
  padding: var(--vertical-space-2) var(--horizontal-space-2);
  background: var(--color-1);
}
/* Fokus nicht unter dem fixierten Header verstecken (2.4.11) */
html {
  scroll-padding-top: var(--vertical-space-4);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
