/* Gemeinsame Kartenfläche: ohne JavaScript bleiben beide Inhalte sichtbar. */
.home-spotlight,
.home-spotlight-stage {
  min-width: 0;
}

.home-spotlight-stage {
  display: grid;
  gap: 1rem;
}

.home-spotlight :is(.next-ticket, .hoppla-feature) {
  position: relative;
  height: 100%;
}

.home-spotlight .hoppla-feature {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(150px, 1fr) auto;
}

.home-spotlight .hoppla-copy {
  padding: 1.1rem 1.3rem 1.3rem;
}

.home-spotlight .spotlight-card-link {
  position: static;
}

.home-spotlight .spotlight-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

.home-spotlight .spotlight-card-link:focus-visible::after {
  outline: 3px solid var(--brand-gold);
  outline-offset: -4px;
}

.home-spotlight.is-ready .home-spotlight-stage {
  isolation: isolate;
  gap: 0;
  touch-action: pan-y pinch-zoom;
}

.home-spotlight.is-ready [data-spotlight-slide] {
  display: grid;
  grid-area: 1 / 1;
  min-width: 0;
  visibility: hidden;
  pointer-events: none;
}

.home-spotlight.is-ready [data-spotlight-slide].is-active {
  z-index: 1;
  visibility: visible;
  pointer-events: auto;
}

.home-spotlight.is-ready [data-spotlight-slide].is-leaving {
  z-index: 2;
  visibility: visible;
  animation: spotlight-out 360ms ease both;
}

.home-spotlight.is-ready .home-spotlight-stage:has(> .is-leaving) > .is-active {
  animation: spotlight-in 360ms ease both;
}

.home-spotlight-stage:focus-visible {
  outline: 3px solid var(--brand-gold);
  outline-offset: 5px;
  border-radius: var(--rad);
}

.home-dashboard--schedule {
  grid-template-columns: minmax(0, 1fr);
}

.spotlight-toggle {
  width: min(100%, 16rem);
  min-height: 44px;
  margin-top: 1rem;
  padding: .6rem .8rem;
  border: 1px solid currentColor;
  border-radius: 9px;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

@keyframes spotlight-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-8px); }
}

@keyframes spotlight-in {
  from { opacity: .65; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .home-spotlight.is-ready [data-spotlight-slide].is-leaving {
    visibility: hidden;
    animation: none;
  }
  .home-spotlight.is-ready .home-spotlight-stage:has(> .is-leaving) > .is-active {
    animation: none;
  }
}
