/* =====================================================================
   Cinematic Intro — Vanilla-Port (GSAP ScrollTrigger)
   Gekapselt unter .cine-hero · nur Startseite · Petersen Digital Solutions
   ===================================================================== */

.cine-hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--night);
  color: var(--ice);
  perspective: 1500px;
  isolation: isolate;
}
.cine-hero .gsap-reveal { visibility: hidden; }

/* Environment overlays */
.cine-hero .film-grain {
  position: absolute; inset: 0; pointer-events: none; z-index: 50;
  opacity: .05; mix-blend-mode: overlay;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%25" height="100%25" filter="url(%23n)"/></svg>');
}
.cine-hero .bg-grid-theme {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-size: 60px 60px;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--ice) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--ice) 6%, transparent) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
}

/* Skeuomorphic text materials */
.cine-hero .text-3d-matte {
  color: var(--ice);
  text-shadow: 0 10px 30px color-mix(in srgb, var(--ice) 22%, transparent), 0 2px 4px color-mix(in srgb, var(--ice) 12%, transparent);
}
.cine-hero .text-silver-matte {
  background: linear-gradient(180deg, var(--ice) 0%, color-mix(in srgb, var(--ice) 42%, transparent) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  transform: translateZ(0);
  filter: drop-shadow(0 10px 20px color-mix(in srgb, var(--blue) 22%, transparent)) drop-shadow(0 2px 4px color-mix(in srgb, var(--ice) 12%, transparent));
}
.cine-hero .text-card-silver-matte {
  background: linear-gradient(180deg, #ffffff 0%, #9fb4d8 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  transform: translateZ(0);
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.8)) drop-shadow(0 4px 8px rgba(0,0,0,.6));
}

/* Hero text + CTA layers */
.cine-hero .hero-text-wrapper,
.cine-hero .cta-wrapper {
  position: absolute; z-index: 10; width: 100vw; padding: 0 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  transform-style: preserve-3d; will-change: transform;
}
.cine-hero .hero-text-wrapper h2 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.035em; line-height: .98;
  font-size: clamp(2.6rem, 8.5vw, 6rem); margin: 0;
}
.cine-hero .text-track { margin-bottom: 6px; }
.cine-hero .cta-wrapper { pointer-events: none; }
.cine-hero .cta-wrapper .cine-cta-h {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; line-height: 1;
  font-size: clamp(2.2rem, 6vw, 4.4rem); margin-bottom: 22px;
}
.cine-hero .cta-wrapper .cine-cta-p {
  color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.25rem); line-height: 1.6;
  max-width: 44ch; margin: 0 auto 34px;
}
.cine-hero .cine-cta-btns { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; pointer-events: auto; }

/* Card layer */
.cine-hero .cine-card-layer {
  position: absolute; inset: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center; pointer-events: none; perspective: 1500px;
}
.cine-hero .main-card {
  position: relative; overflow: hidden; pointer-events: auto;
  display: flex; align-items: center; justify-content: center;
  width: 92vw; height: 92vh; border-radius: 32px;
}
.cine-hero .premium-depth-card {
  background: linear-gradient(145deg, #15306f 0%, #070d18 100%);
  border: 1px solid rgba(255,255,255,.05);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.9), 0 20px 40px -20px rgba(0,0,0,.8),
    inset 0 1px 2px rgba(255,255,255,.2), inset 0 -2px 4px rgba(0,0,0,.8);
}
.cine-hero .card-sheen {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 50;
  background: radial-gradient(800px circle at var(--mouse-x,50%) var(--mouse-y,50%), rgba(120,190,255,.1) 0%, transparent 40%);
  mix-blend-mode: screen;
}
@media (min-width: 768px) { .cine-hero .main-card { width: 85vw; height: 85vh; border-radius: 40px; } }

/* Inner grid */
.cine-hero .cine-grid3 {
  position: relative; width: 100%; height: 100%; max-width: 80rem; margin: 0 auto;
  display: flex; flex-direction: column; justify-content: space-evenly; align-items: center;
  padding: 24px 18px; z-index: 10;
}
@media (min-width: 1024px) {
  .cine-hero .cine-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 0 48px; align-items: center; }
}

/* Brand word */
.cine-hero .card-right-text { order: 1; display: flex; justify-content: center; width: 100%; z-index: 20; }
.cine-hero .card-right-text h2 {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: -.045em;
  font-size: clamp(3rem, 11vw, 8rem); line-height: .9; margin: 0;
}
@media (min-width: 1024px) { .cine-hero .card-right-text { order: 3; justify-content: flex-end; } }

/* Mockup */
.cine-hero .mockup-scroll-wrapper {
  order: 2; position: relative; width: 100%; height: 380px;
  display: flex; align-items: center; justify-content: center; z-index: 10; perspective: 1000px;
}
@media (min-width: 1024px) { .cine-hero .mockup-scroll-wrapper { height: 600px; } }
.cine-hero .mockup-inner { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; transform: scale(.62); }
@media (min-width: 768px) { .cine-hero .mockup-inner { transform: scale(.82); } }
@media (min-width: 1024px) { .cine-hero .mockup-inner { transform: scale(1); } }

.cine-hero .iphone-bezel {
  position: relative; width: 280px; height: 580px; border-radius: 3rem;
  display: flex; flex-direction: column; transform-style: preserve-3d; will-change: transform;
  background-color: #111;
  box-shadow: inset 0 0 0 2px #52525b, inset 0 0 0 7px #000,
    0 40px 80px -15px rgba(0,0,0,.9), 0 15px 25px -5px rgba(0,0,0,.7);
}
.cine-hero .hardware-btn {
  position: absolute; z-index: 0;
  background: linear-gradient(90deg, #404040 0%, #171717 100%);
  box-shadow: -2px 0 5px rgba(0,0,0,.8), inset -1px 0 1px rgba(255,255,255,.15), inset 1px 0 2px rgba(0,0,0,.8);
}
.cine-hero .hb1 { top: 120px; left: -3px; width: 3px; height: 25px; border-radius: 3px 0 0 3px; }
.cine-hero .hb2 { top: 160px; left: -3px; width: 3px; height: 45px; border-radius: 3px 0 0 3px; }
.cine-hero .hb3 { top: 220px; left: -3px; width: 3px; height: 45px; border-radius: 3px 0 0 3px; }
.cine-hero .hb4 { top: 170px; right: -3px; width: 3px; height: 70px; border-radius: 0 3px 3px 0; }

.cine-hero .cine-screen {
  position: absolute; inset: 7px; background: #050914; border-radius: 2.5rem; overflow: hidden; color: #fff; z-index: 10;
  box-shadow: inset 0 0 15px rgba(0,0,0,1);
}
.cine-hero .screen-glare { position: absolute; inset: 0; z-index: 40; pointer-events: none;
  background: linear-gradient(110deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 45%); }
.cine-hero .cine-island {
  position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 28px; background: #000; border-radius: 100px; z-index: 50;
  display: flex; align-items: center; justify-content: flex-end; padding-right: 12px;
  box-shadow: inset 0 -1px 2px rgba(255,255,255,.1);
}
.cine-hero .cine-island .dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,.8); animation: cinePulse 2s ease-in-out infinite; }
@keyframes cinePulse { 50% { opacity: .45; } }

.cine-hero .cine-app { position: relative; width: 100%; height: 100%; padding: 48px 20px 28px; display: flex; flex-direction: column; }
.cine-hero .cine-app-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.cine-hero .cine-head-l { display: flex; flex-direction: column; }
.cine-hero .cine-kicker { font-size: 10px; color: #9fb0c8; text-transform: uppercase; letter-spacing: .18em; font-weight: 700; margin-bottom: 3px; }
.cine-hero .cine-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.cine-hero .cine-avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #e6eefc; box-shadow: 0 6px 14px rgba(0,0,0,.5); }

.cine-hero .cine-ring-wrap { position: relative; width: 176px; height: 176px; margin: 0 auto 26px; display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 15px 25px rgba(0,0,0,.8)); }
.cine-hero .cine-ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cine-hero .progress-ring { transform: rotate(-90deg); transform-origin: center; stroke-dasharray: 402; stroke-dashoffset: 402; stroke-linecap: round; }
.cine-hero .cine-ring-center { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.cine-hero .counter-val { font-family: var(--font-display); font-size: 40px; font-weight: 800; letter-spacing: -.03em; color: #fff; line-height: 1; }
.cine-hero .cine-ring-label { font-size: 8px; color: rgba(180,210,255,.6); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin-top: 4px; }

.cine-hero .cine-widgets { display: flex; flex-direction: column; gap: 12px; }
.cine-hero .widget-depth {
  background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.01) 100%);
  border: 1px solid rgba(255,255,255,.03); border-radius: 16px; padding: 12px; display: flex; align-items: center;
  box-shadow: 0 10px 20px rgba(0,0,0,.3), inset 0 1px 1px rgba(255,255,255,.05), inset 0 -1px 1px rgba(0,0,0,.5);
}
.cine-hero .cine-wicon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-right: 12px; box-shadow: inset 0 1px 2px rgba(0,0,0,.4); }
.cine-hero .cine-wicon svg { width: 16px; height: 16px; }
.cine-hero .cine-wicon.blue { background: linear-gradient(135deg, rgba(30,155,240,.22), rgba(14,99,200,.05)); border: 1px solid rgba(91,192,255,.25); color: #5bc0ff; }
.cine-hero .cine-wicon.green { background: linear-gradient(135deg, rgba(16,185,129,.22), rgba(5,120,90,.05)); border: 1px solid rgba(52,211,153,.25); color: #34d399; }
.cine-hero .cine-wlines { flex: 1; }
.cine-hero .cine-wlines span { display: block; height: 8px; border-radius: 100px; box-shadow: inset 0 1px 2px rgba(0,0,0,.4); }
.cine-hero .cine-wlines .l1 { width: 80px; background: #cfd9e8; margin-bottom: 8px; }
.cine-hero .cine-wlines .l1.s { width: 64px; }
.cine-hero .cine-wlines .l2 { width: 48px; height: 6px; background: #5a6678; }
.cine-hero .cine-wlines .l2.w { width: 96px; }
.cine-hero .cine-home { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 120px; height: 4px; background: rgba(255,255,255,.2); border-radius: 100px; }

/* Floating glass badges */
.cine-hero .floating-ui-badge {
  background: linear-gradient(135deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.01) 100%);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 25px 50px -12px rgba(0,0,0,.8),
    inset 0 1px 1px rgba(255,255,255,.2), inset 0 -1px 1px rgba(0,0,0,.5);
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; z-index: 30; position: absolute;
}
.cine-hero .fb-tl { top: 18px; left: -14px; }
.cine-hero .fb-br { bottom: 44px; right: -14px; }
@media (min-width: 1024px) { .cine-hero .fb-tl { top: 48px; left: -80px; } .cine-hero .fb-br { bottom: 80px; right: -80px; } }
.cine-hero .fb-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; box-shadow: inset 0 1px 2px rgba(0,0,0,.4); }
.cine-hero .fb-ic.blue { background: linear-gradient(180deg, rgba(30,155,240,.22), rgba(8,40,90,.1)); border: 1px solid rgba(91,192,255,.3); }
.cine-hero .fb-ic.indigo { background: linear-gradient(180deg, rgba(99,102,241,.22), rgba(40,40,120,.1)); border: 1px solid rgba(129,140,248,.3); }
.cine-hero .fb-t { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: -.01em; }
.cine-hero .fb-s { color: rgba(180,210,255,.6); font-size: 11px; font-weight: 500; }

/* Left accountability text */
.cine-hero .card-left-text { order: 3; display: flex; flex-direction: column; justify-content: center; text-align: center; z-index: 20; width: 100%; padding: 0 16px; }
.cine-hero .card-left-text h3 { color: #fff; font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; font-size: clamp(1.4rem, 3vw, 2.2rem); margin: 0; }
.cine-hero .card-left-text p { color: rgba(190,215,255,.72); font-size: clamp(.9rem, 1.4vw, 1.1rem); line-height: 1.6; margin-top: 14px; max-width: 30rem; margin-inline: auto; }
.cine-hero .card-left-text p b { color: #fff; font-weight: 600; }
@media (max-width: 767px) { .cine-hero .card-left-text p { display: none; } }
@media (min-width: 1024px) { .cine-hero .card-left-text { order: 1; text-align: left; } .cine-hero .card-left-text p { margin-inline: 0; } }

/* Reduced motion: Sektion wird per JS entfernt; zusätzlich hier absichern */
@media (prefers-reduced-motion: reduce) { .cine-hero { display: none; } }

/* =====================================================================
   Lamp Spotlight — Vanilla-Port (Aceternity), Licht = Marken-Blau
   ===================================================================== */
.lamp {
  position: relative;
  width: 100%;
  min-height: 78vh;
  overflow: hidden;
  background: var(--night);
  isolation: isolate;
  --lamp: var(--blue-2);       /* Lichtfarbe */
  --lamp-core: var(--blue);    /* Glüh-Kern */
}
.lamp-stage {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 30rem;
  display: flex; align-items: center; justify-content: center;
  transform: scaleY(1.25);
  transform-origin: center top;
  isolation: isolate;
  z-index: 0;
}
.lamp-cone {
  position: absolute; top: 50%;
  height: 14rem; width: 15rem; overflow: visible; opacity: .5;
  transition: width .8s var(--ease) .3s, opacity .8s var(--ease) .3s;
}
.lamp-cone-l { right: 50%; transform: translateY(-50%);
  background-image: conic-gradient(from 70deg at center top, var(--lamp), transparent, transparent); }
.lamp-cone-r { left: 50%; transform: translateY(-50%);
  background-image: conic-gradient(from 290deg at center top, transparent, transparent, var(--lamp)); }
.lamp.lit .lamp-cone { width: 30rem; opacity: 1; }
.lamp-cone .m-b { position: absolute; left: 0; bottom: 0; width: 100%; height: 10rem; background: var(--night); z-index: 20;
  -webkit-mask-image: linear-gradient(to top, #fff, transparent); mask-image: linear-gradient(to top, #fff, transparent); }
.lamp-cone-l .m-s { position: absolute; left: 0; bottom: 0; width: 10rem; height: 100%; background: var(--night); z-index: 20;
  -webkit-mask-image: linear-gradient(to right, #fff, transparent); mask-image: linear-gradient(to right, #fff, transparent); }
.lamp-cone-r .m-s { position: absolute; right: 0; bottom: 0; width: 10rem; height: 100%; background: var(--night); z-index: 20;
  -webkit-mask-image: linear-gradient(to left, #fff, transparent); mask-image: linear-gradient(to left, #fff, transparent); }
.lamp-floor { position: absolute; top: 50%; left: 50%; width: 100%; height: 12rem; background: var(--night);
  filter: blur(40px); transform: translate(-50%, calc(-50% + 3rem)) scaleX(1.5); z-index: 1; }
.lamp-glass { position: absolute; top: 50%; left: 0; width: 100%; height: 12rem; transform: translateY(-50%);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: .1; z-index: 50; }
.lamp-bloom { position: absolute; top: 50%; left: 50%; width: 28rem; height: 9rem; border-radius: 9999px;
  background: var(--lamp-core); opacity: .5; filter: blur(64px); transform: translate(-50%, calc(-50% - 4.5rem)); z-index: 50; }
.lamp-core { position: absolute; top: 50%; left: 50%; width: 8rem; height: 9rem; border-radius: 9999px;
  background: var(--lamp); filter: blur(40px); transform: translate(-50%, calc(-50% - 6rem)); z-index: 30;
  transition: width .8s var(--ease) .3s; }
.lamp.lit .lamp-core { width: 16rem; }
.lamp-line { position: absolute; top: 50%; left: 50%; width: 15rem; height: 2px; background: var(--lamp);
  transform: translate(-50%, calc(-50% - 7rem)); z-index: 50; box-shadow: 0 0 18px var(--lamp);
  transition: width .8s var(--ease) .3s; }
.lamp.lit .lamp-line { width: 30rem; }
.lamp-cap { position: absolute; top: 50%; left: 0; width: 100%; height: 11rem; background: var(--night);
  transform: translateY(calc(-50% - 12.5rem)); z-index: 40; }
.lamp-content { position: absolute; top: 12.5rem; left: 0; width: 100%; z-index: 50;
  display: flex; flex-direction: column; align-items: center; padding: 0 20px; text-align: center; }
.lamp-title {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; line-height: 1.02;
  font-size: clamp(2.1rem, 6vw, 4.6rem); margin: 0;
  background: linear-gradient(180deg, var(--ice) 0%, color-mix(in srgb, var(--ice) 45%, transparent) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  opacity: .5; transform: translateY(40px);
  transition: opacity .8s var(--ease) .3s, transform .8s var(--ease) .3s;
}
.lamp.lit .lamp-title { opacity: 1; transform: none; }
.lamp-sub { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.2rem); margin-top: 18px; max-width: 46ch;
  opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease) .5s, transform .8s var(--ease) .5s; }
.lamp.lit .lamp-sub { opacity: 1; transform: none; }
@media (max-width: 700px) { .lamp { min-height: 64vh; } .lamp-stage { height: 24rem; } .lamp-content { top: 10.5rem; } }
@media (prefers-reduced-motion: reduce) {
  .lamp-cone, .lamp-core, .lamp-line, .lamp-title, .lamp-sub { transition: none; }
}
