/* Rezept-Bereich auf der Startseite. Mobile First; Farben und Maße wie die Produktkarten im Shop. */

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

.ghh {
	--ink: #020304;
	--sage: #798265;
	--tint: #cad0c2;
	--muted: #6b6f63;
	padding: 36px 0 40px;
	background: rgba(202, 208, 194, 0.3);
	color: var(--ink);
	font-size: 14px;
	line-height: 1.5;
}

.ghh__wrap {
	width: 100%;
	max-width: 1238px;
	margin: 0 auto;
	padding: 0 20px;
}

.ghh .ghh__title {
	margin: 0;
	color: var(--sage);
	font-size: 26px;
	font-weight: 500;
	line-height: 1.2;
	text-align: left;
	text-transform: none;
}

.ghh .ghh__text {
	margin: 6px 0 0;
	color: var(--muted);
	font-size: 15px;
}

.ghh .ghh__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.ghh__card {
	display: flex;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	border: 1px solid rgba(202, 208, 194, 0.55);
	border-radius: 5px;
	background: #fff;
	transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.ghh__card::before {
	display: none !important;
}

.ghh__card:hover {
	border-color: var(--tint);
	box-shadow: 3px 5px 20px rgba(0, 0, 0, 0.1);
}

.ghh__card > a {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	color: var(--ink);
	text-decoration: none;
}

.ghh__card > a:focus-visible {
	outline: 3px solid var(--sage);
	outline-offset: -3px;
}

.ghh__media {
	position: relative;
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	background: #f6f1e8;
}

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

@media (hover: hover) {
	.ghh__card:hover .ghh__media img {
		transform: scale(1.04);
	}
}

.ghh__time {
	position: absolute;
	bottom: 8px;
	left: 8px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 8px;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.94);
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
}

.ghh__time svg {
	width: 13px;
	height: 13px;
	margin: 0;
}

.ghh__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 4px;
	padding: 10px;
}

.ghh__name {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
}

.ghh__spice {
	color: var(--muted);
	font-size: 13px;
	line-height: 1.35;
}

.ghh .ghl-stars {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: auto;
	padding-top: 6px;
	line-height: 1;
}

.ghh .ghl-stars__icons {
	background: linear-gradient(90deg, #ffc400 var(--p, 0%), #dcdcd6 var(--p, 0%));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: 15px;
	letter-spacing: 1px;
}

.ghh .ghl-stars__count {
	color: #333;
	font-size: 12px;
}

/* Großes Rezept: Bild frei, Text darunter */

.ghh__card--large {
	grid-column: 1 / -1;
}

.ghh__card--large .ghh__media {
	aspect-ratio: 4 / 3;
}

.ghh__card--large .ghh__media img {
	object-position: center 65%;
}

.ghh__card--large .ghh__body {
	flex: none;
	align-items: flex-start;
	padding: 14px 16px 16px;
}

.ghh__card--large .ghh__name {
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
}

.ghh__card--large .ghh__spice {
	font-size: 14px;
}

.ghh__btn {
	align-self: stretch;
	margin-top: 10px;
	padding: 15px 18px;
	border-radius: 5px;
	background: var(--sage);
	color: #fff;
	font-size: 16px;
	line-height: 1;
	text-align: center;
	transition: background-color 0.3s ease;
}

.ghh__card--large:hover .ghh__btn {
	background: #66705a;
}

.ghh .ghh__more {
	margin: 18px 0 0;
	text-align: center;
}

.ghh__more a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	color: var(--sage);
	font-size: 16px;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.ghh__more a:hover {
	color: var(--ink);
}

.ghh__more svg {
	width: 20px;
	height: 20px;
	margin: 0;
}

@media (min-width: 700px) {
	.ghh {
		padding: 56px 0 60px;
	}

	.ghh .ghh__title {
		font-size: 30px;
	}

	.ghh .ghh__grid {
		gap: 20px;
		margin-top: 24px;
	}

	.ghh--feature .ghh__grid {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
	}

	.ghh:not(.ghh--feature) .ghh__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.ghh__card--large {
		grid-column: 1;
		grid-row: 1 / span 2;
	}

	/* Füllt die Höhe der zwei Kachelreihen daneben. */
	.ghh__card--large .ghh__media {
		flex: 1;
		aspect-ratio: auto;
		min-height: 320px;
	}

	.ghh__card--large .ghh__media img {
		position: absolute;
		inset: 0;
	}

	.ghh__card:not(.ghh__card--large) .ghh__media {
		aspect-ratio: 4 / 3;
	}
}

@media (min-width: 1000px) {
	.ghh .ghh__grid {
		gap: 24px;
	}

	.ghh__body {
		padding: 14px 16px 16px;
	}

	.ghh__name {
		font-size: 17px;
	}

	.ghh__spice {
		font-size: 14px;
	}

	.ghh__card--large .ghh__body {
		padding: 20px 24px 24px;
	}

	.ghh__card--large .ghh__name {
		font-size: 26px;
	}

	.ghh__card--large .ghh__spice {
		font-size: 16px;
	}

	.ghh__btn {
		align-self: flex-start;
		min-width: 180px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ghh__card,
	.ghh__media img,
	.ghh__btn {
		transition: none;
	}
}
