/* ============================================================================
   layout.css — Raster, schwebender Kopf mit Navigation, Sektionen, Hero, Fuß
   ========================================================================= */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------------- Kopf ----------------
   Eine schwebende Glasleiste: links die Marke, rechts Navigation und die
   Anfrage-Schaltfläche. Die Navigation ist auf allen Seiten dieselbe;
   Unterseiten ersetzen sie nicht durch eine eigene. Unter 80em klappt sie in
   ein Menü (native Popover-API, ohne Skript bedienbar), die Anfrage bleibt
   immer sichtbar. Darunter läuft ein dünner Verlaufsbalken als
   Lesefortschritt, reines CSS über eine Scroll-Zeitleiste. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.65rem var(--gutter) 0;
}

.site-header__inner.wrap {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  max-width: calc(var(--wrap) - 2 * var(--gutter));
  padding: 0.45rem 0.45rem 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(11, 12, 16, 0.94);
  /* Der Name für den Seitenübergang sitzt hier und nicht am Elternelement:
     dort würde er eine Backdrop-Root bilden, und der Weichzeichner sähe
     nichts mehr, das er weichzeichnen könnte. */
  view-transition-name: site-header;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 40px -18px rgba(0, 0, 0, 0.8);
}

/* Lesefortschritt */
@supports (animation-timeline: scroll()) {
  .site-header__inner::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-brand);
    transform-origin: 0 50%;
    transform: scaleX(0);
    animation: read-progress linear both;
    animation-timeline: scroll(root block);
  }
}
@keyframes read-progress { to { transform: scaleX(1); } }

/* Raster statt Flex: Logo links über zwei Zeilen, Name und Rollenzeile
   rechts übereinander. */
.wordmark {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.65rem;
  min-width: 0;
  min-height: 40px;
  margin-right: auto;
  color: var(--text);
  text-decoration: none;
  line-height: 1.2;
}
.wordmark:hover { color: var(--text); }
/* Die Marke: ein Kachel-Logo mit umlaufendem Verlauf und dem
   Paragraphenzeichen aus dem Favicon. */
.wordmark::before {
  content: "§";
  content: "§" / "";
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background:
    linear-gradient(var(--bg-raise), var(--bg-raise)) padding-box,
    conic-gradient(from var(--angle), #c8ff3c, #3de0e8, #9d8fff, #c8ff3c) border-box;
  border: 1.5px solid transparent;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  --angle: 135deg;
}

.wordmark__name {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
/* Unter 360 px passt der Name nicht neben Menü und Anfrage: zweizeilig. */
@media (max-width: 22.5em) {
  .wordmark__name { white-space: normal; font-size: var(--fs-s); line-height: 1.1; }
}
.wordmark__role {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--text-dim);
}
@media (min-width: 40em) {
  .wordmark__role { display: block; }
}

.site-header__cta { flex: none; }

/* Navigation. Grundfassung ohne Popover-Unterstützung: eine umbrechende
   Zeile unter der Marke. Mit Unterstützung wird daraus unter 80em ein Menü. */
.site-nav { order: 3; flex-basis: 100%; }
.site-nav__toggle { display: none; }
.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  margin: 0 0 0 -0.35rem;
  padding: 0;
  list-style: none;
}
.site-nav__list li { margin: 0; }
.site-nav__list a {
  display: block;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: var(--fs-s);
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms var(--ease), background-color 150ms var(--ease);
}
.site-nav__list a:hover,
.site-nav__list a:focus-visible { color: var(--text); background: var(--glass-2); }
/* Aktuelle Seite (aria-current="page", statisch im Markup) und aktueller
   Abschnitt (aria-current="true", von form.js gesetzt) */
.site-nav__list a[aria-current] {
  color: var(--text);
  background: var(--glass-3);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

@supports selector(:popover-open) {
  @media (max-width: 79.999em) {
    .site-header__inner.wrap { flex-wrap: nowrap; border-radius: 999px; }
    .site-nav { order: 0; flex-basis: auto; }
    .site-nav__toggle {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      min-height: 42px;
      padding: 0.5rem 0.9rem;
      border: 1px solid var(--line-2);
      border-radius: 999px;
      background: var(--glass-2);
      color: var(--text);
      font: 600 var(--fs-s) / 1 var(--font-sans);
      cursor: pointer;
    }
    .site-nav__toggle:hover { background: var(--glass-3); border-color: var(--line-3); }
    /* Drei Striche, die beim Öffnen zum Kreuz werden */
    .site-nav__toggle::before {
      content: "";
      width: 16px;
      height: 12px;
      background:
        linear-gradient(currentColor, currentColor) top / 100% 2px no-repeat,
        linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
        linear-gradient(currentColor, currentColor) bottom / 100% 2px no-repeat;
    }
    .site-nav:has(.site-nav__list:popover-open) .site-nav__toggle::before {
      height: 16px;
      background:
        linear-gradient(45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
        linear-gradient(-45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px));
    }

    .site-nav__list[popover] {
      position: fixed;
      inset: 4.9rem var(--gutter) auto;
      width: auto;
      max-width: 26rem;
      height: auto;
      max-height: calc(100dvh - 6rem);
      margin: 0 0 0 auto;
      padding: 0.5rem;
      overflow: auto;
      flex-direction: column;
      flex-wrap: nowrap;
      align-items: stretch;
      gap: 0.15rem;
      border: 1px solid var(--line-2);
      border-radius: 20px;
      background: rgba(14, 15, 20, 0.97);
      color: var(--text);
      box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.95);
      opacity: 0;
      translate: 0 -8px;
      transition: opacity 180ms var(--ease), translate 180ms var(--ease), display 180ms allow-discrete, overlay 180ms allow-discrete;
    }
    /* Geschlossen wirklich weg: die Grundregel display: flex oben würde sonst
       die Vorgabe des Browsers überstimmen, und die Liste läge unsichtbar,
       aber klickbar über der Seite. */
    .site-nav__list[popover]:not(:popover-open) { display: none; }
    .site-nav__list:popover-open {
      display: flex;
      opacity: 1;
      translate: 0 0;
    }
    @starting-style {
      .site-nav__list:popover-open { opacity: 0; translate: 0 -8px; }
    }
    .site-nav__list::backdrop {
      background: rgba(4, 5, 7, 0.55);
      -webkit-backdrop-filter: blur(3px);
              backdrop-filter: blur(3px);
    }
    .site-nav__list[popover] a {
      padding: 0.8rem 1rem;
      border-radius: 12px;
      font-size: var(--fs-base);
      color: var(--text);
    }
  }
  /* Schmale Telefone: Menü nur als Symbol, die Beschriftung bleibt für
     Vorlesewerkzeuge erhalten. */
  @media (max-width: 30em) {
    .site-nav__toggle { padding-inline: 0.7rem; }
    .site-nav__toggle-text {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip-path: inset(50%);
      white-space: nowrap;
    }
    .site-header__cta.btn { padding-inline: 0.9rem; }
    .site-header__cta.btn::after { content: none; }
  }
}

@media (min-width: 80em) {
  .site-header__inner.wrap {
    flex-wrap: nowrap;
    gap: 0.5rem 1.25rem;
    border-radius: 999px;
  }
  .site-nav { order: 0; flex-basis: auto; }
  /* Das Popover-Attribut bleibt im Markup; hier wird die Liste wieder zur
     normalen Zeile im Kopf. */
  .site-nav__list,
  .site-nav__list[popover] {
    position: static;
    display: flex;
    flex-wrap: nowrap;
    inset: auto;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    background: none;
    color: inherit;
  }
}

/* ---------------- Sektionen ---------------- */
.section {
  position: relative;
  padding-block: var(--space-sec);
}
/* Trennlinie als Lichtkante: in der Mitte hell, zu den Rändern auslaufend */
.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(var(--wrap), 100%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--line-2) 30%, var(--line-2) 70%, transparent);
}

.section__grid { display: block; }
.section__body { min-width: 0; }

/* Abschnittsmarke: Chip mit auslaufender Linie */
.rail {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: 18rem;
  margin: 0 0 1.4rem;
}
.rail::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-3), transparent);
}
.rail__num {
  flex: none;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: var(--lime);
}

.section__intro {
  max-width: var(--measure);
  font-size: var(--fs-m);
  color: var(--text-soft);
}
.section__legal {
  max-width: var(--measure);
  margin-top: 1rem;
  font-size: var(--fs-s);
  color: var(--text-dim);
}
.section__outro {
  max-width: 46rem;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  font-size: var(--fs-s);
  color: var(--text-soft);
}


/* ---------------- Hero ----------------
   Links Hauptzeile, Einordnung und Aufruf, rechts ein kleines, echtes
   Stück Oberfläche: ein Wartungsbericht als Beispiel. Er zeigt, was der
   Kunde bekommt, und nebenbei, wie gebaut wird. Hintergrund: ein ruhiger
   Lichthof und ein feines Raster, beide statisch. */
.section--hero {
  padding-top: clamp(2rem, 1rem + 3vw, 4rem);
  isolation: isolate;
  overflow-x: clip;
}
.section--hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10rem 0 auto;
  height: 50rem;
  pointer-events: none;
  background:
    radial-gradient(38rem 26rem at 80% 35%, rgba(157, 143, 255, 0.11), transparent 70%),
    radial-gradient(28rem 20rem at 12% 40%, rgba(200, 255, 60, 0.06), transparent 70%);
}
.section--hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 42rem;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 20%, transparent 75%);
}
/* Im Hero ersetzt die Einordnung die Abschnittsmarke */
.section--hero .rail { display: none; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  align-items: center;
}
@media (min-width: 64em) {
  .hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}
.hero__text { min-width: 0; }
.section--hero h1 { font-size: clamp(2.4rem, 1rem + 4vw, 4.1rem); }
.hero__text h1 { max-width: 15ch; }

/* Wer hier schreibt: Foto und Name über der Hauptzeile */
.hero__me {
  margin: 0 0 1.4rem;
  padding-left: 0.85rem;
  border-left: 2px solid var(--lime);
  max-width: none;
  font-size: var(--fs-s);
  line-height: 1.35;
  color: var(--text-dim);
}
.hero__me b { display: block; font-weight: 650; color: var(--text); }

/* Handgezogener Strich unter dem Schlüsselwort. Wird beim Laden einmal
   gezeichnet, danach steht er still. */
.mark {
  position: relative;
  white-space: nowrap;
}
.mark svg {
  position: absolute;
  left: -2%;
  bottom: -0.16em;
  width: 104%;
  height: 0.32em;
  overflow: visible;
  pointer-events: none;
}
.mark path {
  fill: none;
  stroke: var(--lime);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 320;
  stroke-dashoffset: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .mark path { animation: draw 900ms var(--ease) 450ms both; }
}
@keyframes draw { from { stroke-dashoffset: 320; } }

.lede {
  max-width: 40rem;
  margin-top: 0.5rem;
  font-size: var(--fs-lede);
  line-height: 1.55;
  color: var(--text-soft);
}
.lede strong { font-weight: 650; color: var(--text); }

.hero__agency {
  margin: 1.1rem 0 0;
  max-width: none;
  font-size: var(--fs-s);
  color: var(--text-dim);
}

/* Vier Zahlen, die in einem Blick sagen, worauf man sich einlässt */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  max-width: 40rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--line);
}
@media (min-width: 36em) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.stats li { margin: 0; padding: 0.85rem 1rem 0.8rem; background: var(--bg-raise); }
.stats b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.stats span { display: block; font-size: var(--fs-xs); line-height: 1.35; color: var(--text-dim); }

/* ---- Paket-Finder im Hero ----
   Reines CSS: Radio-Knöpfe, das passende Ergebnis erscheint über :has().
   Mobil zuerst eine Spalte mit großen Tippflächen, ab 24em zwei Spalten.
   Browser ohne :has() zeigen alle Ergebnisse untereinander. */
.pick {
  width: 100%;
  max-width: 31rem;
  justify-self: center;
  padding: 1.15rem;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: linear-gradient(180deg, #111318, #0b0c10);
  box-shadow: 0 50px 90px -45px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
/* Oben ausgerichtet: das Ergebnis wächst nach unten, der Kasten springt nicht. */
@media (min-width: 64em) { .pick { justify-self: end; align-self: start; margin-top: 4.5rem; padding: 1.4rem; } }
.pick__q { margin: 0; padding: 0; border: 0; min-width: 0; }
.pick__title {
  padding: 0;
  font-family: var(--font-display);
  font-size: var(--fs-l);
  font-weight: 720;
  letter-spacing: -0.02em;
  color: var(--text);
}
.pick__hint { margin: 0.2rem 0 1rem; font-size: var(--fs-s); color: var(--text-dim); }
.pick__opts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
}
@media (min-width: 24em) {
  .pick__opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pick__opts label:last-of-type { grid-column: 1 / -1; }
}
.pick__opts input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.pick__opts label {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-s);
  background: var(--glass);
  font-size: var(--fs-s);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-soft);
  cursor: pointer;
  transition: border-color 160ms, background-color 160ms, color 160ms;
}
.pick__opts label:hover { border-color: var(--line-3); color: var(--text); }
.pick__opts input:checked + label {
  border-color: var(--lime);
  background: var(--lime-soft);
  color: var(--text);
}
.pick__opts input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }

.pick__out { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.pick__empty { margin: 0; font-size: var(--fs-s); color: var(--text-dim); }
.pick__res { display: none; }
.pick:has(input:checked) .pick__empty { display: none; }
.pick:has(#pick-1:checked) .pick__res--1,
.pick:has(#pick-2:checked) .pick__res--2,
.pick:has(#pick-3:checked) .pick__res--3,
.pick:has(#pick-4:checked) .pick__res--4,
.pick:has(#pick-5:checked) .pick__res--5 { display: block; }
@supports not selector(:has(a)) {
  .pick__opts, .pick__hint, .pick__empty { display: none; }
  .pick__res { display: block; }
  .pick__res + .pick__res { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
}
.pick__name {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
}
.pick__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; margin: 0.3rem 0 0.5rem; }
.pick__price b {
  font-family: var(--font-display);
  font-size: var(--fs-price);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}
.pick__price span { font-size: var(--fs-s); color: var(--text-dim); }
.pick__desc { margin: 0; font-size: var(--fs-s); color: var(--text-soft); }
.pick__also { margin: 0.5rem 0 0; font-size: var(--fs-s); color: var(--text-dim); }
.pick__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.1rem; margin: 1rem 0 0; }
.pick__link { font-size: var(--fs-s); font-weight: 600; }
.pick__other { margin: 1rem 0 0; font-size: var(--fs-s); }
.pick__other a { color: var(--text-soft); }
@media (prefers-reduced-motion: no-preference) {
  .pick__res { animation: pick-in 260ms var(--ease) both; }
}
@keyframes pick-in { from { opacity: 0; transform: translateY(6px); } }

/* ---- Beispiel-Oberfläche: Wartungsbericht (in „Laufende Pflege“) ---- */
.demo {
  width: 100%;
  max-width: 31rem;
  margin: 1.25rem 0 0;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: linear-gradient(180deg, #111318, #0b0c10);
  box-shadow: 0 50px 90px -45px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  font-size: var(--fs-s);
}
.demo__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}
.demo__bar::before {
  content: "";
  flex: none;
  width: 42px;
  height: 10px;
  background:
    radial-gradient(circle at 5px 5px, #ff6b6b 4.5px, transparent 5px),
    radial-gradient(circle at 21px 5px, #ffc857 4.5px, transparent 5px),
    radial-gradient(circle at 37px 5px, #6fcf6f 4.5px, transparent 5px);
  opacity: 0.8;
}
.demo__body { padding: 1.1rem 1.1rem 1.15rem; }
.demo__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin: 0 0 0.9rem;
  max-width: none;
}
.demo__site { font-weight: 650; color: var(--text); }
.demo__state {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--lime);
}
.demo__state::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.demo__list {
  display: grid;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.demo__list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
}
.demo__list li::before {
  content: "";
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--lime-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23c8ff3c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.6 2.6L12 5.5'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
}
.demo__list small {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  white-space: nowrap;
}
.demo__chart { margin: 0 0 0.9rem; }
.demo__chart p {
  display: flex;
  justify-content: space-between;
  margin: 0 0 0.35rem;
  max-width: none;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}
.demo__chart svg { display: block; width: 100%; height: 44px; }
.demo__chart polyline { fill: none; stroke: var(--lime); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.demo__chart .area { fill: url(#demo-fill); stroke: none; }
.demo__foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding-top: 0.8rem;
  max-width: none;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* Auftritt beim Laden: nur Deckkraft und Verschiebung, kein Weichzeichner. */
@media (prefers-reduced-motion: no-preference) {
  .hero__text > *, .pick { animation: hero-in 700ms var(--ease) both; }
  .hero__text > :nth-child(2) { animation-delay: 60ms; }
  .hero__text > :nth-child(3) { animation-delay: 120ms; }
  .hero__text > :nth-child(4) { animation-delay: 180ms; }
  .hero__text > :nth-child(n+5) { animation-delay: 240ms; }
  .pick { animation-delay: 200ms; }
}
@keyframes hero-in { from { opacity: 0; transform: translateY(16px); } }

/* Die Einordnung auf den Unterseiten (Agenturen) */
.eyebrow {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 1.3rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lime);
  text-wrap: balance;
}

/* ---------------- Gegenton-Block ("Für Agenturen") ----------------
   Kein invertierter Block mehr, sondern eine eigene Lichtbühne in Violett:
   ein großes Paneel mit leuchtender Kante hebt die zweite Zielgruppe ab. */
.section--invert {
  background: radial-gradient(70% 55% at 50% 10%, rgba(157, 143, 255, 0.14), transparent 70%);
}
.section--invert .section__body {
  position: relative;
  padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  border-radius: var(--r-xl);
  background:
    linear-gradient(160deg, rgba(30, 26, 60, 0.75), rgba(12, 12, 20, 0.85)) padding-box,
    linear-gradient(140deg, rgba(157, 143, 255, 0.6), rgba(255, 255, 255, 0.06) 40%, rgba(61, 224, 232, 0.35)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 40px 120px -40px rgba(157, 143, 255, 0.35);
}
.section--invert .rail__num { color: var(--violet); }
.section--invert .lede strong {
  background: linear-gradient(transparent 60%, rgba(157, 143, 255, 0.35) 60%, rgba(157, 143, 255, 0.35) 92%, transparent 92%);
}

/* ---------------- Fuß ---------------- */
.site-footer {
  position: relative;
  margin-top: 2rem;
  padding-block: 3.5rem 3rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.45));
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(var(--wrap), 100%);
  height: 1px;
  transform: translateX(-50%);
  background: var(--grad-brand);
  opacity: 0.55;
}
.site-footer__inner {
  display: grid;
  gap: 1.75rem;
}
.site-footer__id {
  max-width: 34rem;
  font-size: var(--fs-s);
  line-height: 1.6;
  color: var(--text-dim);
}
.site-footer__id strong {
  font-family: var(--font-display);
  font-size: var(--fs-l);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__nav li { margin: 0; }
.site-footer__nav a {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--fs-s);
  color: var(--text-soft);
  text-decoration: none;
  transition: color 150ms var(--ease), border-color 150ms var(--ease), background-color 150ms var(--ease);
}
.site-footer__nav a:hover { color: var(--text); border-color: var(--line-3); background: var(--glass-2); }
.site-footer__meta {
  max-width: none;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  line-height: 1.7;
  color: var(--text-dim);
}

@media (min-width: 56em) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: start;
  }
  .site-footer__nav ul { justify-content: flex-end; }
  .site-footer__meta { grid-column: 1 / -1; }
}

/* ---------------- Auftritt beim Scrollen ----------------
   Reines CSS über die Sichtbarkeits-Zeitleiste, läuft auf dem Compositor.
   Wo der Browser das nicht kann, steht alles einfach da. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .section:not(.section--hero) h2, .pgroup, .timeline li, .proofgrid li, .step, .lab,
    .faq__item, .facts__row, .proof, .demo, .pricetable-wrap, .contact > *, .doc section, .legal h2 {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
}
