/*
Theme Name: messbar Child
Template: blocksy
Version: 0.10.0
Description: Design B "Dark Tech" fuer messbar.shop
*/
html:root {
  --theme-palette-color-1: #22C55E;
  --theme-palette-color-2: #16A34A;
  --theme-palette-color-3: #CBD5E1;
  --theme-palette-color-4: #E6EDF3;
  --theme-palette-color-5: #1F2A37;
  --theme-palette-color-6: #121821;
  --theme-palette-color-7: #0B0F14;
  --theme-palette-color-8: #0B0F14;
  --theme-text-color: #CBD5E1;
  --theme-headings-color: #E6EDF3;
  --theme-link-initial-color: #E6EDF3;
  --theme-link-hover-color: #22C55E;
  --theme-border-color: #1F2A37;
  --theme-button-background-initial-color: #22C55E;
  --theme-button-background-hover-color: #16A34A;
  --theme-button-text-initial-color: #04130A;
  --theme-button-text-hover-color: #04130A;
  --theme-button-border-radius: 8px;
  --theme-form-field-background-initial-color: #121821;
  --theme-form-field-background-focus-color: #121821;
  --theme-form-field-border-initial-color: #1F2A37;
  --theme-form-field-border-focus-color: #22C55E;
  --theme-form-text-initial-color: #E6EDF3;
  --theme-form-text-focus-color: #E6EDF3;
  --theme-font-family: Inter, system-ui, sans-serif;
  --mb-mono: "JetBrains Mono", ui-monospace, monospace;
  --mb-surface: #121821;
  --mb-muted: #94A3B8;
}
body { background-color: #0B0F14; color: var(--theme-text-color); font-family: var(--theme-font-family); }
.ct-header [data-row], .ct-header .ct-container, header#header { background-color: #0B0F14 !important; }
.ct-header [data-row] { border-bottom: 1px solid #1F2A37; }
.ct-footer, .ct-footer [data-row] { background-color: #0B0F14 !important; border-top: 1px solid #1F2A37; color: var(--mb-muted); }
.site-title a { font-family: var(--mb-mono); font-weight: 700; }
.site-title a::after { content: "_"; color: #22C55E; }
.price, .woocommerce-Price-amount, .mb-mono, .woocommerce table.shop_attributes td { font-family: var(--mb-mono); }
.woocommerce ul.products li.product, .wc-block-grid__product, .wc-block-product {
  background: var(--mb-surface); border: 1px solid #1F2A37; border-radius: 12px; padding: 16px;
}
.woocommerce ul.products li.product .price { color: #E6EDF3; font-weight: 700; }
.wp-block-button__link, .button, button[type="submit"] { border-radius: 8px; font-weight: 600; }
.mb-eyebrow { font-family: var(--mb-mono); color: #22C55E; font-size: 13px; }
.mb-card { background: var(--mb-surface); border: 1px solid #1F2A37; border-radius: 14px; padding: 24px; }
.mb-brands a { font-family: var(--mb-mono); font-weight: 700; color: var(--mb-muted); font-size: 18px; }
.mb-brands a:hover { color: #22C55E; }

/* ---- Startseite (Design B) ---- */
.home .hero-section, .home .entry-header, .home .page-title { display: none; }
.mb-section { max-width: 1200px; margin: 0 auto; padding: 48px 0; }
.mb-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 48px; align-items: center; padding: 40px 0 56px; }
.mb-hero h1 { font-size: clamp(36px, 5vw, 54px); line-height: 1.05; letter-spacing: -1.5px; font-weight: 600; margin: 16px 0 20px; }
.mb-hero p { font-size: 18px; line-height: 1.55; color: #A8B3C2; max-width: 500px; }
.mb-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.mb-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.mb-btn-primary { background: #22C55E; color: #04130A !important; }
.mb-btn-primary:hover { background: #16A34A; }
.mb-btn-ghost { border: 1px solid #334155; color: #E6EDF3 !important; }
.mb-btn-ghost:hover { border-color: #22C55E; }
.mb-scope { background: #121821; border: 1px solid #1F2A37; border-radius: 14px; padding: 20px; }
.mb-scope-row { display: flex; justify-content: space-between; font-family: var(--mb-mono); font-size: 12px; color: #94A3B8; }
.mb-brands { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 20px 0; border-top: 1px solid #1F2A37; border-bottom: 1px solid #1F2A37; }
.mb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.mb-chips a { border: 1px solid #1F2A37; background: #121821; border-radius: 999px; padding: 8px 14px; font-size: 14px; color: #CBD5E1; text-decoration: none; }
.mb-chips a:hover { border-color: #22C55E; color: #E6EDF3; }
.mb-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.mb-trust .mb-eyebrow { display: block; margin-bottom: 6px; }
.mb-trust p { margin: 0; font-size: 15px; line-height: 1.5; color: #CBD5E1; }
.trp-language-switcher-container.trp-floater-ls-names { display: none !important; }


/* MB-FEINSCHLIFF-1 */
.ct-header .sub-menu, .ct-header [class*="ct-menu"] .sub-menu {
  background-color: #121821 !important; border: 1px solid #1F2A37; border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .55); overflow: hidden;
}
.ct-header .sub-menu a, .ct-header .sub-menu .ct-menu-link { color: #CBD5E1 !important; }
.ct-header .sub-menu li:hover > a, .ct-header .sub-menu a:hover, .ct-header .sub-menu .current-menu-item > a { color: #22C55E !important; background-color: #0B0F14 !important; }
.ct-header .sub-menu li + li { border-top: 1px solid #1F2A37; }
[id*="trp-floater"], [class*="trp-floater"], [class*="trp-floating"], .trp-language-switcher-container[data-no-translation] { display: none !important; }

/* MB-PRODUKT-1: fremde Inline-Farben in Beschreibungen ueberstimmen */
.woocommerce-Tabs-panel, .woocommerce-Tabs-panel * { color: #CBD5E1 !important; background: transparent !important; }
.woocommerce-Tabs-panel h1, .woocommerce-Tabs-panel h2, .woocommerce-Tabs-panel h3, .woocommerce-Tabs-panel strong { color: #E6EDF3 !important; }
.woocommerce-Tabs-panel table { border-collapse: collapse; width: 100%; font-size: 15px; }
.woocommerce-Tabs-panel th, .woocommerce-Tabs-panel td { border-bottom: 1px solid #1F2A37; padding: 10px 12px; text-align: left; vertical-align: top; }
.woocommerce-Tabs-panel th { color: #94A3B8 !important; font-weight: 500; width: 38%; }
.woocommerce-Tabs-panel td { font-family: var(--mb-mono); }

/* MB-PRODUKT-2 */
.woocommerce-Tabs-panel thead td, .woocommerce-Tabs-panel thead th { font-family: var(--theme-font-family); color: #94A3B8 !important; font-weight: 500; }
.woocommerce-product-gallery .flex-control-thumbs img, .woocommerce-product-gallery__image { border-radius: 10px; overflow: hidden; }

/* MB-GALERIE-1: Produktbilder nie beschneiden */
.woocommerce-product-gallery .ct-media-container, .woocommerce-product-gallery .woocommerce-product-gallery__image { aspect-ratio: 1 / 1 !important; background: #fff; }
.woocommerce-product-gallery .ct-media-container img, .woocommerce-product-gallery__image img { object-fit: contain !important; width: 100%; height: 100%; }

/* MB-MENGE-1: Hinweis Mengenrabatt */
.mb-mengenrabatt { margin: .4em 0 1.2em; padding: .5em .8em; border-left: 3px solid #22C55E; background: #121821; color: #CBD5E1; font-size: .9em; }
.mb-mengenrabatt strong { color: #22C55E; }

/* MB-KACHEL-1: Produktkacheln nie beschneiden */
.products .product .ct-media-container,
.wc-block-grid__product-image, .wc-block-components-product-image { aspect-ratio: 1 / 1 !important; background: #fff; border-radius: 10px; overflow: hidden; }
.products .product .ct-media-container img,
.wc-block-grid__product-image img, .wc-block-components-product-image img { aspect-ratio: 1 / 1 !important; width: 100%; height: 100% !important; object-fit: contain !important; }

/* MB-START-2: Mengenrabatt-Kachel */
.mb-deal { display: flex; gap: 32px; align-items: center; justify-content: space-between; margin: 32px 0 48px; padding: 28px 32px; border: 1px solid #1F2A37; border-left: 4px solid #22C55E; }
.mb-deal h2 { margin: 6px 0 8px; font-size: 26px; }
.mb-deal p { margin: 0; color: #CBD5E1; max-width: 560px; }
.mb-deal-nums { display: flex; gap: 28px; }
.mb-deal-nums div { text-align: center; }
.mb-deal-nums strong { display: block; font-family: var(--mb-mono, monospace); font-size: 40px; color: #22C55E; line-height: 1.1; }
.mb-deal-nums span { font-size: 13px; color: #94A3B8; }
@media (max-width: 760px) { .mb-deal { flex-direction: column; align-items: flex-start; } }
/* MB-FILTER-1: Filter-Seitenleiste im Shop */
.ct-sidebar .widget { margin-bottom: 28px; }
.ct-sidebar .widget-title, .ct-sidebar .widgettitle { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #94A3B8; margin-bottom: 10px; }
.ct-sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.ct-sidebar .widget li { padding: 4px 0; font-size: 15px; }
.ct-sidebar .widget li a { color: #E6EDF3; }
.ct-sidebar .widget li.chosen a, .ct-sidebar .widget li a:hover { color: #22C55E; }
.ct-sidebar .count { color: #64748B; font-size: 13px; }
.ct-sidebar .price_slider_wrapper .ui-slider .ui-slider-range, .ct-sidebar .price_slider_wrapper .ui-slider .ui-slider-handle { background: #22C55E; }

/* MB-PREISFILTER: Button nicht noetig, Filter greift automatisch */
.widget_price_filter .price_slider_amount .button { display: none !important; }
.widget_price_filter .price_slider { position: relative; height: 6px !important; margin: 18px 9px 6px; background: #1F2A37 !important; border: 0; border-radius: 3px; }
.widget_price_filter .ui-slider .ui-slider-range { position: absolute; top: 0; height: 100%; background: #22C55E !important; border-radius: 3px; }
.widget_price_filter .ui-slider .ui-slider-handle { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; background: #0B0F14 !important; border: 3px solid #22C55E !important; border-radius: 50%; cursor: grab; outline: none; touch-action: none; }
.widget_price_filter .ui-slider .ui-slider-handle:focus-visible { box-shadow: 0 0 0 3px rgba(34,197,94,.35); }
.widget_price_filter .price_slider_amount .price_label { float: none; display: block; color: #CBD5E1; font-family: var(--mb-mono, monospace); font-size: 14px; margin-top: 10px; }

/* MB-LEGAL-1: Rechtstexte gut lesbar */
.mb-legal { max-width: 760px; font-size: 16px; line-height: 1.65; color: #CBD5E1; }
.mb-legal h2 { font-size: 20px; margin: 32px 0 10px; color: #E6EDF3; }
.mb-legal ul { padding-left: 1.2em; }
.mb-legal li { margin: 6px 0; }
.mb-legal a { color: #22C55E; }
.mb-legal-stand { margin-top: 40px; font-size: 13px; color: #64748B; }
