/* ==========================================================================
   Rezepte – Übersicht ( /rezepte/ ) und Detailseiten ( /rezepte/<slug>/ ).
   Nutzt die Theme-CI-Variablen aus style.css (--gold, --creme, --serif …).
   ========================================================================== */

/* Fixe Navigation freihalten – analog zu .page-shell. */
.rezept-archive,
.rezept-single {
	padding: 180px 0 108px;
	background: var(--weiss);
}

/* ---------------------------------------------------------------- Übersicht */

.rezept-archive-head {
	max-width: 40em;
	margin-bottom: clamp(2.2rem, 5vw, 3.4rem);
}
.rezept-archive-head .eyebrow {
	display: block;
	margin-bottom: 14px;
}
.rezept-archive-head h1 {
	font-size: clamp(2.3rem, 5vw, 3.4rem);
	margin: 0 0 18px;
}
.rezept-archive-head .lead {
	margin: 0;
}

/* A–Z-Sprungnavigation */
.rezept-az {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	position: sticky;
	top: 114px;
	z-index: 5;
	padding: 12px 14px;
	margin-bottom: clamp(2rem, 4vw, 3rem);
	background: var(--creme);
	border: 1px solid var(--soft-beige);
	border-radius: 6px;
}
.rezept-az a,
.rezept-az span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	font-family: var(--sans);
	font-weight: 600;
	font-size: .82rem;
	border-radius: 3px;
}
.rezept-az a {
	color: var(--gold-deep);
	background: var(--weiss);
	border: 1px solid var(--gold-beige);
	transition: background .25s ease, color .25s ease, transform .25s ease;
}
.rezept-az a:hover,
.rezept-az a:focus-visible {
	background: var(--gold);
	color: var(--weiss);
	transform: translateY(-2px);
}
.rezept-az span {
	color: var(--gold-beige);
	opacity: .55;
	cursor: default;
}

/* Buchstaben-Gruppen */
.rezept-letter-group {
	scroll-margin-top: 150px;
	margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
}
.rezept-letter {
	font-size: clamp(2rem, 4vw, 2.8rem);
	color: var(--gold);
	margin: 0 0 18px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--soft-beige);
}

/* Rezept-Karten */
.rezept-cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}
.rezept-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 26px 26px 24px;
	background: var(--creme);
	border: 1px solid var(--soft-beige);
	border-radius: 6px;
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.rezept-card:hover,
.rezept-card:focus-visible {
	transform: translateY(-3px);
	border-color: var(--gold-beige);
	box-shadow: 0 18px 36px -20px rgba(140, 112, 90, .5);
}
.rezept-card-title {
	font-family: var(--serif);
	font-size: 1.5rem;
	line-height: 1.15;
	color: var(--schwarz);
}
.rezept-card-sub {
	display: block;
	margin-top: 6px;
	font-family: var(--serif);
	font-style: italic;
	color: var(--gold-deep);
	font-size: 1.02rem;
}
.rezept-card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 16px;
}
.rezept-card-tag {
	font-family: var(--sans);
	font-size: .68rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--gold-deep);
	background: var(--weiss);
	border: 1px solid var(--gold-beige);
	border-radius: 999px;
	padding: 4px 11px;
}
.rezept-card-cta {
	margin-top: auto;
	padding-top: 18px;
	font-family: var(--sans);
	font-weight: 600;
	font-size: .78rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--gold);
}
.rezept-card:hover .rezept-card-cta {
	color: var(--gold-deep);
}

.rezept-top {
	margin-top: 8px;
}
.rezept-top a {
	font-family: var(--sans);
	font-weight: 600;
	font-size: .78rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--gold-deep);
}
.rezept-empty {
	font-family: var(--serif);
	font-style: italic;
	font-size: 1.4rem;
	color: var(--gold-deep);
}

/* --------------------------------------------------------------- Detailseite */

.rezept-wrap {
	max-width: 1000px;
}
.rezept-back {
	display: inline-block;
	margin-bottom: 26px;
	font-family: var(--sans);
	font-weight: 600;
	font-size: .78rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--gold-deep);
}
.rezept-back:hover {
	color: var(--gold);
}

.rezept-head {
	max-width: 46em;
	margin-bottom: clamp(2.2rem, 5vw, 3.4rem);
}
.rezept-head .eyebrow {
	display: block;
	margin-bottom: 14px;
}
.rezept-title {
	font-size: clamp(2.3rem, 5vw, 3.5rem);
	margin: 0 0 10px;
}
.rezept-subtitle {
	font-family: var(--serif);
	font-style: italic;
	font-size: clamp(1.3rem, 2.6vw, 1.7rem);
	color: var(--gold-deep);
	margin: 0 0 20px;
}
.rezept-intro {
	font-size: 1.08rem;
	line-height: 1.85;
	color: var(--anthrazit);
	margin: 0 0 22px;
}

.rezept-tags {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 26px;
	padding: 0;
}
.rezept-tags li {
	font-family: var(--sans);
	font-size: .7rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--gold-deep);
	background: var(--creme);
	border: 1px solid var(--gold-beige);
	border-radius: 999px;
	padding: 5px 13px;
}

.rezept-download {
	text-align: center;
}

/* Zutaten + Zubereitung nebeneinander (Desktop), gestapelt (Mobil) */
.rezept-body {
	display: grid;
	grid-template-columns: minmax(240px, 320px) 1fr;
	gap: clamp(28px, 5vw, 60px);
	align-items: start;
	margin-bottom: clamp(2.6rem, 6vw, 4rem);
}
.rezept-body h2 {
	font-size: 1.7rem;
	margin: 0 0 20px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--soft-beige);
}

.rezept-zutaten {
	position: sticky;
	top: 120px;
	background: var(--creme);
	border: 1px solid var(--soft-beige);
	border-radius: 6px;
	padding: 26px 26px 24px;
}
.zutaten-liste {
	list-style: none;
	margin: 0;
	padding: 0;
}
.zutaten-liste li {
	display: flex;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid rgba(172, 137, 109, .18);
}
.zutaten-liste li:last-child {
	border-bottom: 0;
}
.zutaten-liste .menge {
	flex: 0 0 34%;
	font-family: var(--sans);
	font-weight: 600;
	font-size: .92rem;
	color: var(--gold-deep);
}
.zutaten-liste .zutat {
	flex: 1;
	color: var(--anthrazit);
	line-height: 1.5;
}
.zutaten-note {
	margin: 18px 0 0;
	font-size: .9rem;
	font-style: italic;
	line-height: 1.6;
	color: var(--gold-deep);
}

/* Nährwerte (optional, z. B. Protein-Brötchen) */
.rezept-naehrwerte {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid rgba(172, 137, 109, .18);
}
.naehrwerte-note {
	margin: 0 0 12px;
	font-family: var(--sans);
	font-weight: 600;
	font-size: .72rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--gold-deep);
}
.naehrwerte-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
.naehrwerte-grid li {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 12px 8px;
	background: var(--weiss);
	border: 1px solid var(--soft-beige);
	border-radius: 5px;
}
.naehrwerte-grid .nw-wert {
	font-family: var(--serif);
	font-size: 1.5rem;
	line-height: 1;
	color: var(--gold);
}
.naehrwerte-grid .nw-label {
	margin-top: 5px;
	font-family: var(--sans);
	font-size: .64rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--gold-deep);
}

.rezept-steps2-title {
	margin-top: clamp(2rem, 4vw, 2.8rem) !important;
}

.zubereitung-liste {
	list-style: none;
	counter-reset: schritt;
	margin: 0;
	padding: 0;
}
.zubereitung-liste li {
	position: relative;
	counter-increment: schritt;
	padding: 0 0 24px 58px;
	margin-bottom: 22px;
	border-bottom: 1px solid var(--soft-beige);
}
.zubereitung-liste li:last-child {
	border-bottom: 0;
	margin-bottom: 0;
	padding-bottom: 0;
}
.zubereitung-liste li::before {
	content: counter(schritt);
	position: absolute;
	left: 0;
	top: -2px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--serif);
	font-size: 1.3rem;
	color: var(--weiss);
	background: var(--gold);
	border-radius: 50%;
}
.zubereitung-liste h3 {
	font-family: var(--sans);
	font-weight: 600;
	font-size: .82rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--gold-deep);
	margin: 6px 0 8px;
}
.zubereitung-liste p {
	margin: 0;
	line-height: 1.8;
	color: var(--anthrazit);
}
.rezept-extra-tip {
	margin: 26px 0 0;
	padding: 18px 22px;
	background: var(--creme);
	border-left: 3px solid var(--gold);
	border-radius: 0 6px 6px 0;
	font-style: italic;
	line-height: 1.7;
	color: var(--anthrazit);
}

/* Gut zu wissen */
.rezept-infos {
	margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
}
.rezept-infos-title {
	font-size: 1.9rem;
	margin: 0 0 24px;
	text-align: center;
}
.rezept-infos-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
}
.info-box {
	padding: 26px 26px 24px;
	background: var(--weiss);
	border: 1px solid var(--soft-beige);
	border-radius: 6px;
}
.info-box h3 {
	font-family: var(--serif);
	font-size: 1.32rem;
	color: var(--gold-deep);
	margin: 0 0 12px;
}
.info-box p {
	margin: 0;
	line-height: 1.75;
	color: var(--anthrazit);
	font-size: .98rem;
}

/* Healthy-Aging-Tipp */
.rezept-tip {
	max-width: 720px;
	margin: 0 auto clamp(2.4rem, 5vw, 3.6rem);
	text-align: center;
	padding: clamp(28px, 5vw, 44px);
	background: var(--creme);
	border: 1px solid var(--gold-beige);
	border-radius: 8px;
}
.rezept-tip .eyebrow {
	display: block;
	margin-bottom: 14px;
}
.rezept-tip p {
	margin: 0;
	font-family: var(--serif);
	font-size: clamp(1.15rem, 2.2vw, 1.4rem);
	font-style: italic;
	line-height: 1.6;
	color: var(--schwarz);
}

/* Fuß-Download */
.rezept-download-foot {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
	padding-top: clamp(1.6rem, 4vw, 2.4rem);
	border-top: 1px solid var(--soft-beige);
}

/* -------------------------------------------------------------------- Mobil */
@media (max-width: 860px) {
	.rezept-body {
		grid-template-columns: 1fr;
	}
	.rezept-zutaten {
		position: static;
	}
}
@media (max-width: 640px) {
	.rezept-archive,
	.rezept-single {
		padding: 130px 0 74px;
	}
	.rezept-az {
		top: 110px;
	}
	.rezept-download,
	.rezept-download-foot .btn {
		width: 100%;
	}
}

/* ------------------------------------------- PDF-Download: CTA + Popup-Modal */
.rezept-dl-cta {
	margin: 0 0 clamp(2.4rem, 5vw, 3.4rem);
	text-align: center;
}
.rezept-dl-hint {
	margin: 12px 0 0;
	font-size: .82rem;
	color: var(--gold-deep);
}

/* Overlay */
.rz-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.rz-modal[hidden] {
	display: none;
}
body.rz-modal-open {
	overflow: hidden;
}
.rz-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(26, 23, 20, .55);
	backdrop-filter: blur(2px);
}
.rz-modal-dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	background: var(--creme);
	border: 1px solid var(--gold-beige);
	border-radius: 10px;
	box-shadow: 0 30px 70px -20px rgba(26, 23, 20, .5);
	padding: clamp(26px, 4vw, 40px);
	text-align: center;
	animation: rzPop .28s ease;
}
@keyframes rzPop {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: translateY(0); }
}
.rz-modal-close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 40px;
	height: 40px;
	font-size: 1.7rem;
	line-height: 1;
	color: var(--gold-deep);
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}
.rz-modal-close:hover {
	background: var(--soft-beige);
	color: var(--schwarz);
}
.rz-modal-body .eyebrow {
	display: block;
	margin-bottom: 12px;
}
.rezept-lead-title {
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	margin: 0 0 10px;
}
.rezept-lead-text {
	margin: 0 auto 22px;
	max-width: 42em;
	line-height: 1.7;
	color: var(--anthrazit);
}
.rezept-form {
	text-align: left;
	max-width: 460px;
	margin: 0 auto;
}
.rz-row {
	display: flex;
	gap: 14px;
}
.rz-row .rz-field {
	flex: 1;
}
.rz-field {
	display: block;
	margin-bottom: 14px;
}
.rz-field > span {
	display: block;
	margin-bottom: 6px;
	font-family: var(--sans);
	font-size: .74rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--gold-deep);
}
.rz-field > span b {
	color: var(--gold);
}
.rz-field input {
	width: 100%;
	padding: 13px 15px;
	font-family: var(--sans);
	font-size: 1rem;
	color: var(--anthrazit);
	background: var(--weiss);
	border: 1px solid var(--gold-beige);
	border-radius: 4px;
}
.rz-field input:focus {
	outline: none;
	border-color: var(--gold);
	box-shadow: 0 0 0 3px rgba(172, 137, 109, .18);
}
.rz-field input.rz-invalid {
	border-color: #b4534a;
	box-shadow: 0 0 0 3px rgba(180, 83, 74, .15);
}
.rz-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.rz-consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 6px 0 16px;
	font-size: .84rem;
	line-height: 1.55;
	color: var(--gold-deep);
}
.rz-consent input {
	margin-top: 3px;
	flex: 0 0 auto;
	accent-color: var(--gold);
}
.rz-err {
	min-height: 1.2em;
	margin-bottom: 8px;
	font-size: .85rem;
	font-weight: 600;
	color: #b4534a;
}
.rz-modal-body .btn {
	width: 100%;
	text-align: center;
	border: 0;
	cursor: pointer;
}
.rz-privacy {
	margin: 14px 0 0;
	font-size: .76rem;
	line-height: 1.6;
	color: var(--gold-deep);
}
.rz-privacy a {
	color: var(--gold);
	text-decoration: underline;
}
.rezept-lead-success {
	max-width: 460px;
	margin: 0 auto;
}
.rz-success-mark {
	width: 54px;
	height: 54px;
	margin: 0 auto 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.6rem;
	color: var(--weiss);
	background: var(--gold);
	border-radius: 50%;
}
.rz-hint {
	margin: 12px 0 0;
	font-size: .8rem;
	color: var(--gold-deep);
}

/* Verlinktes Rezept (z. B. Sulforaphan) – dezent abgesetzte Karte */
.rezept-card.is-link {
	background: var(--weiss);
	border-style: dashed;
}
.rezept-card.is-link .rezept-card-cta {
	color: var(--gold-deep);
}

@media (max-width: 520px) {
	.rz-row {
		flex-direction: column;
		gap: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rezept-card,
	.rezept-az a {
		transition: none;
	}
}
