/*
Theme Name: Gäuboden Honig
Theme URI: https://honig-straubing.de
Author: Gäuboden Honig Manufaktur
Description: Block-Theme für honig-straubing.de. Hell mit warmem Schwarz und Honiggold, Fraunces und Jost, Produkte im Mittelpunkt.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ghm
*/

/* Farben, Schriften und Abstände stehen in theme.json. Hier nur, was theme.json nicht kann. */

:root {
	--ghm-glow: radial-gradient(closest-side, rgba(236, 194, 123, .34), transparent 75%);
	--ghm-shadow: 0 16px 32px -24px rgba(70, 45, 15, .5), 0 0 0 1px rgba(150, 104, 30, .13);
	--ghm-drop: drop-shadow(0 14px 16px rgba(70, 45, 15, .28));
	--ghm-radius: 18px;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

:where(.wp-site-blocks) > * { margin-block-start: 0; }

:focus-visible {
	outline: 2px solid var(--wp--preset--color--gold-tief);
	outline-offset: 3px;
}

/* ---------- Typografie-Bausteine ---------- */

.is-style-eyebrow {
	display: flex;
	align-items: center;
	gap: .9em;
	color: var(--wp--preset--color--gold-tief);
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .24em;
	text-transform: uppercase;
}
.is-style-eyebrow::before {
	content: "";
	width: 28px;
	height: 1px;
	background: currentColor;
	flex: none;
}
.has-text-align-center.is-style-eyebrow { justify-content: center; }

.is-style-lead {
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--tinte-2);
	max-width: 34em;
}

/* Zweite Zeile in Überschriften: kursiv im Heading → Unterzeile */
:where(h1, h2).wp-block-heading em {
	display: block;
	margin-top: .3em;
	font-size: .52em;
	line-height: 1.2;
	color: var(--wp--preset--color--gold-tief);
}

h1, h2, h3 { text-wrap: balance; }

/* ---------- Dunkle Bereiche (Kopf, Fuß, Termine) ---------- */

.has-nacht-background-color,
.has-nacht-2-background-color {
	color: var(--wp--preset--color--creme);
}
.has-nacht-background-color :where(h1, h2, h3, h4),
.has-nacht-2-background-color :where(h1, h2, h3, h4) { color: var(--wp--preset--color--creme); }
.has-nacht-background-color .is-style-eyebrow,
.has-nacht-2-background-color .is-style-eyebrow,
.has-nacht-background-color :where(h1, h2).wp-block-heading em { color: var(--wp--preset--color--gold); }
.has-nacht-background-color a:where(:not(.wp-element-button)),
.has-nacht-2-background-color a:where(:not(.wp-element-button)) { color: var(--wp--preset--color--gold); }
.has-nacht-background-color .is-style-outline > .wp-block-button__link { color: var(--wp--preset--color--gold); }

/* ---------- Kopf ---------- */

:root { --ghm-strip-h: 2.25rem; }
/* Der Kopf klebt beim Scrollen, die Hinweisleiste scrollt weg (nur der Kopf bleibt stehen, auf dem Handy 52 px). */
header.wp-block-template-part {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--ghm-strip-h));
	z-index: 50;
}
header.wp-block-template-part:not(:has(.ghm-strip)) { top: var(--wp-admin--admin-bar--height, 0px); }
.ghm-strip { min-height: var(--ghm-strip-h); display: flex; align-items: center; justify-content: center; }
.ghm-strip p { margin: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ghm-strip a { color: inherit; text-decoration: none; }
.ghm-strip a:hover { text-decoration: underline; text-underline-offset: 2px; }
.ghm-strip-short { display: none; }
@media (max-width: 640px) {
	.ghm-strip-long { display: none; }
	.ghm-strip-short { display: inline; }
}
.ghm-head { border-bottom: 1px solid rgba(236, 194, 123, .18); }
.ghm-logo { display: block; line-height: 0; }
.ghm-logo img { height: clamp(32px, 3.4vw, 44px); width: auto; }
.ghm-head .wp-block-navigation-item__content {
	color: var(--wp--preset--color--creme-2);
	padding-block: .35em;
	border-bottom: 1.5px solid transparent;
}
.ghm-head .wp-block-navigation-item__content:hover,
.ghm-head .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--creme);
	border-color: var(--wp--preset--color--gold);
}
.ghm-head .wc-block-mini-cart__button {
	color: var(--wp--preset--color--creme);
	border: 1px solid rgba(236, 194, 123, .4);
	border-radius: 999px;
	padding: .55em .75em;
	min-width: 44px;
	min-height: 40px;
	justify-content: center;
}
.ghm-head .wc-block-mini-cart__button:hover { border-color: var(--wp--preset--color--gold); }
/* Anzahl im Knopf neben dem Symbol statt schwebend über dem Rand des Kreises. */
.ghm-head .wc-block-mini-cart__quantity-badge { gap: .4em; }
.ghm-head .wc-block-mini-cart__badge {
	position: static;
	left: auto;
	margin: 0;
	transform: none;
	/* !important: WooCommerce setzt die Badge-Farben per Interactivity-API als Inline-Style. */
	background-color: var(--wp--preset--color--gold) !important;
	color: #2a1d0e !important;
	font-weight: 600;
	font-size: .8125rem;
	line-height: 1;
	min-width: 1.45rem;
	height: 1.45rem;
	padding: 0 .35em;
}
.ghm-head .wc-block-mini-cart__badge:empty { display: none; }
.ghm-head .wc-block-customer-account a,
.ghm-head .wp-block-woocommerce-customer-account a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	color: var(--wp--preset--color--gold);
}
@media (max-width: 781px) {
	.ghm-head > .alignwide { padding-block: .55rem !important; gap: .75rem; }
	.ghm-head > .alignwide > .wp-block-group { gap: .25rem !important; }
	.ghm-logo img { height: 34px; }
}

/* Burger-Menü (Handy): linksbündig, große Zeilen mit feinen Trennlinien */
.wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.25rem max(1.125rem, 4vw) 2rem;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 3rem;
	align-items: stretch;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	width: 100%;
	align-items: stretch !important;
	gap: 0 !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	border-bottom: 1px solid rgba(236, 194, 123, .18);
	align-items: stretch;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 1.75rem;
	padding: .75rem 0;
	width: 100%;
	text-align: left;
	border-bottom: 0;
}
.wp-block-navigation__responsive-container-close,
.wp-block-navigation__responsive-container-open {
	min-width: 44px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.wp-block-navigation__responsive-container-close { color: var(--wp--preset--color--gold); }

/* ---------- Startseite: Hero ---------- */

.ghm-hero {
	position: relative;
	background:
		radial-gradient(55% 75% at 76% 58%, rgba(236, 194, 123, .3), transparent 72%),
		var(--wp--preset--color--honig-weiss);
}
.ghm-trust span { white-space: nowrap; color: var(--wp--preset--color--tinte-3); }
.ghm-trust span::before { content: "✓"; color: var(--wp--preset--color--gold-tief); margin-right: .45em; }
.ghm-trust { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; }

/* ---------- Produktkarten: EIN Stil für Startseite, Shop, „Das passt dazu“ und [products]-Listen ---------- */

:root { --ghm-card-pad: 14px; }

/* Raster der Product Collection (Spalten kommen aus der Klasse columns-N) */
.is-style-cards .wc-block-product-template {
	--ghm-cols: 4;
	display: grid !important;
	grid-template-columns: repeat(var(--ghm-cols), minmax(0, 1fr));
	gap: clamp(.75rem, 1.8vw, 1.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}
.is-style-cards .wc-block-product-template.columns-1 { --ghm-cols: 1; }
.is-style-cards .wc-block-product-template.columns-2 { --ghm-cols: 2; }
.is-style-cards .wc-block-product-template.columns-3 { --ghm-cols: 3; }
.is-style-cards .wc-block-product-template.columns-5 { --ghm-cols: 5; }
.is-style-cards .wc-block-product-template.columns-6 { --ghm-cols: 6; }
.is-style-cards .wc-block-product-template > li.wc-block-product {
	width: auto !important;
	max-width: none;
	margin: 0 !important;
}
@media (max-width: 1000px) {
	.is-style-cards .wc-block-product-template:is(.columns-4, .columns-5, .columns-6) { --ghm-cols: 3; }
	/* genau vier Karten (Waldhonige, „Das passt dazu“): 2 + 2 statt 3 + 1 */
	.is-style-cards .wc-block-product-template:has(> li:nth-child(4):last-child) { --ghm-cols: 2 !important; }
}
@media (max-width: 640px) {
	.is-style-cards .wc-block-product-template:not(.columns-1) { --ghm-cols: 2 !important; gap: .625rem; }
	:root { --ghm-card-pad: 10px; }
}

/* Klassische [products]-Listen aus Inhaltsseiten */
ul.products {
	--ghm-cols: 3;
	display: grid;
	grid-template-columns: repeat(var(--ghm-cols), minmax(0, 1fr));
	gap: clamp(.75rem, 1.8vw, 1.5rem);
	margin: 0 0 var(--wp--preset--spacing--40);
	padding: 0;
	list-style: none;
}
ul.products::before,
ul.products::after { content: none !important; display: none !important; }
ul.products.columns-1 { --ghm-cols: 1; max-width: 18rem; }
ul.products.columns-2 { --ghm-cols: 2; }
ul.products.columns-4 { --ghm-cols: 4; }
@media (max-width: 640px) {
	ul.products:not(.columns-1) { --ghm-cols: 2 !important; gap: .625rem; }
}

/* Die Karte (Block und klassisch) */
.is-style-cards .wc-block-product,
ul.products li.product {
	position: relative;
	container-type: inline-size;
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-rows: auto 1fr auto auto;
	column-gap: .5rem;
	row-gap: .45rem;
	align-content: start;
	min-width: 0;
	background: var(--wp--preset--color--karte);
	border-radius: var(--ghm-radius);
	box-shadow: var(--ghm-shadow);
	padding: var(--ghm-card-pad) var(--ghm-card-pad) calc(var(--ghm-card-pad) + 4px);
	text-align: left;
}
ul.products li.product {
	padding: var(--ghm-card-pad) var(--ghm-card-pad) calc(var(--ghm-card-pad) + 4px) !important;
	float: none !important;
	clear: none !important;
	width: auto !important;
	margin: 0 !important;
}
:where(.is-style-cards .wc-block-product > *, ul.products li.product > *, ul.products li.product > a.woocommerce-LoopProduct-link > *) {
	grid-column: 1 / -1;
	min-width: 0;
	margin-block: 0;
}
ul.products li.product > a.woocommerce-LoopProduct-link { display: contents !important; }

/* Bild, Titel, Preiszeile (Preis + „i“), Knopf */
.is-style-cards .wc-block-product > .wc-block-components-product-image,
ul.products li.product img.attachment-woocommerce_thumbnail { grid-row: 1; }
.is-style-cards .wc-block-product > .wp-block-post-title,
ul.products li.product .woocommerce-loop-product__title { grid-row: 2; align-self: start; }
.is-style-cards .wc-block-product > .wp-block-woocommerce-product-price,
ul.products li.product .price { grid-row: 3; grid-column: 1; align-self: center; }
.is-style-cards .wc-block-product > .ghm-legal,
ul.products li.product > .ghm-legal { grid-row: 3; grid-column: 2; align-self: center; }
.is-style-cards .wc-block-product > .wc-block-components-product-button,
ul.products li.product > a.button { grid-row: 4; margin-top: .35rem; }

.wc-block-product .wc-block-components-product-image,
ul.products li.product img.attachment-woocommerce_thumbnail {
	position: relative;
	margin-bottom: .4rem !important;
	border-radius: 12px;
	overflow: hidden;
}
.wc-block-product .wc-block-components-product-image img,
ul.products li.product img.attachment-woocommerce_thumbnail {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition: transform .35s ease;
}
.wc-block-product:hover .wc-block-components-product-image img,
ul.products li.product:hover img.attachment-woocommerce_thumbnail { transform: scale(1.03); }
ul.products li.product img.attachment-woocommerce_thumbnail { box-shadow: none; }

.wc-block-product .wp-block-post-title,
ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--wp--preset--font-family--fraunces);
	font-weight: 500;
	font-size: var(--wp--preset--font-size--large) !important;
	line-height: 1.15;
	letter-spacing: -.005em;
	padding: 0 !important;
	margin: 0;
	hyphens: auto;
	-webkit-hyphens: auto;
	overflow-wrap: break-word;
	text-wrap: wrap;
}
.wc-block-product .wp-block-post-title a,
ul.products li.product .woocommerce-loop-product__title { color: var(--wp--preset--color--tinte); text-decoration: none; }
@media (max-width: 640px) {
	.wc-block-product .wp-block-post-title,
	ul.products li.product .woocommerce-loop-product__title { font-size: 1rem !important; }
}

/* Preis: einzeilig, Streichpreis grau, „ab“ leise */
.wc-block-product .wc-block-components-product-price,
ul.products li.product .price {
	font-size: 1.05rem;
	font-weight: 500;
	color: var(--wp--preset--color--gold-tief);
	white-space: nowrap;
	display: block;
}
.wc-block-product .wc-block-components-product-price del,
ul.products li.product .price del { color: var(--wp--preset--color--tinte-3); font-weight: 400; margin-right: .3em; opacity: 1; }
.wc-block-product .wc-block-components-product-price ins,
ul.products li.product .price ins { text-decoration: none; background: none; font-weight: 500; }
.ghm-price-from { font-size: .8em; font-weight: 400; color: var(--wp--preset--color--tinte-3); margin-right: .1em; }
.ghm-price-on-request { color: var(--wp--preset--color--tinte-2); font-size: .95rem; }
@media (max-width: 640px) {
	.wc-block-product .wc-block-components-product-price,
	ul.products li.product .price { font-size: .95rem; }
}

/* Knopf: volle Kartenbreite, einzeilig */
.wc-block-product .wc-block-components-product-button {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: .3rem;
	margin: 0;
	text-align: center;
}
.wc-block-product .wc-block-components-product-button .wp-block-button__link,
ul.products li.product a.button {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: .7em .75em;
	font-size: .85rem;
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: .02em;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--gold);
	color: #2a1d0e;
}
.wc-block-product .wc-block-components-product-button .wp-block-button__link:hover,
ul.products li.product a.button:hover { background: #f4d498; color: #2a1d0e; }
@media (max-width: 640px) {
	.wc-block-product .wc-block-components-product-button .wp-block-button__link,
	ul.products li.product a.button { font-size: .8rem; padding-inline: .4em; }
}
/* Nach dem Einlegen erscheint „Warenkorb anzeigen“ unter dem Knopf */
.wc-block-product .wc-block-components-product-button .added_to_cart,
ul.products li.product a.added_to_cart {
	display: block;
	grid-row: 5;
	margin: 0;
	padding: .15rem 0;
	font-size: .8rem;
	font-weight: 500;
	text-align: center;
	color: var(--wp--preset--color--gold-tief);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.wc-block-product .wc-block-components-product-button span[hidden] { display: none; }

/* Angebot-Plakette: kleine Pille oben rechts im Bild (nicht der grüne Kreis von Woo) */
.wc-block-product .wc-block-components-product-sale-badge,
ul.products li.product .onsale {
	position: absolute;
	top: 10px; right: 10px; left: auto; bottom: auto;
	z-index: 2;
	min-width: 0; min-height: 0; width: auto; height: auto;
	margin: 0;
	padding: .4em .8em;
	background: var(--wp--preset--color--gold);
	color: #2a1d0e;
	border: 0;
	border-radius: 999px;
	box-shadow: 0 2px 8px -2px rgba(70, 45, 15, .35);
	font-size: .7rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .1em;
	text-transform: uppercase;
}
ul.products li.product .onsale { top: calc(var(--ghm-card-pad) + 10px); right: calc(var(--ghm-card-pad) + 10px); }

/* Preisangaben-„i“ (Markup und Wortlaut vom mu-Plugin ghm-shop / Germanized): Popover ist so breit wie die Karte */
.ghm-legal { position: relative; display: inline-flex; align-items: center; }
.ghm-legal-btn {
	position: relative;
	display: inline-flex; align-items: center; justify-content: center;
	width: 24px; height: 24px; padding: 0;
	border: 1px solid rgba(135, 90, 18, .45);
	border-radius: 50%;
	background: transparent;
	color: var(--wp--preset--color--gold-tief);
	font: italic 600 .8rem/1 var(--wp--preset--font-family--fraunces);
	cursor: help;
}
.ghm-legal-btn::before { content: ""; position: absolute; inset: -10px; }
.ghm-legal-btn:hover,
.ghm-legal-btn:focus-visible { background: var(--wp--preset--color--sand); border-color: var(--wp--preset--color--gold-tief); }
.ghm-legal-pop {
	position: absolute; right: calc(-1 * var(--ghm-card-pad)); bottom: calc(100% + 10px); z-index: 30;
	width: min(240px, 100cqw, 80vw);
	padding: .8rem .95rem;
	border-radius: 12px;
	background: var(--wp--preset--color--nacht);
	color: var(--wp--preset--color--creme);
	font-size: .8rem; font-weight: 400; line-height: 1.5; text-align: left; white-space: normal;
	box-shadow: 0 12px 28px -10px rgba(28, 23, 19, .6);
	opacity: 0; pointer-events: none; clip-path: inset(50%);
	transition: opacity .18s ease;
}
.ghm-legal-pop::after {
	content: ""; position: absolute; right: calc(var(--ghm-card-pad) + 6px); top: 100%;
	border: 6px solid transparent; border-top-color: var(--wp--preset--color--nacht);
}
.ghm-legal:hover .ghm-legal-pop,
.ghm-legal:focus-within .ghm-legal-pop { opacity: 1; pointer-events: auto; clip-path: none; }
.ghm-legal-pop p { margin: 0 0 .3rem; color: inherit; font-size: inherit; }
.ghm-legal-pop p:last-child { margin-bottom: 0; }
.ghm-legal-pop a { color: var(--wp--preset--color--gold) !important; text-decoration: underline; }

/* Hero: drei Saison-Produkte. Auf dem Handy eine Wischreihe (ca. 1,6 Karten sichtbar). */
.ghm-shelf-label { font-family: var(--wp--preset--font-family--fraunces); font-style: italic; color: var(--wp--preset--color--gold-tief); font-size: 1.3rem; margin-bottom: .5rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.ghm-swipe-hint { display: none; font-family: var(--wp--preset--font-family--jost); font-style: normal; font-size: .8rem; letter-spacing: .04em; color: var(--wp--preset--color--tinte-3); white-space: nowrap; }
@media (min-width: 782px) and (max-width: 1040px) {
	/* Tablet: Hero zweispaltig, die drei Karten würden zu schmal. Wischreihe mit festen Kartenbreiten. */
	.ghm-swipe-hint { display: inline; }
	.ghm-shelf .wc-block-product-template {
		display: flex !important;
		gap: .75rem;
		margin-right: calc(-1 * max(1.125rem, 4vw));
		padding: 4px max(1.125rem, 4vw) 22px 4px;
		margin-left: -4px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}
	.ghm-shelf .wc-block-product-template::-webkit-scrollbar { display: none; }
	.ghm-shelf .wc-block-product-template > li.wc-block-product { flex: 0 0 11.5rem; scroll-snap-align: start; }
}
@media (max-width: 640px) {
	.ghm-swipe-hint { display: inline; }
	.ghm-shelf-label { font-size: 1.1rem; }
	.ghm-shelf .wc-block-product-template {
		display: flex !important;
		gap: .75rem;
		margin-inline: calc(-1 * max(1.125rem, 4vw));
		padding: 4px max(1.125rem, 4vw) 22px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: max(1.125rem, 4vw);
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.ghm-shelf .wc-block-product-template::-webkit-scrollbar { display: none; }
	.ghm-shelf .wc-block-product-template > li.wc-block-product {
		flex: 0 0 62%;
		scroll-snap-align: start;
	}
}

/* ---------- Sorten-Kacheln ---------- */

.ghm-tile {
	background: var(--wp--preset--color--karte);
	border-radius: var(--ghm-radius);
	box-shadow: var(--ghm-shadow);
	padding: 1.1rem .6rem 1.2rem;
	text-align: center;
	gap: .35rem !important;
	transition: transform .25s ease;
}
.ghm-tile:hover { transform: translateY(-3px); }
.ghm-tile .wp-block-image {
	margin: 0;
	width: 100%;
	height: clamp(110px, 11vw, 150px);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	background: var(--ghm-glow);
}
.ghm-tile .wp-block-image img {
	max-height: 100%;
	width: auto;
	object-fit: contain;
	filter: var(--ghm-drop);
}
.ghm-tile h3 { font-size: var(--wp--preset--font-size--large); margin: .3rem 0 0; }
.ghm-tile h3 a { color: inherit; text-decoration: none; }
.ghm-tile h3 a::after { content: ""; position: absolute; inset: 0; }
.ghm-tile { position: relative; }
.ghm-tile p { margin: 0; color: var(--wp--preset--color--tinte-3); }

/* ---------- Feature, Bänder, Bilder ---------- */

.is-style-card {
	background: var(--wp--preset--color--karte);
	border-radius: 24px;
	box-shadow: var(--ghm-shadow);
	overflow: hidden;
}
.is-style-rounded-soft img { border-radius: var(--ghm-radius); }

/* Straubinger Gold: Bild füllt die ganze linke Spalte, Text links, Preis + „i“ in einer Zeile, Knopf darunter */
.ghm-feature .wp-block-columns { align-items: stretch !important; margin: 0; }
.ghm-feature .wp-block-column:first-child { position: relative; aspect-ratio: 4 / 3; }
.ghm-feature .wp-block-woocommerce-product-image,
.ghm-feature .wc-block-components-product-image { position: absolute; inset: 0; margin: 0; }
.ghm-feature .wc-block-components-product-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
	object-fit: cover;
	object-position: center 85%; /* Quadratisches Foto im 4:3-Ausschnitt: unten verankert, damit das Glas ganz zu sehen ist */
}
.ghm-feature .wp-block-column:last-child {
	display: grid;
	grid-template-columns: auto 1fr;
	align-content: center;
	align-items: center;
	justify-items: start;
	column-gap: .6rem;
	row-gap: var(--wp--preset--spacing--30);
	text-align: left;
}
.ghm-feature .wp-block-column:last-child > * { grid-column: 1 / -1; margin: 0; max-width: 100%; }
.ghm-feature .wp-block-column:last-child > .wp-block-woocommerce-product-price { grid-column: 1; }
.ghm-feature .wp-block-column:last-child > .ghm-legal { grid-column: 2; }
.ghm-feature .wp-block-column:last-child > .wc-block-components-product-button { justify-self: start; text-align: left; }
.ghm-feature .wc-block-components-product-button { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; margin: 0; }
.ghm-feature .wc-block-components-product-button .wp-block-button__link { white-space: nowrap; }
.ghm-feature .wp-block-post-title { font-size: var(--wp--preset--font-size--xx-large); margin: 0; }
.ghm-feature .wp-block-post-title a { color: inherit; text-decoration: none; }
.ghm-feature .wc-block-components-product-price { font-size: 1.5rem; font-weight: 500; color: var(--wp--preset--color--gold-tief); }
.ghm-feature .added_to_cart { font-size: .85rem; color: var(--wp--preset--color--gold-tief); }
@media (min-width: 782px) {
	.ghm-feature .wp-block-column:first-child { aspect-ratio: auto; min-height: 320px; }
}
@media (max-width: 781px) {
	.ghm-feature .wp-block-column:last-child { padding: var(--wp--preset--spacing--40) !important; }
	.ghm-feature .wc-block-components-product-button .wp-block-button__link { width: 100%; justify-content: center; }
	.ghm-feature .wc-block-components-product-button { align-self: stretch; width: 100%; }
}

.ghm-teaser-pics { gap: 14px !important; align-items: flex-end !important; }
.ghm-teaser-pics .wp-block-image { margin: 0; }
.ghm-teaser-pics .wp-block-image img { border-radius: var(--ghm-radius); width: 100%; object-fit: cover; }
.ghm-teaser-pics .wp-block-column:first-child img { aspect-ratio: 4 / 5; }
.ghm-teaser-pics .wp-block-column:last-child img { aspect-ratio: 3 / 4; object-position: center 15%; }
.ghm-hello {
	font-family: var(--wp--preset--font-family--fraunces);
	font-style: italic;
	font-size: 1.6rem;
	color: var(--wp--preset--color--gold-tief);
	margin: 0;
}
.ghm-more a,
a.ghm-more {
	font-weight: 500;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
}
/* Startseite, unter den Waldhonigen: Hinweis auf die Seite Essenz des Waldes */
.ghm-essenz-hinweis { margin-top: var(--wp--preset--spacing--40); color: var(--wp--preset--color--tinte-2); }

/* ---------- Termine (Shortcode ghm_events auf dunklem Grund) ---------- */

.ghm-termine .ghm-events { margin-top: 0; }
.ghm-termine a { color: var(--wp--preset--color--gold); }
/* Termine und Fuß sind beide dunkel: feine Trennlinie statt einer riesigen schwarzen Fläche */
.ghm-termine { border-bottom: 1px solid rgba(236, 194, 123, .22); }

/* ---------- Fuß ---------- */

.ghm-foot { font-size: .95rem; color: var(--wp--preset--color--creme-2); }
.ghm-foot a:where(:not(.wp-element-button, .wp-block-social-link-anchor)) { color: var(--wp--preset--color--creme-2) !important; text-decoration: none; }
.ghm-foot a:where(:not(.wp-element-button, .wp-block-social-link-anchor)):hover { color: var(--wp--preset--color--gold) !important; }
.ghm-foot .ghm-foot-h {
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--creme);
	margin-bottom: .6rem;
}
.ghm-foot ul:not(.wp-block-social-links) { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.ghm-foot-legal { border-top: 1px solid rgba(236, 194, 123, .18); color: #a39682; }
.ghm-seal img { width: 84px; height: auto; }
.ghm-foot .ghm-foot-address { margin-block: 1rem 1.25rem; }

/* Instagram und Facebook als Symbole (Creme/Gold, sichtbarer Fokus) */
.ghm-foot .ghm-social { gap: .6rem; margin: 0; }
.ghm-foot .ghm-social .wp-social-link { background: none; margin: 0; }
.ghm-foot .ghm-social .wp-block-social-link-anchor {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(236, 194, 123, .4);
	border-radius: 50%;
	color: var(--wp--preset--color--gold);
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.ghm-foot .ghm-social .wp-block-social-link-anchor svg { width: 22px; height: 22px; fill: currentColor; }
.ghm-foot .ghm-social .wp-block-social-link-anchor:hover { background: rgba(236, 194, 123, .12); border-color: var(--wp--preset--color--gold); color: var(--wp--preset--color--creme); }
.ghm-foot .ghm-social .wp-block-social-link-anchor:focus-visible { outline: 2px solid var(--wp--preset--color--gold); outline-offset: 3px; }

/* Fuß auf dem Handy: Link-Spalten zu zweit nebeneinander statt alle untereinander */
@media (max-width: 781px) {
	.ghm-foot .wp-block-columns:not(.is-not-stacked-on-mobile) { flex-wrap: wrap !important; gap: 1.5rem 1rem !important; }
	.ghm-foot .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column:not(:first-child) { flex-basis: calc(50% - .5rem) !important; flex-grow: 0; }
	.ghm-foot .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column:first-child { flex-basis: 100% !important; }
}

/* ---------- Inhaltsseiten (alter Gutenberg-Inhalt, Rechtstexte) ---------- */

.wp-block-post-title,
.wp-block-query-title,
.wp-block-post-content :where(h1, h2, h3, h4, h5, h6) {
	overflow-wrap: break-word;
	hyphens: auto;
	-webkit-hyphens: auto;
}
.wp-block-post-content { overflow-wrap: break-word; }
.wp-block-post-content a { overflow-wrap: anywhere; }
.wp-block-post-content :where(h2) { margin-block: clamp(2rem, 4vw, 3rem) .6rem; }
.wp-block-post-content :where(h3) { margin-block: clamp(1.5rem, 3vw, 2rem) .5rem; }
.wp-block-post-content :where(h4, h5, h6) { margin-block: 1.5rem .4rem; }
.wp-block-post-content > :where(h1, h2, h3, h4):first-child { margin-top: 0; }
.wp-block-post-content :where(h2, h3, h4) a { color: inherit; text-decoration-color: var(--wp--preset--color--gold); text-decoration-thickness: 1px; text-underline-offset: .18em; }
.wp-block-post-content :where(h2, h3, h4) a:hover { color: var(--wp--preset--color--gold-tief); }
.wp-block-post-content :where(ul, ol) { padding-inline-start: 1.3em; }
.wp-block-post-content :where(li + li) { margin-top: .4em; }
.wp-block-post-content li::marker { color: var(--wp--preset--color--gold-tief); }
.wp-block-post-content img { max-width: 100%; height: auto; }
.wp-block-post-content .wp-block-image img,
.wp-block-post-content .wp-block-gallery img,
.wp-block-post-content .wp-block-media-text__media img { border-radius: var(--ghm-radius); }
.wp-block-post-content figure { margin-inline: 0; }
.wp-block-post-content .wp-block-image { margin-block: var(--wp--preset--spacing--40); }
.wp-block-post-content .wp-block-image.aligncenter { text-align: center; }
.wp-block-post-content .wp-block-gallery { margin-block: var(--wp--preset--spacing--40); gap: .75rem; }
.wp-block-post-content .wp-block-media-text { gap: var(--wp--preset--spacing--40); margin-block: var(--wp--preset--spacing--40); }
.wp-block-post-content .wp-block-media-text__content { padding: 0; }
.wp-block-post-content .wp-block-separator {
	border: 0;
	border-top: 1px solid rgba(135, 90, 18, .25);
	margin-block: var(--wp--preset--spacing--50);
	width: 100%;
	max-width: none;
}
.wp-block-post-content blockquote {
	margin-inline: 0;
	padding: .25rem 0 .25rem 1.25rem;
	border-left: 2px solid var(--wp--preset--color--gold);
	color: var(--wp--preset--color--tinte-2);
}
.wp-block-post-content .wp-block-table,
.wp-block-post-content .wp-block-table figure { overflow-x: auto; max-width: 100%; }
.wp-block-post-content table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.wp-block-post-content :where(td, th) { padding: .55em .75em; border: 1px solid rgba(135, 90, 18, .22); text-align: left; vertical-align: top; }
.wp-block-post-content th { background: var(--wp--preset--color--sand); font-weight: 600; }
.wp-block-post-content :where(pre, code) { overflow-x: auto; max-width: 100%; }
/* Eingebettete Listen ([products]) und Formulare ordentlich einrücken */
.wp-block-post-content .woocommerce { margin-block: var(--wp--preset--spacing--40); }

/* ---------- WooCommerce: Hinweise, Warenkorb, Kasse, Mini-Warenkorb ---------- */

/* Hinweise im Farbton des Themes (statt grüner Kästen) */
.wc-block-components-notice-banner {
	background: var(--wp--preset--color--karte);
	border: 1px solid rgba(135, 90, 18, .3);
	border-radius: 12px;
	color: var(--wp--preset--color--tinte);
	font-size: .95rem;
}
.wc-block-components-notice-banner.is-success,
.wc-block-components-notice-banner.is-info {
	background: var(--wp--preset--color--karte);
	border-color: rgba(135, 90, 18, .35);
}
.wc-block-components-notice-banner.is-success > svg,
.wc-block-components-notice-banner.is-info > svg { background: var(--wp--preset--color--gold-tief); fill: #fff; }
.wc-block-components-notice-banner.is-warning { background: #fbf3df; border-color: rgba(135, 90, 18, .45); }
.wc-block-components-notice-banner.is-warning > svg { background: var(--wp--preset--color--gold-tief); fill: #fff; }
.wc-block-components-notice-banner a { color: var(--wp--preset--color--gold-tief); }
.wc-block-components-notice-banner .wc-block-components-button { color: var(--wp--preset--color--gold-tief); }
.woocommerce-message,
.woocommerce-info {
	background: var(--wp--preset--color--karte);
	border: 1px solid rgba(135, 90, 18, .3);
	border-top: 3px solid var(--wp--preset--color--gold);
	border-radius: 12px;
	color: var(--wp--preset--color--tinte);
	padding: 1rem 1.25rem 1rem 3.25rem;
	margin: 0 0 1.5rem;
}
.woocommerce-message::before,
.woocommerce-info::before { color: var(--wp--preset--color--gold-tief); }
.woocommerce-error {
	background: #fdf1ee;
	border: 1px solid rgba(160, 50, 30, .35);
	border-top: 3px solid #b3402a;
	border-radius: 12px;
	color: var(--wp--preset--color--tinte);
}
.woocommerce-message a.button,
.woocommerce-info a.button { background: var(--wp--preset--color--gold); color: #2a1d0e; border-radius: 999px; }

/* Warenkorb, Kasse, Mini-Warenkorb: die lange Kurzbeschreibung unter dem Artikel entfällt, die Lieferzeit bleibt */
.wc-block-components-product-metadata__description { display: none !important; }
.wc-block-cart-items .wc-block-components-product-name,
.wc-block-components-order-summary-item__description .wc-block-components-product-name,
.wc-block-mini-cart__items .wc-block-components-product-name { color: var(--wp--preset--color--tinte); font-weight: 500; text-decoration-color: var(--wp--preset--color--gold); }
.wc-block-components-product-metadata .wc-gzd-additional-info,
.wc-block-components-product-metadata .delivery-time-info { color: var(--wp--preset--color--tinte-3); font-size: .85rem; }
.wp-block-woocommerce-cart h1,
.wp-block-woocommerce-checkout h1 { margin: 0; }
.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	border-radius: 999px;
	font-weight: 500;
}
.wc-block-components-button:not(.is-link):focus-visible { outline: 2px solid var(--wp--preset--color--gold-tief); outline-offset: 3px; }
.wp-block-woocommerce-mini-cart-contents { background: var(--wp--preset--color--honig-weiss); }
.wc-block-mini-cart__footer .wc-block-components-button.outlined,
.wc-block-mini-cart__footer-cart.wc-block-components-button { border-color: var(--wp--preset--color--tinte); color: var(--wp--preset--color--tinte); }
.wc-block-mini-cart__footer-checkout.wc-block-components-button { background: var(--wp--preset--color--gold); color: #2a1d0e; }
.wc-block-mini-cart__title,
.wc-block-mini-cart__title .wc-block-mini-cart__title-text { font-family: var(--wp--preset--font-family--fraunces); font-weight: 400; }

/* Suchergebnisse (templates/search.html) */
.ghm-suche .wp-block-query-title { margin-bottom: var(--wp--preset--spacing--50); }
.ghm-suche .wp-block-post-title { margin: 0 0 .35rem; }
.ghm-suche .wp-block-post-excerpt { margin: 0; color: var(--wp--preset--color--tinte-2); }
.ghm-suche .wp-block-query-pagination { margin-top: var(--wp--preset--spacing--50); gap: 1rem; }

/* Mini-Warenkorb-Schublade: gleitet von rechts herein und darf die Seite nie seitlich überlaufen lassen */
html { overflow-x: clip; }
.wc-block-components-drawer__screen-overlay { overflow: hidden; }

/* Kasse-Kopf: schlicht, nur Logo */
.ghm-checkout-head { border-bottom: 1px solid rgba(236, 194, 123, .18); }
.ghm-checkout-head .wc-block-cart-link__text,
.ghm-checkout-head .wc-block-cart-link { color: var(--wp--preset--color--gold); }

/* ---------- Inhaltsseiten: Übernahme aus dem früheren mu-Plugin ghm-content (dort abgeschaltet) ---------- */

/* Einleitungsabsatz unter der Seitenüberschrift (Klasse ghm-lead im alten Seiteninhalt) */
.wp-block-post-content .ghm-lead {
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--tinte-2);
	max-width: 34em;
	margin-bottom: var(--wp--preset--spacing--40);
}
/* Galerien im Seiteninhalt: gleiche Kachelhöhe, auch bei gemischten Bildformaten */
.wp-block-post-content .wp-block-gallery.has-nested-images figure.wp-block-image { align-self: stretch; }
.wp-block-post-content .wp-block-gallery.has-nested-images figure.wp-block-image img {
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
/* Bild und Text: gestapelt braucht das Bild Abstand zum Text */
@media (max-width: 781px) {
	.wp-block-post-content .wp-block-gallery.has-nested-images figure.wp-block-image img { aspect-ratio: 3 / 2; }
	.wp-block-post-content .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media { margin-bottom: var(--wp--preset--spacing--30); }
}
.wp-block-post-content .wp-block-media-text__content > :first-child { margin-top: 0; }
.wp-block-post-content .wp-block-media-text__content > :last-child { margin-bottom: 0; }

/* ---------- Fokus auf dunklem Grund: goldener Ring (Kopf, Fuß, Termine, Geschmacksprofil, Menü) ---------- */

.has-nacht-background-color :focus-visible,
.has-nacht-2-background-color :focus-visible,
.ghm-termine :focus-visible,
.wp-block-navigation__responsive-container.is-menu-open :focus-visible {
	outline-color: var(--wp--preset--color--gold);
}

/* ---------- Kontrast: kleiner Text auf Wachs und Sand mindestens 4,5:1 ---------- */

.has-wachs-background-color .is-style-eyebrow,
.has-wachs-background-color .has-gold-tief-color { color: #6e4a0e; }
:is(.has-wachs-background-color, .has-sand-background-color) .has-tinte-3-color { color: var(--wp--preset--color--tinte-2) !important; }

/* Preishinweis (Muster ghm/shop-hinweis) unter Produktrastern */
.ghm-shop-fine p { margin: 0; }
.ghm-shop-fine a { color: inherit; }

/* ---------- Preisangaben-„i“: per Tippen/Klick öffnen (Skript assets/js/legal.js) ---------- */

.ghm-legal.is-open .ghm-legal-pop { opacity: 1; pointer-events: auto; clip-path: none; }
.ghm-legal.is-open .ghm-legal-btn { background: var(--wp--preset--color--sand); border-color: var(--wp--preset--color--gold-tief); }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}

/* ---------- Google-Bewertungen (Startseite) ---------- */
.ghm-bewertungen__schnitt {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .2em .5em;
	margin: 0;
	color: var(--wp--preset--color--tinte-2);
}
.ghm-bewertungen__schnitt strong { color: var(--wp--preset--color--tinte); font-weight: 600; }
.ghm-sterne { color: var(--wp--preset--color--gold-tief); letter-spacing: .08em; font-size: 1.1rem; }
/* Slider: drei Karten nebeneinander, Tablet zwei, Handy eine mit Anschnitt der nächsten. */
.ghm-bewertungen__liste {
	--ghm-bew-gap: clamp(1rem, 2vw, 1.5rem);
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 2 * var(--ghm-bew-gap)) / 3);
	gap: var(--ghm-bew-gap);
	align-items: stretch;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	/* Platz für den Kartenschatten, sonst schneidet overflow ihn ab. */
	padding: 6px 6px 30px;
	margin-inline: -6px;
	margin-bottom: -24px;
	scroll-padding-inline: 6px;
}
.ghm-bewertungen__liste > .ghm-bewertung { scroll-snap-align: start; min-width: 0; }
.ghm-bewertungen__liste.is-karussell { scrollbar-width: none; }
.ghm-bewertungen__liste.is-karussell::-webkit-scrollbar { display: none; }
.ghm-bewertungen__liste:focus-visible { outline: 2px solid var(--wp--preset--color--gold-tief); outline-offset: 2px; border-radius: 20px; }
@media (max-width: 1000px) {
	.ghm-bewertungen__liste { grid-auto-columns: calc((100% - var(--ghm-bew-gap)) / 2); }
}
@media (max-width: 640px) {
	.ghm-bewertungen__liste { grid-auto-columns: 86%; }
}
.ghm-karussell-nav { display: flex; align-items: center; gap: .75rem; }
.ghm-karussell-nav[hidden] { display: none; }
.ghm-karussell-nav__knopf {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 999px;
	border: 1px solid rgba(135, 90, 18, .35);
	background: var(--wp--preset--color--karte);
	color: var(--wp--preset--color--gold-tief);
	cursor: pointer;
	transition: border-color .15s, background-color .15s;
}
.ghm-karussell-nav__knopf:hover:not(:disabled) { border-color: var(--wp--preset--color--gold-tief); background: var(--wp--preset--color--wachs); }
.ghm-karussell-nav__knopf:focus-visible { outline: 2px solid var(--wp--preset--color--gold-tief); outline-offset: 3px; }
.ghm-karussell-nav__knopf:disabled { opacity: .35; cursor: default; }
.ghm-karussell-nav__stand { min-width: 5.5em; text-align: center; font-size: .875rem; color: var(--wp--preset--color--tinte-2); font-variant-numeric: tabular-nums; }
.wp-block-quote.ghm-bewertung {
	margin: 0;
	padding: clamp(1.25rem, 2.4vw, 1.75rem);
	border: 0;
	border-radius: 18px;
	background: var(--wp--preset--color--karte);
	box-shadow: var(--wp--preset--shadow--karte);
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.wp-block-quote.ghm-bewertung::before {
	content: "“";
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 3rem;
	line-height: .6;
	height: .9rem;
	color: var(--wp--preset--color--gold);
}
.wp-block-quote.ghm-bewertung p {
	margin: 0;
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: clamp(1.05rem, 1.2vw, 1.15rem);
	line-height: 1.45;
	color: var(--wp--preset--color--tinte);
}
.wp-block-quote.ghm-bewertung cite {
	margin-top: auto;
	font-style: normal;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--tinte-3);
}
.ghm-bewertungen__fuss { gap: 1rem 1.5rem; }
.ghm-bewertungen__fuss .ghm-bewertungen__hinweis { flex: 1 1 22rem; }
.ghm-bewertungen__hinweis {
	margin: 0;
	max-width: 46rem;
	font-size: .8125rem;
	color: var(--wp--preset--color--tinte-3);
}

/* Grundpreis in Karten direkt unter dem Preis; Germanizeds eigene Zeilen unter dem Knopf entfallen. */
.ghm-grundpreis {
	display: block;
	margin-top: .15rem;
	font-size: .75rem;
	font-weight: 400;
	letter-spacing: 0;
	color: var(--wp--preset--color--tinte-3);
}
/* In allen Übersichten (Shop, Kategorien, Startseite, „Das passt dazu“) kein Grundpreis und kein „Produkt enthält“;
   beides steht auf der Produktseite (Kilian 2026-12-02). */
.wc-gzd-additional-info-loop.price-unit,
.wc-gzd-additional-info-loop.product-units-wrapper,
.wc-gzd-additional-info-loop.product-units { display: none !important; }

/* ---------- Mini-Warenkorb (Seitenleiste) ---------- */
.wc-block-mini-cart__drawer .components-modal__content,
.wc-block-mini-cart__drawer .wc-block-components-drawer__content { background: var(--wp--preset--color--honig-weiss); }
@media (min-width: 600px) {
	.wc-block-mini-cart__drawer.wc-block-components-drawer { width: min(440px, 100vw); }
}
.wc-block-mini-cart__drawer .wc-block-mini-cart__title {
	margin: 0;
	padding: 1.35rem 3.5rem 1.15rem 1.5rem;
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.15;
	border-bottom: 1px solid var(--ghm-linie, rgba(150, 104, 30, .18));
	mask-image: none;
}
.wc-block-mini-cart__drawer .wp-block-woocommerce-mini-cart-title-items-counter-block { display: none; }
.wc-block-mini-cart__drawer .wc-block-components-drawer__close-wrapper .wc-block-components-drawer__close {
	top: 1.1rem;
	right: 1rem;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	color: var(--wp--preset--color--tinte);
}
.wc-block-mini-cart__drawer .wc-block-components-drawer__close:hover { background: var(--wp--preset--color--sand); }
.wc-block-mini-cart__drawer .wc-block-mini-cart__items { padding: 0 1.5rem; }
.wc-block-mini-cart__drawer .wc-block-mini-cart__products-table { margin-bottom: 0; }
/* Artikel: Bild, Name, Menge; der Gesamtpreis rechts. Germanized-Zeilen (Grundpreis, Inhalt, Lieferzeit)
   stehen auf Produktseite und an der Kasse, hier nicht. */
.wc-block-mini-cart__drawer .wc-block-cart-items__row {
	padding: 1.1rem 0 !important;
	border-bottom: 1px solid var(--ghm-linie, rgba(150, 104, 30, .18));
	grid-template-columns: 76px 1fr auto;
	column-gap: 1rem;
}
.wc-block-mini-cart__drawer .wc-block-cart-item__image { padding-right: 0; }
.wc-block-mini-cart__drawer .wc-block-cart-item__image img {
	width: 76px;
	height: 76px;
	object-fit: cover;
	border-radius: 14px;
	box-shadow: 0 0 0 1px rgba(150, 104, 30, .14);
}
.wc-block-mini-cart__drawer .wc-block-components-product-name {
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 1.1rem;
	font-weight: 400;
	line-height: 1.25;
	text-decoration: none;
}
.wc-block-mini-cart__drawer .wc-block-components-product-name:hover { color: var(--wp--preset--color--gold-tief); }
.wc-block-mini-cart__drawer .wc-block-cart-item__prices,
.wc-block-mini-cart__drawer .wc-block-components-product-details { display: none !important; }
.wc-block-mini-cart__drawer .wc-block-cart-item__total { font-weight: 500; color: var(--wp--preset--color--tinte); }
.wc-block-mini-cart__drawer .wc-block-cart-item__quantity { margin-top: .6rem; display: flex; align-items: center; gap: .5rem; }
.wc-block-mini-cart__drawer .wc-block-components-quantity-selector {
	width: 7.25rem;
	border-radius: 999px;
	border: 1px solid rgba(135, 90, 18, .35);
	background: var(--wp--preset--color--karte);
	overflow: hidden;
}
.wc-block-mini-cart__drawer .wc-block-components-quantity-selector::after { display: none; }
.wc-block-mini-cart__drawer .wc-block-components-quantity-selector__input { font-weight: 500; background: transparent; }
.wc-block-mini-cart__drawer .wc-block-components-quantity-selector__button { color: var(--wp--preset--color--gold-tief); opacity: 1; }
.wc-block-mini-cart__drawer .wc-block-cart-item__remove-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	color: var(--wp--preset--color--tinte-3) !important;
}
.wc-block-mini-cart__drawer .wc-block-cart-item__remove-link:hover { background: var(--wp--preset--color--sand); color: var(--wp--preset--color--tinte) !important; }
/* Vertrauens-Hinweise unter den Artikeln */
.ghm-minicart-vorteile { margin: 1.25rem 0 1.5rem; padding: 1rem 1.1rem; border-radius: 16px; background: var(--wp--preset--color--sand); }
.ghm-minicart-vorteile__liste { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; font-size: .875rem; color: var(--wp--preset--color--tinte-2); }
.ghm-minicart-vorteile__liste li { position: relative; padding-left: 1.5rem; }
.ghm-minicart-vorteile__liste li::before {
	content: "";
	position: absolute;
	left: .1rem;
	top: .35em;
	width: .75rem;
	height: .4rem;
	border-left: 2px solid var(--wp--preset--color--gold-tief);
	border-bottom: 2px solid var(--wp--preset--color--gold-tief);
	transform: rotate(-45deg);
}
/* Fuß: Zwischensumme, Hinweis, Knöpfe */
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer {
	padding: 1.25rem 1.5rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--ghm-linie, rgba(150, 104, 30, .18));
	background: var(--wp--preset--color--karte);
	box-shadow: 0 -12px 28px -24px rgba(70, 45, 15, .45);
}
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-subtotal { font-size: 1.1rem; }
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-subtotal .wc-block-components-totals-item__label { font-weight: 500; }
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-subtotal .wc-block-components-totals-item__value { font-weight: 600; }
.wc-block-mini-cart__drawer .wc-block-components-totals-item__description,
.wc-block-mini-cart__drawer .wc-gzd-block-mini-cart-notices { font-size: .8125rem; color: var(--wp--preset--color--tinte-3); text-align: left; }
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions { gap: .75rem; margin-top: 1rem; }
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions .wc-block-components-button {
	min-height: 0;
	padding: .7em 1.1em;
	font-size: .9375rem;
	line-height: 1.2;
	white-space: nowrap;
}
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-checkout { order: 2; }
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-checkout:hover { background: #f4d498; }
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-cart { background: transparent; border-width: 1px; }
.wc-block-mini-cart__drawer .wc-block-components-drawer__close { display: inline-flex; align-items: center; justify-content: center; padding: 0 !important; opacity: 1; }
.wc-block-mini-cart__drawer .wc-block-components-drawer__close svg { flex: none; }
.wc-block-mini-cart__drawer .wc-block-components-drawer__close svg { width: 26px !important; height: 26px !important; fill: currentColor; }
@media (max-width: 480px) {
	.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions { flex-direction: column; align-items: stretch; }
	.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions > * { flex: none; width: auto; max-width: 100%; box-sizing: border-box; }
	.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions .wc-block-components-button { min-height: 46px; display: flex; align-items: center; justify-content: center; }
	.wc-block-mini-cart__drawer .wc-gzd-block-mini-cart-notices { order: -2; }
	.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-checkout { order: -1; }
}
/* Kreuz in die Kopfzeile rücken (WooCommerce setzt es bündig in die Ecke). */
.wc-block-mini-cart__drawer .wc-block-components-drawer__close { transform: translate(-.85rem, 1rem); }
.wc-block-mini-cart__drawer .wc-gzd-block-mini-cart-notices__notice-wrap,
.wc-block-mini-cart__drawer .wc-gzd-block-mini-cart-notices__notice { display: block; text-align: left; justify-content: flex-start; margin: .1rem 0 0; }

/* Cookie-Banner (Complianz): Farben stehen in den Banner-Einstellungen (2026-12-03 an Theme angepasst),
   Complianz setzt für die Knöpfe aber Arial; hier die Website-Schrift. */
.cmplz-cookiebanner .cmplz-buttons .cmplz-btn { font-family: inherit; font-weight: 500; }
