/* ═══════════════════════════════════════════════════════════════════════════
   SSI Endoskeleton — Hero: Split
   50/50 image + text side by side. Bild links, Text rechts.
   Load via: <link rel="stylesheet" href="heroes/split.css">
   ═══════════════════════════════════════════════════════════════════════════ */

.hero.hero--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 70vh;
  margin-top: calc(var(--nav-height) * -1);
  overflow: hidden;
}

/* ── Bildseite ── */
.hero--split .hero-image {
  position: relative;
  overflow: hidden;
}

.hero--split .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gradient-Edge: rechte Seite des Bildes blendet sanft in die Textseite über */
.hero--split .hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      transparent 60%,
      rgba(var(--bg-rgb, 255, 255, 255), 0.25) 80%,
      rgba(var(--bg-rgb, 255, 255, 255), 0.55) 100%
    ),
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.15) 0%,
      transparent 30%
    );
  pointer-events: none;
}

/* ── Textseite: subtiler Primärfarb-Tint für Charakter ── */
.hero--split .hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-3xl) var(--space-2xl);
  text-align: left;
  max-width: none;
  background:
    radial-gradient(ellipse 100% 80% at 100% 50%,
      rgba(var(--primary-rgb), 0.05) 0%,
      transparent 70%
    ),
    var(--bg);
  position: relative;
}

/* Dezente vertikale Linie links in der Textseite */
.hero--split .hero-content::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(var(--primary-rgb), 0.3) 30%,
    rgba(var(--primary-rgb), 0.3) 70%,
    transparent 100%
  );
}

.hero--split .hero-eyebrow {
  color: var(--primary);
  letter-spacing: 0.15em;
}

.hero--split .hero-title {
  font-size: var(--fs-3xl);
  color: var(--heading);
  margin-bottom: var(--space-lg);
  line-height: 1.15;
}

.hero--split .hero-subtitle {
  color: var(--text-muted);
  margin: 0 0 var(--space-xl);
  max-width: 30rem;
  line-height: 1.75;
}

.hero--split .hero-ctas {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* ── Reverse variant: Text links, Bild rechts ── */
.hero--split-reverse {
  direction: rtl;
}

.hero--split-reverse > * {
  direction: ltr;
}

/* Bei reverse: Gradient spiegeln (Bild jetzt rechts, Blend nach links) */
.hero--split-reverse .hero-image::after {
  background:
    linear-gradient(270deg,
      transparent 60%,
      rgba(var(--bg-rgb, 255, 255, 255), 0.25) 80%,
      rgba(var(--bg-rgb, 255, 255, 255), 0.55) 100%
    ),
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.15) 0%,
      transparent 30%
    );
}

/* Bei reverse: Linie rechts statt links */
.hero--split-reverse .hero-content::before {
  left: auto;
  right: 0;
}

/* ── Responsive ── */
@media (max-width: 48rem) {
  .hero--split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero--split .hero-image {
    height: 50vh;
    min-height: 18.75rem;
  }

  .hero--split .hero-content {
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
  }

  .hero--split .hero-content::before {
    display: none;
  }

  .hero--split .hero-subtitle {
    max-width: none;
  }

  .hero--split .hero-ctas {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .hero--split .hero-ctas .btn {
    width: 100%;
    max-width: 20rem;
  }

  .hero--split-reverse {
    direction: ltr;
  }
}
