/* ==========================================================================
   TAUWERKE CUSTOM STYLES

   Struktur:
   01 Global Foundation
   02 Buttons & Textlinks
   03 Responsive Sichtbarkeit
   04 WooCommerce Icons, Cart & Checkout
   05 Navigation & Clickable Cover
   06 Produktgalerie & Produktseite
   07 Formulare
   08 Shop / Product Collection
   09 Related Products

   Hinweis:
   Diese Datei enthält bewusst nur projektspezifische Ergänzungen.
   Grundlegende Design-Tokens wie Farben, Schriften und Abstände liegen in theme.json.
   ========================================================================== */

/* ==========================================================================
   GLOBAL FOUNDATION
   ========================================================================== */

html,
body {
	overflow-x: clip;
}

/* Background Pattern */
body::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 420px;
	background-image: url('/wp-content/themes/tauwerke-theme/assets/backgrounds/tauwerke-background-pattern.svg');
	background-repeat: no-repeat;
	background-position: top center;
	background-size: min(100%, 1600px) auto;
	pointer-events: none;
	z-index: 0;
}

.wp-site-blocks {
	position: relative;
	z-index: 1;
}

@media (max-width: 599px) {
	body::before {
		background-image: url('/wp-content/themes/tauwerke-theme/assets/backgrounds/tauwerke-background-pattern-mobile.svg');
	}

	/* Abstand zwischen fester Navigation und dem ersten Hero auf der Startseite. */
	body.home main.wp-block-group.background-pattern {
		padding-top: calc(var(--wp--preset--spacing--space-80) + var(--wp--preset--spacing--space-32)) !important;
	}
}


/* ==========================================================================
   BUTTONS
   ========================================================================== */

.wp-element-button,
.wp-block-button__link {
	transition: opacity 0.25s ease;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
	opacity: 0.8;
}

/* Button mit SVG Icon */
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding-left: var(--wp--preset--spacing--space-32);
	padding-right: var(--wp--preset--spacing--space-32);
}

.wp-block-button__link::after {
	content: "";
	width: 1em;
	height: 1em;
	flex-shrink: 0;

	background-color: currentColor;
	background-image: none;

	-webkit-mask-image: url("/wp-content/themes/tauwerke-theme/assets/icons/arrow-forward.svg");
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	-webkit-mask-size: contain;

	mask-image: url("/wp-content/themes/tauwerke-theme/assets/icons/arrow-forward.svg");
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: contain;

	transform: translateX(0);
	transition: transform 0.25s ease;
}


/* ==========================================================================
   TEXT-LINKS
   ========================================================================== */

.wp-block-post-content a:not(.wp-element-button):not(.wp-block-button__link):not(.category-cards__item):not(.wc-block-cart-item__image a):not(.wc-block-components-product-name),
.entry-content a:not(.wp-element-button):not(.wp-block-button__link):not(.category-cards__item):not(.wc-block-cart-item__image a):not(.wc-block-components-product-name) {
	color: inherit;
	text-decoration: none;
	position: relative;
	display: inline-block;
	padding-bottom: 0.0005em;
	opacity: 1;
	transition: opacity 0.25s ease;
}

.wp-block-post-content a:not(.wp-element-button):not(.wp-block-button__link):not(.category-cards__item):not(.wc-block-cart-item__image a):not(.wc-block-components-product-name)::after,
.entry-content a:not(.wp-element-button):not(.wp-block-button__link):not(.category-cards__item):not(.wc-block-cart-item__image a):not(.wc-block-components-product-name)::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1.5px;
	background-color: currentColor;
	transform: scaleX(1);
	transform-origin: right;
	transition: transform 0.3s ease;
}

.wp-block-post-content a:not(.wp-element-button):not(.wp-block-button__link):not(.category-cards__item):not(.wc-block-cart-item__image a):not(.wc-block-components-product-name):hover,
.entry-content a:not(.wp-element-button):not(.wp-block-button__link):not(.category-cards__item):not(.wc-block-cart-item__image a):not(.wc-block-components-product-name):hover {
	opacity: 0.8;
}

.wp-block-post-content a:not(.wp-element-button):not(.wp-block-button__link):not(.category-cards__item):not(.wc-block-cart-item__image a):not(.wc-block-components-product-name):hover::after,
.entry-content a:not(.wp-element-button):not(.wp-block-button__link):not(.category-cards__item):not(.wc-block-cart-item__image a):not(.wc-block-components-product-name):hover::after {
	transform: scaleX(0);
}

/* Keine Link-Unterstreichung für Produktbild und Produkttitel im Warenkorb & Mini-Cart */

.wp-block-post-content .wc-block-cart-item__image a,
.entry-content .wc-block-cart-item__image a,
.wp-block-post-content a.wc-block-components-product-name,
.entry-content a.wc-block-components-product-name,
.wc-block-mini-cart .wc-block-cart-item__image a,
.wc-block-mini-cart a.wc-block-components-product-name,
.wc-block-mini-cart__drawer .wc-block-cart-item__image a,
.wc-block-mini-cart__drawer a.wc-block-components-product-name,
.wc-block-components-drawer .wc-block-cart-item__image a,
.wc-block-components-drawer a.wc-block-components-product-name {
	text-decoration: none !important;
	padding-bottom: 0 !important;
}

.wp-block-post-content .wc-block-cart-item__image img,
.entry-content .wc-block-cart-item__image img,
.wc-block-mini-cart .wc-block-cart-item__image img,
.wc-block-mini-cart__drawer .wc-block-cart-item__image img,
.wc-block-components-drawer .wc-block-cart-item__image img {
	border: 1px solid var(--wp--preset--color--custom-text-stark) !important;
	box-sizing: border-box !important;
	display: block;
}

.wp-block-post-content .wc-block-cart-item__image a::after,
.entry-content .wc-block-cart-item__image a::after,
.wp-block-post-content a.wc-block-components-product-name::after,
.entry-content a.wc-block-components-product-name::after,
.wc-block-mini-cart .wc-block-cart-item__image a::after,
.wc-block-mini-cart a.wc-block-components-product-name::after,
.wc-block-mini-cart__drawer .wc-block-cart-item__image a::after,
.wc-block-mini-cart__drawer a.wc-block-components-product-name::after,
.wc-block-components-drawer .wc-block-cart-item__image a::after,
.wc-block-components-drawer a.wc-block-components-product-name::after {
	content: none !important;
	display: none !important;
}

/* Fallback für WooCommerce Mini-Cart Drawer */
.wc-block-mini-cart__drawer .wc-block-cart-item__image a,
.wc-block-mini-cart__drawer a.wc-block-components-product-name,
.wc-block-components-drawer .wc-block-cart-item__image a,
.wc-block-components-drawer a.wc-block-components-product-name {
	text-decoration: none !important;
	text-decoration-line: none !important;
}

.wc-block-mini-cart__drawer .wc-block-cart-item__image img,
.wc-block-components-drawer .wc-block-cart-item__image img {
	border: 1px solid var(--wp--preset--color--custom-text-stark) !important;
	box-sizing: border-box !important;
}

/* Im Mini-Cart zeigt WooCommerce teils ein zusätzliches, nicht verlinktes Bild an */
.wc-block-mini-cart__drawer .wc-block-cart-item__image > img:first-child,
.wc-block-components-drawer .wc-block-cart-item__image > img:first-child {
	display: none !important;
}


/* ==========================================================================
   RESPONSIVE SICHTBARKEIT
   ========================================================================== */

@media (min-width: 1025px) {
	.hide-desktop {
		display: none !important;
	}
}

@media (min-width: 600px) and (max-width: 1024px) {
	.hide-tablet {
		display: none !important;
	}
}

@media (max-width: 599px) {
	.hide-mobile {
		display: none !important;
	}
}


/* ==========================================================================
   WOOCOMMERCE ICONS
   ========================================================================== */

button.wc-block-mini-cart__button svg,
a.wc-block-customer-account__link svg {
	visibility: hidden;
}

button.wc-block-mini-cart__button,
a.wc-block-customer-account__link {
	position: relative;
	width: 44px;
	height: 44px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.25s ease;
}

button.wc-block-mini-cart__button:hover,
a.wc-block-customer-account__link:hover {
	opacity: 0.8;
}

button.wc-block-mini-cart__button::before,
a.wc-block-customer-account__link::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 24px;
	height: 24px;
	transform: translate(-50%, -50%);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 24px 24px;
	pointer-events: none;
}

button.wc-block-mini-cart__button::before {
	background-image: url('/wp-content/themes/tauwerke-theme/assets/icons/cart.svg');
}

a.wc-block-customer-account__link::before {
	background-image: url('/wp-content/themes/tauwerke-theme/assets/icons/account.svg');
}


/* ==========================================================================
   MINI CART BUTTONS
   ========================================================================== */

/* Linker Button bleibt Outline/Standard: Warenkorb anzeigen */
.wc-block-mini-cart__footer-actions .wc-block-mini-cart__footer-cart,
.wc-block-mini-cart__footer-actions .wc-block-mini-cart__footer-cart.wp-element-button,
.wc-block-mini-cart__footer-actions a.wc-block-mini-cart__footer-cart {
	background: transparent !important;
	background-color: transparent !important;
	color: var(--wp--preset--color--custom-text-stark) !important;
	border: 0.5px solid var(--wp--preset--color--custom-text-stark) !important;
	border-width: 0.5px !important;
	border-style: solid !important;
	border-color: var(--wp--preset--color--custom-text-stark) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	box-sizing: border-box !important;
}

.wc-block-mini-cart__footer-actions .wc-block-mini-cart__footer-cart:focus-visible,
.wc-block-mini-cart__footer-actions .wc-block-mini-cart__footer-cart.wp-element-button:focus-visible,
.wc-block-mini-cart__footer-actions a.wc-block-mini-cart__footer-cart:focus-visible {
	outline: 1px solid var(--wp--preset--color--custom-text-stark) !important;
	outline-offset: 3px;
}

.wc-block-mini-cart__footer-actions .wc-block-mini-cart__footer-cart:hover,
.wc-block-mini-cart__footer-actions .wc-block-mini-cart__footer-cart.wp-element-button:hover,
.wc-block-mini-cart__footer-actions a.wc-block-mini-cart__footer-cart:hover {
	background: transparent !important;
	background-color: transparent !important;
	color: var(--wp--preset--color--custom-text-stark) !important;
	border-color: var(--wp--preset--color--custom-text-stark) !important;
	opacity: 0.8;
}

/* Rechter Button als Primary Button: Zur Kasse gehen */
.wc-block-mini-cart__footer-actions .wc-block-mini-cart__footer-checkout,
.wc-block-mini-cart__footer-actions .wc-block-mini-cart__footer-checkout.wp-element-button,
.wc-block-mini-cart__footer-actions a.wc-block-mini-cart__footer-checkout {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	background: var(--wp--preset--color--custom-text-stark) !important;
	background-color: var(--wp--preset--color--custom-text-stark) !important;
	color: var(--wp--preset--color--custom-hintergrund-primaer) !important;

	border: 1px solid var(--wp--preset--color--custom-text-stark) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	text-decoration: none !important;
}

.wc-block-mini-cart__footer-actions .wc-block-mini-cart__footer-checkout:hover,
.wc-block-mini-cart__footer-actions .wc-block-mini-cart__footer-checkout.wp-element-button:hover,
.wc-block-mini-cart__footer-actions a.wc-block-mini-cart__footer-checkout:hover {
	opacity: 0.8;
}


/* ==========================================================================
   CHECKOUT PAGE – PLACE ORDER BUTTON
   ========================================================================== */

.wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button,
.wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button.wp-element-button,
.wc-block-checkout__actions_row button.wc-block-components-checkout-place-order-button,
.wc-block-components-checkout-place-order-button,
.wc-block-components-checkout-place-order-button.wp-element-button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;

	background: var(--wp--preset--color--custom-text-stark) !important;
	background-color: var(--wp--preset--color--custom-text-stark) !important;
	color: var(--wp--preset--color--custom-hintergrund-primaer) !important;

	border: 1px solid var(--wp--preset--color--custom-text-stark) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	text-decoration: none !important;
	cursor: pointer !important;
	transition: opacity 0.25s ease;
}

.wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button:hover,
.wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button.wp-element-button:hover,
.wc-block-checkout__actions_row button.wc-block-components-checkout-place-order-button:hover,
.wc-block-components-checkout-place-order-button:hover,
.wc-block-components-checkout-place-order-button.wp-element-button:hover {
	background: var(--wp--preset--color--custom-text-stark) !important;
	background-color: var(--wp--preset--color--custom-text-stark) !important;
	color: var(--wp--preset--color--custom-hintergrund-primaer) !important;
	border-color: var(--wp--preset--color--custom-text-stark) !important;
	opacity: 0.8;
}

.wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button:focus-visible,
.wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button.wp-element-button:focus-visible,
.wc-block-checkout__actions_row button.wc-block-components-checkout-place-order-button:focus-visible,
.wc-block-components-checkout-place-order-button:focus-visible,
.wc-block-components-checkout-place-order-button.wp-element-button:focus-visible {
	outline: 1px solid var(--wp--preset--color--custom-text-stark) !important;
	outline-offset: 3px;
}

/* ==========================================================================
   CART PAGE – CHECKOUT BUTTON
   ========================================================================== */

.wc-block-cart__submit-container .wc-block-cart__submit-button,
.wc-block-cart__submit-container .wc-block-cart__submit-button.wp-element-button,
.wc-block-cart__submit-container a.wc-block-cart__submit-button,
.wc-block-cart__submit-container a.wc-block-cart__submit-button.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	background: var(--wp--preset--color--custom-text-stark) !important;
	background-color: var(--wp--preset--color--custom-text-stark) !important;
	color: var(--wp--preset--color--custom-hintergrund-primaer) !important;

	border: 1px solid var(--wp--preset--color--custom-text-stark) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	text-decoration: none !important;
}

.wc-block-cart__submit-container .wc-block-cart__submit-button:hover,
.wc-block-cart__submit-container .wc-block-cart__submit-button.wp-element-button:hover,
.wc-block-cart__submit-container a.wc-block-cart__submit-button:hover,
.wc-block-cart__submit-container a.wc-block-cart__submit-button.wp-element-button:hover {
	background: var(--wp--preset--color--custom-text-stark) !important;
	background-color: var(--wp--preset--color--custom-text-stark) !important;
	color: var(--wp--preset--color--custom-hintergrund-primaer) !important;
	border-color: var(--wp--preset--color--custom-text-stark) !important;
	opacity: 0.8;
}


/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.wp-block-navigation__responsive-container-close {
	position: absolute;
	left: 1rem;
	right: auto;
	top: 1rem;
}

.wp-block-navigation__responsive-container-open svg {
	transform: scaleX(1.6) scaleY(1.15);
	transform-origin: center;
}

.wp-block-navigation__responsive-container.is-menu-open {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	animation: tauwerke-menu-overlay-in 0.65s ease both;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
	height: 100%;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	padding: clamp(5rem, 12dvh, 8rem) clamp(1.5rem, 5vw, 5rem);
	box-sizing: border-box;
	overflow-y: auto;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	width: 100%;
	margin: auto;
	flex-direction: column;
	align-items: center !important;
	justify-content: center !important;
	gap: clamp(0.75rem, 2vh, 1.5rem) !important;
	text-align: center;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	justify-content: center;
	animation: tauwerke-menu-item-in 0.65s ease both;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(2) {
	animation-delay: 0.06s;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(3) {
	animation-delay: 0.12s;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(4) {
	animation-delay: 0.18s;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--archivo);
	font-size: clamp(2.25rem, 5vw, 4.5rem);
	font-weight: 500;
	line-height: 1.05;
	text-align: center;
}

.wp-block-navigation__responsive-container.is-menu-open.is-menu-closing {
	pointer-events: none;
	animation: tauwerke-menu-overlay-out 0.55s ease both;
}

.wp-block-navigation__responsive-container.is-menu-open.is-menu-closing .wp-block-navigation-item {
	animation: tauwerke-menu-item-out 0.45s ease both;
}

@keyframes tauwerke-menu-overlay-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes tauwerke-menu-item-in {
	from {
		opacity: 0;
		transform: translateY(14px) scale(0.985);
		filter: blur(6px);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
		filter: blur(0);
	}
}

@keyframes tauwerke-menu-overlay-out {
	from {
		opacity: 1;
	}

	to {
		opacity: 0;
	}
}

@keyframes tauwerke-menu-item-out {
	from {
		opacity: 1;
		transform: translateY(0) scale(1);
		filter: blur(0);
	}

	to {
		opacity: 0;
		transform: translateY(14px) scale(0.985);
		filter: blur(6px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-navigation__responsive-container.is-menu-open,
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
		animation: none;
	}
}

.top-navi {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	background: var(--wp--preset--color--custom-hintergrund-primaer, #fff);
}

@media (max-width: 599px) {
	.top-navi .wp-block-site-logo {
		position: absolute;
		top: 50%;
		left: 50%;
		z-index: 2;
		transform: translate(-50%, -50%);
	}
}

.top-navi .wp-block-site-logo img,
.top-navi .wp-block-navigation__responsive-container-open,
.top-navi .wp-block-navigation__responsive-container-open svg,
.top-navi button.wc-block-mini-cart__button,
.top-navi button.wc-block-mini-cart__button::before,
.top-navi a.wc-block-customer-account__link,
.top-navi a.wc-block-customer-account__link::before {
	transition: color 0.25s ease, filter 0.25s ease, opacity 0.25s ease;
}

.top-navi.is-over-dark-background .wp-block-site-logo img,
.top-navi.is-over-dark-background .wp-block-navigation__responsive-container-open svg,
.top-navi.is-over-dark-background button.wc-block-mini-cart__button::before,
.top-navi.is-over-dark-background a.wc-block-customer-account__link::before {
	filter: brightness(0) invert(1);
}

.top-navi.is-over-dark-background .wp-block-navigation__responsive-container-open,
.top-navi.is-over-dark-background .wp-block-navigation__responsive-container-open svg,
.top-navi.is-over-dark-background button.wc-block-mini-cart__button,
.top-navi.is-over-dark-background a.wc-block-customer-account__link {
	color: #fff;
}

.top-navi.is-over-dark-background .wc-block-mini-cart__badge {
	background-color: #fff;
	color: var(--wp--preset--color--custom-text-stark);
}


/* ==========================================================================
   CLICKABLE COVER
   ========================================================================== */

.clickable-cover {
	position: relative;
	cursor: pointer;
}

.clickable-cover .wp-block-cover__inner-container {
	position: static;
}

.clickable-cover a {
	position: static;
	text-decoration: none;
}

.clickable-cover a::before,
.clickable-cover a::after {
	content: none;
}

.clickable-cover::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 30;
}

/* ==========================================================================
   BUTTON VARIANTE LINK
   ========================================================================== */

.wp-block-button.is-style-link .wp-block-button__link,
.wp-block-button[class*="is-style-link"] .wp-block-button__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding-right: 1.25em;
}

.wp-block-button.is-style-link .wp-block-button__link::after,
.wp-block-button[class*="is-style-link"] .wp-block-button__link::after {
	content: "";
	position: absolute;
	right: 0;
	width: 1em;
	height: 1em;

	background-color: currentColor;
	background-image: none;

	-webkit-mask-image: url("/wp-content/themes/tauwerke-theme/assets/icons/arrow-forward.svg");
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	-webkit-mask-size: contain;

	mask-image: url("/wp-content/themes/tauwerke-theme/assets/icons/arrow-forward.svg");
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: contain;

	transform: translateX(0);
	transition: transform 0.25s ease;
}

.wp-block-button.is-style-link .wp-block-button__link:hover::after,
.wp-block-button[class*="is-style-link"] .wp-block-button__link:hover::after {
	transform: translateX(4px);
}

.wp-block-button.is-style-link .wp-block-button__link {
	background-color: transparent !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: var(--wp--preset--color--custom-text-stark) !important;
}

.wp-block-button.is-style-link .wp-block-button__link.wp-element-button {
	color: var(--wp--preset--color--custom-text-stark) !important;
}

.wp-block-button.is-style-link .wp-block-button__link,
.wp-block-button.is-style-link--3 .wp-block-button__link {
	background: transparent !important;
	color: var(--wp--preset--color--custom-text-stark) !important;
	border: 0 !important;
	box-shadow: none !important;
	padding-left: 0 !important;
}


/* ==========================================================================
   PRODUKT BILDER GALLERY THUMBNAILS
   ========================================================================== */

.woocommerce div.product div.images .flex-control-thumbs {
	display: flex !important;
	flex-wrap: nowrap !important;

	gap: var(--wp--preset--spacing--space-8);

	padding-top: var(--wp--preset--spacing--space-8);
	padding-bottom: var(--wp--preset--spacing--space-8);

	overflow-x: auto;
	overflow-y: hidden;

	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	touch-action: pan-x;
}

.woocommerce div.product div.images .flex-control-thumbs li {
	float: none !important;

	flex: 0 0 80px !important;
	width: 80px !important;
	min-width: 80px;

	border: 1px solid var(--wp--preset--color--custom-text-stark);
	scroll-snap-align: start;
}

.woocommerce div.product div.images .flex-control-thumbs li img {
	display: block;
	width: 100%;
	height: 80px;
	object-fit: cover;
}


/* ==========================================================================
   PRODUKT BILD – BORDER
   ========================================================================== */

.woocommerce div.product div.images .woocommerce-product-gallery__image {
	border: 1px solid var(--wp--preset--color--custom-text-stark);
}

.woocommerce div.product div.images .woocommerce-product-gallery__image img {
	display: block;
}


/* ==========================================================================
   AKTIVES THUMBNAIL
   ========================================================================== */

.woocommerce div.product div.images .flex-control-thumbs li.flex-active {
	border-color: var(--wp--preset--color--custom-hauptfarbe);
}

/* ==========================================================================
   SALES BADGE
   ========================================================================== */

.woocommerce span.onsale {
	background-color: var(--wp--preset--color--custom-text-stark);
	color: var(--wp--preset--color--custom-hintergrund-primaer);
}


/* ==========================================================================
   OPTIONEN LABEL 
   ========================================================================== */
.woocommerce-page label {
    margin-bottom: 0px;
}

.wc-block-add-to-cart-with-options-variation-selector-attribute-options__pill {
	border-radius: 0;
}


/* ==========================================================================
   ACCOUNT PAGE – SAVE BUTTON
   ========================================================================== */

.woocommerce-account button.woocommerce-Button,
.woocommerce-account button.woocommerce-button,
.woocommerce-account button[name="save_account_details"],
.woocommerce-account button[name="save_address"],
.woocommerce-account .woocommerce-EditAccountForm button[type="submit"],
.woocommerce-account .woocommerce-address-fields button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	background: var(--wp--preset--color--custom-text-stark) !important;
	background-color: var(--wp--preset--color--custom-text-stark) !important;
	color: var(--wp--preset--color--custom-hintergrund-primaer) !important;

	border: 1px solid var(--wp--preset--color--custom-text-stark) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	text-decoration: none !important;
	cursor: pointer;
	transition: opacity 0.25s ease;
}

.woocommerce-account button.woocommerce-Button:hover,
.woocommerce-account button.woocommerce-button:hover,
.woocommerce-account button[name="save_account_details"]:hover,
.woocommerce-account button[name="save_address"]:hover,
.woocommerce-account .woocommerce-EditAccountForm button[type="submit"]:hover,
.woocommerce-account .woocommerce-address-fields button[type="submit"]:hover {
	background: var(--wp--preset--color--custom-text-stark) !important;
	background-color: var(--wp--preset--color--custom-text-stark) !important;
	color: var(--wp--preset--color--custom-hintergrund-primaer) !important;
	border-color: var(--wp--preset--color--custom-text-stark) !important;
	opacity: 0.8;
}

.woocommerce-account button.woocommerce-Button:focus-visible,
.woocommerce-account button.woocommerce-button:focus-visible,
.woocommerce-account button[name="save_account_details"]:focus-visible,
.woocommerce-account button[name="save_address"]:focus-visible,
.woocommerce-account .woocommerce-EditAccountForm button[type="submit"]:focus-visible,
.woocommerce-account .woocommerce-address-fields button[type="submit"]:focus-visible {
	outline: 1px solid var(--wp--preset--color--custom-text-stark) !important;
	outline-offset: 3px;
}

/* ==========================================================================
   FORM FIELDS
   ========================================================================== */

.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="password"],
.woocommerce input[type="tel"],
.woocommerce textarea,
.woocommerce select,
.woocommerce .select2-container--default .select2-selection--single,
.woocommerce-page input[type="text"],
.woocommerce-page input[type="email"],
.woocommerce-page input[type="password"],
.woocommerce-page input[type="tel"],
.woocommerce-page textarea,
.woocommerce-page select,
.woocommerce-page .select2-container--default .select2-selection--single {
	background-color: var(--wp--preset--color--custom-hintergrund-primaer) !important;
	border: 1px solid var(--wp--preset--color--custom-text-stark) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: var(--wp--preset--color--custom-text-stark) !important;
	font-family: var(--wp--preset--font-family--geist) !important;
	transition: opacity 0.25s ease, border-color 0.25s ease;
}

.woocommerce input[type="text"]:focus,
.woocommerce input[type="email"]:focus,
.woocommerce input[type="password"]:focus,
.woocommerce input[type="tel"]:focus,
.woocommerce textarea:focus,
.woocommerce select:focus,
.woocommerce .select2-container--default.select2-container--focus .select2-selection--single,
.woocommerce .select2-container--default.select2-container--open .select2-selection--single,
.woocommerce-page input[type="text"]:focus,
.woocommerce-page input[type="email"]:focus,
.woocommerce-page input[type="password"]:focus,
.woocommerce-page input[type="tel"]:focus,
.woocommerce-page textarea:focus,
.woocommerce-page select:focus,
.woocommerce-page .select2-container--default.select2-container--focus .select2-selection--single,
.woocommerce-page .select2-container--default.select2-container--open .select2-selection--single {
	outline: 1px solid var(--wp--preset--color--custom-text-stark) !important;
	outline-offset: 2px;
	border-color: var(--wp--preset--color--custom-text-stark) !important;
	box-shadow: none !important;
}


.woocommerce .select2-container--default .select2-selection--single,
.woocommerce-page .select2-container--default .select2-selection--single {
	height: auto !important;
	min-height: 48px !important;
	display: flex !important;
	align-items: center !important;
}

.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered,
.woocommerce-page .select2-container--default .select2-selection--single .select2-selection__rendered {
	color: var(--wp--preset--color--custom-text-stark) !important;
	font-family: var(--wp--preset--font-family--geist) !important;
	line-height: normal !important;
	padding-left: 0 !important;
	padding-right: 2rem !important;
}

.woocommerce .select2-container--default .select2-selection--single .select2-selection__placeholder,
.woocommerce-page .select2-container--default .select2-selection--single .select2-selection__placeholder {
	color: var(--wp--preset--color--custom-text-stark) !important;
	opacity: 0.6;
}

.woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow,
.woocommerce-page .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 100% !important;
	right: 1rem !important;
	top: 0 !important;
}

.woocommerce .select2-dropdown,
.woocommerce-page .select2-dropdown {
	background-color: var(--wp--preset--color--custom-hintergrund-primaer) !important;
	border: 1px solid var(--wp--preset--color--custom-text-stark) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: var(--wp--preset--color--custom-text-stark) !important;
	font-family: var(--wp--preset--font-family--geist) !important;
}

.woocommerce .select2-container--default .select2-results__option--highlighted[aria-selected],
.woocommerce-page .select2-container--default .select2-results__option--highlighted[aria-selected] {
	background-color: var(--wp--preset--color--custom-text-stark) !important;
	color: var(--wp--preset--color--custom-hintergrund-primaer) !important;
}


/* ==========================================================================
   CONTACT FORM 7 – FORM FIELDS & SUBMIT BUTTON
   ========================================================================== */

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 textarea,
.wpcf7 select {
	width: 100%;
	background-color: var(--wp--preset--color--custom-hintergrund-primaer) !important;
	border: 1px solid var(--wp--preset--color--custom-text-stark) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: var(--wp--preset--color--custom-text-stark) !important;
	font-family: var(--wp--preset--font-family--geist) !important;
	transition: opacity 0.25s ease, border-color 0.25s ease;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 select {
	min-height: 48px !important;
	padding: 0.75rem 1rem !important;
	box-sizing: border-box !important;
}

.wpcf7 textarea {
	min-height: 160px !important;
	padding: 0.75rem 1rem !important;
	box-sizing: border-box !important;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 input[type="date"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
	outline: 1px solid var(--wp--preset--color--custom-text-stark) !important;
	outline-offset: 2px;
	border-color: var(--wp--preset--color--custom-text-stark) !important;
	box-shadow: none !important;
}

.wpcf7 input[type="checkbox"] {
	appearance: none !important;
	-webkit-appearance: none !important;
	width: 16px !important;
	height: 16px !important;
	min-width: 16px !important;
	min-height: 16px !important;
	margin: 0 0.5rem 0 0 !important;
	padding: 0 !important;
	border: 1px solid var(--wp--preset--color--custom-text-stark) !important;
	border-radius: 0 !important;
	background-color: var(--wp--preset--color--custom-hintergrund-primaer) !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
	vertical-align: middle;
	position: relative;
	cursor: pointer;
}

.wpcf7 input[type="checkbox"]:checked {
	background-color: var(--wp--preset--color--custom-text-stark) !important;
}

.wpcf7 input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 1px;
	width: 5px;
	height: 9px;
	border: solid var(--wp--preset--color--custom-hintergrund-primaer);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.wpcf7 input[type="checkbox"]:focus-visible {
	outline: 1px solid var(--wp--preset--color--custom-text-stark) !important;
	outline-offset: 3px;
}

.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
	appearance: none !important;
	-webkit-appearance: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 48px !important;
	padding: 0.75rem 2rem !important;

	background: var(--wp--preset--color--custom-text-stark) !important;
	background-color: var(--wp--preset--color--custom-text-stark) !important;
	color: var(--wp--preset--color--custom-hintergrund-primaer) !important;

	border: 1px solid var(--wp--preset--color--custom-text-stark) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	text-decoration: none !important;
	cursor: pointer !important;
	font-family: var(--wp--preset--font-family--archivo) !important;
	transition: opacity 0.25s ease;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 .wpcf7-submit:hover {
	background: var(--wp--preset--color--custom-text-stark) !important;
	background-color: var(--wp--preset--color--custom-text-stark) !important;
	color: var(--wp--preset--color--custom-hintergrund-primaer) !important;
	border-color: var(--wp--preset--color--custom-text-stark) !important;
	opacity: 0.8;
}

.wpcf7 input[type="submit"]:focus-visible,
.wpcf7 .wpcf7-submit:focus-visible {
	outline: 1px solid var(--wp--preset--color--custom-text-stark) !important;
	outline-offset: 3px;
}

.wpcf7 input[type="submit"]:disabled,
.wpcf7 .wpcf7-submit:disabled {
	background: var(--wp--preset--color--custom-text-stark) !important;
	background-color: var(--wp--preset--color--custom-text-stark) !important;
	color: var(--wp--preset--color--custom-hintergrund-primaer) !important;
	border-color: var(--wp--preset--color--custom-text-stark) !important;
	cursor: not-allowed !important;
	opacity: 0.45;
}

/* ==========================================================================
   ADD TO CART BUTTON – OUTLINE VARIANTE
   ========================================================================== */

.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline .wp-element-button,
.wp-block-button.is-style-outline .wc-block-components-product-button__button,
.wp-block-button.is-style-outline .add_to_cart_button,
.wp-block-button[class*="is-style-outline"] .wp-block-button__link,
.wp-block-button[class*="is-style-outline"] .wp-element-button,
.wp-block-button[class*="is-style-outline"] .wc-block-components-product-button__button,
.wp-block-button[class*="is-style-outline"] .add_to_cart_button,
.wp-block-button.wc-block-components-product-button.is-style-outline .wp-block-button__link,
.wp-block-button.wc-block-components-product-button.is-style-outline .wp-element-button,
.wp-block-button.wc-block-components-product-button[class*="is-style-outline"] .wp-block-button__link,
.wp-block-button.wc-block-components-product-button[class*="is-style-outline"] .wp-element-button,
.wc-block-components-product-button.is-style-outline .wc-block-components-product-button__button,
.wc-block-components-product-button[class*="is-style-outline"] .wc-block-components-product-button__button {
	border: 1px solid var(--wp--preset--color--custom-text-stark) !important;
	border-width: 1px !important;
	border-style: solid !important;
	border-color: var(--wp--preset--color--custom-text-stark) !important;
	border-radius: 0 !important;
}


/* ==========================================================================
   PAGINATION – CUSTOM ARROWS
   ========================================================================== */

.wp-block-query-pagination .wp-block-query-pagination-previous,
.wp-block-query-pagination .wp-block-query-pagination-next {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0 !important;
	text-decoration: none !important;
}

.wp-block-query-pagination .wp-block-query-pagination-previous::before,
.wp-block-query-pagination .wp-block-query-pagination-next::after {
	content: "";
	width: 1.5rem;
	height: 1.5rem;
	display: block;
	background-color: currentColor;
	background-image: none;

	-webkit-mask-image: url('/wp-content/themes/tauwerke-theme/assets/icons/arrow-forward.svg');
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	-webkit-mask-size: contain;

	mask-image: url('/wp-content/themes/tauwerke-theme/assets/icons/arrow-forward.svg');
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: contain;
}

.wp-block-query-pagination .wp-block-query-pagination-previous::before {
	transform: rotate(180deg);
}

/* ==========================================================================
     SHOP / PRODUCT COLLECTION – CLICKABLE PRODUCT CARD & GAP
     ========================================================================== */

.wc-block-product-template {
	gap: var(--wp--preset--spacing--space-32) !important;
}

/*
 * WooCommerce berechnet die Breite der Flex-Elemente mit seinem kleineren
 * Standardabstand. Mit dem größeren Tauwerke-Abstand passen dadurch nur zwei
 * statt drei Karten in eine Zeile. Auf Produktarchiven sorgt ein Grid für
 * verlässliche Spaltenbreiten.
 */
.archive.woocommerce .wc-block-product-template.is-flex-container.columns-3 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.archive.woocommerce .wc-block-product-template.is-flex-container.columns-3 > li {
	width: auto !important;
}

@media (max-width: 781px) {
	.archive.woocommerce .wc-block-product-template.is-flex-container.columns-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 599px) {
	.archive.woocommerce .wc-block-product-template.is-flex-container.columns-3 {
		grid-template-columns: minmax(0, 1fr);
	}
}

.wc-block-product-template .wc-block-product {
	position: relative;
	cursor: pointer;
	overflow: hidden;
}

.wc-block-product-template .wc-block-product .wc-block-components-product-price {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	gap: 0.25em;
	padding-right: 2rem;
	box-sizing: border-box;
	transition: color 0.25s ease;
}

.wc-block-product-template .wc-block-product:hover .wc-block-components-product-price {
	color: var(--wp--preset--color--custom-text-stark);
}

.wc-block-product-template .wc-block-product .wc-block-components-product-price::after {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	width: 1.25rem;
	height: 1.25rem;

	background-color: currentColor;
	background-image: none;

	-webkit-mask-image: url('/wp-content/themes/tauwerke-theme/assets/icons/arrow-forward.svg');
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	-webkit-mask-size: contain;

	mask-image: url('/wp-content/themes/tauwerke-theme/assets/icons/arrow-forward.svg');
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: contain;

	opacity: 0;
	transform: translateY(-50%) translateX(-6px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.wc-block-product-template .wc-block-product:hover .wc-block-components-product-price::after {
	opacity: 1;
	transform: translateY(-50%) translateX(0);
}

.wc-block-product-template .wc-block-product .wp-block-post-title a {
	position: static;
}

.wc-block-product-template .wc-block-product .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 10;
}


.wc-block-product-template .wc-block-product .wc-block-components-product-image,
.wc-block-product-template .wc-block-product .wc-block-grid__product-image {
	position: relative;
	overflow: hidden;
}

.archive.woocommerce .wc-block-product-template .wc-block-product .wc-block-components-product-image::after,
.archive.woocommerce .wc-block-product-template .wc-block-product .wc-block-grid__product-image::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background-color: rgb(28 28 33 / 12%);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

.archive.woocommerce .wc-block-product-template .wc-block-product:hover .wc-block-components-product-image::after,
.archive.woocommerce .wc-block-product-template .wc-block-product:hover .wc-block-grid__product-image::after {
	opacity: 1;
}

.wc-block-product-template .wc-block-product .wc-block-components-product-image img,
.wc-block-product-template .wc-block-product .wc-block-grid__product-image img {
	display: block;
	transition: transform 0.25s ease;
	transform: scale(1);
	will-change: transform;
}

.wc-block-product-template .wc-block-product:hover .wc-block-components-product-image img,
.wc-block-product-template .wc-block-product:hover .wc-block-grid__product-image img {
	transform: scale(1.04);
}

.wc-block-product-template .wc-block-product .wc-block-components-product-button,
.wc-block-product-template .wc-block-product .wp-block-button,
.wc-block-product-template .wc-block-product button,
.wc-block-product-template .wc-block-product input,
.wc-block-product-template .wc-block-product select,
.wc-block-product-template .wc-block-product textarea {
	position: relative;
	z-index: 20;
}

/* ==========================================================================
   SHOP / PRODUCT COLLECTION – PRODUCT IMAGE BORDER
   ========================================================================== */

.woocommerce-shop .wc-block-components-product-image,
.woocommerce-shop .wc-block-components-product-image__inner-container,
.woocommerce-shop .wc-block-grid__product-image,
.archive.woocommerce .wc-block-components-product-image,
.archive.woocommerce .wc-block-components-product-image__inner-container,
.archive.woocommerce .wc-block-grid__product-image {
	border: 0.5px solid var(--wp--preset--color--custom-text-stark) !important;
	box-sizing: border-box !important;
}

.woocommerce-shop .wc-block-components-product-image img,
.archive.woocommerce .wc-block-components-product-image img,
.woocommerce-shop .wc-block-grid__product-image img,
.archive.woocommerce .wc-block-grid__product-image img {
	display: block !important;
}

/* ==========================================================================
   RELATED PRODUCTS / ÄHNLICHE PRODUKTE
   ========================================================================== */

/* Produktbild mit dunklem Rahmen – nur im Related-Products-Bereich */
.wp-block-woocommerce-related-products .wc-block-components-product-image,
.wp-block-woocommerce-related-products .wc-block-grid__product-image {
	border: 1px solid var(--wp--preset--color--custom-text-stark);
}

.wp-block-woocommerce-related-products .wc-block-components-product-image img,
.wp-block-woocommerce-related-products .wc-block-grid__product-image img {
	display: block;
}

/* Button als Secondary / Outline Button – nur im Related-Products-Bereich */
.wp-block-woocommerce-related-products .wp-block-button__link,
.wp-block-woocommerce-related-products .wc-block-components-product-button__button,
.wp-block-woocommerce-related-products .wc-block-components-product-button .wp-element-button,
.wp-block-woocommerce-related-products .wp-block-button .wp-element-button {
	background: transparent !important;
	background-color: transparent !important;
	color: var(--wp--preset--color--custom-text-stark) !important;
	border: 1px solid var(--wp--preset--color--custom-text-stark) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	text-decoration: none !important;
}

.wp-block-woocommerce-related-products .wp-block-button__link:hover,
.wp-block-woocommerce-related-products .wc-block-components-product-button__button:hover,
.wp-block-woocommerce-related-products .wc-block-components-product-button .wp-element-button:hover,
.wp-block-woocommerce-related-products .wp-block-button .wp-element-button:hover {
	background: transparent !important;
	background-color: transparent !important;
	color: var(--wp--preset--color--custom-text-stark) !important;
	border-color: var(--wp--preset--color--custom-text-stark) !important;
	opacity: 0.8;
}

/* WooCommerce Product Collection: Related Products */

[data-wp-context*="product-collection/related"] .wc-block-components-product-image,
[data-wp-context*="product-collection/related"] .wc-block-components-product-image__inner-container,
[data-wp-context*="product-collection/related"] .wc-block-grid__product-image,
[data-wp-context*="product-collection/related"] .wc-block-components-product-image img,
[data-wp-context*="product-collection/related"] .wc-block-grid__product-image img {
	border: 0.5px solid var(--wp--preset--color--custom-text-stark) !important;
	box-sizing: border-box;
}

/* Fallback: WooCommerce Product Collection / Product Template */
.single-product .wp-block-woocommerce-product-collection .wc-block-components-product-image__inner-container,
.single-product .wp-block-woocommerce-product-collection .wc-block-components-product-image,
.single-product .wp-block-woocommerce-product-collection .wc-block-components-product-image img,
.single-product .wc-block-product-template .wc-block-components-product-image__inner-container,
.single-product .wc-block-product-template .wc-block-components-product-image,
.single-product .wc-block-product-template .wc-block-components-product-image img {
	border: 0.5px solid var(--wp--preset--color--custom-text-stark) !important;
	box-sizing: border-box !important;
}

.single-product .wp-block-woocommerce-product-collection .wc-block-components-product-image img,
.single-product .wc-block-product-template .wc-block-components-product-image img {
	display: block !important;
}

[data-wp-context*="product-collection/related"] .wc-block-components-product-image img,
[data-wp-context*="product-collection/related"] .wc-block-grid__product-image img {
	display: block;
}

[data-wp-context*="product-collection/related"] .wc-block-components-product-button__button,
[data-wp-context*="product-collection/related"] .wc-block-components-product-button .wp-element-button,
[data-wp-context*="product-collection/related"] .wp-block-button__link,
[data-wp-context*="product-collection/related"] .wp-block-button .wp-element-button {
	background: transparent !important;
	background-color: transparent !important;
	color: var(--wp--preset--color--custom-text-stark) !important;
	border: 1px solid var(--wp--preset--color--custom-text-stark) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	text-decoration: none !important;
}

[data-wp-context*="product-collection/related"] .wc-block-components-product-button__button:hover,
[data-wp-context*="product-collection/related"] .wc-block-components-product-button .wp-element-button:hover,
[data-wp-context*="product-collection/related"] .wp-block-button__link:hover,
[data-wp-context*="product-collection/related"] .wp-block-button .wp-element-button:hover {
	background: transparent !important;
	background-color: transparent !important;
	color: var(--wp--preset--color--custom-text-stark) !important;
	border-color: var(--wp--preset--color--custom-text-stark) !important;
	opacity: 0.8;
}

/* ==========================================================================
   PRODUKTSEITE – ADD TO CART / QUANTITY
   ========================================================================== */
.wp-block-woocommerce-add-to-cart-with-options-quantity-selector,
.quantity.wc-block-components-quantity-selector,
.wc-block-components-quantity-selector {
	background: var(--wp--preset--color--custom-hintergrund-primaer);
	border-radius: 0 !important;
}

.wc-block-components-quantity-selector > .wc-block-components-quantity-selector__button--minus,
.wc-block-components-quantity-selector > .wc-block-components-quantity-selector__button--plus {
	border-radius: 0 !important;
}

.wc-block-components-quantity-selector > input {
	font-family: var(--wp--preset--font-family--geist) !important;
}


/* ==========================================================================
   PRODUKTSEITE – Produktberater
   ========================================================================== */
.tauwerke-advice-label:not(th) {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0;
}

.tauwerke-advice-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	margin-left: 16px !important;
	padding: 0.25rem 0.5rem;
	border: 0;
	border-radius: 2px;
	background: rgb(28 28 33 / 10%);
	color: inherit;
	font: inherit;
	font-size: 0.75em;
	font-weight: 400;
	line-height: 1.2;
	vertical-align: middle;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.tauwerke-advice-label > .tauwerke-advice-trigger {
	margin-left: 16px !important;
}

th.tauwerke-advice-label > .tauwerke-advice-trigger {
	margin-left: 16px !important;
}

.tauwerke-advice-trigger__icon {
	flex: 0 0 auto;
	width: 1.2em;
	height: 1.2em;
	fill: currentColor;
}

.tauwerke-advice-trigger:hover,
.tauwerke-advice-trigger:focus-visible {
	background: rgb(28 28 33 / 16%);
}

.tauwerke-advice-trigger:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.tauwerke-advice-trigger:active {
	transform: translateY(1px);
}

body.has-tauwerke-product-advice-dialog {
	overflow: hidden;
}

.tauwerke-product-advice-dialog[hidden] {
	display: none;
}

.tauwerke-product-advice-dialog {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 2rem;
	animation: tauwerke-product-advice-overlay-in 0.65s ease both;
}

.tauwerke-product-advice-dialog__backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: rgb(28 28 33 / 62%);
	cursor: default;
}

.tauwerke-product-advice-dialog__panel {
	position: relative;
	z-index: 1;
	width: min(100%, 46rem);
	max-height: calc(100vh - 4rem);
	overflow-y: auto;
	box-sizing: border-box;
	padding: clamp(1.5rem, 4vw, 3rem);
	background: var(--wp--preset--color--custom-hintergrund-primaer, #f2ede4);
	color: var(--wp--preset--color--custom-text-stark);
	box-shadow: 0 1rem 3rem rgb(28 28 33 / 24%);
	animation: tauwerke-product-advice-panel-in 0.65s ease both;
}

.tauwerke-product-advice-dialog.is-closing {
	pointer-events: none;
	animation: tauwerke-product-advice-overlay-out 0.45s ease both;
}

.tauwerke-product-advice-dialog.is-closing .tauwerke-product-advice-dialog__panel {
	animation: tauwerke-product-advice-panel-out 0.45s ease both;
}

.tauwerke-product-advice-dialog__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 2rem;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
}

.tauwerke-product-advice-dialog__close:hover,
.tauwerke-product-advice-dialog__close:focus-visible {
	background: rgb(28 28 33 / 8%);
}

.tauwerke-product-advice-dialog__close:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.tauwerke-product-advice-dialog__headline {
	margin: 0 2.5rem 1rem 0;
}

.tauwerke-product-advice-dialog__text {
	margin: 0;
}

.tauwerke-product-advice-dialog__text > :first-child {
	margin-top: 0;
}

.tauwerke-product-advice-dialog__text > :last-child {
	margin-bottom: 0;
}

.tauwerke-product-advice-dialog__text ul,
.tauwerke-product-advice-dialog__text ol {
	padding-left: 1.5rem;
}

.tauwerke-product-advice-dialog__text li + li {
	margin-top: 0.25rem;
}

.tauwerke-product-advice-dialog__image {
	margin-top: 1.5rem;
}

.tauwerke-product-advice-dialog__image img {
	display: block;
	width: 100%;
	height: auto;
}

@keyframes tauwerke-product-advice-overlay-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes tauwerke-product-advice-panel-in {
	from {
		opacity: 0;
		transform: translateY(14px) scale(0.985);
		filter: blur(6px);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
		filter: blur(0);
	}
}

@keyframes tauwerke-product-advice-overlay-out {
	from {
		opacity: 1;
	}

	to {
		opacity: 0;
	}
}

@keyframes tauwerke-product-advice-panel-out {
	from {
		opacity: 1;
		transform: translateY(0) scale(1);
		filter: blur(0);
	}

	to {
		opacity: 0;
		transform: translateY(14px) scale(0.985);
		filter: blur(6px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tauwerke-product-advice-dialog,
	.tauwerke-product-advice-dialog__panel,
	.tauwerke-product-advice-dialog.is-closing,
	.tauwerke-product-advice-dialog.is-closing .tauwerke-product-advice-dialog__panel {
		animation: none;
	}
}

@media (max-width: 600px) {
	.tauwerke-product-advice-dialog {
		padding: 3vw;
	}

	.tauwerke-product-advice-dialog__panel {
		width: 94vw;
		max-height: 90vh;
	}

}
