/**
 * STC Massong – Base Styles
 * CSS-Reset, Grundstyles für body, Typografie und Links.
 * Benötigt: tokens.css
 */

/* ═══════════════════════════
   RESET
═══════════════════════════ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* ═══════════════════════════
   BODY
═══════════════════════════ */
body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════
   TYPOGRAFIE
═══════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-dark);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-snug);
}

p {
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}

p:last-child {
  margin-bottom: 0;
}

/* ═══════════════════════════
   LINKS
═══════════════════════════ */
a {
  color: var(--color-brand);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-brand-dark);
  text-decoration: underline;
}

a:focus-visible {
  outline: 3px solid var(--color-brand);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ═══════════════════════════
   MEDIEN
═══════════════════════════ */
img,
video,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ═══════════════════════════
   FORMULARE (Basis)
═══════════════════════════ */
button,
input,
select,
textarea {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ═══════════════════════════
   LISTEN
═══════════════════════════ */
ul, ol {
  list-style: none;
}

/* ═══════════════════════════
   BARRIEREFREIHEIT
═══════════════════════════ */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

:focus-visible {
  outline: 3px solid var(--color-brand);
  outline-offset: 2px;
}

/* Fokus-Ring für Maus-Nutzer verstecken, für Tastatur-Nutzer sichtbar */
:focus:not(:focus-visible) {
  outline: none;
}
