/* PrintDeal — Grundlagen: Reset, Grundtypografie, Fokus, Screenreader-Helfer
   und globale Bewegungsreduzierung. Seitengerüst (Kopfzeile/Navigation/Layout)
   liegt in layout.css. */

*, *::before, *::after { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--schrift);
  font-size: var(--body-large);
  line-height: 1.5;
  color: var(--on-background);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p { margin: 0; }
button, input { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
a { color: var(--primary); }

/* Fettdruck ist laut Typografie-Regel des Projekts allein dem preisProKg
   vorbehalten — Überschriften nutzen die Standardgewichte der M3-Skala. */
h1 { font-size: var(--headline-medium); font-weight: 400; }
h2 { font-size: var(--title-large); font-weight: 400; }

/* Sichtbarer Tastaturfokus auf allen Bedienelementen. */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-s);
}

/* Nur für Screenreader sichtbar. */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* Bewegungsreduzierung: sämtliche Animationen und Übergänge abschalten
   (gleiche Regel wie in der App: keine Bewegung, Endzustand sofort). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
