/* ============================================================
   BASE RESET + GLOBAL STYLES
   ============================================================ */

/* Modern reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  font: var(--fs-body)/var(--lh-body) var(--font-body);
  color: var(--c-ink);
  background: var(--c-base);
  -webkit-text-size-adjust: 100%;
  hanging-punctuation: first last;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
body { min-height: 100svh; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: var(--lh-tight);
  font-weight: 700;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

/* Display heading utility */
.display { font-size: var(--fs-display); font-family: var(--font-display); line-height: var(--lh-tight); font-weight: 700; }

/* Red accent inside headings — global, so every page can use it */
.accent { color: var(--c-red); }

/* Links */
a { color: inherit; text-underline-offset: .2em; }

/* Layout helpers */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 12-col grid */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--c-red);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background: var(--c-red);
  color: #fff;
}

/* ============================================================
   EYEBROW — Inter micro-label with a soft red dot.
   No mono, no numeric prefix — calm, premium section label.
   .eyebrow--red emphasises the whole label in FMU red.
   ============================================================ */

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-graphite);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--c-red);
  flex-shrink: 0;
  border-radius: var(--radius-pill);
}

.eyebrow--red { color: var(--c-red); }

/* on-dark bands: one shared opacity for all dark sections */
.eyebrow--ondark { color: color-mix(in srgb, var(--c-on-dark) 64%, transparent); }

/* ============================================================
   UTILITY — small text
   ============================================================ */

.small { font-size: var(--fs-small); }

/* Nur für Screenreader: sichtbar entfernt, im Accessibility-Baum
   erhalten (z. B. das Kürzel DE/EN im Sprachumschalter). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.mono  { font-family: var(--font-mono); }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .03em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  will-change: transform;
  transition: background var(--dur-fast) var(--ease-soft),
    color var(--dur-fast) var(--ease-soft),
    border-color var(--dur-fast) var(--ease-soft),
    transform var(--dur-fast) var(--ease-soft),
    box-shadow var(--dur-fast) var(--ease-soft);
}
.btn:active { transform: translateY(0); }

/* Primary */
.btn-primary {
  background: var(--c-red);
  color: #fff;
  border-color: var(--c-red);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--c-red) 30%, transparent);
}
.btn-primary:hover {
  background: var(--c-red-700);
  border-color: var(--c-red-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--c-red) 28%, transparent);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: color-mix(in srgb, var(--c-ink) 22%, transparent);
}
.btn-ghost:hover {
  background: color-mix(in srgb, var(--c-ink) 6%, transparent);
  border-color: color-mix(in srgb, var(--c-ink) 38%, transparent);
  transform: translateY(-2px);
}

/* Ghost on dark bands — light stroke, inverted hover */
.btn-ghost--ondark {
  color: var(--c-on-dark);
  border-color: color-mix(in srgb, var(--c-on-dark) 38%, transparent);
}
.btn-ghost--ondark:hover {
  background: var(--c-on-dark);
  color: var(--c-dark);
  border-color: var(--c-on-dark);
}

/* ============================================================
   HAIRLINE RULE
   ============================================================ */

hr {
  border: none;
  border-top: var(--hair);
}

/* ============================================================
   REDUCED MOTION — disable smooth anchor scrolling
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
