/* Rezept-Übersicht, Karten, Favoriten-Herz und Block auf Produktseiten. Mobile First. */

.ghl {
	--ghl-sage: #798265;
	--ghl-sage-dark: #56604a;
	--ghl-sage-soft: #eef1ea;
	--ghl-sand: #f6f1e8;
	--ghl-line: #e7e1d6;
	--ghl-text: #26291f;
	--ghl-muted: #5d6157;
	--ghl-heart: #c2414b;
	box-sizing: border-box;
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 16px 64px;
	color: var(--ghl-text);
	font-size: 16px;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.ghl *,
.ghl *::before,
.ghl *::after {
	box-sizing: border-box;
}

.ghl [hidden] {
	display: none !important;
}

.ghl-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ghl :focus-visible {
	outline: 3px solid var(--ghl-sage-dark);
	outline-offset: 2px;
}

.ghl h1,
.ghl h2 {
	margin: 0;
	color: var(--ghl-text);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
}

.ghl h2 {
	font-size: 22px;
}

.ghl p {
	margin: 0;
}

.ghl ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ghl-preview-note {
	margin: 12px 0 0 !important;
	padding: 10px 14px;
	border-radius: 10px;
	background: #fff6dd;
	font-size: 14px;
}

/* Kopf */

.ghl-head {
	padding: 24px 0 16px;
}

.ghl-head__title {
	font-size: clamp(30px, 8vw, 44px);
}

.ghl-head__intro {
	max-width: 46ch;
	margin-top: 8px !important;
	color: var(--ghl-muted);
	font-size: 17px;
}

.ghl-head__links {
	margin-top: 10px !important;
}

.ghl-head__links a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--ghl-sage-dark);
	font-weight: 600;
	text-underline-offset: 3px;
}

.ghl-head__count {
	display: inline-grid;
	place-items: center;
	min-width: 24px;
	height: 24px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--ghl-sage-dark);
	color: #fff;
	font-size: 13px;
}

/* Schaltflächen */

.ghl .ghl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 20px;
	border: 2px solid var(--ghl-sage-dark);
	border-radius: 999px;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.ghl .ghl-btn--primary,
.ghl .ghl-btn--primary:hover,
.ghl .ghl-btn--primary:focus {
	background: var(--ghl-sage-dark);
	color: #fff;
}

.ghl .ghl-btn--ghost,
.ghl .ghl-btn--ghost:focus {
	background: #fff;
	color: var(--ghl-sage-dark);
}

.ghl .ghl-btn--ghost:hover {
	background: var(--ghl-sage-soft);
	color: var(--ghl-sage-dark);
}

.ghl .ghl-btn[disabled] {
	border-color: #c9c9c4;
	background: #ecebe6;
	color: #6f716a;
	cursor: not-allowed;
}

/* Suche */

.ghl-search {
	position: relative;
	display: flex;
	margin: 0;
}

.ghl .ghl-search input[type="search"] {
	flex: 1;
	width: 100%;
	min-width: 0;
	height: 56px;
	margin: 0;
	padding: 0 60px 0 20px;
	border: 2px solid var(--ghl-line);
	border-radius: 999px;
	background: #fff;
	color: var(--ghl-text);
	font: inherit;
	font-size: 17px;
	appearance: none;
}

.ghl .ghl-search input[type="search"]:focus {
	border-color: var(--ghl-sage-dark);
	outline: none;
}

.ghl .ghl-search__submit {
	position: absolute;
	top: 6px;
	right: 6px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ghl-sage-dark);
	color: #fff;
	cursor: pointer;
}

.ghl-suggest {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	left: 0;
	z-index: 20;
	padding: 6px !important;
	border: 1px solid var(--ghl-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.ghl-suggest a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 48px;
	padding: 8px 14px;
	border-radius: 10px;
	color: var(--ghl-text);
	font-weight: 500;
	text-decoration: none;
}

.ghl-suggest a span {
	flex: none;
	color: var(--ghl-muted);
	font-size: 14px;
	font-weight: 400;
}

.ghl-suggest li.is-active a,
.ghl-suggest a:hover {
	background: var(--ghl-sage-soft);
}

/* Filter: Die Marken brechen um, es wird nie seitlich gewischt. */

.ghl-filters,
.ghl-active {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px !important;
}

.ghl .ghl-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 8px 16px;
	border: 1px solid var(--ghl-line);
	border-radius: 999px;
	background: #fff;
	color: var(--ghl-text);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.ghl .ghl-chip:hover,
.ghl .ghl-chip.is-active {
	border-color: var(--ghl-sage-dark);
	background: var(--ghl-sage-soft);
	color: var(--ghl-text);
}

.ghl .ghl-chip--all {
	border-color: var(--ghl-sage-dark);
	color: var(--ghl-sage-dark);
}

.ghl-chip__count {
	display: inline-grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--ghl-sage-dark);
	color: #fff;
	font-size: 12px;
}

.ghl .ghl-active__chip,
.ghl .ghl-active__reset {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 6px 14px;
	border: 0;
	border-radius: 999px;
	background: var(--ghl-sage-dark);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.ghl .ghl-active__reset {
	background: transparent;
	color: var(--ghl-sage-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Raster und Karten */

.ghl-count {
	margin: 20px 0 12px !important;
	color: var(--ghl-muted);
	font-size: 15px;
}

.ghl-count:empty {
	display: none;
}

.ghl-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px 16px;
}

.ghl-grid--row {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 12px;
}

.ghl-row {
	margin-top: 28px;
}

.ghl-row h2,
.ghl-row__all {
	margin-bottom: 12px !important;
}

.ghl-row__all {
	margin-top: 32px !important;
}

.ghl-card {
	position: relative;
	min-width: 0;
}

.ghl-card__link {
	display: block;
	color: var(--ghl-text) !important;
	text-decoration: none;
}

.ghl-card__media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 16px;
	background: var(--ghl-sand);
}

.ghl-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.ghl-card__link:hover .ghl-card__media img {
	transform: scale(1.03);
}

.ghl-card__title {
	display: block;
	margin-top: 10px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.ghl-grid--row .ghl-card__title {
	font-size: 16px;
}

.ghl-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin-top: 4px !important;
	color: var(--ghl-muted);
	font-size: 14px;
}

.ghl-card__rating {
	color: var(--ghl-text);
	font-weight: 600;
}

.ghl-card__rating small {
	color: var(--ghl-muted);
	font-size: 13px;
	font-weight: 400;
}

.ghl-card__badge {
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--ghl-sage-soft);
	color: var(--ghl-sage-dark);
	font-size: 13px;
	font-weight: 600;
}

.ghl-card__draft {
	padding: 2px 10px;
	border-radius: 999px;
	background: #fff6dd;
	color: #6e4e00;
	font-size: 13px;
}

/* Herz */

.ghl-heart {
	position: absolute;
	top: 8px;
	right: 8px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	color: var(--ghl-text, #26291f);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
	cursor: pointer;
}

.ghl-heart:hover,
.ghl-heart:focus {
	background: #fff;
	color: var(--ghl-heart, #c2414b);
}

.ghl-heart[aria-pressed="true"] {
	color: var(--ghl-heart, #c2414b);
}

.ghl-heart[aria-pressed="true"] path {
	fill: currentColor;
}

.ghl-heart.is-pop svg {
	animation: ghl-pop 0.35s ease-out;
}

.ghl-heart--hero {
	top: 12px;
	right: 12px;
	z-index: 2;
	width: 48px;
	height: 48px;
}

.ghl-heart:focus-visible {
	outline: 3px solid #56604a;
	outline-offset: 2px;
}

@keyframes ghl-pop {
	40% {
		transform: scale(1.35);
	}
}

.ghl-empty {
	padding: 32px 20px;
	border-radius: 16px;
	background: var(--ghl-sand);
	text-align: center;
}

.ghl-empty a {
	display: block;
	margin-top: 8px;
	color: var(--ghl-sage-dark);
	font-weight: 600;
}

/* Folgeseiten (sichtbar ohne JavaScript) */

.ghl-pagination {
	margin-top: 28px;
}

.ghl-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.ghl-pagination a,
.ghl-pagination span {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--ghl-line);
	border-radius: 999px;
	color: var(--ghl-text);
	text-decoration: none;
}

.ghl-pagination .current {
	border-color: var(--ghl-sage-dark);
	background: var(--ghl-sage-dark);
	color: #fff;
}

/* Filterfenster: am Handy von unten, sonst mittig */

.ghl-sheet {
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: 100%;
	height: fit-content;
	max-height: 88vh;
	margin: auto 0 0;
	padding: 0;
	border: 0;
	border-radius: 20px 20px 0 0;
	background: #fff;
	color: var(--ghl-text);
	overflow: hidden;
}

.ghl-sheet::backdrop {
	background: rgba(20, 22, 16, 0.5);
}

.ghl-sheet[open] {
	display: flex;
	animation: ghl-sheet-in 0.22s ease-out;
}

@keyframes ghl-sheet-in {
	from {
		transform: translateY(24px);
		opacity: 0;
	}
}

.ghl-sheet__panel {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
	max-height: 88vh;
}

.ghl-sheet__head,
.ghl-sheet__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
}

.ghl-sheet__head {
	border-bottom: 1px solid var(--ghl-line);
}

.ghl-sheet__foot {
	padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--ghl-line);
}

.ghl-sheet__foot .ghl-btn {
	flex: 1;
}

.ghl .ghl-sheet__close {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ghl-sand);
	color: var(--ghl-text);
	font-size: 16px;
	cursor: pointer;
}

.ghl-sheet__body {
	flex: 1;
	min-height: 0;
	padding: 4px 16px 16px;
	overflow-y: auto;
}

.ghl fieldset.ghl-group {
	min-width: 0;
	margin: 16px 0 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.ghl fieldset.ghl-group legend {
	float: none;
	width: auto;
	margin: 0 0 10px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ghl-text);
	font-size: 17px;
	font-weight: 600;
}

.ghl-group__options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ghl-option {
	position: relative;
	margin: 0;
	cursor: pointer;
}

.ghl-option input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.ghl-option span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 8px 14px;
	border: 1px solid var(--ghl-line);
	border-radius: 999px;
	background: #fff;
	font-size: 15px;
	font-weight: 500;
}

.ghl-option small {
	color: var(--ghl-muted);
	font-size: 13px;
}

.ghl-option input:checked + span {
	border-color: var(--ghl-sage-dark);
	background: var(--ghl-sage-dark);
	color: #fff;
}

.ghl-option input:checked + span small {
	color: #e3e7dc;
}

.ghl-option input:focus-visible + span {
	outline: 3px solid var(--ghl-sage-dark);
	outline-offset: 2px;
}

/* Gewürz-Landingpage: Kurzportrait mit Kaufmöglichkeit */

.ghl-spice.ghr {
	max-width: 560px;
	margin: 0 0 8px;
	padding: 0;
}

.ghl-spice__text {
	margin-bottom: 14px !important;
	font-size: 17px;
}

/* Block auf Produktseiten */

.ghl-block {
	margin-top: 40px;
	margin-bottom: 40px;
	padding-bottom: 0;
}

.ghl-block h2 {
	margin-bottom: 16px;
}

.ghl-block__more {
	margin-top: 20px !important;
	text-align: center;
}

/* Ab Tablet */

@media (min-width: 600px) {
	.ghl-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ghl-grid--row {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.ghl-search {
		max-width: 640px;
	}

	.ghl-sheet {
		max-width: 520px;
		margin: auto;
		border-radius: 20px;
	}
}

/* Ab Desktop */

@media (min-width: 900px) {
	.ghl {
		padding: 16px 24px 80px;
	}

	.ghl-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 32px 24px;
	}

	.ghl-grid--row {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 24px;
	}
}

@media (min-width: 1200px) {
	.ghl-grid:not(.ghl-grid--row) {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.ghl-card__media img,
	.ghl-heart.is-pop svg,
	.ghl-sheet[open] {
		transition: none;
		animation: none;
	}
}
