/* ════════════════════════════════════════════════════════════════════════
   Produktseite v2 (11.10.)
   Jede Funktion mit ihrem Film aus der echten App als Live-Vorschau, Glas-Leiste mit gleitender
   Markierung, Kacheln mit kleinen Bewegungsbildern. Skript: product.js
   ════════════════════════════════════════════════════════════════════════ */

@property --pd-a {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

/* ── Hero ───────────────────────────────────────────────────────────── */

.pd-hero h1 {
  max-width: none;
  font-size: var(--fs-h1);
  font-weight: var(--display-weight);
  font-optical-sizing: auto;
  letter-spacing: var(--display-track);
  line-height: 1.02;
  color: var(--display-ink);
}
.pd-l1,
.pd-l2 {
  display: block;
  /* nur so breit wie der Text: bg.js misst die Textkante, um das Logo daneben zu setzen */
  width: fit-content;
  /* Luft für Unterlängen und den Verlauf — nichts wird abgeschnitten */
  padding: 0.02em 0.06em 0.08em;
  margin: -0.02em -0.06em -0.08em;
}
.pd-grad {
  position: relative;
  color: transparent;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
}
.pd-grad::after {
  content: '';
  position: absolute;
  inset: 18% -4% -6%;
  z-index: -1;
  border-radius: 50%;
  background: linear-gradient(92deg, rgba(126, 241, 216, 0.4), rgba(124, 200, 255, 0.36) 40%, rgba(150, 170, 255, 0.36));
  filter: blur(34px);
  opacity: 0.18;
  pointer-events: none;
}
.pd-hero .lead {
  max-width: 46ch;
  margin-top: 24px;
  font-size: clamp(1.02rem, 1.2vw, 1.12rem);
  line-height: 1.62;
  color: #a3a5ae;
}
.pd-hero .btn-row {
  margin-top: 34px;
}
@keyframes pd-in {
  from {
    opacity: 0;
    translate: 0 16px;
  }
}
.pd-in {
  animation: pd-in 0.85s var(--ease) both;
  animation-delay: var(--d, 0s);
}

/* ── Leiste: schwebende Glas-Insel unter der Kopfzeile ─────────────── */

.pd-nav {
  position: sticky;
  top: calc(var(--header-h) - 1px);
  z-index: 40;
  display: flex;
  justify-content: center;
  margin-top: -6px;
  padding: 0 12px;
  pointer-events: none;
}
.pd-nav-in {
  position: relative;
  max-width: min(1088px, 100%);
  padding: 5px;
  border-radius: 17px;
  background: linear-gradient(180deg, rgba(24, 27, 36, 0.72), rgba(10, 12, 17, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.085);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 20px 50px -20px rgba(0, 0, 0, 0.9),
    0 2px 12px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  pointer-events: auto;
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), opacity 0.4s var(--ease), translate 0.5s var(--ease);
}
.pd-nav.is-gone .pd-nav-in {
  opacity: 0;
  translate: 0 -14px;
  pointer-events: none;
}
.pd-nav.is-stuck .pd-nav-in {
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 24px 60px -18px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(0, 0, 0, 0.35);
}
.pd-nav-track {
  position: relative;
  display: flex;
  gap: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.pd-nav-track::-webkit-scrollbar {
  display: none;
}
.pd-nav-track.is-overflow {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
}
.pd-nav a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 520;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}
.pd-nav a .i {
  width: 16px;
  height: 16px;
  opacity: 0.7;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
}
.pd-nav a:hover {
  color: var(--text);
}
.pd-nav a.is-active {
  color: #fff;
}
.pd-nav a.is-active .i {
  opacity: 1;
  color: #bfe9ff;
}
/* gleitende Markierung mit Lichtfuge = Fortschritt im aktiven Kapitel */
.pd-nav-hl {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: var(--w, 0px);
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 10px 26px -12px rgba(56, 182, 255, 0.55);
  transform: translateX(var(--x, 0px));
  opacity: 0;
  transition: transform 0.55s var(--ease), width 0.55s var(--ease), opacity 0.35s var(--ease);
  pointer-events: none;
}
.pd-nav-hl.is-on {
  opacity: 1;
}
.pd-nav-hl.is-instant {
  transition: none;
}
.pd-nav-hl::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 1px;
  border-radius: 1px;
  background: var(--grad);
  box-shadow: 0 0 8px rgba(56, 182, 255, 0.7);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

/* ── Kapitel ────────────────────────────────────────────────────────── */

.pd-ch {
  --hue: 56, 182, 255;
  position: relative;
  isolation: isolate;
  padding: clamp(104px, 12vw, 168px) 0 clamp(40px, 5vw, 64px);
  scroll-margin-top: 0;
}
.pd-ch:first-of-type {
  padding-top: clamp(72px, 8vw, 112px);
}
.pd-amb {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(52% 38% at 50% 62%, rgba(var(--hue), 0.11), transparent 72%),
    radial-gradient(30% 24% at 50% 64%, rgba(var(--hue), 0.07), transparent 70%);
  opacity: var(--amb, 0);
}
.pd-head {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: end;
  gap: 24px 72px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.pd-head h2 {
  margin: 0;
  max-width: 15ch;
  font-size: var(--fs-h2);
  font-weight: var(--display-weight);
  font-optical-sizing: auto;
  letter-spacing: var(--display-track);
  line-height: 1.04;
  color: var(--display-ink);
}
.pd-intro p {
  margin: 0;
  max-width: 56ch;
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.66;
  color: #a3a5ae;
}
.pd-plan {
  font-weight: 550;
  color: #d4dbef;
}

/* Bühne: das echte App-Fenster, fährt beim Hereinscrollen aus der Schräge in die Fläche */
.pd-stage {
  margin: 0;
  perspective: 2000px;
  perspective-origin: 50% 0%;
}
.pd-tilt {
  --k: 1;
  transform-origin: 50% 0%;
  transform: translate3d(0, calc(var(--k) * 56px), 0) rotateX(calc(var(--k) * 16deg)) rotateY(calc(var(--k) * var(--ry, -5deg))) scale(calc(1 - var(--k) * 0.07));
  opacity: calc(1 - var(--k) * 0.55);
  will-change: transform, opacity;
}
.pd-ch.is-flip .pd-tilt {
  --ry: 5deg;
}
.pd-win {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  background: #0b0d12 center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 60px 140px -50px rgba(0, 0, 0, 0.95),
    0 0 140px -40px rgba(var(--hue), 0.42);
}
/* Licht läuft um die Kante, solange der Film spielt — wie das Licht in den Fugen */
.pd-win::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--pd-a), transparent 0deg 250deg, rgba(var(--hue), 0.15) 290deg, rgba(var(--hue), 0.95) 340deg, rgba(255, 255, 255, 0.9) 352deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.8s var(--ease);
  animation: pd-spin 9s linear infinite paused;
  pointer-events: none;
}
.pd-stage.is-playing .pd-win::after {
  opacity: 0.85;
  animation-play-state: running;
}
@keyframes pd-spin {
  to {
    --pd-a: 360deg;
  }
}
.pd-video {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}
.pd-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(4, 5, 8, 0.62), transparent 26%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.pd-ctl {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.pd-win:hover .pd-shade,
.pd-win:focus-within .pd-shade,
.pd-stage.is-paused .pd-shade,
.pd-win:hover .pd-ctl,
.pd-win:focus-within .pd-ctl,
.pd-stage.is-paused .pd-ctl {
  opacity: 1;
  transform: none;
}
.pd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  min-width: 38px;
  padding: 0 11px;
  justify-content: center;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 550;
  color: #fff;
  background: rgba(14, 16, 22, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  transition: background 0.2s, border-color 0.2s;
}
.pd-btn:hover {
  background: rgba(30, 34, 44, 0.75);
  border-color: rgba(255, 255, 255, 0.26);
}
.pd-full {
  padding: 0 15px 0 13px;
}
.pd-btn .i {
  width: 16px;
  height: 16px;
}
.pd-ic-play {
  display: none;
}
.pd-stage.is-paused .pd-ic-play {
  display: block;
}
.pd-stage.is-paused .pd-ic-pause {
  display: none;
}
.pd-prog {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 2px;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}
.pd-prog i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(var(--hue), 0.35), rgba(var(--hue), 1));
  box-shadow: 0 0 10px rgba(var(--hue), 0.8);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

/* Punkte unter der Bühne */
.pd-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(40px, 4.5vw, 56px);
}
.pd-pt {
  display: flex;
  gap: 15px;
  padding: 26px 28px 22px 0;
  border-top: 1px solid var(--line);
}
.pd-pt:not(:nth-child(3n + 1)) {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}
.pd-pt-ic {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: color-mix(in srgb, rgb(var(--hue)) 55%, #fff);
  background: rgba(var(--hue), 0.09);
  border: 1px solid rgba(var(--hue), 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.pd-pt-ic .i {
  width: 17px;
  height: 17px;
}
.pd-pt b {
  display: block;
  margin: 7px 0 7px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.pd-pt p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}
.pd-acts {
  margin-top: 30px;
}

/* ── Rund ums Raster: Kacheln mit Bewegungsbild ───────────────────── */

.pd-more,
.pd-safe {
  position: relative;
  padding: clamp(120px, 13vw, 176px) 0 clamp(40px, 5vw, 72px);
}
.pd-safe {
  padding-bottom: clamp(96px, 10vw, 140px);
}
.pd-head.is-solo {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
}
.pd-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.pd-tile {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(21, 24, 32, 0.92), rgba(11, 13, 18, 0.92));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.3s var(--ease), translate 0.4s var(--ease);
}
.pd-tile:hover {
  border-color: var(--line-2);
  translate: 0 -3px;
}
.pd-tile.is-wide {
  grid-column: span 2;
}
.pd-art {
  position: relative;
  display: grid;
  flex: 1;
  place-items: center;
  min-height: 180px;
  overflow: hidden;
}
.pd-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 60% at 50% 60%, rgba(56, 182, 255, 0.08), transparent 70%);
}
.pd-tile-tx {
  padding: 0 28px 28px;
}
.pd-tile-tx b {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.pd-tile-tx b .i {
  width: 18px;
  height: 18px;
  color: var(--ink-accent);
}
.pd-tile-tx p {
  margin: 9px 0 0;
  max-width: 54ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}
/* Bewegungsbilder laufen nur, solange die Kachel sichtbar ist */
.pd-art * {
  animation-play-state: paused !important;
}
.pd-tile.is-live .pd-art * {
  animation-play-state: running !important;
}

/* Teammates: drei Agenten, Erinnerungen leuchten auf, Übergabe läuft als Licht */
.pa-mates {
  position: relative;
  display: flex;
  gap: 64px;
}
.pa-mates::before {
  content: '';
  position: absolute;
  left: 28px;
  right: 28px;
  top: 28px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
}
.pa-mates::after {
  content: '';
  position: absolute;
  top: 27px;
  left: 28px;
  width: 60px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, #bfe9ff, transparent);
  box-shadow: 0 0 12px rgba(56, 182, 255, 0.8);
  animation: pa-pass 4.8s var(--ease-io) infinite;
}
@keyframes pa-pass {
  0%,
  12% {
    translate: 0 0;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  50% {
    translate: 120px 0;
    opacity: 1;
  }
  58%,
  100% {
    translate: 120px 0;
    opacity: 0;
  }
}
.pa-mate {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
}
.pa-mate i {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 34%, #1b1f29), #12151c);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  box-shadow: 0 0 30px -8px color-mix(in srgb, var(--c) 60%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.pa-mate em {
  position: absolute;
  bottom: -22px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c);
  opacity: 0.18;
  animation: pa-mem 3.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.5s);
}
.pa-mate em:nth-of-type(1) {
  left: 11px;
}
.pa-mate em:nth-of-type(2) {
  left: 24px;
  animation-delay: calc(var(--i) * 0.5s + 0.3s);
}
.pa-mate em:nth-of-type(3) {
  left: 37px;
  animation-delay: calc(var(--i) * 0.5s + 0.6s);
}
@keyframes pa-mem {
  0%,
  100% {
    opacity: 0.16;
  }
  40% {
    opacity: 0.95;
    box-shadow: 0 0 10px var(--c);
  }
}

/* Chat: Frage, Tippen, Antwort strömt herein */
.pa-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(260px, 70%);
}
.pa-bub {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 30px;
  width: 78%;
  padding: 0 14px;
  border-radius: 14px 14px 14px 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.pa-bub.is-me {
  align-self: flex-end;
  width: 62%;
  border-radius: 14px 14px 4px 14px;
  background: linear-gradient(120deg, rgba(56, 182, 255, 0.32), rgba(77, 107, 255, 0.3));
  border-color: rgba(120, 170, 255, 0.3);
}
.pa-bub.is-short {
  width: 40%;
  opacity: 0;
  animation: pa-fade 5s var(--ease) infinite;
}
.pa-bub i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cfd5e2;
  animation: pa-dot 1.2s ease-in-out infinite;
}
.pa-bub i:nth-child(2) {
  animation-delay: 0.15s;
}
.pa-bub i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes pa-dot {
  0%,
  60%,
  100% {
    opacity: 0.25;
    translate: 0 0;
  }
  30% {
    opacity: 1;
    translate: 0 -3px;
  }
}
@keyframes pa-fade {
  0%,
  55% {
    opacity: 0;
    translate: 0 8px;
  }
  65%,
  92% {
    opacity: 1;
    translate: 0 0;
  }
  100% {
    opacity: 0;
  }
}

/* Skills: drei Karten fächern sich auf */
.pa-skills {
  position: relative;
  width: 120px;
  height: 92px;
}
.pa-skills span {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(160deg, #1f2430, #12151c);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  animation: pa-fan 5s var(--ease-io) infinite;
}
.pa-skills span::before,
.pa-skills span::after {
  content: '';
  position: absolute;
  left: 16px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
}
.pa-skills span::before {
  top: 22px;
  width: 54%;
  background: linear-gradient(90deg, rgba(69, 240, 201, 0.6), rgba(56, 182, 255, 0.5));
}
.pa-skills span::after {
  top: 38px;
  width: 68%;
}
.pa-skills span:nth-child(1) {
  --r: -14deg;
  --x: -34px;
}
.pa-skills span:nth-child(2) {
  --r: 0deg;
  --x: 0px;
}
.pa-skills span:nth-child(3) {
  --r: 14deg;
  --x: 34px;
}
@keyframes pa-fan {
  0%,
  15%,
  85%,
  100% {
    transform: none;
  }
  40%,
  70% {
    transform: translateX(var(--x)) rotate(var(--r));
  }
}

/* Board: eine Karte wandert durch die Spalten, „Done“ bleibt dir vorbehalten */
.pa-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 64px);
  gap: 10px;
}
.pa-col {
  display: flex;
  flex-direction: column;
  gap: 7px;
  height: 118px;
  padding: 9px 7px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.pa-col i {
  height: 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
}
.pa-col:nth-child(4) {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.1);
}
.pa-col:nth-child(4) i {
  opacity: 0;
}
.pa-card {
  position: absolute;
  left: 7px;
  bottom: 18px;
  width: 50px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(120deg, #3fd9b8, #4da2ff);
  box-shadow: 0 0 18px rgba(56, 182, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: pa-move 6s var(--ease-io) infinite;
}
@keyframes pa-move {
  0%,
  12% {
    translate: 0 0;
  }
  28%,
  42% {
    translate: 74px 0;
  }
  58%,
  80% {
    translate: 148px 0;
  }
  92%,
  100% {
    translate: 222px 0;
    filter: saturate(0.2) brightness(1.4);
  }
}

/* Routinen: Zeiger läuft, Zeitpunkte leuchten auf */
.pa-clock {
  position: relative;
  width: 112px;
  height: 112px;
}
.pa-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle, rgba(56, 182, 255, 0.08), transparent 70%);
}
.pa-hand {
  position: absolute;
  left: 50%;
  top: 14px;
  width: 2px;
  height: 42px;
  margin-left: -1px;
  border-radius: 2px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.2), #bfe9ff);
  box-shadow: 0 0 10px rgba(56, 182, 255, 0.7);
  transform-origin: 50% 42px;
  animation: pa-turn 8s linear infinite;
}
.pa-tick {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(calc(var(--i) * 90deg)) translateY(-56px);
  animation: pa-ping 8s linear infinite;
  animation-delay: calc(var(--i) * 2s);
}
@keyframes pa-turn {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pa-ping {
  0%,
  3% {
    background: #bfe9ff;
    box-shadow: 0 0 14px rgba(56, 182, 255, 0.9);
  }
  18%,
  100% {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
  }
}

/* MCP-Brücke: Daten fließen zwischen Agent und dem weißen Kern */
.pa-mcp {
  display: flex;
  align-items: center;
}
.pa-node {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(160deg, #262c3a, #12151c);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.pa-node.is-core {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(160deg, #ffffff, #dfe8f7);
  box-shadow: 0 0 34px rgba(170, 210, 255, 0.55), 0 0 0 8px rgba(255, 255, 255, 0.04);
}
.pa-wire {
  position: relative;
  width: 210px;
  height: 1px;
  margin: 0 12px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
}
.pa-wire i {
  position: absolute;
  top: -2px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #bfe9ff;
  box-shadow: 0 0 10px rgba(56, 182, 255, 0.9);
  animation: pa-flow 2.4s linear infinite;
}
.pa-wire i:nth-child(2) {
  animation-delay: 0.8s;
}
.pa-wire i:nth-child(3) {
  animation-delay: 1.6s;
  animation-direction: reverse;
  background: #b4f5e4;
  box-shadow: 0 0 10px rgba(69, 240, 201, 0.9);
}
@keyframes pa-flow {
  from {
    left: 0;
    opacity: 0;
  }
  15%,
  85% {
    opacity: 1;
  }
  to {
    left: calc(100% - 5px);
    opacity: 0;
  }
}

/* ── Sicherheit: sechs Panes, Licht läuft durch die Fugen ─────────── */

.pd-guards-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(17, 19, 26, 0.9), rgba(10, 12, 16, 0.9));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 40px 100px -50px rgba(0, 0, 0, 0.9);
}
.pd-guards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pd-guard {
  padding: 36px 34px 34px;
  min-height: 216px;
}
.pd-guard-ic {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 13px;
  color: #cfe6ff;
  background: linear-gradient(160deg, rgba(56, 182, 255, 0.16), rgba(77, 107, 255, 0.06));
  border: 1px solid rgba(120, 180, 255, 0.22);
  box-shadow: 0 0 26px -8px rgba(56, 182, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.pd-guard-ic .i {
  width: 19px;
  height: 19px;
}
.pd-guard b {
  display: block;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.pd-guard p {
  margin: 9px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}
.pd-seam {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.075);
  pointer-events: none;
}
.pd-seam.is-h {
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
}
.pd-seam.is-v1,
.pd-seam.is-v2 {
  top: 0;
  bottom: 0;
  width: 1px;
}
.pd-seam.is-v1 {
  left: 33.333%;
}
.pd-seam.is-v2 {
  left: 66.666%;
}
.pd-seam::after {
  content: '';
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(69, 240, 201, 0.9), #bfe9ff, rgba(155, 92, 255, 0.85), transparent);
  box-shadow: 0 0 12px rgba(56, 182, 255, 0.8);
}
.pd-seam.is-h::after {
  top: 0;
  left: 0;
  width: 26%;
  height: 1px;
  animation: pd-run-x 7s var(--ease-io) infinite;
}
.pd-seam.is-v1::after,
.pd-seam.is-v2::after {
  left: 0;
  top: 0;
  width: 1px;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(69, 240, 201, 0.9), #bfe9ff, rgba(155, 92, 255, 0.85), transparent);
  animation: pd-run-y 7s var(--ease-io) infinite;
}
.pd-seam.is-v2::after {
  animation-delay: 3.5s;
}
@keyframes pd-run-x {
  from {
    translate: -110% 0;
  }
  to {
    translate: 400% 0;
  }
}
@keyframes pd-run-y {
  from {
    translate: 0 -110%;
  }
  to {
    translate: 0 300%;
  }
}

/* ── Anpassung ──────────────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .pd-head,
  .pd-head.is-solo {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 22px;
  }
  .pd-points {
    grid-template-columns: minmax(0, 1fr);
  }
  .pd-pt,
  .pd-pt:not(:nth-child(3n + 1)) {
    padding: 22px 0 18px;
    border-left: 0;
  }
  .pd-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pd-guards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pd-seam {
    display: none;
  }
  .pd-guard {
    border-top: 1px solid var(--line);
  }
  .pd-guard:nth-child(-n + 2) {
    border-top: 0;
  }
  .pd-guard:nth-child(2n) {
    border-left: 1px solid var(--line);
  }
}
@media (max-width: 680px) {
  .pd-nav {
    padding: 0 8px;
  }
  .pd-nav a {
    height: 36px;
    padding: 0 12px;
  }
  .pd-nav-hl {
    height: 36px;
  }
  .pd-win {
    border-radius: 13px;
  }
  .pd-ctl {
    left: 10px;
    right: 10px;
    bottom: 10px;
    opacity: 1;
    transform: none;
  }
  .pd-btn {
    height: 32px;
    min-width: 32px;
  }
  .pd-full {
    padding: 0 9px;
  }
  .pd-full span {
    display: none;
  }
  .pd-bento {
    grid-template-columns: minmax(0, 1fr);
  }
  .pd-tile.is-wide {
    grid-column: auto;
  }
  .pd-tile {
    min-height: 280px;
  }
  .pa-mates {
    gap: 40px;
  }
  .pa-wire {
    width: 140px;
  }
  .pd-guards {
    grid-template-columns: minmax(0, 1fr);
  }
  .pd-guard,
  .pd-guard:nth-child(2) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .pd-guard:first-child {
    border-top: 0;
  }
  .pd-guard:nth-child(2n) {
    border-left: 0;
  }
  .pd-guard {
    min-height: 0;
    padding: 28px 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pd-in {
    animation: none;
  }
  .pd-tilt {
    --k: 0 !important;
  }
  .pd-art *,
  .pd-tile.is-live .pd-art *,
  .pd-seam::after,
  .pd-win::after {
    animation: none !important;
  }
}
