/* ============================================================
   PluginFabrik – FINAL UI Fix Pack (kollisionsarm)
   ============================================================ */


/* ============================================================
   1) PAYMENT ICONS – Chips, zentriert
   Default: dunkler Text (für helle Bereiche)
   Optional: .payment-block--dark für dunkle Bereiche
   ============================================================ */

.payment-block{
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.payment-block-inner{
  text-align: center;
}

.payment-icons{
  list-style: none;
  margin: 10px 0 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

/* Default (heller Hintergrund) */
.payment-icons li{
  color: #111827;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.10);
}

.payment-icons i{
  font-size: 18px;
  line-height: 1;
}

/* Optional: wenn du den Block auf dunklem Header/Footer nutzt */
.payment-block--dark .payment-icons li{
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.payment-block--dark .payment-icons i,
.payment-block--dark .payment-icons i.fa-brands{
  color: #ffffff !important;
  opacity: 0.95;
}


/* ============================================================
   2) HEADER LOGO – Höhe/Ausrichtung (minimalinvasiv)
   ============================================================ */

.header-logo img,
#_desktop_logo img{
  max-height: 48px !important;
  height: auto !important;
  width: auto !important;
  object-fit: contain;
  display: block;
}

/* falls du wirklich Abstand brauchst: nur im Desktop */
@media (min-width: 992px){
  .header-logo img,
  #_desktop_logo img{
    margin-top: 10px;
  }
}


/* ============================================================
   3) HEADER – nur die notwendige Zeile als Flex (safe)
   Achtung: nicht .header-top global auf block setzen
   ============================================================ */

.header-nav .row{
  display: flex !important;
  align-items: center !important;
}

.header-nav .row > [class*="col-"]{
  display: flex;
  align-items: center;
}

/* Suche sauber */
#search_widget{ width: 100%; }
#search_widget form{
  width: 100%;
  display: flex;
  align-items: center;
}
#search_widget input{ flex: 1 1 auto; }


/* ============================================================
   4) TOP HEADER – Custom Call Us rechts, einzeilig
   (nur banner, nicht alles überschreiben)
   ============================================================ */

.header-banner .container{
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 30px;
}

.header-banner .container .row{
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  margin: 0 !important;
}

.header-banner .right-nav,
.header-banner .col-md-7.right-nav{
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
}

.custom-callus{
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px;
  white-space: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 16px;
}

.custom-callus-mt-3{ margin-top: 0 !important; }


/* ============================================================
   5) Startseite – Service Hinweise (nur Modulbereich)
   ============================================================ */

.custom-service-block .customservices{
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 30px;
}

.custom-service-block .service{ flex: 1; }

.custom-service-block .services-inner{
  display: flex;
  align-items: center;
  padding: 20px;
  background: #fff;
}

.custom-service-block .icon{ margin-right: 15px; }

@media (max-width: 768px){
  .custom-service-block .customservices{ flex-direction: column; }
}


/* ============================================================
   6) Home – Module Grid (scoped)
   ============================================================ */

.subbannercms-modules{ margin: 40px 0; }

.subbannercms-modules .modules-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.subbannercms-modules .modules-item{ flex: 1 1 250px; }

.subbannercms-modules .modules-card{
  background: #f5f6f8;
  border: 1px solid #e5e5e5;
  padding: 20px;
  text-align: center;
}

/* optional: Höhe nur hier, nicht global */
.subbannercms-modules .modules-card{ min-height: 420px; }

.subbannercms-modules .modules-logo{
  width: 100%;
  max-width: 180px;
  margin: 0 auto 15px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subbannercms-modules .modules-logo img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.subbannercms-modules .modules-title{
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.subbannercms-modules .modules-subtitle{
  font-size: 13px;
  color: #777;
  margin-bottom: 12px;
}

.subbannercms-modules .btn.btn-primary{
  padding: 8px 18px;
  font-size: 13px;
}

@media (max-width: 768px){
  .subbannercms-modules .modules-grid{ gap: 20px; }
  .subbannercms-modules .modules-item{ flex: 1 1 100%; }
}


/* ============================================================
   7) Produktdetail – Tabs + Panels
   ============================================================ */

.tabs .tab-content{
  background: #f4f6fb;
  border-radius: 6px;
  padding: 20px 25px;
}

#description,
#product-details,
#attachments,
[id^="extra-"]{
  background: transparent;
  padding: 0;
}

#product-details .pf-panel,
#description .pf-panel{
  background: #ffffff;
  border: 1px solid #e4e7f2;
  border-radius: 6px;
  padding: 15px 20px;
  margin-bottom: 15px;
  box-shadow: 0 8px 24px rgba(15, 35, 52, 0.06);
}

.pf-panel-body{ padding: 5px 0 0 0; }

#product-details .pf-title,
#description .pf-title{
  font-weight: 600;
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: #1f2933;
}

.pf-description{
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444f5a;
}

.pf-description--empty{
  font-style: italic;
  color: #7a8699;
}

#product-details .data-sheet .name,
#product-details .data-sheet .value{
  background: transparent;
  border-bottom: 1px solid #eef1f7;
  padding-top: 6px;
  padding-bottom: 6px;
}

#product-details .data-sheet .name:last-of-type,
#product-details .data-sheet .value:last-of-type{
  border-bottom: none;
}

#product-details .pf-panel--brandref{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
}

#product-details .pf-panel--brandref .manufacturer-logo{
  max-height: 60px;
  width: auto;
}

#product-details .pf-panel--brandref .pf-reference .label{
  margin-right: 5px;
}


/* ============================================================
   8) Header – Währung/Sprache (safe)
   ============================================================ */

.header-top .left-nav,
.header-top .right-nav,
.header-banner .left-nav,
.header-banner .right-nav,
.header-nav .left-nav,
.header-nav .right-nav{
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}

#_desktop_currency_selector,
#_desktop_language_selector{
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

#_desktop_currency_selector .dropdown-toggle,
#_desktop_language_selector .dropdown-toggle,
#_desktop_currency_selector button.dropdown-toggle,
#_desktop_language_selector button.dropdown-toggle{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  background: rgba(255,255,255,.06) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

#_desktop_currency_selector .dropdown-menu,
#_desktop_language_selector .dropdown-menu{
  min-width: 190px !important;
  padding: 6px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  box-shadow: 0 14px 38px rgba(0,0,0,.22) !important;
  margin-top: 10px !important;
  right: 0 !important;
  left: auto !important;
}

#_desktop_language_selector .dropdown-toggle span.expand-more{ display: none !important; }

html[lang^="de"] #_desktop_language_selector .dropdown-toggle::before{
  content: "🇩🇪";
  font-size: 18px;
  line-height: 1;
  display: inline-block;
  margin-right: 6px;
}

html[lang^="en"] #_desktop_language_selector .dropdown-toggle::before{
  content: "🇬🇧";
  font-size: 18px;
  line-height: 1;
  display: inline-block;
  margin-right: 6px;
}


/* ============================================================
   9) Produktbild-Modal – Thumbnails unten mittig
   ============================================================ */

#product-modal .modal-dialog{ max-width: 100vw !important; width: 100vw !important; margin: 0 !important; }
#product-modal .modal-content{ background: rgba(0,0,0,0.95) !important; border: none !important; border-radius: 0 !important; padding: 0 !important; }

#product-modal .modal-content .modal-body{
  margin-left: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  padding: 0 !important;
  overflow: hidden !important;
}

#product-modal .modal-content .modal-body figure{
  flex: 1 1 auto !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

#product-modal .image-caption,
#product-modal #product-description-short{ display: none !important; }

#product-modal .js-modal-product-cover,
#product-modal .product-cover-modal{
  max-width: 100vw !important;
  max-height: calc(100vh - 140px) !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
}

#product-modal aside#thumbnails{
  flex: 0 0 auto !important;
  width: 100% !important;
  padding: 14px 0 18px !important;
  background: rgba(0,0,0,0.35) !important;
  border-top: 1px solid rgba(255,255,255,0.10) !important;
}

#product-modal ul.product-images.js-modal-product-images{
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 auto !important;
  padding: 0 14px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
  -webkit-overflow-scrolling: touch;
}

#product-modal .product-images img.thumb{
  width: 86px !important;
  height: 86px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  background: #fff !important;
  border: 2px solid rgba(255,255,255,0.12) !important;
  cursor: pointer !important;
  margin: 0 !important;
  opacity: 0.92;
}

#product-modal .product-images img.thumb:hover,
#product-modal .product-images img.thumb.selected{
  opacity: 1;
  border-color: rgba(222,89,24,0.95) !important;
}

#product-modal .arrows,
#product-modal .js-modal-arrows{ display: none !important; }


/* ============================================================
   10) dfcustomhomeblock – Hintergrundbilder entfernen (scoped)
   ============================================================ */

#custom-homeblock,
#custom-homeblock *{ background-image: none !important; }

#custom-homeblock::before,
#custom-homeblock::after{
  background: none !important;
  background-image: none !important;
  content: none !important;
}

#custom-homeblock .container,
#custom-homeblock .row{ background: none !important; }


/* ============================================================
   11) Home Intro – FINAL (einmalig, ohne Duplikate)
   ============================================================ */

.pf-home-intro{
  background: #ffffff;
  padding: 70px 30px;
  margin: 60px auto;
  max-width: 1100px;
  font-family: "Inter","Segoe UI","Roboto","Helvetica Neue",Arial,sans-serif;
  color: #1f2a37;
  line-height: 1.7;
}

/* CLS-Reserve */
@media (min-width: 992px){
  .pf-home-intro{ min-height: 380px; }
}

.pf-home-title{
  text-align: center;
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 30px 0;
  color: #0f172a;
}

.pf-home-intro h2{
  font-size: 26px;
  font-weight: 600;
  margin: 45px 0 12px 0;
  color: #0b3c5d;
}

.pf-home-list{
  margin: 20px 0 10px 0;
  padding: 0;
  list-style: none;
}

.pf-home-list li{
  font-size: 16px;
  margin: 0 0 10px 0;
  padding-left: 26px;
  position: relative;
}

.pf-home-list li::before{
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #16a34a;
  font-weight: 700;
}

.pf-home-claim{
  margin-top: 40px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  color: #0f172a;
}

@media (max-width: 768px){
  .pf-home-intro{ padding: 40px 20px; margin: 35px auto; }
  .pf-home-title{ font-size: 32px; }
  .pf-home-intro h2{ font-size: 22px; margin-top: 32px; }
}

/* ============================================================
   PSI FIX: Font Awesome Webfonts -> font-display: swap
   (Override nach all.min.css, damit CLS/FOIT reduziert wird)
   ============================================================ */

@font-face{
  font-family:"Font Awesome 6 Free";
  font-style:normal;
  font-weight:900;
  font-display:swap;
  src:url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-solid-900.woff2") format("woff2");
}

@font-face{
  font-family:"Font Awesome 6 Brands";
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-brands-400.woff2") format("woff2");
}

/* CLS SAFE: Headerbereiche reservieren */
#_desktop_logo,
#_mobile_logo{
  min-height: 48px;
}

#top-menu{
  min-height: 44px;
}

#_desktop_logo img,
#_mobile_logo img,
img.logo{
  width: 245px !important;
  height: 48px !important;
}

.top-menu {
  min-height: 48px;
}

#header .header-nav-fullwidth,
#header .header-top{
  min-height: 1px;
}
ul.top-menu{
  min-height: 48px;
}

