/* Cards - Main
----------------------------------------*/

section {
  margin: 0 auto;
}

.container-small {
  padding: 0 160px;
}

a:hover {
  text-decoration: none;
}

.btn-center {
  text-align: center !important;
}

.figure-center {
  display: flex;
  justify-content: center;
}

.card {
  display: flex;
  background: $secondary-bg;
  font-family: $font-family-primary;
  font-size: $font-size-14;
  font-weight: $font-weight-bold;
  width: 100%;
  height: 100%;
  color: $primary-color;
  border: none;
  border-radius: 0;
  text-decoration: none !important;
  position: relative;

  &:hover {
    text-decoration: none;
    color: $primary-color;

    .content-on-image-bottom .title:after {
      animation: arrow2 0.5s linear 1;
      -webkit-animation-name: arrow2 0.5s linear 1;
    }
  }

  /* Icon */
  .icon {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    width: 40px;
    height: 40px;
  }

  /* Bild */
  .figure {
    width: 100%;
    overflow: hidden;
    position: relative;
    flex: 1 1 0%;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: 50% 50%;
    }

    .icon > div {
      height: 40px;
      width: 40px;
      background: $tertiary-color;
    }
  }

  .gradient-overlay:before {
    content: "";
    width: 100%;
    height: 80%;
    float: left;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
    background: transparent
      linear-gradient(
        180deg,
        #00000000 0%,
        #000b1b03 57%,
        #00273380 81%,
        #002733 100%,
        #003378 100%
      )
      0% 0%;
  }

  .gradient-overlay-dark:before {
    content: "";
    width: 100%;
    height: 50%;
    float: left;
    background: transparent linear-gradient(180deg, #00000000 0%, #000000 100%)
      0% 0%;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
  }

  .gradient-overlay-left:before {
    content: "";
    width: 100%;
    height: 100%;
    float: left;
    background: transparent
      linear-gradient(-90deg, transparent 0%, #000000 100%) 0% 0%;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
  }

  /* Inhalt */
  .content {
    display: flex;
    flex-direction: column;
    /*Content untereinander*/
    justify-content: center;
    padding: 30px;
    flex: 1 1 0%;
    position: static;
    width: 100%;

    @include media-breakpoint-down(md) {
      padding: 18px;
    }

    .icon {
      top: -25px;
      left: 30px;

      @include media-breakpoint-down(md) {
        left: 18px;
      }

      > div {
        height: 40px;
        width: 40px;
        background: $tertiary-color;
      }
    }

    p {
      padding-bottom: 0;

      @include media-breakpoint-down(md) {
        text-align: center;
      }

      &.text-right {
        text-align: right;
      }

      &.text-center {
        text-align: center;
      }
    }

    .details {
      font-weight: 400;
      padding-bottom: 30px;
    }

    /* Bewertung */
    .rating {
      position: relative;
      margin-bottom: 30px;

      .circle {
        border-radius: 100%;
        display: inline-block;
        height: 23px;
        width: 23px;
        overflow: hidden;
        position: relative;
        border: 3px solid $secondary-color;
      }

      .filled {
        background: $secondary-color;
      }
    }

    /* Titel */
    .title {
      display: flex;
      flex-direction: column;

      .subtitle {
        text-transform: uppercase;
        font-weight: $font-weight-light;
        font-size: $font-size-base;
        line-height: 1.2;
        padding: 0;

        table {
          margin-top: 10px;
          font-size: 14px;
          font-weight: 400;
          text-transform: none;
          width: 100%;

          tr {
            background-color: transparent;

            td {
              padding-right: 10px;
            }
          }
        }
      }
    }

    .subtitle-top {
      flex-direction: column-reverse;
    }

    .subtitle-bot {
      flex-direction: column;
    }

    /* Preis */

    .price-wrap {
      height: 100%;

      .price-right,
      price-left {
        margin-top: 15px !important;
        margin-bottom: 15px !important;

        li {
          .title {
            float: left;
            font-size: $font-size-24;
            font-weight: $font-weight-bold;
            max-width: 55%;

            .subtitle {
              font-size: $font-size-14;
              font-weight: $font-weight-normal;
              padding-top: 18px;
              text-transform: uppercase;

              @include media-breakpoint-down(md) {
                font-size: $font-size-10;
              }
            }
          }

          .price {
            float: right;
            padding-top: 0px;
            font-size: 38px;
            max-width: 45%;
            white-space: nowrap;
          }

          .from:before {
            position: absolute;
            top: -5px;
          }
        }
      }

      .price-left {
        li {
          .price-wrap-inner {
            padding-bottom: 0;

            .price {
              text-align: left;
              padding-bottom: 0;
            }
          }
        }
      }

      .price-items {
        padding: 0;

        li {
          padding: 0;

          &:before {
            display: none;
          }

          .price {
            font-size: $font-size-32;
            padding-bottom: 15px;
            display: flex;
            flex-direction: column;
            text-align: left;
            white-space: nowrap;

            @include media-breakpoint-down(md) {
              text-align: center;
            }
          }

          .from {
            font-weight: $font-weight-normal;
            font-size: $font-size-12;
            padding-bottom: 7px;
            text-align: left;
          }

          .price-wrap-inner {
            padding-bottom: 20px;
            line-height: $font-size-22;

            .price-old {
              color: $gray-a2;
              position: relative;
              font-size: $font-size-18;

              &:before {
                content: "";
                position: absolute;
                right: 3px;
                top: 11px;
                width: 40px;
                height: 2px;
                transform: rotate(-20deg);
                background: $secondary-color;
              }

              .termtxt {
                display: block;
                font-weight: 300;
                font-size: 8px;
                color: $primary-color;
                line-height: 0px;
                margin-top: 3px;
              }
            }
          }

          &.price-style2 {
            display: block;

            .price-wrap-inner {
              display: block;

              .price {
                display: block;
                text-align: left;
                padding-bottom: 0;

                span.from {
                  font-size: 14px;
                }

                span.price {
                  display: inline-block;
                  font-size: 16px;
                  font-weight: 700;
                }

                .title {
                  display: inline-block;
                  width: unset;
                  font-size: 14px;
                }
              }
            }
          }

          .title {
            text-transform: uppercase;
            font-weight: $font-weight-black;
            padding: 0;
            line-height: $line-height-22;
          }

          .subtitle {
            font-weight: $font-weight-light;
            line-height: $line-height-14;
            text-transform: none;
          }
        }
      }

      .items-below {
        display: flex;
        flex-direction: column;
        padding-top: 30px;
        padding-bottom: 30px;

        li {
          display: flex;
          flex-direction: row;
          background: $quaternary-color;
          justify-content: space-between;
          padding: 15px 20px;
          margin: 0 0 10px 0;
          line-height: $line-height-18;

          .title {
            font-weight: $font-weight-normal;
            font-size: $font-size-14;
            text-transform: none;
            width: 60%;
            justify-content: center;
          }

          .price-wrap-inner {
            display: flex;
            flex-direction: column-reverse;
            padding-bottom: 0;
            align-items: end;
            justify-content: center;

            .price {
              padding-bottom: 0;

              &:before {
                font-size: $font-size-16;
              }
            }

            .price-old {
              margin-top: -5px;
              margin-bottom: 8px;

              .termtxt {
                float: left;
                line-height: normal;
                margin-top: 0;
                font-size: $font-size-12;
                color: $gray-a2;
                line-height: $line-height-20;
                margin-right: 7px;
              }
            }
          }

          .price {
            font-size: $font-size-20;
          }
        }
      }

      .transparent {
        li {
          background: transparent;
          padding: 0;
        }
      }

      .items-aside {
        display: flex;
        flex-direction: row;
        gap: 20px;
        justify-content: space-around;
        padding-top: 20px;
        padding-bottom: 20px;

        @include media-breakpoint-down(md) {
          gap: 3px;
        }

        li {
          display: flex;
          flex-direction: column-reverse;
          justify-content: space-between;
          padding: 15px 20px;

          .title {
            font-weight: $font-weight-normal;
            font-size: $font-size-14;
            text-transform: none;
          }

          .price-wrap-inner {
            display: flex;
            flex-direction: column-reverse;

            .price-old:before {
              left: 0;
              right: 0;
            }

            .price {
              color: $yellow;

              @include media-breakpoint-down(md) {
                font-size: $font-size-24;
              }
            }
          }
        }
      }

      .small {
        li {
          font-family: $font-family-mukta;
          padding: 10px 20px;
          line-height: $line-height-30;
          height: 50px;

          .title {
            font-size: $font-size-18;
            line-height: $line-height-30;
            font-weight: $font-weight-normal;
          }

          .price-wrap-inner {
            .price-old {
              font-size: $font-size-14;
              color: #5f5f5f;
              margin-top: -8px;
              margin-bottom: -10px;
              line-height: initial;

              &:before {
                top: 14px;
                right: 3px;
                width: 30px;
              }

              .termtxt {
                color: #5f5f5f;
                float: left;
                line-height: initial;
                margin-top: 0;
                font-size: $font-size-14;
                margin-right: 10px;
              }
            }

            .price {
              font-size: $font-size-18;
              padding-bottom: 0;
              padding-top: 0;
            }
          }
        }
      }
    }

    .price-left {
      .price-items {
        li {
          .title {
            margin-bottom: 10px;

            .subtitle {
              font-size: $font-size-16;
            }
          }

          .price-wrap-inner {
            padding-bottom: 0;

            .price-old {
              float: right;

              .termtxt {
                float: left;
                line-height: normal;
                margin-top: 0;
                font-size: $font-size-12;
                color: $gray-a2;
                line-height: $line-height-30;
                margin-right: 10px;
              }
            }
          }

          .price {
            font-size: $font-size-24;
            float: left;
          }

          .from {
            &:before {
              font-size: $font-size-16;
            }
          }
        }
      }
    }

    /* ICON */

    .icon-left {
      float: left;
      margin-right: 25px !important;
    }

    .icon-big {
      width: 26px !important;
      height: 26px !important;
    }

    .icon-right {
      float: right;
      margin-left: 10px !important;
    }
  }

  /* .content */
}

.card .content .price-wrap .items-aside li .price-wrap-inner {
  @include media-breakpoint-down(sm) {
    padding-bottom: 0;
  }

  .price {
    @include media-breakpoint-down(sm) {
      font-size: $h3-font-size-sm;
      padding-bottom: 5px;
    }
  }
}

/* .card */

/* IMAGE CARD / CONTENT ON IMAGE */

.content-on-image {
  &.card {
    background: none;
  }

  .content {
    position: absolute !important;
    top: 50%;
    left: 0;
    transform: translate(0, -50%);
    z-index: 2;
    width: 70%;
  }

  @include media-breakpoint-down(md) {
    .figure {
      img {
        height: 265px;
        object-position: 80% 50%;
      }

      .icon {
        width: 25px;
        height: 25px;
      }
    }
  }
}

.content-on-image-bottom {
  &.card {
    background: none;
  }

  .content {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    width: 100%;
  }

  @include media-breakpoint-down(md) {
    .figure {
      .icon {
        width: 25px;
        height: 25px;
      }
    }

    .content .title h3 {
      font-size: $h2-font-size-sm;
    }

    .content .title:after {
      font-size: $font-size-18;
      position: absolute;
      top: 50%;
      right: 10px;
      transform: translate(0, -50%);
    }

    .content {
      padding: 10px;
    }
  }
}

a.content-on-image-bottom {
  .title:after {
    content: "\f054";
    font-family: "Font Awesome 5 Pro";
    font-weight: 900;
    font-size: 30px;
    position: absolute;
    top: 50%;
    right: 28px;
    transform: translate(0, -50%);
  }
}

.transparent {
  background-color: transparent;

  .content {
    padding-left: 0 !important;
  }
}

.highlight-box {
  background-color: $secondary-color;
  color: $primary-bg;

  .content {
    position: relative;

    &:before {
      content: "\f005";
      font-family: "Font Awesome 5 Pro";
      font-weight: 900;
      font-size: 41px;
      color: #e12321;
      line-height: 41px;
      position: absolute;
      top: -33px;
      z-index: 2;
    }

    .title h3 {
      color: $primary-bg;
      text-shadow: none;
    }

    .price-wrap .items-aside li .price {
      color: $primary-bg;
    }
  }

  &:hover {
    color: $primary-bg;
  }
}

.top-deal {
  .content {
    background: $quaternary-color;

    .price {
      color: $red !important;
    }

    .price-old {
      color: $primary-bg !important;
    }
  }
}

@include media-breakpoint-down(xl) {
  .card.break-early.img-left,
  .card.break-early.img-right {
    flex-direction: column;
  }

  .card.break-early .figure {
    max-height: 210px;
    min-height: 210px;
  }
}

@include media-breakpoint-up(md) {
  .card.img-right {
    flex-direction: row-reverse;

    .figure {
      height: 100%;
    }
  }
}

.img-left {
  flex-direction: row;
}

.img-top {
  flex-direction: column;

  .figure {
    max-height: 350px;
  }

  .content {
    display: flex;
    flex-direction: column;
    padding: 30px;
    flex: 1 1 0%;

    @include media-breakpoint-down(xxl) {
      padding: 12px;
    }
  }

  /* Feste Höhe für Figure -> Passt nicht für alle Cards

  .figure{
    height: 330px;
    flex: none;
  }

  @include media-breakpoint-down(lg){
    .figure{
      height: 200px;
    }
  }*/
}

.border-rounded {
  border-radius: $border-radius-card;

  &.img-top {
    .figure {
      border-radius: $border-radius-card $border-radius-card 0 0px;
    }

    .content {
      border-radius: 0 0 $border-radius-card $border-radius-card;
    }
  }

  &.img-left {
    .figure {
      border-radius: $border-radius-card 0px 0px $border-radius-card;

      @include media-breakpoint-down(md) {
        border-radius: $border-radius-card $border-radius-card 0px 0px;
      }
    }
  }

  &.content-on-image-bottom,
  &.content-on-image {
    .figure {
      border-radius: $border-radius-card;
    }
  }

  .gradient-overlay-dark {
    border-radius: $border-radius-card;
  }
}

.zoom-in:hover {
  .figure > img {
    transform: scale(1.05);
  }
}

.transition {
  transition: all 0.25s ease-out;
}

.termcond-txt {
  width: 100%;
  float: none;
  display: inline-block;
  vertical-align: top;
  font-weight: 500;
  font-size: 12px;
  color: #ffffff;
  line-height: 16px;
}

.icon-list {
  ul {
    padding: 0;

    li {
      padding-left: 0;
      padding-bottom: 20px;

      .icon {
        position: initial;
        float: left;
        margin-right: 20px;
      }

      .text-wrap {
        line-height: $line-height-18;

        .category {
          font-weight: $font-weight-normal;
          font-size: $font-size-14;
        }

        .value {
          font-size: $font-size-18;
        }
      }

      &:before {
        display: none;
      }
    }
  }
}

/* RESPONSIVE */

@include media-breakpoint-down(md) {
  .img-left,
  .img-right {
    flex-direction: column;

    .figure {
      max-height: 250px;
    }
  }

  .container-small {
    padding: 0 40px;
  }

  .card .content > .title {
    h3,
    .subtitle p {
      text-align: left !important;
      padding-top: 5px;
    }
  }
}

/* SLIDER WITH LARGER CENTER CARD */

.owl-carousel.center-large {
  .owl-item {
    margin-top: 40px;
    margin-bottom: 40px;
    transition: margin-bottom 0.25s, margin-top 0.25s;

    @include media-breakpoint-down(xl) {
      margin-top: 0px;
      margin-bottom: 0px;
    }

    .slide-item-review {
      > * {
        transition: margin-bottom 0.25s;
      }
    }
  }

  .owl-item.center {
    margin-top: 0;
    margin-bottom: 0;

    .slide-item-review {
      > * {
        margin-bottom: 40px;

        &:last-child {
          margin-bottom: 0;
        }
      }
    }
  }
}

.fourcol-25-25-25-25 {
  .col-6.col-sm-6.col-md-6 {
    @include media-breakpoint-down(sm) {
      width: 100%;
    }
  }
}
.mobile-slider-five-col,
.mobile-slider-four-col,
.mobile-slider-three-col,
.mobile-slider-multi-row {
  .owl-carousel {
    .owl-item {
      display: flex;
      .content-on-image .figure img {
        @include media-breakpoint-down(sm) {
          border-radius: 12px;
        }
      }
    }
  }
}
