/**
 * Bobteam Illmann – Base CSS
 * @font-face, Reset, Grundtypografie, Barrierefreiheit
 */

/* ==========================================================================
   @FONT-FACE: Saira (Display, Variable) & Source Sans 3 (Text, Variable)
   ========================================================================== */

@font-face {
  font-family: 'Saira';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/saira-variable.woff2') format('woff2-variations'),
       url('../fonts/saira-variable.woff2') format('woff2'),
       url('../fonts/Saira-VariableFont_wdth,wght.woff2') format('woff2'),
       url('../fonts/Saira-VariableFont_wdth,wght.ttf') format('truetype'),
       url('../fonts/Saira-VariableFont_wght.ttf') format('truetype'),
       url('../fonts/Saira.woff2') format('woff2'),
       url('../fonts/saira.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD,
                 U+0100-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB-02DD, U+2011, U+20A0-20CF,
                 U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/source-sans-3-variable.woff2') format('woff2-variations'),
       url('../fonts/source-sans-3-variable.woff2') format('woff2'),
       url('../fonts/SourceSans3-VariableFont_wght.woff2') format('woff2'),
       url('../fonts/SourceSans3-VariableFont_wght.ttf') format('truetype'),
       url('../fonts/SourceSans3.woff2') format('woff2'),
       url('../fonts/sourcesans3.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD,
                 U+0100-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB-02DD, U+2011, U+20A0-20CF,
                 U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   RESET & BOX MODEL
   ========================================================================== */

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

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  min-height: 100vh;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ==========================================================================
   BARRIEREFREIHEIT: FOKUSRING & SKIP-LINK
   ========================================================================== */

/* Zweifarbiger Fokusring: weiß innen, livery-rot außen – auf Hell und Dunkel scharf sichtbar */
:focus-visible {
  outline: 2px solid var(--focus-ring-inner) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px var(--focus-ring-outer) !important;
}

/* Skip-Link für Tastaturnutzer */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background-color: var(--color-red);
  color: var(--color-text-on-dark);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  transition: top var(--transition-fast);
  min-height: var(--target-min);
  display: inline-flex;
  align-items: center;
}

.skip-link:focus {
  top: 1rem;
}

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

/* ==========================================================================
   GRUNDTYPOGRAFIE
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

h1 {
  font-size: var(--text-hero);
  font-weight: var(--weight-black);
  letter-spacing: 0.02em;
}

h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

h4 {
  font-size: var(--text-lg);
}

p {
  margin-bottom: var(--space-md);
}

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

a {
  color: var(--color-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-red);
}

ul,
ol {
  list-style: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

/* ==========================================================================
   BEWEGUNGSSPARSAM (prefers-reduced-motion)
   ========================================================================== */

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