/* emotioncards Shop-Design
 * Feinschliff, der sich in Elementor nicht einstellen laesst. Farben und
 * Schrift kommen ausschliesslich aus den globalen Kit-Variablen:
 *   primary = Schwarz, secondary = Weiss, text = Hellgrau (#E2E2E2 als Linie),
 *   accent = Sand, b1ded45 = Braun, ef3e70d = Dunkelbraun, 512ab0b = Mittelbraun.
 * Radien: Pille 50px fuer Bedienelemente, 10px fuer Bilder und Flaechen,
 * wie auf der Startseite.
 *
 * Die Variablen haengen bewusst am body: Elementor definiert seine Kit-Variablen
 * auf body.elementor-kit-XXXX, auf :root sind sie unbekannt und jede Ableitung
 * waere ungueltig. */

body {
	--emc-schwarz: var(--e-global-color-primary);
	--emc-weiss: var(--e-global-color-secondary);
	--emc-linie: var(--e-global-color-text);
	--emc-sand: var(--e-global-color-accent);
	--emc-braun: var(--e-global-color-b1ded45);
	--emc-dunkel: var(--e-global-color-ef3e70d);
	--emc-mittel: var(--e-global-color-512ab0b);
	--emc-schrift: var(--e-global-typography-text-font-family, "Montserrat"), sans-serif;
	--emc-radius: 10px;
	--emc-pille: 50px;
	--emc-wechsel: .25s ease;
}

/* ---------- Brotkrumen ------------------------------------------------- */
.elementor-widget.emc-breadcrumb .woocommerce-breadcrumb,
.woocommerce .elementor-widget.emc-breadcrumb .woocommerce-breadcrumb {
	margin: 0;
	font-family: var(--emc-schrift);
	font-size: 13px;
	line-height: 1.5;
	color: var(--emc-braun);
}
.elementor-widget.emc-breadcrumb .woocommerce-breadcrumb a {
	color: var(--emc-braun);
	text-decoration: none;
	transition: color var(--emc-wechsel);
}
.elementor-widget.emc-breadcrumb .woocommerce-breadcrumb a:hover { color: var(--emc-schwarz); }

/* ---------- Kaufbox: Kurztext ------------------------------------------ */
.elementor-widget.emc-kurztext p { margin: 0 0 10px; line-height: 1.7; }
.elementor-widget.emc-kurztext p:last-child { margin-bottom: 0; }

/* ---------- Kaufbox: Variationen (kein grauer Kasten mehr) ------------- */
/* Das Theme (hello-elementor reset.css) faerbt jede ungerade Tabellenzeile
 * grau und rahmt Zellen ein. Fuer die Variationsauswahl heben wir das auf
 * und stellen Label und Auswahl untereinander. */
.woocommerce .elementor-widget.emc-warenkorb form.cart table.variations,
.woocommerce .elementor-widget.emc-warenkorb form.cart table.variations tbody,
.woocommerce .elementor-widget.emc-warenkorb form.cart table.variations tr,
.woocommerce .elementor-widget.emc-warenkorb form.cart table.variations th,
.woocommerce .elementor-widget.emc-warenkorb form.cart table.variations td {
	display: block;
	width: 100%;
	border: 0;
	background: transparent !important;
	padding: 0;
	margin: 0;
	line-height: 1.4;
	font-size: inherit;
}
.woocommerce .elementor-widget.emc-warenkorb form.cart table.variations { margin: 0 0 20px; }
.woocommerce .elementor-widget.emc-warenkorb form.cart table.variations tr + tr { margin-top: 15px; }
.woocommerce .elementor-widget.emc-warenkorb form.cart table.variations th.label { padding-bottom: 8px; text-align: left; }
.woocommerce .elementor-widget.emc-warenkorb form.cart table.variations td.value { text-align: left; }
.woocommerce .elementor-widget.emc-warenkorb form.cart table.variations th.label label { cursor: default; }
.woocommerce .elementor-widget.emc-warenkorb form.cart table.variations td.value { position: relative; }
.woocommerce .elementor-widget.emc-warenkorb form.cart table.variations td.value select {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	height: 52px !important;
	margin: 0 !important;
	padding: 0 48px 0 20px !important;
	font-family: var(--emc-schrift);
	font-size: 16px !important;
	color: var(--emc-schwarz) !important;
	background-color: var(--emc-weiss) !important;
	background-image: none !important;
	border: 1px solid var(--emc-linie) !important;
	border-radius: var(--emc-pille) !important;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	transition: border-color var(--emc-wechsel), box-shadow var(--emc-wechsel);
}
.woocommerce .elementor-widget.emc-warenkorb form.cart table.variations td.value select:hover { border-color: var(--emc-braun) !important; }
.woocommerce .elementor-widget.emc-warenkorb form.cart table.variations td.value select:focus {
	outline: none;
	border-color: var(--emc-braun) !important;
	box-shadow: 0 0 0 3px var(--emc-sand);
}
/* Pfeil rechts in der Auswahl, gezeichnet mit Kit-Farbe statt Grafik */
.woocommerce .elementor-widget.emc-warenkorb form.cart table.variations td.value::before {
	content: "";
	position: absolute;
	right: 22px;
	top: 20px;
	width: 8px;
	height: 8px;
	border-right: 1.5px solid var(--emc-braun);
	border-bottom: 1.5px solid var(--emc-braun);
	transform: rotate(45deg);
	pointer-events: none;
}
.woocommerce .elementor-widget.emc-warenkorb form.cart .reset_variations {
	display: inline-block;
	margin-top: 8px;
	font-size: 13px;
	color: var(--emc-braun);
	text-decoration: none;
}
.woocommerce .elementor-widget.emc-warenkorb form.cart .reset_variations:hover { color: var(--emc-schwarz); }
.woocommerce .elementor-widget.emc-warenkorb form.cart .single_variation_wrap .woocommerce-variation { margin: 0 0 15px; }
.woocommerce .elementor-widget.emc-warenkorb form.cart .woocommerce-variation-price .price {
	font-family: var(--emc-schrift);
	font-size: 18px;
	font-weight: 600;
	color: var(--emc-schwarz);
}
.woocommerce .elementor-widget.emc-warenkorb form.cart .woocommerce-variation-availability p { margin: 5px 0 0; font-size: 14px; }
.woocommerce .elementor-widget.emc-warenkorb form.cart { margin: 0; }

/* ---------- Kaufbox: Menge und Button ---------------------------------- */
/* Elementor packt Menge und Button in .e-atc-qty-button-holder; der Abstand
 * muss dort sitzen, sonst kleben beide aneinander. */
.woocommerce .elementor-widget.emc-warenkorb form.cart .e-atc-qty-button-holder,
.woocommerce .elementor-widget.emc-warenkorb form.cart .woocommerce-variation-add-to-cart,
.woocommerce .elementor-widget.emc-warenkorb form.cart:not(.variations_form):not(.grouped_form) {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 0;
}
.woocommerce .elementor-widget.emc-warenkorb form.cart .button.single_add_to_cart_button {
	flex: 1 1 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	margin: 0 0 0 15px !important;
	white-space: nowrap;
	transition: background-color var(--emc-wechsel), color var(--emc-wechsel), border-color var(--emc-wechsel);
}
.woocommerce .elementor-widget.emc-warenkorb form.cart .button.single_add_to_cart_button.loading { opacity: .7; }
.woocommerce .elementor-widget.emc-warenkorb form.cart .button.single_add_to_cart_button::after { top: auto; }

/* Mengenfeld: ohne JavaScript ein schlichtes Pillenfeld ... */
.woocommerce .elementor-widget.emc-warenkorb form.cart div.quantity { float: none; margin: 0; }
.woocommerce .elementor-widget.emc-warenkorb form.cart div.quantity input.qty {
	height: 52px;
	min-width: 72px;
	text-align: center;
	font-family: var(--emc-schrift);
	font-size: 16px;
	color: var(--emc-schwarz);
	background: var(--emc-weiss);
}
/* ... mit JavaScript ein Mengenwaehler mit Minus und Plus. */
.quantity.emc-stepper {
	display: inline-flex;
	align-items: center;
	height: 52px;
	background: var(--emc-weiss);
	border: 1px solid var(--emc-linie);
	border-radius: var(--emc-pille);
	overflow: hidden;
	transition: border-color var(--emc-wechsel);
}
.quantity.emc-stepper:focus-within { border-color: var(--emc-braun); }
.quantity.emc-stepper input.qty,
.woocommerce .quantity.emc-stepper input.qty,
.woocommerce .elementor-widget.emc-warenkorb form.cart div.quantity.emc-stepper input.qty {
	width: 48px !important;
	min-width: 0;
	height: 100% !important;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	text-align: center;
	font-family: var(--emc-schrift);
	font-size: 16px;
	color: var(--emc-schwarz);
	-moz-appearance: textfield;
	appearance: textfield;
}
.quantity.emc-stepper input.qty::-webkit-outer-spin-button,
.quantity.emc-stepper input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.emc-qty-taste,
.woocommerce .elementor-widget.emc-warenkorb form.cart .quantity button.emc-qty-taste,
.woocommerce .quantity button.emc-qty-taste {
	flex: 0 0 44px !important;
	width: 44px !important;
	min-width: 0 !important;
	height: 100% !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	color: var(--emc-schwarz) !important;
	font-family: var(--emc-schrift) !important;
	font-size: 20px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color var(--emc-wechsel), color var(--emc-wechsel);
}
.woocommerce .quantity button.emc-qty-taste:hover { background: var(--emc-sand) !important; }
.emc-qty-taste:focus-visible { outline: 2px solid var(--emc-braun); outline-offset: -2px; }

/* Link "Warenkorb anzeigen", der nach dem Hinzufuegen erscheint */
.woocommerce .elementor-widget.emc-warenkorb .added_to_cart {
	display: inline-block;
	margin-top: 12px;
	font-size: 14px;
	color: var(--emc-braun);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Kaufbox: Vorteile ------------------------------------------ */
.elementor-widget.emc-usp .elementor-icon-list-item { font-size: 14px; }
.elementor-widget.emc-usp .elementor-icon-list-icon { color: var(--emc-braun); }

/* ---------- Produktdetails als Tabelle --------------------------------- */
.elementor-widget.emc-produktdetails .elementor-widget-container {
	font-size: 15px;
	line-height: 1.7;
}
.elementor-widget.emc-produktdetails h2,
.elementor-widget.emc-produktdetails h3,
.elementor-widget.emc-produktdetails h4 {
	margin: 25px 0 10px;
	font-family: var(--emc-schrift);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--emc-braun);
}
.elementor-widget.emc-produktdetails > .elementor-widget-container > :first-child { margin-top: 0; }
.elementor-widget.emc-produktdetails p { margin: 0 0 15px; }
.elementor-widget.emc-produktdetails p:last-child { margin-bottom: 0; }
.elementor-widget.emc-produktdetails ul,
.elementor-widget.emc-produktdetails ol {
	list-style: none;
	margin: 0 0 15px;
	padding: 0;
	border-top: 1px solid var(--emc-linie);
}
.elementor-widget.emc-produktdetails ul li,
.elementor-widget.emc-produktdetails ol li {
	margin: 0;
	padding: 10px 0;
	border-bottom: 1px solid var(--emc-linie);
}
/* Zeilen der Form "<strong>Format:</strong> 115 x 170 mm" werden zur Tabelle */
.elementor-widget.emc-produktdetails ul li:has(> strong:first-child) {
	display: grid;
	grid-template-columns: minmax(120px, 36%) 1fr;
	gap: 15px;
}
.elementor-widget.emc-produktdetails ul li > strong:first-child {
	font-weight: 500;
	color: var(--emc-braun);
}

/* ---------- Bildergalerie ---------------------------------------------- */
/* Elementor Pro rahmt die Produktseite nicht in div.product ein, deshalb
 * fehlen WooCommerces Galerie-Regeln. Das Zoom-Bild (1600 px, absolut
 * positioniert) lief am Handy nach rechts ueber die Seite hinaus. */
.elementor-widget-woocommerce-product-images .woocommerce-product-gallery__image,
.elementor-widget-woocommerce-product-images .woocommerce-product-gallery__wrapper {
	position: relative;
	overflow: hidden;
}
.elementor-widget-woocommerce-product-images .woocommerce-product-gallery__wrapper .zoomImg { opacity: 0; }
/* Auf Touch-Geraeten gibt es keinen Hover-Zoom, das Bild bleibt weg. */
@media (hover: none) {
	.elementor-widget-woocommerce-product-images .zoomImg { display: none !important; }
}
.elementor-widget-woocommerce-product-images .woocommerce-product-gallery .flex-control-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
}
.elementor-widget-woocommerce-product-images .woocommerce-product-gallery .flex-control-thumbs li {
	float: none;
	width: calc((100% - 30px) / 4) !important;
	margin: 0;
	padding: 0 !important;
}
.elementor-widget-woocommerce-product-images .woocommerce-product-gallery .flex-control-thumbs li img {
	display: block;
	width: 100%;
	border-radius: 6px;
}
.elementor-widget-woocommerce-product-images .woocommerce-product-gallery .flex-control-thumbs li img {
	opacity: .5;
	transition: opacity var(--emc-wechsel);
}
.elementor-widget-woocommerce-product-images .woocommerce-product-gallery .flex-control-thumbs li img.flex-active,
.elementor-widget-woocommerce-product-images .woocommerce-product-gallery .flex-control-thumbs li img:hover { opacity: 1; }
.elementor-widget-woocommerce-product-images .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
	background: var(--emc-weiss);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}

/* ---------- Produktraster (Archiv, Kategorieseiten, Empfehlungen) ------- */
.elementor-wc-products ul.products li.product,
.elementor-products-grid ul.products li.product {
	position: relative;
	transition: transform .3s ease;
}
.elementor-wc-products ul.products li.product img,
.elementor-products-grid ul.products li.product img {
	border-radius: var(--emc-radius);
	transition: box-shadow .3s ease, transform .3s ease;
}
.elementor-wc-products ul.products li.product:hover img,
.elementor-products-grid ul.products li.product:hover img {
	transform: translateY(-4px);
	box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .3);
}
.elementor-wc-products ul.products li.product .woocommerce-loop-product__title,
.elementor-products-grid ul.products li.product .woocommerce-loop-product__title {
	line-height: 1.35;
	transition: color var(--emc-wechsel);
}
.elementor-wc-products ul.products li.product:hover .woocommerce-loop-product__title,
.elementor-products-grid ul.products li.product:hover .woocommerce-loop-product__title { color: var(--emc-braun); }
.elementor-wc-products ul.products li.product a,
.elementor-products-grid ul.products li.product a { text-decoration: none; }
.elementor-wc-products ul.products li.product .button,
.elementor-products-grid ul.products li.product .button {
	transition: background-color var(--emc-wechsel), color var(--emc-wechsel);
}

/* Sortierung ueber dem Raster als Pille */
.woocommerce .woocommerce-ordering {
	position: relative;
	margin: 0 0 25px;
}
.woocommerce .woocommerce-ordering select {
	appearance: none !important;
	-webkit-appearance: none !important;
	margin: 0;
	padding: 0 44px 0 18px !important;
	height: 44px !important;
	font-family: var(--emc-schrift);
	font-size: 14px;
	color: var(--emc-schwarz);
	background: var(--emc-weiss) !important;
	border: 1px solid var(--emc-linie) !important;
	border-radius: var(--emc-pille) !important;
	cursor: pointer;
	transition: border-color var(--emc-wechsel);
}
.woocommerce .woocommerce-ordering select:hover,
.woocommerce .woocommerce-ordering select:focus { border-color: var(--emc-braun); outline: none; }
.woocommerce .woocommerce-ordering::after {
	content: "";
	position: absolute;
	right: 19px;
	top: 16px;
	width: 7px;
	height: 7px;
	border-right: 1.5px solid var(--emc-braun);
	border-bottom: 1.5px solid var(--emc-braun);
	transform: rotate(45deg);
	pointer-events: none;
}

/* Seitenzahlen */
.woocommerce nav.woocommerce-pagination ul.page-numbers {
	display: inline-flex;
	gap: 6px;
	border: 0;
	margin: 0;
}
.woocommerce nav.woocommerce-pagination ul.page-numbers li { border: 0; }
.woocommerce nav.woocommerce-pagination ul.page-numbers li a,
.woocommerce nav.woocommerce-pagination ul.page-numbers li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border-radius: var(--emc-pille);
	font-family: var(--emc-schrift);
	line-height: 1;
	transition: background-color var(--emc-wechsel), color var(--emc-wechsel);
}

/* ---------- Hinweise (in den Warenkorb gelegt, Fehler) ---------------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	background: var(--emc-sand);
	color: var(--emc-schwarz);
	border: 0;
	border-radius: var(--emc-radius);
	padding: 15px 20px 15px 50px;
	font-family: var(--emc-schrift);
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before { color: var(--emc-braun); top: 15px; left: 20px; }
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
	background: var(--emc-dunkel);
	color: var(--emc-weiss);
	border-radius: var(--emc-pille);
	padding: 8px 18px;
	font-weight: 400;
	transition: background-color var(--emc-wechsel);
}
.woocommerce-message .button:hover,
.woocommerce-info .button:hover,
.woocommerce-error .button:hover { background: var(--emc-braun); color: var(--emc-weiss); }

/* ---------- Tastatur-Fokus sichtbar, aber ruhig ------------------------ */
.woocommerce :is(a, button, select, input):focus-visible {
	outline: 2px solid var(--emc-braun);
	outline-offset: 2px;
}

/* Trenner in den Brotkrumen */
.elementor-widget.emc-breadcrumb .emc-breadcrumb-trenner { margin: 0 8px; opacity: .6; }

/* ---------- Tablet und Handy (Audit 05.09.2026) ------------------------ */
/* Galerie: nichts darf breiter als die Seite werden, auch nicht der Slider
 * vor seiner Initialisierung. */
.elementor-widget-woocommerce-product-images .woocommerce-product-gallery { overflow: hidden; }
/* Seitenzahlen umbrechen statt ueber den Rand zu laufen (Alle Karten: 15 Seiten) */
.woocommerce nav.woocommerce-pagination ul.page-numbers {
	flex-wrap: wrap;
	justify-content: center;
	row-gap: 6px;
}
/* Lange Links (Datenschutz, Cookie-Richtlinie) brechen um statt zu ueberlaufen */
.elementor-widget-container a,
.elementor-widget-container span,
.elementor-widget-container li,
.elementor-widget-container p,
.cmplz-document,
.cmplz-document * {
	overflow-wrap: anywhere;
}

/* Bis 768 px setzt woocommerce-smallscreen.css jede Kachel auf 48 % Breite
 * und float:left. Elementors Raster ist bereits zweispaltig, dadurch waren
 * die Kategoriekacheln nur halb so breit wie ihre Spalte. */
@media (max-width: 768px) {
	.elementor-widget-wc-categories ul.products li.product,
	.elementor-widget-wc-categories ul.products li.product-category,
	.elementor-wc-products ul.products li.product,
	.elementor-products-grid ul.products li.product {
		width: auto !important;
		float: none !important;
		margin: 0 !important;
	}
	.elementor-widget-wc-categories ul.products li.product img { width: 100%; }
}
/* Handy: Produktkarten kompakter, Preis in einer Zeile, Buttons kleiner */
@media (max-width: 767px) {
	.elementor-wc-products ul.products,
	.elementor-products-grid ul.products { --grid-column-gap: 15px; }
	.elementor-wc-products ul.products li.product .woocommerce-loop-product__title,
	.elementor-products-grid ul.products li.product .woocommerce-loop-product__title {
		font-size: 14px !important;
		line-height: 1.3;
	}
	.elementor-wc-products ul.products li.product .price,
	.elementor-products-grid ul.products li.product .price {
		font-size: 14px !important;
		white-space: nowrap;
	}
	.elementor-wc-products ul.products li.product .button,
	.elementor-products-grid ul.products li.product .button {
		font-size: 14px !important;
		padding: 9px 16px !important;
	}
}

/* Brotkrumen: umbrechen statt in einer Zeile ueber den Rand zu laufen
 * (Produktnamen sind lang); am Handy etwas kleiner. */
.elementor-widget.emc-breadcrumb .woocommerce-breadcrumb {
	white-space: normal;
	overflow-wrap: anywhere;
}
@media (max-width: 767px) {
	.elementor-widget.emc-breadcrumb .woocommerce-breadcrumb { font-size: 12px; line-height: 1.6; }
}

/* ---------- Gewaehrleistungshinweis (Tivaos-Plugin) ------------------- */
/* Der Knopf "Hinweis anzeigen" hat im Plugin 6 px linken Rand fuer den Fall,
 * dass er neben dem Text steht. In der Kaufbox bricht er fast immer um und
 * stand dann eingerueckt. Jetzt immer auf eigener Zeile, buendig mit dem Text.
 * body davor: gleiche Spezifitaet wie das Plugin reicht nicht, dessen Regeln
 * stehen inline im Kopf hinter unserem Stylesheet. */
body .tv-gewaehr a.tv-gewaehr__knopf {
	display: table;
	margin: 8px 0 0 0;
}
