/**
 * Übersichtsseite der Kategorie Gesundheit.
 */

.ha-health-topics {
	margin-bottom: clamp(55px, 8vw, 90px);
}

.ha-health-section-title {
	margin: 0 0 26px;
	color: #263d31;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.8rem, 3vw, 2.65rem);
	font-weight: 500;
	line-height: 1.15;
}

.ha-health-topics__grid {
	display: grid;
	grid-template-columns: repeat(
		auto-fit,
		minmax(220px, 1fr)
	);
	gap: 20px;
}

.ha-health-topic {
	display: flex;
	flex-direction: column;
	min-height: 245px;
	padding: 27px;
	border: 1px solid #dfe7dd;
	border-radius: 16px;
	background: #f4f7f1;
	color: #2c4335;
	text-decoration: none;
	box-shadow: 0 10px 28px rgba(35, 55, 43, 0.05);
	transition:
		transform 180ms ease,
		border-color 180ms ease,
		box-shadow 180ms ease;
}

.ha-health-topic:hover {
	border-color: #9aac94;
	color: #263d31;
	transform: translateY(-3px);
	box-shadow: 0 16px 34px rgba(35, 55, 43, 0.1);
}

.ha-health-topic:focus-visible {
	outline: 3px solid rgba(92, 112, 74, 0.28);
	outline-offset: 4px;
}

.ha-health-topic__title {
	display: block;
	margin-bottom: 14px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.55rem;
	font-weight: 500;
	line-height: 1.15;
}

.ha-health-topic__description {
	display: block;
	flex: 1;
	color: #536258;
	font-size: 0.96rem;
	line-height: 1.55;
}

.ha-health-topic__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-top: 24px;
	color: #3c5b47;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ha-health-posts {
	margin-top: 0;
}

@media (max-width: 700px) {
	.ha-health-topics__grid {
		grid-template-columns: 1fr;
	}

	.ha-health-topic {
		min-height: 0;
		padding: 23px;
	}
}


/* =========================================================
   GESUNDHEITSKARTEN – SAUBERER TEXTUMBRUCH
   ========================================================= */

/*
 * Die Karten nicht mehr zu fünft in eine zu schmale Zeile pressen.
 * Jede Karte erhält genügend Platz für lange Themenbezeichnungen.
 */
.ha-health-topics__grid {
	grid-template-columns: repeat(
		auto-fit,
		minmax(280px, 1fr)
	);
}

/*
 * Grid-Elemente dürfen innerhalb ihrer Spalte wirklich schrumpfen.
 */
.ha-health-topic {
	min-width: 0;
}

/*
 * Lange deutsche Begriffe wie Hundekrankheiten oder
 * Ultraschalluntersuchung dürfen sauber umbrechen.
 */
.ha-health-topic__title,
.ha-health-topic__description {
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: normal;
	hyphens: auto;
}

.ha-health-topic__title {
	font-size: clamp(1.35rem, 2vw, 1.55rem);
}

/*
 * Auf Smartphones weiterhin genau eine Karte pro Zeile.
 */
@media (max-width: 700px) {
	.ha-health-topics__grid {
		grid-template-columns: 1fr;
	}
}
