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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.63;
  color: var(--neutral-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--neutral-800);
  margin: 0 0 var(--space-4);
  letter-spacing: -0.01em;
}
h1 { font-size: 48px; line-height: 1.17; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 36px; line-height: 1.22; font-weight: 600; }
h3 { font-size: 28px; line-height: 1.29; font-weight: 600; }
h4 { font-size: 22px; line-height: 1.36; font-weight: 600; }

p { margin: 0 0 var(--space-4); }

a { color: var(--primary-600); text-decoration: none; }
a:hover { color: var(--primary-700); }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: calc(var(--container-max) + var(--container-pad) * 2);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.5;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary-600); color: var(--white); }
.btn-primary:hover { background: var(--primary-700); color: var(--white); }
.btn-primary:active { background: var(--primary-800); }

.btn-secondary { background: transparent; color: var(--primary-600); border-color: var(--primary-600); }
.btn-secondary:hover { background: var(--primary-50); color: var(--primary-700); border-color: var(--primary-700); }

.btn-ghost { background: transparent; color: var(--primary-600); padding: 12px 8px; }
.btn-ghost:hover { color: var(--primary-700); text-decoration: underline; }

@media (max-width: 900px) {
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  h3 { font-size: 24px; }
  h4 { font-size: 20px; }
}
@media (max-width: 600px) {
  h1 { font-size: 32px; line-height: 1.2; }
  h2 { font-size: 26px; }
  h3 { font-size: 22px; }
  h4 { font-size: 18px; }
}

/* ── Sichtbarer Tastatur-Fokus (WCAG 2.4.7) ─────────── */
:focus-visible {
  outline: 2px solid var(--primary-600);
  outline-offset: 2px;
}
/* Auf dunklem Grund hellerer Ring für ausreichenden Kontrast */
.site-footer a:focus-visible,
.references a:focus-visible,
.career a:focus-visible,
.hero-trust a:focus-visible {
  outline-color: var(--primary-300);
}

/* ── Skip-Link (Tastatur/Screenreader) ──────────────── */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -120px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--primary-600);
  color: var(--white);
  font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus {
  top: var(--space-4);
  color: var(--white);
}

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