/* =============================================================
   base.css — Reset + Grundtypografie
   ============================================================= */

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

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

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
img { border: 0; }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote, dl, dd { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
a:hover { color: var(--c-accent); }

p { margin: 0 0 .9rem; }

hr { border: 0; border-top: 1px solid var(--c-line); margin: var(--space-md) 0; }

/* ---------- Überschriften ----------
   Skala kommt aus tokens.css und kippt dort responsiv. */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--c-text-strong);
  font-family: var(--f-heading);
  font-weight: 600;
  line-height: var(--lh-tight);
}
h1 { font-size: var(--fs-h1); text-transform: capitalize; }
h2 { font-size: var(--fs-h2); text-transform: capitalize; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }
h6 { font-size: var(--fs-h6); }

strong, b { font-weight: 700; }

/* Fokus nur für Tastaturnutzung sichtbar */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Sprunglink für Tastatur- und Screenreader-Nutzung.
   Liegt außerhalb des sichtbaren Bereichs, ohne die Seite zu verbreitern. */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 999;
  padding: 12px 20px;
  background: var(--c-accent);
  color: var(--c-bg);
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform .15s var(--ease);
}
.skip-link:focus { transform: none; color: var(--c-bg); }
