/* ═══════════════════════════════════════════════════════
   ClipCar – Video Hero  v1.0
   Phase 1: Video + Fahrzeugdaten-Overlay + Laufband
   Phase 2: Standbild + Preis + CTA + Modellname-Banner
═══════════════════════════════════════════════════════ */

/* ── CONTAINER ───────────────────────────────────────── */
.vh-wrap {
  position: relative;
  width: 100%;
  height: 100vh; min-height: 680px;
  overflow: hidden;
  background: #0b0d12;
  font-family: var(--font);
}

/* ── VIDEO LAYER ─────────────────────────────────────── */
.vh-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 1.2s ease;
}
.vh-video.fading { opacity: 0; }

/* ── STILL IMAGE LAYER (Phase 2) ─────────────────────── */
.vh-still {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
  /* Placeholder gradient until real image loaded */
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
}
.vh-still.visible { opacity: 1; }

/* Overlay tints */
.vh-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.10) 50%,
    rgba(0,0,0,0.05) 100%
  );
  transition: background 1.2s ease;
}
.vh-wrap.phase-2 .vh-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.70) 0%,
    rgba(0,0,0,0.20) 50%,
    rgba(0,0,0,0.80) 100%
  );
}

/* ── PHASE 1: RIGHT DATA CARD ────────────────────────── */
.vh-data-card {
  position: absolute;
  top: 50%; right: 6%;
  transform: translateY(-50%) translateX(40px);
  margin-top: 28px; /* nav offset */
  z-index: 10;
  width: 300px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
}
.vh-data-card.visible {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.vh-wrap.phase-2 .vh-data-card {
  opacity: 0;
  transform: translateY(-50%) translateX(40px);
  pointer-events: none;
}

.vh-card-brand {
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
  margin-bottom: 6px;
}
.vh-card-model {
  font-size: 1.15rem; font-weight: 600; color: #fff;
  letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 4px;
}
.vh-card-sub {
  font-size: 11.5px; color: rgba(255,255,255,0.45);
  margin-bottom: 18px;
}
.vh-card-divider {
  height: 1px; background: rgba(255,255,255,0.10);
  margin-bottom: 16px;
}
.vh-spec-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 16px;
}
.vh-spec-item {}
.vh-spec-val {
  font-size: 1.1rem; font-weight: 600; color: #fff;
  letter-spacing: -0.02em; line-height: 1;
}
.vh-spec-label {
  font-size: 9.5px; font-weight: 500; letter-spacing: 0.07em;
  text-transform: uppercase; color: rgba(255,255,255,0.38);
  margin-top: 2px;
}
.vh-card-tag-row {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.vh-tag {
  font-size: 10px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 100px; padding: 3px 10px;
  color: rgba(255,255,255,0.6);
}
.vh-tag-blue {
  background: rgba(0,113,227,0.2);
  border-color: rgba(0,113,227,0.35);
  color: #60a5fa;
}

/* ── PHASE 2: STILL OVERLAY ──────────────────────────── */
.vh-still-overlay {
  position: absolute; inset: 0; z-index: 10;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 80px 60px 0;
  opacity: 0;
  transition: opacity 1s ease 0.4s;
  pointer-events: none;
}
.vh-wrap.phase-2 .vh-still-overlay {
  opacity: 1;
  pointer-events: all;
}

/* Top row: dealer logo + price */
.vh-still-top {
  display: flex; align-items: flex-start;
  justify-content: space-between;
}
.vh-dealer-block {}
.vh-dealer-name {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
  margin-bottom: 4px;
}
.vh-dealer-logo-wrap {
  display: flex; align-items: center; gap: 10px;
}
.vh-dealer-logo {
  height: 36px; width: auto; object-fit: contain;
  filter: brightness(0) invert(1);
}
.vh-dealer-logo-fallback {
  font-size: 1.6rem; font-weight: 700; color: #fff;
  letter-spacing: -0.04em;
}
.vh-dealer-tagline {
  font-size: 12px; color: rgba(255,255,255,0.45);
  margin-top: 4px;
}

.vh-price-block { text-align: right; }
.vh-price-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
  margin-bottom: 4px;
}
.vh-price {
  font-size: 2.8rem; font-weight: 300; letter-spacing: -0.04em;
  color: #fff; line-height: 1;
}
.vh-price-sub { font-size: 12px; color: rgba(255,255,255,0.38); margin-top: 4px; }

/* Middle: specs row */
.vh-still-specs {
  display: flex; gap: 32px; align-items: flex-end;
}
.vh-still-spec-item {}
.vh-still-spec-val {
  font-size: 1.8rem; font-weight: 300; letter-spacing: -0.04em;
  color: #fff; line-height: 1;
}
.vh-still-spec-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.38);
  margin-top: 3px;
}
.vh-still-spec-divider {
  width: 1px; height: 40px; background: rgba(255,255,255,0.12);
  align-self: center;
}

/* CTA row */
.vh-cta-row {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 16px;
}
.vh-cta-btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font); font-size: 14px; font-weight: 500;
  padding: 13px 22px; border-radius: 100px;
  cursor: pointer; border: none; transition: all 0.2s;
  text-decoration: none;
}
.vh-cta-wa {
  background: #25D366; color: #fff;
}
.vh-cta-wa:hover { background: #1ebe5a; transform: translateY(-1px); }
.vh-cta-email {
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.20);
  color: #fff;
}
.vh-cta-email:hover { background: rgba(255,255,255,0.18); transform: translateY(-1px); }
.vh-cta-tel {
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.20);
  color: #fff;
}
.vh-cta-tel:hover { background: rgba(255,255,255,0.18); transform: translateY(-1px); }
.vh-cta-icon {
  width: 18px; height: 18px; flex-shrink: 0;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ── LAUFBAND (Phase 1 + 2, wechselt Inhalt) ─────────── */
.vh-laufband {
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 20;
  height: 48px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  display: flex; align-items: center;
}

/* Phase 1: contact marquee */
.vh-lb-phase1 {
  display: flex; align-items: center;
  white-space: nowrap;
  animation: cc-marquee 28s linear infinite;
  opacity: 1;
  transition: opacity 0.6s;
}
.vh-lb-phase2-static {
  display: flex; align-items: center; justify-content: center;
  width: 100%; opacity: 0;
  transition: opacity 0.6s;
  position: absolute; inset: 0;
}
.vh-wrap.phase-2 .vh-lb-phase1 { opacity: 0; animation-play-state: paused; }
.vh-wrap.phase-2 .vh-lb-phase2-static { opacity: 1; }

.vh-lb-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 24px;
  font-size: 12.5px; color: rgba(255,255,255,0.7);
  border-right: 1px solid rgba(255,255,255,0.10);
}
.vh-lb-item:last-child { border-right: none; }
.vh-lb-icon {
  width: 14px; height: 14px; flex-shrink: 0;
  stroke: rgba(255,255,255,0.55); fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.vh-lb-green { stroke: #25D366; }

/* Phase 2 static model banner */
.vh-lb-model {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.vh-lb-model-year {
  font-size: 12px; color: rgba(255,255,255,0.38);
  margin-left: 12px; padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,0.15);
}

/* ── ANIMATIONS ──────────────────────────────────────── */
@keyframes vh-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.vh-animate-1 { opacity: 0; animation: vh-fade-in 0.6s 0.3s ease forwards; }
.vh-animate-2 { opacity: 0; animation: vh-fade-in 0.6s 0.6s ease forwards; }
.vh-animate-3 { opacity: 0; animation: vh-fade-in 0.6s 0.9s ease forwards; }
.vh-animate-4 { opacity: 0; animation: vh-fade-in 0.6s 1.2s ease forwards; }
.vh-animate-5 { opacity: 0; animation: vh-fade-in 0.6s 1.5s ease forwards; }

/* Still overlay staggered */
.vh-wrap.phase-2 .vh-still-top    { animation: vh-fade-in 0.8s 1.4s ease both; }
.vh-wrap.phase-2 .vh-still-specs  { animation: vh-fade-in 0.8s 1.7s ease both; }
.vh-wrap.phase-2 .vh-cta-row      { animation: vh-fade-in 0.8s 2.0s ease both; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
  .vh-data-card { right: 50%; transform: translateX(50%) translateY(0); top: auto; bottom: 80px; width: calc(100% - 32px); margin: 0; }
  .vh-data-card.visible { transform: translateX(50%) translateY(0); }
  .vh-still-overlay { padding: 80px 20px 0; }
  .vh-still-top { flex-direction: column; gap: 16px; }
  .vh-price-block { text-align: left; }
  .vh-price { font-size: 2rem; }
  .vh-cta-row { flex-direction: column; }
  .vh-cta-btn { justify-content: center; }
}
