/* ==========================================================================
   biteme.digital . leistungen/strategie.css . Sonar (WP-E3)
   Sub-Page, KONVENTIONELLER Flow (Guide §5a): kein dive/Inversion, normales
   Scrollen von oben. Tiefenmesser startet bei -600 m. Motiv: Sonar.
   Konzentrische Kreise pingen beim Scrollen (data-draw + Ping-Puls), die
   Treffer-Punkte sind die Leistungsbausteine. Performance-Stolperfalle:
   Pings animieren NUR transform: scale + opacity, NIE box-shadow/filter.
   Dosierte Occlusion-Deko (Sub-Page ruhiger als die Home). CI v3:
   Caribbean/Purple/Jellofish, kein Orange (Laternen-Hauch lebt im Fisch).
   Regel: keine Initial-States (opacity:0) fuer INHALTE in CSS, das setzt
   die Engine via gsap.set. Nur reine Deko-Layer duerfen unsichtbar starten.
   ========================================================================== */

/* Lande-Zone oben: Seite startet tief (midnight, -600 m) und hellt zum
   Ende hin nach surface auf. --zone-bg verhindert Blitzen vor dem ersten
   Zonen-Trigger. */
body { --zone-bg: var(--zone-midnight); }

/* Fester Zonen-Hintergrund-Layer UNTER dem Fisch (z:0), Pendant zur Home:
   der Fisch (z:1) schwimmt vor dem Wasser, hinter dem Content (z:2). */
.zone-bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--zone-bg, var(--bg-deep));
}

/* Szenen mit Deko clippen Parallax/Okkluder an der Kante */
.has-deko { overflow: hidden; }

/* --------------------------------------------------------------------------
   SONAR-MOTIV (Hero). Konzentrische Kreise (eigenes SVG) + Sweep + Pings.
   -------------------------------------------------------------------------- */
.sonar {
  position: absolute;
  top: 50%;
  right: clamp(-120px, -4vw, 40px);
  transform: translateY(-50%);
  width: clamp(320px, 42vw, 620px);
  aspect-ratio: 1;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}
.sonar > svg,
.sonar > span { position: absolute; inset: 0; width: 100%; height: 100%; }
.sonar__grid { z-index: 0; }

/* Sweep-Keil: dreht sich langsam (nur transform). */
.sonar__sweep {
  z-index: 1;
  transform-origin: 50% 50%;
  animation: sonar-sweep 7s linear infinite;
}
@keyframes sonar-sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Pings: expandierende Ringe rein per transform: scale + opacity.
   KEIN box-shadow/filter (Performance-Stolperfalle Guide/WP-E3). */
.sonar__ping {
  z-index: 0;
  margin: auto;
  width: 56%;
  height: 56%;
  inset: 0;
  border-radius: 999px;
  border: 1px solid var(--accent-caribbean);
  opacity: 0;
  transform: scale(0.18);
  animation: sonar-ping 4.8s ease-out infinite;
}
.sonar__ping--2 { animation-delay: 1.6s; }
.sonar__ping--3 { animation-delay: 3.2s; }
@keyframes sonar-ping {
  0% { opacity: 0; transform: scale(0.18); }
  12% { opacity: 0.5; }
  100% { opacity: 0; transform: scale(1.05); }
}

/* Sonar-Kern: glimmender Mittelpunkt (Jellofish-Spur ist Licht, hier
   bleibt es Caribbean, da reiner UI-/Deko-Akzent). */
.sonar__core {
  z-index: 2;
  margin: auto;
  width: 10px;
  height: 10px;
  inset: 0;
  border-radius: 999px;
  background: var(--accent-caribbean);
  opacity: 0.85;
  animation: sonar-core 3.4s ease-in-out infinite;
}
@keyframes sonar-core {
  0%, 100% { transform: scale(0.85); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}

@media (max-width: 899px) {
  /* Mobile: Sonar dezent in den Hintergrund, kein Overflow */
  .sonar { right: -28vw; width: 90vw; opacity: 0.5; }
}

/* --------------------------------------------------------------------------
   SECTION 1 . HERO
   -------------------------------------------------------------------------- */
.strat-hero { padding-block: clamp(4rem, 12vh, 8rem); overflow: hidden; }
.strat-hero__inner { position: relative; z-index: 1; }

.kicker-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--t-fast) ease;
}
.kicker-back:hover { color: var(--text-primary); }
.kicker-back svg { transition: transform var(--t-fast) ease; }
.kicker-back:hover svg { transform: translateX(-3px); }

.strat-hero h1 { margin-top: 1.5rem; max-width: 16ch; }
.strat-hero .lead { margin-top: 1.75rem; max-width: 40ch; }

/* --------------------------------------------------------------------------
   SECTION 2 . VIER AUSLOESER
   -------------------------------------------------------------------------- */
.strat-trigger__grid { margin-top: 0.5rem; }
.strat-trigger__card { display: flex; flex-direction: column; gap: 1rem; }
.strat-trigger__card h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
}
.strat-trigger__card p { max-width: none; }

/* --------------------------------------------------------------------------
   SECTION 3 . FUENF BAUSTEINE (Sonar-Treffer-Punkte)
   -------------------------------------------------------------------------- */
.baustein-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 60rem;
}
.baustein {
  position: relative;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: border-color var(--t-med) ease, background var(--t-med) ease;
}
.baustein:hover {
  border-color: var(--caribbean-25);
  background: var(--bg-elevated-2);
}

/* Treffer-Punkt: Sonar-Blip mit Nummer + expandierendem Ping (Ping = das
   Einrasten beim Reveal). transform/opacity only. */
.baustein__marker {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.baustein__num {
  position: relative;
  z-index: 1;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-caribbean);
  letter-spacing: 0.04em;
}
.baustein__marker::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--caribbean-08);
  border: 1px solid var(--caribbean-25);
}
/* Sonar-Ping am Treffer-Punkt: ruhiger Dauerpuls (Blip), scale + opacity */
.baustein__ping {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid var(--accent-caribbean);
  opacity: 0;
  transform: scale(0.6);
  animation: baustein-ping 3.6s ease-out infinite;
}
.baustein:nth-child(2) .baustein__ping { animation-delay: 0.5s; }
.baustein:nth-child(3) .baustein__ping { animation-delay: 1s; }
.baustein:nth-child(4) .baustein__ping { animation-delay: 1.5s; }
.baustein:nth-child(5) .baustein__ping { animation-delay: 2s; }
@keyframes baustein-ping {
  0% { opacity: 0; transform: scale(0.6); }
  18% { opacity: 0.55; }
  100% { opacity: 0; transform: scale(1.7); }
}

.baustein__body { flex: 1; min-width: 0; }
.baustein__body h3 { font-size: 1.25rem; margin-bottom: 0.625rem; }
.baustein__body p { max-width: none; }
.baustein__format {
  margin-top: 0.875rem;
  font-size: 0.78125rem;
  color: rgba(155, 163, 181, 0.8);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   SECTION 4 . AI AUDIT (Festpreis-Block, wichtigster Conversion-Punkt)
   -------------------------------------------------------------------------- */
.audit-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(160, 239, 255, 0.07), transparent 55%),
    var(--bg-elevated);
  border: 1px solid var(--caribbean-25);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
}
@media (min-width: 920px) {
  .audit-card { grid-template-columns: 1fr minmax(220px, 0.5fr); gap: 4rem; align-items: start; }
}

.audit-card__main h2 { margin-top: 1.25rem; line-height: 1.1; }
.audit-card__main .lead { margin-top: 1.25rem; }
.audit-card__label {
  margin-top: 2rem;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.audit-card__list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.audit-card__list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.audit-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent-caribbean);
  box-shadow: 0 0 0 4px var(--caribbean-08);
}
.audit-card__after {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 40rem;
}
.audit-card__after strong { color: var(--text-primary); }

.audit-card__price {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.75rem;
}
@media (min-width: 920px) {
  .audit-card__price {
    border-top: none;
    border-left: 1px solid var(--border-subtle);
    padding-top: 0;
    padding-left: 2.5rem;
    text-align: right;
  }
}
.audit-card__amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 4.25rem);
  line-height: 1;
  color: var(--accent-caribbean);
  margin-top: 0.5rem;
  letter-spacing: -0.02em;
}
.audit-card__terms {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.audit-card__cta {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
@media (min-width: 920px) {
  .audit-card__cta { align-items: flex-end; }
}
.audit-card__alt { font-size: 0.8125rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   SECTION 5 . BRANCHEN
   -------------------------------------------------------------------------- */
.strat-branchen__link { margin-top: 2.25rem; }

/* --------------------------------------------------------------------------
   SECTION 6 . FINAL CTA
   -------------------------------------------------------------------------- */
.cta-panel {
  background:
    radial-gradient(120% 160% at 50% 0%, rgba(74, 36, 120, 0.28), transparent 60%),
    var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 7vw, 5rem);
  text-align: center;
}
.cta-panel h2 { margin-bottom: 1.5rem; }
.cta-panel .lead { margin-inline: auto; max-width: 44rem; }
.cta-panel__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.cta-panel__alt { font-size: 0.875rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   DOSIERTE OCCLUSION-DEKO (Sub-Page ruhig). Okkluder-Muster aus
   WP-B1-REPORT wiederverwendet: L4 nah (dunkler + blur, Parallax 0.3),
   L1 fern (dunkel, Parallax 0.1). Sway auf dem inneren <svg>.
   -------------------------------------------------------------------------- */
.occluder {
  position: absolute;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  filter: blur(1.5px);
}
.occluder svg { display: block; width: 100%; height: 100%; }
.occluder--right {
  right: calc(-1 * clamp(16px, 3vw, 48px));
  width: clamp(140px, 13vw, 220px);
  height: min(80vh, 600px);
}

.deco-bg {
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
.deco-bg svg { display: block; width: 100%; height: 100%; }
.deco-bg--left {
  left: calc(-1 * clamp(8px, 1.5vw, 20px));
  bottom: -8vh;
  width: clamp(120px, 12vw, 200px);
  height: min(64vh, 440px);
}

/* Sanftes Schwanken der Deko-SVGs (auf dem inneren <svg>, nicht auf dem
   Okkluder-Wrapper, der data-parallax=transform bekommt). */
.deko-sway--slow {
  transform-origin: 50% 100%;
  animation: deko-sway 14s ease-in-out infinite alternate;
}
@keyframes deko-sway {
  from { transform: rotate(-1.5deg); }
  to { transform: rotate(1.5deg); }
}

@media (max-width: 899px) {
  /* Mobile: Deko dezenter, kein Platzfresser */
  .occluder--right { width: 110px; }
  .deco-bg--left { display: none; }
}

/* --------------------------------------------------------------------------
   REDUCED MOTION: alle Deko-Loops still. Inhalt bleibt voll lesbar (die
   Engine schaltet Pins/Parallax/Reveals selbst auf statisch).
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .sonar__sweep,
  .sonar__ping,
  .sonar__core,
  .baustein__ping,
  .deko-sway--slow { animation: none; }
  .sonar__ping { opacity: 0; }
  .baustein__ping { opacity: 0; }
}

/* Animationen-aus (Customize-Widget, WP-D1): spiegelt reduced-motion */
html[data-user-motion="off"] .sonar__sweep,
html[data-user-motion="off"] .sonar__ping,
html[data-user-motion="off"] .sonar__core,
html[data-user-motion="off"] .baustein__ping,
html[data-user-motion="off"] .deko-sway--slow { animation: none; }
