/* === noir-hero.css === */
/* Bei.Gretel Noir Theme — Hero Section (Split-Layout + Stats) */

/* ========================================================
   11. HERO SECTION — Split (Text links, Bild rechts) + Stats darunter
   ======================================================== */

body.noir .hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 120px 0 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-noir);
}

body.noir .hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(45,90,63,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(139,34,50,0.08) 0%, transparent 50%);
  pointer-events: none;
  transform: translateY(var(--bg-offset, 0));
  will-change: transform;
}

/* Split: Text links, Bild rechts */
body.noir .hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: center;
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 1;
}

body.noir .hero-content {
  position: relative;
  z-index: 1;
}

body.noir .hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 600;
}

body.noir .hero-content h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

body.noir .hero-content h1 em {
  font-family: 'Caveat-Bold', 'Caveat', cursive;
  font-style: normal;
  color: var(--gold);
  font-size: 1.15em;
  /* Gold Shimmer */
  background: linear-gradient(90deg, var(--gold) 0%, #f0dfa0 25%, var(--gold) 50%, #f0dfa0 75%, var(--gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 4s ease-in-out infinite;
}

@keyframes textShimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

body.noir .hero-logo {
  max-width: 180px;
  margin-bottom: 2rem;
  animation: subtleFloat 6s ease-in-out infinite, logoGlow 6s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3)) drop-shadow(0 0 8px rgba(201,168,76,0.1)); }
  50%      { filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3)) drop-shadow(0 0 20px rgba(201,168,76,0.3)); }
}

body.noir .hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero-Bild rechts im Split */
body.noir .hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  position: relative;
}

body.noir .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Goldener Licht-Sweep über das Bild */
body.noir .hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(201,168,76,0.07) 50%,
    transparent 60%
  );
  animation: lightSweep 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes lightSweep {
  0%   { transform: translateX(-120%); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

/* Gold-Border + Vignette */
body.noir .hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold-muted);
  box-shadow: inset 0 0 60px rgba(0,0,0,0.25);
  pointer-events: none;
  transition: border-color 0.6s ease;
}

body.noir .hero-image:hover::after {
  border-color: var(--gold);
}

/* Animierte Sterne im Eyebrow */
body.noir .hero-stars {
  display: inline-flex;
  gap: 3px;
  margin-right: 6px;
  vertical-align: middle;
}

body.noir .hero-star {
  width: 14px;
  height: 14px;
  fill: var(--gold);
  opacity: 0;
  animation: starAppear 0.4s ease forwards;
}

body.noir .hero-star:nth-child(1) { animation-delay: 0.3s; }
body.noir .hero-star:nth-child(2) { animation-delay: 0.5s; }
body.noir .hero-star:nth-child(3) { animation-delay: 0.7s; }
body.noir .hero-star:nth-child(4) { animation-delay: 0.9s; }

@keyframes starAppear {
  0%   { opacity: 0; transform: scale(0) rotate(-180deg); }
  60%  { opacity: 1; transform: scale(1.2) rotate(0deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* Eyebrow: Dekorative Gold-Linie */
body.noir .hero-eyebrow::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold-muted);
  margin-top: 0.75rem;
}

/* H1: Subtiler Text-Shadow für Tiefe */
body.noir .hero-content h1 {
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

/* ========================================================
   IMMERSIVE HERO — Fullscreen Background (Homepage)
   Terrassen-Bild als immersiver Hintergrund mit 4-Layer Overlay
   ======================================================== */

/* Base: Fullscreen zentriert */
body.noir .hero-immersive {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-noir);
}

/* Layer 0: Fullscreen Background Image */
body.noir .hero-immersive .hero-bg {
  position: absolute;
  inset: -30px;
  z-index: 0;
  overflow: hidden;
}

body.noir .hero-immersive .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  will-change: transform;
  transform: scale(1.08);
}

/* Layer 1: 4-Layer Cinematic Overlay */
body.noir .hero-immersive .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.55) 18%, transparent 45%),
    radial-gradient(ellipse at center 45%, rgba(10,10,10,0.35) 0%, transparent 65%),
    linear-gradient(to bottom, rgba(10,10,10,0.5) 0%, transparent 25%),
    radial-gradient(ellipse at center, transparent 50%, rgba(10,10,10,0.4) 100%);
}

/* Ambient Glow über dem Overlay */
body.noir .hero-immersive::before {
  z-index: 2;
}

/* Layer 2: Content (zentriert, Golden Zone) */
body.noir .hero-immersive .hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 700px;
  padding: 0 var(--section-pad-x);
  margin-top: -4vh;
}

body.noir .hero-immersive .hero-logo {
  margin-left: auto;
  margin-right: auto;
}

body.noir .hero-immersive .hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-shadow: 0 1px 20px rgba(0,0,0,0.8), 0 0 40px rgba(0,0,0,0.5);
  color: #fff;
}

body.noir .hero-immersive .hero-stars {
  gap: 5px;
  margin-right: 10px;
}

body.noir .hero-immersive .hero-star {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 0 4px rgba(201,168,76,0.6));
}

body.noir .hero-immersive .hero-eyebrow::after {
  margin-left: auto;
  margin-right: auto;
}

body.noir .hero-immersive .hero-content h1 {
  text-shadow: 0 2px 40px rgba(0,0,0,0.6), 0 4px 80px rgba(0,0,0,0.3);
}

body.noir .hero-immersive .hero-actions {
  justify-content: center;
}

/* Layer 3: Stats-Bar am unteren Rand (Trust-Bar Layout) */
body.noir .hero-immersive .stats-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  width: auto;
  max-width: calc(100% - 2 * var(--section-pad-x));
  margin: 0 auto;
  padding: 0.5rem 1rem;
  background: rgba(13,13,13,0.6);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
}

body.noir .hero-immersive .stat {
  flex: 0 0 auto;
  padding: 1rem 2rem;
  min-width: 140px;
}

/* Light Sweep auf Hero-Background */
body.noir .hero-immersive .hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(201,168,76,0.05) 50%,
    transparent 60%
  );
  animation: lightSweep 10s ease-in-out infinite;
  pointer-events: none;
}

/* Hero Spotlight Overlay (JS-erzeugt) */
body.noir .hero-spotlight {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

body.noir .hero-immersive .hero-spotlight {
  border-radius: 0;
  z-index: 2;
}

/* Hero Entrance Choreography */
body.noir .hero-enter {
  opacity: 0;
  transform: translateY(20px);
}

body.noir .hero-image.hero-enter,
body.noir .hero-bg.hero-enter {
  opacity: 0;
  transform: translateY(0) scale(1.12);
}

body.noir .hero-enter.hero-entered {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Ken Burns Cinematic Entrance für Background */
body.noir .hero-bg.hero-enter.hero-entered {
  transform: scale(1.08);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================================
   IMMERSIVE HERO — Responsive
   ======================================================== */

@media only screen and (max-width: 768px) {
  body.noir .hero-immersive {
    min-height: 85vh;
    min-height: 85dvh;
  }

  body.noir .hero-immersive .hero-content {
    margin-top: 0;
    padding-top: 100px;
  }

  body.noir .hero-immersive .stats-bar {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    width: auto;
    max-width: none;
    margin: 2rem var(--section-pad-x);
    flex-wrap: wrap;
    gap: 0;
  }

  body.noir .hero-immersive .stat {
    min-width: 120px;
    padding: 1rem 1.25rem;
  }
}

@media only screen and (max-width: 480px) {
  body.noir .hero-immersive {
    min-height: 100vh;
    min-height: 100dvh;
  }

  body.noir .hero-immersive .hero-bg img {
    object-position: center center;
  }

  body.noir .hero-immersive .hero-content h1 {
    font-size: 1.8rem;
  }

  body.noir .hero-immersive .stats-bar {
    flex-direction: column;
    gap: 0;
  }

  body.noir .hero-immersive .stats-bar .stat {
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem;
  }

  body.noir .hero-immersive .stats-bar .stat:last-child {
    border-bottom: none;
  }
}

/* Reduced Motion: Animationen deaktivieren */
@media (prefers-reduced-motion: reduce) {
  body.noir .hero-logo { animation: none; filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3)); }
  body.noir .hero-image::before { animation: none; display: none; }
  body.noir .hero-bg::after { animation: none; display: none; }
  body.noir .hero-star { animation: none; opacity: 1; }
  body.noir .hero-content h1 em {
    animation: none;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: var(--gold);
  }
  body.noir .hero-enter {
    opacity: 1;
    transform: none;
  }
  body.noir .hero-bg.hero-enter {
    transform: scale(1.08);
  }
  body.noir .hero-bg img {
    will-change: auto;
  }
}
