/* ============================================================================
   HUNTER SHOP — Base
   Reset, Typo-Defaults, A11y-Fokus, Layout-Primitives, Motion-Grundlage.
   ========================================================================== */

/* --- Schriften (self-hosted CI) ---------------------------------------------
   Satoshi (Display) + General Sans (Body) — Fontshare/ITF Free Font License,
   kommerziell nutzbar (Beleg: assets/fonts/LICENSE-fontshare-FFL.txt).
   Geladene Gewichte: Satoshi 700/900 · General Sans 400/500/600.
   font-display:swap → Text sofort sichtbar (Fallback), kein FOIT/LCP-Block. */
@font-face {
  font-family: "Satoshi"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/Satoshi-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Satoshi"; font-style: normal; font-weight: 900; font-display: swap;
  src: url("../fonts/Satoshi-Black.woff2") format("woff2");
}
@font-face {
  font-family: "General Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/GeneralSans-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "General Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/GeneralSans-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "General Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/GeneralSans-Semibold.woff2") format("woff2");
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--text);
  background: var(--bg);
  font-weight: var(--fw-regular);
  min-height: 100vh;
  overflow-x: clip;
}

img, picture, svg, video, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}
/* Nur SVGs OHNE explizites fill bekommen currentColor — sonst überschreibt
   diese Regel fälschlich jedes fill="none" und füllt alle Linien-Icons (Blob-Effekt). */
svg:not([fill]) { fill: currentColor; }

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

/* --- Typografie ----------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-head);
  color: var(--text-strong);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: var(--fw-bold); }
h4 { font-size: var(--fs-h4); font-weight: var(--fw-bold); }

/* --- Type-Styles (benannte Stile — siehe brand/CI-GUIDE.md §3) -------------
   Nutzbar als Klasse, wenn ein Nicht-Heading-Element den Stil braucht. */
.t-display { font-family: var(--font-display); font-weight: var(--fw-black); font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: var(--ls-display); color: var(--text-strong); }
.t-h1 { font-family: var(--font-display); font-weight: var(--fw-black); font-size: var(--fs-h1); line-height: var(--lh-tight); color: var(--text-strong); }
.t-h2 { font-family: var(--font-display); font-weight: var(--fw-black); font-size: var(--fs-h2); line-height: var(--lh-snug); color: var(--text-strong); }
.t-h3 { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-h3); line-height: var(--lh-snug); color: var(--text-strong); }
.t-h4 { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-h4); line-height: var(--lh-snug); color: var(--text-strong); }
.t-lead { font-size: var(--fs-lg); line-height: var(--lh-relaxed); color: var(--text-muted); max-width: var(--w-prose); }
.t-body { font-size: var(--fs-base); line-height: var(--lh-relaxed); max-width: var(--w-prose); }
.t-small { font-size: var(--fs-sm); }
.t-caption { font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--text-soft); }
.t-price { font-family: var(--font-display); font-weight: var(--fw-black); font-variant-numeric: tabular-nums; letter-spacing: var(--ls-display); color: var(--text-strong); }
.t-stat { font-family: var(--font-display); font-weight: var(--fw-black); font-variant-numeric: tabular-nums; line-height: var(--lh-tight); color: var(--text-strong); }

p { text-wrap: pretty; }
/* Body-Betonung: --fw-semi (600), da General Sans in 700 nicht geladen ist
   (verhindert verzerrtes faux-bold im Fließtext). */
strong, b { font-weight: var(--fw-semi); color: var(--text-strong); }

a { color: var(--brand); text-decoration: none; transition: color var(--dur-1) var(--ease-out); }
a:hover { color: var(--brand-bright); }

/* Auswahl-Farbe */
::selection { background: var(--signal-tint); color: var(--signal-600); }

/* --- Fokus (BFSG / WCAG 2.2 AA) ------------------------------------------- */
:focus { outline: none; }
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--r-xs);
}
/* auf dunklem Grund heller Fokus */
.on-ground :focus-visible,
.ground :focus-visible {
  box-shadow: 0 0 0 3px var(--ink-800), 0 0 0 5.5px var(--signal-400);
}

/* --- Scrollbar ------------------------------------------------------------ */
@supports (scrollbar-color: auto) {
  * { scrollbar-color: var(--slate) transparent; scrollbar-width: thin; }
}

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

/* Sektions-Typen (Padding via Tokens — responsive über @media in tokens.css).
   Seitliches Padding kommt aus .container/--gutter. */
.section { padding-block: var(--section-pad-block); }        /* große Content-Sektion (5rem / mobil 3rem) */
.section--band { padding-block: var(--band-pad-block); }     /* kleines Band, z.B. Trust (3rem / mobil 1.75rem) */
.section--tight { padding-block: clamp(2.25rem, 1.5rem + 3vw, 4rem); }
.section--ground {
  background: var(--bg);
}
/* Abgesenkte Sektionen mit klaren Hairline-Kanten → deutliche Abgrenzung zu Nachbar-Sektionen */
.section--sunk { background: var(--bg-sunk); border-block: 1px solid var(--line); }

/* Eyebrow — technisches Mono-Label über Headlines */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.eyebrow::before {
  content: "";
  width: 1.5rem; height: 2px;
  background: var(--color-secondary);
  display: inline-block;
}

.lede {
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  color: var(--text-muted);
  max-width: var(--w-prose);
}

/* Gradient-Highlight in Headlines — Marken-Verlauf, sparsam (1 Akzent pro H2).
   padding-bottom verhindert abgeschnittene Unterlängen bei background-clip:text. */
.grad {
  background: linear-gradient(94deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  padding-bottom: 0.08em;
}
.grad--light {
  background: linear-gradient(94deg, #fff 10%, var(--sec-300) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  padding-bottom: 0.08em;
}

/* Sektions-Kopf */
.section-head { max-width: 54rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }
/* Editorial-Split: Eyebrow + H2 links, Lede rechts unten-bündig (Agentur-Header) */
.section-head--split {
  max-width: none;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--sp-4) clamp(2.5rem, 6vw, 6rem);
  align-items: end;
}
.section-head--split h2 { font-size: clamp(1.9rem, 1.25rem + 2.3vw, 3.1rem); letter-spacing: -0.022em; line-height: 1.08; }
.section-head--split .lede { margin: 0; padding-bottom: 0.3em; }
@media (max-width: 860px) {
  .section-head--split { grid-template-columns: 1fr; align-items: start; }
  .section-head--split .lede { padding-bottom: 0; }
}

/* --- Utility -------------------------------------------------------------- */
/* „Mono" ist in der CI General Sans — technische Zahlen tabellarisch ausrichten. */
.u-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.u-nowrap { white-space: nowrap; }
.u-center { text-align: center; }
.u-hidden { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--sp-4); top: -3rem;
  background: var(--brand); color: #fff; padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-sm); z-index: var(--z-toast);
  transition: top var(--dur-2) var(--ease-out);
}
.skip-link:focus { top: var(--sp-4); color: #fff; }

/* --- Scroll-Reveal (progressive enhancement) ------------------------------ */
[data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
  will-change: auto;
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* Wenn JS aus ist: Inhalte trotzdem sichtbar */
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
