/* Laufband "Aktuelles" auf der Startseite (seit 25.11.2026). Daten: includes/news-ticker.php */

.home-news-ticker {
  width: min(1290px, calc(100% - 32px));
  margin: 80px auto 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px 0 8px;
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  overflow: hidden;
  animation: news-ticker-einblenden .5s ease-out both;
}
.home-news-ticker + .home-material-banner { padding-top: 12px; }

.news-ticker-label {
  flex: 0 0 auto;
  background: var(--neon);
  color: var(--navy);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
}

.news-ticker-fenster {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent);
}
.news-ticker-band {
  display: flex;
  width: max-content;
  animation: news-ticker-laufen var(--ticker-dauer, 40s) linear infinite;
}
.news-ticker-liste { display: flex; margin: 0; padding: 0; list-style: none; }
.news-ticker-liste li { position: relative; white-space: nowrap; padding: 0 22px; }
.news-ticker-liste li::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--neon);
}
.news-ticker-liste a {
  color: #fff;
  font-size: .93rem;
  font-weight: 600;
  line-height: 44px;
  text-decoration: none;
}
.news-ticker-liste a:hover,
.news-ticker-liste a:focus-visible { color: var(--neon); text-decoration: underline; text-underline-offset: 3px; }
.news-ticker-liste a:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
.news-ticker-liste time {
  margin-right: 8px;
  color: var(--neon);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.home-news-ticker:hover .news-ticker-band,
.home-news-ticker:focus-within .news-ticker-band,
.home-news-ticker.ist-angehalten .news-ticker-band { animation-play-state: paused; }

.news-ticker-pause {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.news-ticker-pause span { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.ist-angehalten .news-ticker-pause span { width: 0; height: 0; border: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.news-ticker-pause:hover, .news-ticker-pause:focus-visible { border-color: var(--neon); color: var(--neon); outline: none; }

@keyframes news-ticker-laufen { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes news-ticker-einblenden { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1000px) {
  .home-news-ticker { margin-top: 68px; }
}
@media (max-width: 640px) {
  .home-news-ticker { width: calc(100% - 24px); gap: 8px; }
  .news-ticker-label { font-size: .66rem; padding: 3px 7px; }
  .news-ticker-liste a { font-size: .88rem; }
}

/* Ohne Bewegung: stehende, waagerecht wischbare Liste, keine Kopie, kein Pausenknopf. */
@media (prefers-reduced-motion: reduce) {
  .home-news-ticker { animation: none; }
  .news-ticker-band { animation: none; }
  .news-ticker-fenster { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .news-ticker-liste[aria-hidden="true"], .news-ticker-liste li[aria-hidden="true"] { display: none; }
  .news-ticker-pause { display: none; }
}

@media print { .home-news-ticker { display: none; } }
