@scope (.header) {
  :scope {
    position: fixed;
    inset: 0% 0% auto;
    z-index: 100;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-bg-light);
  }

  .padding-global {
    z-index: 1;
  }

  .nav-main-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
  }

  .brand {
    position: relative;
    display: block;
    text-decoration: none;
    color: #333333;
  }

  .logo {
    width: 74%;
    vertical-align: middle;
  }

  .nav-inner-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
  }

  .nav-menu {
    display: flex;
    justify-content: flex-start;
    align-self: flex-end;
    align-items: center;
    gap: 1.2rem;
  }

  .nav-link {
    position: relative;
    display: inline-block;
    vertical-align: top;
    color: var(--color-blue);
    padding: 0;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: all 0.15s ease-out;

    &:hover {
      color: var(--color-orange);
    }
  }

  .nav-link.w--current {
    color: var(--color-blue);
    font-size: 1rem;
  }

  .nav-link-button-wrapper {
    display: contents;
  }

  .button_market {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    border: 0.2em solid var(--color-orange);
    background-color: var(--color-orange);
    color: var(--color-text);
    border-radius: var(--radius);
    padding: 0.1rem 0.8rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    text-decoration: none;
    transition: all 0.3s;

    &:hover {
      border: 0.2em solid var(--color-orange);
      color: var(--color-orange);
      background-color: var(--color-white);
    }
  }

  .code-embed {
    display: flex;
  }

  /* Zwischen ca. 1051-1149px wird die Nav-Leiste (Links + "Anfrage" +
     "Zum Marktplatz") bei fixer 1rem-Buttongroesse zu eng und
     "Zum Marktplatz" bricht zweizeilig um -- Desktop-Menu ist hier noch
     aktiv (Breakpoint fuer Mobile-Menu liegt bei 991px), daher eigene
     Zwischenstufe fuer den knappen Desktop-Bereich. */
  @media (width <= 1200px) {
    .button_market {
      font-size: 0.9rem;
    }

    .nav-menu {
      gap: 1rem;
    }
  }

  .menu-button {
    display: none;
    position: relative;
    float: right;
    padding: 18px;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
  }

  .icon-2 {
    display: block;
    width: 40px;
    height: 40px;
    color: var(--color-text);
  }

  .menu-button.w--open {
    background-color: var(--color-grey);
  }

  @media (width <= 991px) {
    .nav-link {
      display: block;
      padding: 25px 0;
      text-align: center;
    }

    .logo {
      width: 75%;
    }

    .nav-main-wrapper {
      justify-content: space-between;
    }

    .nav-inner-wrapper {
      align-self: center;
    }

    .nav-menu {
      display: block;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background-color: var(--color-white);
      text-align: center;
      padding-bottom: 3rem;
      overflow: hidden;
      max-height: 0;
      opacity: 0;
      visibility: hidden;
      transition:
        max-height 0.3s ease,
        opacity 0.3s ease,
        visibility 0s linear 0.3s;
    }

    .nav-link-button-wrapper {
      display: block;
      padding-block: 1.25rem;
    }

    .button_market {
      display: inline-flex;
      font-size: 0.8em;
    }

    .menu-button {
      display: block;
      align-self: center;
      padding: 0 0 0 1.5em;
    }

    .icon-2 {
      width: 35px;
      height: 30px;
    }

    :scope[data-open] .nav-menu {
      max-height: 80vh;
      opacity: 1;
      visibility: visible;
      transition:
        max-height 0.3s ease,
        opacity 0.3s ease,
        visibility 0s linear;
    }
  }

  @media (width <= 767px) {
    .button_market {
      padding-block: 0.3em;
      font-size: 0.7em;
    }
  }

  @media (width <= 479px) {
    .logo {
      width: 74%;
    }
  }
}
