/*
Theme Name: DKJS
Author: webdesign berlin
Author URI: https://webdesign-berlin.de/
Version: 1.0
*/

body.blog .posts-block,
body.archive .posts-block {
  padding: 50px 0;
}

.posts-block.materialien-card  {
  padding: 0;
}

.materialien-link a {
  margin-left: 10px !important;
}

.post-type-archive-materialien .vc_row.wpb_row.vc_row-fluid.overflow-visible.vc_custom_1723371451730.vc_row-has-fill{
  background-color: #98c6e5 !important;
}

.post-type-archive-materialien ul.materialien-list li:first-child{
  margin-bottom: 16px;
}

.page-heading-area{
  text-align: center;
  padding: 50px 0;
  position: relative;
}

.page-heading-area:before {
    content: '';
    left: -999px;
    right: -999px;
    background: #98c6e5;
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: -1;
}

#sidebar{
  margin: 50px 0;
}

#sidebar .widget{
  padding: 20px 0;
}

#sidebar .widget h3{
  color: #141414;
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.4;
}

#sidebar .widget ul{
  padding: 0;
  margin: 0;
  list-style: none;
}

#sidebar .widget ul li{
  padding-left: 15px;
}

#sidebar .widget ul li a{
  color: #000;
  text-transform: capitalize;
}

ul#selected-filters li{
  display: inline-block;
  background: #98c6e5;
  border-radius: 20px;
  text-align: center;
  padding: 5px !important;
  font-size: 12px;
  margin-right: 5px;

  margin-top: 10px;
}

ul#selected-filters li .remove-filter{
  background: #000;
  border-radius: 50%;
  color: #fff;
  font-size: 9px;
  width: 15px;
  height: 15px;
  display: inline-block;
  text-align: center;
  line-height: 15px;
  cursor: pointer;
}

.search-widget {
  position: relative;
}

.search-widget #search-box{
  width: 100%;
  height: 45px;
  font-size: 20px;
  padding: 0 10px;
  line-height: 45px;
  border-radius: 5px;
}

#autocomplete-results{
  position: absolute;
  width: 100%;
  background: #4d4d4d;
  color: #fff;
}

#autocomplete-results li {
    cursor: pointer;
    padding: 10px 10px !important;
    margin: 0 !important;
    border-bottom: 1px solid #fff;
    font-size: 15px;

    height: 45px;
}

@media only screen and (min-width: 768px) {
  #sidebar{
    border-right:1px solid #000;
  }
  .search-widget #search-box,
  #autocomplete-results{
    width: 80%;
  }

}

#tag-filter,
#category-filter{
  list-style: inside !important;
}

.select2-container--open .select2-dropdown{
  top:33px;
}

@media only screen and (max-width: 788px) {
  .select2-container--open .select2-dropdown{
    top:47px;
  }
}

.materialien-list {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  padding: 0 !important;
}

.materialien-list .dropdown {
  list-style: none;
  border-radius: 2px;
  background-color: #fff;
  border: solid 1px #000;
  width: 190px;
}


.select2-dropdown {
  min-width: 288px;
  padding: 0;
  color: #000;
  text-align: left;
  list-style: none;
  background-clip: padding-box;
  border-radius: 2px;
  border: solid 1px #000 !important;
  position: relative;
  top: 5px;
}

.select2-results__options::-webkit-scrollbar {
    width: 10px;
}

.select2-results__options::-webkit-scrollbar-track {
    border-radius: 8px;
    background-color: #e7e7e7;
    border: 1px solid #cacaca;
}

.select2-results__options::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background-color: #98c6e5;
}

.select2-results__options li{
  border: 0;
  border-top: solid 1px #000;
  font-size: 18px;
  line-height: 1.4;
  color: #141414;
  text-decoration: none;
  display: block;
  line-height: 34px;
  transition: all 0.3s ease;
  padding: 6px 16px;
}

.select2-results__options li:first-child {
  border-top: 0;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #e4e4e7 !important;
    color: #000 !important;
}

.select2-search {
  display: none !important;
}

.custom-select2-search-enabled-dropdown .select2-search {
  display: block !important;
}

span.select2-selection.select2-selection--single {
    height: 46px !important;
}

.select2-container .select2-selection--single .select2-selection__rendered{
  padding-left: 16px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b{
  border:0 !important;
}


.select2-container--default .select2-selection--single .select2-selection__arrow{
    right: 7px !important;
    background: url('./assets/img/icons/angle-down.svg');
    background-size: contain;
    background-position: center;
}

.select2-container--default.select2-container--open span.select2-selection.select2-selection--single{
  background: #000 !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__rendered{
  color: #fff !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow{
  background: url('./assets/img/icons/angle-up-white.svg');
  background-size: contain;
  background-position: center;
}

@media only screen and (max-width: 1100px) {
  .materialien-list li{
    width: calc(50% - 12px) !important;
    text-align: center;
  }
  .materialien-card > form > ul input{
      width:100% !important;
  }
}

@media only screen and (max-width: 767px) {
  .materialien-list li{
    width: 100% !important;
  }
}
