/* ============================================
   Einwandererführerschein – V2 Enhancements
   Full-Width Cinematic Image Breaks
   ============================================ */

/* --- Image Strip (Full-width Visual Break) --- */
.image-strip {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 320px;
  max-height: 550px;
  overflow: hidden;
}

.image-strip--tall {
  height: 60vh;
  min-height: 380px;
  max-height: 650px;
}

/* Support both <img> and <picture><img> inside .image-strip */
.image-strip > picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.image-strip > img,
.image-strip > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transition: transform 0.8s ease;
}

.image-strip:hover > img,
.image-strip:hover > picture > img {
  transform: scale(1.03);
}

.image-strip__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 43, 31, 0.08) 0%,
    rgba(15, 43, 31, 0.15) 50%,
    rgba(15, 43, 31, 0.75) 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 var(--space-md) var(--space-lg);
}

.image-strip__overlay--bottom {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(15, 43, 31, 0.05) 40%,
    rgba(15, 43, 31, 0.7) 100%
  );
}

.image-strip__text {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 600;
  text-align: center;
  max-width: 750px;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
  margin: 0;
  line-height: 1.5;
  padding: var(--space-sm) var(--space-md);
  background: rgba(15, 43, 31, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-strip__text strong {
  color: var(--color-accent-light);
}

/* --- V2 Hero: Slightly adjusted overlay for family photo --- */
body .hero__overlay {
  background: linear-gradient(
    180deg,
    rgba(15, 43, 31, 0.35) 0%,
    rgba(15, 43, 31, 0.55) 45%,
    rgba(15, 43, 31, 0.92) 100%
  );
}

/* --- Responsive --- */
@media (min-width: 640px) {
  .image-strip {
    min-height: 380px;
  }
  .image-strip--tall {
    min-height: 420px;
  }
  .image-strip__text {
    padding: var(--space-sm) var(--space-lg);
  }
}

@media (min-width: 960px) {
  .image-strip {
    height: 50vh;
    min-height: 400px;
  }
  .image-strip--tall {
    height: 55vh;
    min-height: 450px;
  }
}
