.bobs-laufschrift {
    --ticker-bg: #a71820;
    --ticker-fg: #fff;
    display: flex;
    align-items: stretch;
    position: relative;
    width: 100%;
    background: var(--ticker-bg);
    color: var(--ticker-fg);
    font: 700 .94rem/1.4 "DM Sans", system-ui, sans-serif;
}

.bobs-laufschrift[hidden],
.bobs-laufschrift [hidden] {
    display: none;
}

body[data-clean-site="bootshaus"] .bobs-laufschrift {
    --ticker-bg: #e7ba58;
    --ticker-fg: #38281f;
}

body[data-clean-site="flosslaende"] .bobs-laufschrift {
    --ticker-bg: #233e35;
    --ticker-fg: #fbf7ea;
}

.bobs-laufschrift .bobs-laufschrift__message {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: inherit;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.bobs-laufschrift .bobs-laufschrift__static {
    width: 100%;
    padding: .6rem 1rem;
    overflow-wrap: anywhere;
    text-align: center;
}

.bobs-laufschrift__track {
    display: none;
    width: max-content;
    min-width: 200%;
    flex: none;
    animation: bobs-laufschrift-roll var(--ticker-duration, 42s) linear infinite;
}

.bobs-laufschrift__group {
    display: flex;
    flex: 1 0 auto;
    justify-content: space-around;
    align-items: center;
    white-space: nowrap;
}

.bobs-laufschrift__item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem clamp(1.1rem, 3vw, 3rem);
}

.bobs-laufschrift .bobs-laufschrift__pause {
    border: 0;
    border-left: 1px solid currentColor;
    border-radius: 0;
    min-width: 44px;
    min-height: 44px;
    padding: 0 .6rem;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.bobs-laufschrift .bobs-laufschrift__message:focus-visible,
.bobs-laufschrift .bobs-laufschrift__pause:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -3px;
}

.bobs-laufschrift__message:hover .bobs-laufschrift__track {
    animation-play-state: paused;
}

@keyframes bobs-laufschrift-roll {
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: no-preference) {
    .bobs-laufschrift.is-moving .bobs-laufschrift__track {
        display: flex;
    }

    .bobs-laufschrift.is-moving .bobs-laufschrift__static {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .bobs-laufschrift.is-moving a:focus-visible .bobs-laufschrift__static {
        position: static;
        width: 100%;
        height: auto;
        padding: .6rem 1rem;
        overflow: visible;
        clip-path: none;
        white-space: normal;
    }

    .bobs-laufschrift.is-moving a:focus-visible .bobs-laufschrift__track {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bobs-laufschrift .bobs-laufschrift__pause {
        display: none;
    }
}
