/* Hero „Spotlight“ — zentrale Story, Bento-Showcase, kompakte Benefits */

/* Weniger Leerraum oben: kein Vollbild-Vertical-Center (taktflo-apple.css) */
#taktflo-landing .tf-hero.tf-hero--spotlight {
  display: block !important;
  min-height: auto !important;
  align-items: unset !important;
  padding-top: clamp(0.65rem, 1.35vw, 0.95rem) !important;
  padding-bottom: clamp(2.5rem, 5.5vw, 4.25rem) !important;
}

.tf-hero--spotlight .tf-hero__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.65rem, 3.8vw, 2.6rem);
}

/* Hero-Showcase: mittlere Breite */
@media (min-width: 900px) {
  #taktflo-landing .tf-hero--spotlight > .tf-container {
    width: min(100% - 2rem, 1160px);
  }
}

.tf-hero--spotlight .tf-hero__head {
  width: 100%;
  max-width: 46rem;
  margin-inline: auto;
  margin-bottom: clamp(0.35rem, 1.2vw, 0.65rem);
  text-align: center;
}

/* Hero-Einstieg: von Anfang an unsichtbar, dann weich einblenden (wie Überschrift) */
@keyframes tfHeroSpotlightIn {
  from {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

#taktflo-landing .tf-hero--spotlight:not(.tf-hero-ready) .tf-hero-enter--head,
#taktflo-landing .tf-hero--spotlight:not(.tf-hero-ready) .tf-hero-enter--steps .tf-hero-process__step,
#taktflo-landing .tf-hero--spotlight:not(.tf-hero-ready) .tf-hero-enter--action {
  opacity: 0;
}

#taktflo-landing.tf-hero-ready .tf-hero--spotlight .tf-hero-enter--head {
  animation: tfHeroSpotlightIn 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.04s both;
}

#taktflo-landing.tf-hero-ready .tf-hero--spotlight .tf-hero-enter--steps .tf-hero-process__step:nth-child(1) {
  animation: tfHeroSpotlightIn 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

#taktflo-landing.tf-hero-ready .tf-hero--spotlight .tf-hero-enter--steps .tf-hero-process__step:nth-child(2) {
  animation: tfHeroSpotlightIn 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.36s both;
}

#taktflo-landing.tf-hero-ready .tf-hero--spotlight .tf-hero-enter--steps .tf-hero-process__step:nth-child(3) {
  animation: tfHeroSpotlightIn 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.52s both;
}

#taktflo-landing.tf-hero-ready .tf-hero--spotlight .tf-hero-enter--action {
  animation: tfHeroSpotlightIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.72s both;
}

.tf-hero--spotlight .tf-hero__title {
  font-size: clamp(2.05rem, 4.9vw, 3.2rem) !important;
  line-height: 1.08 !important;
  margin-bottom: 0.8rem !important;
  padding-bottom: 0;
}

/* Blaue Trennlinie unter der Headline entfernt (modern.css / apple.css) */
#taktflo-landing .tf-hero--spotlight .tf-hero__title::after,
#taktflo-landing .tf-hero--spotlight .tf-hero__title::before {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
  max-width: none !important;
  background: none !important;
  animation: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.tf-hero--spotlight .tf-hero__lead {
  margin-inline: auto !important;
  margin-top: 0.12rem !important;
  max-width: 36rem !important;
  font-size: clamp(0.98rem, 1.75vw, 1.1rem) !important;
  line-height: 1.56 !important;
}

/* Showcase: mittlere Kachel als Eyecatcher — volle Container-Breite */
.tf-hero--spotlight .tf-hero__showcase {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-top: clamp(0.25rem, 1vw, 0.5rem);
  padding-top: clamp(0.15rem, 0.8vw, 0.35rem);
}

.tf-hero--spotlight .tf-hero-process--bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.95rem, 1.85vw, 1.2rem);
  width: 100%;
  margin: 0;
  max-width: min(100%, 780px);
  margin-inline: auto;
  position: relative;
}

.tf-hero--spotlight .tf-hero-process__step {
  padding: clamp(0.82rem, 1.35vw, 1.05rem) clamp(0.32rem, 0.6vw, 0.48rem) clamp(0.55rem, 1vw, 0.75rem);
  border-radius: 15px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.09);
}

.tf-hero--spotlight .tf-hero-process__step .tf-hero-process__visual {
  min-height: clamp(118px, 16.5vw, 158px) !important;
  margin-bottom: 0.48rem;
}

.tf-hero--spotlight .tf-hero-process__num {
  width: 24px;
  height: 24px;
  top: -10px;
  font-size: 0.72rem;
}

.tf-hero--spotlight .tf-hero-process__label {
  font-size: clamp(0.72rem, 1.12vw, 0.84rem) !important;
}

@media (min-width: 720px) {
  .tf-hero--spotlight .tf-hero-process--bento {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(0.85rem, 1.9vw, 1.25rem);
    align-items: end;
    padding-top: 0.4rem;
    max-width: min(100%, 920px);
  }

  .tf-hero--spotlight .tf-hero-process__step--side {
    transform: translateY(7px);
  }

  .tf-hero--spotlight .tf-hero-process__step--featured {
    transform: translateY(-10px);
    z-index: 2;
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow:
      0 0 0 1px rgba(37, 99, 235, 0.08) inset,
      0 16px 42px rgba(37, 99, 235, 0.17),
      0 7px 20px rgba(15, 23, 42, 0.09);
  }

  .tf-hero--spotlight .tf-hero-process__step--featured .tf-hero-process__visual {
    min-height: clamp(132px, 18.5vw, 182px) !important;
  }

  .tf-hero--spotlight .tf-hero-process__step--side .tf-hero-process__visual {
    min-height: clamp(124px, 17.5vw, 172px) !important;
  }
}

.tf-hero-process__badge {
  position: absolute;
  top: -0.55rem;
  right: 0.65rem;
  z-index: 3;
  padding: 0.22rem 0.55rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* Action-Bereich: Chips + CTAs zentriert — gleiche Breite wie Showcase */
.tf-hero--spotlight .tf-hero__action {
  width: 100%;
  max-width: min(100%, 920px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1.05rem, 2.1vw, 1.35rem);
  margin-top: clamp(0.28rem, 1vw, 0.55rem);
  padding-top: clamp(0.2rem, 0.75vw, 0.42rem);
}

.tf-hero__highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  width: 100%;
}

@media (min-width: 520px) {
  .tf-hero__highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }
}

@media (min-width: 900px) {
  .tf-hero__highlights {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.75rem, 1.5vw, 1rem);
  }
}

.tf-hero--spotlight .tf-hero__highlight {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.58rem 0.68rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

@media (hover: hover) and (pointer: fine) {
  .tf-hero--spotlight .tf-hero__highlight:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.1);
  }
}

.tf-hero--spotlight .tf-hero__highlight-icon {
  flex-shrink: 0;
  font-size: 1.02rem;
  line-height: 1;
}

.tf-hero--spotlight .tf-hero__highlight-text {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--tf-muted);
}

.tf-hero--spotlight .tf-hero__highlight-text strong {
  display: block;
  color: var(--tf-text);
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 0.08rem;
}

.tf-hero--spotlight .tf-hero__cta {
  justify-content: center;
  margin-bottom: 0;
  gap: 0.55rem;
}

.tf-hero--spotlight .tf-hero__cta .tf-btn--lg {
  padding: 0.76rem 1.32rem !important;
  font-size: 0.95rem !important;
}

.tf-hero--spotlight .tf-hero__platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0 !important;
}

.tf-hero--spotlight .tf-hero__platforms span {
  font-size: 0.72rem !important;
  padding: 0.12rem 0.38rem !important;
}

.tf-hero--spotlight .tf-hero__metaLinks {
  margin: 0;
  font-size: 0.88rem !important;
}

/* Alte Side-by-Side-Regeln für Spotlight deaktivieren */
@media (min-width: 960px) {
  .tf-hero--spotlight.tf-hero--cinema .tf-hero__grid {
    grid-template-columns: 1fr;
  }

  .tf-hero--spotlight.tf-hero--cinema .tf-hero__copy {
    max-width: none;
  }

  .tf-hero--spotlight.tf-hero--cinema .tf-hero__title {
    font-size: clamp(2.05rem, 4.9vw, 3.2rem) !important;
  }

  .tf-hero--spotlight.tf-hero--cinema .tf-hero__lead {
    font-size: clamp(0.98rem, 1.75vw, 1.1rem) !important;
    max-width: 36rem !important;
  }
}

@media (max-width: 719px) {
  .tf-hero--spotlight .tf-hero-process--bento {
    max-width: min(100%, 300px);
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tf-hero--spotlight .tf-hero-process__step--side,
  .tf-hero--spotlight .tf-hero-process__step--featured {
    transform: none;
  }

  .tf-hero--spotlight .tf-hero__highlight:hover {
    transform: none;
  }

  #taktflo-landing .tf-hero--spotlight:not(.tf-hero-ready) .tf-hero-enter--head,
  #taktflo-landing .tf-hero--spotlight:not(.tf-hero-ready) .tf-hero-enter--steps .tf-hero-process__step,
  #taktflo-landing .tf-hero--spotlight:not(.tf-hero-ready) .tf-hero-enter--action {
    opacity: 1;
  }

  #taktflo-landing.tf-hero-ready .tf-hero--spotlight .tf-hero-enter--head,
  #taktflo-landing.tf-hero-ready .tf-hero--spotlight .tf-hero-enter--steps .tf-hero-process__step,
  #taktflo-landing.tf-hero-ready .tf-hero--spotlight .tf-hero-enter--action {
    animation: none;
  }
}
