/* ==========================================================================
   AuPro — base.css
   Reset, selbst gehostete Schriften, Typo-Grundlagen, Layout-Primitives,
   A11y-Basis (Skip-Link, Fokus), Reduced-Motion-Fundament.
   ========================================================================== */

/* ----- Self-hosted Fonts (woff2, font-display:swap) ----- */
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("../fonts/montserrat-600.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 700;
  font-display: swap; src: url("../fonts/montserrat-700.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 900;
  font-display: swap; src: url("../fonts/montserrat-900.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto"; font-style: normal; font-weight: 300;
  font-display: swap; src: url("../fonts/roboto-300.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("../fonts/roboto-400.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("../fonts/roboto-500.woff2") format("woff2");
}
@font-face {
  font-family: "Orbitron"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("../fonts/orbitron-400.woff2") format("woff2");
}
@font-face {
  font-family: "Orbitron"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("../fonts/orbitron-500.woff2") format("woff2");
}
@font-face {
  font-family: "Orbitron"; font-style: normal; font-weight: 700;
  font-display: swap; src: url("../fonts/orbitron-700.woff2") format("woff2");
}
@font-face {
  font-family: "Orbitron"; font-style: normal; font-weight: 900;
  font-display: swap; src: url("../fonts/orbitron-900.woff2") format("woff2");
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--ff-body);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

a { color: var(--color-accent); text-underline-offset: .15em; }

:target { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ----- Typo-Grundlagen ----- */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  color: var(--gray-dark);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { max-width: 68ch; }

/* ----- Layout-Primitives ----- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  position: relative;
  padding-block: var(--section-pad);
  overflow: clip; /* angeschnittene Watermarks beschneiden, kein H-Scroll */
}

/* Sektions-Farbschemata (Rhythmus §5.1) */
.section--light { background: var(--white); color: var(--gray-dark); }
.section--alt   { background: var(--offwhite); color: var(--gray-dark); }
.section--dark  { background: var(--gray-dark); color: var(--offwhite); }
.section--black { background: var(--black); color: var(--offwhite); }

.section--dark h1, .section--dark h2, .section--dark h3,
.section--black h1, .section--black h2, .section--black h3 { color: var(--white); }

/* ----- Wiederkehrende Typo-Bausteine ----- */
/* Eyebrow: grünes Sub-Label, gesperrt, Versalien (MS SemiBold) */
.eyebrow {
  display: inline-block;
  font-family: var(--ff-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--green-dark);
}
.section--dark .eyebrow,
.section--black .eyebrow { color: var(--green-on-dark); }

/* Display-Headline: optisch riesig (semantisch oft H2, §5.2) */
.display {
  font-family: var(--ff-display);
  font-weight: var(--fw-black);
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: -.01em;
  text-transform: uppercase;
}

/* Lead-Absatz */
.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: inherit;
}

.text-muted { color: var(--color-text-muted); }
.text-accent { color: var(--green-dark); }
.text-right { text-align: right; }

/* Claim in Orbitron (Akzentfarbe, gesperrt, Versalien) */
.claim {
  font-family: var(--ff-accent);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-accent);
  text-transform: uppercase;
  color: var(--green-dark);
}
.section--dark .claim,
.section--black .claim { color: var(--green-on-dark); }

/* ----- A11y: Skip-Link ----- */
.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -120px;
  z-index: var(--z-skip);
  padding: var(--sp-3) var(--sp-5);
  background: var(--green-dark);
  color: var(--white);
  border-radius: var(--radius-btn);
  text-decoration: none;
  transition: top var(--dur-fast) var(--ease-soft);
}
.skip-link:focus { top: var(--sp-4); }

/* ----- A11y: sichtbarer Fokus-Ring (§12) ----- */
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

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

/* ----- Reduced Motion: Fundament (§11) ----- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
