body.scroll-lock {
  overflow-y: hidden;
}

.modal {
  display: none;
}

.modal .close {
  position: absolute;
  right: 40px;
  width: 24px;
  height: 24px;
  background-image: url('/themes/akademie/img/close.svg');
  background-repeat: no-repeat;
  background-position: center center;
  cursor: pointer;
  z-index: 100;
}

.modal--show {
  display: block;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;

  padding: 40px 40px 64px 0;

  background-color: #fff;
}

.modal__inner {
  position: absolute;
  top: 40px;
  left: 0;
  right: 20px;
  bottom: 40px;
}

@media screen and (min-width: 768px) {
  .modal__inner {
    right: 40px;
  }
}

.modal__inner .filters {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
}

@media screen and (min-width: 1024px) {
  .modal-trigger,
  .modal .close {
    display: none;
  }
  
  .modal {
    display: block;
  }

  .modal--search-filter .modal__inner,
  .modal--course-overview .modal__inner {
    overflow: visible;
  }

  .modal__inner,
  .modal__inner .filters {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    overflow: visible;
  }

  .modal--show {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    z-index: auto;
  
    padding: 0;
  }
}

.modal.modal--search-filter.modal--course-overview{
  display: none;
}