/* Boxen Ticker */
.bt-box { position: relative; display: flex; align-items: stretch; overflow: hidden; background: var(--bt-bg, #1e293b); color: var(--bt-fg, #fff); font-size: var(--bt-fs, 15px); line-height: 1.35; box-sizing: border-box; }
.bt-box + .bt-box { margin-top: 10px; }
.bt-pos-under_header { margin: 0 auto; }
.bt-rounded { border-radius: 8px; }
.bt-bold .bt-msg { font-weight: 700; }
.bt-label { flex: 0 0 auto; display: flex; align-items: center; padding: 0 .9em; font-weight: 800; font-size: .85em; letter-spacing: .06em; text-transform: uppercase; background: var(--bt-lbg, #dc2626); color: var(--bt-lfg, #fff); z-index: 2; }
.bt-view { position: relative; flex: 1 1 auto; min-width: 0; overflow: hidden; }
.bt-msg { color: inherit; text-decoration: none; }
a.bt-msg:hover, a.bt-msg:focus-visible { text-decoration: underline; }
.bt-sep { display: inline-block; padding: 0 .9em; opacity: .7; }

/* Laufband */
.bt-mode-marquee .bt-track { display: flex; width: max-content; padding: .55em 0; white-space: nowrap; will-change: transform; }
.bt-mode-marquee .bt-run { display: inline-block; white-space: nowrap; }
.bt-mode-marquee.is-running .bt-track { animation: bt-marquee var(--bt-dur, 30s) linear infinite; }
.bt-mode-marquee.is-running[data-dir="right"] .bt-track { animation-direction: reverse; }
.bt-mode-marquee.is-paused .bt-track { animation-play-state: paused; }
@keyframes bt-marquee { from { transform: translateX(0); } to { transform: translateX(calc(var(--bt-dist, 0px) * -1)); } }
/* ohne JavaScript: Text steht still und läuft aus der Box heraus */
.bt-mode-marquee .bt-track { padding-left: .8em; }

/* Schlagzeilen im Wechsel */
.bt-slides { list-style: none; margin: 0; padding: 0; display: grid; }
.bt-slide { grid-area: 1 / 1; padding: .55em .9em; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; overflow: hidden; text-overflow: ellipsis; }
.bt-slide.is-active { opacity: 1; visibility: visible; transition: opacity .5s ease, visibility 0s; }
.bt-pos-left .bt-slide, .bt-pos-right .bt-slide { white-space: normal; }
.bt-pos-under_header .bt-slide, .bt-pos-middle_top .bt-slide, .bt-pos-middle_bottom .bt-slide { white-space: nowrap; }
.bt-arrows { flex: 0 0 auto; display: flex; align-items: center; gap: 2px; padding: 0 6px; }
.bt-arrows button { width: 26px; height: 26px; border: 0; border-radius: 50%; cursor: pointer; background: rgba(255,255,255,.14); color: inherit; font-size: 12px; line-height: 26px; padding: 0; }
.bt-arrows button:hover { background: rgba(255,255,255,.28); }
.bt-arrows button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Senkrechter Scroller */
.bt-mode-vertical { align-items: stretch; }
.bt-mode-vertical .bt-view { height: calc(var(--bt-lines, 3) * 2.2em); }
.bt-mode-vertical .bt-track { will-change: transform; }
.bt-list { list-style: none; margin: 0; padding: 0; }
.bt-list li { min-height: 2.2em; padding: .4em .9em; display: flex; align-items: center; box-sizing: border-box; border-bottom: 1px solid rgba(255,255,255,.1); }
.bt-mode-vertical.is-running .bt-track { animation: bt-vertical var(--bt-dur, 20s) linear infinite; }
.bt-mode-vertical.is-paused .bt-track { animation-play-state: paused; }
@keyframes bt-vertical { from { transform: translateY(0); } to { transform: translateY(calc(var(--bt-dist, 0px) * -1)); } }
.bt-mode-vertical.has-label { flex-direction: column; }
.bt-mode-vertical.has-label .bt-label { padding: .35em .9em; }

/* weniger Bewegung: nichts läuft, Meldungen stehen untereinander */
@media (prefers-reduced-motion: reduce) {
    .bt-mode-marquee .bt-track { width: auto; white-space: normal; flex-wrap: wrap; animation: none !important; }
    .bt-mode-marquee .bt-run + .bt-run { display: none; }
    .bt-mode-vertical .bt-track { animation: none !important; }
    .bt-mode-vertical .bt-view { height: auto; max-height: calc(var(--bt-lines, 3) * 2.2em); overflow-y: auto; }
    .bt-slide { transition: none; }
}
