/* LEWINA — Reset & Basis-Typografie */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-400);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition-base), color var(--transition-base);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-4);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-800); }
h2 { font-size: var(--fs-700); }
h3 { font-size: var(--fs-600); font-weight: 600; }
h4 { font-size: var(--fs-500); font-weight: 600; }

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

a { color: inherit; text-decoration-color: currentColor; }
a:not([class]) {
  color: var(--brand-accent-tint);
  text-underline-offset: 0.15em;
}

ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25em; }

button { font-family: inherit; }

/* Sichtbarer, konsistenter Fokus-Zustand fuer Tastaturbedienung */
:focus-visible {
  outline: 3px solid var(--brand-accent-tint);
  outline-offset: 2px;
}

/* Skip-Link: "Zum Inhalt springen" — wichtig fuer Tastatur-/Screenreader-Nutzer,
   relevant da Kommunen/oeffentliche Auftraggeber zur Zielgruppe zaehlen.
   Bewusst themen-fest (Graphit/Kalkweiss), unabhaengig vom aktiven Theme. */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  background: var(--color-graphit);
  color: var(--color-kalkweiss);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: var(--space-4);
}

.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;
}
