/* ============================================================
   PEARL SKIN — Auftragsrausch Landing v5
   Poliertes Perlmutt-Metall statt stumpfem Grau: helle,
   glänzende Premium-Oberflächen (polished pearl metal, soft
   liquid chrome, frosted glass), feine Lichtkanten oben links,
   dunklere Kanten unten rechts, dezenter irisierender Schimmer
   und leuchtende Blau/Türkis-Signale.
   Letztes Basis-Stylesheet -> Overrides gewinnen. KEINE Token-
   Inversion: Text bleibt dunkel, Flächen bleiben hell.
   ============================================================ */

:root {
  /* --- Perlmutt-Grundplatten: warmes+kühles Licht, nie flaches Grau --- */
  --sheen:     linear-gradient(120deg, #f9fbfe 0%, #eff4fa 38%, #ffffff 50%, #eef5fc 62%, #f7f9fe 100%);
  --sheen-alt: linear-gradient(120deg, #fcfdff 0%, #f4f8fc 44%, #ffffff 51%, #f3f8fd 59%, #fbfdfe 100%);
  /* Irisierender Perlmutt-Schimmer: Blau→Violett→Türkis, sehr dezent */
  --pearl: linear-gradient(120deg,
    rgba(120,175,225,.16) 0%, rgba(172,150,222,.10) 26%,
    rgba(255,255,255,0) 48%, rgba(120,210,215,.13) 70%, rgba(120,172,225,.16) 100%);
  /* Glas-Glanz in der oberen linken Ecke */
  --glint: radial-gradient(120% 80% at 14% -8%, rgba(255,255,255,.95), rgba(255,255,255,0) 46%);
  /* Signal-Akzent: Blau→Türkis (Marken-Leuchten) */
  --signal: linear-gradient(120deg, var(--accent-strong), #1596b4 55%, #1bbccb);

  --metal-plate:     var(--glint), var(--sheen);
  --metal-plate-alt: var(--glint), var(--sheen-alt);
  --metal-premium:     var(--glint), var(--pearl), var(--sheen);
  --metal-premium-alt: var(--glint), var(--pearl), var(--sheen-alt);
  --metal-rim:       rgba(15,30,50,.08);
  --metal-hi:        rgba(255,255,255,.95);

  /* Lichtkante: oben links heller, unten rechts dunkler + Tiefe */
  --bevel: inset 1px 1.5px 0 rgba(255,255,255,.96),
           inset -1px -1px 0 rgba(30,50,75,.06),
           inset 0 0 0 1px rgba(255,255,255,.5),
           inset 0 -10px 16px -12px rgba(30,50,75,.3);
  --gloss-xs:   var(--bevel), 0 1px 2px rgba(15,30,50,.07);
  --gloss-sm:   var(--bevel), 0 6px 16px rgba(15,30,50,.1), 0 1px 3px rgba(15,30,50,.06);
  --gloss-card: var(--bevel), 0 0 0 1px rgba(150,168,190,.22), 0 24px 50px rgba(15,30,50,.15), 0 3px 10px rgba(15,30,50,.07);
  --gloss-lift: var(--bevel), 0 0 0 1px rgba(150,168,190,.26), 0 38px 76px rgba(15,30,50,.21), 0 5px 14px rgba(15,30,50,.09);

  /* Soft Liquid Chrome (helle Buttons/Chips) — poliert mit Reflexband */
  --chrome-silver: linear-gradient(180deg, #ffffff 0%, #f5f8fc 40%, #dde5ee 54%, #cdd8e3 60%, #f0f5fa 78%, #ffffff 100%);
  /* Dunkle Navy-Chrom-Medaille (Primär-Button, wie Logo) */
  --chrome-dark:   radial-gradient(130% 150% at 50% -25%, #2c4d6d 0%, #14293c 40%, #0a1c2e 72%, #061321 100%);
  --chrome-dark-h: radial-gradient(130% 150% at 50% -25%, #356089 0%, #17334d 40%, #0c2236 72%, #081727 100%);

  /* Frosted Premium Glass */
  --glass:     linear-gradient(180deg, rgba(255,255,255,.76) 0%, rgba(255,255,255,.38) 100%);
  --glass-bev: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(120,140,165,.18), 0 4px 14px rgba(15,30,50,.1);
}

/* ---------- Seiten-Hintergrund: Perlweiß mit irisierenden Glows ---------- */
body {
  background:
    radial-gradient(1200px 640px at 50% -12%, rgba(120,165,215,.17), transparent 62%),
    radial-gradient(900px 560px at 88% 8%, rgba(160,150,215,.1), transparent 60%),
    radial-gradient(760px 520px at 6% 30%, rgba(120,205,215,.09), transparent 60%),
    linear-gradient(180deg, #f1f5fa 0%, #edf1f8 52%, #f4f8fc 100%);
  background-attachment: fixed;
}
/* Sehr feines Perl-Finish (Noise + Schimmer) statt stumpfer Fläche */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"),
    repeating-linear-gradient(120deg,
      rgba(255,255,255,.55) 0px, rgba(255,255,255,.55) 1px,
      rgba(90,110,140,.03) 2px, rgba(90,110,140,.03) 4px);
  opacity: .32; mix-blend-mode: soft-light;
}

/* Helle Sektionen: zarte Perl-Abstufung mit irisierendem Einfall */
.section.alt,
.trustband {
  background:
    radial-gradient(880px 420px at 84% 0%, rgba(120,165,215,.1), transparent 62%),
    radial-gradient(720px 380px at 8% 100%, rgba(120,205,215,.07), transparent 60%),
    linear-gradient(180deg, #edf1f8 0%, #f4f8fc 100%);
}

/* Dunkle Sektionen: glänzendes Navy mit Lichteinfall (kein kaltes Graphit) */
.section.dark {
  background:
    radial-gradient(900px 520px at 82% 4%, rgba(80,150,200,.22), transparent 60%),
    radial-gradient(700px 460px at 8% 90%, rgba(30,180,200,.1), transparent 60%),
    linear-gradient(158deg, #122335 0%, #0a1826 46%, #081420 74%, #0e1f2f 100%);
  position: relative;
}
.section.dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: repeating-linear-gradient(120deg,
    rgba(255,255,255,.05) 0px, rgba(255,255,255,.05) 1px,
    rgba(255,255,255,0) 2px, rgba(255,255,255,0) 4px);
  opacity: .55;
}
.section.dark > * { position: relative; z-index: 1; }
/* Command-Moment: feine Signalachsen im System-Kapitel */
#system::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    linear-gradient(180deg, transparent 4%, rgba(27,188,203,.26) 32%, rgba(22,119,184,.12) 68%, transparent 96%) no-repeat 9% 0 / 1px 100%,
    linear-gradient(180deg, transparent 8%, rgba(22,119,184,.2) 42%, rgba(27,188,203,.1) 72%, transparent 94%) no-repeat 91% 0 / 1px 100%,
    radial-gradient(3px 3px at 9% 32%, rgba(27,188,203,.75), transparent 70%) no-repeat,
    radial-gradient(3px 3px at 91% 42%, rgba(120,180,230,.65), transparent 70%) no-repeat;
}
/* Ausnahme: Logo-Wasserzeichen bleibt absolute Deko-Ebene — sonst
   fällt es in den Layout-Fluss und schiebt den Inhalt nach unten */
.section.dark > .sys-watermark { position: absolute; z-index: 0; }

/* ---------- Große Headlines: dunkler Metallverlauf (lesbar, edel) ---------- */
.hero h1, .sec-head:not(.center) h2 {
  background: linear-gradient(178deg, #1c2c3d 0%, #0f1c2b 58%, #2a3f55 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sec-head.center h2 { color: var(--text-heading); }
.section.dark .sec-lead { color: rgba(203,220,236,.8); }
.section.dark .sec-head h2,
.footer h2 {
  background: linear-gradient(180deg, #ffffff 0%, #d6e4f2 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Header: frosted Glass mit Chrom-Unterkante ---------- */
.header { background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(248,251,254,.68)); }
.header.scrolled {
  border-bottom-color: rgba(15,30,50,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 6px 22px rgba(15,30,50,.08);
}

/* ============================================================
   PERL-PLATTEN — alle weißen Karten/Panels
   ============================================================ */
.panel, .engine, .story-visual, .cockpit .panel {
  background: var(--metal-plate) !important;
  border-color: var(--metal-rim);
  box-shadow: var(--gloss-card);
}
.engine { box-shadow: var(--gloss-lift); }

.hf-card, .hero-ticker, .eng-card, .mq-badge,
.sv-carry, .sv-brandcard, .sv-lead-card, .ck-card, .cs-card,
.p-bid, .diag-chip, .gq-opt, .tl-chip, .fw-node i,
.p-lead-card, .sv-cal-slot, .sv-step-mini, .pillar,
.ck-col-head b, .about-system span {
  background: var(--metal-plate-alt);
  border-color: var(--metal-rim);
  box-shadow: var(--gloss-sm);
}

/* ============================================================
   BUTTONS — soft liquid chrome
   ============================================================ */
.btn-primary {
  position: relative; overflow: hidden;
  background: var(--chrome-dark);
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 10px 26px rgba(7,24,39,.34), 0 2px 6px rgba(7,24,39,.22);
}
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -70%; width: 52%; height: 100%;
  /* AR-Doppelstrich: zwei parallele Lichtbahnen im Marken-Winkel */
  background: linear-gradient(120deg,
    transparent 26%, rgba(255,255,255,.5) 36%, transparent 46%,
    transparent 54%, rgba(255,255,255,.32) 62%, transparent 72%);
  transform: skewX(-30deg); transition: left .6s ease; pointer-events: none;
}
.btn-primary:hover {
  background: var(--chrome-dark-h);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.36), inset 0 -2px 0 rgba(27,188,203,.55),
    0 16px 36px rgba(7,24,39,.42), 0 0 30px rgba(27,188,203,.3);
}
.btn-primary:hover::after { left: 120%; }

.btn-white {
  background: var(--chrome-silver); color: #0b1a28;
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 6px 18px rgba(15,30,50,.14);
}
.btn-white:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,1), 0 10px 26px rgba(15,30,50,.2); }

.btn-secondary {
  background: linear-gradient(180deg, #ffffff, #f1f5f9);
  border: 1px solid var(--metal-rim);
  box-shadow: var(--gloss-xs);
}
.btn-secondary:hover {
  border-color: rgba(15,30,50,.16);
  box-shadow: var(--gloss-sm);
}

/* ============================================================
   FROSTED-GLAS-AKZENTE — Pills, Tags, Browser-Chrome
   ============================================================ */
.demo-tag, .b-addr, .mq-badge, .about-system span {
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px) saturate(1.25);
  backdrop-filter: blur(8px) saturate(1.25);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: var(--glass-bev);
}
.hero-ticker {
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  backdrop-filter: blur(10px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: var(--glass-bev);
}
.b-dots i {
  background: radial-gradient(60% 60% at 35% 30%, #ffffff, #c3cedb 55%, #94a4b6 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(15,30,50,.25);
}

/* ---------- Footer: glänzendes Navy ---------- */
.footer {
  background:
    radial-gradient(700px 400px at 15% 0%, rgba(80,150,200,.18), transparent 60%),
    linear-gradient(160deg, #0e1f2f 0%, #081420 60%, #0c1a29 100%);
}

/* ============================================================
   PREMIUM-VEREDELUNG — Perlmutt-Schimmer auf Schlüssel-Flächen
   ============================================================ */
.engine, .story-visual, .fw-center, .hf-card, .hero-ticker,
.ck-card.traveler, .sv-lead-card, .p-lead-card, .sv-cal-slot,
.ld-card, .cs-card, .pmz-card, .pq-card, .pillar {
  background: var(--metal-premium) !important;
}
.ck-card.traveler, .sv-lead-card, .p-lead-card, .sv-cal-slot {
  box-shadow: var(--gloss-sm), inset 0 2px 0 rgba(255,255,255,.92) !important;
}
.ck-card.traveler {
  border-color: transparent !important;
  box-shadow: 0 0 0 1px rgba(22,119,184,.32), 0 16px 40px rgba(22,119,184,.2), inset 0 2px 0 rgba(255,255,255,.95) !important;
}
.pq-card {
  box-shadow:
    inset 1px 1.5px 0 rgba(255,255,255,.96), inset -1px -1px 0 rgba(30,50,75,.07),
    0 0 0 1px rgba(150,168,190,.2),
    0 44px 88px rgba(10,25,45,.24), 0 10px 26px rgba(10,25,45,.1) !important;
}

/* Navy-Premiumflächen (Engine-Kern, Prüf-Gate, Cockpit-Sidebar):
   Lichtkante oben + weiches inneres Leuchten */
.eng-core, .ck-side, .pv-gate, .pmz-badge, .fw-medallion {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24), inset 0 0 24px rgba(70,140,200,.14), 0 14px 32px rgba(7,24,39,.32);
}

/* Kalender-Slots (Engine): Pearl-Glass mit blauem Glow, wenn gefüllt */
.eng-day.filled {
  background: var(--metal-premium-alt) !important;
  border-color: rgba(22,119,184,.34) !important;
  box-shadow: inset 0 1px 0 #fff, 0 0 14px rgba(22,119,184,.2), 0 6px 14px rgba(15,30,50,.1);
}

/* Methoden-Ring: Nodes als glossy Glass-Tiles */
.fw-node i {
  background: var(--metal-premium-alt);
  box-shadow: var(--gloss-sm);
}
.fw-node.on i {
  background: var(--chrome-dark) !important;
  border-color: rgba(255,255,255,.2) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 12px 28px rgba(7,24,39,.26) !important;
}
.fw-node.now i {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 16px 36px rgba(7,24,39,.3), 0 0 26px rgba(60,140,200,.3) !important;
}

/* Cockpit + Engine + Methode-Zentrum: langsamer Shimmer-Sweep */
.cockpit, .engine, .fw-center, .ckp { position: relative; overflow: hidden; }
.cockpit, .ckp { background: var(--metal-premium) !important; }
@keyframes shimmerSweep {
  0%   { transform: translateX(-130%) skewX(-30deg); opacity: 0; }
  6%   { opacity: .85; }
  24%  { transform: translateX(330%) skewX(-30deg); opacity: 0; }
  100% { transform: translateX(330%) skewX(-30deg); opacity: 0; }
}
.cockpit::before, .engine::before, .fw-center::before, .ckp::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%;
  pointer-events: none; z-index: 6;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.55) 46%, rgba(190,228,242,.3) 55%, transparent);
  mix-blend-mode: soft-light;
  animation: shimmerSweep 9s ease-in-out infinite 1.6s;
}
.engine::before { animation-delay: 3.4s; }
.fw-center::before { animation-delay: 5.2s; border-radius: inherit; }
.ckp::before { animation-delay: 7s; }

/* Türkis-Signalakzent auf Live-/Marken-Punkten */
.ht-live i, .badge .dot { background: var(--signal); }

/* ============================================================
   LAYERING — Hintergrund → Glow → Linien → Signalpunkte →
   Karten → Icons/Badges → Labels → Aktiv-Highlights
   ============================================================ */
/* Hero-Engine: Linien (SVG) ganz unten, Ursprünge darüber,
   Kern/Karten/Kalender über den Linien, Labels zuoberst */
.engine-svg { z-index: 0; }
.eng-zone.eng-region { z-index: 1; }
.eng-origin { z-index: 1; }
.eng-reject { z-index: 2; }
.eng-zone.eng-out, .eng-cal { z-index: 3; position: absolute; }
.eng-core { z-index: 4; }
.eng-zone-label { position: relative; z-index: 5; }

/* Sticky-Story: Pipeline-Linie hinter den Stationen */
.story-visual .sv-rail, .sv-pipe-line { z-index: 0; }
.sv-pstage, .sv-scene, .sv-carry { position: relative; z-index: 1; }

/* Methoden-Kreis: Ring hinter den Icon-Feldern, Zentrum zuoberst */
.flywheel > svg { z-index: 0; }
#fwNodes { z-index: 2; }
.fw-center { z-index: 4; }

/* Ablauf-Timeline: Leitung hinter den Stationen */
.timeline .tl-flow, .timeline .tl-fill { z-index: 0; }
.tl-steps li { position: relative; z-index: 1; }
.tl-signal { z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  body { background-attachment: scroll; }
  .btn-primary::after, .cockpit::before, .engine::before, .fw-center::before, .ckp::before, .pq-shine { display: none; }
  .pq-stage.on .pq-card { animation: none; }
}

/* Mobile: ruhige Motion — Dauerloops aus, Hintergrund entlasten.
   Shimmer-Pseudos KOMPLETT ausblenden (nur animation:none friert den
   Lichtstreifen als statische Naht ein -> „zwei Hälften"). */
@media (max-width: 760px) {
  body { background-attachment: scroll; }
  .cockpit::before, .engine::before, .fw-center::before, .ckp::before { display: none !important; }
  .pq-stage.on .pq-card { animation: none; }
  .iphone-tilt { animation: none; }
}

/* ============================================================
   AR-BUTTON-SIGNATUR — asymmetrische Ecken nach der Marken-
   Geometrie (weicher R-Bogen oben rechts, scharfer A-Fuß unten
   links) + Signal-Unterkante beim Hover
   ============================================================ */
.btn { border-radius: 15px 17px 15px 6px; }
.btn-lg { border-radius: 17px 20px 17px 7px; }
.btn-sm { border-radius: 12px 14px 12px 5px; }
.btn-full { border-radius: 15px 17px 15px 6px; }
.btn-white:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,1), inset 0 -2px 0 rgba(27,188,203,.45), 0 10px 26px rgba(15,30,50,.2); }
.btn-secondary:hover { box-shadow: var(--gloss-sm), inset 0 -2px 0 rgba(22,119,184,.3); }
