/* ============================================================================
   sections.css — Layout/Styling der 8 Sektionen · Eigentümer: Agent 2
   ----------------------------------------------------------------------------
   Namensraum: .hero / .stats / .services / .tech / .process /
               .exclusive / .cta / .footer (+ Unterklassen).
   Nutzt ausschließlich var(--…)-Tokens aus tokens.css (Agent 1).
   Geteilte Klassen (.container/.btn/.eyebrow/.chip/.link/.site-nav/
   .lang-toggle) werden verwendet, NICHT neu definiert.
   Robust gebaut: fehlen frames.css/parallax.js (Agent 3) oder Engine (Agent 1),
   steht die Seite strukturell trotzdem.
   ========================================================================== */

/* ---------- Sektions-Rhythmus (großzügige vertikale Ordnung) --------------- */
.stats,
.services,
.tech,
.process,
.founder,
.exclusive,
.cta { padding-block: var(--sp-24); }

/* Feiner Trenner zwischen den Kapiteln — Struktur, kein Dekor. */
.stats,
.services,
.tech,
.process,
.founder,
.exclusive { border-top: 1px solid var(--hairline); }

/* Gemeinsames Anschnitt-Muster: kleine Grotesk-Caps sitzen über der Überschrift. */
.stats__title,
.services__title,
.tech__title,
.process__title,
.founder__title,
.exclusive__title,
.cta__title { font-family: var(--font-display); font-size: var(--fs-h2);
  line-height: var(--lh-tight); letter-spacing: -0.01em; margin-top: var(--sp-3);
  color: var(--text); }

.eyebrow { display: inline-block; }

/* Inline-Signet (das Netz IST das Zeichen) — erbt Farbe vom Elternelement. */
.akm-signet { display: block; flex: 0 0 auto; }


/* ============================ 1 · HERO ==================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: var(--sp-32) var(--sp-24);
}
.hero__inner { display: flex; flex-direction: column; align-items: flex-start; }

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  margin-top: var(--sp-4);
  max-width: 16ch;
}
.hero__line { display: block; }
.hero__line--muted { color: var(--text-muted); }   /* Hierarchie über Ton, nicht über Farbe */

.hero__lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-normal);
  color: var(--text-muted);
  max-width: 54ch;
  margin-top: var(--sp-6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
}

/* Dezenter Scroll-Cue am unteren Rand. */
.hero__cue {
  position: absolute;
  left: 50%;
  bottom: var(--sp-8);
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
  color: var(--text-dim);
}
.hero__cue-label {
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}
.hero__cue-line {
  width: 1px; height: 42px;
  background: linear-gradient(to bottom, var(--hairline-strong), transparent);
  position: relative; overflow: hidden;
}
.hero__cue-line::after {
  content: ""; position: absolute; left: 0; top: -50%;
  width: 1px; height: 50%;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: akm-cue 2.2s var(--ease) infinite;
}
@keyframes akm-cue {
  0%   { transform: translateY(-100%); opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: translateY(300%); opacity: 0; }
}


/* ============================ 2 · ZAHLEN / STATS ========================== */
.stats__primary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-8);
  margin-top: var(--sp-12);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--hairline);
}
.stats__secondary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-8);
  margin-top: var(--sp-8);
}
.stat { display: flex; flex-direction: column; gap: var(--sp-2); }
.stat--lead .stats__label { color: var(--text); }   /* Primär-Kennzahlen: Label eine Spur präsenter */

.stats__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--accent);                 /* Schlüsselzahlen = der erlaubte Akzent */
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  letter-spacing: -0.02em;
}
.stats__num--sm { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }

/* P0-Disclaimer unter der Sektions-Überschrift: Kennzahlen sind echt, aber ein
   Zeitraum-Schnappschuss — siehe docs/design.md §6. Bewusst gedämpft, keine Warnfarbe. */
.stats__disclaimer {
  margin-top: var(--sp-2);
  max-width: var(--maxw-narrow);
  font-size: .88rem;
  line-height: var(--lh-normal);
  color: var(--text-dim);
}

.stats__label {
  font-size: var(--fs-body);
  color: var(--text-muted);
}
.stats__sub {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.02em;
  color: var(--text-dim);
}

/* Akzent-Aufglühen am Ende des Hochzählens (Klasse setzt counters.js). */
.stats__num.is-counted { animation: akm-count-glow 1s var(--ease); }
@keyframes akm-count-glow {
  0%   { text-shadow: 0 0 0 transparent; }
  40%  { text-shadow: 0 0 26px var(--accent-glow); }
  100% { text-shadow: 0 0 0 transparent; }
}


/* ============================ 3 · LEISTUNGEN / SERVICES =================== */
.services__intro {
  font-size: var(--fs-lead);
  line-height: var(--lh-normal);
  color: var(--text-muted);
  margin-top: var(--sp-4);
  padding-inline: 0;      /* neutralisiert seitliches Container-Padding im Fließtext */
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-12);
}
.service {
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  transition: border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.service:hover {
  background: var(--bg-elev-2);
  border-color: var(--hairline-strong);
  transform: translateY(-3px);
}
.service__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: var(--lh-tight);
  color: var(--text);
}
.service__lines {
  list-style: none;
  margin: var(--sp-4) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.service__lines li {
  position: relative;
  padding-left: var(--sp-4);
  color: var(--text-muted);
  line-height: var(--lh-normal);
}
.service__lines li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 1px; background: var(--hairline-strong);
}
.services__more { display: inline-block; margin-top: var(--sp-8); }


/* ============================ 4 · TECHNOLOGIE / DAS SYSTEM ================ */
.tech__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--sp-16);
  align-items: start;
}
.tech__text { position: sticky; top: calc(var(--sp-24)); align-self: start; }
.tech__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  margin-top: var(--sp-3);
}
.tech__line { display: block; }
.tech__line--muted { color: var(--text-muted); }
.tech__body {
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text-muted);
  margin-top: var(--sp-6);
  max-width: 46ch;
}
.tech__points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: var(--sp-6) 0 0;
  padding: 0;
}

/* Schwebende „Beweis"-Stapel. .frame kommt aus frames.css (Agent 3);
   hier nur Anordnung + defensive Bildbegrenzung (falls frames.css fehlt). */
.tech__frames { display: flex; flex-direction: column; gap: var(--sp-8); }
.tech__frames img { max-width: 100%; height: auto; display: block; }
.tech__frame--a { transform: translateX(0); }
.tech__frame--b { transform: translateX(6%); max-width: 88%; margin-left: auto; }
.tech__frame--c { transform: translateX(-2%); max-width: 72%; }
.tech__frame--d { transform: translateX(4%); max-width: 80%; margin-left: auto; }

/* Bildunterschriften der Tech-Frames — gleicher Stil wie .pg-figure figcaption
   (frames.css), hier im .tech-Kontext dupliziert, da dort nur .pg-* gilt. */
.tech__frame figcaption {
  display: block;
  margin-top: var(--sp-3);
  font-family: var(--font-display);
  font-size: .82rem;
  letter-spacing: .02em;
  color: var(--text-dim);
}


/* ============================ 4b · TEASER „CONTENT-TOOL" =================== */
/* Bewusst gedämpfter Zwischen-Block, KEINE reguläre Leistungs-Kachel/Sektion.
   Markup: <section class="teaser"><div class="container container--narrow
   teaser__inner"><p class="teaser__badge">…<h2 class="teaser__title">…
   <p class="teaser__body">…</div></section> */
.teaser {
  padding-block: var(--sp-16);
  border-top: 1px solid var(--hairline);
}
.teaser__inner {
  padding: var(--sp-8);
  border: 1px dashed var(--hairline-strong);
  border-radius: var(--r-lg);
  background: transparent;
  text-align: center;
}
.teaser__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: .42em .85em;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  color: var(--text-dim);              /* bewusst KEIN Akzent-Blau — noch nicht aktives Angebot */
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1;
}
.teaser__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  color: var(--text);
  margin-top: var(--sp-4);
}
.teaser__body {
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text-muted);
  margin-top: var(--sp-3);
}


/* ============================ 5 · PROZESS ================================= */
.process__steps {
  list-style: none;
  margin: var(--sp-12) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-8);
  position: relative;
}
/* Verbindungslinie über den Schritten — echte Sequenz, echte Kante. */
.process__steps::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 15px;
  height: 1px;
  background: var(--hairline);
}
.step { position: relative; display: flex; flex-direction: column; gap: var(--sp-3); }
.step__index {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
  color: var(--text-dim);          /* Ordinal-Marker, bewusst KEIN Akzent */
  background: var(--bg);           /* deckt die Linie hinter der Zahl ab */
  padding-right: var(--sp-3);
  width: max-content;
}
.step__name {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: var(--lh-tight);
  color: var(--text);
}
.step__text { color: var(--text-muted); line-height: var(--lh-normal); }
.process__note {
  margin-top: var(--sp-12);
  font-size: var(--fs-lead);
  color: var(--text);
}


/* ============================ 6 · ÜBER AARON =============================== */
/* Markup: <section class="founder"><div class="container"><h2 class="founder__title">
   <div class="founder__grid"><div class="founder__photo"></div><div class="founder__text">
   <p class="founder__body">…</div></div></div></section> — .founder__title nutzt die
   gemeinsame Titel-Regel oben. Analog zu .tech__grid, aber Foto zuerst, Text zweitspaltig. */
.founder__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--sp-16);
  align-items: center;
  margin-top: var(--sp-12);
}

/* Platzhalterfläche für das noch fehlende Gründerfoto — bewusst zurückhaltend,
   KEIN Akzent-Glow (im Gegensatz zu .frame), bis Aaron ein echtes Foto liefert. */
.founder__photo {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  overflow: hidden;
}
.founder__photo img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
}

.founder__text {
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text-muted);
}
.founder__body { margin-top: 0; }
.founder__text > * + * { margin-top: var(--sp-4); }


/* ============================ 7 · EXKLUSIVITÄT =========================== */
.exclusive__inner { text-align: center; }
.exclusive .eyebrow { margin-inline: auto; }
.exclusive__title { font-size: var(--fs-h2); }
.exclusive__body {
  font-size: var(--fs-lead);
  line-height: var(--lh-normal);
  color: var(--text-muted);
  margin-top: var(--sp-6);
}


/* ============================ 8 · ABSCHLUSS-CTA + FOOTER ================= */
.cta { text-align: center; border-top: 1px solid var(--hairline); }
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta__title { font-size: var(--fs-h2); }
.cta__sub {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  margin-top: var(--sp-4);
}
.cta__channels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
}
/* Kanal-Buttons zeigen zwei Zeilen (Label + Wert). Basis-.btn kommt aus base.css. */
.cta__channel {
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.25;
  text-align: center;
}
.cta__channel-label {
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-dim);
}
.cta__channel-value { font-size: var(--fs-body); color: var(--text); }
/* WhatsApp = markierter Platzhalter, bis Aaron die Nummer liefert. */
.cta__channel[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

.footer {
  margin-top: var(--sp-24);
  padding-top: var(--sp-12);
  padding-bottom: var(--sp-8);
  border-top: 1px solid var(--hairline);
  text-align: left;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sp-8);
  align-items: start;
}
.footer__signet {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--text);
}
.footer__wordmark {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  letter-spacing: -0.01em;
}
.footer__tag {
  margin-top: var(--sp-3);
  color: var(--text-muted);
  max-width: 42ch;
}
/* Dezenter WebShop-/Zusatzangebots-Hinweis unter der Footer-Tagline —
   bewusst kein gleichwertiges Leistungs-Element, daher kleiner & gedämpfter. */
.footer__addon {
  margin-top: var(--sp-2);
  max-width: 42ch;
  font-size: .88rem;
  line-height: var(--lh-normal);
  color: var(--text-dim);
}
/* Fallback-Unterstreichung, falls der Link ohne .link-Klasse ausgezeichnet ist
   (:not(.link) verhindert doppelte Unterstreichung, falls beide Klassen sitzen). */
.footer__addon a:not(.link) {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--hairline-strong);
  text-underline-offset: 3px;
  transition: color .3s var(--ease), text-decoration-color .3s var(--ease);
}
.footer__addon a:not(.link):hover,
.footer__addon a:not(.link):focus-visible {
  color: var(--text-muted);
  text-decoration-color: var(--accent-deep);
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
}
.footer__legal a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--fs-body);
  transition: color var(--dur) var(--ease);
}
.footer__legal a:hover { color: var(--text); }
.footer__baseline {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-top: var(--sp-12);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--hairline);
  color: var(--text-dim);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.04em;
}


/* ============================ RESPONSIV ================================== */

/* Tablet und darunter */
@media (max-width: 900px) {
  .stats,
  .services,
  .tech,
  .process,
  .exclusive,
  .cta { padding-block: var(--sp-16); }

  .tech__grid { grid-template-columns: 1fr; gap: var(--sp-12); }
  .tech__text { position: static; }
  .tech__frames { gap: var(--sp-6); }
  .tech__frame--a,
  .tech__frame--b,
  .tech__frame--c,
  .tech__frame--d { transform: none; max-width: 100%; margin-left: 0; }

  .founder__grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .founder__photo { width: 100%; max-width: 340px; margin-inline: auto; }

  .process__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-8) var(--sp-6); }
  .process__steps::before { display: none; }
  .step__index { background: transparent; padding-right: 0; }

  .stats__secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6); }
}

/* Mobil */
@media (max-width: 600px) {
  .hero { padding-block: var(--sp-24) var(--sp-16); }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; text-align: center; justify-content: center; }

  .stats__primary { grid-template-columns: 1fr; gap: var(--sp-6); }
  .stats__secondary { grid-template-columns: 1fr; }

  .services__grid { grid-template-columns: 1fr; }
  .service { padding: var(--sp-6); }

  .teaser__inner { padding: var(--sp-6); }

  .process__steps { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .footer__baseline { flex-direction: column; gap: var(--sp-2); }
}

/* Sehr schmal — nichts darf horizontal überlaufen */
@media (max-width: 380px) {
  .cta__channels { flex-direction: column; width: 100%; }
  .cta__channel { width: 100%; }
}


/* ============================ MOTION-DISZIPLIN =========================== */
@media (prefers-reduced-motion: reduce) {
  .hero__cue-line::after { animation: none; opacity: 0.4; }
  .stats__num.is-counted { animation: none; }
  .service { transition: none; }
  .service:hover { transform: none; }
}
