/* ==========================================================================
   E&E Reifenglanz — Design System: Tokens, Reset, Basistypografie
   ========================================================================== */

:root {
  /* Farben */
  --color-ink: #15120f;          /* Anthrazit/Schwarz, Hero & dunkle Sektionen */
  --color-ink-soft: #211c17;     /* leicht helleres Dunkel für Kartenflächen auf Ink */
  --color-ink-line: rgba(245, 240, 232, 0.14);
  --color-paper: #f4f1ea;        /* warmes Off-White, Standard-Hintergrund */
  --color-paper-dim: #e8e2d6;    /* Alt-Sektion auf hell, Karten */
  --color-paper-line: rgba(21, 18, 15, 0.14);
  --color-steel: #55524c;        /* gedämpfter Grauton für Sekundärtext auf hell */
  --color-steel-light: #9b968c;  /* Sekundärtext auf dunkel */
  --color-text: #1b1712;         /* Fließtext auf hell */
  --color-text-invert: #f2ede4;  /* Fließtext auf dunkel */
  --color-accent: #c1560f;       /* Kupfer/Orange, sparsamer Akzent */
  --color-accent-dark: #8f3f09;
  --color-accent-light: #e78341;
  --color-ok: #4b6b3f;

  /* Typografie */
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --step-tiny: clamp(0.76rem, 0.73rem + 0.15vw, 0.84rem);
  --step-small: clamp(0.88rem, 0.84rem + 0.18vw, 0.98rem);
  --step-base: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-md: clamp(1.2rem, 1.1rem + 0.4vw, 1.45rem);
  --step-lg: clamp(1.6rem, 1.4rem + 0.9vw, 2.2rem);
  --step-xl: clamp(2.2rem, 1.8rem + 1.8vw, 3.4rem);
  --step-xxl: clamp(2.8rem, 2.1rem + 3.2vw, 5.2rem);

  /* Abstände */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.25rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.5rem;
  --space-3xl: 8rem;

  --section-pad: clamp(3.5rem, 3rem + 3vw, 7rem);
  --container-w: 78rem;
  --radius-s: 2px;
  --radius-m: 4px;
  --ease: cubic-bezier(0.4, 0.02, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--step-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 var(--space-s);
  font-weight: 600;
}

h1 { font-size: var(--step-xxl); }
h2 { font-size: var(--step-xl); }
h3 { font-size: var(--step-md); }
h4 { font-size: var(--step-base); letter-spacing: 0.04em; }

p {
  margin: 0 0 var(--space-s);
  max-width: 62ch;
}

a {
  color: inherit;
}

ul, ol {
  padding-left: 1.1em;
}

.container {
  width: min(100% - 2.5rem, var(--container-w));
  margin-inline: auto;
}

@media (min-width: 700px) {
  .container { width: min(100% - 4rem, var(--container-w)); }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: var(--space-s);
  background: var(--color-accent);
  color: #fff;
  padding: var(--space-xs) var(--space-s);
  z-index: 200;
  transition: top 0.2s var(--ease);
  text-decoration: none;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skip-link:focus {
  top: var(--space-s);
}

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

::selection {
  background: var(--color-accent);
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: var(--step-tiny);
  color: var(--color-accent);
  margin: 0 0 var(--space-xs);
}

.eyebrow::before {
  content: '';
  width: 1.6em;
  height: 2px;
  background: var(--color-accent);
}

.on-dark { color: var(--color-text-invert); }
.on-dark .eyebrow { color: var(--color-accent-light); }
