/*
 * Platz für eigene Änderungen direkt als CSS
 * Die hier gemachten Änderungen überschreiben ggfs. andere Styles, da diese Datei als letzte geladen wird.
 */

header #burger-menu {
  display:none;
}

#consent-manager:not(.mini)::before {
  background-color: rgba(0, 0, 0, 0.6);
}

#consent-banner-btn-all,
.consent-btn-tertiary {
  background-color: #00A72D !important;
  color: #FFF;
}

.consent-switch .consent-input:checked ~ .consent-label::before {
  background-color: #00A72D !important;  
}

#consent-banner-btn-all:hover,
.consent-btn-tertiary {
  background-color: #008727 !important;
}

.cat-mobile {
	display:none;
}

body {
  background: #626262 url('images/bg_body.jpg') repeat;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-size: 14px;
  line-height: 1.42857143;
  color: #333333;
}

.bm-header a {
	height: 160px;
	width: 650px;
	position: absolute;
	top:0px;
}

#payment-logos {
	float: right;
	background-color: hsla(41, 92%, 95%, 0.80);
	padding: 10px;
  margin-right: 35px;
  border-radius: 8px;
  margin-top: 40px;
}

.bm-header {
	background: url(images/bg_header_szo@2x.jpg) no-repeat;
	background-size: 1170px 160px;
	background-position: top left;
	height: 160px;
}

.bm_basket-head {
  /* height:40px entfernt – schnitt Bestellübersicht auf Mobile ab */
  border-top: 1px solid #FEF9EF;
  border-left: 0px;
  border-right: 0px;
  border-bottom: 1px solid #ccc;
  background: linear-gradient(to bottom, #F6DEAE, #F8EED9 80%);
}

.dropdown-menu.dropdown-menu-right.show {
  transform: none !important;
  right: 0 !important;
  left: auto !important;
}

ul.topbar-main {
  display: inline-flex;
  height: 38px;
}

#shop-nav {
  float:right;
  height: 38px;
  position: relative;
}

.topbar-main .nav-item,
.nav-right .nav-item {
  border-bottom: 0px !important;
}

.nav-dividers .nav-item:not(:last-child)::after {
  border-right: 0px;
}

.topbar-main .nav-item a {
  height: 38px;
}

.topbar-main .nav-link:hover,
.nav-item.dropdown.account-icon-dropdown:hover,
.cart-icon-dropdown.nav-item.dropdown:hover {
  background-color: #F6DDAB;
}

.nav-item.dropdown.account-icon-dropdown a,
.cart-icon-dropdown.nav-item.dropdown a {
  margin-top: 0px;
  padding: 9px 15px !important
}

.search-wrapper .form-control,
.search-wrapper .btn {
  padding: 1px 5px 2px;
  margin-left: -1px;
  height: auto;
}

.cart-dropdown.dropdown-menu.dropdown-menu-right,
.dropdown-menu.dropdown-menu-right.show {
  top: 100% !important;
  margin-top: 0 !important;
}

/* Konto- und Warenkorb-Dropdown: immer am rechten Rand des Buttons ausgerichtet */
#shop-nav .dropdown-menu,
#shop-nav .cart-dropdown {
  right: 0 !important;
  left: auto !important;
  transform: none !important;
  min-width: 320px;
}

/* Warenkorb-Dropdown etwas breiter */
#shop-nav .cart-dropdown {
  min-width: 600px;
}

.cart-dropdown .dropdown-cart-items img {
  width: 100% !important;
  height: auto !important;
}

.cart-icon-dropdown.nav-item.dropdown .bm-item-reset  a {
  padding: 0px !important;
}

.cart-icon-dropdown.nav-item.dropdown .bm-item-button  a {
  padding: 10px !important;
}

.btn-primary {
  color: #ffffff;
  background-color: #3a3a3a !important;
  border-color: #3a3a3a;
}

.btn-primary:hover {
  color: #ffffff;
  background-color: #6E6E6E;
  border-color: #6E6E6E;
}

header a:hover:not(.dropdown-item):not(.btn) {
  color: #000;
}

.breadcrumb a br {
    display: none;
    width: 0.3em;
}

.page-wrapper {
  max-width: 1170px;
  width: 90%;
  background-color: #fff;
  -moz-box-shadow: 0px 0px 20px 2px #000;
  -webkit-box-shadow: 0px 0px 20px 2px #000;
  box-shadow: 0px 0px 20px 2px #000;
  margin-right: auto;
  margin-left: auto;
}

#sidepanel_left {
  padding-left: 0px;
  padding-right: 15px;
}

.productlist-filter-headline {
  border: none;
  padding-bottom: 0px;
  padding-left:15px;
  font-size: 14px;
  color: #fdae00;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.box-content-wrapper {
  border-top: 1px solid #ccc;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  border-radius: 0px 5px 5px 0px;
  background-color: #fef7e8;
  padding: 8px 15px;
}

.nav-panel {
  border-top: 1px solid #ccc;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  border-radius: 0px 5px 5px 0px;
  background-color: #fef7e8;
}

div.nav-panel {
  border-bottom: 0px;
}

.nav-item {
  border-bottom: 1px solid #ccc;
}

.nav-item:hover {
  background-color: #F9EFDA;
}

.nav-link {
  padding: 0px;
}

.nav-link a,
.nav-item a {
  width:100%;
  padding: 8px 15px !important;
  color: #000;
}

.dropdown-toggle:after, [data-toggle=collapse]:not(.navbar-toggler):after {
  margin-right: 15px;
}

.box-categories .dropdown .collapse,
.box-linkgroup .dropdown .collapse {
  background-color: #FDECCC;
}

.breadcrumb-wrapper {
  margin-bottom: 15px;
  padding-left: 15px;
  padding-right: 15px;
  border-radius: 5px;
  border: solid 1px #ccc;
  background-color: #fef7e8;
}

.previous {
  float:left;
  -webkit-box-shadow: -9px 0 10px -2px rgba(0, 0, 0, 0.12);
  width: 40%;
  border-radius: 5px;
  border-left: solid 1px #ebebeb;
  border-top: solid 1px #ebebeb;
  border-bottom: solid 1px #ebebeb;
  margin-bottom: 20px;
}

.previous a {
  display: block;
  width: 100%;
  text-align: left;
}

.previous a:hover {
    background-image: -webkit-linear-gradient(to right, #fef7e8 80%, #ffffff 100%);
    background-image: -o-linear-gradient(to right, #fef7e8 80%, #ffffff 100%);
    background-image: linear-gradient(to right, #fef7e8 80%, #ffffff 100%);
    border-radius: 5px;
    color: #000;
}

.previous .btn {
  line-height: 1em;
  float:left;
}
 
.next {
  float:right;
  -webkit-box-shadow: 9px 0 10px -2px rgba(0, 0, 0, 0.12);
  width: 40%;
  border-radius: 5px;
  border-right: solid 1px #ebebeb;
  border-top: solid 1px #ebebeb;
  border-bottom: solid 1px #ebebeb;
  margin-bottom: 20px;
}

.next a {
  display: block;
  width: 100%;
  text-align: right;
}

.next a:hover {
  background-image: -webkit-linear-gradient(to left, #fef7e8 80%, #ffffff 100%);
  background-image: -o-linear-gradient(to left, #fef7e8 80%, #ffffff 100%);
  background-image: linear-gradient(to left, #fef7e8 80%, #ffffff 100%);
  border-radius: 5px;
  color: #000;
}
  
.next .btn {
  line-height: 1em;
}

aside .box .snippets-categories-nav-link-child,
.nav-panel .nav .nav {
  padding-left: 0px;
  padding-right: 0px;
}

aside .box .snippets-categories-nav-link-child a,
a.nav-link.snippets-categories-nav-link-child {
  background: url(images/cat_arrow.png) no-repeat 15px 3px;
  background-position: 15px 13px;
  padding-left: 30px !important;
}

.snippets-categories-collapse .nav li.nav-item:first-child {
  border-top: 1px solid #ccc;  
}

.snippets-categories-collapse .show li {
  padding-left: 15px;
}

.fairtrade img {
  width: 190px;
}

.faircommerce {
  padding: 15px 25px;
}

.haendlerbund,
.ssl {
  padding: 15px 35px;
}

#content-wrapper:not(.has-fluid) {
  padding-top: 25px;
}

.col-lg-8.col-xl-9.ml-auto-util.order-lg-1 {
  padding-right: 2rem;
  padding-left: 1rem;
}

.choose_quantity .form-control {
  padding: 0px;
}

.btn-primary {
  color:#fff !important;
}

/* Mobile Navigation */
header .navbar-nav .nav-item  {
  background-color: #fef7e8;
}

header .navbar-nav .nav-item:hover  {
  background-color: #F9EFDB;
}

header .nav-mobile-header {
  background-color: #F6DDAB;
  color: #000;
}  

/* header .nav-mobile-body {
  background: #626262 url('images/bg_body.jpg') repeat;
} */

.is-checkout header {
  height: 160px;
}

div.secure-checkout-icon .ml-auto-util .ml-lg-0 {
  margin-top: -35px !important;
}

.d-print-none.sticky-top.fixed-navbar  {
  height: 40px;
  border-top: 1px solid #FEF9EF;
  border-left: 0px;
  border-right: 0px;
  border-bottom: 1px solid #ccc;
  background: linear-gradient(to bottom, #F6DEAE, #F8EED9 80%);
}

.secure-checkout-icon.ml-auto-util.ml-lg-0 {
  margin-top: -36px;
  margin-left: 20px !important;
}

.bm-footer {
  padding: 15px;
  background: linear-gradient(to bottom, #F6DEAE, #F8EED9 90%);
  color: #444444;
  font-size: 13px;
  text-align: justify;
  border-top: 1px solid #FEF9EF;
}

#footer #copyright {
  margin-top: 0px;
}
#footer {
  padding-top: 0px;
  background-color: #9a9a9a;
  color: #FFF;
}

#footer a {
  color: #FFF;
}

#footer h5 {
  padding-bottom: 12px;
  border-bottom: 1px solid #444444;
  margin-bottom: 10px;
}

.footnote-vat {
  padding: 15px 0px;
}

.basket .basket-heading {
  padding-left: 10px !important;
  padding-top: 5px !important;
}

.cart-summary .h2.basket-heading {
  font-size: 1.2rem;
  margin-bottom: 25px;
  padding: 5px 10px;
  border-top: 1px solid #FEF9EF;
  border-bottom: 1px solid #ccc;
  background: linear-gradient(to bottom, #F6DEAE, #F8EED9 80%);
}

.basket .basket-summary {
  margin-top: 10px;
}

.bm_checkout {
  display: unset !important;
  flex: 0 0 100% !important;
  max-width: 100% !important;
}


.checkout-steps .nav-item {
  border-bottom: 0px !important;
}

/* Slider: max. 90% Breite, zentriert */
 .slick-slider-other .row.carousel {
     width: 90% !important;
     margin-left: auto !important;
     margin-right: auto !important;
 }

/* Preise und Links */

.price.productbox-price {
  color: #fdae00;
}

.base-price .value::before {
  content: "Grundpreis: ";
  font-weight: bold;
}

.link-content a {
  color: #fdae00;
  text-decoration: none;
}

.link-content a:hover {
  color: #fdae00;
  text-decoration: underline;
}

/* Navigation & Layout */

.text-muted-util {
  display: none;
}

.container {
  max-width: 100%;
}

.hr-sect {
  background-color: #fef7e8;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.hr-sect a {
  width: 100%;
  padding-left: 10px;
  padding-top: 5px;
  font-size: 1.0rem;
}

.hr-sect::before, .hr-sect::after {
  content: none;
  flex-grow: 0;
  background: none;
  height: 0;
}

.hr-sect.h2 a {
  display: flex;
  align-items: center;
  width: 100%;
}

.hr-sect.h2 a::after {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f35a";
  margin-left: auto;
  margin-right: 10px;
}

/* Produktliste & Titel */

.title {
  overflow: hidden;
}

.title h1 {
  margin-top: 0;
  margin-bottom: 0;
  white-space: nowrap;
}

.title h1 br {
  display: none;
}

.desc {
  clear: none;
  margin-top: 0;
  overflow: hidden;
}

.desc p {
  margin-bottom: 0;
}

#result-wrapper .title {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.productlist-header-description-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  float: left;
  margin-right: 15px;
  margin-bottom: 5px;
}

.tab-navigation .nav-item:not(:last-child) {
  margin-right: 0px;
}

/* Zahlungslogos & Labels */

label[for="payment1"] img,
label[for="payment-za_ppc_paypal_input"] img,
label[for="payment76"] img,
label[for="payment77"] img {
  width: 80px;
}

.nivo-caption {
  background: #333333 !important;
  color: #FFFFFF !important;
}

/* Kategorien & Lieferinformationen */

.content-cats-small .sub-categories {
  background-color: #fbeccd;
  border: 1px solid #ccc;
  text-align: center;
  border-radius: 5px;
}

.estimated-delivery,
.estimated-delivery span {
  cursor: default;
}

/* Footer Payment */

.footer-payment {
background-color: #EFEFEF;
padding: 10px 15px 0px 15px;
color: #444 !important;
}
.footer-payment li {
text-align: center;
font-size: 10px;
margin-right: 10px;
.footer-payment p {
margin-bottom: 10px;
}
}
.footer-payment-icon {
width: 80px;
}

@media (max-width: 1006px) {
  #payment-logos {
  	margin-top:20px;
  }
  .is-checkout header {
    height: 128px;
  }

}

@media (max-width: 991px) {
  
  .bm-header {
    background-size: 936px 128px;
    height: 128px;
  }
  
  .dropdown-menu.dropdown-menu-right.show {
    transform: none !important;
    right: 0 !important;
    left: auto !important;
  }
}

@media (min-width: 992px) {
  
  #sidepanel_left.col-lg-4 {
    flex: 0 0 25%;
    max-width: 25%;
    min-width: 25%;
  }

  .col-lg-7 {
    flex: 3 0 66.33%;
    max-width: 66.33%;
  }
  
  .col-lg-8 {
    flex: 0 0 75%;
    max-width: 75%;
  }

}

/* Mobile Suchzeile über den Header-Icons */
@media (max-width: 991.98px) {
    .mobile-search-row {
        padding: 0.4rem 0.75rem;
        background: #fff;
        border-bottom: 1px solid #ebebeb;
        order: -1;
    }
    
    #crd-hdr-91,
    #crd-hdr-112 {
      padding-left: 15px !important;
    }
    
    #crd-hdr-91 {
      padding-top: 20px;
    }

}

@media (max-width: 940px) {
  
  .page-wrapper {
    width:100% !important;
  }
  
  .col-lg-8.col-xl-9.ml-auto-util.order-lg-1 {
    padding-right: 1rem !important;
  }
  
  .cat-mobile {
  	display:inline;
    padding: 8px 0px !important;
  }
  .cat-mobile a {
    width: 100%;
    padding: 11px 15px !important;
    color: #000;
  }
  
  .cat-mobile a:hover {
    background-color: #F6DDAB;
  }
  
  .dropdown-toggle::after, [data-toggle=collapse]:not(.navbar-toggler)::after {
    display:none;
  }
  
  [data-toggle=collapse]:not(.navbar-toggler) {
    display:block;
  }

}


@media (max-width: 799px) {
  ul.topbar-main li.nav-item {
    display:none !important;
  }
  
  #shop-nav .nav-link i {
    margin-right:9px;
  }

  /* Sticky-Header darf nicht clippen */
  #jtl-nav-wrapper {
    overflow: visible !important;
  }

  /* shop-nav als Positionierungsanker */
  #shop-nav {
    position: relative !important;
    overflow: visible !important;
  }

  /* Dropdown: absolut unter shop-nav, volle Viewport-Breite */
  #shop-nav .dropdown-menu,
  #shop-nav .cart-dropdown {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    transform: none !important;
    margin-top: 1px !important;
    box-sizing: border-box;
    max-height: 75vh !important;
    overflow-y: scroll !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    z-index: 1050 !important;
  }

  /* Artikelliste: interne Höhenbeschränkung aufheben */
  #shop-nav .cart-dropdown .table-responsive.max-h-sm,
  #shop-nav .cart-dropdown .table-responsive.lg-max-h {
    max-height: none !important;
    overflow: visible !important;
  }

  /* Summe + Buttons immer am unteren Rand sichtbar */
  #shop-nav .cart-dropdown .dropdown-body {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-bottom: 8px;
    border-top: 1px solid #dee2e6;
  }
}



@media (max-width: 680px) {
  #payment-logos {
  	display:none;
  }
  .bm-header a {
    width:100%;
  }
} 

@media (max-width: 500px) {
  
  .bm-header {
    background: url(images/bg_header_szo_small@2x.jpg) no-repeat;
    background-size: 540px 120px;
    height: 120px;
  }
  
  .bm-header a {
	  height: 128px;
  }
  
  header .container-block {
  	background-size: 936px 128px;
	  height: 128px;
  }
  .is-checkout header {
    height: 120px;
  }
  

}

@media (min-width: 468px) {
  #search {
    display:block;
  }
}

/* ================================================
   FIX: Slick-Slider Lazy-Load Höhenproblem
   
   Problem: Beim ersten Laden der Seite werden Produktbilder per Lazy-Load
   nachgeladen. Der Slick-Slider berechnet die Containerhöhe jedoch schon
   beim Initialisieren – wenn Bilder noch nicht geladen sind, werden sie
   mit opacity:0 und Minimalgröße dargestellt. Das führt zu falsch
   berechneten Slider-Höhen und abgeschnittenem Text/Preisen.
   Nach einem Reload sind die Bilder im Browser-Cache → kein Problem.
   
   Lösung 1 (CSS): Produktboxen im Slider erhalten eine Mindesthöhe, damit
   der Slider genug Platz reserviert, auch wenn Bilder noch laden.
   
   Lösung 2 (CSS): overflow:visible während des Ladens, damit Inhalte
   nicht hart abgeschnitten werden, während Slick die Höhe noch berechnet.
   ================================================ */

/* Produktbild-Container: Platzhalterhöhe reservieren damit Slick
   beim Init genug Raum für Text/Preise hat */
.slick-slide .productbox-image,
.slick-slide .product-image-container,
.slick-slide .img-fluid-container {
  min-height: 120px;
}

/* Slick-Track und Slides: Höhe automatisch anpassen.
   Verhindert, dass Slick eine fest berechnete Höhe (mit noch nicht
   geladenen Bildern) einfriert und Inhalte darunter abschneidet.
   Mit display:flex auf dem Track und height:auto auf den Slides passt
   sich die Sliderhöhe nach dem Bildladen automatisch an. */
.slick-initialized .slick-track {
  display: flex !important;
  align-items: stretch !important;
}

.slick-initialized .slick-slide {
  height: auto !important;
  min-height: 1px;
}

.slick-initialized .slick-slide > div {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.slick-initialized .slick-slide .productbox {
  height: 100%;
  display: flex;
  flex-direction: column;
}


/* ================================================
   MOBILES MENÜ: Information-Bereich Fixes
   - Strich (hr) vor Information ausblenden
   - Überschrift schöner gestalten
   - Links umbrechen statt abschneiden
   ================================================ */

@media (max-width: 991.98px) {

    /* Strich vor dem Information-Block ausblenden */
    #mainNavigation .navbar-nav + .navbar-nav .nav-item:first-child hr {
        display: none !important;
    }

    /* "Information"-Überschrift: goldener oberer Balken, uppercase, elegant */
    #mainNavigation .navbar-nav + .navbar-nav .nav-item:first-child span {
        display: block !important;
        padding: 12px 15px 5px 15px !important;
        color: #f8bf00 !important;
        font-weight: 700 !important;
        font-size: 0.72rem !important;
        letter-spacing: 0.12em !important;
        text-transform: uppercase !important;
        border-top: 2px solid #f8bf00 !important;
        margin-top: 10px !important;
        background: transparent !important;
    }

    /* Links im Information-Bereich umbrechen statt abschneiden */
    #mainNavigation .navbar-nav + .navbar-nav .nav-link {
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        line-height: 1.4 !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }
}

/* ================================================
   FIX: Warenkorb-Bestellübersicht Mobile & Facebook-Widget
   ================================================ */

/* Facebook-iframes: Breite begrenzen, im Dokumentfluss halten */
.fb-page,
.fb-like-box,
.fb-like,
.fb_iframe_widget,
[class*="fb-"] {
  position: relative !important;
  z-index: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.fb_iframe_widget iframe,
.fb-page iframe,
.fb-like-box iframe,
[class*="fb-"] iframe {
  max-width: 100% !important;
  position: relative !important;
}

@media (max-width: 991.98px) {
  /* Warenkorb-Bestellübersicht: kein sticky auf Mobile */
  .basket .cart-summary {
    position: static !important;
    top: auto !important;
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  /* Facebook span-Container: volle Breite */
  .fb-page span,
  .fb_iframe_widget span {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (min-width: 728px)
{
  .consent-banner-actions {
    margin-right: 2rem;
    margin-left: 0;
  }
}

/* Desktop: Bestellübersicht sticky */
@media (min-width: 992px) {
  .basket .cart-summary {
    position: sticky;
    top: 80px;
  }
}

/* ================================================
   FIX 1: Facebook-Box auf Mobile — Höhe auf Bildgröße begrenzen
   Das fb_iframe_widget wächst sonst über das Bild hinaus.
   overflow:hidden schneidet den Leerraum unterhalb ab.
   ================================================ */

@media (max-width: 991.98px) {
  .box-facebook .box-content-wrapper,
  .box-facebook .fb_iframe_widget,
  .box-facebook .fb-page {
    overflow: hidden !important;
    height: auto !important;
    max-height: 160px !important;
  }

  .box-facebook .fb_iframe_widget span,
  .box-facebook .fb-page span {
    display: block !important;
    overflow: hidden !important;
    height: auto !important;
    max-height: 160px !important;
  }

  .box-facebook iframe {
    max-height: 160px !important;
    overflow: hidden !important;
  }
}

/* ================================================
   FIX 2: Doppelter "Kategorien"-Titel auf Mobile ausblenden
   .box-normal-link ist der schwarze fette Titel der Nova
   auf Mobile einblendet — im Menü-Overlay redundant.
   ================================================ */

@media (max-width: 991.98px) {
  #mainNavigation .box-normal-link,
  #mainNavigation .box-normal-hr {
    display: none !important;
  }
}
