/* ==========================================================================
   Luantic — Basis: Reset, Grundelemente, Utility-Klassen, Fokus-Zustand
   ========================================================================== */

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

* {
  margin: 0;
}

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

html:focus-within {
  scroll-behavior: smooth;
}

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

body {
  min-height: 100svh;
  background: var(--surface-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  background: none;
  border: none;
  cursor: pointer;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

/* ---- Fokus-Sichtbarkeit ----
   Gilt für jedes interaktive Element: Links, Buttons, Nav-Einträge,
   Accordion-Trigger, den unsichtbaren Slider-Range-Input. */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---- Utility-Klassen ---- */

/* Voller Breite + proportionalem Versatz statt fixer max-width-Zentrierung
   — --container-inset richtet sich exakt nach der Hero-Textspalte, damit
   der gesamte Seiteninhalt auf derselben Breite wie der Hero-Text sitzt. */
.container {
  width: 100%;
  padding-inline: var(--container-inset);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: var(--tracking-normal);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-eyebrow);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-ink-45);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.section {
  padding-block: var(--space-10);
}

.section--tight {
  padding-block: var(--space-8);
}

.section-head {
  max-width: 680px;
  margin-bottom: var(--space-8);
}

.section-head--center {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
}

/* ---- Scroll-Reveal (progressive enhancement, siehe js/reveal.js) ----
   Startzustand nur, WENN Motion nicht reduziert ist UND JS aktiv sein
   könnte — reveal.js ist verantwortlich, .is-visible zeitnah zu setzen;
   ohne JS bleibt der Inhalt dank dieser Regel trotzdem sichtbar. */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--duration-slow) var(--ease-out),
      transform var(--duration-slow) var(--ease-out);
  }

  [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  html:not(.js) [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
