/**
 * hero_slideshow.css
 * Hero-Bereich mit Split-Layout und Slideshow
 * Upload nach: /media/css/hero_slideshow.css
 */

/* ========== HERO COMPONENT ========== */
.hero-custom {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  z-index: 1;
}

.hero-custom .hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-custom .hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-custom .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-overlay) 0%, rgba(23,86,140,0.85) 50%, rgba(23,86,140,0.75) 100%);
  z-index: 1;
}

/* Hero Left - Text Area */
.hero-custom .hero-left {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-xl) var(--spacing-xxl);
  color: var(--text-white);
}

.hero-custom .hero-left h1 {
  font-family: var(--font-heading);
  font-size: var(--font-size-hero-h1);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  letter-spacing: -2px;
}

.hero-custom .hero-left .highlight {
  background: linear-gradient(135deg, white, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-custom .hero-subtitle {
  font-family: var(--font-main);
  font-size: var(--font-size-hero-subtitle);
  margin-bottom: 2.5rem;
  opacity: 0.95;
  line-height: 1.7;
  font-weight: 400;
}

/* Hero Right - Slideshow Area */
.hero-custom .hero-right {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl) var(--spacing-xxl) var(--spacing-xl) var(--spacing-lg);
}

/* ========== SLIDESHOW COMPONENT ========== */
.hero-custom .hero-slideshow-container {
  width: 100%;
  max-width: 600px;
  max-height: 600px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  background: var(--bg);
  position: relative;
}

.hero-custom .hero-slideshow {
  position: relative;
  width: 100%;
  height: 600px;
}

.hero-custom .hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--transition-slow);
  z-index: 1;
}

.hero-custom .hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-custom .hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slide Caption - Variante 2 "SIDE ACCENT": opaker Bodenbalken mit Gold-Streifen */
.hero-custom .slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 110px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(13,58,95,0.85) 35%,
    rgba(13,58,95,0.98) 100%
  );
  color: var(--text-white);
  padding: 1.5rem var(--spacing-md) 3rem calc(var(--spacing-md) + 1.2rem);
  z-index: 3;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: visible;
}

/* Goldener Akzent-Streifen links (per Pseudoelement, kein HTML-Eingriff) */
.hero-custom .slide-caption::before {
  content: "";
  position: absolute;
  left: var(--spacing-md);
  top: 1.5rem;
  bottom: 3rem;
  width: 6px;
  background: var(--gold);
  border-radius: 4px;
}

.hero-custom .slide-caption-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-slide-title);
  font-weight: 700;
  margin-bottom: 0.3rem;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--text-white);
  display: block;
}

.hero-custom .slide-caption-subtitle {
  font-family: var(--font-main);
  font-size: var(--font-size-slide-subtitle);
  font-weight: 400;
  opacity: 0.95;
  line-height: 1.5;
  display: block;
}

/* Slide Indicators */
.hero-custom .slide-indicators {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 4;
  pointer-events: auto;
}

.hero-custom .slide-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-custom .slide-indicator.active {
  background: var(--gold);
  width: 40px;
  border-radius: var(--radius-sm);
}

/* ========== RESPONSIVE BREAKPOINTS ========== */
@media (max-width: 1024px) {
  .hero-custom {
    grid-template-columns: 1fr;
    min-height: 100vh;
  }
  
  .hero-custom .hero-left {
    padding: 3rem var(--spacing-lg) var(--spacing-lg) var(--spacing-lg);
    align-items: center;
    text-align: center;
  }
  
  .hero-custom .hero-right {
    padding: var(--spacing-lg);
  }
  
  .hero-custom .hero-slideshow-container {
    max-width: 90vw;
    max-height: 60vw;
  }
  
  .hero-custom .hero-slideshow {
    height: 60vw;
  }
  
  .hero-custom .slide-caption {
    min-height: 100px;
    padding: 1.2rem var(--spacing-sm) 2.8rem calc(var(--spacing-sm) + 1.2rem);
  }

  .hero-custom .slide-caption::before {
    left: var(--spacing-sm);
    top: 1.2rem;
    bottom: 2.8rem;
  }
}

@media (max-width: 600px) {
  .hero-custom .hero-slideshow-container {
    max-width: 100vw;
    max-height: 70vw;
  }
  
  .hero-custom .hero-slideshow {
    height: 70vw;
  }
  
  .hero-custom .slide-caption {
    min-height: 90px;
    padding: 1rem var(--spacing-sm) 2.5rem calc(var(--spacing-sm) + 1rem);
  }

  .hero-custom .slide-caption::before {
    left: var(--spacing-sm);
    top: 1rem;
    bottom: 2.5rem;
    width: 4px;
  }

  .hero-custom .slide-caption-title {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
  }

  .hero-custom .slide-caption-subtitle {
    font-size: 0.9rem;
  }
}

@media (min-width: 1025px) {
  .hero-custom .slide-caption {
    min-height: 130px;
  }
}
