/* ==========================================================================
   SACH & VERSTAND – Base / Reset
   ========================================================================== */

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

/* Defensive: das hidden-Attribut muss IMMER gewinnen, auch gegenüber
   Komponentenklassen wie .btn, die display explizit setzen. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-4);
  color: var(--color-ink);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

/* Kursiv-Akzentuierung für einzelne Wörter/Phrasen innerhalb von Headlines –
   sorgt für Betonung, ohne die (einheitliche) Schriftfamilie zu wechseln. */
.accent {
  font-style: italic;
  color: var(--color-teal-700);
}

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

ul, ol { margin: 0 0 var(--space-4); padding-left: 1.2em; }

.lead {
  font-size: var(--fs-lead);
  color: var(--color-text-muted);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-tiny);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-teal-600);
  margin-bottom: var(--space-3);
}

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

button { cursor: pointer; }

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-ink);
  color: var(--color-white);
  padding: var(--space-3) var(--space-4);
  z-index: var(--z-toast);
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

section { padding-block: var(--space-9); }
section.section--tight { padding-block: var(--space-7); }
section.section--subtle { background: var(--color-bg-subtle); }
section.section--muted { background: var(--color-bg-muted); }
section.section--ink {
  background: var(--color-ink);
  color: var(--color-white);
}
section.section--ink h1, section.section--ink h2, section.section--ink h3 {
  color: var(--color-white);
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-7);
}
.section-head.center { margin-inline: auto; text-align: center; }

@media (max-width: 640px) {
  section { padding-block: var(--space-7); }
  .container { padding-inline: var(--space-4); }
}

/* Sticky mobile CTA (siehe Prompt Abschnitt 44 „Mobile First“) */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-header);
  padding: var(--space-3) var(--space-4);
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 24px rgba(13,13,13,0.08);
  display: none;
}
.sticky-cta .btn { width: 100%; }

@media (max-width: 780px) {
  .sticky-cta.is-active { display: block; }
  body.has-sticky-cta { padding-bottom: 78px; }
}
