/* ======================================================
   EVENT TICKER – BOX (IDENTISCH ZU ANDEREN)
====================================================== */

#event-ticker {
  position: relative;
  text-align: center;
  padding: 18px 18px 20px;
  gap: 12px;
}

/* ======================================================
   NEON RAHMEN – GLEICH WIE ANDERE BOXEN
====================================================== */

#event-ticker::before,
#event-ticker::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

#event-ticker::before {
  border: 2px solid transparent;
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--accent),
    var(--primary-light)
  ) border-box;

  -webkit-mask:
    linear-gradient(#000 0 0) padding-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;

  animation: neo-border 6s linear infinite;
}

#event-ticker::after {
  inset: 6px;
  border-radius: calc(var(--box-radius) - 6px);
  background: radial-gradient(
    circle at top,
    rgba(0,255,136,.18),
    transparent 70%
  );
  opacity: .6;
}

/* ======================================================
   TITLE
====================================================== */

#event-ticker h2 {
  font-size: 1.15rem;
  margin: 0;
  color: var(--primary-light);
  text-shadow: 0 0 6px rgba(201,241,255,.5);
}

/* ======================================================
   TICKER CONTAINER
====================================================== */

#event-ticker .ticker-container {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: ticker-scroll 22s linear infinite;
  will-change: transform;
}

/* ======================================================
   TICKER ITEM
====================================================== */

#event-ticker .ticker-item {
  min-width: 260px;
  padding: 14px 16px;
  border-radius: 10px;

  background: rgba(255,77,77,.12);
  box-shadow: inset 0 0 8px rgba(0,255,136,.12);

  transition: background var(--transition), transform var(--transition);
}

#event-ticker .ticker-item:hover {
  background: rgba(255,77,77,.22);
  transform: translateY(-2px);
}

/* ======================================================
   TEXT
====================================================== */

#event-ticker .event-link {
  color: var(--primary-light);
  text-decoration: none;
  display: block;
}

#event-ticker h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

#event-ticker p {
  margin: 0 0 6px;
  font-size: .9rem;
}

#event-ticker .event-hint {
  font-size: .8rem;
  opacity: .75;
}

/* ======================================================
   TICKER ANIMATION
====================================================== */

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ======================================================
   MODAL – BILD POPUP (FIX)
====================================================== */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);

  display: none; /* 🔥 WICHTIG */
  align-items: center;
  justify-content: center;

  z-index: 9999;
}

.modal.is-open {
  display: flex;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  animation: modal-zoom .25s ease;
}

.modal-content img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0,255,136,.35);
}

/* Close Button */
.modal-close {
  position: absolute;
  top: -14px;
  right: -14px;

  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;

  background: var(--primary);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--accent);
  color: #000;
}

/* Animation */
@keyframes modal-zoom {
  from { transform: scale(.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
