.main__aside {
  position: fixed;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  z-index: 1;
  top: 0;
  left: 0;
  flex: 0 0 0;
  flex-basis: var(--asidenav-width-lg, 20%);
  min-height: calc(100% - var(--header-height));
  transition: all .2s ease-out;
  width: var(--asidenav-width-lg, 20%);
  height: 100%;

  &::before {
    position: absolute;
    z-index: -1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-dark);
    opacity: 0.05;
  }

  &::after {
    content: '';
    position: absolute;
    z-index: -2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-grey-light);
  }
}

@media (max-width: 425px) {

  .main__aside {
    position: fixed;
    top: var(--header-height-collapsed);
    left: 0;
    right: 0;
    bottom: 0;
    height: 100% !important;
    width: 100%;
    z-index: 5;
    overflow: hidden;
    transform: translateX(-110%);
    transition: transform .2s ease-out;

    &.main__aside--expanded {
      transform: translateX(0%);
    }

    .asidenav__box-title {
      font-size: 18px;
      padding-left: 10px;

      &.js-show-hide__toggle::before {
        top: 25px;
      }
    }
  }
}

@media (min-width: 1200px) {
  .main__aside {
    width: var(--asidenav-width-xl, 250px)
  }
}

.asidenav {
  color: var(--color-font);
}

.asidenav__box {
  transition: opacity .2s ease;

  + .asidenav__box {
    margin-top: 10px;
  }
}

.asidenav__box-title {
  padding: 7px 13px;
  margin-top: 30px;
  background-color: transparent;
  transition: all .2s ease;
  padding: 30px 13px 10px;
  margin: 0;
  border-bottom: 1px solid var(--color-grey);

  &.js-show-hide__toggle {

    &::before {
      left: auto;
      right: 20px;
      top: 30px;
      color: var(--color-font);
    }
  }
}

/* LOGO */

.asidenav__logo {
  height: var(--header-height);
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {

  .asidenav__logo {
    display: none;
  }
}

.asidenav__logo-link {
  flex: 1;
  top: 10px;
  left: 20px;
  height: 80px;
  padding: 0 20px;
  display: flex;
  flex-basis: var(--asidenav-width-xl, 250px);
  font-size: 16px;
  align-items: center;
  color: var(--color-primary);
  transform-origin: left;

  &:hover {
    color: var(--color-lightwhite);

    .asidenav__logo-link-item {
      background-color: var(--color-primary);
    }
  }
}

.asidenav__logo-link-item {
  font-weight: bold;
  display: flex;
  align-items: flex-end;
  height: calc(100% - 4px);
  padding: 0 6px 4px;
  border: 1px solid var(--color-primary);
  letter-spacing: 2px;
  background-color: var(--color-lightwhite);
  transition: background-color .3s ease;
}

.asidenav__logo-lmu {
  font-family: var(--font-logo);
  font-size: 30px;
}

.asidenav__logo-uni2work {
  min-width: 70px;
  margin-left: 12px;
  font-weight: normal;
  text-transform: uppercase;
  width: 100%;
}

@media (max-width: 1199px) {

  .asidenav__logo-link {
    flex-basis: var(--asidenav-width-lg, 20%);
    font-size: 16px;
  }

  .asidenav__logo-lmu {
    display: none;
  }

  .asidenav__logo-uni2work {
    margin-left: 0;
  }
}

/* LIST-ITEM */

.asidenav__list-item {
  position: relative;
  color: var(--color-font);
  min-height: 50px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;

  &:not(.asidenav__list-item--active):hover {
    background-color: var(--color-lightwhite);

    > .asidenav__link-wrapper {
      color: var(--color-font);
    }
  }

  &:hover {

    .asidenav__link-shorthand {
      transform: scale(1.05, 1.0);
      transform-origin: right;
      text-shadow: none;
    }

    .asidenav__nested-list {
      transform: translateX(100%);
      opacity: 1;
      width: 200px;
    }
  }
}

/* small list-item-padding for medium to large screens */
@media (min-width: 1025px) {

  .asidenav__list-item {
    padding-left: 10px;
  }
}

.asidenav__list-item--active {
  background-color: var(--color-lightwhite);

  .asidenav__link-wrapper {
    color: var(--color-link);
  }

  .asidenav__link-shorthand {
    transform: scale(1.05, 1.0);
    transform-origin: right;
    text-shadow: none;
  }
}

.asidenav__link-wrapper {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  padding: 7px 10px;
  justify-content: flex-start;
  color: var(--color-font);
  width: 100%;
  z-index: 1;
}

.asidenav__link-shorthand {
  display: none;
}

.asidenav__link-label {
  line-height: 1;
}

/* hover sub-menus */
.asidenav__nested-list {
  position: absolute;
  top: 0;
  right: 0;
  color: var(--color-font);
  transform: translateX(0);
  opacity: 0;
  width: 0;
  overflow: hidden;
  z-index: -1;
  box-shadow: 0 0 13px rgba(0, 0, 0, 0.4);
}

@media (max-width: 425px) {

  .asidenav__nested-list {
    display: none;
  }
}

.asidenav__nested-list-item {
  position: relative;
  color: var(--color-lightwhite);
  background-color: var(--color-dark);

  &:hover {
    background-color: var(--color-darker);
  }

  .asidenav__link-wrapper {
    padding-left: 13px;
    padding-right: 13px;
    border-left: 20px solid white;
    transition: all .2s ease;
    color: var(--color-lightwhite);
  }
}

/* TABLET */
@media (min-width: 426px) and (max-width: 768px) {

  .main__aside {
    width: var(--asidenav-width-md, 50px);
    flex-basis: var(--asidenav-width-md, 50px);
    overflow: hidden;
    min-height: calc(100% - var(--header-height-collapsed));
    top: var(--header-height-collapsed);

    .asidenav__box-title {
      width: var(--asidenav-width-md, 50px);
      font-size: 18px;
      text-align: center;
      padding: 10px 1px;
      word-break: break-all;
      background-color: var(--color-dark);
      color: var(--color-lightwhite);
    }

    .asidenav__link-shorthand {
      display: flex;
      position: static;
      height: 50px;
      width: var(--asidenav-width-md, 50px);
      text-align: center;
      opacity: 1;
      font-size: 15px;
      line-height: 1em;
      margin-right: 13px;
      flex-shrink: 0;
      padding: 1px;
      outline: 1px solid white;
      word-break: break-all;
      align-items: center;
      justify-content: center;
    }

    .asidenav__list-item {
      padding-left: 0;

      + .asidenav__list-item {
        margin: 0;
      }
    }

    .asidenav__link-wrapper {
      color: var(--color-font);
      padding: 0;
    }

    .asidenav__nested-list,
    .asidenav__link-label {
      display: none;
    }

    .asidenav__list-item--active {

      .asidenav__link-wrapper {
        background-color: var(--color-lightwhite);
      }
    }

    .js-show-hide__toggle::before {
      content: none;
    }
  }
}
