/* =========================================================
   BASE — Reset, Grundtypografie, Layout-Primitives, A11y
   marketingwerk Website
   ========================================================= */

*, *::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(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; padding: 0; }

a { color: var(--brand-strong); text-decoration: none; }
a:hover { color: var(--blue-800); }

button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-strong);
  line-height: var(--lh-tight);
  font-weight: var(--fw-extra);
  letter-spacing: -0.025em;
}

h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); line-height: var(--lh-snug); }

p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

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

.container--narrow { max-width: var(--container-narrow); }
.container--mid { max-width: 920px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }

.section--alt {
  background-color: var(--surface-2);
  border-block: 1px solid var(--line-soft);
}

.section--dark {
  background-color: var(--bg-dark);
  color: var(--on-dark);
  background-image: radial-gradient(55% 80% at 16% 0%, rgba(51, 120, 236, 0.18), transparent 62%);
  /* feine Lichtkante oben — definiert Navy-Baender gegen helle Nachbarn */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.section--dark h2,
.section--dark h3 { color: var(--white); }

/* ---------- Section-Head (Eyebrow + Titel + Lead) ---------- */
.section-head {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}
.section-head--start {
  text-align: left;
  margin-inline: 0;
}

/* Eyebrow: editorialer Kicker (Linie + Caps) statt Pill */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-strong);
  margin-bottom: var(--sp-5);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--blue-500);
}
.section-head:not(.section-head--start) .eyebrow::after {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--blue-500);
}
.section--dark .eyebrow { color: var(--blue-200); }
.section--dark .eyebrow::before,
.section--dark .eyebrow::after { background: var(--blue-400); }

.section-title { font-size: var(--fs-3xl); }

.section-lead {
  margin-top: var(--sp-5);
  font-size: var(--fs-lg);
  color: var(--text-muted);
  line-height: var(--lh-normal);
}
.section--dark .section-lead { color: var(--on-dark-muted); }

/* Akzent-System: pro Section-Titel genau EIN farbiges Schluesselwort.
   Hell: Brand-Blau · Dunkel: Gold · Gold-Bühnen (Garantie): gold-text */
.text-accent { color: var(--brand-strong); }
.section--dark .text-accent,
.calc .text-accent,
.cta-strip .text-accent { color: var(--gold-400); }
.text-gold { color: var(--gold-text); }

/* ---------- Scroll-Reveal (respektiert reduced-motion) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  filter: blur(7px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out),
              filter var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; filter: none; }

/* ---------- A11y: Skip-Link + Focus ---------- */
.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -120%;
  z-index: 1000;
  background: var(--navy-900);
  color: var(--white);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-sm);
  font-weight: var(--fw-semibold);
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: var(--sp-4); color: var(--white); }

:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 2px;
  border-radius: 4px;
}

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

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