/* Hofmanufaktur – Zu Tisch. Farben und Schriften kommen aus den Avada-Globals, mit Rückfallwerten. */

.hzt-seite {
	--hzt-text: var(--awb-color3, #51453e);
	--hzt-primary: var(--awb-color5, #74763b);
	--hzt-primary-dunkel: var(--awb-custom_color_5, #5e602f);
	--hzt-akzent: var(--awb-color4, #d6a047);
	--hzt-hell: var(--awb-color2, #fff9f1);
	--hzt-sand: var(--awb-color7, #f7e6ce);
	--hzt-linie: var(--awb-color8, #e2c39a);
	--hzt-weiss: var(--awb-color1, #ffffff);
	--hzt-schrift-titel: var(--h2_typography-font-family, "Fira Sans", Arial, sans-serif);
	--hzt-radius: 10px;
	color: var(--hzt-text);
	font-size: 18px;
	line-height: 1.6;
	max-width: 1160px;
	margin: 0 auto;
}

.hzt-seite h1, .hzt-seite h2, .hzt-seite h3, .hzt-seite h4 {
	font-family: var(--hzt-schrift-titel);
	color: var(--hzt-text);
	margin: 0 0 .5em;
	line-height: 1.15;
}

.hzt-seite a { color: var(--hzt-primary); }
.hzt-seite a:hover, .hzt-seite a:focus-visible { color: var(--hzt-primary-dunkel); }

/* Einstieg */
.hzt-einstieg { padding: 1.5rem 0 3rem; max-width: 760px; }
.hzt-einstieg__titel { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .6em; }
.hzt-einstieg__text p { font-size: 1.15em; margin: 0 0 1em; }
.hzt-einstieg__aktionen { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 1.5rem; }
.hzt-einstieg__sprung { font-family: var(--hzt-schrift-titel); font-weight: 600; text-decoration: none; }

/* Übersicht */
.hzt-uebersicht { padding: 2rem 0 3rem; scroll-margin-top: 110px; }
.hzt-uebersicht__titel { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 1.2em; }
.hzt-karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
@media (max-width: 1000px) { .hzt-karten { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .hzt-karten { grid-template-columns: 1fr; gap: 1.25rem; } }

.hzt-karte {
	display: flex; flex-direction: column; text-decoration: none; color: inherit;
	background: var(--hzt-weiss); border: 1px solid var(--hzt-linie); border-radius: var(--hzt-radius);
	overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.hzt-karte:hover, .hzt-karte:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(81, 69, 62, .14); color: inherit; }
.hzt-karte .hzt-bild { margin: 0; }
.hzt-karte .hzt-bild img { aspect-ratio: 3 / 2; width: 100%; height: auto; object-fit: cover; display: block; }
.hzt-karte__text { display: flex; flex-direction: column; gap: .25rem; padding: 1.1rem 1.25rem 1.3rem; }
.hzt-karte__nummer { font-family: var(--hzt-schrift-titel); font-size: .85em; letter-spacing: .08em; color: var(--hzt-akzent); font-weight: 600; }
.hzt-karte__titel { font-family: var(--hzt-schrift-titel); font-size: 1.3em; font-weight: 600; line-height: 1.2; }
.hzt-karte__meta { font-size: .9em; opacity: .8; }
.hzt-karte__link { margin-top: .6rem; font-family: var(--hzt-schrift-titel); font-weight: 600; color: var(--hzt-primary); }

/* Bilder */
.hzt-bild { position: relative; margin: 0; }
.hzt-bild img { display: block; width: 100%; height: auto; border-radius: var(--hzt-radius); }
.hzt-karte .hzt-bild img { border-radius: 0; }
.hzt-bild__nachweis {
	position: absolute; right: .6rem; bottom: .6rem; margin: 0;
	font-size: .72rem; line-height: 1; padding: .35rem .55rem; border-radius: 4px;
	background: rgba(0, 0, 0, .55); color: #fff;
}
.hzt-bild--leer { aspect-ratio: 3 / 2; background: var(--hzt-sand); border-radius: var(--hzt-radius); }

/* Rezeptabschnitt */
.hzt-rezept { padding: 3.5rem 0; border-top: 1px solid var(--hzt-linie); scroll-margin-top: 110px; }
.hzt-rezept__kopf { max-width: 820px; margin-bottom: 1.75rem; }
.hzt-rezept__nummer { font-family: var(--hzt-schrift-titel); font-size: .85em; letter-spacing: .1em; text-transform: uppercase; color: var(--hzt-akzent); font-weight: 600; margin: 0 0 .5em; }
.hzt-rezept__titel { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.hzt-rezept__meta { list-style: none; margin: 0 0 1em; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-family: var(--hzt-schrift-titel); font-weight: 500; }
.hzt-rezept__meta li::before { content: "·"; margin-right: .6rem; color: var(--hzt-akzent); }
.hzt-rezept__meta li:first-child::before { content: none; }
.hzt-rezept__teaser { font-size: 1.15em; margin: 0; }
.hzt-rezept > .hzt-bild { margin: 0 0 2.5rem; }

.hzt-rezept__spalten { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 2.5rem 4rem; }
@media (max-width: 820px) { .hzt-rezept__spalten { grid-template-columns: 1fr; gap: 2rem; } }
.hzt-rezept__spalten h3 { font-size: 1.35em; margin-bottom: .8em; }
.hzt-zutaten__gruppe { font-size: 1em; }
/* Abstand vor jeder weiteren Zutatengruppe. Bewusst mit hoher Spezifität: muss .hzt-seite h4 und Theme-Regeln wie .post-content h4 schlagen, unabhängig von der Ladereihenfolge. */
.hzt-seite .hzt-rezept__zutaten .hzt-zutaten + .hzt-zutaten__gruppe { margin-top: 1.75rem; }
.hzt-zutaten { list-style: none; margin: 0; padding: 0; }
.hzt-zutaten li { padding: .45em 0; border-bottom: 1px solid var(--hzt-sand); }
.hzt-schritte { margin: 0; padding-left: 0; list-style: none; counter-reset: schritt; }
.hzt-schritte li { position: relative; padding: 0 0 1em 2.6rem; counter-increment: schritt; }
.hzt-schritte li::before {
	content: counter(schritt); position: absolute; left: 0; top: .05em;
	width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--hzt-sand); color: var(--hzt-text);
	font-family: var(--hzt-schrift-titel); font-weight: 600; font-size: .9em; display: grid; place-items: center;
}
.hzt-rezept__tipp { margin: 1.5rem 0 0; padding: 1rem 1.25rem; background: var(--hzt-hell); border-left: 4px solid var(--hzt-akzent); border-radius: 0 var(--hzt-radius) var(--hzt-radius) 0; }

.hzt-rezept__fuss { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin-top: 2rem; font-size: .95em; }
.hzt-rezept__fuss a { font-family: var(--hzt-schrift-titel); font-weight: 500; }

/* Produktkasten */
.hzt-kasten { margin-top: 2.5rem; padding: 1.75rem; background: var(--hzt-hell); border: 1px solid var(--hzt-linie); border-radius: var(--hzt-radius); }
.hzt-kasten__titel { font-size: 1.35em; margin-bottom: .3em; }
.hzt-kasten__hinweis { margin: 0 0 1.25rem; font-size: .95em; }
.hzt-produkte { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.hzt-produkt {
	display: grid; grid-template-columns: 72px 1fr auto auto; gap: 1rem 1.25rem; align-items: center;
	padding: .9rem 0; border-top: 1px solid var(--hzt-linie);
}
.hzt-produkt:first-child { border-top: 0; padding-top: 0; }
.hzt-produkt__bild img { width: 72px; height: 72px; object-fit: contain; display: block; background: var(--hzt-weiss); border-radius: 6px; }
.hzt-produkt__text { display: flex; flex-direction: column; min-width: 0; }
.hzt-produkt__name { font-family: var(--hzt-schrift-titel); font-weight: 600; text-decoration: none; color: var(--hzt-text); }
.hzt-produkt__name:hover { color: var(--hzt-primary); }
.hzt-produkt__variante { font-size: .9em; opacity: .85; }
.hzt-produkt__status { font-size: .85em; color: #a2412f; font-weight: 600; margin-top: .2em; }
.hzt-produkt__menge { font-family: var(--hzt-schrift-titel); font-weight: 600; white-space: nowrap; }
.hzt-produkt__preis { text-align: right; font-weight: 600; white-space: nowrap; }
.hzt-produkt__preis .woocommerce-Price-amount { font-weight: 600; }
.hzt-produkt__preis ins { text-decoration: none; border: 0; }
.hzt-produkt__preis del { opacity: .6; font-weight: 400; margin-right: .3em; }
.hzt-produkt__preis .wc-gzd-additional-info, .hzt-produkt__preis .price-unit, .hzt-produkt__preis .legal-price-info, .hzt-produkt__preis small {
	display: block; font-size: .75em; font-weight: 400; opacity: .8; white-space: normal;
}
.hzt-produkt--fehlt .hzt-produkt__bild img { filter: grayscale(1); opacity: .6; }
@media (max-width: 560px) {
	.hzt-produkt { grid-template-columns: 56px 1fr; gap: .5rem 1rem; }
	.hzt-produkt__bild img { width: 56px; height: 56px; }
	.hzt-produkt__menge { grid-column: 2; }
	.hzt-produkt__preis { grid-column: 2; text-align: left; }
}

.hzt-form__zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.hzt-form__summe { font-size: .95em; }
.hzt-form__summe small { display: block; font-size: .8em; opacity: .8; }
.hzt-form__meldung { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: 6px; background: var(--hzt-sand); font-size: .95em; }
.hzt-form__meldung--fehler { background: #f9e3dd; color: #7a2e1e; }
.hzt-kasten__fehlt { margin: 0; padding: .9rem 1.1rem; background: var(--hzt-sand); border-radius: 6px; font-size: .95em; }

/* Buttons */
.hzt-button {
	display: inline-block; cursor: pointer; text-decoration: none; text-align: center;
	font-family: var(--hzt-schrift-titel); font-weight: 600; font-size: 1rem; letter-spacing: .02em;
	padding: .95rem 1.6rem; border: 2px solid var(--hzt-primary); border-radius: var(--button_border_radius_top_left, 6px);
	background: var(--hzt-primary); color: #fff; line-height: 1.2;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.hzt-button:hover, .hzt-button:focus-visible { background: var(--hzt-primary-dunkel); border-color: var(--hzt-primary-dunkel); color: #fff; }
.hzt-button:disabled { opacity: .65; cursor: progress; }
.hzt-button--hell { background: transparent; color: var(--hzt-primary); }
.hzt-button--hell:hover, .hzt-button--hell:focus-visible { background: var(--hzt-primary); color: #fff; }

/* Pflegehinweise (nur für angemeldete Redakteure sichtbar) */
.hzt-pflegehinweis { display: block; margin: .5rem 0; padding: .6rem .9rem; background: #fff3cd; color: #6b4e00; border-radius: 6px; font-size: .9em; }

@media (prefers-reduced-motion: reduce) {
	.hzt-karte, .hzt-button { transition: none; }
	.hzt-karte:hover { transform: none; }
}
