
#fo-newsbar,
#fo-newsbar * {
    box-sizing: border-box;
}

#fo-newsbar {
    position: relative;
    display: block;
    width: 100%;
    background: var(--fo-bg, #8c0e0e);
    color: var(--fo-color, #ffffff);
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: var(--fo-font, 15px);
    font-weight: 600;
    line-height: 1.4;
    border-bottom: 1px solid rgba(0,0,0,.08);
    overflow: hidden;
}

#fo-newsbar .fo-newsbar__inner {
    display: flex;
    align-items: stretch;
    min-height: var(--fo-height, 44px);
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

#fo-newsbar .fo-newsbar__label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    flex-shrink: 0;
    max-width: 35%;
    padding: 8px 25px;
    border-right: 1px solid rgba(255,255,255,.25);
    background: rgba(0,0,0,.12);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#fo-newsbar .fo-newsbar__label svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

#fo-newsbar .fo-newsbar__viewport {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

#fo-newsbar .fo-newsbar__track {
    display: flex;
    max-width: 100%;
}

#fo-newsbar .fo-newsbar__group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    flex-shrink: 0;
    max-width: 100%;
}

#fo-newsbar .fo-newsbar__item {
    display: inline-flex;
    align-items: center;
    padding: 9px 0 9px 30px;
    color: inherit;
}

#fo-newsbar .fo-newsbar__item::after {
    content: "";
    display: block;
    flex-shrink: 0;
    width: 5px;
    height: 5px;
    margin-left: 30px;
    border-radius: 50%;
    background: currentColor;
    opacity: .7;
}

/* Nahtlose Animation */

#fo-newsbar.is-ready .fo-newsbar__track {
    width: max-content;
    max-width: none;
    flex-shrink: 0;
    animation: fo-newsbar-scroll var(--fo-duration, 30s)
               linear infinite;
    will-change: transform;
}

#fo-newsbar.is-ready .fo-newsbar__group {
    width: max-content;
    max-width: none;
    flex-wrap: nowrap;
}

#fo-newsbar.is-ready .fo-newsbar__item {
    white-space: nowrap;
}

#fo-newsbar[data-direction="right"] .fo-newsbar__track {
    animation-direction: reverse;
}

@keyframes fo-newsbar-scroll {
    from {
        transform: translate3d(0,0,0);
    }
    to {
        transform: translate3d(-50%,0,0);
    }
}

#fo-newsbar.is-paused .fo-newsbar__track {
    animation-play-state: paused;
}

@media (hover: hover) {
    #fo-newsbar .fo-newsbar__viewport:hover .fo-newsbar__track {
        animation-play-state: paused;
    }
}

/* Pause-Button */

#fo-newsbar .fo-newsbar__pause {
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    width: 48px;
    min-width: 48px;
    min-height: var(--fo-height, 44px);
    border: 0;
    border-left: 1px solid rgba(255,255,255,.25);
    border-radius: 0;
    background: rgba(0,0,0,.10);
    color: inherit;
    box-shadow: none;
    margin: 0;
    padding: 0;
    cursor: pointer;
    transition: background .2s ease;
}

#fo-newsbar .fo-newsbar__pause:hover {
    background: rgba(0,0,0,.24);
    color: inherit;
}

#fo-newsbar .fo-newsbar__pause:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -4px;
}

#fo-newsbar .fo-newsbar__pause[hidden] {
    display: none !important;
}

#fo-newsbar .fo-newsbar__pause svg {
    width: 19px;
    height: 19px;
}

#fo-newsbar .fo-newsbar__play-icon,
#fo-newsbar.is-paused .fo-newsbar__pause-icon {
    display: none;
}

#fo-newsbar.is-paused .fo-newsbar__play-icon {
    display: block;
}

#fo-newsbar .fo-newsbar__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Mobile Optimierung */

@media (max-width: 767px) {

    #fo-newsbar .fo-newsbar__label {
        padding: 8px 13px;
        gap: 7px;
        font-size: 11px;
        letter-spacing: .5px;
    }

    #fo-newsbar .fo-newsbar__label svg {
        width: 16px;
        height: 16px;
    }

    #fo-newsbar .fo-newsbar__item {
        padding-left: 20px;
    }

    #fo-newsbar .fo-newsbar__item::after {
        margin-left: 20px;
    }

    #fo-newsbar .fo-newsbar__pause {
        width: 40px;
        min-width: 40px;
    }
}

/* Barrierefreiheit */

@media (prefers-reduced-motion: reduce) {
    #fo-newsbar .fo-newsbar__track {
        animation: none !important;
    }
}

