/* ==========================================================================
   Hero Section — Portrait BG right, text left-aligned
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--color-bg-deep);
  overflow: hidden;
}

/* ---- Portrait Image — fills right half ---- */
.hero__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 30%;
  z-index: 0;
  will-change: transform;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transform: scale(1.05);
}

.hero--ready .hero__bg img {
  animation: heroImageReveal 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
}

@keyframes heroImageReveal {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Gradient overlay — clean 50/50 split */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--color-bg-deep) 0%, var(--color-bg-deep) 38%, rgba(var(--color-bg-deep-rgb), 0.5) 50%, rgba(var(--color-bg-deep-rgb), 0.1) 58%, transparent 70%),
    linear-gradient(0deg, rgba(var(--color-bg-deep-rgb), 0.5) 0%, transparent 25%),
    linear-gradient(180deg, rgba(var(--color-bg-deep-rgb), 0.3) 0%, transparent 20%),
    radial-gradient(ellipse 70% 50% at 10% 85%, rgba(var(--color-sage-rgb), 0.25) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 5% 40%, rgba(var(--color-sage-rgb), 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 35% 35% at 75% 15%, rgba(var(--color-gold-rgb), 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 25% 25% at 55% 70%, rgba(var(--color-gold-rgb), 0.04) 0%, transparent 50%);
  z-index: 1;
}

/* Subtle animated glow behind text area */
.hero::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 47% 45%, rgba(var(--color-sage-rgb), 0.05) 0%, transparent 60%),
    radial-gradient(circle at 53% 38%, rgba(var(--color-sage-rgb), 0.04) 0%, transparent 65%),
    radial-gradient(circle at 50% 52%, rgba(var(--color-sage-rgb), 0.03) 0%, transparent 55%);
  z-index: 0;
  filter: blur(60px);
  will-change: transform;
}


/* ---- Parallax Depth Layers ---- */
.hero__depth-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

/* Far layer — slow-moving atmospheric haze */
.hero__depth-layer--far {
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(var(--color-sage-rgb), 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 20% 70%, rgba(var(--color-gold-rgb), 0.04) 0%, transparent 60%);
  filter: blur(40px);
}

/* Mid layer — organic floating shapes */
.hero__depth-layer--mid {
  z-index: 0;
  overflow: hidden;
}

.hero__depth-layer--mid::before,
.hero__depth-layer--mid::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.hero__depth-layer--mid::before {
  width: 500px;
  height: 500px;
  top: -10%;
  right: 10%;
  background:
    radial-gradient(circle at 47% 47%, rgba(var(--color-sage-rgb), 0.07) 0%, transparent 60%),
    radial-gradient(circle at 53% 42%, rgba(var(--color-sage-rgb), 0.06) 0%, transparent 65%),
    radial-gradient(circle at 50% 54%, rgba(var(--color-sage-rgb), 0.04) 0%, transparent 55%);
}

.hero__depth-layer--mid::after {
  width: 350px;
  height: 350px;
  bottom: 5%;
  left: 15%;
  background:
    radial-gradient(circle at 48% 46%, rgba(var(--color-gold-rgb), 0.05) 0%, transparent 60%),
    radial-gradient(circle at 54% 52%, rgba(var(--color-gold-rgb), 0.04) 0%, transparent 65%),
    radial-gradient(circle at 46% 52%, rgba(var(--color-gold-rgb), 0.03) 0%, transparent 55%);
  animation-delay: -6s;
  animation-duration: 16s;
}


/* Near layer — subtle foreground depth */
.hero__depth-layer--near {
  z-index: 3;
  overflow: hidden;
}

/* ---- Cinematic Light Sweep — disabled ---- */
.hero__light-sweep {
  display: none;
}

/* ---- Vignette overlay — cinematic framing ---- */
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 45% 45%, transparent 0%, transparent 50%, rgba(var(--color-bg-deep-rgb), 0.4) 100%);
  will-change: opacity;
}

/* ---- Content — left-aligned ---- */
.hero__content {
  position: relative;
  z-index: 5;
  text-align: left;
  max-width: 620px;
  padding: 0 24px 0 0;
  margin-left: max(24px, calc((100vw - var(--container-max)) / 2 + 24px));
  will-change: transform, opacity;
}

/* Small label above title */
.hero__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(30px);
}

.hero--ready .hero__label {
  animation: heroFadeUp 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  background: radial-gradient(ellipse at 40% 30%, #ffffff 0%, rgba(255, 255, 255, 0.85) 50%, rgba(var(--color-sage-mid-rgb), 0.5) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  padding: 4px 0;
  opacity: 0;
  transform: translateY(40px);
}

.hero--ready .hero__title {
  animation: heroFadeUp 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s forwards;
}

.hero__title-line {
  display: block;
}

.hero__title em {
  font-style: italic;
  display: inline-block;
  padding: 0 4px;
  background: radial-gradient(ellipse at 50% 40%, var(--color-gold-light) 0%, var(--color-gold) 60%, var(--color-gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 44px;
  line-height: 1.8;
  font-weight: 300;
  max-width: 460px;
  opacity: 0;
  transform: translateY(30px);
}

.hero--ready .hero__subtitle {
  animation: heroFadeUp 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.0s forwards;
}

.hero__cta-wrap {
  opacity: 0;
  transform: translateY(24px);
}

.hero--ready .hero__cta-wrap {
  animation: heroFadeUp 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.3s forwards;
}

/* Scroll indicator — centered */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-dim);
  font-size: 0.7rem;
  font-family: var(--font-body);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
}

.hero--ready .hero__scroll {
  animation: scrollFadeUp 0.8s var(--ease-out) 1.2s forwards;
}

@keyframes scrollFadeUp {
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-sage-light), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1150px) {
  .hero__content {
    margin-left: 40px;
    max-width: 480px;
  }

  .hero__bg {
    left: 35%;
    right: 0;
  }

  .hero__scroll {
    left: 50%;
  }

  .hero::after {
    left: 2%;
    width: 300px;
    height: 300px;
  }
}

/* ==========================================================================
   Mobile Hero — Fullscreen portrait, text overlay bottom
   ========================================================================== */

@media (max-width: 768px) {

  /* Fullscreen container — Höhe per JS in px gelockt (--hero-h) */
  .hero {
    height: var(--hero-h, 100vh);
    min-height: 0;
    align-items: stretch;
  }

  /* Portrait füllt gesamten Screen */
  .hero__bg {
    left: 0;
    right: 0;
  }

  .hero__bg img {
    object-position: 50% 15%;
    opacity: 0;
    transform: scale(1.08);
  }

  .hero--ready .hero__bg img {
    animation: heroImageRevealMobile 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s forwards;
  }

  @keyframes heroImageRevealMobile {
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  /* Gradient von unten — Text-Lesbarkeit, aber Bild sichtbar lassen */
  .hero::before {
    background:
      linear-gradient(0deg,
        var(--color-bg-deep) 0%,
        rgba(var(--color-bg-deep-rgb), 0.9) 5%,
        rgba(var(--color-bg-deep-rgb), 0.55) 14%,
        rgba(var(--color-bg-deep-rgb), 0.1) 26%,
        transparent 38%),
      linear-gradient(180deg,
        rgba(var(--color-bg-deep-rgb), 0.4) 0%,
        transparent 10%),
      radial-gradient(ellipse 120% 50% at 50% 90%,
        rgba(var(--color-sage-rgb), 0.08) 0%, transparent 70%);
    z-index: 1;
  }

  /* Glow hinter dem Text unten */
  .hero::after {
    top: auto;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(var(--color-sage-rgb), 0.1) 0%, transparent 70%);
  }

  /* Content absolut am unteren Rand verankert */
  .hero__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    margin-left: 0;
    max-width: none;
    padding: 0 28px 24px;
    text-align: center;
  }

  /* Mobile: sanfter Fade ohne Verschiebung, erst bei --ready */
  .hero__label,
  .hero__title,
  .hero__subtitle,
  .hero__cta-wrap {
    transform: none;
  }

  .hero--ready .hero__label {
    animation: heroFadeIn 2s ease-in 2s forwards;
  }
  .hero--ready .hero__title {
    animation: heroFadeIn 2s ease-in 2.3s forwards;
  }
  .hero--ready .hero__subtitle {
    animation: heroFadeIn 2s ease-in 2.6s forwards;
  }
  .hero--ready .hero__cta-wrap {
    animation: heroFadeIn 2s ease-in 2.9s forwards;
  }

  @keyframes heroFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .hero__label {
    margin-bottom: 12px;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
  }

  .hero__title {
    font-size: clamp(2.2rem, 8.5vw, 3rem);
    margin-bottom: 12px;
    background: radial-gradient(ellipse at 50% 40%, #ffffff 0%, rgba(255, 255, 255, 0.9) 60%, rgba(var(--color-sage-mid-rgb), 0.5) 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }

  .hero__title-line {
    white-space: normal;
  }

  .hero__subtitle {
    font-size: 0.9rem;
    margin-bottom: 24px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
  }

  .hero__scroll {
    display: none;
  }

  /* Vignette — Ränder abdunkeln, Fokus aufs Gesicht */
  .hero__vignette {
    background:
      radial-gradient(ellipse 75% 65% at 50% 35%, transparent 0%, transparent 40%, rgba(var(--color-bg-deep-rgb), 0.6) 100%);
  }

  /* Parallax-Layer auf Mobile reduzieren */
  .hero__depth-layer--near,
  .hero__depth-layer--far,
  .hero__light-sweep {
    display: none;
  }

  .hero__depth-layer--mid::before {
    width: 250px;
    height: 250px;
    top: auto;
    bottom: 20%;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(var(--color-sage-rgb), 0.08) 0%, transparent 70%);
  }

  .hero__depth-layer--mid::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero__content {
    padding: 0 20px 20px;
  }

  .hero__title {
    font-size: clamp(2rem, 8.5vw, 2.8rem);
  }

  .hero__subtitle {
    font-size: 0.9rem;
    max-width: 300px;
  }

  .hero__bg img {
    object-position: 50% 12%;
  }
}

