/**
 * Ernährung sowie Vitamine & Nährstoffe.
 */


/* Themenübersicht Ernährung */

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

.ha-nutrition-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-nutrition-topics__grid {
	display: grid;
	grid-template-columns: repeat(
		auto-fit,
		minmax(260px, 1fr)
	);
	gap: 20px;
}

.ha-nutrition-topic {
	display: flex;
	flex-direction: column;
	min-width: 0;
	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-nutrition-topic:hover {
	border-color: #9aac94;
	color: #263d31;
	transform: translateY(-3px);
	box-shadow: 0 16px 34px rgba(35, 55, 43, 0.1);
}

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

.ha-nutrition-topic__title {
	display: block;
	max-width: 100%;
	margin-bottom: 14px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.35rem, 2vw, 1.55rem);
	font-weight: 500;
	line-height: 1.15;
	overflow-wrap: anywhere;
	hyphens: auto;
}

.ha-nutrition-topic__description {
	display: block;
	flex: 1;
	max-width: 100%;
	color: #536258;
	font-size: 0.96rem;
	line-height: 1.55;
	overflow-wrap: anywhere;
	hyphens: auto;
}

.ha-nutrition-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;
}


/* Karten ohne Beitragsbild */

.ha-nutrition-card--text-only .ha-archive-card__body,
.ha-nutrition-result-card--text-only .ha-archive-card__body {
	padding-top: 30px;
}

.ha-nutrition-card--text-only,
.ha-nutrition-result-card--text-only {
	min-height: 340px;
}


/* Rückweg */

.ha-nutrition-back {
	display: inline-flex;
	align-items: center;
	margin-bottom: 28px;
	padding: 9px 14px;
	border: 1px solid #b9c7b0;
	border-radius: 10px;
	background: #edf2e8;
	color: #344b38;
	font-size: 0.88rem;
	font-weight: 750;
	text-decoration: none;
}

.ha-nutrition-back:hover {
	background: #e2eadc;
	color: #263d31;
}


/* Suchbereich Vitamine & Nährstoffe */

.ha-nutrition-search-panel {
	max-width: 820px;
	margin-bottom: 30px;
	padding: clamp(24px, 4vw, 38px);
	border: 1px solid #dce5da;
	border-radius: 18px;
	background: #f1f5ed;
	box-shadow: 0 12px 32px rgba(35, 55, 43, 0.06);
}

.ha-nutrition-search-panel__label {
	display: block;
	margin-bottom: 8px;
	color: #263d31;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.35rem, 2.5vw, 1.85rem);
	font-weight: 500;
	line-height: 1.2;
}

.ha-nutrition-search-panel__hint {
	margin: 0 0 20px;
	color: #536258;
	font-size: 0.95rem;
	line-height: 1.55;
}

.ha-nutrition-search {
	display: flex;
	align-items: stretch;
	gap: 10px;
}

.ha-nutrition-search__input {
	width: 100%;
	min-width: 0;
	min-height: 54px;
	padding: 13px 17px;
	border: 1px solid #aebdad;
	border-radius: 10px;
	background: #ffffff;
	color: #263d31;
	font: inherit;
	font-size: 1rem;
}

.ha-nutrition-search__input:hover {
	border-color: #71866f;
}

.ha-nutrition-search__input:focus {
	border-color: #526b54;
	outline: 3px solid rgba(82, 107, 84, 0.18);
	outline-offset: 1px;
}

.ha-nutrition-search__clear {
	flex: 0 0 auto;
	min-height: 54px;
	padding: 12px 17px;
	border: 0;
	border-radius: 10px;
	background: #30483a;
	color: #ffffff;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 800;
	cursor: pointer;
}

.ha-nutrition-search__clear:hover {
	background: #22382c;
}

.ha-nutrition-search__clear:focus-visible {
	outline: 3px solid rgba(48, 72, 58, 0.25);
	outline-offset: 3px;
}

.ha-nutrition-search__clear[hidden] {
	display: none !important;
}

.ha-nutrition-results-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 22px;
}

.ha-nutrition-results-count {
	margin: 0;
	color: #526257;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.ha-nutrition-result-card[hidden] {
	display: none !important;
}

.ha-nutrition-empty {
	margin-top: 25px;
	padding: 35px;
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 12px 35px rgba(35, 55, 43, 0.08);
}

.ha-nutrition-empty[hidden] {
	display: none !important;
}

.ha-nutrition-empty h2 {
	margin: 0 0 10px;
	color: #263d31;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.55rem;
	font-weight: 500;
}

.ha-nutrition-empty p {
	margin: 0;
	color: #536258;
	line-height: 1.55;
}


/* Mobil */

@media (max-width: 700px) {

	.ha-nutrition-topics__grid {
		grid-template-columns: 1fr;
	}

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

	.ha-nutrition-search {
		flex-direction: column;
	}

	.ha-nutrition-search__clear {
		width: 100%;
	}
}
