/*
 Theme Name:     PA Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Simple Divi Child Theme
 Author:         Projekt:Agentur
 Author URI:     https://www.projektagentur.de/
 Template:       Divi
 Version:        0.0.2
*/

/* =Theme customization starts here
------------------------------------------------------- */

/**--------------------------------------------
 *               Global
 *---------------------------------------------**/

.ribbon-header h1,
.ribbon-header h2 {
  padding: 0 5px;
  width: max-content !important;
  margin-top: 0.25em;
  border-width: 5px;
  border-radius: 0 10px;
  border-style: solid;
}

.ribbon-yellow h2 {
  color: #fff;
  background-color: #ffc70a;
  border-color: #ffc70a;
}

.ribbon-green-light h1,
.ribbon-green-light h2 {
  color: #fff !important;
  background-color: #509e2f;
  border-color: #509e2f;
}

.ribbon-white h2 {
  color: #509e2f !important;
  background-color: #fff;
  border-color: #fff;
}

.matb {
  margin-top: auto;
  margin-bottom: auto;
}

.d-none {
  display: none !important;
}

/**--------------------------------------------
 *               icons
 *---------------------------------------------**/

.hem-jobs-icon::before {
  width: 20px;
  height: 20px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  content: "";
  margin-right: .5rem;
}

.hem-jobs-icon-bau::before {
  background-image: url('icons/bau.png');
}

.hem-jobs-icon-energie::before {
  background-image: url('icons/en.png');
}

.hem-jobs-icon-baustoffe::before {
  background-image: url('icons/bs.png');
}

.hem-jobs-icon-landwirtschaft::before {
  background-image: url('icons/lw.png');
}

.hem-jobs-icon-recycling::before {
  background-image: url('icons/rec.png');
}

.hem-jobs-icon-standort::before {
  background-image: url('icons/standort.png');
}

.hem-jobs-icon-einstieglvl::before {
  background-image: url('icons/ei.png');
}

.hem-jobs-icon-taetigkeit::before {
  background-image: url('icons/tae.png');
  margin-bottom: -5px;
}

.hem-jobs-icon-pie::before {
  background-image: url('icons/pie.png');
  margin-bottom: -2px;
}


/**--------------------------------------------
 *               Jobs
 *---------------------------------------------**/

.hem-jobs-offene-stellen-wrapper,
.hem-jobs-offene-stellen-wrapper .hem-jobs-offene-stellen-filter-wrapper {
  width: 100% !important;
  margin-bottom: 3rem;
}

.hem-jobs-offene-stellen-wrapper .hem-jobs-offene-stellen-filter-wrapper #HemJobsFilterForm {
  width: 100% !important;
  display: flex;
  gap: 15px;
}

.hem-jobs-offene-stellen-wrapper .hem-jobs-offene-stellen-filter-wrapper #HemJobsFilterForm .hem-jobs-offene-stellen-filter {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hem-jobs-offene-stellen-wrapper .hem-jobs-offene-stellen-filter-wrapper #HemJobsFilterForm .hem-jobs-offene-stellen-filter label {
  font-weight: bold;
  font-size: 14px;
}

.hem-jobs-offene-stellen-wrapper .hem-jobs-offene-stellen-filter-wrapper #HemJobsFilterForm .select2-container--default .select2-selection--single {
  border: 0;
  background-color: var(--hem-c-grey);
  height: 50px;
  line-height: 50px;
  display: flex;
  align-items: center;
}

.hem-jobs-offene-stellen-wrapper .hem-jobs-offene-stellen-filter-wrapper #HemJobsFilterForm .select2-selection__arrow {
  top: unset !important;
}

.hem-jobs-offene-stellen-wrapper .hem-jobs-offene-stellen-filter-wrapper #HemJobsFilterForm .select2-container--default .select2-selection--multiple {
  border: 0;
  background-color: var(--hem-c-grey);
  min-height: 50px;
  display: flex;
  align-items: center;
}

.hem-jobs-offene-stellen-wrapper .hem-jobs-offene-stellen-filter-wrapper #HemJobsFilterForm .select2-container--default .select2-selection--multiple .select2-selection__choice {
  max-width: 70%;
}

.select2-dropdown {
  margin-top: 5px !important;
  border: 0 !important;
  background-color: var(--hem-c-grey) !important;
}

.select2-container--default .select2-results__options {
  background-color: var(--hem-c-grey);
}

.select2-container--default .select2-results__option {
  background-color: transparent !important;
  color: black !important;
}

.select2-container--default .select2-results__option--selected {
  font-weight: bold !important;
}

/* .select2-container--default .select2-results__option::before {
  content: '☐';
}

.select2-container--default .select2-results__option--selected::before {
  content: '☑'
}*/

.select2-container--default .select2-results__option--highlighted {
  background-color: transparent !important;
  color: inherit !important;
}

/*** Responsive Styles Tablet And Below ***/
@media all and (max-width: 980px) {
  .hem-jobs-offene-stellen-wrapper .hem-jobs-offene-stellen-filter-wrapper #HemJobsFilterForm {
    flex-wrap: wrap;
  }
}

/**--------------------------------------------
 *               Jobs Wrapper
 *---------------------------------------------**/

.hem-jobs-offene-stellen-wrapper .hem-jobs-offene-stellen-list-wrapper {
  width: 100% !important;
}

.hem-jobs-offene-stellen-wrapper .hem-jobs-offene-stellen-list-wrapper #HemJobsList {
  width: 100% !important;
  border: 0;
}


/**--------------------------------------------
 *               Jobs List Table
 *---------------------------------------------**/

.hem-responsive-table {
  width: 100%;
  border-collapse: collapse;
}

.hem-responsive-table tr {
  border: 0;
  background-color: var(--hem-c-grey);
}

.hem-responsive-table tr:nth-child(even) {
  background-color: var(--hem-c-lightgrey);
}

.hem-responsive-table tr td {
  padding-top: 2rem;
  padding-bottom: 2rem;
  padding-left: 1rem;
  padding-right: 1rem;
  vertical-align: middle;
  border: 0;
}

.hem-responsive-table tr td a {
  color: var(--hem-c-black);
  font-weight: bold;
  text-decoration: none;
}

@media screen and (max-width: 980px) {
  .hem-responsive-table thead {
    display: none;
  }

  .hem-responsive-table,
  .hem-responsive-table tbody,
  .hem-responsive-table tr,
  .hem-responsive-table td {
    display: block;
    width: 100%;
  }

  .hem-responsive-table tr {
    display: flex;
    flex-wrap: wrap;
  }

  .hem-responsive-table td:nth-child(2),
  .hem-responsive-table td:nth-child(3) {
    width: 49%;
  }

  .hem-responsive-table tr td {
    padding: 1rem;
  }
}


/**--------------------------------------------
  *             Short list
 *---------------------------------------------**/

#HemJobsShortList {
  width: 100%;
}

#HemJobsShortList .hem-jobs-short-list-item {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 20px;
  background-color: var(--hem-c-grey);
  max-width: 900px;
  border-radius: var(--hem-b-rad-lab);
  margin: 0 auto;
  margin-bottom: 3rem;
}

#HemJobsShortList .hem-jobs-short-list-item .hem-jobs-item-img {
  flex: 0 0 30%;
  min-width: 180px;
  width: 30%;
  position: relative;
  overflow: hidden;
  background-color: var(--hem-c-lightgrey);
  border-bottom-left-radius: 2rem;
}

#HemJobsShortList .hem-jobs-short-list-item .hem-jobs-item-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  max-width: unset;
}

#HemJobsShortList .hem-jobs-short-list-item .hem-jobs-item-content {
  /* flex: 1 0 auto; */
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
}

#HemJobsShortList .hem-jobs-short-list-item .hem-jobs-item-content .hem-jobs-item-link {
  position: absolute;
  border-radius: var(--hem-b-rad-lab);
  background-color: var(--hem-c-green-dark);
  color: #fff;
  top: auto;
  bottom: 0;
  left: auto;
  right: -10px;
  transform: translateY(50%);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  white-space: nowrap;
}

@media screen and (max-width: 767px) {
  #HemJobsShortList .hem-jobs-short-list-item {
    flex-direction: column;
    align-items: center;
  }

  #HemJobsShortList .hem-jobs-short-list-item .hem-jobs-item-img {
    width: 100%;
    flex: 0 0 auto;
    max-height: 180px;
  }
}

/**--------------------------------------------
  *               Sliders
 *---------------------------------------------**/
#storyslider .et_pb_blurb.swiper-slide .et_pb_image_wrap {
  width: 100% !important;
  overflow: hidden;
  border-radius: var(--hem-b-rad-lab);
}

#storyslider .et_pb_blurb.swiper-slide .et_pb_image_wrap img {
  height: auto;
  width: 100% !important;
  object-fit: cover;
  object-position: center;
}

#storyslider .et_pb_blurb.swiper-slide {
  overflow: hidden;
  height: auto;
}

#storyslider .et_pb_blurb.swiper-slide {
    max-height: 500px;
  }

@media all and (min-width: 981px) {
  #storyslider .et_pb_blurb.swiper-slide {
    max-height: unset;
  }

  #storyslider .et_pb_blurb.swiper-slide:nth-child(even) {
    margin-top: 50px;
  }
}

@media all and (min-width: 1406px) {
  #storyslider .et_pb_blurb.swiper-slide:nth-child(4n+3) .et_pb_image_wrap {
    max-height: 300px;
    margin-top: 0;
  }

  #storyslider .et_pb_blurb.swiper-slide:nth-child(4n+2) .et_pb_image_wrap { 
    max-height: 400px;
    margin-top: 100px;
  }
}

/**--------------------------------------------
  *               Map
 *---------------------------------------------**/

#HemJobsMap {}

#HemJobsMapContainer {
  width: 100%;
  min-height: 500px;
}

#HemJobsMapElement {
  width: 70%;
  min-height: 800px;
  margin-left: 29.5%;
}

#HemJobsMapPopup {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 50%;
  background-color: #fff;
  border-radius: var(--hem-b-rad-lab);
  padding: 1rem;
}

#HemJobsMapPopup .hem-jobs-map-popup-title {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 1rem;
}

#HemJobsMapPopup .hem-jobs-map-popup-title .hem-jobs-map-popup-title-text {
  font-weight: bold;
  font-size: 20px;
  color: var(--hem-c-black);
}

#HemJobsMapPopup .hem-jobs-map-popup-title .hem-jobs-map-popup-close-button {
  cursor: pointer;
  color: var(--hem-c-green-dark);
}

#HemJobsMapPopup .hem-jobs-map-popup-content ul,
#HemJobsMapPopup .hem-jobs-map-popup-content li {
  list-style: none !important;
  padding: 0;
}

#HemJobsMapPopup .hem-jobs-map-popup-content li {
  display: flex;
  align-items: center;
  gap: 10%;
  justify-content: space-between;
  margin-bottom: .5rem;
}

#HemJobsMapPopup .hem-jobs-map-popup-content li .hem-jobs-map-region-job-list-item-title {
  font-weight: bold;
  color: var(--hem-c-black);
  flex-shrink: 1;
}

#HemJobsMapPopup .hem-jobs-map-popup-content li .hem-jobs-map-region-job-list-item-link {
  flex-shrink: 0;
  color: var(--hem-c-green-dark);
  text-decoration: underline;
  align-self: flex-end;
  font-weight: bold;
}

#HemJobsMapPopup .hem-jobs-map-popup-content .hem-jobs-map-region-all-jobs-link {
  position: absolute;
  left: auto;
  right: -20px;
  background-color: var(--hem-c-green-dark);
  color: white;
  text-decoration: none;
  padding: .5rem 1rem;
  border-radius: var(--hem-b-rad-lab);
  transform: translateY(25%);
}

/*** Responsive Styles Tablet And Below ***/
@media all and (max-width: 980px) {
  #HemJobsMapElement {
    width: 100%;
    margin-left: 0;
  }

  #HemJobsMapPopup {
    width: 90%;
    left: 5%;
  }
}

@media all and (max-width: 767px) {
  #HemJobsMapPopup .hem-jobs-map-popup-content li {
    margin-bottom: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  #HemJobsMapPopup .hem-jobs-map-popup-content li .hem-jobs-map-region-job-list-item-link {
    align-self: flex-start;
  }
}