/* Produktseite – einheitliches Layout der Artikelseite */

body.single-product {
	--pd-blau: #094077;
	--pd-orange: #d88301;
	--pd-orange-dunkel: #b86e00;
	--pd-text: #252e32;
	--pd-grau: #5d6b73;
	--pd-linie: #d5dee5;
	--pd-hell: #f6f8fa;
	--pd-radius: 8px;
}

/* ---------- Titel & Breadcrumb ---------- */
.single-product h1.product_title {
	font-size: clamp(28px, 3.2vw, 40px);
	font-weight: 600;
	line-height: 1.2;
	color: var(--pd-text);
}
.single-product .woocommerce-breadcrumb {
	font-size: 13px;
	color: var(--pd-grau);
}
.single-product .woocommerce-breadcrumb a {
	color: var(--pd-grau);
}
.single-product .woocommerce-breadcrumb a:hover {
	color: var(--pd-orange);
}

/* ---------- Bildergalerie ---------- */
/* Hover-Lupe aus (WooCommerce-Zoom und Image Zoom Pro), Klick auf das Bild öffnet weiterhin die Großansicht */
.single-product .woocommerce-product-gallery .zoomImg,
body.single-product .zoomContainer,
body.single-product .zoomLens,
body.single-product .zoomWindowContainer,
body.single-product .zoomWindow {
	display: none !important;
}
.single-product .woocommerce-product-gallery__image {
	position: relative;
}
.single-product .woocommerce-product-gallery__trigger.pd-lupe {
	bottom: auto !important;
	left: auto !important;
	width: 40px !important;
	height: 40px !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	background: #fff !important;
	border: 1px solid var(--pd-linie);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.single-product .woocommerce-product-gallery__trigger.pd-lupe img.emoji {
	width: 18px !important;
	height: 18px !important;
}
/* Angebots-Etikett */
.single-product .dtwpb-woocommerce-page.sale .ts-single-product-image::before {
	content: "Online-Angebot" !important;
	top: 16px !important;
	right: 16px !important;
	width: auto !important;
	height: auto !important;
	padding: 6px 12px !important;
	border-radius: 4px !important;
	background: var(--pd-orange) !important;
	color: #fff !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	z-index: 5 !important;
	pointer-events: none;
}

.single-product .wpb-wiz-thumbnails .wpb-woocommerce-product-gallery__image img {
	border: 1px solid var(--pd-linie) !important;
	border-radius: 6px;
	transition: border-color .15s ease;
}
.single-product .wpb-wiz-thumbnails .wpb-woocommerce-product-gallery__image a:hover img {
	border-color: var(--pd-orange) !important;
}

/* ---------- Kurzbeschreibung ---------- */
.single-product .woocommerce-product-details__short-description p {
	font-size: 17px;
	line-height: 1.65;
	color: var(--pd-text);
	margin: 0 0 14px;
}

/* ---------- Preis ---------- */
.single-product p.dtwpb-price {
	margin: 8px 0 4px;
	line-height: 1.2;
}
.single-product p.dtwpb-price .amount {
	font-size: 34px;
	font-weight: 700;
	color: var(--pd-blau);
}
.single-product p.dtwpb-price ins {
	text-decoration: none;
	background: none;
}
.single-product p.dtwpb-price del {
	opacity: 1;
	margin-right: 10px;
}
.single-product p.dtwpb-price del .amount {
	font-size: 18px;
	font-weight: 400;
	color: var(--pd-grau);
}
.single-product p.dtwpb-price .woocommerce-price-suffix {
	font-size: 14px;
	font-weight: 400;
	color: var(--pd-grau);
}
.single-product.pd-hat-steuerhinweis p.dtwpb-price .woocommerce-price-suffix {
	display: none;
}
.single-product .pd-steuerhinweis p,
.single-product .pd-steuerhinweis small {
	font-size: 14px;
	line-height: 1.5;
	color: var(--pd-grau);
	margin: 0;
}
.single-product .pd-steuerhinweis .vc_row,
.single-product .pd-steuerhinweis .wpb_content_element {
	margin-bottom: 0;
}

/* ---------- Varianten-Auswahl ---------- */
.single-product .ts-single-product-content form.variations_form {
	margin: 24px 0 0 !important;
}
.single-product .ts-single-product-content table.variations {
	display: block;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
}
.single-product .ts-single-product-content table.variations > tbody {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
	width: 100%;
}
.single-product .ts-single-product-content table.variations tr {
	display: block !important;
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
.single-product .ts-single-product-content table.variations td {
	display: block !important;
	width: 100% !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
}
.single-product .ts-single-product-content table.variations td.label {
	margin-bottom: 6px;
}
.single-product .ts-single-product-content table.variations label {
	font-size: 14px;
	font-weight: 600;
	color: var(--pd-text);
}
.single-product .ts-single-product-content table.variations select {
	height: 50px;
	width: 100% !important;
	max-width: none !important;
	padding: 0 36px 0 12px;
	border: 1px solid #b9c6cf;
	border-radius: var(--pd-radius);
	background-color: #fff !important;
	margin: 0 !important;
	min-width: 0 !important;
	font-size: 15px;
	color: var(--pd-text);
}
.single-product .ts-single-product-content table.variations select:focus {
	border-color: var(--pd-blau);
	outline: 2px solid rgba(9, 64, 119, .15);
	outline-offset: 0;
}

/* ---------- Menge & Warenkorb ---------- */
.single-product .dtwpb_single_add_to_cart {
	margin-top: 20px;
}
.single-product .dtwpb_single_add_to_cart form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 12px;
	margin: 0;
}
.single-product .dtwpb_single_add_to_cart form.cart::before,
.single-product .dtwpb_single_add_to_cart form.cart::after,
.single-product .dtwpb_single_add_to_cart form.cart > .clear,
.single-product .dtwpb_single_add_to_cart form.cart > .pr-field-wrap,
.single-product .dtwpb_single_add_to_cart form.cart > wc-order-attribution-inputs {
	display: none;
}
.single-product .dtwpb_single_add_to_cart form.cart > .tier-pricing-summary-table,
.single-product .dtwpb_single_add_to_cart form.cart > .wc-stripe-clear,
.single-product .dtwpb_single_add_to_cart form.cart > .wc-stripe-product-checkout-container {
	flex: 0 0 100%;
}
.single-product .dtwpb_single_add_to_cart .quantity {
	margin: 0 !important;
}
.single-product .dtwpb_single_add_to_cart .quantity .qty {
	width: 76px;
	height: 52px;
	padding: 0 8px;
	border: 1px solid #b9c6cf;
	border-radius: 26px;
	background: #fff;
	font-size: 16px;
	text-align: center;
	color: var(--pd-text);
}
.single-product .dtwpb_single_add_to_cart .single_add_to_cart_button {
	flex: 1 1 220px;
	height: 52px;
	margin: 0 !important;
	padding: 0 28px;
	border: 0;
	border-radius: 26px;
	background: var(--pd-orange);
	color: #fff;
	font-size: 17px;
	font-weight: 600;
	line-height: 52px;
	transition: background-color .15s ease;
}
.single-product .dtwpb_single_add_to_cart .single_add_to_cart_button:hover,
.single-product .dtwpb_single_add_to_cart .single_add_to_cart_button:focus {
	background: var(--pd-orange-dunkel);
	color: #fff;
}
.single-product .dtwpb_single_add_to_cart .single_add_to_cart_button.disabled {
	opacity: .55;
}
.single-product .wc-stripe-product-checkout-container {
	margin-top: 0 !important;
}
.single-product .wc-stripe-product-checkout-container ul {
	margin: 0;
	padding: 0;
}

/* Lagerstatus */
.single-product .ts-single-product-content p.stock {
	display: inline-block;
	margin: 16px 0 0;
	padding: 6px 16px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}
.single-product .ts-single-product-content p.stock.out-of-stock {
	background: #fbe9e7 !important;
	color: #b3261e !important;
}
.single-product .ts-single-product-content p.stock.in-stock {
	background: #e8f4ec !important;
	color: #1e7a3c !important;
}

/* Artikelnummer & Kategorien */
.single-product .ts-single-product-content .product_meta {
	font-size: 13px;
	line-height: 1.6;
	color: var(--pd-grau);
	margin: 0;
}
.single-product .ts-single-product-content .product_meta:first-of-type {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid var(--pd-linie);
}

/* ---------- Ausführliche Beschreibung ---------- */
.single-product #elementpushback h2 {
	font-size: clamp(24px, 2.4vw, 30px);
	font-weight: 600;
	line-height: 1.25;
	color: var(--pd-blau);
	margin: 36px 0 12px;
}
.single-product #elementpushback > .vc_column-inner > .wpb_wrapper > .wpb_text_column:first-of-type h2 {
	margin-top: 0;
}
.single-product #elementpushback h3 {
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--pd-blau);
	margin: 30px 0 10px;
}
.single-product #elementpushback h4 {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--pd-text);
	margin: 24px 0 10px;
	text-align: left !important;
}
.single-product #elementpushback :is(h2, h3, h4) :is(strong, b, big) {
	font-size: inherit;
	font-weight: inherit;
}
.single-product #elementpushback p,
.single-product #elementpushback li {
	font-size: 16px;
	line-height: 1.7;
	color: var(--pd-text);
}
.single-product #elementpushback p {
	margin: 0 0 14px;
}
.single-product #elementpushback ul,
.single-product #elementpushback ol {
	margin: 0 0 18px;
	padding-left: 1.3em;
}
.single-product #elementpushback li {
	margin: 4px 0;
}
.single-product #elementpushback ul li::marker {
	color: var(--pd-orange);
}
.single-product #elementpushback a {
	color: var(--pd-orange);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.single-product #elementpushback a:hover {
	color: var(--pd-orange-dunkel);
}

/* Tabellen in der Beschreibung */
.single-product .dtwpb-woocommerce-product-description table {
	width: 100%;
	max-width: 680px;
	margin: 16px 0 24px;
	border: 1px solid var(--pd-linie);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: var(--pd-radius);
	overflow: hidden;
	background: #fff;
}
.single-product .dtwpb-woocommerce-product-description table td,
.single-product .dtwpb-woocommerce-product-description table th {
	padding: 10px 14px;
	border: 0 !important;
	border-bottom: 1px solid var(--pd-linie) !important;
	background-color: #fff !important;
	font-size: 15px;
	line-height: 1.5;
	text-align: left !important;
	vertical-align: top;
	color: var(--pd-text);
}
.single-product .dtwpb-woocommerce-product-description table tr:last-child > * {
	border-bottom: 0 !important;
}
.single-product .dtwpb-woocommerce-product-description table tr:nth-child(even) > td {
	background-color: var(--pd-hell) !important;
}
.single-product .dtwpb-woocommerce-product-description table td:first-child:not(:only-child):not(.pd-tabkopf) {
	width: 40%;
	font-weight: 600;
}
.single-product .dtwpb-woocommerce-product-description table td :is(b, strong, u) {
	font-weight: inherit;
	text-decoration: none;
}
.single-product .dtwpb-woocommerce-product-description table td:only-child,
.single-product .dtwpb-woocommerce-product-description table td.pd-tabkopf {
	font-weight: 600;
	color: var(--pd-blau);
	background-color: var(--pd-hell) !important;
}

/* Info-Kästen (WPBakery-Spalten mit Hintergrund) */
.single-product #elementpushback .vc_row.pd-karten {
	display: flex;
	flex-wrap: wrap;
	row-gap: 16px;
	margin: 20px -8px 8px !important;
	padding: 0 !important;
}
.single-product #elementpushback .vc_row.pd-karten::before,
.single-product #elementpushback .vc_row.pd-karten::after {
	display: none;
}
.single-product #elementpushback .vc_row.pd-karten > .vc_col-has-fill {
	display: flex;
	float: none;
	padding: 0 8px !important;
}
.single-product #elementpushback .vc_row.pd-karten > .vc_col-has-fill > .vc_column-inner {
	flex: 1 1 auto;
	margin: 0 !important;
	padding: 22px 20px !important;
	background: #fff !important;
	border: 1px solid var(--pd-linie) !important;
	border-radius: var(--pd-radius) !important;
}
.single-product #elementpushback .vc_row.pd-karten > .vc_col-has-fill .vc_empty_space {
	display: none;
}
.single-product #elementpushback .vc_row.pd-karten > .vc_col-has-fill p {
	font-size: 15px;
	line-height: 1.6;
	margin: 0 0 8px;
}
.single-product #elementpushback .vc_row.pd-karten > .vc_col-has-fill p:last-child {
	margin-bottom: 0;
}
.single-product #elementpushback .vc_row.pd-karten > .vc_col-has-fill .wpb_content_element {
	margin-bottom: 0;
}
.single-product #elementpushback .vc_row.pd-karten > :not(.vc_col-has-fill) {
	flex-basis: 100%;
	min-height: 0;
}

/* Leere Elemente (per JS markiert) */
.single-product .pd-leer {
	display: none !important;
}

/* ---------- Ähnliche Artikel ---------- */
.single-product section.related ul.products li.product .woocommerce-loop-product__title {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--pd-text);
	min-height: 2.7em;
}
.single-product section.related ul.products li.product .price {
	font-size: 18px;
	font-weight: 700;
	color: var(--pd-blau);
}
.single-product section.related ul.products li.product .price del .amount {
	font-size: 14px;
	font-weight: 400;
	color: var(--pd-grau);
}
.single-product section.related ul.products li.product .woocommerce-price-suffix {
	font-size: 13px;
	font-weight: 400;
	color: var(--pd-grau);
}
.single-product section.related ul.products li.product .vc_btn3 {
	border-radius: 26px;
	font-weight: 600;
}

/* ---------- Mobil ---------- */
@media (max-width: 767px) {
	.single-product .woocommerce-product-details__short-description p {
		font-size: 16px;
	}
	.single-product p.dtwpb-price .amount {
		font-size: 28px;
	}
	.single-product #elementpushback .vc_row.pd-karten > .vc_col-has-fill {
		flex: 0 0 100%;
		max-width: 100%;
	}
	.single-product .dtwpb-woocommerce-product-description table td:first-child:not(:only-child) {
		width: 45%;
	}
}
