/* ============================================================
   seite-leadmagneten.css — Unterseite „Leadmagneten" (Baustein)
   Nutzt main.css-Tokens und -Klassen (.hero, .naht, .faq, .finale,
   .motor-link ...). Eigenheiten dieser Seite:
   1. Magnet-Feldlinien im Held (konzentrische Hairline-Ringe).
   2. Signature: „Der Tausch" als eigenes SVG-Diagramm im Stil der
      Zeus-Maschine — Knoten „Wert" und „Kontakt", zwei gegenläufige
      Gradient-Ströme (#tauschstrom, Keyframes t-fluss/t-puls).
   3. Ledger „Was wir bauen" mit Petrol-Zählmarken (Tally-Striche),
      erste Zeile groß, Rest kompakt, Foto haftet rechts.
   4. Engpass-Report als gestapelte Papier-Karten, Hover fächert auf.
   Bühnen: Weiß → Tint → Weiß → Tint → DUNKEL (einziger Akt) →
   Weiß → Tint → Finale dunkel.
   ============================================================ */

/* ---------- Unterseiten-Held: weiße Bühne + Magnet-Feldlinien ---------- */

.unterheld { padding-bottom: clamp(40px, 6vh, 72px); }
.unterheld .wrap { position: relative; z-index: var(--z-inhalt); }
.unterheld h1 { max-width: 22ch; font-size: clamp(2.5rem, 5vw, 3.9rem); }
.unterheld .hero-lead { max-width: 34rem; }
.unterheld .hero-ctas { margin-bottom: 0; }

/* ---------- Der Report als 3D-Held ----------
   Echtes Cover (report-cover.jpg), perspektivisch geneigt, mit Blatt-
   stapel an der rechten Kante und Bodenschatten. Die Schwebe-Animation
   trägt die Grundneigung in beiden Keyframes; data-tilt (GSAP) liegt auf
   der Bühne drumherum, damit sich die transforms nicht überschreiben. */
.report-buehne {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.report-held {
  position: relative;
  margin: 0;
  width: min(62%, 300px);
  /* Grundneigung auf dem Element selbst: bei ?static/reduced-motion stirbt
     die Animation, das Cover soll trotzdem 3D stehen, nicht flach. */
  transform: perspective(1100px) rotateY(-16deg) rotateX(3deg);
  animation: report-schwebt 8s ease-in-out infinite alternate;
}

.report-held img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px 12px 12px 5px;
  box-shadow:
    0 34px 70px rgba(14, 94, 99, 0.30),
    0 6px 18px rgba(6, 23, 25, 0.18);
}

/* Blattstapel an der rechten Kante: feine Papierlinien */
.report-held::after {
  content: '';
  position: absolute;
  top: 1.6%;
  bottom: 1.2%;
  right: -8px;
  width: 8px;
  border-radius: 0 3px 3px 0;
  background: repeating-linear-gradient(to bottom,
    #f6f3ec 0 2px, #d9d5cb 2px 3px);
}

/* Bodenschatten unter dem schwebenden Report */
.report-held::before {
  content: '';
  position: absolute;
  left: 6%;
  right: -6%;
  bottom: -34px;
  height: 26px;
  background: radial-gradient(50% 100% at 50% 50%, rgba(6, 23, 25, 0.20), transparent 72%);
  filter: blur(7px);
}

@keyframes report-schwebt {
  from { transform: perspective(1100px) rotateY(-16deg) rotateX(3deg) translateY(0); }
  to { transform: perspective(1100px) rotateY(-12deg) rotateX(2deg) translateY(-14px); }
}

@media (max-width: 900px) {
  .report-buehne { min-height: 0; margin-top: 8px; }
  .report-held { width: min(52%, 230px); }
}

/* Konzentrische Hairline-Ringe oben rechts: die Feldlinien des Magneten */
.feldlinien {
  position: absolute;
  top: -340px;
  right: -300px;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at center,
    transparent 0 74px, rgba(14, 94, 99, 0.1) 74px 75px);
  -webkit-mask-image: radial-gradient(circle at center, #000 30%, transparent 68%);
  mask-image: radial-gradient(circle at center, #000 30%, transparent 68%);
}

/* Aktiver Baustein im Dropdown + Mobilnav */
.dd-zeile[aria-current="page"] {
  background: rgba(14, 94, 99, 0.1);
  color: var(--petrol);
  font-weight: 600;
}

.mobilnav-neben a[aria-current="page"] {
  color: var(--petrol) !important;
  font-weight: 600 !important;
}

/* ---------- Der Tausch: getönte Bühne, Signature-Diagramm ---------- */

.tausch {
  background: var(--bg-tint);
  padding-block: clamp(60px, 8.5vh, 108px);
}

.tausch h2 {
  font-size: var(--fs-h2);
  max-width: 26ch;
  margin-bottom: clamp(28px, 4vh, 44px);
}

/* Das Diagramm: zwei Knoten, zwei gegenläufige Ströme.
   Gradient-id #tauschstrom lebt nur auf dieser Seite. */
.tausch-diagramm {
  max-width: 880px;
  margin: 0 auto clamp(36px, 5.5vh, 60px);
}

.tausch-diagramm svg {
  display: block;
  width: 100%;
  height: auto;
}

.t-knoten rect {
  fill: #ffffff;
  stroke: rgba(14, 94, 99, 0.25);
  stroke-width: 1.5;
  filter: drop-shadow(0 10px 24px rgba(14, 94, 99, 0.14));
}

.t-wort {
  font-family: var(--f-display);
  font-size: 33px;
  font-weight: 600;
  fill: var(--ink);
  text-anchor: middle;
  letter-spacing: 0.01em;
}

.t-pfade path {
  fill: none;
  stroke: url(#tauschstrom);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 8 14;
  animation: t-fluss 1.6s linear infinite;
}

/* -44 = zwei volle Dash-Perioden (8+14): nahtlose Schleife.
   Die Pfad-Richtungen sind entgegengesetzt, derselbe Offset
   fließt also oben nach rechts und unten nach links. */
@keyframes t-fluss {
  to { stroke-dashoffset: -44; }
}

.t-pfeil { fill: var(--petrol); }

.t-port { fill: var(--petrol); }

.t-halo {
  fill: none;
  stroke: var(--mint);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: t-puls 2.8s ease-out infinite;
}

.t-halo-b { animation-delay: -1.4s; }

@keyframes t-puls {
  0% { transform: scale(1); opacity: 0.75; }
  70%, 100% { transform: scale(2.7); opacity: 0; }
}

/* Die zwei Spalten docken unter ihrem Knoten an */
.tausch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
}

.tausch-label {
  display: block;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--petrol);
  margin-bottom: clamp(16px, 2vw, 22px);
}

/* Andock-Punkt vor dem Label: greift die Ports des Diagramms auf */
.tausch-label::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--petrol);
  margin-right: 10px;
}

.tausch-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(12px, 1.6vw, 18px);
}

/* Jeder Punkt eine Karte mit Häkchen-Marker statt nackter Zeile */
.tausch-liste li {
  position: relative;
  padding: clamp(18px, 2.2vw, 26px) clamp(20px, 2.4vw, 28px) clamp(18px, 2.2vw, 26px) 58px;
  background: #ffffff;
  border: 1px solid var(--linie);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(11, 27, 29, 0.03);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.tausch-liste li:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 94, 99, 0.3);
  box-shadow: 0 2px 6px rgba(11, 27, 29, 0.04), 0 20px 44px rgba(14, 94, 99, 0.12);
}

/* Häkchen-Marker links */
.tausch-liste li::before {
  content: '';
  position: absolute;
  left: clamp(18px, 2vw, 22px);
  top: clamp(20px, 2.4vw, 28px);
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background:
    linear-gradient(155deg, rgba(103, 205, 198, 0.22), rgba(14, 94, 99, 0.12)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.5' fill='none' stroke='%230e5e63' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}

.tausch-liste h3 { font-size: 1.1rem; margin-bottom: 5px; }

.tausch-liste p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* „Was Sie bekommen" (rechte Spalte) petrol getönt — der Gewinn für den Kunden */
.tausch-col + .tausch-col .tausch-liste li {
  background: linear-gradient(160deg, rgba(103, 205, 198, 0.09), rgba(14, 94, 99, 0.04));
  border-color: rgba(14, 94, 99, 0.16);
}

@media (max-width: 720px) {
  .tausch-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Was wir bauen: weiße Bühne, Ledger links, Foto haftet ---------- */

.bauen {
  background: var(--bg);
  padding-block: clamp(60px, 8.5vh, 108px);
}

.bauen-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  grid-template-areas:
    "kopf foto"
    "liste foto";
  column-gap: clamp(40px, 6vw, 92px);
  align-items: start;
}

.bauen h2 {
  grid-area: kopf;
  font-size: var(--fs-h2);
  max-width: 20ch;
  margin-bottom: clamp(32px, 5vh, 52px);
}

.bauen-foto {
  grid-area: foto;
  position: sticky;
  top: 116px;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--karte-schatten);
}

.bauen-foto img {
  width: 100%;
  height: auto;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.bauen-foto:hover img { transform: scale(1.03); }

/* Ledger: erste Zeile groß, der Rest kompakt */
.ledger {
  grid-area: liste;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.ledger li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: clamp(18px, 2.5vw, 32px);
  align-items: start;
  padding-block: clamp(18px, 2.2vw, 24px);
  border-top: 1px solid var(--linie);
  transition: border-color 0.35s ease;
}

.ledger li:hover { border-top-color: rgba(14, 94, 99, 0.5); }

.ledger li:last-child { border-bottom: 1px solid var(--linie); }

.ledger li:first-child { padding-block: clamp(26px, 3.4vw, 42px); }

.ledger h3 { font-size: 1.15rem; margin-bottom: 6px; }

.ledger li:first-child h3 {
  font-size: clamp(1.65rem, 2.8vw, 2.3rem);
  margin-bottom: 10px;
}

.ledger p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  max-width: 52ch;
  line-height: 1.6;
}

.ledger li:first-child p { font-size: 1.05rem; }

/* Petrol-Zählmarken: schräge Tally-Striche, einer je Position */
.zaehl {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  padding-top: 6px;
}

.zaehl i {
  width: 5px;
  height: 26px;
  border-radius: 3px;
  background: var(--petrol);
  transform: rotate(12deg);
}

.ledger li:first-child .zaehl { padding-top: 10px; }

.ledger li:first-child .zaehl i { height: 36px; }

/* ---------- Beweis: getönte Bühne, Papier-Stapel + Beleg ---------- */

.anzeige {
  background: var(--bg-tint);
  padding-block: clamp(64px, 9vh, 116px);
}

.anzeige-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
}

/* Zwei leere Blätter hinter der echten Anzeige, Hover fächert auf */
.stapel {
  position: relative;
  width: 100%;
  max-width: 440px;
  justify-self: center;
}

.blatt {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(14, 94, 99, 0.14);
  box-shadow: 0 14px 40px rgba(11, 27, 29, 0.1);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.blatt-a { transform: rotate(-6deg) translate(-24px, 16px); background: #eef3f3; }
.blatt-b { transform: rotate(4.5deg) translate(22px, 9px); background: #f5f8f8; }

.anzeige-bild {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(14, 94, 99, 0.16);
  box-shadow: var(--karte-schatten);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 1920x1440-Motiv mit viel Weißrand: als Hochformat-Karte beschnitten.
   height:auto neutralisiert den Präsentations-Hint des height-Attributs,
   erst dann greift die aspect-ratio. */
.anzeige-bild img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.stapel:hover .blatt-a { transform: rotate(-9deg) translate(-26px, 14px); }
.stapel:hover .blatt-b { transform: rotate(7deg) translate(26px, 6px); }
.stapel:hover .anzeige-bild { transform: translateY(-8px); }

.anzeige-label {
  display: block;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--petrol);
  margin-bottom: 16px;
}

.anzeige-beleg {
  font-size: clamp(1.3rem, 2.1vw, 1.7rem);
  font-weight: 500;
  color: var(--ink);
  max-width: 26ch;
  line-height: 1.5;
  text-wrap: balance;
}

/* ---------- Warum ein Baustein: der EINE dunkle Akt ---------- */

.warum {
  background: var(--bg-deep);
  color: var(--dunkel-ink);
  padding-block: clamp(68px, 9.5vh, 120px);
  overflow: clip;
  text-align: center;
}

.warum-aurora {
  position: absolute;
  inset: -10% -20%;
  z-index: var(--z-orb);
  background:
    radial-gradient(760px 420px at 20% 10%, rgba(20, 120, 124, 0.32), transparent 65%),
    radial-gradient(700px 400px at 85% 85%, rgba(103, 205, 198, 0.14), transparent 60%);
  filter: blur(10px);
  animation: orb-drift 28s ease-in-out infinite alternate;
}

.warum .wrap {
  position: relative;
  z-index: var(--z-inhalt);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.warum h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  color: #ffffff;
  max-width: 26ch;
  margin-bottom: 24px;
}

.warum h2 em { color: var(--mint-hell); }

.warum p {
  max-width: 62ch;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--dunkel-soft);
}

/* ---------- Brücke zu den Motoren: schlichte weiße Zeile ---------- */

.bruecke {
  background: var(--bg);
  padding-block: clamp(20px, 4vh, 48px) clamp(60px, 8.5vh, 108px);
}

.bruecke-intro {
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.motor-links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 56px);
}

/* ---------- FAQ: hier getönt (Bühnenwechsel nach der weißen Brücke) ---------- */

.faq { background: var(--bg-tint); }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .bauen-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "kopf"
      "foto"
      "liste";
  }

  .bauen-foto {
    position: static;
    max-width: 680px;
    margin-bottom: clamp(32px, 5vh, 48px);
  }
}

@media (max-width: 860px) {
  .tausch-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }

  .tausch-col { padding-right: 0; }

  .tausch-col + .tausch-col {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--linie);
    margin-top: clamp(28px, 5vw, 40px);
    padding-top: clamp(28px, 5vw, 40px);
  }

  .anzeige-wrap { grid-template-columns: minmax(0, 1fr); gap: 44px; }

  .stapel { max-width: 340px; }

  /* Weniger Ausschlag: nichts ragt aus der schmalen Bühne */
  .blatt-a { transform: rotate(-3deg) translate(-7px, 7px); }
  .blatt-b { transform: rotate(2deg) translate(7px, 3px); }
  .stapel:hover .blatt-a { transform: rotate(-4.5deg) translate(-11px, 9px); }
  .stapel:hover .blatt-b { transform: rotate(3deg) translate(11px, 4px); }
}

@media (max-width: 720px) {
  .hero.unterheld { padding-top: 108px; }
  .unterheld .hero-ctas .btn-gross { width: 100%; justify-content: center; }

  /* Diagramm bleibt lesbar, wenn der viewBox-Maßstab schrumpft */
  .t-wort { font-size: 46px; }
  .t-pfade path { stroke-width: 5; }
  .t-port { r: 10px; }
  .t-halo { r: 11px; }
  .t-pfeil { stroke: var(--petrol); stroke-width: 4; }

  .ledger li { grid-template-columns: 48px minmax(0, 1fr); }

  .zaehl i { width: 4px; height: 22px; }
  .ledger li:first-child .zaehl i { height: 30px; }
}
