/* Grundstil – gilt für beide Websites */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  scroll-padding-bottom: 4rem;   /* fokussierte Elemente nicht unter „Nach oben“ verstecken (WCAG 2.4.11) */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-body2);
  font-weight: var(--weight-light);
  line-height: var(--leading-body);
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { color: var(--color-accent); }

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

:focus-visible { outline: 2px solid var(--color-accent-2); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -4rem;
  z-index: 100;
  background: var(--color-ink);
  color: var(--color-white);
  padding: var(--space-2) var(--space-3);
}
.skip-link:focus { top: var(--space-3); }
main:focus { outline: none; }   /* Ziel des Sprunglinks, kein sichtbarer Rahmen um die ganze Seite */
