/* Basis Neon-Glas-Look für Event-Ticker */
.neo-box {
  position: relative;
  max-width: 700px;
  margin: 32px auto;
  background: linear-gradient(135deg, rgb(47 47 47 / 65%) 60%, rgba(160, 59, 68, 0.18) 100%);
  border-radius: var(--box-radius);
  box-shadow:
    0 4px 24px 0 rgba(20,77,59,0.18),
    0 0 0 1.5px rgba(200,214,229,0.12) inset,
    0 1.5px 24px 0 rgba(160,59,68,0.10) inset;
  color: var(--foreground);
  font-family: var(--font-family);
  padding: 20px 24px;
  overflow: hidden;
  user-select: none;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px) saturate(1.2);
  border: none;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  z-index: 1;
}

.neo-box:hover {
  transform: translateY(-6px);
  box-shadow:
    0 8px 30px rgba(20,77,59,0.3),
    0 0 0 2px rgba(200,214,229,0.2) inset,
    0 3px 36px 0 rgba(160,59,68,0.15) inset;
}

/* Neon-Rahmen: animierte Linien oben, unten, links, rechts */
.neo-box::before,
.neo-box::after,
.neo-box > .neon-left,
.neo-box > .neon-right {
  position: absolute;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary-light), var(--primary));
  border-radius: 2px;
  filter: blur(1.5px) brightness(1.3);
  opacity: 0.85;
  animation: neon-move 3s linear infinite alternate;
  content: "";
  z-index: 2;
  pointer-events: none;
}

/* Oben */
.neo-box::before {
  top: 0; left: 10%; right: 10%; height: 4px;
  animation-name: neon-move-horizontal;
}

/* Unten */
.neo-box::after {
  bottom: 0; left: 10%; right: 10%; height: 4px;
  animation-name: neon-move-horizontal;
  animation-direction: reverse;
}

/* Links */
.neo-box > .neon-left {
  top: 10%; bottom: 10%; left: 0; width: 4px;
  background: linear-gradient(180deg, var(--primary-dark), var(--primary-light), var(--primary));
  animation-name: neon-move-vertical;
}

/* Rechts */
.neo-box > .neon-right {
  top: 10%; bottom: 10%; right: 0; width: 4px;
  background: linear-gradient(180deg, var(--primary-dark), var(--primary-light), var(--primary));
  animation-name: neon-move-vertical;
  animation-direction: reverse;
}

@keyframes neon-move-horizontal {
  0% { left: 10%; right: 10%; }
  100% { left: 0; right: 0; }
}

@keyframes neon-move-vertical {
  0% { top: 10%; bottom: 10%; }
  100% { top: 0; bottom: 0; }
}

/* Event Ticker spezifische Styles */
#event-ticker h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: var(--primary-light);
  font-weight: 700;
  text-align: center;
  text-shadow:
    0 0 5px rgba(200, 214, 229, 0.7),
    0 2px 4px rgba(0, 0, 0, 0.3);
}

.ticker-container {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: ticker-scroll 20s linear infinite;
  user-select: none;
}

.ticker-item {
  display: inline-block;
  min-width: 280px;
  background: rgba(160, 59, 68, 0.15);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 2px 10px rgba(160, 59, 68, 0.2);
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: normal;
}

.ticker-item:hover,
.ticker-item:focus-within {
  background: rgba(160, 59, 68, 0.35);
  outline: none;
}

.ticker-item a.event-link {
  color: var(--foreground);
  text-decoration: none;
  display: block;
}

.ticker-item a.event-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.ticket-info h3 {
  margin: 0 0 6px 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-light);
}

.ticket-info p {
  margin: 0 0 8px 0;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--foreground);
}

.ticket-info a {
  color: var(--accent);
  text-decoration: underline;
}

.ticket-info a:hover,
.ticket-info a:focus-visible {
  color: var(--primary-light);
  outline: none;
}

.event-hint {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* Animation für den Ticker */
@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive */
@media (max-width: 600px) {
  #event-ticker {
    max-width: 98vw;
    padding: 16px 12px;
  }
  .ticker-container {
    gap: 24px;
  }
  .ticker-item {
    min-width: 220px;
    padding: 12px 14px;
  }
  .ticket-info h3 {
    font-size: 1.1rem;
  }
  .ticket-info p {
    font-size: 0.9rem;
  }
}