/* ═══════════════════════════════════════════════════════════
   Phase 3 – Luxury Cinematic Refinement (additive only)
   GPU: transform + opacity · prefers-reduced-motion respected
   ═══════════════════════════════════════════════════════════ */

:root {
  --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-cinematic: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-tactile: cubic-bezier(0.34, 1.15, 0.64, 1);
  --glass-bg: rgba(12, 12, 12, 0.42);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-glow: rgba(255, 234, 0, 0.12);
  --shadow-luxury-sm: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-luxury-md: 0 20px 56px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  --shadow-luxury-lg: 0 32px 80px rgba(0, 0, 0, 0.55), 0 0 48px rgba(255, 234, 0, 0.06);
}

/* ── 1. Hero cinematic lighting ── */
.hero {
  isolation: isolate;
}

@media (max-width: 1100px) {
  body.nav-open .hero,
  body.nav-open .hero-bg,
  body.nav-open .hero-img {
    isolation: auto !important;
    z-index: 0 !important;
  }

  body.nav-open .hero-img {
    will-change: auto;
  }
}

.hero-bg {
  overflow: hidden;
}

.hero-img {
  filter:
    brightness(1.12)
    contrast(1.08)
    saturate(1.18);
  transform: scale(1.04);
  animation: hero-ken-burns 28s var(--ease-cinematic) infinite alternate;
}

/* Hero Fix – weniger Schwarz, mehr Bild sichtbar */
.hero-overlay {
  background:
    linear-gradient(
      105deg,
      rgba(10, 10, 10, 0.62) 0%,
      rgba(10, 10, 10, 0.34) 45%,
      rgba(10, 10, 10, 0.14) 100%
    ),
    linear-gradient(
      0deg,
      rgba(10, 10, 10, 0.72) 0%,
      transparent 38%
    ),
    radial-gradient(
      ellipse 80% 50% at 75% 20%,
      rgba(255, 234, 0, 0.1) 0%,
      transparent 55%
    );
}

.hero-bg::after {
  animation: hero-reflection-sweep 9s var(--ease-cinematic) infinite;
}

.hero-cinematic {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-cinematic__ambient {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 45% 35% at 20% 40%, rgba(255, 234, 0, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 85% 25%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
  opacity: 0.42;
  animation: hero-ambient-drift 14s var(--ease-cinematic) infinite alternate;
}

.hero-cinematic__streak {
  position: absolute;
  top: 18%;
  left: -40%;
  width: 55%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 249, 200, 0.5), transparent);
  opacity: 0.35;
  transform: rotate(-8deg);
  animation: hero-streak-pass 11s var(--ease-cinematic) infinite;
}

.hero-cinematic__streak--alt {
  top: 62%;
  width: 40%;
  opacity: 0.22;
  animation-duration: 15s;
  animation-delay: -4s;
  transform: rotate(5deg);
}

.hero-cinematic__highlight {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    118deg,
    transparent 0%,
    rgba(255, 234, 0, 0.03) 42%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 58%
  );
  opacity: 0.38;
  animation: hero-highlight-shift 12s var(--ease-cinematic) infinite alternate;
}

.hero-cinematic__vignette {
  position: absolute;
  inset: 0;
  box-shadow:
    inset 0 0 70px rgba(0, 0, 0, 0.35),
    inset 0 -40px 70px rgba(0, 0, 0, 0.22);
}

.hero-cinematic__particles {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255, 234, 0, 0.35) 50%, transparent 50%),
    radial-gradient(1px 1px at 78% 18%, rgba(255, 255, 255, 0.25) 50%, transparent 50%),
    radial-gradient(1px 1px at 45% 68%, rgba(255, 234, 0, 0.2) 50%, transparent 50%),
    radial-gradient(1px 1px at 88% 72%, rgba(255, 255, 255, 0.15) 50%, transparent 50%),
    radial-gradient(1px 1px at 28% 88%, rgba(255, 234, 0, 0.18) 50%, transparent 50%);
  animation: hero-particles-float 20s linear infinite;
}

.hero-inner {
  z-index: 2;
}

.hero .eyebrow {
  letter-spacing: 0.36em;
  margin-bottom: 1.75rem;
}

.hero h1 {
  letter-spacing: -0.035em;
  margin-bottom: 1.75rem;
  line-height: 1.02;
}

.hero-sub {
  letter-spacing: 0.01em;
  margin-bottom: 2.25rem;
  max-width: 36rem;
}

@keyframes hero-ken-burns {
  0% { transform: scale(1.04) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1.2%, 0.6%); }
}

@keyframes hero-reflection-sweep {
  0%, 100% { opacity: 0.35; transform: translateX(-8%) skewX(-4deg); }
  50% { opacity: 0.85; transform: translateX(12%) skewX(-4deg); }
}

@keyframes hero-ambient-drift {
  0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  100% { transform: translate(3%, -2%) scale(1.05); opacity: 0.95; }
}

@keyframes hero-streak-pass {
  0% { transform: translateX(0) rotate(-8deg); opacity: 0; }
  15% { opacity: 0.4; }
  85% { opacity: 0.25; }
  100% { transform: translateX(320%) rotate(-8deg); opacity: 0; }
}

@keyframes hero-highlight-shift {
  0% { transform: translateX(-4%); opacity: 0.5; }
  100% { transform: translateX(6%); opacity: 0.85; }
}

@keyframes hero-particles-float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

/* ── 2. Premium glass ── */
.hero:not(.hero--light) .hero-benefits li {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  box-shadow:
    var(--shadow-luxury-sm),
    0 0 0 1px rgba(255, 234, 0, 0.08) inset,
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  transition: transform 0.45s var(--ease-luxury), box-shadow 0.45s var(--ease-luxury), border-color 0.35s;
}

.hero:not(.hero--light) .hero-benefits li:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 234, 0, 0.45);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 24px var(--glass-glow);
}

.trust-item {
  padding: 1.15rem 1rem;
  border-radius: var(--radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-luxury-sm);
  transition: transform 0.45s var(--ease-luxury), box-shadow 0.45s var(--ease-luxury);
}

.trust-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-luxury-md);
}

.cta-band,
.premium-band {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cta-band::after,
.premium-band::before {
  box-shadow: 0 0 20px rgba(255, 234, 0, 0.15);
}

/* ── 3. Card system upgrade ── */
.services-grid,
.packages-grid,
.reviews-grid {
  gap: 1.5rem;
}

.card {
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow-luxury-sm);
  transition:
    transform 0.55s var(--ease-luxury),
    border-color 0.4s var(--ease-cinematic),
    box-shadow 0.55s var(--ease-luxury),
    background 0.4s;
}

.card::before {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
}

.services-grid .card:nth-child(3n + 1) {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.38);
}

.services-grid .card:nth-child(3n + 2) {
  margin-top: 0.35rem;
}

.services-grid .card:nth-child(3n) {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.42), 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.packages-grid .card-package:nth-child(odd) {
  padding: 1.85rem 1.75rem 2rem;
}

.packages-grid .card-package:nth-child(even) {
  padding: 2rem 1.85rem 1.75rem;
}

.card:hover {
  transform: translateY(-12px) scale(1.015);
  box-shadow: var(--shadow-luxury-lg);
}

.card:active {
  transform: translateY(-4px) scale(1.005);
  transition-duration: 0.12s;
}

.card-featured,
.card-package.card-featured {
  box-shadow:
    var(--shadow-luxury-md),
    0 0 40px rgba(255, 234, 0, 0.08);
}

/* ── 4. Gallery cinematic ── */
.gallery-item {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #050505;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 234, 0, 0.06);
  transition:
    border-color 0.5s var(--ease-luxury),
    box-shadow 0.55s var(--ease-luxury),
    transform 0.55s var(--ease-luxury);
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 28%,
    transparent 72%,
    rgba(0, 0, 0, 0.35) 100%
  );
  opacity: 0.65;
  transition: opacity 0.5s var(--ease-luxury);
}

.gallery-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 45%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 45%,
    rgba(255, 234, 0, 0.1) 50%,
    transparent 100%
  );
  transition: transform 0.9s var(--ease-luxury);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow:
    0 32px 72px rgba(0, 0, 0, 0.62),
    0 0 48px rgba(255, 234, 0, 0.08);
}

.gallery-item:hover::before {
  opacity: 0.9;
}

.gallery-item:hover::after {
  transform: translateX(280%);
}

.gallery-item .zoomable-trigger img,
.gallery-item video {
  transition: transform 8s var(--ease-cinematic), opacity 0.6s var(--ease-luxury);
  animation: gallery-drift 18s var(--ease-cinematic) infinite alternate;
}

.gallery-item:hover .zoomable-trigger img {
  transform: scale(1.05);
  animation-play-state: paused;
}

.gallery-item .zoomable-trigger {
  position: relative;
  overflow: hidden;
}

.gallery-item .zoomable-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, transparent 45%);
  opacity: 0.85;
}

.gallery-item figcaption {
  position: relative;
  z-index: 4;
}

@keyframes gallery-drift {
  0% { transform: scale(1.02); }
  100% { transform: scale(1.06); }
}

/* Carousel / album tiles */
.carousel-main {
  box-shadow: var(--shadow-luxury-md);
}

.carousel-slide .zoomable-trigger {
  position: relative;
}

/* ── 5. Buttons – luxury configurator ── */
.btn {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s var(--ease-luxury),
    background 0.35s var(--ease-cinematic),
    box-shadow 0.45s var(--ease-luxury),
    border-color 0.35s;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.65s var(--ease-luxury);
  pointer-events: none;
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.1s;
}

.btn-primary {
  box-shadow: 0 1px 8px var(--yellow-glow, rgba(180, 155, 0, 0.12));
}

.btn-primary:hover {
  box-shadow: 0 2px 12px var(--yellow-glow, rgba(180, 155, 0, 0.14));
}

.hero-cta .btn-primary {
  box-shadow: 0 2px 12px var(--yellow-glow, rgba(180, 155, 0, 0.12));
}

/* ── 6. Typography – editorial spacing ── */
.section-head h1,
.section-head h2,
.page-hero .section-head h1 {
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.section-head {
  padding: 3.5rem 0 2.75rem;
}

.section-intro,
.section-head .section-intro {
  letter-spacing: 0.02em;
  line-height: 1.75;
  max-width: 36rem;
}

.salon-copy h2,
.cinematic-band h2 {
  letter-spacing: -0.025em;
  line-height: 1.06;
}

/* ── Cinematic band & Salon – dezente Bewegung ── */
.salon-media img {
  animation: salon-ken-burns 22s var(--ease-cinematic) infinite alternate;
  will-change: transform;
}

.salon-showcase:hover .salon-media img {
  animation-play-state: paused;
}

.cinematic-band-img {
  animation: cinematic-ken-burns 26s var(--ease-cinematic) infinite alternate;
  will-change: transform;
}

.cinematic-band-shine {
  animation: cinematic-shine-drift 9s var(--ease-cinematic) infinite alternate;
}

.cinematic-band-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 36%,
    rgba(255, 255, 255, 0.06) 46%,
    rgba(255, 234, 0, 0.14) 50%,
    transparent 64%
  );
  mix-blend-mode: soft-light;
  animation: cinematic-reflection-sweep 8s var(--ease-cinematic) infinite;
}

.cinematic-band.visible .cinematic-band-bg {
  animation: cinematic-frame-in 1s var(--ease-luxury) 0.15s backwards;
}

.cinematic-band.visible .cinematic-band-inner > * {
  animation: cinematic-fade-up 0.75s var(--ease-luxury) backwards;
}

.cinematic-band.visible .cinematic-band-inner > .eyebrow {
  animation-delay: 0.08s;
}

.cinematic-band.visible .cinematic-band-inner > h2 {
  animation-delay: 0.16s;
}

.cinematic-band.visible .cinematic-band-inner > .cinematic-band-text {
  animation-delay: 0.24s;
}

.cinematic-band.visible .cinematic-band-inner > .cinematic-band-actions {
  animation-delay: 0.32s;
}

.cinematic-band.visible .cinematic-band-inner > .cinematic-video-placeholder {
  animation:
    cinematic-fade-up 0.75s var(--ease-luxury) 0.4s backwards,
    cinematic-placeholder-pulse 5s var(--ease-cinematic) 1.2s infinite alternate;
}

.salon-showcase.visible .salon-media {
  animation: cinematic-frame-in 0.9s var(--ease-luxury) backwards;
}

.salon-showcase.visible .salon-copy > * {
  animation: cinematic-fade-up 0.7s var(--ease-luxury) backwards;
}

.salon-showcase.visible .salon-copy > .eyebrow { animation-delay: 0.1s; }
.salon-showcase.visible .salon-copy > h2 { animation-delay: 0.18s; }
.salon-showcase.visible .salon-copy > .salon-text { animation-delay: 0.26s; }
.salon-showcase.visible .salon-copy > .salon-list { animation-delay: 0.34s; }
.salon-showcase.visible .salon-copy > .btn { animation-delay: 0.42s; }

@keyframes salon-ken-burns {
  0% { transform: scale(1.03); }
  100% { transform: scale(1.08) translate(-1%, 0.5%); }
}

@keyframes cinematic-ken-burns {
  0% { transform: scale(1.04); object-position: center 32%; }
  100% { transform: scale(1.1) translate(-1.5%, 0.4%); object-position: center 40%; }
}

@keyframes cinematic-shine-drift {
  0% { opacity: 0.55; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.08) translate(3%, -2%); }
}

@keyframes cinematic-reflection-sweep {
  0%, 100% { transform: translateX(-12%) skewX(-5deg); opacity: 0.35; }
  50% { transform: translateX(18%) skewX(-5deg); opacity: 0.85; }
}

@keyframes cinematic-frame-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cinematic-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cinematic-placeholder-pulse {
  0% {
    border-color: rgba(255, 234, 0, 0.22);
    box-shadow: 0 0 0 rgba(255, 234, 0, 0);
  }
  100% {
    border-color: rgba(255, 234, 0, 0.45);
    box-shadow: 0 0 24px rgba(255, 234, 0, 0.08);
  }
}

/* ── 7. Mobile premium app feel ── */
@media (max-width: 900px) {
  .hero h1 {
    letter-spacing: -0.03em;
    margin-bottom: 1.35rem;
  }

  .hero-benefits {
    gap: 0.65rem;
    margin-bottom: 2rem;
  }

  .sticky-cta {
    transition: transform 0.55s var(--ease-luxury);
    backdrop-filter: blur(16px) saturate(1.15);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
  }

  .sticky-cta-btn {
    box-shadow:
      0 4px 20px rgba(255, 234, 0, 0.25),
      0 8px 32px rgba(0, 0, 0, 0.35);
  }

  .main-nav {
    transition: transform 0.5s var(--ease-luxury), visibility 0.5s;
  }

  .card:hover {
    transform: translateY(-6px) scale(1.01);
  }

  .gallery-item .zoomable-trigger img {
    animation: none;
  }

  .hero-img {
    animation: none;
    transform: scale(1.05);
  }

  .hero-cinematic__particles {
    opacity: 0.2;
  }

  .salon-media img,
  .cinematic-band-img {
    animation: none;
    transform: scale(1.04);
  }

  .cinematic-band-bg::after {
    animation-duration: 12s;
  }
}

/* ── Cinematic hero (dark default) ── */
.hero-img {
  filter: brightness(1.1) contrast(1.06) saturate(1.12);
  animation: hero-ken-burns 28s var(--ease-cinematic) infinite alternate;
}

.hero-bg::after {
  display: block;
}

.hero-cinematic__ambient,
.hero-cinematic__streak,
.hero-cinematic__streak--alt,
.hero-cinematic__particles {
  display: block !important;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .hero-img,
  .hero-bg::after,
  .hero-cinematic__ambient,
  .hero-cinematic__streak,
  .hero-cinematic__highlight,
  .hero-cinematic__particles,
  .gallery-item .zoomable-trigger img {
    animation: none !important;
  }

  .btn::before {
    display: none;
  }

  .gallery-item::after {
    display: none;
  }

  .salon-media img,
  .cinematic-band-img,
  .cinematic-band-shine,
  .cinematic-band-bg::after,
  .cinematic-video-placeholder,
  .cinematic-band.visible .cinematic-band-bg,
  .cinematic-band.visible .cinematic-band-inner > *,
  .salon-showcase.visible .salon-media,
  .salon-showcase.visible .salon-copy > * {
    animation: none !important;
  }
}
