/* ============================================================
   Eilmeldungs-Bar — Breaking News
   tpl_vorsprung_news / mod_articles_news Override
   ============================================================ */

/* Modul-Wrapper (card-Chrome etc.) durchsichtig, wenn er die Eilmeldung enthält */
.card:has(> .eilmeldung-bar),
.module:has(> .eilmeldung-bar),
.moduletable:has(> .eilmeldung-bar),
.mod-articlesnews:has(> .eilmeldung-bar) {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.eilmeldung-bar {
    --eil-red:      var(--color-primary, #cc0000);
    --eil-red-dark: #a30000;
    background: linear-gradient(90deg, var(--eil-red) 0%, var(--eil-red-dark) 100%);
    color: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    margin: 0 0 1.25rem;
    display: flex;
    align-items: stretch;
    line-height: 1.35;
}

/* ----- Badge (links: roter Label mit Pulse) ----- */
.eilmeldung-bar__badge {
    background: rgba(0, 0, 0, 0.22);
    padding: 0.65rem 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.06em;
    font-size: 0.82rem;
}

.eilmeldung-pulse {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: eilmeldung-pulse 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    flex-shrink: 0;
}

@keyframes eilmeldung-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(255, 255, 255, 0.7); }
    70%  { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0   rgba(255, 255, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .eilmeldung-pulse { animation: none; }
}

/* ----- Liste ----- */
.eilmeldung-bar__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.eilmeldung-bar__item {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.eilmeldung-bar__item:first-child { border-top: 0; }

/* ----- Link / Inhalt ----- */
.eilmeldung-bar__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.95rem;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.15s ease;
}
.eilmeldung-bar__link:hover,
.eilmeldung-bar__link:focus-visible {
    background: rgba(0, 0, 0, 0.15);
    color: #fff;
    text-decoration: none;
    outline: none;
}

.eilmeldung-bar__thumb {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.25);
}
.eilmeldung-bar__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.eilmeldung-bar__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.eilmeldung-bar__title {
    font-weight: 600;
    font-size: 0.97rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eilmeldung-bar__time {
    font-size: 0.78rem;
    opacity: 0.82;
}

/* ----- Mobile ----- */
@media (max-width: 767px) {
    .eilmeldung-bar { flex-direction: column; }
    .eilmeldung-bar__badge {
        justify-content: center;
        padding: 0.4rem 0.95rem;
        font-size: 0.78rem;
    }
    .eilmeldung-bar__thumb { width: 44px; height: 44px; }
    .eilmeldung-bar__title { font-size: 0.92rem; }
}
