/* BG Boxes -------------------------------- */
.bg-box {
  padding: 4em 2em;
}
.bg-box__black {
  background: var(--color-black);
  color: var(--color-white);
}
.bg-box__sand {
  background: var(--color-sand);
}
.bg-box__white {
  padding: 0 !important;
}
.bg-box__white {
  padding: 0 !important;
}

.bg-box__bild {
  background-color: var(--color-black);

  color: var(--color-white);
}
.bg-box__bild img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Zwei Blöcke -------------------------------- */
.zwei_bloecke {
}
.block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bloecke-layout__eins_zu_zwei .block:nth-child(1) {
  grid-column: 1 / 6;
}
.bloecke-layout__eins_zu_zwei .block:nth-child(2) {
  grid-column: 6 / 13;
}
.bloecke-layout__zwei_zu_eins .block:nth-child(1) {
  grid-column: 1 / 8;
}
.bloecke-layout__zwei_zu_eins .block:nth-child(2) {
  grid-column: 8 / 13;
}

.block p {
  max-width: 23em;
}

/* medium width */
@media (max-width: 1079px) {
  .bg-box {
    grid-column: 1 / 13 !important;
    padding: 2em 1em;
  }
}
/* mobile adjustments */
@media (max-width: 720px) {
  .block {
    grid-column: 1 !important;
  }
}

/* Ein Block -------------------------------- */
.bloecke-layout__ein-block .block {
  grid-column: 1 / 13;
}

/* Jobs -------------------------------- */
.job-text {
  padding-top: 1em;
  max-width: 30em;
}

.job-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.job-list__element {
  list-style: none;
  border-bottom: solid 1px var(--color-black);
  padding: 0;
  margin: 0;
}
.job-list__element:before {
  display: none;
}
.job-list__element:last-child {
  border-bottom: none;
}
.job-list__element a {
  display: flex;
  gap: 1em;
  justify-content: space-between;
  padding: 1em 0;
  text-decoration: none;
}
.job-list__title {
}
.job-list__arrow {
  display: inline-block;
  height: 1em;
  width: 3em;
  background-image: url(../img/pfeil-schwarz.svg);
  background-position: right center;
  background-size: contain;
  background-repeat: no-repeat;
}
.job-list__element a:hover .job-list__arrow {
  background-image: url(../img/pfeil-orange.svg);
}

/* Leistung -------------------------------- */
.row-leistung {
  border-top: solid 1px var(--color-black);
}

.row-leistung:first-child {
  border-top: none;
}

.row-leistung:last-child {
  border-bottom: solid 1px var(--color-black);
}

.row-leistung_col-1 {
  grid-column: 1 / 4;
}
.row-leistung_col-2 {
  grid-column: 4 / 10;
  max-width: calc(var(--one-col-max-width) * 5 + var(--grid-gap) * 4);
}
.row-leistung_col-3 {
  grid-column: 10 / 13;
}

/* medium width */
@media (max-width: 1080px) {
  .row-job-title {
    grid-column: 1 / 13;
  }
  .row-job-beschreibung {
    grid-column: 1 / 13;
  }

  /* medium width
@media (max-width: 960px) {
  */

  .row-leistung_col-3 {
    grid-row: 1 / span 2;
    grid-column: 8 / 13;
  }
  .row-leistung_col-1 {
    grid-row: 1;
    grid-column: 1 / 8;
  }
  .row-leistung_col-2 {
    grid-row: 2;
    grid-column: 1 / 8;
  }
}
/* mobile adjustments */
@media (max-width: 720px) {
  .row-job-title,
  .row-job-beschreibung {
    grid-column: 1;
  }

  .row-leistung_col-3 {
    order: 1;
    grid-column: 1;
    grid-row: initial;
  }
  .row-leistung_col-1 {
    order: 2;
    grid-column: 1;
    grid-row: initial;
  }
  .row-leistung_col-2 {
    order: 3;
    grid-column: 1;
    grid-row: initial;
  }
}

/* Video Embed -------------------------------- */
.embed-container {
  position: relative;
  padding-bottom: 56.25%;
  overflow: hidden;
  max-width: 100%;
  height: auto;
}

.embed-container iframe,
.embed-container object,
.embed-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.youtube-consent__container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.youtube-consent__placeholder {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.youtube-consent__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  color: var(--color-white);
  background: #0007;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1em;
  padding: 1em;
}

.youtube-consent__play-button {
  width: 100px;
  flex-shrink: 0;
  height: 100px;
  background: var(--color-black);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.youtube-consent__play-button:hover {
  background: var(--color-orange);
}
.youtube-consent__play-icon {
  width: 50px;
  height: auto;
  pointer-events: none;
}
.youtube-consent__play-icon * {
  fill: var(--color-white);
}
.youtube-consent__text {
  max-width: 800px;
}
.youtube-consent__text b {
  margin-bottom: 0.5em;
  display: block;
}

/* smaller than max width */
@media (max-width: 1672px) {
}

/* medium width */
@media (max-width: 960px) {
}

/* mobile adjustments */
@media (max-width: 720px) {
}

/* Bilder Gallerie ---------------------------- */
.bilder-gallerie {
  column-count: 3;
  column-gap: 1rem;

  margin: 0;
  padding: 0;
  list-style: none;
}
.bilder-gallerie__bild {
  margin: 0;

  margin-bottom: 1rem;
}
.bilder-gallerie__bild:before {
  content: none;
  display: none;
}

.bilder-gallerie__bild__caption {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  color: var(--color-white);
  padding: 2rem;

  opacity: 0;
  transition: opacity 0.2s;
}
.bilder-gallerie__bild:hover .bilder-gallerie__bild__caption {
  opacity: 1;
}

/* Bilder Gallerie Kacheln ---------------------------- */
.bilder-gallerie-kacheln {
  column-count: 3;
  column-gap: 1rem;

  margin: 0;
  padding: 0;
  list-style: none;
}
.bilder-gallerie-kacheln li:before {
  content: none;
  display: none;
}

.bilder-gallerie-kacheln__bild {
  margin: 0;
  margin-bottom: 1rem;
}
.bilder-gallerie-kacheln__text-kachel {
  padding: 2em;
  display: block;
  break-inside: avoid-column;

  margin: 0;
  margin-bottom: 1rem;
}

/* medium width */
@media (max-width: 960px) {
  .bilder-gallerie,
  .bilder-gallerie-kacheln {
    column-count: 2;
  }
}

/* mobile adjustments */
@media (max-width: 720px) {
  .bilder-gallerie,
  .bilder-gallerie-kacheln {
    column-count: 1;
  }
}
