.mbl {
	--mbl-fade: 28px;
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 8px 20px;
	box-sizing: border-box;
	overflow: hidden;
	background: var(--mbl-bg, #222222);
	color: var(--mbl-fg, #FFFFFF);
	/* Schrift: eigene Angabe, sonst Elementor-Global „Text“, sonst die Schrift der Umgebung */
	font-family: var(--mbl-font, var(--e-global-typography-text-font-family, inherit));
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	text-align: left;
}
.mbl *,
.mbl *::before,
.mbl *::after { box-sizing: border-box; }


.mbl__badge {
	flex: none;
	padding: 6px 10px;
	border-radius: 4px;
	background: var(--mbl-badge-bg, #FFFFFF);
	color: var(--mbl-badge-fg, #222222);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.mbl__viewport {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
}
.mbl__track { display: inline-flex; align-items: center; will-change: transform; }
.mbl__group { display: inline-flex; align-items: center; flex: none; }
.mbl__item  { flex: none; }
.mbl__sep   { flex: none; margin: 0 22px; opacity: .6; }
.mbl__item a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.mbl__item a:hover,
.mbl__item a:focus { color: inherit; text-decoration-thickness: 2px; }
.mbl__item strong,
.mbl__item b { font-weight: 700; }

/* Laufband: läuft erst, wenn das Script die Breite gemessen hat */
.mbl--run .mbl__viewport {
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--mbl-fade), #000 calc(100% - var(--mbl-fade)), transparent 100%);
	        mask-image: linear-gradient(90deg, transparent 0, #000 var(--mbl-fade), #000 calc(100% - var(--mbl-fade)), transparent 100%);
}
.mbl--run .mbl__track { animation: mbl-run var(--mbl-dur, 30s) linear infinite; }
.mbl--run:hover .mbl__track,
.mbl--run:focus-within .mbl__track { animation-play-state: paused; }
@keyframes mbl-run {
	from { transform: translateX(0); }
	to   { transform: translateX(calc(-1 * var(--mbl-shift, 50%))); }
}

/* Ohne Script / vor dem Start: Text abschneiden statt umbrechen */
.mbl--laufband:not(.mbl--run) .mbl__viewport { text-overflow: ellipsis; }

/* Fest stehend: ein Text zur Zeit, zentriert */
.mbl--fest { justify-content: center; }
.mbl--fest .mbl__viewport { flex: 0 1 auto; white-space: normal; }
.mbl--fest .mbl__track,
.mbl--fest .mbl__group { display: block; }
.mbl--fest .mbl__sep { display: none; }
.mbl--fest .mbl__item { display: none; }
.mbl--fest .mbl__item.is-active { display: block; animation: mbl-fade .4s ease-out; }
@keyframes mbl-fade { from { opacity: 0; } to { opacity: 1; } }

.mbl__close {
	flex: none;
	margin: 0 0 0 auto;
	padding: 2px 6px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 22px;
	line-height: 1;
	opacity: .8;
	cursor: pointer;
	box-shadow: none;
}
.mbl__close:hover,
.mbl__close:focus-visible { opacity: 1; background: rgba(127, 127, 127, .2); color: inherit; }
.mbl--fest .mbl__close { margin-left: 8px; }

.mbl a:focus-visible,
.mbl__close:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

@media (max-width: 767px) {
	.mbl { gap: 10px; min-height: 40px; padding: 7px 12px; font-size: 14px; --mbl-fade: 18px; }
	.mbl__badge { padding: 5px 8px; font-size: 11px; }
	.mbl__sep { margin: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.mbl--run .mbl__track,
	.mbl--fest .mbl__item.is-active { animation: none; }
}

@media print {
	.mbl { display: none !important; }
}

/* Elementor-Editor: Vorschau des Shortcodes, wenn die Leiste auf der Website nicht sichtbar wäre */
.mbl-editor-note {
	margin: 0;
	padding: 3px 8px;
	background: #1e1e1e;
	color: #fff;
	font: 500 11px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	letter-spacing: .02em;
}
.mbl--editor-off { opacity: .6; }
