/* Grundlayout: schlanker weißer Ticker auf farbigem Hintergrund */
.cet-news-ticker {
    --cet-ticker-height: 30px;   /* Standardhöhe */
    --cet-ticker-duration: 20s;

    display: flex;
    align-items: center;
    overflow: hidden;
    font-family: inherit;
    height: var(--cet-ticker-height);
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

/* Label links (optional) */
.cet-news-ticker__label {
    padding: 0 14px;
    font-weight: 700;
    text-transform: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

/* Track nimmt den restlichen Platz ein */
.cet-news-ticker__track {
    flex: 1;
    overflow: hidden;
    height: 100%;
}

/* Innerer Lauftext:
   - flex + align-items:center sorgt für Vertikalzentrierung
   - min-width:100% sorgt dafür, dass der Block komplett von rechts/links ein- und ausläuft
*/
.cet-news-ticker__inner {
    display: flex;
    align-items: center;
    white-space: nowrap;
    min-width: 100%;
    height: 100%;
    will-change: transform;
    animation: cet-ticker-scroll var(--cet-ticker-duration) linear infinite;
}

/* Einzelne Einträge:
   - ebenfalls flex, damit der Inhalt (Text/Links) exakt wie beim Label vertikal mittig sitzt
*/
.cet-news-ticker__item {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 26px;
    font-size: 13px;
    line-height: 1; /* neutrale Zeilenhöhe, Rest erledigt Flexbox */
}

/* Link-Badge wie im Screenshot – kompakt */
.cet-news-ticker__item a {
    padding: 1px 8px;
    border-radius: 2px;
    text-decoration: underline;
    background-color: #f7d13b; /* gelb */
}

/* Hover: Animation pausieren */
.cet-news-ticker:hover .cet-news-ticker__inner {
    animation-play-state: paused;
}

/* Animation von rechts nach links
   - Start: Block komplett rechts außerhalb (100%)
   - Ende: Block komplett links außerhalb (-100%)
*/
@keyframes cet-ticker-scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}
