/* ============================================================
   BASE · Reset, Typografie, Container, Web-Fonts
   ============================================================ */

/* --- Fonts are now handled via system stack in tokens.css --- */

/* --- Reset --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scrollbar-gutter: stable; scroll-behavior: smooth; }

html, body {
  background-color: var(--bg);
  background-image: var(--pattern-dot);
  background-size: 24px 24px;
  color: var(--color-text-body);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.25;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* --- Headings --- */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--text);
}
h1 {
  font-size: clamp(32px, 5.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  font-weight: 400;
  text-transform: uppercase;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
h1 .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 {
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 820px;
  font-weight: 400;
  text-transform: uppercase;
}
h3 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* --- Section-Wrapper --- */
section.block { padding: 90px 0; }
section.block.no-pad-top { padding-top: 0; }
.bg-alt {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-text {
  color: var(--muted);
  font-size: 18px;
  max-width: 720px;
}

/* --- Accessibility-Helper --- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* --- Anchor-Link Offset (damit Sektionen nicht hinter der Fixed-Nav verschwinden) --- */
section[id],
header[id],
main[id] { scroll-margin-top: 90px; }

/* --- Skip-Link (Tab-Nutzer + Screenreader) --- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 999;
  background: var(--accent);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 16px;
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* --- Focus-Styles · Tab-Navigation sichtbar machen --- */
:focus { outline: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
input[type=email]:focus-visible {
  outline-offset: 1px;          /* anders, weil das Input schon eine Border hat */
}
/* main mit tabindex="-1" soll nach Skip-Link-Klick KEINEN Outline zeigen */
main:focus,
main:focus-visible { outline: none; }

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Responsive Spacing --- */
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  section.block { padding: 60px 0; }
}
