/* SAMA – kleine Shop-Bausteine (Warenkorb-Button im Header, Galerie). */

.sama-warenkorb {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	border-radius: var(--sama-radius, 12px);
	background: var(--sama-primaer, #298931);
	color: #fff;
	font-family: var(--sama-schrift, Manrope), system-ui, sans-serif;
	font-weight: 700;
	font-size: 16px;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s;
}
.sama-warenkorb:hover,
.sama-warenkorb:focus { background: var(--sama-primaer-dunkel, #0d4f2b); color: #fff; }
.sama-warenkorb:focus-visible { outline: 3px solid var(--sama-akzent, #298931); outline-offset: 3px; }
.sama-warenkorb__icon { display: inline-flex; }
.sama-warenkorb__zahl {
	display: inline-grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: #fff;
	color: var(--sama-primaer, #298931);
	font-size: 13px;
	font-weight: 800;
}
.sama-warenkorb__zahl.is-leer { display: none; }
@media (max-width: 767px) {
	.sama-warenkorb { padding: 10px 12px; font-size: 14px; }
	.sama-warenkorb__text { display: none; }
}

.sama-galerie { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.sama-galerie__haupt img,
.sama-galerie--leer img {
	display: block;
	width: 100%;
	height: auto;
	/* Ganzes Bild zeigen (Hoch- wie Querformat), Höhe begrenzt. */
	max-height: min(80vh, 760px);
	object-fit: contain;
	border-radius: var(--sama-radius, 12px);
	background: var(--sama-hellgrau, #f5f7f6);
}
.sama-galerie__thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sama-galerie__thumb {
	display: block;
	width: 100%;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	background: none;
	overflow: hidden;
	cursor: pointer;
}
.sama-galerie__thumb img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.sama-galerie__thumb.is-aktiv { border-color: var(--sama-primaer, #298931); }
.sama-galerie__thumb:focus-visible { outline: 3px solid var(--sama-akzent, #298931); outline-offset: 2px; }

.sama-ab-preis { white-space: nowrap; }

/* Produkt-FAQ [sama_produkt_faq] */
.sama-faq { display: flex; flex-direction: column; width: 100%; font-family: var(--sama-schrift, Manrope), system-ui, sans-serif; }
.sama-faq__eintrag { border-bottom: 1px solid var(--sama-linie, #dde3e1); }
.sama-faq__frage {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 18px 0;
	font-weight: 700;
	font-size: 17px;
	color: var(--sama-anthrazit, #0e1f58);
	cursor: pointer;
	list-style: none;
}
.sama-faq__frage::-webkit-details-marker { display: none; }
.sama-faq__frage::after {
	content: "";
	flex: 0 0 12px;
	width: 12px;
	height: 12px;
	border-right: 2px solid var(--sama-primaer, #298931);
	border-bottom: 2px solid var(--sama-primaer, #298931);
	transform: rotate(45deg) translateY(-3px);
	transition: transform 0.15s;
}
.sama-faq__eintrag[open] .sama-faq__frage::after { transform: rotate(-135deg) translateY(-3px); }
.sama-faq__frage:focus-visible { outline: 3px solid var(--sama-akzent, #298931); outline-offset: 2px; }
.sama-faq__antwort { padding: 0 0 18px; color: var(--sama-text-gedaempft, #525866); font-size: 16px; line-height: 1.65; }
.sama-faq__antwort p { margin: 0 0 10px; }
.sama-faq__antwort p:last-child { margin-bottom: 0; }

/* Sprungmarken [sama_anker] – Abstand unter dem Header beim Anspringen. */
.sama-anker { display: block; height: 0; scroll-margin-top: 110px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Rechtlicher Hinweis Maßanfertigung */
.sama-rechtshinweis {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-left: 4px solid var(--sama-akzent, #298931);
	border-radius: 8px;
	background: #fff8ec;
	color: var(--sama-text, #1f2433);
	font-family: var(--sama-schrift, Manrope), system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.55;
}

/* Germanized-Pflichtangaben unter Preisen */
.sama-pflichtangaben { display: block; font-family: var(--sama-schrift, Manrope), system-ui, sans-serif; font-size: 13px; line-height: 1.5; color: var(--sama-text-gedaempft, #525866); }
.sama-pflichtangaben p, .sama-pflichtangaben div { display: inline; margin: 0; }
.sama-pflichtangaben a { color: inherit; text-decoration: underline; }

/* WhatsApp-Beratung ([sama_whatsapp]) */
.sama-whatsapp{display:inline-flex;align-self:flex-start;width:fit-content;max-width:100%;align-items:center;gap:.5em;padding:.75em 1.25em;border-radius:999px;background:#075e54;color:#fff!important;font-weight:700;line-height:1.2;text-decoration:none!important;transition:background .15s}
.sama-whatsapp:hover,.sama-whatsapp:focus-visible{background:#054a42;color:#fff!important}
.sama-whatsapp:focus-visible{outline:3px solid #25d366;outline-offset:2px}
.sama-whatsapp__icon{flex:none}
.sama-whatsapp--link{padding:0;border-radius:0;background:none;color:#075e54!important;font-weight:600;text-decoration:underline!important;text-underline-offset:3px}
.sama-whatsapp--link:hover,.sama-whatsapp--link:focus-visible{background:none;color:#054a42!important}
.sama-whatsapp .screen-reader-text{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.sama-konfigurator .sama-whatsapp--link{display:flex;width:fit-content;margin-top:.75rem}

/* Zahlungsarten-Badges ([sama_zahlungsarten]) */
.sama-zahlarten{display:flex;flex-wrap:wrap;gap:.5rem;margin:0;padding:0;list-style:none}
.sama-zahlart{position:relative;display:flex;align-items:center;justify-content:center;min-width:76px;height:44px;padding:0 .6rem;border-radius:6px;border:1px solid #dfe3ec;background:#fff;color:#1a1f36;font-family:Arial,Helvetica,sans-serif;line-height:1}
.sama-zahlart .screen-reader-text{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.sama-zahlart__logo{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;text-align:center}
.sama-zahlart__logo b,.sama-zahlart__logo i{font-size:15px;font-weight:800;font-style:italic}
.sama-zahlart__logo small{flex-basis:100%;margin-top:2px;font-size:9px;font-weight:600;letter-spacing:.01em;color:#4a4f63}
.sama-zahlart--paypal b,.sama-zahlart--paylater b{color:#003087}
.sama-zahlart--paypal i,.sama-zahlart--paylater i{color:#0079c1}
.sama-zahlart--klarna{background:#ffa8cd;border-color:#ffa8cd}
.sama-zahlart--klarna b{font-style:normal;color:#0b051d}
.sama-zahlart--klarna small{color:#0b051d}
.sama-zahlart--visa b{font-size:18px;letter-spacing:.02em;color:#1a1f71}
.sama-zahlart__kreise{position:relative;display:block;width:34px;height:20px}
.sama-zahlart__kreise::before,.sama-zahlart__kreise::after{content:"";position:absolute;top:0;width:20px;height:20px;border-radius:50%}
.sama-zahlart__kreise::before{left:0;background:#eb001b}
.sama-zahlart__kreise::after{right:0;background:#f79e1b;mix-blend-mode:multiply}
.sama-zahlart--mastercard .sama-zahlart__logo{flex-direction:column;align-items:center}
.sama-zahlart--mastercard small{margin-top:3px;color:#1a1f36}
.sama-zahlart--vorkasse b{font-style:normal;font-size:13px;color:#1a1f36}
.sama-whatsapp--hell,.sama-whatsapp--hell:hover,.sama-whatsapp--hell:focus-visible{color:#fff!important}
.sama-whatsapp--hell:focus-visible{outline-color:#fff}

/* Breadcrumb ([sama_breadcrumb], Rank Math) */
.sama-breadcrumb { font-family: var(--sama-schrift, Manrope), system-ui, sans-serif; font-size: 14px; color: var(--sama-text-gedaempft, #525866); line-height: 1.5; }
.sama-breadcrumb p, .sama-breadcrumb nav { margin: 0; }
.sama-breadcrumb a { color: var(--sama-primaer, #298931); text-decoration: none; }
.sama-breadcrumb a:hover, .sama-breadcrumb a:focus-visible { text-decoration: underline; }
.sama-breadcrumb .separator { margin: 0 6px; color: var(--sama-linie, #c5ccd6); }
.sama-breadcrumb .last { color: var(--sama-anthrazit, #0e1f58); font-weight: 600; }

/* SEO-Text in Kategorien ([sama_kategorie_text]) */
.sama-seo-text { font-family: var(--sama-schrift, Manrope), system-ui, sans-serif; color: var(--sama-text, #2b2f3a); font-size: 17px; line-height: 1.7; max-width: 78ch; }
.sama-seo-text h2 { font-size: clamp(24px, 2vw + 12px, 30px); font-weight: 800; color: var(--sama-anthrazit, #0e1f58); line-height: 1.2; margin: 0 0 14px; }
.sama-seo-text h3 { font-size: 21px; font-weight: 700; color: var(--sama-anthrazit, #0e1f58); margin: 28px 0 10px; }
.sama-seo-text p { margin: 0 0 14px; }
.sama-seo-text ul { margin: 0 0 16px; padding-left: 1.2em; }
.sama-seo-text li { margin-bottom: 6px; }
.sama-seo-text a { color: var(--sama-primaer, #298931); font-weight: 600; }

/* Produktkarten im Shop/Archiv kompakter */
[data-element_type="e-collection-loop-item"] [data-interaction-id="29a5499d"] { font-size: 19px !important; line-height: 1.25; }
[data-element_type="e-collection-loop-item"] [data-interaction-id="3d2c3b62"] { font-size: 14px !important; line-height: 1.5; }
[data-element_type="e-collection-loop-item"] [data-interaction-id="3d2c3b62"] ul { margin: 0; padding-left: 1.1em; }
[data-element_type="e-collection-loop-item"] [data-interaction-id="3d2c3b62"] li { margin-bottom: 2px; }
[data-element_type="e-collection-loop-item"] [data-interaction-id="53092d6f"] .wc-gzd-additional-info { display: inline; margin: 0; }
[data-element_type="e-collection-loop-item"] [data-interaction-id="53092d6f"] .shipping-costs-info::before { content: " · "; }
[data-element_type="e-collection-loop-item"] [data-interaction-id="6d9a308d"] { margin-top: auto !important; }
[data-element_type="e-collection-loop-item"] [data-interaction-id="3a9fff2"] { margin-top: 20px !important; }
