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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(
      ellipse 75% 50% at 50% -5%,
      var(--glow-soft) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 40% 30% at 50% 0%,
      rgba(103, 232, 249, 0.04) 0%,
      transparent 50%
    );
  min-height: 100vh;
  background-attachment: fixed; /* PFLICHT §8: Glow bleibt beim Scrollen stehen */
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Hero Glow Overlay (§8, fixed) */
#hero-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 60% 55% at 50% 40%,
      var(--glow-soft) 0%,
      rgba(34, 197, 94, 0.02) 40%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 40% 40% at 60% 30%,
      rgba(103, 232, 249, 0.05) 0%,
      transparent 60%
    );
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--text);
  overflow-wrap: break-word;
}

/* §4.3: Headlines brechen sauber zwischen Wörtern, nie mit Bindestrich */
h1, h2, h3 { text-wrap: balance; hyphens: none; }
h1, h2 { letter-spacing: -0.02em; }

h1 { font-size: clamp(40px, 5.5vw, 64px); font-weight: 800; }
h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; }
h3 { font-size: clamp(18px, 2vw, 22px); font-weight: 700; }

/* §4: Mobile-Untergrenze (Entscheidung 11.06.2026) */
@media (max-width: 480px) {
  h1 { font-size: clamp(32px, 8.5vw, 40px); }
}

/* §13: Scroll-Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible  { opacity: 1; transform: translateY(0); }
.reveal-delay-1  { transition-delay: 0.10s; }
.reveal-delay-2  { transition-delay: 0.20s; }
.reveal-delay-3  { transition-delay: 0.30s; }
.reveal-delay-4  { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

p { color: var(--text-secondary); }

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

ul { list-style: none; }

img, svg { display: block; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

::selection {
  background: var(--green-dim);
  color: var(--green);
}

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

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: var(--space-sm);
}

.section-title {
  margin-bottom: var(--space-sm);
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
}

.text-center {
  text-align: center;
}

.text-center .section-sub {
  margin: 0 auto;
}
