/* ============================================
   Startseite: Abschluss-CTA vor dem Footer
   Gleiches Muster wie retreat-closing / corp-closing / sig-closing,
   hier in den Hauptmarken-Farben (Cobalt / Shark).
   ============================================ */

.home-closing {
  position: relative;
  padding-block: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.home-closing__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-closing__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.home-closing__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      rgba(25, 35, 65, 0.9) 0%,
      rgba(37, 44, 55, 0.78) 50%,
      rgba(37, 44, 55, 0.68) 100%
    );
}

.home-closing__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 50% at 20% 60%,
    rgba(41, 51, 186, 0.18) 0%,
    transparent 70%
  );
}

.home-closing__inner {
  position: relative;
  z-index: 1;
  text-align: left;
}

.home-closing__headline {
  font-family: 'Geared Slab', 'Roboto Slab', Georgia, serif;
  font-size: clamp(3rem, 6vw + 1rem, 6.5rem);
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 0;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
  max-width: 900px;
  overflow: hidden;
}

.home-closing__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  transition:
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-closing__headline.closing-revealed .home-closing__word {
  opacity: 1;
  transform: translateY(0);
}

.home-closing__headline.closing-revealed .home-closing__word:nth-child(1) { transition-delay: 0ms; }
.home-closing__headline.closing-revealed .home-closing__word:nth-child(2) { transition-delay: 80ms; }
.home-closing__headline.closing-revealed .home-closing__word:nth-child(3) { transition-delay: 160ms; }
.home-closing__headline.closing-revealed .home-closing__word:nth-child(4) { transition-delay: 240ms; }
.home-closing__headline.closing-revealed .home-closing__word:nth-child(5) { transition-delay: 320ms; }
.home-closing__headline.closing-revealed .home-closing__word:nth-child(6) { transition-delay: 400ms; }

.home-closing__bottom {
  margin-left: auto;
  margin-right: 0;
  max-width: 540px;
  padding-top: 2.5rem;
}

.home-closing__divider {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent);
  margin-bottom: 2rem;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.home-closing__bottom.revealed .home-closing__divider {
  width: 100%;
}

.home-closing__text {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.15);
}

.home-closing__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Blau mit Gelb beim Hover, wie im Karriere-Bereich der Startseite. */
@media (hover: hover) {
  .home-closing__actions .btn--primary:hover {
    background: var(--color-sun);
    color: var(--color-shark);
    box-shadow: 0 8px 25px var(--color-sun-glow);
  }
}

@media (max-width: 768px) {
  .home-closing { min-height: auto; }
  .home-closing__headline { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .home-closing__bottom { max-width: 100%; margin-left: 0; }
  .home-closing__actions { flex-direction: column; }
  .home-closing__actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .home-closing__word {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .home-closing__divider { transition: none; }
}
