
@keyframes ehd-neon-pulse {
    from {
        border-color: rgba(var(--ehd-neon-rgb, 198, 255, 0), 0.15);
        box-shadow: 0 2px 8px rgba(var(--ehd-neon-rgb, 198, 255, 0), 0.08), 0 8px 24px -4px rgba(0, 0, 0, 0.19);
    }
    to {
        border-color: rgba(var(--ehd-neon-rgb, 198, 255, 0), 0.75);
        box-shadow: 0 2px 26px rgba(var(--ehd-neon-rgb, 198, 255, 0), 0.40), 0 0 28px 2px rgba(var(--ehd-neon-rgb, 198, 255, 0), 0.15), 0 8px 24px -4px rgba(0, 0, 0, 0.19);
    }
}

/* Alle Kacheln mit Animation */
.wp-block-getwid-content-slider-slide .wp-block-group.has-background,
.woocommerce ul.products li.product,
ul.products li.product,
li.product[data-neon-rgb] {
    border: 1.5px solid rgba(var(--ehd-neon-rgb, 198, 255, 0), 0.15) !important;
    border-radius: 16px !important;
    animation: ehd-neon-pulse 1.4s ease-in-out infinite alternate !important;
}

/* Delays pro Kachel-Slug (redundant mit inline, aber als Fallback) */
.ehd-tile-bonding   { animation-delay: 0.00s !important; }
.ehd-tile-tape      { animation-delay: 0.15s !important; }
.ehd-tile-tressen   { animation-delay: 0.30s !important; }
.ehd-tile-clipin    { animation-delay: 0.45s !important; }
.ehd-tile-rohhaare  { animation-delay: 0.60s !important; }
.ehd-tile-peruecken { animation-delay: 0.75s !important; }
.ehd-tile-farbring  { animation-delay: 0.90s !important; }

@media (prefers-reduced-motion: reduce) {
    .wp-block-getwid-content-slider-slide .wp-block-group.has-background,
    ul.products li.product {
        animation: none !important;
        border-color: rgba(var(--ehd-neon-rgb, 198, 255, 0), 0.55) !important;
        box-shadow: 0 0 14px rgba(var(--ehd-neon-rgb, 198, 255, 0), 0.28) !important;
    }
}

/* ── Bordeaux-Pulse nur für Sofort-Lieferbar-Kachel + Shop-Promo ── */
@keyframes ehd-bordeaux-pulse {
    from {
        border-color: rgba(99, 44, 59, 0.25);
        box-shadow: 0 2px 8px rgba(99, 44, 59, 0.15), 0 8px 24px -4px rgba(0, 0, 0, 0.08);
    }
    to {
        border-color: rgba(99, 44, 59, 0.85);
        box-shadow: 0 2px 24px rgba(99, 44, 59, 0.45), 0 0 28px 2px rgba(99, 44, 59, 0.22), 0 8px 24px -4px rgba(0, 0, 0, 0.08);
    }
}
.ehd-sofort-lieferbar-tile,
.ehd-sofort-lieferbar-promo {
    border: 1.5px solid rgba(99, 44, 59, 0.25) !important;
    border-radius: 16px !important;
    animation: ehd-bordeaux-pulse 1.6s ease-in-out infinite alternate !important;
}
@media (prefers-reduced-motion: reduce) {
    .ehd-sofort-lieferbar-tile,
    .ehd-sofort-lieferbar-promo {
        animation: none !important;
        border-color: rgba(99, 44, 59, 0.55) !important;
        box-shadow: 0 0 14px rgba(99, 44, 59, 0.28) !important;
    }
}


/* ehd-inline: ehd-konfig-einheitlich-ordnung */

/* 1) Ränder: WAPF rückt den ganzen Block 5 px nach links (.wapf-wrapper{margin:0 0 20px -5px;width:100%}) → links 21 px, rechts 31 px. Jetzt beidseitig gleich. */
html body form.cart .wapf-wrapper{margin-left:-5px!important;margin-right:-5px!important;width:auto!important}
/* 2) Spitzenfülle: exakt das Raster des Strukturfinders (.ehd-sf-ober) statt --ke-spalten → gleich große Kacheln wie die Struktur, Rechner und Handy */
/* Spezifität wie die alte Regel oben (.wapf-field-container.field-…), sonst gewinnt am Rechner weiter das 6er-Raster */
/* :not(#ehd-nie) = ID-Spezifität, sonst gewinnt die allgemeine Kachel-Regel oben mit ihren acht :not(.field-…) (Spezifität 0,10,2) und erzwingt 6 Spalten */
html body form.cart .wapf-field-container.field-0aa9a3f:not(#ehd-nie) .wapf-image-swatch-wrapper:not(#ehd-nie){grid-template-columns:repeat(auto-fill,minmax(118px,1fr))!important;gap:10px!important}
/* 06.11.2026 Bulut: „Fülle-Kacheln zu klein“ → am Handy drei nebeneinander (es sind genau drei), damit die Spitzen erkennbar sind */
@media(max-width:780px){html body form.cart .wapf-field-container.field-0aa9a3f:not(#ehd-nie) .wapf-image-swatch-wrapper:not(#ehd-nie){grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}}
/* 3) Spitzenfülle: Prozent unten auf der Kachel wie die Namen beim Strukturfinder (data-ehd-kurz setzt das Skript unten aus aria-label). Der Tooltip, der am Handy die Überschrift verdeckte, ist dafür aus. */
html body form.cart .field-0aa9a3f .wapf-swatch label{position:relative;display:block}
html body form.cart .field-0aa9a3f .wapf-swatch label[data-ehd-kurz]::after{content:attr(data-ehd-kurz);position:absolute;left:0;right:0;bottom:0;padding:16px 34px 6px 7px;text-align:left;color:#fff;font-weight:700;font-size:12px;line-height:1.15;background:linear-gradient(to top,rgba(0,0,0,.78),rgba(0,0,0,0));pointer-events:none}
@media(max-width:780px){html body form.cart .field-0aa9a3f .wapf-swatch label[data-ehd-kurz]::after{font-size:11px;padding:14px 30px 5px 5px}}
/* 06.11.2026 Bulut: „Fülle-Kacheln von der Größe her nicht stimmig, kein gutes Padding“ → wie der Strukturfinder: 3-px-Rahmen, 14 px Radius,
   Bild bildfüllend ohne Verzerrung (vorher width/height 100 % ohne object-fit = gestaucht), Lupe oben rechts, Prozent unten über die volle Breite, am Handy einzeilig */
html body form.cart .field-0aa9a3f .wapf-swatch.wapf-swatch--image{border:3px solid #e9dfe1!important;border-radius:14px!important;overflow:hidden!important;background:#fff!important;padding:0!important;margin:0!important;box-shadow:none!important;position:relative}
html body form.cart .field-0aa9a3f .wapf-swatch.wapf-swatch--image.wapf-checked{border-color:#632c3b!important;box-shadow:0 0 0 3px rgba(99,44,59,.18)!important}
html body form.cart .field-0aa9a3f .wapf-swatch label,html body form.cart .field-0aa9a3f .wapf-swatch label>div{width:100%!important;height:100%!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important}
html body form.cart .field-0aa9a3f .wapf-swatch img{object-fit:cover!important;object-position:center 65%!important;display:block!important;border-radius:0!important}
html body form.cart .field-0aa9a3f .wapf-swatch label[data-ehd-kurz]::after{padding:18px 6px 7px 6px!important;text-align:center!important;white-space:nowrap!important;font-size:12.5px!important}
html body form.cart .field-0aa9a3f .ehd-fv-lupe{top:6px!important;right:6px!important;bottom:auto!important;left:auto!important}
@media(max-width:780px){html body form.cart .field-0aa9a3f .wapf-swatch label[data-ehd-kurz]::after{font-size:11px!important;padding:14px 3px 5px 3px!important}html body form.cart .field-0aa9a3f .ehd-fv-lupe{width:24px!important;height:24px!important;line-height:24px!important;font-size:12px!important;top:4px!important;right:4px!important}}
/* 4) Haarfarben-Stil: drei Knöpfe, gleiche Höhe auch wenn einer zwei Zeilen braucht */
html body form.cart .field-3a69955 .wapf-swatch-wrapper{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:stretch!important}
html body form.cart .field-3a69955 .wapf-swatch{height:auto!important;min-height:48px!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center;padding:8px 6px!important}
/* 5) Schieber (Methode, Grundmenge, Länge): Luft zwischen Pfeil und erster Kachel */
html body form.cart .ehd-len-wrap .cfvsw-swatches-container,html body form.cart .ehd-meth-wrap .wapf-swatch-wrapper{padding-left:8px!important;padding-right:8px!important;scroll-padding:0 8px}
/* Methoden-Schieber liegt am Handy 5 px weiter links als der Längen-Schieber (anderer Container) → linker Pfeil war am Rand angeschnitten */
@media(max-width:780px){html body form.cart .ehd-meth-wrap{padding-left:9px!important}}


/* ehd-inline: ehd-settle-cover-css */

/* Bis "settled": Variations-Swatches (Laenge/Menge/Variante) ausgeblendet, Platz bleibt erhalten. */
.cfvsw-swatches-container{ transition: opacity .25s ease; }
body:not(.ehd-config-settled) .cfvsw-swatches-container{ opacity: 0 !important; }
/* Preis erst nach dem Beruhigen zeigen (Platz bleibt durch min-height reserviert -> kein Springen). */
body:not(.ehd-config-settled) .wapf-product-totals[style*="display:none"],
body:not(.ehd-config-settled) .wapf-product-totals[style*="display: none"]{
	display: block !important; visibility: hidden !important; min-height: 96px;
}
body:not(.ehd-config-settled) .wapf-product-totals{ visibility: hidden !important; }


/* ehd-inline: ehd-app-promo-base-css */

/* ─── Promo-Card Basis-Styles (Light Mode) + Mobile-Polish ─── */

/* "Laden im" / "JETZT BEI" Mini-Texte komplett ausblenden — schlanker Look:
   nur Logo + "App Store" / "Google Play". Layout wird kompakter. */
.ehd-app-promo-badges .ehd-app-badge .ehd-badge-small,
.ehd-app-banner-badges .ehd-app-badge .ehd-badge-small{
	display: none !important;
}
/* "App Store" / "Google Play" als alleinige Beschriftung größer + zentriert */
.ehd-app-promo-badges .ehd-app-badge .ehd-badge-big,
.ehd-app-banner-badges .ehd-app-badge .ehd-badge-big{
	font-size: 14px !important;
	font-weight: 700 !important;
	letter-spacing: 0.2px !important;
	white-space: nowrap !important;
	color: #ffffff !important;
}
/* Badge: kompakt horizontal, NICHT stretchen — Logo+Name nebeneinander */
.ehd-app-promo-badges .ehd-app-badge,
.ehd-app-banner-badges .ehd-app-badge{
	display: inline-flex !important;
	flex-direction: row !important;
	flex-shrink: 0 !important;
	flex-grow: 0 !important;
	width: auto !important;
	max-width: 180px !important;
	min-width: 0 !important;
	height: auto !important;
	align-items: center !important;
	justify-content: flex-start !important;
}
.ehd-app-promo-badges .ehd-app-badge .ehd-badge-text,
.ehd-app-banner-badges .ehd-app-badge .ehd-badge-text{
	display: inline-flex !important;
	flex-direction: row !important;
	align-items: center !important;
	width: auto !important;
	max-width: none !important;
}
/* Icon hart fixieren — nichts stretcht es jemals */
.ehd-app-promo-badges .ehd-app-badge .ehd-badge-icon,
.ehd-app-promo-badges .ehd-app-badge svg.ehd-badge-icon,
.ehd-app-banner-badges .ehd-app-badge .ehd-badge-icon,
.ehd-app-banner-badges .ehd-app-badge svg.ehd-badge-icon{
	width: 22px !important;
	height: 22px !important;
	max-width: 22px !important;
	max-height: 22px !important;
	min-width: 22px !important;
	min-height: 22px !important;
	flex-shrink: 0 !important;
	flex-grow: 0 !important;
	display: inline-block !important;
}
/* Promo-Badges-Container: Buttons nebeneinander, nicht gestretcht */
.ehd-app-promo-badges{
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	gap: 10px !important;
	align-items: center !important;
	justify-content: flex-start !important;
	width: 100% !important;
}

/* LIGHT MODE: Badge schwarz, Text weiß — explizit gegen Dark-Mode-Toggle-Leak */
.ehd-app-promo-card .ehd-app-badge,
.ehd-app-banner .ehd-app-badge{
	background: #000 !important;
	color: #ffffff !important;
	border: 1px solid rgba(255,255,255,0.18);
}
.ehd-app-promo-card .ehd-app-badge .ehd-badge-big,
.ehd-app-banner .ehd-app-badge .ehd-badge-big,
.ehd-app-promo-card .ehd-app-badge .ehd-badge-text,
.ehd-app-banner .ehd-app-badge .ehd-badge-text{
	color: #ffffff !important;
}
.ehd-app-promo-card .ehd-app-badge .ehd-badge-icon--apple,
.ehd-app-banner .ehd-app-badge .ehd-badge-icon--apple{
	color: #ffffff !important;
}

.ehd-app-promo-card{
	margin: 18px 0;
	padding: 24px 28px;
	background: #fffaf3;
	border: 1px solid #f0e6d4;
	border-radius: 14px;
	max-width: 660px;
}
.ehd-app-promo-title{
	font-size: 19px;
	font-weight: 800;
	color: #2a0e12;
	margin: 0 0 6px;
	display: flex;
	align-items: center;
	gap: 9px;
	line-height: 1.25;
}
.ehd-app-promo-star{ color: #B8860B; font-size: 18px; }
.ehd-app-promo-sub{
	font-size: 14.5px;
	color: #5a5550;
	margin: 0 0 18px;
	line-height: 1.5;
}
.ehd-app-promo-badges{ display: flex; gap: 10px; flex-wrap: wrap; }

/* Mobile (<=600px) — Badges + Title deutlich kompakter */
@media (max-width: 600px){
	.ehd-app-promo-card{ padding: 18px 18px; margin: 14px 0; }
	.ehd-app-promo-title{ font-size: 16px; gap: 7px; margin: 0 0 5px; }
	.ehd-app-promo-star{ font-size: 15px; }
	.ehd-app-promo-sub{ font-size: 13px; margin: 0 0 14px; line-height: 1.45; }
	.ehd-app-promo-badges{ gap: 8px; }
	.ehd-app-promo-badges .ehd-app-badge{ padding: 6px 10px; gap: 6px; border-radius: 7px; }
	.ehd-app-promo-badges .ehd-badge-icon{ width: 18px; height: 18px; }
	.ehd-app-promo-badges .ehd-badge-small{ font-size: 8px; letter-spacing: 0.4px; }
	.ehd-app-promo-badges .ehd-badge-big{ font-size: 11.5px; letter-spacing: 0.1px; }
}

/* Sehr kleine Phones (<=380px, iPhone SE) — minimal Badge-Größe */
@media (max-width: 380px){
	.ehd-app-promo-card{ padding: 16px 14px; }
	.ehd-app-promo-title{ font-size: 15px; }
	.ehd-app-promo-sub{ font-size: 12.5px; margin-bottom: 12px; }
	.ehd-app-promo-badges .ehd-app-badge{ padding: 5px 9px; gap: 5px; }
	.ehd-app-promo-badges .ehd-badge-icon{ width: 16px; height: 16px; }
	.ehd-app-promo-badges .ehd-badge-big{ font-size: 11px; }
	.ehd-app-promo-badges .ehd-badge-small{ font-size: 7.5px; }
}


/* ehd-inline: ehd-app-promo-darkmode-css */

/* Dark Mode: Promo-Card kriegt Bordeaux-BG + weißer Text — sonst unsichtbar */
html[data-theme="dark"] .ehd-app-promo-card,
html[data-theme="dark"] .ehd-app-promo-card{
	background: linear-gradient(135deg, #3a1820 0%, #4a1f29 50%, #6B1D3A 100%) !important;
	border: 1px solid rgba(212,175,55,0.40) !important;
	box-shadow: 0 4px 20px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06) !important;
}
html[data-theme="dark"] .ehd-app-promo-title,
html[data-theme="dark"] .ehd-app-promo-title{
	color: #ffffff !important;
}
html[data-theme="dark"] .ehd-app-promo-sub,
html[data-theme="dark"] .ehd-app-promo-sub{
	color: #FAE3D2 !important;
	opacity: 0.92;
}
html[data-theme="dark"] .ehd-app-promo-star,
html[data-theme="dark"] .ehd-app-promo-star{
	color: #FFD24A !important;
	filter: drop-shadow(0 0 6px rgba(255,210,74,0.55));
}
/* Auch das Badge selbst (App Store + Google Play) bleibt schwarz mit goldenem Rand
   damit's hell genug zum Klicken aussieht */
html[data-theme="dark"] .ehd-app-promo-badges .ehd-app-badge,
html[data-theme="dark"] .ehd-app-promo-badges .ehd-app-badge{
	background: #000 !important;
	border-color: rgba(212,175,55,0.45) !important;
	color: #ffffff !important;
}
/* EXPLIZIT: Inner-Text-Spans auch weiß setzen — sonst werden sie vom darkmode-Plugin verdunkelt */
html[data-theme="dark"] .ehd-app-promo-badges .ehd-app-badge .ehd-badge-text,
html[data-theme="dark"] .ehd-app-promo-badges .ehd-app-badge .ehd-badge-small,
html[data-theme="dark"] .ehd-app-promo-badges .ehd-app-badge .ehd-badge-big,
html[data-theme="dark"] .ehd-app-promo-badges .ehd-app-badge .ehd-badge-text,
html[data-theme="dark"] .ehd-app-promo-badges .ehd-app-badge .ehd-badge-small,
html[data-theme="dark"] .ehd-app-promo-badges .ehd-app-badge .ehd-badge-big{
	color: #ffffff !important;
	opacity: 1 !important;
}
/* Apple-Logo ist currentColor → wird automatisch weiß. Google-Play-Icon hat eigene Farben. */
html[data-theme="dark"] .ehd-app-promo-badges .ehd-app-badge .ehd-badge-icon--apple,
html[data-theme="dark"] .ehd-app-promo-badges .ehd-app-badge .ehd-badge-icon--apple{
	color: #ffffff !important;
}
html[data-theme="dark"] .ehd-app-promo-badges .ehd-app-badge:hover,
html[data-theme="dark"] .ehd-app-promo-badges .ehd-app-badge:hover{
	background: #1a1a1a !important;
	border-color: rgba(212,175,55,0.75) !important;
}


/* ehd-inline: ehd-darkmode-lagerware-css */

/* ─── Lagerware Cards Dark-Mode Fix ─────────────────────────── */

/* Hero-Bereich */
html[data-theme="dark"] .ehlw-hero{
	color: #FAE3D2;
}
html[data-theme="dark"] .ehlw-hero h2{
	color: #ffffff;
}
html[data-theme="dark"] .ehlw-hero h2 .accent{
	background: linear-gradient(135deg, #FFD24A 0%, #B8860B 100%) !important;
	-webkit-background-clip: text !important;
	background-clip: text !important;
	color: transparent !important;
}
html[data-theme="dark"] .ehlw-hero p{
	color: #d8c8b3 !important;
	opacity: 1 !important;
}
html[data-theme="dark"] .ehlw-hero-badge{
	background: #D4AF37 !important;
	color: #1A0608 !important;
	box-shadow: 0 6px 18px rgba(212,175,55,0.30) !important;
}

/* Filter-Chips */
html[data-theme="dark"] .ehlw-chip{
	background: rgba(212,175,55,0.06) !important;
	border-color: rgba(212,175,55,0.28) !important;
	color: #FAE3D2 !important;
}
html[data-theme="dark"] .ehlw-chip:hover{
	background: rgba(212,175,55,0.14) !important;
}
html[data-theme="dark"] .ehlw-chip.active{
	background: #D4AF37 !important;
	color: #1A0608 !important;
	border-color: #FFD24A !important;
	box-shadow: 0 4px 14px rgba(212,175,55,0.30) !important;
}

/* Die Cards selbst */
html[data-theme="dark"] .ehlw-card{
	background: linear-gradient(135deg, #2a0e12 0%, #3a1820 60%, #4a1f29 100%) !important;
	border: 1px solid rgba(212,175,55,0.30) !important;
	box-shadow: 0 4px 20px rgba(0,0,0,0.45) !important;
}
html[data-theme="dark"] .ehlw-card:hover{
	box-shadow: 0 20px 50px rgba(0,0,0,0.60), 0 0 0 1px rgba(212,175,55,0.50) !important;
}

/* Image-Header (oft cream BG) */
html[data-theme="dark"] .ehlw-card-head{
	background: rgba(0,0,0,0.20) !important;
}
html[data-theme="dark"] .ehlw-card-slide{
	background: linear-gradient(135deg, #1a0608 0%, #2a0e12 100%) !important;
}
html[data-theme="dark"] .ehlw-card-img-holder{
	background: linear-gradient(135deg, #1a0608 0%, #2a0e12 100%) !important;
	color: rgba(255,255,255,0.25) !important;
}

/* Card Body — Text muss lesbar bleiben */
html[data-theme="dark"] .ehlw-card-body{
	color: #ffffff !important;
	background: transparent !important;
}
html[data-theme="dark"] .ehlw-card-body h2,
html[data-theme="dark"] .ehlw-card-body h3,
html[data-theme="dark"] .ehlw-card-body h4,
html[data-theme="dark"] .ehlw-card-body .title,
html[data-theme="dark"] .ehlw-card-title{
	color: #ffffff !important;
}
html[data-theme="dark"] .ehlw-card-body p,
html[data-theme="dark"] .ehlw-card-body span,
html[data-theme="dark"] .ehlw-card-body div,
html[data-theme="dark"] .ehlw-card-body li,
html[data-theme="dark"] .ehlw-card-meta,
html[data-theme="dark"] .ehlw-card-detail{
	color: #FAE3D2 !important;
}

/* Preis prominent in Gold */
html[data-theme="dark"] .ehlw-card-preis,
html[data-theme="dark"] .ehlw-card-price,
html[data-theme="dark"] .ehlw-card .preis,
html[data-theme="dark"] .ehlw-card-body strong{
	color: #FFD24A !important;
}

/* Buttons im Card-Footer */
html[data-theme="dark"] .ehlw-card-buttons a,
html[data-theme="dark"] .ehlw-card-buttons button,
html[data-theme="dark"] .ehlw-btn,
html[data-theme="dark"] .ehlw-card .btn{
	background: #6B1D3A !important;
	color: #ffffff !important;
	border: 1px solid #D4AF37 !important;
}
html[data-theme="dark"] .ehlw-card-buttons a:hover,
html[data-theme="dark"] .ehlw-card-buttons button:hover,
html[data-theme="dark"] .ehlw-btn:hover{
	background: #8B2E50 !important;
	border-color: #FFD24A !important;
}

/* Image-Slider Dots — sichtbar bleiben */
html[data-theme="dark"] .ehlw-card-dots{
	background: rgba(0,0,0,0.75) !important;
}

/* "Verfügbar"-Badge / Status */
html[data-theme="dark"] .ehlw-status,
html[data-theme="dark"] .ehlw-card-status{
	background: rgba(212,175,55,0.15) !important;
	color: #FFD24A !important;
	border: 1px solid rgba(212,175,55,0.45) !important;
}


/* ehd-inline: ehd-darkmode-wc-cards-css */

/* ─── Produktkarten Dark-Mode Fix ────────────────────────────── */

/* Produkt-Titel (h2/h3 Post-Title) — meist dunkel auf hellem Card-BG */
html[data-theme="dark"] .wp-block-woocommerce-product-collection .wp-block-post-title,
html[data-theme="dark"] .wp-block-woocommerce-product-collection .wp-block-post-title a,
html[data-theme="dark"] .wp-block-woocommerce-product-template .wp-block-post-title,
html[data-theme="dark"] .wp-block-woocommerce-product-template .wp-block-post-title a,
html[data-theme="dark"] .woocommerce-loop-product__title,
html[data-theme="dark"] .wc-block-grid__product-title,
html[data-theme="dark"] .wc-block-product-name{
	color: #FAE3D2 !important;
}
html[data-theme="dark"] .wp-block-woocommerce-product-collection .wp-block-post-title a:hover,
html[data-theme="dark"] .wp-block-woocommerce-product-template .wp-block-post-title a:hover{
	color: #FFD24A !important;
}

/* Preis-Anzeige in den Karten */
html[data-theme="dark"] .wp-block-woocommerce-product-collection .wp-block-woocommerce-product-price,
html[data-theme="dark"] .wp-block-woocommerce-product-collection .wp-block-woocommerce-product-price .woocommerce-Price-amount,
html[data-theme="dark"] .wp-block-woocommerce-product-collection .wp-block-woocommerce-product-price bdi,
html[data-theme="dark"] .wp-block-woocommerce-product-template .wp-block-woocommerce-product-price,
html[data-theme="dark"] .wp-block-woocommerce-product-template .wp-block-woocommerce-product-price .woocommerce-Price-amount,
html[data-theme="dark"] .wp-block-woocommerce-product-template .wp-block-woocommerce-product-price bdi,
html[data-theme="dark"] .wc-block-components-product-price,
html[data-theme="dark"] .wc-block-components-product-price .wc-block-formatted-money-amount,
html[data-theme="dark"] .wc-block-grid__product-price{
	color: #ffffff !important;
}
/* "Ab"-Präfix bei Preis-Range — soll dezent aber lesbar bleiben */
html[data-theme="dark"] .wp-block-woocommerce-product-price .price{
	color: #ffffff !important;
}

/* SKU / Kategorien / Stocks unter dem Produkt */
html[data-theme="dark"] .wp-block-woocommerce-product-collection .wc-block-components-product-rating,
html[data-theme="dark"] .wp-block-woocommerce-product-template .wc-block-components-product-rating,
html[data-theme="dark"] .stock,
html[data-theme="dark"] .product_meta,
html[data-theme="dark"] .product_meta a{
	color: #d8c8b3 !important;
}
html[data-theme="dark"] .stock.in-stock{
	color: #6BD68B !important;
}

/* Produkt-Karten-Container — meist transparent, aber für Sicherheit
   subtile Hover-Highlight im Dark Mode */
html[data-theme="dark"] .wp-block-woocommerce-product-template .wc-block-product:hover,
html[data-theme="dark"] .wp-block-woocommerce-product-collection .wc-block-product:hover{
	background: rgba(212,175,55,0.04) !important;
}

/* Sale-Badge bleibt Bordeaux mit weißer Schrift */
html[data-theme="dark"] .onsale,
html[data-theme="dark"] .wc-block-components-product-sale-badge{
	background: #6B1D3A !important;
	color: #ffffff !important;
	border: 1px solid #D4AF37 !important;
}

/* "In den Warenkorb"-Button — sicherstellen dass er lesbar bleibt
   (manche Themes setzen ihn dunkel-auf-dunkel im Dark Mode) */
html[data-theme="dark"] .wp-block-woocommerce-product-button .wp-block-button__link,
html[data-theme="dark"] .wp-block-woocommerce-product-template .wp-block-button__link,
html[data-theme="dark"] .button.add_to_cart_button,
html[data-theme="dark"] .button.product_type_simple{
	background: #6B1D3A !important;
	color: #ffffff !important;
	border: 1px solid #D4AF37 !important;
}
html[data-theme="dark"] .wp-block-woocommerce-product-button .wp-block-button__link:hover,
html[data-theme="dark"] .button.add_to_cart_button:hover{
	background: #8B2E50 !important;
	border-color: #FFD24A !important;
}

/* Lieferzeit-Hinweise und MwSt-Zeile unter dem Preis */
html[data-theme="dark"] .wc-gzd-additional-info{
	color: #d8c8b3 !important;
}

/* Kategorie/Tag-Filter oben auf der Archiv-Seite */
html[data-theme="dark"] .woocommerce-products-header__title,
html[data-theme="dark"] .term-description{
	color: #FAE3D2 !important;
}


/* ehd-inline: ehd-lockenart-darstellung */

body form.cart .field-b912d47 > .ehd-lk-box{position:relative;margin:14px 0 4px!important;padding:14px!important;border:1px solid rgba(99,44,59,.22);border-radius:12px;background:rgba(99,44,59,.05);width:100%!important;max-width:100%;min-width:0;box-sizing:border-box}
body form.cart .wapf-field-container.field-b912d47{min-width:0!important;max-width:100%!important;flex:0 0 100%!important;width:100%!important;box-sizing:border-box}
body form.cart .ehd-lk-box .wapf-field-input{min-width:0;max-width:100%;overflow:hidden}
body form.cart .field-b912d47 > .ehd-lk-box::before{content:"";position:absolute;top:-8px;left:var(--ehd-lk-pfeil,40px);width:14px;height:14px;transform:translateX(-50%) rotate(45deg);background:inherit;border-left:1px solid rgba(99,44,59,.22);border-top:1px solid rgba(99,44,59,.22);backdrop-filter:blur(8px)}
body form.cart .ehd-lk-box .wapf-field-label{margin-bottom:4px!important}
body form.cart .ehd-lk-box .wapf-field-label label > span{font-size:0!important}
body form.cart .ehd-lk-box .wapf-field-label label > span::before{content:attr(data-ehd-titel);font-size:15px}
body form.cart .ehd-lk-box .wapf-field-description{font-size:12.5px!important;line-height:1.4!important;margin-bottom:10px!important;opacity:.85}
body form.cart .ehd-lk-box .wapf-swatch-wrapper{display:flex!important;flex-wrap:wrap!important;gap:10px!important;overflow:visible!important;padding:2px 2px 4px!important;width:0!important;min-width:100%!important;max-width:100%!important;box-sizing:border-box;grid-template-columns:none!important;scrollbar-width:thin}
body form.cart .ehd-lk-box .wapf-swatch{flex:0 0 var(--ehd-lk-kachel,68px)!important;width:var(--ehd-lk-kachel,68px)!important;min-width:var(--ehd-lk-kachel,68px)!important;max-width:var(--ehd-lk-kachel,68px)!important;height:var(--ehd-lk-kachel,68px)!important;aspect-ratio:auto!important;position:relative;overflow:hidden;border-radius:10px!important;border-width:2px!important;scroll-snap-align:start;margin:0!important}
body form.cart .ehd-lk-box .wapf-swatch > label,body form.cart .ehd-lk-box .wapf-swatch > label > div:not(.wapf-tt-content){display:block!important;width:100%!important;height:100%!important;padding:0!important;margin:0!important}
body form.cart .ehd-lk-box .wapf-swatch img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;border-radius:0!important;padding:0!important}
body form.cart .ehd-lk-box .wapf-swatch > label > .wapf-tt-content,body form.cart .ehd-lk-box .wapf-pricing-hint,body form.cart .ehd-lk-box .ehd-sdg-badge{display:none!important}
body form.cart .ehd-lk-box .ehd-lk-name{position:absolute;left:0;right:0;bottom:0;padding:14px 4px 5px;font-size:clamp(10px,calc(var(--ehd-lk-kachel,68px)*.12),16px);line-height:1.1;font-weight:700;text-align:center;color:#fff;background:linear-gradient(to top,rgba(0,0,0,.85),rgba(0,0,0,0));pointer-events:none}
body form.cart .ehd-lk-box .wapf-swatch.ehd-lk-text{flex-basis:var(--ehd-lk-kachel,92px)!important;width:var(--ehd-lk-kachel,92px)!important;min-width:var(--ehd-lk-kachel,92px)!important;max-width:var(--ehd-lk-kachel,92px)!important;background:#632c3b}
body form.cart .ehd-lk-box .wapf-swatch.ehd-lk-text,body form.cart .ehd-lk-box .ehd-lk-text > label,body form.cart .ehd-lk-box .ehd-lk-text > label > div{background:#632c3b!important}
body form.cart .ehd-lk-box .ehd-lk-text > label > div{position:relative}
body form.cart .ehd-lk-box .ehd-lk-text img{display:none!important}
body form.cart .ehd-lk-box .ehd-lk-text .ehd-lk-name{top:0;display:flex;align-items:center;justify-content:center;padding:6px;background:none;font-size:clamp(11px,calc(var(--ehd-lk-kachel,68px)*.085),15px);line-height:1.25}
body form.cart .ehd-lk-box .wapf-swatch.wapf-checked{border-color:#632c3b!important;box-shadow:0 0 0 2px rgba(99,44,59,.25)!important}
@media(max-width:780px){
body form.cart .ehd-lk-box .wapf-swatch{flex-basis:var(--ehd-lk-kachel,62px)!important;width:var(--ehd-lk-kachel,62px)!important;min-width:var(--ehd-lk-kachel,62px)!important;max-width:var(--ehd-lk-kachel,62px)!important;height:var(--ehd-lk-kachel,62px)!important}
body form.cart .ehd-lk-box .wapf-swatch.ehd-lk-text{flex-basis:var(--ehd-lk-kachel,86px)!important;width:var(--ehd-lk-kachel,86px)!important;min-width:var(--ehd-lk-kachel,86px)!important;max-width:var(--ehd-lk-kachel,86px)!important}
}


/* ehd-inline: ehd-hc-grid-fix */

/* === Base: Gallery-Items dürfen NIE flex-grow nutzen (sonst letzte Reihe = full-width) === */
.hc-overview.wp-block-gallery.has-nested-images figure.wp-block-image,
.hc-overview.wp-block-gallery.has-nested-images.is-layout-flex figure.wp-block-image{
    flex-grow: 0 !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* === Container: Padding/Margin auf 0 damit volle Breite nutzbar === */
.hc-overview.wp-block-gallery.has-nested-images{
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* === Desktop: 6 Spalten === */
.hc-overview.wp-block-gallery.has-nested-images.columns-6 figure.wp-block-image,
body .hc-overview.wp-block-gallery.has-nested-images.columns-6.is-layout-flex figure.wp-block-image{
    flex: 0 0 calc((100% - 5 * var(--wp--style--unstable-gallery-gap, 16px)) / 6) !important;
    max-width: calc((100% - 5 * var(--wp--style--unstable-gallery-gap, 16px)) / 6) !important;
    width: calc((100% - 5 * var(--wp--style--unstable-gallery-gap, 16px)) / 6) !important;
}

/* === Tablet/Mobile: 4 Spalten === */
@media (max-width: 1024px){
    .hc-overview.wp-block-gallery.has-nested-images.columns-6 figure.wp-block-image,
    body .hc-overview.wp-block-gallery.has-nested-images.columns-6.is-layout-flex figure.wp-block-image{
        flex: 0 0 calc((100% - 3 * var(--wp--style--unstable-gallery-gap, 16px)) / 4) !important;
        max-width: calc((100% - 3 * var(--wp--style--unstable-gallery-gap, 16px)) / 4) !important;
        width: calc((100% - 3 * var(--wp--style--unstable-gallery-gap, 16px)) / 4) !important;
    }
}
@media (max-width: 781px){
    .hc-overview.wp-block-gallery.has-nested-images{
        --wp--style--unstable-gallery-gap: 8px !important;
        gap: 8px !important;
    }
    .hc-overview.wp-block-gallery.has-nested-images.columns-6 figure.wp-block-image,
    body .hc-overview.wp-block-gallery.has-nested-images.columns-6.is-layout-flex figure.wp-block-image{
        flex: 0 0 calc((100% - 3 * 8px) / 4) !important;
        max-width: calc((100% - 3 * 8px) / 4) !important;
        width: calc((100% - 3 * 8px) / 4) !important;
    }
}
@media (max-width: 480px){
    .hc-overview.wp-block-gallery.has-nested-images{
        --wp--style--unstable-gallery-gap: 6px !important;
        gap: 6px !important;
    }
    .hc-overview.wp-block-gallery.has-nested-images.columns-6 figure.wp-block-image,
    body .hc-overview.wp-block-gallery.has-nested-images.columns-6.is-layout-flex figure.wp-block-image{
        flex: 0 0 calc((100% - 3 * 6px) / 4) !important;
        max-width: calc((100% - 3 * 6px) / 4) !important;
        width: calc((100% - 3 * 6px) / 4) !important;
    }
}
@media (max-width: 340px){
    /* Notfall-Fallback: bei sehr kleinen Screens lieber 3 statt 4 (sonst werden Bilder unleserlich) */
    .hc-overview.wp-block-gallery.has-nested-images.columns-6 figure.wp-block-image,
    body .hc-overview.wp-block-gallery.has-nested-images.columns-6.is-layout-flex figure.wp-block-image{
        flex: 0 0 calc((100% - 2 * 6px) / 3) !important;
        max-width: calc((100% - 2 * 6px) / 3) !important;
        width: calc((100% - 2 * 6px) / 3) !important;
    }
}

/* === Inner-img immer 100% des figure === */
.hc-overview.wp-block-gallery.has-nested-images figure.wp-block-image img{
    width: 100% !important;
    height: auto !important;
    display: block !important;
}


/* ehd-inline: ehd-konfig-einheitlich */

body form.cart{--ke-bild:102px;--ke-luecke:8px;--ke-spalten:6}
@media(max-width:780px){body form.cart{--ke-bild:calc((100vw - 74px)/4);--ke-spalten:4}}

/* Alle Foto-Kacheln außer den Farbfeldern: gleiche Größe, gleiche Lücke */
body form.cart .wapf-field-image-swatch:not(.ke-farbe):not(.field-eddb75f):not(.field-eee0d6e):not(.field-c1a03ee):not(.field-debf11a):not(.field-ef3a87c):not(.field-677c713):not(.field-ca244a4) .wapf-swatch-wrapper{gap:var(--ke-luecke)!important}
body form.cart .wapf-field-image-swatch:not(.field-lkart1):not(.field-lkwel1):not(.field-lkwel2):not(.field-lkwel3):not(.field-lkglat1):not(.field-lkdau1):not(.field-eddb75f):not(.field-eee0d6e):not(.field-c1a03ee):not(.field-debf11a):not(.field-ef3a87c):not(.field-677c713):not(.field-ca244a4) .wapf-swatch-wrapper{grid-template-columns:repeat(var(--ke-spalten),minmax(0,1fr))!important}

/* Methode: gleiche Größe im Schieber */
body form.cart .ehd-meth-wrap .wapf-swatch{width:var(--ke-bild)!important;min-width:var(--ke-bild)!important;max-width:var(--ke-bild)!important;flex:0 0 var(--ke-bild)!important}
body form.cart .ehd-meth-wrap .wapf-swatch-wrapper{gap:var(--ke-luecke)!important}
body form.cart .ehd-meth-wrap .wapf-swatch img,body form.cart .ehd-meth-wrap .wapf-swatch label,body form.cart .ehd-meth-wrap .wapf-swatch label > div{width:100%!important;max-width:none!important;height:100%!important}

/* Spitzenfülle: Regel des alten Layouts aufheben */
body form.cart .wapf-field-container.field-0aa9a3f .wapf-image-swatch-wrapper{grid-template-columns:repeat(var(--ke-spalten),minmax(0,1fr))!important;gap:var(--ke-luecke)!important}
body form.cart .wapf-field-container.field-0aa9a3f .wapf-image-swatch-wrapper .wapf-swatch.wapf-swatch--image{width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;aspect-ratio:1/1!important;flex:none!important}
body form.cart .field-0aa9a3f .wapf-swatch img{width:100%!important;height:100%!important;max-width:none!important}

/* Halo-Bild wie die anderen Kacheln */
body form.cart .ehd-halo-img{width:var(--ke-bild)!important;max-width:var(--ke-bild)!important;height:var(--ke-bild)!important;object-fit:cover}

/* Auswahl: Rahmen gleich dick, Bild bleibt gleich groß */
body form.cart .wapf-swatch--image{border-width:2px!important}
body form.cart .field-4ea126e .wapf-swatch{min-height:48px!important}
body form.cart .wapf-swatch--image.wapf-checked{box-shadow:0 0 0 1px rgb(99,44,59),0 0 0 3px rgba(99,44,59,.15)!important}

/* Farbfelder: am Handy 7 statt 8 je Reihe, besser zu treffen */
@media(max-width:780px){
body form.cart .field-eddb75f .wapf-swatch-wrapper,body form.cart .field-eee0d6e .wapf-swatch-wrapper,body form.cart .field-c1a03ee .wapf-swatch-wrapper,body form.cart .field-debf11a .wapf-swatch-wrapper,body form.cart .field-ef3a87c .wapf-swatch-wrapper,body form.cart .field-677c713 .wapf-swatch-wrapper,body form.cart .field-ca244a4 .wapf-swatch-wrapper{grid-template-columns:repeat(7,minmax(0,1fr))!important}
}

/* Haarfarben-Stil */
body form.cart .field-3a69955 .wapf-swatch-wrapper{gap:var(--ke-luecke)!important}
body form.cart .field-3a69955 .wapf-swatch{min-height:48px!important;height:48px!important}
@media(max-width:780px){body form.cart .field-3a69955 .wapf-swatch{height:auto!important;min-height:48px!important}}

/* Zusatzmenge über die ganze Breite */
body form.cart .ehd-zm-coll .ehd-zm-toggle,body form.cart .ehd-zm-coll .wapf-field-input{max-width:none!important;width:100%!important}

/* Verarbeitung: gleich breite Knöpfe */
body form.cart .field-4ea126e .wapf-swatch-wrapper{display:grid!important;grid-template-columns:1fr!important;gap:var(--ke-luecke)!important}
body form.cart .field-4ea126e .wapf-swatch{width:100%!important;max-width:none!important;margin:0!important}

/* Hinweisboxen: ein Stil */
body form.cart .ehd-wellen-hinweis,body form.cart .ehd-kw-info{background:#fbf7f3!important;border:1px solid rgba(99,44,59,.18)!important;border-left-width:1px!important;border-radius:12px!important;padding:12px 14px!important;font-size:14px!important;line-height:1.5!important}

/* Ihre Auswahl: Name und Wert auf einer Linie */
.ehd-prod-summary li{align-items:center!important}
.ehd-prod-summary li .lbl,.ehd-prod-summary li .val,.ehd-prod-summary li .val-wrap{margin-top:0!important;margin-bottom:0!important;line-height:1.35!important}


/* ehd-inline: ehd-produkt-abstaende */

form.cart{--ehd-feld-abstand:24px}
/* Feld zu Feld */
form.cart .wapf-field-container{padding-bottom:var(--ehd-feld-abstand)!important}
form.cart .ehd-methode-oben{margin-bottom:0!important}
/* Methode: der Karussell-Block bringt selbst 8 px Luft mit */
form.cart .ehd-methode-oben .wapf-field-group>.wapf-field-container.wapf-field-image-swatch:first-child{padding-bottom:calc(var(--ehd-feld-abstand) - 8px)!important}
/* Chips: Abstand nur noch zwischen den Chips, kein Rand mehr nach dem letzten */
form.cart .wapf-field-text-swatch:not(.ehd-zm-coll):not(.field-b7e1c34):not(.field-3a69955):not(.field-0aa9a3f) .wapf-swatch-wrapper:not(.ehd-tb-kacheln){gap:10px!important}
form.cart .wapf-field-text-swatch:not(.ehd-zm-coll):not(.field-b7e1c34):not(.field-3a69955):not(.field-0aa9a3f) .wapf-swatch-wrapper:not(.ehd-tb-kacheln) .wapf-swatch--text{margin:0!important}
/* Ankreuz-Felder und Hinweis-Kasten am Feldende bringen sonst eigene Luft mit */
form.cart .wapf-field-checkboxes .wapf-field-input{margin-bottom:-10px!important}
form.cart .wapf-field-container .ehd-kw-info:last-child{margin-bottom:0!important}
/* Zugeklappter Wellen-Hinweis: am Handy blieben 26 px leerer Innenrand stehen */
form.cart .ehd-wellen-hint:not(.is-open){padding-top:0!important;padding-bottom:0!important;margin-top:0!important;margin-bottom:0!important;border-width:0!important}
/* Karten zwischen den Feldern */
form.cart .ehd-wm{margin:0 0 var(--ehd-feld-abstand)!important}
form.cart .ehd-tb{margin:12px 0 0!important}
/* Grundmenge und Länge */
body form.cart table.variations{margin:0!important}
body form.cart table.variations th.label{padding-top:0!important}
body form.cart table.variations td.value{padding-bottom:var(--ehd-feld-abstand)!important}
body form.cart table.variations .ehd-len-wrap{margin-bottom:0!important}
body form.cart table.variations .reset_variations{display:inline-block;margin-top:8px;line-height:1.2;height:auto!important}

