/* =========================================================================
   Leistungen — abwechselnde, animierte Abschnitte mit morphendem Hintergrund
   Baut auf site.css auf (gleiche Marken-Tokens, Poppins).
   ========================================================================= */

/* ---- Morphender Hintergrund ---------------------------------------------
   Eine fixierte Fläche hinter allem, deren Farbe per JS sanft zwischen den
   data-bg-Werten der Abschnitte überblendet. */
.leistungen-page { background: transparent; }
.lbg {
  position: fixed; inset: 0; z-index: -2;
  background: #EAF6FF;
  transition: background-color 1.1s var(--ease);
}
/* dezente, leuchtende Aura, die mitschwimmt */
.lbg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 82% 12%, rgba(82,113,255,.22) 0%, rgba(82,113,255,0) 60%),
    radial-gradient(55% 50% at 12% 88%, rgba(39,230,255,.16) 0%, rgba(39,230,255,0) 62%);
  opacity: .9;
}

/* ---- Abschnitts-Grundgerüst --------------------------------------------- */
.lsec {
  position: relative; z-index: 1;
  padding: clamp(72px, 11vh, 132px) 0;
  overflow: clip;
}
.lsec__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
/* Die Seiten wechseln sich ab — die Spaltenbreiten dürfen das nicht tun.
   Ohne die zweite Zeile bekäme das Bild mal 565, mal 538 Pixel und der Text
   umgekehrt; die Zeilenlänge änderte sich von Abschnitt zu Abschnitt. So
   behält das Bild immer die breitere Spalte, egal auf welcher Seite. */
.lsec--rev .lsec__inner { grid-template-columns: 1fr 1.05fr; }
.lsec--rev .lsec__media { order: 2; }
.lsec--rev .lsec__body  { order: 1; }
.lsec--wide .shell { max-width: 1120px; }

.lsec__tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--royal);
}
.lsec__tag::before { content: ""; width: 20px; height: 2px; background: var(--cyan); border-radius: 2px; }
.lsec__body h2 {
  margin-top: 16px;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 800; letter-spacing: -.04em; color: var(--navy);
}
.lsec__body p { margin-top: 18px; color: var(--muted); line-height: 1.68; max-width: 52ch; }
.lsec__body .check-list { margin-top: 26px; }
.lsec__body .link-arrow { margin-top: 28px; }
.lsec__body--center { max-width: 720px; margin-inline: auto; text-align: center; }
.lsec__body--center p { margin-inline: auto; }

/* ---- Dunkle Abschnitte: Text hell einfärben ----------------------------- */
.lsec[data-theme="dark"] .lsec__body h2 { color: #fff; }
.lsec[data-theme="dark"] .lsec__body p { color: rgba(255,255,255,.78); }
.lsec[data-theme="dark"] .lsec__tag { color: var(--cyan); }
.lsec[data-theme="dark"] .lsec__tag::before { background: var(--cyan); }
.lsec[data-theme="dark"] .check-list li { color: rgba(255,255,255,.9); }
.lsec[data-theme="dark"] .check-list li::before { color: var(--cyan); }
.lsec[data-theme="dark"] .link-arrow { color: var(--cyan); }

/* ---- Hero der Leistungsseite -------------------------------------------- */
.lsec--hero { padding-top: clamp(140px, 20vh, 220px); text-align: center; }
.lsec-hero__inner { max-width: 820px; margin-inline: auto; }
.lsec--hero h1 {
  margin-top: 14px;
  font-size: clamp(2.2rem, 4.8vw, 3.9rem);
  font-weight: 800; letter-spacing: -.045em; color: var(--navy);
  overflow-wrap: break-word; hyphens: auto;
}
.lsec--hero .lead { margin: 24px auto 0; }
.lsec-hero__scroll {
  margin-top: 48px; display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--light);
}
.lsec-hero__scroll svg { width: 22px; animation: lscroll 1.8s var(--ease) infinite; }
@keyframes lscroll { 0%,100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(7px); opacity: 1; } }

/* =========================================================================
   01 · STRATEGIE — Bild
   ========================================================================= */
.lmedia-photo {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-lg);
  aspect-ratio: 4 / 3.2;
}
.lmedia-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); transition: transform 1.2s var(--ease); }
.lsec__media:hover .lmedia-photo img { transform: scale(1.07); }
.lmedia-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(40,15,145,0) 40%, rgba(27,10,102,.55) 100%);
}
.lmedia-photo__badge {
  position: absolute; left: 22px; bottom: 22px; z-index: 2;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border-radius: var(--r);
  background: rgba(255,255,255,.14); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.28); color: #fff;
}
.lmedia-photo__badge b { font-size: 1.9rem; font-weight: 800; letter-spacing: -.04em; color: var(--cyan); }
.lmedia-photo__badge span { font-size: .92rem; font-weight: 600; line-height: 1.25; }

/* =========================================================================
   02 · 3D-MODELL — interaktiver Viewer
   ========================================================================= */
/* Frei schwebendes Modell — kein Rahmen, kein Kasten, transparenter Canvas */
.model3d {
  position: relative; aspect-ratio: 1 / 1;
  background: transparent; border: 0; box-shadow: none; overflow: visible;
}
/* weicher Bodenschatten, damit das Gebäude „steht“ statt zu kleben */
.model3d::after {
  content: ""; position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%);
  width: 62%; height: 42px; border-radius: 50%;
  background: radial-gradient(60% 60% at 50% 50%, rgba(40,15,145,.22), rgba(40,15,145,0) 72%);
  filter: blur(3px); z-index: 0; pointer-events: none;
}
.model3d__canvas { position: relative; z-index: 1; width: 100%; height: 100%; display: block; cursor: grab; }
.model3d__canvas:active { cursor: grabbing; }
.model3d__loader {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--muted); font-size: .92rem; letter-spacing: .02em;
  transition: opacity .5s var(--ease);
}
.model3d.is-ready .model3d__loader { opacity: 0; pointer-events: none; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(40,15,145,.18); border-top-color: var(--royal); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.model3d__hint {
  position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%); z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.78); border: 1px solid var(--line); backdrop-filter: blur(8px);
  color: var(--navy); font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  box-shadow: var(--sh);
  opacity: 0; transition: opacity .5s var(--ease);
}
.model3d.is-ready .model3d__hint { opacity: 1; }
.model3d__hint svg { width: 15px; color: var(--royal); }

/* =========================================================================
   03 · WEBSITE — Browser-Mockup
   ========================================================================= */
.browser {
  border-radius: var(--r); overflow: hidden;
  background: var(--card); box-shadow: var(--sh-lg);
  border: 1px solid var(--line);
  transform: translateY(0);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.lsec__media:hover .browser { transform: translateY(-6px); box-shadow: 0 40px 80px -34px rgba(40,15,145,.4); }
.browser__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: #F0F4FF; border-bottom: 1px solid var(--line);
}
.browser__dot { width: 11px; height: 11px; border-radius: 50%; background: #cdd6ef; }
.browser__dot:nth-child(1) { background: #ff6058; }
.browser__dot:nth-child(2) { background: #ffbd2e; }
.browser__dot:nth-child(3) { background: #29c941; }
.browser__url {
  margin-left: 12px; flex: 1; padding: 7px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: .82rem; color: var(--muted);
}
.browser__view { position: relative; max-height: 460px; overflow: hidden; }
.browser__view img { width: 100%; display: block; transition: transform 6s linear; }
.lsec__media:hover .browser__view img { transform: translateY(calc(-100% + 460px)); }

/* =========================================================================
   04 · SOCIAL — schwebendes Handy mit Likes
   ========================================================================= */
.phone-stage {
  position: relative; display: grid; place-items: center;
  min-height: 500px;
}
.phone {
  position: relative; width: 264px; aspect-ratio: 9 / 19.5;
  border-radius: 36px; padding: 12px;
  background:
    linear-gradient(150deg, #3a3a48 0%, #16161f 42%, #202029 100%);
  box-shadow:
    0 50px 90px -34px rgba(20,10,60,.55),
    0 8px 22px -12px rgba(20,10,60,.4),
    inset 0 0 0 2px rgba(255,255,255,.08),
    inset 0 0 0 6px rgba(0,0,0,.55);
  transform: rotate(-7deg);
  animation: phone-float 6.5s ease-in-out infinite;
}
@keyframes phone-float {
  0%,100% { transform: rotate(-7deg) translateY(0); }
  50%     { transform: rotate(-7deg) translateY(-14px); }
}
/* Seitentasten */
.phone__btn { position: absolute; width: 3px; border-radius: 2px; background: #0c0c12; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.phone__btn--power { right: -3px; top: 152px; height: 58px; }
.phone__btn--vol-up { left: -3px; top: 118px; height: 36px; }
.phone__btn--vol-dn { left: -3px; top: 164px; height: 36px; }
/* Dynamic-Island */
.phone__island {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 24px; border-radius: 999px; background: #000; z-index: 5;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.phone__island::after { content: ""; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3b5, #072 60%); opacity: .8; }
.phone__screen {
  position: relative; height: 100%; border-radius: 36px; overflow: hidden;
  background: linear-gradient(180deg, #3a2a7a, #150a52);
  display: flex; flex-direction: column;
}
/* Glasreflex über dem Display */
.phone__glare {
  position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background: linear-gradient(125deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 30%, rgba(255,255,255,0) 100%);
}
.phone__reel { position: relative; flex: 1; overflow: hidden; }
.phone__reel-glow {
  position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 50% 30%, rgba(82,113,255,.5), rgba(82,113,255,0) 70%),
              radial-gradient(70% 50% at 70% 90%, rgba(39,230,255,.35), rgba(39,230,255,0) 70%);
  animation: reel-shift 8s ease-in-out infinite alternate;
}
@keyframes reel-shift { from { transform: scale(1) translateY(0); } to { transform: scale(1.15) translateY(-6%); } }
.phone__live {
  position: absolute; top: 44px; left: 16px; z-index: 3;
  font-size: .64rem; font-weight: 700; letter-spacing: .08em; color: #fff;
  padding: 4px 9px; border-radius: 999px; background: rgba(255,60,90,.9);
  animation: live-blink 2s steps(1) infinite;
}
@keyframes live-blink { 50% { opacity: .55; } }
.phone__caption {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 3;
  font-size: .74rem; font-weight: 600; color: #fff; line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.phone__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px 16px; background: rgba(10,6,40,.75); color: #fff;
}
.phone__heart svg { width: 22px; color: #ff4d6d; filter: drop-shadow(0 0 6px rgba(255,77,109,.6)); }
.phone__heart { animation: heart-beat 1.4s ease-in-out infinite; }
@keyframes heart-beat { 0%,100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } }
.phone__comment svg { width: 20px; color: #fff; margin-left: 10px; }
.phone__likes { font-size: 1rem; font-weight: 700; min-width: 42px; }
.phone__bar b { font-weight: 700; font-size: .92rem; }

/* kleine aufsteigende Herzchen, die aus dem Like-Button aufploppen (per JS) */
.hearts { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: visible; }
.hearts .heart {
  position: absolute; left: 50%; bottom: 20%;
  width: var(--sz, 16px); height: var(--sz, 16px); color: #ff4d6d;
  animation: heart-pop var(--dur, 2.4s) cubic-bezier(.4,0,.2,1) forwards;
  will-change: transform, opacity;
}
.hearts .heart svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 5px rgba(255,77,109,.5)); }
@keyframes heart-pop {
  0%   { transform: translate(-50%, 0) scale(.2); opacity: 0; }
  18%  { transform: translate(-50%, -14px) scale(1); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--drift, 0px)), -150px) scale(.7); opacity: 0; }
}

/* =========================================================================
   05 · SEO — interaktives Analyse-Tool
   ========================================================================= */
.seo-tool {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); padding: clamp(28px, 3.4vw, 44px);
}
.seo-tool__kicker { font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--royal); }
.seo-tool__head h3 { margin-top: 10px; font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 700; color: var(--navy); letter-spacing: -.03em; line-height: 1.2; }
.seo-tool__form { margin-top: 24px; }
.seo-tool__inputrow {
  display: flex; align-items: center; gap: 10px;
  border: 2px solid var(--line-strong); border-radius: 999px; padding: 8px 8px 8px 20px;
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 10px 26px -18px rgba(40,15,145,.5);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  cursor: text;
}
.seo-tool__inputrow:hover { border-color: var(--royal); }
.seo-tool__inputrow:focus-within { border-color: var(--royal); box-shadow: 0 0 0 4px rgba(82,113,255,.16); }
.seo-tool__globe svg { width: 22px; color: var(--royal); display: block; }
.seo-tool__inputrow input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1.02rem; color: var(--ink); padding: 12px 4px; outline: none; }
.seo-tool__inputrow input::placeholder { color: var(--light); }
.seo-tool__go { flex: none; white-space: nowrap; gap: 8px; }
.seo-tool__go svg { width: 17px; }
.seo-tool__nudge { margin: 12px 2px 0; font-size: .82rem; color: var(--light); }
.btn--sm { padding: 10px 18px; font-size: .9rem; }

/* Lade-Sequenz: zeigt, was gerade geprüft wird */
.seo-tool__loading { margin-top: 26px; }
.seo-tool__loading[hidden] { display: none; }
.seo-tool__scan { height: 6px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.seo-tool__scan-line { display: block; height: 100%; width: 40%; border-radius: 999px; background: var(--grad-accent); animation: seo-scan 1.1s ease-in-out infinite; }
@keyframes seo-scan { 0% { transform: translateX(-110%); } 100% { transform: translateX(320%); } }
.seo-tool__steps { margin-top: 18px; display: grid; gap: 10px; }
.seo-tool__step {
  display: flex; align-items: center; gap: 10px;
  font-size: .92rem; color: var(--light); opacity: .5;
  transition: opacity .3s var(--ease), color .3s var(--ease);
}
.seo-tool__step i { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); position: relative; transition: all .3s var(--ease); }
.seo-tool__step.is-active { opacity: 1; color: var(--navy); font-weight: 600; }
.seo-tool__step.is-active i { border-color: var(--royal); border-top-color: transparent; animation: spin .7s linear infinite; }
.seo-tool__step.is-done { opacity: 1; color: var(--muted); }
.seo-tool__step.is-done i { border-color: var(--cyan); background: var(--cyan); animation: none; }
.seo-tool__step.is-done i::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #06324a; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Ergebnis */
.seo-tool__result { margin-top: 26px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.seo-tool__result[hidden] { display: none; }
.seo-gauge { position: relative; width: 132px; height: 132px; }
.seo-gauge__svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.seo-gauge__track { fill: none; stroke: var(--paper-2); stroke-width: 12; }
.seo-gauge__value {
  fill: none; stroke: url(#seoGrad); stroke-width: 12; stroke-linecap: round;
  stroke-dasharray: 327; stroke-dashoffset: 327;
  transition: stroke-dashoffset 1.1s var(--ease);
}
.seo-gauge__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.seo-gauge__num { font-size: 2rem; font-weight: 800; color: var(--navy); letter-spacing: -.04em; line-height: 1; }
.seo-gauge__center span { font-size: .74rem; color: var(--light); margin-top: 2px; }
.seo-bars { display: grid; gap: 12px; }
.seo-bar { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; align-items: center; font-size: .84rem; }
.seo-bar > span { color: var(--muted); }
.seo-bar > b { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.seo-bar__track { grid-column: 1 / -1; height: 7px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.seo-bar__track i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--grad-accent); transition: width 1s var(--ease); }
.seo-tool__verdict { grid-column: 1 / -1; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.seo-tool__verdict p { margin: 0 0 16px; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.seo-tool__verdict strong { color: var(--navy); }
.seo-tool__gap { color: var(--royal); }

/* =========================================================================
   06 · KI — Automatisierungs-Flow
   ========================================================================= */
/* KI-Abschnitt: volle Breite, rahmenlos ---------------------------------- */
.lsec--ki { padding: clamp(80px, 12vh, 140px) 0; }
.ki-head { max-width: 760px; margin-inline: auto; text-align: center; }
.ki-head h2 { color: #fff; }
.ki-head p { color: rgba(255,255,255,.8); line-height: 1.68; margin: 18px auto 0; max-width: 62ch; }
.ki-head__hint { color: var(--cyan) !important; font-size: .95rem; }
.ki-head__hint b { color: var(--cyan); font-weight: 700; }

/* rahmenloser, breiter Ablauf — sitzt direkt auf dem Abschnitts-Hintergrund */
.flow { margin: clamp(30px, 5vh, 56px) 0 0; }
.flow__stage {
  position: relative; width: min(1280px, 94vw); margin-inline: auto;
  height: clamp(380px, 46vw, 540px);
  background: none; border: 0; box-shadow: none; overflow: visible;
}
.flow__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* Grundleitungen: durchgehend, sanft leuchtend */
.flow__wires .wire {
  fill: none; stroke: rgba(140,170,255,.4); stroke-width: 2.5; stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(82,113,255,.5));
  transition: stroke .3s var(--ease), stroke-width .3s var(--ease), opacity .3s var(--ease);
}
.flow__wires .wire--alert { stroke: rgba(255,120,145,.45); filter: drop-shadow(0 0 4px rgba(255,90,120,.5)); }
/* fließende Licht-Impulse (Kometen), die „Informationen“ durch die Leitung schicken */
.flow__pulse {
  fill: none; stroke: var(--cyan); stroke-width: 3.5; stroke-linecap: round;
  stroke-dasharray: 16 600; stroke-dashoffset: 616;
  filter: drop-shadow(0 0 6px rgba(39,230,255,.9));
  animation: pulse-run 2.6s linear infinite;
}
.flow__pulse:nth-of-type(2) { animation-delay: .0s; }
.flow__pulse:nth-of-type(3) { animation-delay: .5s; }
.flow__pulse:nth-of-type(4) { animation-delay: 1.0s; }
.flow__pulse:nth-of-type(5) { animation-delay: 1.5s; }
.flow__pulse:nth-of-type(6) { animation-delay: 2.0s; }
.flow__pulse--alert { stroke: #ff5a78; filter: drop-shadow(0 0 6px rgba(255,90,120,.9)); }
@keyframes pulse-run { to { stroke-dashoffset: 0; } }
/* Ein Schritt aktiv: passende Leitung(en) leuchten kräftig, Rest dimmt */
.flow__stage.is-active .wire { opacity: .28; }
.flow__stage.is-active .wire.is-lit { opacity: 1; stroke: var(--cyan); stroke-width: 3.4; filter: drop-shadow(0 0 8px rgba(39,230,255,.9)); }
.flow__stage.is-active .wire.is-lit.wire--alert { stroke: #ff5a78; filter: drop-shadow(0 0 8px rgba(255,90,120,.9)); }

.node {
  position: absolute; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 11px;
  padding: 13px 16px; border-radius: 18px; text-align: left;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.2);
  color: #fff; cursor: pointer; backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -24px rgba(0,0,0,.7);
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  width: max-content; max-width: 210px; z-index: 2;
}
.node:hover { transform: translate(-50%, -50%) scale(1.04); background: rgba(255,255,255,.15); }
.node:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(39,230,255,.5); }
.node.is-active { background: rgba(39,230,255,.18); border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(39,230,255,.35), 0 22px 44px -20px rgba(39,230,255,.6); z-index: 6; }
.node__ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.12); }
.node__ico svg { width: 21px; color: #fff; }
.node__ico--ai { background: var(--grad-accent); }
.node--ai { border-color: rgba(39,230,255,.4); }
.node--ai::after {
  content: ""; position: absolute; inset: -6px; border-radius: 18px; z-index: -1;
  box-shadow: 0 0 0 0 rgba(39,230,255,.4); animation: ai-pulse 2.4s var(--ease) infinite;
}
@keyframes ai-pulse { 0% { box-shadow: 0 0 0 0 rgba(39,230,255,.4); } 70%,100% { box-shadow: 0 0 0 18px rgba(39,230,255,0); } }
.node--alert { border-color: rgba(255,120,145,.45); }
.node--alert .node__ico { background: rgba(255,90,120,.24); }
.node--alert .node__ico svg { color: #ff9db0; }
.node__txt b { display: block; font-size: .9rem; font-weight: 700; line-height: 1.15; }
.node__txt small { display: block; font-size: .72rem; color: rgba(255,255,255,.62); margin-top: 2px; }

/* Popup am Knoten (Klick / Hover) */
.node__pop {
  position: absolute; z-index: 8; width: 260px; max-width: 74vw; text-align: left;
  padding: 15px 17px; border-radius: var(--r); color: #fff;
  background: rgba(24,12,74,.94); border: 1px solid rgba(39,230,255,.32);
  box-shadow: 0 26px 60px -24px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(6px) scale(.98);
  transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
}
.node__pop-title { display: block; font-size: 1rem; font-weight: 700; color: var(--cyan); letter-spacing: -.01em; }
.node__pop-text { display: block; margin-top: 7px; font-size: .88rem; line-height: 1.55; color: rgba(255,255,255,.85); }
.node:hover .node__pop, .node.is-open .node__pop { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); }
/* Eingang & KI-Filter: Popup öffnet nach oben, zentriert */
.node--in .node__pop, .node--ai .node__pop { left: 50%; bottom: calc(100% + 14px); transform: translate(-50%, 6px) scale(.98); }
.node--in:hover .node__pop, .node--in.is-open .node__pop,
.node--ai:hover .node__pop, .node--ai.is-open .node__pop { transform: translate(-50%, 0) scale(1); }
/* rechte Spalte: Popup öffnet nach links */
.node--out .node__pop, .node--alert .node__pop { right: calc(100% + 14px); top: 50%; transform: translate(6px, -50%) scale(.98); }
.node--out:hover .node__pop, .node--out.is-open .node__pop,
.node--alert:hover .node__pop, .node--alert.is-open .node__pop { transform: translate(0, -50%) scale(1); }

/* Vorteile der Automatisierung */
.ki-benefits {
  width: min(1000px, 92vw); margin: clamp(40px, 6vh, 68px) auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.ki-benefit {
  padding: 24px 22px; border-radius: var(--r-lg);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.ki-benefit b { display: block; font-size: 1.3rem; font-weight: 800; color: var(--cyan); letter-spacing: -.03em; }
.ki-benefit span { display: block; margin-top: 8px; font-size: .92rem; line-height: 1.55; color: rgba(255,255,255,.78); }

.link-arrow--light { color: var(--cyan) !important; }

/* ---- Header passt sich dunklen Abschnitten an (JS: body.lsec-dark-active) */
body.lsec-dark-active .site-header .logo-dark { display: none; }
body.lsec-dark-active .site-header .logo-white { display: block; }
body.lsec-dark-active .site-header .nav a:not(.btn) { color: rgba(255,255,255,.9); }
body.lsec-dark-active .site-header .nav a:not(.btn):hover { color: #fff; background: rgba(255,255,255,.12); }
body.lsec-dark-active .site-header.scrolled {
  background: rgba(21,10,82,.66); box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
body.lsec-dark-active .site-header .nav-toggle span,
body.lsec-dark-active .site-header .nav-toggle span::before,
body.lsec-dark-active .site-header .nav-toggle span::after { background: #fff; }

/* ---- CTA am Ende (dunkle Karte, aus site.css) --------------------------- */
.lsec--cta { padding-top: clamp(48px, 7vh, 90px); }

/* ---- Hilfsklassen ------------------------------------------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 960px) {
  .lsec__inner,
  .lsec--rev .lsec__inner { grid-template-columns: 1fr; gap: 40px; }
  .lsec--rev .lsec__media { order: 1; }
  .lsec--rev .lsec__body  { order: 2; }
  .lsec__body p { max-width: none; }
  .ki-benefits { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 720px) {
  .lsec { padding: 64px 0; }
  .seo-tool__result { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .seo-bars { width: 100%; }
  .seo-tool__inputrow { flex-wrap: wrap; border-radius: var(--r); }
  .seo-tool__go { width: 100%; }

  /* Flow: statische, gestapelte Karten statt absoluter Positionierung */
  .flow__stage { width: 100%; height: auto; display: grid; gap: 12px; }
  .flow__wires { display: none; }
  .node { position: static; transform: none; max-width: none; width: 100%; flex-wrap: wrap; }
  .node:hover, .node.is-active { transform: none; }
  /* Popup wird zum statischen Info-Block unter dem Knoten */
  .node__pop {
    position: static; width: 100%; max-width: none; opacity: 1; visibility: visible;
    pointer-events: auto; transform: none; margin-top: 4px; flex-basis: 100%;
    background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16);
    box-shadow: none; backdrop-filter: none;
  }
  .node--out .node__pop, .node--alert .node__pop,
  .node--in .node__pop, .node--ai .node__pop { position: static; transform: none; inset: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .phone, .phone__reel-glow, .phone__heart, .phone__live,
  .flow__pulse, .node--ai::after, .seo-tool__scan-line, .lsec-hero__scroll svg { animation: none !important; }
  .flow__pulse { opacity: 0; }
  .lbg { transition: none; }
}

/* ==========================================================================
   ELEVATION · Nur die Leistungs-ÜBERSICHT (nicht die Detailseiten, nicht KI).
   Guard: .leistungen-page OHNE .ldetail-page  ⇒  trifft ausschließlich
   leistungen.html.  Ziel: gleiche Premium-Haptik wie die Detailseiten.
   ========================================================================== */
.leistungen-page:not(.ldetail-page) .lsec--hero { position: relative; }
/* Signatur-Hairline oben im Hero */
.leistungen-page:not(.ldetail-page) .lsec--hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; z-index: 3;
  background: linear-gradient(90deg, rgba(82,113,255,0), rgba(82,113,255,.9) 24%, #27E6FF 50%, rgba(82,113,255,.9) 76%, rgba(82,113,255,0));
  opacity: .85;
}
/* Weiches Spotlight hinter dem Hero-Titel */
.leistungen-page:not(.ldetail-page) .lsec--hero::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  top: 4%; left: 50%; width: min(900px, 92%); height: 52%;
  transform: translateX(-50%);
  background: radial-gradient(60% 60% at 50% 40%, rgba(82,113,255,.13), rgba(82,113,255,0) 70%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 84%);
          mask-image: linear-gradient(180deg, #000, transparent 84%);
}
.leistungen-page:not(.ldetail-page) .lsec-hero__inner { position: relative; z-index: 1; }

/* Titel etwas größer & luftiger */
.leistungen-page:not(.ldetail-page) .lsec--hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.9rem); letter-spacing: -.046em; line-height: 1.02;
}
/* Verlaufstext lesbar halten: Navy → Royal statt hellem Cyan */
.leistungen-page:not(.ldetail-page) .lsec--hero .text-grad {
  background: linear-gradient(118deg, var(--navy) 4%, var(--royal) 92%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.leistungen-page:not(.ldetail-page) .lsec--hero .lead {
  font-size: clamp(1.08rem, 1.45vw, 1.3rem); color: #48506B;
}

/* Edlere Bild-Rahmung: tieferer Schatten + feine Verlaufs-Hairline */
.leistungen-page:not(.ldetail-page) .lmedia-photo,
.leistungen-page:not(.ldetail-page) .browser {
  box-shadow: 0 54px 108px -46px rgba(16,8,52,.55), 0 12px 32px -18px rgba(16,8,52,.32);
}
.leistungen-page:not(.ldetail-page) .lmedia-photo { border-radius: var(--r-xl); }
.leistungen-page:not(.ldetail-page) .lmedia-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  padding: 1px;
  background: linear-gradient(150deg, rgba(255,255,255,.72), rgba(82,113,255,.28) 45%, rgba(82,113,255,0) 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* Sanftes Blur-In wie auf den Detailseiten */
@media (prefers-reduced-motion: no-preference) {
  .leistungen-page:not(.ldetail-page) .reveal {
    transition-property: opacity, transform, filter;
    transition-duration: .9s; transition-timing-function: var(--ease);
    filter: blur(9px);
  }
  .leistungen-page:not(.ldetail-page) .reveal.in { filter: blur(0); }
}
