/* =========================================================================
   KI-Format Landingpage
   Vanilla CSS, kein Build-Tool. Design-Tokens siehe :root.
   ========================================================================= */

/* --- Schrift: Schibsted Grotesk, selbst gehostet (DSGVO, kein Google-CDN) ---
   Variable Font, Achse wght 400-900. Eine Datei deckt 400/500/600/700 ab. */

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/schibsted-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/schibsted-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/schibsted-grotesk-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/schibsted-grotesk-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Design-Tokens --------------------------------------------------------- */

:root {
  /* Farben */
  --gruen-dunkel: #1f4c3e;
  --gruen-tief: #14352b;
  --gruen-tief-hell: #1b4437;
  --creme: #f4f1ea;
  --creme-01: #fbfaf6;
  --creme-02: #fdfcf9;
  --creme-03: #f8f5ee;
  --creme-04: #f1ede3;
  --beige: #d9d3c4;
  --grau-gruen: #b9c9c0;
  --label: #9fbfaf;
  --text-creme: #3f5a50;
  --eyebrow: #5f7a6e;
  --mint-hell: #82f2ca;
  --mint: #8fd3b1;
  --gruen-laeuft: #1f6b4e;
  --rahmen-creme: #ddd7c9;
  --rahmen-creme-02: #d6d0c2;
  --track: #e6e1d5;

  /* Maße */
  --container: 1200px;
  --gutter: 20px;
  --section-y: clamp(72px, 9vw, 128px);

  /* Wiederkehrende Hintergründe */
  --raster: linear-gradient(rgba(244, 241, 234, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 234, 0.045) 1px, transparent 1px);
  --karten-schatten: 0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 30px 60px -40px rgba(20, 53, 43, 0.35), 0 2px 6px -2px rgba(20, 53, 43, 0.08);
}

/* --- Reset ---------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--gruen-dunkel);
}

body {
  font-family: 'Schibsted Grotesk', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--gruen-tief);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.8;
}

img {
  display: block;
  max-width: 100%;
}

picture {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Sprungmarken landen nicht direkt unter dem Sektionsrand */
[id] {
  scroll-margin-top: 24px;
}

/* --- Layout --------------------------------------------------------------- */

.page {
  background: var(--creme);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  padding: 8px 8px 8px 26px;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.btn__pfeil {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* Primär (hell, auf dunklem Grund) */
.btn--hell {
  background: linear-gradient(180deg, #ffffff 0%, var(--creme-04) 100%);
  color: var(--gruen-tief);
  border: 1px solid rgba(143, 211, 177, 0.55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 -1px 0 rgba(20, 53, 43, 0.08) inset, 0 0 0 4px rgba(143, 211, 177, 0.12),
    0 18px 36px -16px rgba(0, 0, 0, 0.6);
}

.btn--hell:hover {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 -1px 0 rgba(20, 53, 43, 0.08) inset, 0 0 0 6px rgba(143, 211, 177, 0.18),
    0 24px 44px -16px rgba(0, 0, 0, 0.65);
}

.btn--hell .btn__pfeil {
  background: linear-gradient(180deg, var(--gruen-tief-hell), var(--gruen-tief));
  color: var(--mint);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset;
}

/* Sekundär (dunkel, auf Creme) */
.btn--dunkel {
  background: linear-gradient(180deg, var(--gruen-tief-hell), var(--gruen-tief));
  color: var(--creme);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 12px 24px -12px rgba(20, 53, 43, 0.6);
}

.btn--dunkel:hover {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 18px 30px -12px rgba(20, 53, 43, 0.65);
}

.btn--dunkel .btn__pfeil {
  background: rgba(244, 241, 234, 0.1);
  color: var(--mint);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

/* Tertiär (Rand, auf Creme): Alternative neben einem dunklen Knopf.
   Rand als Inset-Schatten, damit die Höhe exakt der von .btn--dunkel entspricht */
.btn--rand {
  background: var(--creme-02);
  color: var(--gruen-tief);
  box-shadow: inset 0 0 0 1px rgba(31, 107, 78, 0.35);
}

.btn--rand:hover {
  box-shadow: inset 0 0 0 1px rgba(31, 107, 78, 0.6),
    0 12px 24px -16px rgba(20, 53, 43, 0.4);
}

.btn--rand .btn__pfeil {
  background: rgba(31, 107, 78, 0.1);
  color: var(--gruen-laeuft);
}

/* --- 1. Hero -------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--gruen-dunkel);
  color: var(--creme);
  padding: 10px var(--gutter) 24px;
  background-image: radial-gradient(
      ellipse 60% 55% at 78% 40%,
      rgba(94, 170, 134, 0.28),
      transparent 70%
    ),
    var(--raster);
  background-size: auto, 56px 56px, 56px 56px;
}

.hero__inner {
  position: relative;
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 14px 0 0;
}

.nav__logo {
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
  font-size: 15px;
  font-weight: 500;
  color: var(--beige);
  flex-wrap: wrap;
  /* Versatz, damit die Grundlinie mit dem Schriftzug im Logo abschließt */
  position: relative;
  top: -6px;
}

.nav__links a {
  color: var(--beige);
  padding: 8px 0; /* Touchziel */
}

.nav__links a:hover {
  color: var(--creme);
  opacity: 1;
}

.hero__badge-zeile {
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 4.5vw, 60px) 0 0;
}

.badge {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  border: 1px solid rgba(244, 241, 234, 0.18);
  background: rgba(244, 241, 234, 0.05);
  border-radius: 999px;
  padding: 6px 12px 6px 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--beige);
  box-shadow: inset 0 1px 0 rgba(244, 241, 234, 0.08);
}

.badge__punkt {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(143, 211, 177, 0.2);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: stretch;
  padding: 28px 0 clamp(56px, 7vw, 96px);
}

.hero__text {
  display: flex;
  flex-direction: column;
}

.hero__titel {
  margin: 0;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: pretty;
  color: var(--creme);
}

.hero__absatz {
  margin: 24px 0 0;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.55;
  max-width: 560px;
  color: var(--grau-gruen);
  text-wrap: pretty;
}

.hero__lead {
  margin: 28px 0 0;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  max-width: 560px;
  color: var(--creme);
  text-wrap: pretty;
}

.hero__lead strong {
  font-weight: 700;
  color: var(--mint-hell);
}

.hero__cta {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 40px;
  flex-wrap: wrap;
}

/* Ablauf-Grafik */

.ablauf {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 520px;
  width: 100%;
  justify-self: end;
  padding-top: 6px; /* optischer Ausgleich zur Titel-Oberkante */
  /* Ein Durchlauf der Grafik: Eingang, Impuls, drei Bausteine, Impuls, Ergebnis.
     Alle Animationen teilen diese Dauer und sind per Delay gegeneinander versetzt. */
  --takt: 10s;
}

.ablauf__linie {
  flex: 1;
  min-height: 36px;
  display: flex;
  justify-content: center;
  overflow: hidden; /* Impuls taucht an den Karten auf und ab */
}

/* Impuls: Lichtpunkt mit Schweif, der die Verbindung entlangläuft */
.ablauf__linie span::after {
  content: '';
  position: absolute;
  top: 0;
  left: -1px;
  width: 3px;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(
    180deg,
    rgba(130, 242, 202, 0),
    rgba(130, 242, 202, 0.35) 55%,
    #c9fbe9
  );
  filter: drop-shadow(0 0 5px rgba(130, 242, 202, 0.9));
  transform: translateY(-101%);
  animation: kfImpuls var(--takt) cubic-bezier(0.45, 0, 0.55, 1) infinite;
  animation-delay: calc(var(--takt) * 0.05);
}

.ablauf__linie--2 span::after {
  animation-delay: calc(var(--takt) * 0.68);
}

.ablauf__linie span {
  position: relative;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(130, 242, 202, 0.1),
    rgba(130, 242, 202, 0.6),
    rgba(130, 242, 202, 0.1)
  );
}

.ablauf__karte {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(244, 241, 234, 0.14);
  background: linear-gradient(
    180deg,
    rgba(244, 241, 234, 0.08),
    rgba(244, 241, 234, 0.03)
  );
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: inset 0 1px 0 rgba(244, 241, 234, 0.08);
  backdrop-filter: blur(6px);
}

/* Kurzes Aufleuchten des Rahmens: Anfrage kommt an bzw. Ergebnis liegt vor */
.ablauf__karte::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(130, 242, 202, 0.6);
  box-shadow: 0 0 0 4px rgba(130, 242, 202, 0.07),
    inset 0 0 28px rgba(130, 242, 202, 0.07);
  opacity: 0;
  pointer-events: none;
  animation: kfAufleuchten var(--takt) ease-in-out infinite;
}

.ablauf__karte--ergebnis::after {
  animation-delay: calc(var(--takt) * 0.76);
}

.ablauf__kachel {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(244, 241, 234, 0.08);
  border: 1px solid rgba(244, 241, 234, 0.14);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--beige);
  flex-shrink: 0;
}

.ablauf__kachel--haken {
  position: relative;
  background: linear-gradient(180deg, #9ff5d6, var(--mint-hell));
  border: 0;
  color: var(--gruen-tief);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 18px -8px rgba(130, 242, 202, 0.6);
}

/* Ein einzelner Ring löst sich vom Haken, sobald das Ergebnis da ist */
.ablauf__kachel--haken::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1.5px solid var(--mint-hell);
  opacity: 0;
  pointer-events: none;
  animation: kfWelle var(--takt) ease-out infinite;
  animation-delay: calc(var(--takt) * 0.78);
}

.ablauf__body {
  flex: 1;
  min-width: 0;
}

.ablauf__label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label);
  font-weight: 500;
}

.ablauf__text {
  font-size: 16px;
  font-weight: 500;
  margin-top: 2px;
}

.system-karte {
  border: 1px solid rgba(130, 242, 202, 0.5);
  background: linear-gradient(180deg, var(--creme-01), var(--creme-04));
  color: var(--gruen-tief);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 40px 80px -30px rgba(0, 0, 0, 0.65), 0 0 0 6px rgba(130, 242, 202, 0.08);
}

.system-karte__kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.system-karte__titel {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-creme);
  font-weight: 600;
}

.system-karte__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gruen-laeuft);
}

.system-karte__punkt {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gruen-laeuft);
  display: inline-block;
}

/* Ruhiger Halo statt pulsierendem Punkt */
.system-karte__punkt::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gruen-laeuft);
  opacity: 0;
  animation: kfHalo 2.8s ease-out infinite;
}

.system-karte__kacheln {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.baustein {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rahmen-creme-02);
  border-radius: 12px;
  padding: 14px 10px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  background: var(--creme-01);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  /* Lange Komposita nur an gesetzten &shy;-Stellen trennen (z. B. "Daten-anbindung"),
     nicht nach Browser-Woerterbuch */
  hyphens: manual;
  overflow-wrap: break-word;
  /* Der Baustein, der gerade arbeitet, hebt sich kurz ab */
  --ruhe-rand: var(--rahmen-creme-02);
  --aktiv-rand: var(--gruen-laeuft);
  --aktiv-schein: 0 0 0 3px rgba(31, 107, 78, 0.13),
    0 10px 18px -10px rgba(20, 53, 43, 0.45);
  animation: kfAktiv var(--takt) ease-in-out infinite;
  animation-delay: calc(var(--takt) * 0.13);
}

.baustein:nth-child(2) {
  animation-delay: calc(var(--takt) * 0.31);
}

.baustein:nth-child(3) {
  animation-delay: calc(var(--takt) * 0.49);
}

.baustein svg {
  display: block;
  color: var(--gruen-laeuft);
}

.baustein--ki {
  --ruhe-rand: #2a6653;
  --aktiv-rand: var(--gruen-tief);
  --aktiv-schein: 0 0 0 3px rgba(66, 153, 126, 0.3),
    0 10px 18px -10px rgba(20, 53, 43, 0.6);
  border-color: #2a6653;
  background: linear-gradient(180deg, #47a086 0%, #3e9278 100%);
  color: var(--creme);
}

.baustein--ki svg {
  color: var(--mint-hell);
}

/* Fortschritt in drei Abschnitten, deckungsgleich mit den Bausteinen darüber */
.fortschritt {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.fortschritt span {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--track);
  overflow: hidden;
}

.fortschritt span::after {
  content: '';
  display: block;
  height: 100%;
  border-radius: 2px;
  background: #42997e;
  transform-origin: 0 50%;
  animation: kfAbschnitt1 var(--takt) linear infinite;
}

.fortschritt span:nth-child(2)::after {
  animation-name: kfAbschnitt2;
}

.fortschritt span:nth-child(3)::after {
  animation-name: kfAbschnitt3;
}

/* --- 2. System ------------------------------------------------------------ */

.system {
  padding: var(--section-y) var(--gutter);
  background-image: radial-gradient(
    ellipse 50% 40% at 15% 0%,
    rgba(143, 211, 177, 0.18),
    transparent 70%
  );
}

.system__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 64px);
}

.system__kopf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.system__titel {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-wrap: pretty;
  color: var(--gruen-tief);
}

.system__strich {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 20px 0;
}

.system__strich i {
  height: 2px;
  border-radius: 2px;
  background: rgba(31, 107, 78, 0.25);
}

.system__strich i:nth-child(1) {
  width: 28px;
  background: var(--gruen-laeuft);
}

.system__strich i:nth-child(2) {
  width: 6px;
  background: rgba(31, 107, 78, 0.5);
}

.system__strich i:nth-child(3) {
  width: 6px;
}

.fliesstext {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-creme);
  text-wrap: pretty;
}

.fliesstext + .fliesstext {
  margin-top: 18px;
}

.fliesstext strong {
  font-weight: 700;
  color: var(--gruen-tief);
}

.grafik-rahmen img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1999 / 690;
  object-fit: contain;
  border-radius: 8px;
}

/* --- 3. Drei Beispiele ---------------------------------------------------- */

.beispiele {
  background: var(--gruen-dunkel);
  color: var(--creme);
  padding: var(--section-y) var(--gutter);
  background-image: radial-gradient(
      ellipse 60% 50% at 50% 100%,
      rgba(94, 170, 134, 0.22),
      transparent 70%
    ),
    var(--raster);
  background-size: auto, 56px 56px, 56px 56px;
}

.beispiele__titel {
  margin: 0 0 clamp(40px, 5vw, 64px);
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--creme);
}

.beispiele__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.beispiel {
  position: relative;
  border: 1px solid rgba(244, 241, 234, 0.12);
  border-radius: 24px;
  padding: 32px 28px 36px;
  background: linear-gradient(
    180deg,
    rgba(244, 241, 234, 0.07) 0%,
    rgba(244, 241, 234, 0.03) 100%
  );
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.beispiel:hover {
  transform: translateY(-4px);
  border-color: rgba(143, 211, 177, 0.45);
}

.beispiel__kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.beispiel__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: radial-gradient(
    circle at 30% 25%,
    rgba(143, 211, 177, 0.35),
    rgba(143, 211, 177, 0.08) 70%
  );
  border: 1px solid rgba(143, 211, 177, 0.4);
  color: var(--mint);
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(244, 241, 234, 0.15);
}

.beispiel__nummer {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(244, 241, 234, 0.4);
  font-variant-numeric: tabular-nums;
}

.beispiel__ueberschrift-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.beispiel__titel {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
  background: linear-gradient(90deg, var(--creme) 0%, #bfe6d2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.beispiel__striche {
  display: flex;
  align-items: center;
  gap: 6px;
}

.beispiel__striche i {
  height: 2px;
  border-radius: 2px;
  background: rgba(143, 211, 177, 0.25);
}

.beispiel__striche i:nth-child(1) {
  width: 28px;
  background: var(--mint);
}

.beispiel__striche i:nth-child(2) {
  width: 6px;
  background: rgba(143, 211, 177, 0.5);
}

.beispiel__striche i:nth-child(3) {
  width: 6px;
}

.beispiel__text {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--beige);
  text-wrap: pretty;
}

/* --- 4. Einstieg ---------------------------------------------------------- */
/* Rahmen und Textspalte teilen sich die Klassen der Über-mich-Karte */

.einstieg {
  padding: var(--section-y) var(--gutter);
  background-image: radial-gradient(
    ellipse 50% 40% at 15% 10%,
    rgba(143, 211, 177, 0.18),
    transparent 70%
  );
}

/* Preisfeld sitzt, wo in Über mich das Foto sitzt */
.einstieg__preisfeld {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  width: 100%;
  max-width: 480px;
  min-height: 280px;
  border-radius: 20px;
  padding: clamp(24px, 3vw, 36px);
  background-color: var(--gruen-dunkel);
  background-image: radial-gradient(
      ellipse 80% 60% at 85% 0%,
      rgba(94, 170, 134, 0.35),
      transparent 70%
    ),
    var(--raster);
  background-size: auto, 56px 56px, 56px 56px;
  color: var(--creme);
  box-shadow: 0 24px 48px -28px rgba(20, 53, 43, 0.45);
}

.einstieg__preisfeld .eyebrow {
  color: var(--label);
}

.einstieg__preisfeld .ueber__titel {
  color: var(--creme);
  text-wrap: pretty;
}

/* Ohne Überschrift in der Textspalte beginnt der erste Absatz oben bündig */
.einstieg__karte .ueber__text .fliesstext:first-child {
  margin-top: 0;
}

.einstieg__preis {
  margin: 0;
  font-size: clamp(64px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, var(--creme) 0%, #bfe6d2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.einstieg__preis-art {
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label);
}

.einstieg__karte .ueber__text {
  container-type: inline-size;
}

.einstieg__knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.einstieg__hinweis {
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--eyebrow);
  text-wrap: pretty;
}

.einstieg__hinweis a {
  font-weight: 600;
  color: var(--gruen-laeuft);
  text-decoration: underline;
  text-decoration-color: rgba(31, 107, 78, 0.35);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.einstieg__hinweis a:hover {
  opacity: 1;
  text-decoration-color: currentColor;
}

/* --- 5. Datenschutz ------------------------------------------------------- */
/* Aufteilung wie Über mich, aber auf dunklem Grund. Das Partnerfeld bleibt hell,
   weil das Logo dunkle Schrift hat */

.recht {
  background: var(--gruen-dunkel);
  color: var(--creme);
  padding: var(--section-y) var(--gutter);
  background-image: radial-gradient(
      ellipse 50% 50% at 85% 50%,
      rgba(94, 170, 134, 0.22),
      transparent 70%
    ),
    var(--raster);
  background-size: auto, 56px 56px, 56px 56px;
}

/* Unsichtbare Karte: gleiche Innenabstände wie Einstieg und Über mich, damit
   die Partnerbox auf derselben Kante steht. Rahmen transparent statt entfernt,
   sonst verschiebt sich alles um 1px */
.recht .recht__karte {
  border-color: transparent;
  background: none;
  box-shadow: none;
}

.recht__partner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  max-width: 480px;
  min-height: 280px;
  border: 1px solid rgba(130, 242, 202, 0.5);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 36px);
  background: linear-gradient(180deg, var(--creme-01), var(--creme-04));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 40px 80px -30px rgba(0, 0, 0, 0.65), 0 0 0 6px rgba(130, 242, 202, 0.08);
}

.recht .ueber__text > .eyebrow {
  color: var(--label);
}

.recht .ueber__titel {
  color: var(--creme);
  text-wrap: pretty;
}

.recht .fliesstext {
  color: var(--beige);
}

.recht .fliesstext strong {
  color: var(--mint-hell);
}

/* Breite am Link statt am Bild: Prozent am Bild in einem shrink-to-fit-Link
   ist zirkulär, mobiles Safari verzerrt das Logo dann */
.recht__logo {
  display: block;
  align-self: flex-start;
  flex-shrink: 0;
  width: min(260px, 100%);
}

.recht__logo img {
  width: 100%;
  height: auto;
  aspect-ratio: 540 / 227;
}

.recht__kanzlei {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--eyebrow);
}

.recht__kanzlei strong {
  font-size: 17px;
  font-weight: 600;
  color: var(--gruen-tief);
}

.recht__liste {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.recht__liste li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--creme);
}

.recht__liste li::before {
  content: "✓";
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--gruen-tief);
  background: linear-gradient(180deg, #9ff5d6, var(--mint-hell));
  box-shadow: 0 8px 18px -8px rgba(130, 242, 202, 0.6);
}

/* --- 6. Über mich --------------------------------------------------------- */

.ueber {
  padding: var(--section-y) var(--gutter);
  background-image: radial-gradient(
    ellipse 50% 40% at 85% 100%,
    rgba(143, 211, 177, 0.18),
    transparent 70%
  );
}

.ueber__karte {
  max-width: var(--container);
  margin: 0 auto;
  border: 1px solid var(--rahmen-creme);
  border-radius: 28px;
  background: linear-gradient(180deg, var(--creme-02), var(--creme-03));
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--karten-schatten);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: stretch;
}

.ueber__foto {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: 20px;
  box-shadow: 0 24px 48px -28px rgba(20, 53, 43, 0.45);
  /* Einspaltig: Quadrat. Zweispaltig füllt es die Textspalte (siehe Media-Query) */
  aspect-ratio: 1 / 1;
}

.ueber__foto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 20px;
}

.ueber__text {
  display: flex;
  flex-direction: column;
}

.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--eyebrow);
}

.ueber__titel {
  margin: 16px 0 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--gruen-tief);
}

.ueber__text .fliesstext {
  margin-top: 24px;
}

.ueber__text .fliesstext + .fliesstext {
  margin-top: 18px;
}

.ueber__cta {
  margin-top: auto;
  padding-top: 36px;
}

/* Einstieg- und Über-mich-Knopf gleich breit, trotz unterschiedlicher Beschriftung */
.ueber__cta .btn--dunkel {
  min-width: 280px;
  justify-content: space-between;
}

/* --- 7. Footer ------------------------------------------------------------ */

.footer {
  background: var(--gruen-dunkel);
  color: var(--creme);
  padding: 40px var(--gutter);
  margin-top: auto;
  border-top: 1px solid rgba(244, 241, 234, 0.08);
  background-image: var(--raster);
  background-size: 56px 56px, 56px 56px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__links {
  display: flex;
  gap: 28px;
  font-size: 15px;
  color: var(--beige);
  flex-wrap: wrap;
}

.footer__links a {
  padding: 8px 0; /* Touchziel */
}

/* --- Rechtstexte (Impressum / Datenschutz) -------------------------------- */

.rechtstext {
  padding: clamp(48px, 6vw, 88px) var(--gutter) var(--section-y);
}

.rechtstext__inner {
  max-width: 760px;
  margin: 0 auto;
}

.rechtstext h1 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--gruen-tief);
}

.rechtstext h2 {
  margin: clamp(32px, 4vw, 48px) 0 0;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--gruen-tief);
}

.rechtstext p {
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-creme);
  text-wrap: pretty;
}

.rechtstext a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rechtstext .rechtstext__hinweis {
  margin: 32px 0 0;
  border: 1px solid var(--rahmen-creme);
  border-radius: 16px;
  background: var(--creme-01);
  padding: 20px 24px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-creme);
}

.rechtstext ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.rechtstext li {
  position: relative;
  margin: 10px 0 0;
  padding-left: 22px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-creme);
  text-wrap: pretty;
}

.rechtstext li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gruen-tief);
  opacity: 0.55;
}

.rechtstext strong {
  font-weight: 600;
  color: var(--gruen-tief);
}

/* --- Keyframes ------------------------------------------------------------ */

/* Hero-Grafik. Prozentwerte beziehen sich auf --takt (siehe .ablauf);
   der Versatz der einzelnen Elemente kommt aus animation-delay. */

@keyframes kfAufleuchten {
  0% {
    opacity: 0;
  }
  3% {
    opacity: 1;
  }
  13%,
  100% {
    opacity: 0;
  }
}

@keyframes kfImpuls {
  0% {
    transform: translateY(-101%);
  }
  9%,
  100% {
    transform: translateY(101%);
  }
}

@keyframes kfAktiv {
  0% {
    border-color: var(--ruhe-rand);
    box-shadow: 0 0 0 0 rgba(31, 107, 78, 0), 0 0 0 0 rgba(20, 53, 43, 0);
  }
  4%,
  17% {
    border-color: var(--aktiv-rand);
    box-shadow: var(--aktiv-schein);
  }
  22%,
  100% {
    border-color: var(--ruhe-rand);
    box-shadow: 0 0 0 0 rgba(31, 107, 78, 0), 0 0 0 0 rgba(20, 53, 43, 0);
  }
}

/* Die drei Abschnitte füllen sich nacheinander mit gleicher Geschwindigkeit
   und blenden am Ende des Durchlaufs gemeinsam aus. */

@keyframes kfAbschnitt1 {
  0%,
  14% {
    transform: scaleX(0);
    opacity: 1;
  }
  32%,
  90% {
    transform: scaleX(1);
    opacity: 1;
  }
  95%,
  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}

@keyframes kfAbschnitt2 {
  0%,
  32% {
    transform: scaleX(0);
    opacity: 1;
  }
  50%,
  90% {
    transform: scaleX(1);
    opacity: 1;
  }
  95%,
  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}

@keyframes kfAbschnitt3 {
  0%,
  50% {
    transform: scaleX(0);
    opacity: 1;
  }
  68%,
  90% {
    transform: scaleX(1);
    opacity: 1;
  }
  95%,
  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}

@keyframes kfWelle {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  1.5% {
    opacity: 0.8;
    transform: scale(1.06);
  }
  13%,
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

@keyframes kfHalo {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(2.8);
  }
}

/* =========================================================================
   Responsive
   Die Breakpoints entsprechen den Punkten, an denen die Spalten des Designs
   umbrechen. Hero und Über mich sind explizit gesetzt, weil dort weitere
   Regeln (Verbindungslinien, Fotohöhe) daran hängen.
   ========================================================================= */

/* Hero zweispaltig: 2 × 440px + gap passen ab ca. 968px */
@media (min-width: 968px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Einspaltig: Verbindungslinien nicht dehnen */
@media (max-width: 967px) {
  .ablauf {
    max-width: 100%;
    justify-self: stretch;
    padding-top: 0;
  }

  .ablauf__linie {
    flex: 0 0 auto;
    height: 22px;
    min-height: 0;
  }

  .hero__cta {
    margin-top: 0;
  }
}

/* Über mich zweispaltig: Foto füllt die Höhe der Textspalte */
@media (min-width: 768px) {
  .ueber__karte {
    grid-template-columns: 1fr 1fr;
  }

  .ueber__foto {
    aspect-ratio: auto;
    min-height: 320px;
  }
}

@media (max-width: 520px) {
  .nav {
    flex-wrap: wrap;
    gap: 8px 40px;
  }

  .nav__links {
    top: 0;
    gap: 24px;
  }
}

/* --- Bewegung reduzieren -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Hero-Grafik steht still: Fortschritt voll, keine Impulse */
  .ablauf__linie span::after,
  .ablauf__karte::after,
  .ablauf__kachel--haken::after,
  .system-karte__punkt::after,
  .baustein,
  .fortschritt span::after {
    animation: none !important;
  }

  .btn:hover,
  .beispiel:hover {
    transform: none;
  }
}

/* Kopfleiste der Unterseiten: gleicher Header wie Startseite, ohne Hero-Inhalt */
.hero--schmal {
  padding-bottom: 22px;
}
