/* ==========================================================================
   PlanSig – Reset, Typografie, Layout
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 600; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; }
p, li { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--brand); color: var(--white); }

/* ---------- Typografie ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; color: inherit; }
h1, .h1 { font-size: var(--fs-3xl); font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; }
h2, .h2 { font-size: var(--fs-2xl); font-weight: 500; letter-spacing: -0.025em; line-height: 1.08; }
h3, .h3 { font-size: var(--fs-lg); font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
h4, .h4 { font-size: var(--fs-md); font-weight: 500; line-height: 1.3; }
.lead { font-size: var(--fs-md); line-height: 1.65; color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }
.accent { color: var(--brand); }

/* Eyebrow – normale Schrift, ohne Punkt */
.eyebrow {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--brand-strong);
}
.on-dark .eyebrow, .on-image .eyebrow { color: var(--brand-light); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--line { border-top: 1px solid var(--line); }
.on-dark { background: var(--ink); color: var(--white); }
.on-dark .lead, .on-dark .muted { color: var(--muted-on-dark); }
.on-brand { background: var(--brand); color: var(--white); }
.on-brand .lead, .on-brand .muted { color: rgba(255,255,255,0.88); }
.on-brand .eyebrow { color: var(--white); opacity: 0.85; }

.section-head { display: grid; gap: var(--space-4); margin-bottom: var(--space-8); max-width: 720px; }
.section-head h2 { margin-top: 0; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--split { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}

.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;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--ink); color: var(--white); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--space-4); }

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
