
/* =========================================================
   ANGEBOTSPREIS
   NOVAChild / my-nova
   ========================================================= */

/* ---------------------------------------------------------
   Direkter OPC-Wrapper des Einzelangebots
   --------------------------------------------------------- */

.opc-Container.equal-height-content
> div:has(> .opc-angebotspreis:not(.opc-angebotspreis-slider-preview)) {
  display: block !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  align-self: stretch !important;
  box-sizing: border-box !important;
}


/* =========================================================
   EINZELANGEBOT
   Bild oben – Inhalt darunter
   ========================================================= */

.opc-angebotspreis {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  height: auto;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0;
  text-align: center !important;
  border: 1px solid #fff;
  border-radius: 10px;
}


/* ---------------------------------------------------------
   Produktbild
   --------------------------------------------------------- */

.opc-angebotspreis-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  height: 360px;
  margin: 0 auto 1rem;
  overflow: hidden;
  box-sizing: border-box;
  background: #fff;
  text-align: center;
}

.opc-angebotspreis-image-link {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  text-align: center;
}

.opc-angebotspreis-image {
  display: block;
  width: 360px;
  max-width: 90%;
  height: auto;
  max-height: 100%;
  margin: 0 auto;
  object-fit: contain;
  box-sizing: border-box;
  border-radius: 0;
}


/* ---------------------------------------------------------
   Inhaltsbereich
   --------------------------------------------------------- */

.opc-angebotspreis-content {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0 20px 20px;
  box-sizing: border-box;
  text-align: center !important;
}


/* ---------------------------------------------------------
   Produktname
   --------------------------------------------------------- */

.opc-angebotspreis-name {
  display: block;
  margin: 0 0 0.5rem;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  text-align: center !important;
    min-height: 50px;
}

.opc-angebotspreis-name:hover {
  text-decoration: none;
}


/* ---------------------------------------------------------
   UVP
   --------------------------------------------------------- */

.opc-angebotspreis-uvp {
  margin: 0 0 0.25rem;
  color: #777;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center !important;
}

.opc-angebotspreis-uvp span {
  text-decoration: line-through;
}


/* ---------------------------------------------------------
   Aktueller Preis
   --------------------------------------------------------- */

.opc-angebotspreis-current {
  margin: 0 0 0.5rem;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center !important;
}


/* ---------------------------------------------------------
   Ersparnis
   --------------------------------------------------------- */

.opc-angebotspreis-saving {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  text-align: center !important;
}

.opc-angebotspreis-saving-euro {
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center !important;
}

.opc-angebotspreis-saving-percent {
  display: inline-block;
  padding: 4px 4px 1px 4px;
  border-radius: 0.25rem;
  background: #f39000;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}


/* ---------------------------------------------------------
   Button
   --------------------------------------------------------- */

.opc-angebotspreis-product-button {
  display: inline-block;
  min-width: 80%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 1.25rem;
  border-radius: 0.25rem;
  background: #8e9c82;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.opc-angebotspreis-product-button:hover,
.opc-angebotspreis-product-button:focus {
  border-color: #302d31;
  background: #302d31;
  color: #fff;
  text-decoration: none;
}


/* ---------------------------------------------------------
   Einzelangebot – Mobil
   --------------------------------------------------------- */

@media (max-width: 767px) {

  .opc-angebotspreis {
    align-items: stretch;
    padding: 0;
  }

  .opc-angebotspreis-image-wrapper {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    height: 320px;
  }

  .opc-angebotspreis-content {
    width: 100%;
    padding: 0 20px 20px;
  }

  .opc-angebotspreis-name {
    font-size: 1rem;
  }

  .opc-angebotspreis-current {
    font-size: 1.5rem;
  }
   .opc-Container.equal-height-content > div > .row > [class*="col-"] {
        margin-top: 10px !important;
        margin-bottom: 5px !important;
    }
}


@media (max-width: 575.98px) {

  .opc-angebotspreis {
    padding: 0;
  }

  .opc-angebotspreis-image-wrapper {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    height: 280px;
  }

  .opc-angebotspreis-content {
    padding: 0 15px 20px;
  }

  .opc-angebotspreis-name {
    font-size: 1rem;
  }

  .opc-angebotspreis-current {
    font-size: 1.5rem;
  }

  .opc-angebotspreis-product-button {
    width: 100%;
  }
}


/* =========================================================
   OPC ANGEBOTSPREIS SLIDER
   UNVERÄNDERT
   ========================================================= */


/* ---------------------------------------------------------
   Direkter Wrapper des Portlets
   --------------------------------------------------------- */

.opc-Container.equal-height-content
> div:has(> .opc-angebotspreis-slider) {
  display: block !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  align-self: stretch !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}


/* ---------------------------------------------------------
   Slider
   --------------------------------------------------------- */

.opc-angebotspreis-slider {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}


/* ---------------------------------------------------------
   Slider-Track
   --------------------------------------------------------- */

.opc-angebotspreis-slider-track {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  gap: 5px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.opc-angebotspreis-slider-track::-webkit-scrollbar {
  display: none;
}


/* ---------------------------------------------------------
   Slider-Artikel
   --------------------------------------------------------- */

.opc-angebotspreis-slider-slide {
  flex: 1 0 340px;
  width: auto;
  max-width: none;
  min-width: 340px;
  box-sizing: border-box;
  scroll-snap-align: start;
}


/* ---------------------------------------------------------
   Produkt innerhalb des Slides
   --------------------------------------------------------- */

.opc-angebotspreis-slider-product {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-align: center;
  background: #ffffffcf;
  border-radius: 10px;
  padding-bottom: 10px;
}


/* ---------------------------------------------------------
   Bild
   --------------------------------------------------------- */

.opc-angebotspreis-slider
.opc-angebotspreis-image-wrapper {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 auto 1rem;
  overflow: hidden;
  box-sizing: border-box;
  background: #fff;
  height: 360px;
  display: flex;
  align-items: center;
  border-radius: 10px 10px 0 0;
}

.opc-angebotspreis-slider
.opc-angebotspreis-image-link {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.opc-angebotspreis-slider
.opc-angebotspreis-image {
  display: block;
  width: 360px;
  max-width: 90%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  box-sizing: border-box;
}


/* ---------------------------------------------------------
   Produktinformationen
   --------------------------------------------------------- */

.opc-angebotspreis-slider
.opc-angebotspreis-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

.opc-angebotspreis-slider
.opc-angebotspreis-name {
  font-size: 16px;
  color: #302d31;
  height: 45px;
}

.opc-angebotspreis-product-button-slider {
  min-width: 80%;
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 1.25rem;
  border-radius: 0.25rem;
  background: #8e9c82;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.opc-angebotspreis-product-button-slider:hover,
.opc-angebotspreis-product-button-slider:focus {
  border-color: #302d31;
  background: #302d31;
  color: #fff;
  text-decoration: none;
}


/* ---------------------------------------------------------
   OPC Angebotspreis Slider – Pfeile
   --------------------------------------------------------- */

.opc-angebotspreis-slider {
  position: relative;
}

.opc-angebotspreis-slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  padding: 0;
  border: 1px solid #D9D9D9;
  border-radius: 50%;
  background: #fff;
  color: #302d31;
  font-size: 20px;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transform: translateY(-50%);
  box-sizing: border-box;
  transition: background-color 0.2s ease;
  box-shadow: 0 0 8px #0000003d;
}

.opc-angebotspreis-slider-arrow:hover {
  background: #302d3173;
  color: #fff;
  border: 0;
}

.opc-angebotspreis-slider-prev {
  left: 0;
}

.opc-angebotspreis-slider-next {
  right: 0;
}
