/* HMF News – Karten-Bereich. Den Hintergrund liefert der Abschnitt der Seite. */

.hmf-news {
	max-width: 980px;
	margin: 0 auto;
	color: var(--hmf-news-text, #373737);
	text-align: center;
}

/* Kleine Zeile oben */
.hmf-news .hmf-news__label {
	margin: 0 0 14px;
	padding: 0;
	font-size: clamp(20px, 2vw, 30px);
	font-weight: 700;
	line-height: 1.3;
	color: inherit;
}
.hmf-news .hmf-news__label--outline span {
	display: inline-block;
	padding: 2px 26px;
	border: 3px solid var(--hmf-news-outline, #fff);
	border-radius: 50%;
}

/* Große Überschrift */
.hmf-news .hmf-news__headline {
	margin: 0 0 26px;
	padding: 0;
	font-size: clamp(24px, 2.6vw, 34px);
	font-weight: 700;
	line-height: 1.25;
	color: inherit;
	text-align: center;
}

/* Karten */
.hmf-news__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	text-align: left;
}
.hmf-news__grid > .hmf-news__card {
	flex: 1 1 280px;
	min-width: 0;
	box-sizing: border-box;
}
/* Ab vier Meldungen: zwei Spalten statt drei plus eine einzelne. */
.hmf-news__grid--many > .hmf-news__card {
	flex-basis: calc(50% - 10px);
}
@media (max-width: 640px) {
	.hmf-news__grid > .hmf-news__card {
		flex-basis: 100%;
	}
}
/* Eine einzelne Meldung soll nicht über die ganze Breite laufen. */
.hmf-news__grid--1 {
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}
.hmf-news__card {
	padding: 22px 26px;
	border-radius: 10px;
	background: var(--hmf-news-card, rgba(255, 255, 255, 0.62));
}
.hmf-news .hmf-news__title {
	margin: 0 0 8px;
	padding: 0;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.3;
	color: inherit;
	text-align: left;
}
.hmf-news .hmf-news__text,
.hmf-news .hmf-news__note {
	margin: 0;
	padding: 0;
	font-size: 18px;
	line-height: 1.5;
	color: inherit;
}
.hmf-news .hmf-news__text + .hmf-news__text,
.hmf-news .hmf-news__note {
	margin-top: 10px;
}
.hmf-news .hmf-news__note {
	font-weight: 700;
}
.hmf-news .hmf-news__text a {
	color: inherit;
	text-decoration: underline;
}

/* Knopf */
.hmf-news .hmf-news__action {
	margin: 34px 0 0;
	padding: 0;
	text-align: center;
}
.hmf-news .hmf-news__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 14px 40px;
	border-radius: 4px;
	background: var(--hmf-news-button, #373737);
	color: var(--hmf-news-btntext, #fff);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	transition: filter 0.15s, transform 0.15s;
}
.hmf-news .hmf-news__button:hover {
	filter: brightness(1.12);
	transform: translateY(-1px);
	color: var(--hmf-news-btntext, #fff);
}
.hmf-news .hmf-news__button:focus-visible,
.hmf-news .hmf-news__text a:focus-visible {
	outline: 3px solid var(--hmf-news-text, #373737);
	outline-offset: 3px;
}

/* Nur für Screenreader */
.hmf-news__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 480px) {
	.hmf-news__card {
		padding: 18px 20px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.hmf-news .hmf-news__button {
		transition: none;
	}
	.hmf-news .hmf-news__button:hover {
		transform: none;
	}
}

/* Keine Meldung aktiv: den umgebenden Abschnitt der Seite ausblenden. */
.vc_row:has(.hmf-news-empty),
.wpb_row:has(.hmf-news-empty),
.et_pb_section:has(.hmf-news-empty),
.elementor-top-section:has(.hmf-news-empty),
.e-con.e-parent:has(.hmf-news-empty),
.wp-block-group:has(> .hmf-news-empty) {
	display: none !important;
}
