/* Pilot-Scan: Eingabe-Block der Startseite, eigene Seite /pilot und die Show im Vollbild (public/js/pilot.js) */

/* ---- Eingabe-Block ---- */
.ps-band { position: relative; z-index: 2; margin: 0 auto 56px; }
.ps-band-in { position: relative; overflow: hidden; border: 1px solid rgba(0, 212, 255, .35); border-radius: 18px; padding: 44px 48px; background: linear-gradient(120deg, rgba(0, 212, 255, .10), rgba(255, 106, 0, .08) 70%, rgba(10, 12, 18, .6)); display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.ps-band-in::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 4px); pointer-events: none; }
.ps-band h2 { font-size: clamp(32px, 4.6vw, 54px); line-height: .96; margin: 8px 0 12px; }
.ps-band p { color: var(--muted); line-height: 1.6; margin: 0; }
.ps-form { display: flex; gap: 10px; position: relative; flex-wrap: wrap; }
.ps-form .input { flex: 1 1 220px; min-width: 0; font-size: 17px; padding: 15px 16px; }
.ps-form .btn { flex: 0 0 auto; }
.ps-note { position: relative; margin-top: 10px; font-family: var(--mono); font-size: 11px; color: var(--muted-2); line-height: 1.6; }
@media (max-width: 860px) { .ps-band-in { grid-template-columns: 1fr; padding: 28px 22px; gap: 22px; } }

/* ---- eigene Seite ---- */
.ps-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; position: relative; z-index: 2; }
.ps-page-in { width: min(720px, 100%); text-align: center; }
.ps-page h1 { font-size: clamp(38px, 7vw, 72px); line-height: .95; margin: 14px 0; }
.ps-page p { color: var(--muted); line-height: 1.6; }
.ps-page .ps-form { margin-top: 24px; text-align: left; }
.ps-page .ps-note { text-align: center; }
.ps-back { display: inline-block; margin-top: 26px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.ps-shared { display: flex; align-items: center; gap: 18px; text-align: left; margin: 22px 0 8px; padding: 16px; border: 1px solid rgba(255, 106, 0, .5); border-radius: 14px; background: rgba(255, 106, 0, .07); flex-wrap: wrap; }
.ps-shared[hidden] { display: none; }
.ps-shared img { width: 76px; height: 76px; border-radius: 10px; }
.ps-shared div { flex: 1 1 180px; }
.ps-shared b { display: block; font-size: 24px; }
.ps-shared span { color: var(--orange); font-family: var(--mono); font-size: 12px; }

/* ---- Show ---- */
html.ps-open, html.ps-open body { overflow: hidden; }
.ps { position: fixed; inset: 0; z-index: 5000; background: #05060a; color: #f0f4fa; overflow: hidden; animation: ps-in .35s ease; }
@keyframes ps-in { from { opacity: 0; } }
.ps-bg { position: absolute; inset: 0; overflow: hidden; }
.ps-bg i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(90px); opacity: .34; animation: ps-float 26s ease-in-out infinite alternate; }
.ps-bg i:nth-child(1) { left: -22vmax; top: -30vmax; background: #007fa8; }
.ps-bg i:nth-child(2) { right: -28vmax; bottom: -36vmax; background: #a84500; animation-duration: 34s; animation-direction: alternate-reverse; }
.ps-bg i:nth-child(3) { left: 30vw; top: 45vh; width: 38vmax; height: 38vmax; background: #3a1d78; opacity: .28; animation-duration: 21s; }
@keyframes ps-float { to { transform: translate(9vmax, 7vmax) scale(1.18); } }
.ps-shade { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 4px); }
.ps-bar { position: absolute; z-index: 3; top: 14px; left: 16px; right: 16px; display: flex; gap: 5px; }
.ps-bar span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.ps-bar i { display: block; height: 100%; width: 0; background: var(--cyan); }
.ps-tools { position: absolute; z-index: 6; top: 28px; right: 16px; display: flex; gap: 8px; }
.ps-tool { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(5, 6, 10, .6); color: #fff; font-size: 16px; cursor: pointer; }
.ps-tool:hover { border-color: var(--cyan); }
.ps-zone { position: absolute; z-index: 2; top: 80px; bottom: 0; width: 22%; background: none; border: 0; cursor: pointer; }
.ps-zone.left { left: 0; cursor: w-resize; } .ps-zone.right { right: 0; cursor: e-resize; }
.ps-final .ps-zone.right { display: none; }
.ps-final .ps-zone.left { width: 7%; }
.ps-stage { position: absolute; z-index: 3; inset: 64px 0 0; display: grid; place-items: center; padding: 16px clamp(16px, 8vw, 130px) 28px; overflow-y: auto; pointer-events: none; }
.ps-stage a, .ps-stage button, .ps-stage input, .ps-stage img { pointer-events: auto; }

.ps-eyebrow { font-family: var(--mono); letter-spacing: .32em; font-size: clamp(12px, 1.6vw, 15px); color: var(--cyan); }
.ps-eyebrow.red { color: var(--red); }
.ps-big { font-family: var(--sans); font-weight: 800; font-size: clamp(38px, 7.4vw, 96px); line-height: 1; letter-spacing: -.02em; margin: 14px 0 12px; overflow-wrap: anywhere; }
.ps-big.g { color: var(--green); } .ps-big.r { color: var(--red); }
.ps-cap { font-family: var(--mono); color: #c6cfdd; font-size: clamp(13px, 1.7vw, 18px); line-height: 1.5; }
.ps-line { color: #dfe6f0; font-size: clamp(16px, 2vw, 22px); line-height: 1.45; margin: 18px 0 0; max-width: 34em; }
.ps-link { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: 13px; color: var(--cyan); }
.ps-slide { display: flex; align-items: center; justify-content: center; gap: clamp(22px, 5vw, 70px); width: 100%; max-width: 1180px; animation: ps-rise .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes ps-rise { from { opacity: 0; transform: translateY(26px) scale(.985); } }
.ps-copy { min-width: 0; flex: 1 1 auto; }
.ps-slide:not(:has(.ps-img)) { text-align: center; }
.ps-slide:not(:has(.ps-img)) .ps-line { margin-left: auto; margin-right: auto; }
.ps-slide:not(:has(.ps-img)) .ps-stats { justify-content: center; }
.ps-img { flex: 0 0 auto; width: clamp(180px, 31vw, 420px); aspect-ratio: 1; position: relative; }
.ps-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-img.t-char img { border-radius: 16px; box-shadow: 0 0 0 2px var(--cyan), 0 0 70px rgba(0, 212, 255, .35); }
.ps-img.t-ship img { mask-image: radial-gradient(closest-side, #000 60%, transparent 100%); -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent 100%); transform: scale(1.12); animation: ps-drift 16s ease-in-out infinite alternate; }
@keyframes ps-drift { to { transform: scale(1.22) rotate(1.5deg); } }
.k-loss .ps-img.t-ship img { filter: drop-shadow(0 0 40px rgba(255, 60, 60, .55)); }
.ps-stats { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 54px); margin-top: 22px; }
.ps-stat b { display: block; font-family: var(--sans); font-weight: 800; font-size: clamp(36px, 6.4vw, 84px); line-height: 1; font-variant-numeric: tabular-nums; }
.ps-stat span { display: block; margin-top: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--muted); }
.ps-stat.g b { color: var(--green); } .ps-stat.r b { color: var(--red); }
.k-id .ps-big { font-size: clamp(34px, 6.2vw, 80px); }
.k-id .ps-stat b { font-size: clamp(26px, 3.6vw, 48px); }

/* Scan-Anzeige */
.ps-scan { text-align: center; pointer-events: auto; width: min(560px, 100%); }
.ps-ring { position: relative; width: 170px; height: 170px; margin: 0 auto 28px; }
.ps-ring i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--cyan); animation: ps-spin 1.3s linear infinite; }
.ps-ring i:nth-child(2) { inset: 22px; border-top-color: var(--orange); animation-duration: 1.9s; animation-direction: reverse; }
.ps-ring i:nth-child(3) { inset: 46px; border-top-color: #fff; animation-duration: .9s; }
@keyframes ps-spin { to { transform: rotate(360deg); } }
.ps-scan-name { font-family: var(--sans); font-weight: 800; font-size: clamp(30px, 5vw, 56px); margin: 12px 0; overflow-wrap: anywhere; }
.ps-scan-line { font-family: var(--mono); font-size: 13px; color: var(--muted); min-height: 20px; }
.ps-scan .ps-form { margin-top: 22px; }

/* Abschluss */
.ps-slide.verdict { align-items: center; gap: clamp(22px, 4vw, 54px); text-align: left !important; flex-wrap: wrap; }
.ps-v-left { flex: 1 1 340px; min-width: 0; }
.ps-v-right { flex: 1 1 400px; min-width: 0; }
.verdict .ps-big { font-size: clamp(34px, 5vw, 66px); color: var(--orange); }
.verdict .ps-line { margin-top: 8px; }
.ps-gauge { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.ps-gauge-ring { --v: 0; flex: 0 0 auto; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(closest-side, #0a0c12 80%, transparent 81%), conic-gradient(var(--c) calc(var(--v) * 1%), rgba(255, 255, 255, .12) 0); }
.ps-gauge-ring b { font-family: var(--sans); font-size: 38px; font-weight: 800; color: var(--c); }
.ps-gauge span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--muted); }
.ps-gauge strong { display: block; font-size: 28px; color: var(--c); margin-top: 4px; }
.ps-card { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 16px 60px rgba(0, 0, 0, .6); }
.ps-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.ps-actions .btn { padding: 10px 14px; font-size: 11px; }
.ps-hint { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 8px; }
.ps-ours { font-family: var(--mono); font-size: 12px; color: var(--green); margin-right: 6px; }

@media (max-width: 760px) {
  .ps-slide { flex-direction: column; text-align: center; gap: 16px; }
  .ps-slide .ps-line { margin-left: auto; margin-right: auto; }
  .ps-stats { justify-content: center; }
  .ps-img { width: min(56vw, 34vh); }
  .ps-slide.verdict { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
  .ps-stage { display: block; }
  .ps-slide { min-height: 100%; }
  .ps-v-left, .ps-v-right { flex: none; }
  .ps-gauge { justify-content: center; }
  .verdict .ps-big, .verdict .ps-eyebrow { text-align: center; }
  .ps-zone { top: 80px; width: 25%; }
}
@media (prefers-reduced-motion: reduce) { .ps-slide, .ps-img.t-ship img, .ps, .ps-bg i { animation: none; } }
.ps-slide.k-balance .ps-copy { display: flex; flex-direction: column; align-items: center; }
.ps-slide.k-balance .ps-cap { order: 3; margin-top: 24px; }

/* Sprachwahl DE/EN (Formular + Show) */
.ps-lang-row { flex: 1 0 100%; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.ps-tools { align-items: center; }
.ps-tools .ps-lang { background: rgba(5, 6, 10, .6); }

/* Block der Startseite auffälliger: umlaufender Leuchtrand, Lichtstreifen, Beispielkarte, pulsierender Knopf */
@property --ps-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.ps-band-in { border-color: transparent; padding: 52px 56px; background: linear-gradient(120deg, rgba(0, 212, 255, .16), rgba(10, 12, 18, .75) 48%, rgba(255, 106, 0, .17)); box-shadow: 0 0 60px rgba(0, 212, 255, .2), 0 0 110px rgba(255, 106, 0, .13); animation: ps-breathe 4.5s ease-in-out infinite; }
.ps-band-in::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--ps-a), var(--cyan), transparent 28%, var(--orange) 50%, transparent 78%, var(--cyan));
  -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); animation: ps-spin-border 5s linear infinite; }
@keyframes ps-spin-border { to { --ps-a: 360deg; } }
@keyframes ps-breathe { 50% { box-shadow: 0 0 90px rgba(0, 212, 255, .34), 0 0 150px rgba(255, 106, 0, .24); } }
.ps-sweep { position: absolute; top: 0; bottom: 0; left: -30%; width: 22%; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .09), transparent); animation: ps-sweep 6s ease-in-out infinite; }
@keyframes ps-sweep { 0%, 35% { left: -30%; } 100% { left: 115%; } }
.ps-band-text, .ps-band-action { position: relative; min-width: 0; }
.ps-new { display: inline-block; padding: 3px 9px; margin-right: 6px; border-radius: 4px; background: var(--orange); color: #000; font-weight: 800; letter-spacing: .14em; animation: ps-new 1.6s ease-in-out infinite; }
@keyframes ps-new { 50% { box-shadow: 0 0 18px var(--orange); } }
.ps-band h2 { font-size: clamp(38px, 5.6vw, 72px); }
.ps-hot { background: linear-gradient(90deg, var(--orange), #ffd23c, var(--orange)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ps-hot 3.5s linear infinite; }
@keyframes ps-hot { to { background-position: -200% 0; } }
.ps-band p { font-size: 17px; color: #d5dce8; }
.ps-sample { display: block; width: min(100%, 470px); height: auto; margin: 0 auto 26px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 22px 60px rgba(0, 0, 0, .65), 0 0 40px rgba(0, 212, 255, .22); transform: perspective(900px) rotateY(-7deg) rotateX(3deg); animation: ps-hover 6s ease-in-out infinite; }
@keyframes ps-hover { 50% { transform: perspective(900px) rotateY(-3deg) rotateX(1deg) translateY(-10px); } }
.ps-band .ps-form .input { border-color: rgba(0, 212, 255, .55); }
.ps-band .ps-form .input:focus { box-shadow: 0 0 0 2px var(--cyan), 0 0 26px rgba(0, 212, 255, .45); }
.ps-band .ps-form .btn.primary { animation: ps-cta 2s ease-in-out infinite; }
@keyframes ps-cta { 50% { box-shadow: 0 0 30px rgba(0, 212, 255, .85); transform: scale(1.035); } }
@media (max-width: 860px) { .ps-band-in { padding: 30px 20px; } .ps-sample { margin-bottom: 20px; transform: none; animation: none; } }
@media (prefers-reduced-motion: reduce) { .ps-band-in, .ps-band-in::after, .ps-sweep, .ps-new, .ps-hot, .ps-sample, .ps-band .ps-form .btn.primary { animation: none; } .ps-sweep { display: none; } }

/* Block steht unter „Gemeinschaft ist Doktrin“ */
.ps-band { margin-top: 56px; }
