/* ==========================================================================
   Feuerwehr Falkensee – Meldungen
   Klar sichtbar, modern, einheitlich
   ========================================================================== */

.fw-meldungen-bar {
	width: 100%;
	z-index: 99998;
	font-size: 1rem;
	line-height: 1.5;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, sans-serif;
}

.fw-meldungen-bar-inner {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.fw-meldung {
	display: block;
	width: 100%;
	padding: 1rem 1.5rem 1rem 2.75rem;
	text-align: center;
	position: relative;
}

.fw-meldung::before {
	content: '';
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	opacity: 0.9;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

@media (max-width: 640px) {
	.fw-meldung::before {
		display: none;
	}
}

.fw-meldung-inner {
	max-width: 920px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.35rem 0.85rem;
	position: relative;
}

/* Einsatz / Dringend */
.fw-meldung--emergency {
	background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
	color: #fff;
	border-bottom: 2px solid rgba(0, 0, 0, 0.15);
}

.fw-meldung--emergency::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02z'/%3E%3C/svg%3E");
}

.fw-meldung--emergency .fw-meldung-title {
	color: #fff;
	font-weight: 800;
	font-size: 1.06rem;
	letter-spacing: 0.015em;
}

.fw-meldung--emergency .fw-meldung-content {
	color: rgba(255, 255, 255, 0.96);
	font-size: 0.95rem;
}

/* Hinweis / Warnung */
.fw-meldung--warning {
	background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%);
	color: #fff;
	border-bottom: 2px solid rgba(0, 0, 0, 0.12);
}

.fw-meldung--warning::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02z'/%3E%3C/svg%3E");
}

.fw-meldung--warning .fw-meldung-title {
	color: #fff;
	font-weight: 700;
	font-size: 1.02rem;
}

.fw-meldung--warning .fw-meldung-content {
	color: rgba(255, 255, 255, 0.96);
}

/* Information */
.fw-meldung--info {
	background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
	color: #f1f5f9;
	border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}

.fw-meldung--info::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23e2e8f0' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02z'/%3E%3C/svg%3E");
}

.fw-meldung--info .fw-meldung-title {
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
}

.fw-meldung--info .fw-meldung-content {
	color: rgba(241, 245, 249, 0.92);
}

.fw-meldung-title {
	flex-shrink: 0;
}

.fw-meldung-content {
	font-size: 0.95rem;
}

.fw-meldung-content p {
	margin: 0;
	display: inline;
}

.fw-meldung-content p + p::before {
	content: ' · ';
	opacity: 0.85;
}

.fw-meldung-link {
	text-decoration: none;
	color: inherit;
}

.fw-meldung-link:hover {
	opacity: 0.95;
}

.fw-meldung-inner {
	width: 100%;
	box-sizing: border-box;
}

.fw-meldung-link:focus-visible {
	outline: 3px solid rgba(255, 255, 255, 0.8);
	outline-offset: 2px;
	border-radius: 4px;
}

.fw-meldung-related {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
	opacity: 0.95;
}

.fw-meldung-related:hover {
	opacity: 1;
}

/* Sticky */
body.fw-meldungen-has-sticky .fw-meldungen-bar {
	position: sticky;
	top: 0;
}

body.admin-bar.fw-meldungen-has-sticky .fw-meldungen-bar {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar.fw-meldungen-has-sticky .fw-meldungen-bar {
		top: 46px;
	}
}

@media (max-width: 640px) {
	.fw-meldung {
		padding: 0.95rem 1rem;
		text-align: left;
		padding-left: 1rem;
	}

	.fw-meldung-inner {
		justify-content: flex-start;
	}

	.fw-meldung--emergency .fw-meldung-title,
	.fw-meldung--warning .fw-meldung-title {
		font-size: 1rem;
	}
}
