/* ==========================================================================
   Hero-Video „Der Chip ist der Aufzug" (nur Startseite)
   Das App-Icon im Hero (Chip mit zwei Aufzugstüren) öffnet das Werbevideo: Hover öffnet die Türen einen Spalt,
   ein Klick lässt das Icon genau an die Stelle fliegen, an der es im ersten Videobild steht (360/1920 der
   Videobreite, mittig) – das Video übernimmt ohne sichtbaren Schnitt. Logik: js/video-chip.js.
   Eigenes Stylesheet statt Tailwind-Klassen, damit kein Tailwind-Build nötig ist.
   ⚠️ Türfeld-Koordinaten (1024er-Icon-Einheiten) sind am PNG vermessen und müssen zur Video-Einleitung passen
   (Marketing/werbevideo/komposition/intro.html).
   ========================================================================== */
.vc-wrap { position: relative; display: flex; flex-direction: column; align-items: center; margin: 0 auto 2rem; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; }
.vc-wrap:focus-visible { outline: none; }
.vc-wrap:focus-visible .vc-chip { outline: 3px solid #5eead4; outline-offset: 6px; }
.vc-chip { position: relative; display: block; border-radius: 22%;
  transition: filter .35s, transform .35s cubic-bezier(.22, .61, .36, 1); }
.vc-chip img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 22%; }
/* Abdeckfeld über den weißen Türfeldern des PNG (Türen 344..679 × 288..671, mit Kantenreserve) */
.vc-oeffnung { position: absolute; left: calc(340 / 1024 * 100%); top: calc(284 / 1024 * 100%); width: calc(344 / 1024 * 100%); height: calc(392 / 1024 * 100%);
  overflow: hidden; background: #000; border-radius: 2px; }
.vc-licht { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; background: radial-gradient(ellipse at 50% 50%, rgba(94, 234, 212, .95), rgba(13, 148, 136, .4) 45%, #05090b 85%); }
.vc-tuer { position: absolute; top: calc(4 / 392 * 100%); height: calc(384 / 392 * 100%); width: calc(144 / 344 * 100%); background: #fff; border-radius: 8% / 3%;
  transition: transform .35s cubic-bezier(.22, .61, .36, 1); }
.vc-tuer.l { left: calc(4 / 344 * 100%); } .vc-tuer.r { right: calc(4 / 344 * 100%); }
/* gelegentlicher Lichtimpuls um den Chip */
@property --vc-w { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.vc-puls { position: absolute; inset: -10px; border-radius: 26%; pointer-events: none; opacity: 0;
  background: conic-gradient(from var(--vc-w, 0deg), transparent 0 70%, rgba(94, 234, 212, .9) 80%, transparent 90%);
  -webkit-mask: radial-gradient(closest-side, transparent 82%, #000 84%, #000 98%, transparent 100%);
          mask: radial-gradient(closest-side, transparent 82%, #000 84%, #000 98%, transparent 100%);
  animation: vc-puls 6s ease-in-out infinite 1.5s; }
@keyframes vc-puls { 0%, 62% { opacity: 0; --vc-w: 0deg; } 70% { opacity: 1; } 92% { opacity: 1; --vc-w: 360deg; } 100% { opacity: 0; --vc-w: 360deg; } }
.vc-wrap:hover .vc-chip, .vc-wrap:focus-visible .vc-chip { transform: translateY(-3px) scale(1.04); filter: drop-shadow(0 0 22px rgba(45, 212, 191, .75)) drop-shadow(0 10px 16px rgba(0, 0, 0, .2)); }
.vc-wrap:hover .vc-tuer.l, .vc-wrap:focus-visible .vc-tuer.l, .vc-chip.vc-teaser .vc-tuer.l { transform: translateX(-20%); }
.vc-wrap:hover .vc-tuer.r, .vc-wrap:focus-visible .vc-tuer.r, .vc-chip.vc-teaser .vc-tuer.r { transform: translateX(20%); }
.vc-wrap:hover .vc-licht, .vc-wrap:focus-visible .vc-licht, .vc-chip.vc-teaser .vc-licht { opacity: .95; }
/* Knopf darunter: das Play-Zeichen mit Radar-Ring */
.vc-knopf { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 15px/1 'Space Grotesk', ui-sans-serif, system-ui, sans-serif; color: #fff; background: #0b2a28;
  box-shadow: 0 0 0 1px #2dd4bf, 0 8px 24px rgba(4, 32, 29, .35); transition: background .2s, transform .35s cubic-bezier(.22, .61, .36, 1); }
.vc-wrap:hover .vc-knopf, .vc-wrap:focus-visible .vc-knopf { background: #0f766e; transform: translateY(-2px); }
.vc-knopf small { font: 600 13px/1 'JetBrains Mono', ui-monospace, monospace; color: #99f6e4; margin-left: 2px; }
.vc-knopf i { position: relative; width: 26px; height: 26px; border-radius: 50%; background: #2dd4bf; display: grid; place-items: center; }
.vc-knopf i::after { content: ''; border-left: 9px solid #04201d; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.vc-knopf i::before { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid #5eead4; animation: vc-radar 2.4s ease-out infinite; }
@keyframes vc-radar { 0% { transform: scale(1); opacity: .9; } 80%, 100% { transform: scale(1.9); opacity: 0; } }

/* ---------- Bühne ---------- */
.vc-buehne { position: fixed; inset: 0; z-index: 100; display: none; }
.vc-buehne.vc-offen { display: block; }
.vc-vorhang { position: absolute; inset: 0; background: rgba(5, 9, 11, .94); backdrop-filter: blur(6px); opacity: 0; transition: opacity .5s; }
.vc-buehne.vc-sichtbar .vc-vorhang { opacity: 1; }
.vc-rahmen { position: absolute; border-radius: 16px; overflow: hidden; background: #05090b; opacity: 0;
  box-shadow: 0 0 0 1px rgba(94, 234, 212, .25), 0 0 80px rgba(45, 212, 191, .18), 0 40px 120px rgba(0, 0, 0, .7); }
.vc-rahmen video { width: 100%; height: 100%; display: block; background: #05090b; }
/* Leiste liegt INNEN im Rahmen (Rahmen schneidet ab): Punkt und Zeitanzeige bleiben immer sichtbar */
.vc-leiste { position: absolute; left: 20px; right: 20px; bottom: 6px; height: 26px; cursor: pointer; z-index: 2; touch-action: none; }
.vc-spur { position: absolute; left: 0; right: 0; bottom: 9px; height: 4px; border-radius: 4px; overflow: hidden; background: rgba(255, 255, 255, .18); transition: height .15s, bottom .15s; }
.vc-fortschritt { position: absolute; left: 0; bottom: 0; height: 100%; width: 0; background: #2dd4bf; box-shadow: 0 0 10px rgba(45, 212, 191, .9); }
.vc-leiste:hover .vc-spur, .vc-leiste.vc-zieht .vc-spur { height: 8px; bottom: 7px; }
.vc-griff { position: absolute; bottom: 3px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px #2dd4bf, 0 0 12px rgba(45, 212, 191, .9); opacity: 0; transition: opacity .15s; }
.vc-zeit { position: absolute; bottom: 24px; padding: 4px 8px; border-radius: 6px; transform: translateX(-50%); font: 600 13px/1 'JetBrains Mono', ui-monospace, monospace; color: #fff;
  background: rgba(10, 22, 24, .85); box-shadow: 0 0 0 1px rgba(94, 234, 212, .3); opacity: 0; pointer-events: none; transition: opacity .15s; white-space: nowrap; }
.vc-leiste:hover .vc-griff, .vc-leiste.vc-zieht .vc-griff, .vc-leiste:hover .vc-zeit, .vc-leiste.vc-zieht .vc-zeit { opacity: 1; }
.vc-bt { position: absolute; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff;
  background: rgba(10, 22, 24, .7); box-shadow: 0 0 0 1px rgba(94, 234, 212, .3); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s, background .2s;
  top: calc(20px + env(safe-area-inset-top, 0px)); }
.vc-bt:hover { background: rgba(13, 148, 136, .9); }
.vc-buehne.vc-sichtbar .vc-bt { opacity: 1; }
.vc-zu { right: 20px; } .vc-ton { left: 20px; }
.vc-bt svg { width: 20px; height: 20px; }
/* Vollbild: Knopf unten rechts im Video; im Vollbild füllt der Rahmen den Bildschirm (Inline-Maße werden überstimmt) */
.vc-voll { position: absolute; right: 16px; bottom: 38px; z-index: 3; width: 40px; height: 40px; border-radius: 10px; border: 0; cursor: pointer; display: grid; place-items: center;
  color: #fff; background: rgba(10, 22, 24, .65); box-shadow: 0 0 0 1px rgba(94, 234, 212, .3); backdrop-filter: blur(6px); transition: background .2s, opacity .3s; }
.vc-voll:hover { background: rgba(13, 148, 136, .9); }
.vc-voll svg { width: 20px; height: 20px; }
.vc-voll .vc-voll-aus, .vc-rahmen:fullscreen .vc-voll .vc-voll-an { display: none; }
.vc-rahmen:fullscreen .vc-voll .vc-voll-aus { display: inline; }
.vc-rahmen:fullscreen { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; border-radius: 0; box-shadow: none; }
.vc-rahmen:fullscreen video { object-fit: contain; }
.vc-flieger { position: fixed; z-index: 101; pointer-events: none; display: none; transform-origin: 0 0; }
.vc-flieger img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 22%; }
.vc-ende { position: absolute; left: 0; right: 0; z-index: 2; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; padding: 0 16px;
  opacity: 0; pointer-events: none; transition: opacity .6s, transform .6s; transform: translateY(12px); }
.vc-ende.vc-da { opacity: 1; pointer-events: auto; transform: none; }
.vc-ende a, .vc-ende button { padding: 14px 26px; border-radius: 12px; font: 700 17px/1 'Space Grotesk', ui-sans-serif, system-ui, sans-serif; cursor: pointer; text-decoration: none; border: 0; }
.vc-ende .vc-p { background: #2dd4bf; color: #04201d; box-shadow: 0 0 30px rgba(45, 212, 191, .5); }
.vc-ende .vc-s { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }

@media (prefers-reduced-motion: reduce) {
  .vc-puls, .vc-knopf i::before { animation: none; }
  .vc-chip, .vc-tuer, .vc-knopf { transition: none; }
}
/* Während das Video offen ist: Seite dahinter fest, kein Scrollbalken (js setzt die Klasse + Breitenausgleich) */
html.vc-gesperrt, html.vc-gesperrt body { overflow: hidden !important; overscroll-behavior: none; }
html.vc-gesperrt { scroll-snap-type: none !important; scrollbar-width: none; }
html.vc-gesperrt::-webkit-scrollbar { display: none; }
