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

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(201, 168, 76, 0.06), transparent 65%),
    radial-gradient(900px 500px at -10% 110%, rgba(30, 58, 110, 0.06), transparent 65%);
  background-attachment: fixed;
}

body.is-lenis { height: auto; }

/* Anker-Sprünge: fixe Navbar nicht über die Ziel-Überschrift legen */
:target { scroll-margin-top: calc(var(--nav-h, 72px) + 20px); }

/* Body durchgehend weiss. Der Wechsel kommt von abwechselnden Section-Bändern
   (siehe unten), die sich durch jede Seite ziehen — wie bei suisse-voice. */
body.bg-a, body.bg-b { background-color: #FFFFFF; }

/* Abwechselnde, volle-Breite Hintergrund-Bänder: jede 2. Section bekommt einen
   hellen Sandton. Full-Bleed-Trick (100vw hinter der container-breiten Section). */
main > section.section:nth-of-type(even) { position: relative; }
main > section.section:nth-of-type(even)::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: #F5F1E7;
  z-index: -1;
  pointer-events: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
  color: var(--fg);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.028em; }
h3 { font-size: var(--fs-h3); font-weight: 600; }

p { text-wrap: pretty; }

p { margin: 0 0 var(--space-4); }

a {
  color: var(--fg);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--accent-cyan); }

::selection {
  background: var(--accent-violet-soft);
  color: var(--fg);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: var(--space-3) var(--space-5);
  background: var(--bg-1);
  color: var(--fg);
  z-index: 9999;
  border-radius: var(--radius-md);
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-7));
}
.container-narrow { max-width: var(--container-narrow); }
.container-reader { max-width: var(--container-reader); }

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.text-grad {
  color: var(--accent);
}

.lead {
  font-size: var(--fs-lead);
  color: var(--fg-muted);
  max-width: 60ch;
}

.section {
  padding-block: clamp(var(--space-8), 9vw, var(--space-10));
  position: relative;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.section-head .lead { max-width: 52ch; }
/* Grosse Titel: begrenzte Zeilenlänge wirkt gesetzter */
.section-head h2 { max-width: 20ch; }

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  border: 0;
  margin: 0;
}
