/**
 * Base — Reset, Typografie, globale Utilities
 */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--nwa-text-900);
  background-color: var(--nwa-slate-50);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Typografie-Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--nwa-text-900);
}
h1 { font-size: var(--fs-5xl); }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-3xl); }
h4 { font-size: var(--fs-2xl); font-weight: 700; }
h5 { font-size: var(--fs-xl);  font-weight: 700; }
h6 { font-size: var(--fs-lg);  font-weight: 600; }
p  { color: var(--nwa-text-500); line-height: 1.75; }

/* Accessibility: Skip-Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--nwa-blue-900);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-sm);
  border-radius: var(--radius-md);
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* Accessibility: Screen-reader only — Joomla 6 nutzt durchgehend die
   Bootstrap-5-Klasse "visually-hidden" statt des alten "sr-only" */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Sichtbarer Fokus-Ring für alle interaktiven Elemente */
:focus-visible {
  outline: 3px solid var(--nwa-cyan-400);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
