/* header */

#site-header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;

  >.wrap {
    display: flex;
    flex-flow: row;
    gap: 0.6rem;
    align-items: center;
    max-width: var(--v3-container-max-w);
    margin-inline: auto;
    padding-block: 1rem;

    @media (width < 1200px) {
      & {
        padding-inline: 1rem;
      }
    }
  }
}

#logo {
  padding: 0.6rem;
  flex-grow: 1;

  img {
    height: 41px;
  }

  @media (width <=768px) {
    & {
      padding-inline: 0;

      img {
        max-width: 90%;
      }
    }
  }
}

.mobile-menu .icon {
  font-size: 24px;
}

@media (width >=1200px) {
  .mobile-menu {
    display: none;
  }
}


.top-nav {
  .close {
    display: none;
  }

  >ul {
    display: flex;
    flex-flow: row;
    align-content: center;
    gap: 1rem;

    >li {
      margin: 0;
      color: inherit;

      a {
        margin: 0;
        color: inherit;
      }
    }
  }
}

#page:has(#main-nav.active)::after {
  content: "";
  width: 100vw;
  height: 100vh;
  z-index: 999998;
  background: rgb(0, 0, 0, 0.5);
  display: block;
  position: fixed;
  top: 0;
  left: 0;
}

#main-nav {
  @media (width < 1200px) {
    &:not(.active) {
      /*display: none;*/
      visibility: hidden;
      pointer-events: none;
    }

    &.active {
      left: 0;
    }

    & {
      position: fixed;
      top: 0;
      left: -100%;
      z-index: 999999;
      width: clamp(200px, 300px, 80%);
      height: 100%;
      background: #fff;
      padding: 1rem;
      transition: all 0.3s ease;

      .close {
        display: block;
        text-align: right;
        font-size: 2rem;
        margin-bottom: 1rem;
      }

      >ul {
        display: flex;
        flex-flow: column;
        gap: 0;

        li {
          border-top: 1px solid #ddd;

          a {
            padding-block: 0.5rem;
            display: block;
            text-decoration: none;
          }
        }
      }
    }
  }
}

#meta-nav {
  ul {
    justify-content: right;
    gap: 1.5rem;
    padding: 0;
    display: flex;
    flex-flow: row;

    li {
      margin: 0;
      position: relative;

      &:not(:last-child)::after {
        background: #ddd;
        content: "";
        height: 0.75rem;
        width: 2px;
        position: absolute;
        right: -0.8rem;
        top: 0.4rem;
      }

      a {
        &::before {
          aspect-ratio: 1;
          font-family: unset;
          content: "";
          width: 1.5em;
          display: inline-block;
          background-size: contain;
          background-repeat: no-repeat;
          background-color: #7b7b7b;
          margin: 0;
          vertical-align: top;
        }
      }

      &:nth-child(1) a::before {
        mask: url("https://xxlpix-all.b-cdn.net/icons-huge/delivery-truck.svg") no-repeat center / contain;
      }

      &:nth-child(2) a::before {
        mask: url("https://xxlpix-all.b-cdn.net/icons-huge/chatting.svg") no-repeat center / contain;
      }

      &:nth-child(3) a::before {
        mask: url("https://xxlpix-all.b-cdn.net/icons-huge/shopping-cart-02.svg") no-repeat center / contain;
      }
    }

    .js-count-cart {
      font-size: 12px;
      line-height: 20px;
      position: absolute;
      top: -10px;
      right: -10px;
      width: 20px;
      height: 20px;
      background: #e13333;
      color: #fff;
      text-align: center;
      font-weight: bold;
      border-radius: 100%;
    }

    .js-count-cart:empty {
      display: none;
    }

    span:not(.js-count-cart) {
      display: none;
    }
  }
}

@media (width > 960px) {
  & {
    width: fit-content;
  }
}


/*
#top-nav {
  pointer-events: none;
  display: flex;
  flex-flow: row;
  align-items: center;

  >* {
    pointer-events: all;
  }

  .close {
    font-size: 2rem;
    align-self: flex-start;
    width: fit-content;
    padding: 0.6rem;
    margin: -0.6rem;
  }

  a {
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
  }

  @media (width > 960px) {

    .close {
      display: none;
    }
  }

  @media (width <=960px) {
    & {
      display: none;
      opacity: 0;
      position: fixed;
      top: 0;
      right: 0;
      width: 85%;
      max-width: 360px;
      height: 100vh;

      background: #fff;
      overflow-y: auto;
      z-index: 1000;

      translate: 100vw 0;
      transition: translate 0.3s ease, display 0.3s ease, opacity 0.3s ease;
      transition-behavior: allow-discrete;

      &.is-open {
        opacity: 1;
        display: flex;
        flex-flow: column;
        gap: 0.6rem;
        translate: 0 0;
        padding: 1rem;

        @starting-style {
          opacity: 0;
          translate: 100vw 0;
        }
      }
    }
  }

}

#meta-nav {
  order: 2;
  padding: 0;

  ul {
    flex-grow: 1;
    justify-content: right;
    list-style: none;
    display: flex;
    flex-flow: row;
    gap: 0.6rem;
    padding: 0;

    li {
      margin: 0;
    }

    span:not(.icon, .js-count-cart) {
      display: none;
    }
  }

  @media (width > 960px) {
    & {
      width: fit-content;
    }
  }

  @media (width <=960px) {
    & {
      margin-top: 1rem;
    }

    ul {
      display: flex;
      flex-flow: column;
      justify-content: right;
      text-align: right;
    }
  }
}

#main-nav {
  .menu-item {
    margin: 0;

    a {
      color: inherit;
      padding: 0;
    }
  }

  @media (width > 960px) {
    & {
      flex-basis: 100%;
      display: flex;
      background-color: var(--secondary-color);
      justify-content: center;
      position: relative;
    }

    a,
    span {
      color: #fff;
      display: block;
    }

    ul {
      list-style: none;
      padding: 0;
    }

    >ul {
      display: flex;
      flex-flow: row;
      gap: 0.6rem;

      ul {
        display: none;
      }

      >li>a,
      >li>span {
        padding: 0.3rem 2rem;

        &:is(a):hover {
          text-decoration: underline;
        }
      }

      >li:hover>a,
      >li:hover>span {
        background-color: var(--secondary-color-hover);
      }

      >li:hover>ul {
        display: flex;
        flex-flow: wrap;
        background: #fff;
        position: absolute;
        z-index: 1;
        left: 1rem;
        top: 100%;
        width: calc(100% - 2rem);
        gap: clamp(1rem, 3rem, 3rem);
        border-bottom-right-radius: 10px;
        border-bottom-left-radius: 10px;
        padding: 1rem;
        justify-content: center;
        box-shadow: 0px 5px 10px -5px rgba(0, 0, 0, 0.5);

        >li>span {
          font-weight: 600;
        }

        a,
        span {
          color: #333;
        }

        >li>ul {
          display: flex;
          flex-flow: column;
        }
      }
    }
  }


  @media (width <=960px) {

    ul {
      list-style-type: none;
      display: flex;
      flex-flow: column;
      padding: 0;
      text-align: right;

      li {
        padding: 0.25rem 0;
        display: flex;
        flex-flow: wrap;
        align-items: center;

        &:has(ul)::before {
          content: "";
          width: 1em;
          height: 1em;
          display: inline-block;
          background-size: contain;
          background-repeat: no-repeat;
          background-color: #7b7b7b;
          mask: url("https://xxlpix-fce.b-cdn.net/icons/chevron-right-solid.svg") no-repeat center / contain;
          -webkit-mask: url("https://xxlpix-fce.b-cdn.net/icons/chevron-right-solid.svg") no-repeat center / contain;
        }

        &.active:has(ul)::before {
          mask: url("https://xxlpix-fce.b-cdn.net/icons/chevron-down-solid.svg") no-repeat center / contain;
          -webkit-mask: url("https://xxlpix-fce.b-cdn.net/icons/chevron-down-solid.svg") no-repeat center / contain;
        }

        >span {
          flex: 1;
          flex-basis: 70%;
        }
      }

      li:not(.active) ul {
        display: none;
      }

      ul {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        flex: 1;
      }
    }

    >ul>li {
      border-top: 1px solid #eee;
      padding: 0.5rem 0;

      &:last-child {
        border-bottom: 1px solid #eee;
      }

      >span {
        text-transform: uppercase;
        font-size: 1.2rem;
      }
    }

    >ul ul ul {
      border-right: 1px solid #666;
      padding-right: 0.75rem;
    }


  }
}
*/

#page .promotion-header {
  padding: 10px 0 12px 0;
  background-color: var(--v3-promo-color);
}


/* content */

#content:has(hero),
#content:has(.hero) {
  margin-top: 0;
}

.font-serif {
  font-family: 'playfair', Times, serif;
}

benefit-bar {
  display: block;
  margin-bottom: 7rem;

  @media (width <=1200px) {
    & {
      z-index: -1;
      margin-bottom: 7rem;
    }
  }

}

.js-product-widget.v2.overlay-bike {
  background-image: none !important;
  background-color: #f2f2f2;

  .wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: min-content min-content;
    /* Rows so klein wie möglich */
    align-content: center;
    /* gesamtes Grid vertikal zentrieren */
    column-gap: 2rem;
    row-gap: .5rem;

    >* {
      width: auto;
    }

    &::before {
      opacity: 0.5;
    }
  }

  /* links */
  .wrap>h2,
  .wrap>.content {
    grid-column: 1;
  }

  /* rechts */
  .wrap>.image {
    grid-column: 2;
    grid-row: 1 / 3;
    /* über beide Reihen */
    align-self: center;
    /* Bildblock selbst mittig */
  }

  /* wichtig: default margins killen */
  .wrap>h2 {
    margin: 0;
  }

  /* oder margin-bottom: .5rem; */
  .wrap>.content {
    margin: 0;
  }

  /* falls da auch margins drin sind */

  .image img {
    max-width: 100%;
    height: auto;
    display: block;
  }


}

.info-text {
  background: #7676761C;
  border: 0;
  padding: 4rem 2rem;
  width: 100vw;
  translate: -50% 0;
  margin-left: 50%;

  hr {
    max-width: var(--v3-container-max-w);
  }

  >div {
    max-width: var(--v3-container-max-w);
    margin-inline: auto;
  }

  h2 {
    text-align: center;
  }

  h3 {
    font-size: 1.3em;

    &:first-of-type {
      margin-top: 0;
    }
  }

  ul {
    padding: 0;
    margin-block: 2rem
  }
  h3 + ul {
    margin-top: 0;
  }

  p,
  ul li,
  a {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    text-align: left;
    text-wrap: auto;
  }

  a {
    text-decoration: underline;
  }

  .link-box {
    ul {
      column-count: 2;
      gap: 2rem;
      margin: 0;
    }
  }

  @media (width <=768px) {
    & {
      font-size: 0.8rem;
      line-height: 1rem;

      [class*="col-"] {
        column-count: 1;
        text-align: center;
      }

      [class*="grid-"] {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem 1.5rem;
      }
    }
  }
}

ul {
  &.t-center {
    width: max-content;
    text-align: left !important;
  }

  &.passive {
    li::before {
      color: inherit;
    }
  }
  &.dash {
    list-style-type: "- ";
    padding-left: 40px;
    margin-block: 1rem;
  }

  &.no-indent {
    padding-left: 0.5rem;
    &.standard {
      padding-left: 1rem;
    }
  }

}

.shop-product-view > div:nth-child(1) {
  width: 100% !important;
}


/* footer */

#content:has(.info-text)~#footer {
  margin-top: 0;
}

.entry-footer {
  display: none;
}

#footer {
  padding: 1rem;
  margin-top: 140px;

  >div {
    max-width: var(--v3-container-max-w);
    margin-inline: auto;

    >section:not(:first-child) {
      border-top: 1px solid #888;
    }

    >section {
      padding-block: 1.5rem;
      display: flex;
      flex-flow: row;
      gap: 2rem;
      justify-content: center;

      &:nth-child(2) {
        >div {
          width: 50%;

          &:last-child {
            width: 100%;
            flex-grow: 1;
          }

          @media (width <=768px) {
            &:last-child {
              display: none;
            }
          }
        }

        p {
          font-size: 0.9rem;
        }

      }

      &:nth-child(3) {
        >div {
          width: 50%;
        }
      }
    }

    p {
      font-size: 1rem;
      line-height: 1.3rem;
    }

    strong {
      font-weight: 600;
    }

    .trustbar-payment {
      background-color: transparent !important;
      padding: 0;
      margin: 0 !important;

      >p {
        color: #ddd;
        margin: 0;
      }
    }

    .trustbar-new {
      background-color: transparent !important;
      z-index: 0;
      margin: 0;
      position: static;
      max-width: 100%;
      overflow: auto;

      >.wrap {
        display: flex;
        justify-content: center;
        gap: 2rem;
        max-width: none;
        margin: 0;

        @media (width <=768px) {
          & {
            gap: 1rem;
          }
        }

        img {
          filter: brightness(3) saturate(0%);
          opacity: 0.9;
          height: 40px;
          margin: 0;

          @media (width <=768px) {
            & {
              height: 25px;
            }
          }
        }
      }
    }
  }

  .social-icons {
    [class*=icon]::before {
      all: unset;
    }

    [class*=icon]::after {
      content: "";
      aspect-ratio: 1;
      height: 48px;
      margin: 0 auto;
      display: block;
      background-color: #ddd;
    }
  }

  .social-icons .icon-facebook::after {
    mask: url('https://xxlpix-all.b-cdn.net/icons-huge/facebook-01.svg') no-repeat center / contain;
  }

  .social-icons .icon-twitter::after {
    mask: url('https://xxlpix-all.b-cdn.net/icons-huge/new-twitter.svg') no-repeat center / contain;
  }

  .social-icons .icon-pinterest::after {
    mask: url('https://xxlpix-all.b-cdn.net/icons-huge/pinterest.svg') no-repeat center / contain;
  }

}

ul.accordion {
  max-width: 768px;
  margin-inline: auto;
  h3 {
    padding-right: 1em;
  }
}


/* components */

three-steps {
  visibility: hidden;
}

print-size-preview-selector img {
  transition: all 0.3s ease;
}