.no-posts-wrapper {
  width: 100%;
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
}

.main-wrapper {
  min-height: 90vh;
  display: flex;
  position: relative;
}

.list-content {
  width: 100%;
}

.list-content__top-bar {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.list-content__top-bar .search-icon {
  font-size: 1.8rem;
  margin-top: 8px;
  margin-left: 16px;
  cursor: pointer;
  transition: all 0.4s ease;
}

.list-content__top-bar .search-icon:hover {
  color: #8bc99c;
}

.disable-scroll {
  height: 100vh;
  overflow: hidden;
}

/*filter css*/
.mobile-filter {
  visibility: hidden;
  width: 0%;
  height: 0px;
  padding: none;
  margin: none;
}

.filter-wrapper {
  align-self: flex-start;
  display: flex;
  height: fit-content;
  min-height: 400px;
  width: 25%;
  min-width: 250px;
  padding: 24px;
  background: white;
  box-shadow: 5px 10px 10px 5px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
}

.mobile-filter-close {
  width: 0%;
  height: 0%;
  visibility: hidden;
}

.filter-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.filter-form__selector {
  width: 100%;
}

#filter-lage {
  width: 100%;
}

.filter-form__lage__btn {
  width: 100%;
}

.checkbox-wrapper-group {
  margin-bottom: 1.2rem;
}

.load-more-lage-options {
  display: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.filter-form__selector__btn i {
  margin-left: 5px;
}

.filter-form.sorting {
  width: fit-content;
  float: left;
  margin-top: 0px;
  margin-left: 40px;
  display: inline-flex;
  justify-content: flex-start;
  align-items: start;
  position: relative;
}

.filter-form__sorting__select {
  display: none;
}

.sorting-icon {
  margin-left: 4px;
}

/*search*/
.paksv__search-modal {
  visibility: hidden;
  width: 0%;
  height: 0px;
  transform: scale(0);
  background-color: white;
  justify-content: center;
  transition: all 0.4s ease;
}

.paksv__search-modal-close {
  width: 100%;
  visibility: visible;
  text-align: right;
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.4s ease;
}

.paksv__search-modal-close:hover {
  color: #8bc99c;
}

.search-wrapper {
  display: inline-flex;
  width: 600px;
  position: relative;
}

#search-input {
  margin-top: 40px;
  height: 45px;
  width: 100%;
  text-align: start;
  background: white;
  color: #333;
  border: none;
  border-bottom: 1px solid #eee;
  border-radius: 12px;
  padding: 8px 16px;
  transition: all 0.2s ease;
}

#search-input:focus {
  border-bottom: 1px solid #333;
}

.paksv__search-results {
  background: white;
  position: absolute;
  z-index: 99;
  top: 100%;
  left: 0px;
  right: 0px;
  border-radius: 12px;
  padding: 16px;
  flex-direction: column;
  flex-wrap: wrap;
}

.paksv__search-results a {
  color: #333;
  overflow: visible;
}

.search-result-item-wrapper {
  display: flex;
  align-items: center;
  height: 100px;
  width: 100%;
  margin-bottom: 8px;
  border-bottom: 1px solid #eee;
  transform: scale(1);
  transition: all 0.3s ease;
}

.search-result-item-wrapper:hover {
  transform: scale(1.05);
  border-bottom: 1px solid #333;
}

.search-result-item-wrapper img {
  width: 50px;
  object-fit: contain;
}

.search-result-item-wrapper .search-result-content {
  display: flex;
  flex-direction: column;
  margin-left: 16px;
}

.no-search-result-item-wrapper {
  text-align: center;
  width: 100%;
  margin-top: 16px;
  white-space: nowrap;
}

/*select2 styles*/
.select2-container {
  margin-bottom: 48px;
}

.select2-container--default .select2-selection--single {
  border: none;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  background: white;
  border: 1px solid #333;
  color: #333;
  border-radius: 12px;
  padding: 8px 16px;
  text-align: center;
}
.select2-container .select2-selection--single .select2-selection__arrow {
  display: none;
}

.select2-container--default .select2-results > .select2-results__options {
  max-height: fit-content;
  color: #333;
  margin-top: 8px;
}

.select2-results__option {
  background-color: white;
  color: #333;
}

.select2-container--default
  .select2-results__option--highlighted[aria-selected] {
  background-color: #555;
  color: white;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
  background-color: #333;
  color: white;
}

.filter-form button,
.filter-form .form-btn,
.read-more-btn {
  padding: 5px 10px;
  background: white;
  border: 1px solid #333;
  color: #333;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease-out;
  margin-top: 20px;
}

.filter-form button:hover,
.read-more-btn:hover {
  background: #333;
  border: 1px solid white;
  color: white;
}

.disable-submit-btn,
.disable-checkbox {
  pointer-events: none;
  cursor: none;
  opacity: 0.3;
}

.checkbox-wrapper-group__categories {
  display: flex;
  flex-direction: column;
}

.checkbox-wrapper.sonstige {
  order: 99;
}

.checkbox-wrapper-label {
  font-weight: 500;
  margin-top: 1.2rem;
}

.checkbox-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  margin: 5px 0px;
}

.checkbox-wrapper label {
  margin-left: 5px;
}

.filter-form p {
  margin-bottom: 5px !important;
}

.filter-form #alter-range {
  background: none;
  color: #333;
  border: none;
  height: 50%;
  font-size: 0.8rem;
  text-align: center;
}

#slider-alter-range .ui-slider-handle {
  outline: 0;
  background: lightcyan;
  border-radius: 50%;
}

#slider-alter-range .ui-slider-horizontal {
  top: 1em;
  left: 5%;
  height: 0.1em;
  width: 90%;
  border: 1px solid #333;
  background: #fff;
}

#slider-alter-range .ui-widget-header {
  background: whitesmoke;
}

#slider-alter-range {
  margin-bottom: 20px;
}

/*cards css*/
.list-content::-webkit-scrollbar {
  display: none;
}
.list-content {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.list-wrapper,
.list-wrapper-cards {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: stretch;
  gap: 40px;
}

.list-wrapper {
  margin-left: 40px;
}

.kbs-content__cat__wrapper {
  width: 100%;
  margin-top: 32px;
}

[data-slug="schule"]:not(.cateogry-checkbox) {
  order: -1;
  margin-top: 0px;
}

[data-slug="sonstige"]:not(.category-checkbox) {
  order: 999;
}

.kbs-content__cat__title {
  margin-bottom: 0px;
  margin-top: 0px;
}

.kbs-content__cat__divider {
  height: 2px;
  width: 60%;
  margin-bottom: 1.3rem;
  background: lightgray;
  border-radius: 8px;
}

.list-item {
  width: 300px;
  padding: 20px;
  min-height: fit-content;
  box-shadow: 5px 10px 10px 5px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.4s ease-out;
  transform: scale(1);
}

.list-item-desc {
  margin-bottom: 24px;
}

.list-item-content,
.list-item-wrapper {
  height: 100%;
}

.list-item-wrapper {
  display: flex;
  flex-direction: column;
}

.list-item img {
  height: 200px;
  width: 100%;
  object-fit: contain;
}

.list-item:hover {
  transform: scale(1.05);
}

.list-item-subcontent {
  display: flex;
  margin-bottom: 16px;
  font-size: 1rem !important;
  color: gray !important;
}

.list-item-year {
  margin-left: 5px;
}

.list-item-title {
  font-size: 1.2rem !important;
}

.list-item-desc {
  color: gray;
}

.list-item-desc:hover {
  color: gray;
}

.read-more-btn {
  width: 45%;
  text-align: center;
  margin-top: auto !important;
}

.modal-open {
  display: flex;
  width: 100%;
  height: 100vh;
  align-items: flex-start;
  visibility: visible;
  transform: scale(1);
  z-index: 10012;
  position: fixed;
  left: 0;
  top: 0;
  padding: 40px;
  overflow-y: scroll;
}

/*responsive design*/
@media screen and (max-width: 720px) {
  .main-wrapper {
    flex-direction: column;
  }

  .filter-wrapper {
    position: absolute;
    transform: scale(0);
    width: 0%;
    height: 0%;
    transition: all 0.4s ease;
  }

  .mobile-filter p {
    margin: 0px 0px 0px 10px !important;
  }

  .mobile-filter-form {
    margin: 10px 0px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .list-content__top-bar {
    justify-content: space-between;
  }

  .filter-form.sorting {
    margin-left: 0px;
  }

  .filter-form__sorting {
    margin-left: 32px;
  }

  #filter-lage {
    width: 100%;
  }

  .mobile-filter {
    border: 1px solid #333;
    width: fit-content;
    height: 45px;
    background: white;
    visibility: visible;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 10px;
    border-radius: 12px;
    margin-left: 10px;
    margin-bottom: 16px;
  }

  .mobile-view {
    width: 100%;
    height: 100vh;
    align-items: flex-start;
    visibility: visible;
    transform: scale(1);
    z-index: 10012;
    position: fixed;
    left: 0;
    top: 0;
    padding: 40px;
    overflow-y: scroll;
  }

  .mobile-filter-close {
    width: 100%;
    visibility: visible;
    text-align: right;
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 1.5rem;
  }

  .no-search-result-item-wrapper {
    text-align: center;
    width: 100%;
    margin-top: 16px;
    white-space: normal;
  }

  .list-wrapper {
    margin-left: 0px;
    justify-content: center;
    padding: 0px 0px 40px;
  }

  .list-wrapper-cards {
    justify-content: center;
  }

  .kbs-content__cat__title {
    text-align: center;
  }

  .kbs-content__cat__divider {
    margin-left: auto;
    margin-right: auto;
  }
}
