/* Premium Cinematic Enhance – additive only (no layout teardown) */

/* ── Smooth scroll & section rhythm ── */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

section[id],
.lux-section,
.section {
  scroll-margin-top: calc(var(--header-h, 72px) + 1rem);
}

.lux-section + .lux-section,
.hero + .lux-section {
  position: relative;
}

.lux-section + .lux-section::before,
.hero + .lux-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1280px, 94vw);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 20%,
    rgba(255, 234, 0, 0.12) 50%,
    rgba(255, 255, 255, 0.08) 80%,
    transparent 100%
  );
  pointer-events: none;
}

/* ── Refined scroll reveal ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    transform: translateY(18px);
  }

  .reveal.visible {
    animation: premium-reveal-in 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes premium-reveal-in {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ── Desktop: wider canvas, tighter vertical rhythm ── */
@media (min-width: 1101px) {
  .container {
    width: min(1280px, 94vw);
  }

  .lux-section {
    padding: clamp(3rem, 5.5vw, 5.25rem) 0;
  }

  .lux-split {
    gap: clamp(2rem, 4vw, 3.5rem);
  }

  .lux-werkstatt-gallery {
    gap: 1.35rem;
  }
}

/* ── Hero cinematic (additive layers + text entrance) ── */
.hero--premium .hero-overlay {
  background:
    linear-gradient(108deg, rgba(6, 6, 8, 0.82) 0%, rgba(8, 8, 10, 0.48) 46%, rgba(8, 8, 10, 0.22) 100%),
    linear-gradient(0deg, rgba(6, 6, 8, 0.78) 0%, transparent 42%),
    radial-gradient(ellipse 70% 55% at 78% 28%, rgba(255, 234, 0, 0.1) 0%, transparent 58%);
}

.hero--premium .hero-media-glow {
  opacity: 0.85;
}

@media (prefers-reduced-motion: no-preference) {
  .hero--premium .hero-inner > .eyebrow {
    animation: hero-copy-in 1s cubic-bezier(0.16, 1, 0.3, 1) 0.12s backwards;
  }

  .hero--premium .hero-inner > h1 {
    animation: hero-copy-in 1.05s cubic-bezier(0.16, 1, 0.3, 1) 0.22s backwards;
  }

  .hero--premium .hero-inner > .hero-sub {
    animation: hero-copy-in 1s cubic-bezier(0.16, 1, 0.3, 1) 0.34s backwards;
  }

  .hero--premium .hero-inner > .hero-benefits {
    animation: hero-copy-in 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.46s backwards;
  }

  .hero--premium .hero-inner > .hero-cta {
    animation: hero-copy-in 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.56s backwards;
  }

  @keyframes hero-copy-in {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.hero--premium .hero-cta .btn {
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.95rem 1.65rem;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease,
    background 0.35s ease;
}

.hero--premium .hero-cta .btn-primary {
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.35),
    0 10px 36px rgba(255, 234, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}

.hero--premium .hero-cta .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.4),
    0 16px 44px rgba(255, 234, 0, 0.3),
    0 0 24px rgba(255, 234, 0, 0.12);
}

.hero--premium .hero-cta .btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero--premium .hero-cta .btn-ghost:hover {
  border-color: rgba(255, 234, 0, 0.45);
  box-shadow: 0 0 28px rgba(255, 234, 0, 0.1);
}

/* ── Brand marquee (under hero) ── */
.brand-marquee {
  --brand-logo-h: clamp(2.35rem, 7vw, 2.85rem);
  --brand-logo-max-w: min(11.5rem, 92%);
  padding: clamp(2.5rem, 5vw, 3.75rem) 0;
  background: linear-gradient(
    180deg,
    rgba(8, 8, 10, 0.55) 0%,
    rgba(10, 10, 12, 0.92) 100%
  );
}

.brand-marquee .lux-section-head {
  margin-bottom: clamp(1.5rem, 3.5vw, 2.25rem);
}

.brand-marquee-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: stretch;
}

.brand-marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(4.75rem, 14vw, 5.5rem);
  padding: 1.1rem 0.85rem;
  border-radius: var(--radius, 12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease,
    background 0.4s ease,
    box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-marquee-item img,
.brand-marquee-item svg {
  display: block;
  height: var(--brand-logo-h);
  width: auto;
  max-width: var(--brand-logo-max-w);
  object-fit: contain;
  object-position: center;
  color: #fff;
  opacity: 0.58;
  filter: brightness(0) invert(1);
  transition:
    opacity 0.45s ease,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Breite Wortmarken (AMG, Land Rover) – optisch wie Porsche/Ferrari */
.brand-marquee-item--wide img,
.brand-marquee-item--wide svg {
  height: calc(var(--brand-logo-h) * 1.28);
  max-width: min(17rem, 96%);
  min-width: 8.5rem;
}

/* Emblem-Logos (Bentley) – etwas größer, gleiche visuelle Wucht */
.brand-marquee-item--emblem img,
.brand-marquee-item--emblem svg {
  height: calc(var(--brand-logo-h) * 1.18);
  max-width: min(9rem, 88%);
  min-width: 5.25rem;
}

.brand-marquee-item:hover,
.brand-marquee-item:focus-visible {
  transform: scale(1.03);
  border-color: rgba(255, 234, 0, 0.2);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28), 0 0 24px rgba(255, 234, 0, 0.06);
}

.brand-marquee-item:hover img,
.brand-marquee-item:focus-visible img,
.brand-marquee-item:hover svg,
.brand-marquee-item:focus-visible svg {
  opacity: 0.92;
  transform: scale(1.04);
}

@media (min-width: 768px) {
  .brand-marquee {
    --brand-logo-h: clamp(2.65rem, 4.2vw, 3.35rem);
    --brand-logo-max-w: min(13.5rem, 100%);
  }

  .brand-marquee-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem 2.25rem;
  }

  .brand-marquee-item {
    flex: 0 1 auto;
    min-width: 8.5rem;
    min-height: 4.5rem;
    padding: 1rem 1.35rem;
    border: none;
    background: transparent;
    box-shadow: none;
  }

  .brand-marquee-item--wide {
    min-width: 10.5rem;
  }

  .brand-marquee-item--emblem {
    min-width: 6.5rem;
  }

  .brand-marquee-item:hover,
  .brand-marquee-item:focus-visible {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }
}

@media (min-width: 1101px) {
  .brand-marquee {
    --brand-logo-h: 3.35rem;
    --brand-logo-max-w: 14.5rem;
  }

  .brand-marquee-grid {
    gap: 1.15rem 2.75rem;
  }

  .brand-marquee-item {
    min-width: 9.5rem;
    min-height: 5rem;
    padding: 1.1rem 1.5rem;
  }
}

/* ── Card & image hover (premium glow) ── */
@media (prefers-reduced-motion: no-preference) {
  .card,
  .lux-photo,
  .gallery-item,
  .before-after-placeholder,
  .lux-benefit,
  .lux-stat {
    transition:
      transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
      box-shadow 0.55s cubic-bezier(0.16, 1, 0.3, 1),
      border-color 0.4s ease;
  }

  .lux-photo img,
  .gallery-item img,
  .before-after-placeholder img {
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .lux-photo:hover,
  .gallery-item:hover {
    box-shadow:
      0 20px 48px rgba(0, 0, 0, 0.45),
      0 0 32px rgba(255, 234, 0, 0.06);
  }

  .lux-photo:hover img {
    transform: scale(1.04);
  }

  .card:hover {
    box-shadow:
      0 24px 56px rgba(0, 0, 0, 0.48),
      0 0 36px rgba(255, 234, 0, 0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero--premium .hero-inner > *,
  .reveal.visible {
    animation: none !important;
  }

  .brand-marquee-item:hover,
  .brand-marquee-item:hover img {
    transform: none;
  }
}
