/* Bfz Hinweise – Frontend */
.bfz-notice-bar,
.bfz-notice-bar * {
	box-sizing: border-box;
}

.bfz-notice-bar {
	--bfz-blue: #273583;
	--bfz-blue-dark: #1d2867;
	--bfz-gold: #d6bd84;
	width: 100%;
	margin: 0;
	padding: 0;
	font-family: inherit;
}

.bfz-notice-bar__sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.bfz-notice-bar__sr span + span::before {
	content: " ";
}

/* Desktop / Tablet */
.bfz-notice-bar__desktop {
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 100%;
}

.bfz-notice-bar__item {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 100%;
	padding: 11px clamp(16px, 3vw, 34px);
	color: #fff;
	background: var(--bfz-blue);
	text-align: center;
	font-size: clamp(13px, 1.1vw, 15px);
	line-height: 1.45;
}

.bfz-notice-bar__item strong {
	color: inherit;
	font-weight: 800;
}

.bfz-notice-bar__item--warning {
	background: linear-gradient(90deg, #8f302b, #a63c34);
}

.bfz-notice-bar__item--info {
	background: linear-gradient(90deg, var(--bfz-blue-dark), var(--bfz-blue));
}

.bfz-notice-bar__item--important {
	color: var(--bfz-blue-dark);
	background: linear-gradient(90deg, #dcc793, #ecdfbd);
}

/* Mobile: exactly one visual line with continuous ticker */
.bfz-notice-bar__mobile {
	display: none;
}

@media (max-width: 767px) {
	.bfz-notice-bar__desktop {
		display: none;
	}

	.bfz-notice-bar__mobile {
		display: block;
		position: relative;
		width: 100%;
		height: 42px;
		overflow: hidden;
		color: #fff;
		background: var(--bfz-blue-dark);
		border-top: 1px solid rgba(255,255,255,.12);
		border-bottom: 1px solid rgba(255,255,255,.12);
	}

	.bfz-notice-bar__ticker {
		display: flex;
		align-items: center;
		width: max-content;
		min-width: max-content;
		height: 100%;
		white-space: nowrap;
		animation: bfzNoticeTicker 26s linear infinite;
		will-change: transform;
	}

	.bfz-notice-bar__ticker-group {
		display: flex;
		align-items: center;
		flex-shrink: 0;
		height: 100%;
		padding-right: 34px;
	}

	.bfz-notice-bar__ticker-item {
		display: inline-flex;
		align-items: center;
		flex-shrink: 0;
		font-size: 13px;
		line-height: 1;
		font-weight: 500;
	}

	.bfz-notice-bar__ticker-item strong {
		margin-right: 4px;
		color: var(--bfz-gold);
		font-weight: 800;
	}

	.bfz-notice-bar__separator {
		display: inline-block;
		flex-shrink: 0;
		margin: 0 24px;
		color: var(--bfz-gold);
	}

	@keyframes bfzNoticeTicker {
		from { transform: translateX(0); }
		to   { transform: translateX(-50%); }
	}
}

@media (prefers-reduced-motion: reduce) {
	.bfz-notice-bar__mobile {
		overflow-x: auto;
	}

	.bfz-notice-bar__ticker {
		width: max-content;
		animation: none;
	}

	.bfz-notice-bar__ticker-group:nth-child(2) {
		display: none;
	}
}
