/* =============================================================================
   Content slider
   ========================================================================== */

.contentSlider {
  position: relative;
  overflow: hidden;
}

.contentSlider__slide {
  position: relative;
  background: rgb(var(--c-neutral-darkest));
}

.contentSlider__slide a {
  display: block;
  color: rgb(var(--c-neutral-lightest));
}

.contentSlider__image {
  overflow: hidden;
  aspect-ratio: 1;
}

.contentSlider__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease, filter 1s ease;
}

.contentSlider__title {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 30px;
  padding: 0 10px;
  line-height: 30px;
  text-transform: uppercase;
  background: rgb(var(--c-neutral-darker));
  transition: background 0.3s ease;
}

.contentSlider .swiper-button-prev,
.contentSlider .swiper-button-next {
  --swiper-navigation-color: rgb(var(--c-neutral-lightest));
  --swiper-navigation-size: 22px;
  --swiper-navigation-sides-offset: 0;
  width: 30px;
  height: 40px;
  margin-top: -20px;
  background: rgba(var(--c-neutral-darker), 0.75);
}

@media (min-width: 641px) {

  .contentSlider__title {
    height: 40px;
    padding: 0 15px;
    font-size: 125%;
    line-height: 40px;
  }

  .contentSlider .swiper-button-prev,
  .contentSlider .swiper-button-next {
    width: 60px;
    height: 80px;
    margin-top: -40px;
    --swiper-navigation-size: 45px;
  }
}

@media (hover: hover) {

  .contentSlider__slide:hover .contentSlider__title {
    background: rgb(var(--c-primary));
  }

  .contentSlider__slide:hover .contentSlider__image img {
    filter: opacity(40%);
    transform: scale(1.25);
  }

  .contentSlider .swiper-button-prev:hover,
  .contentSlider .swiper-button-next:hover {
    background: rgb(var(--c-neutral-darker));
  }
}

/* =============================================================================
   Text and image objects
   ========================================================================== */

.grid__main > .textimage {
  grid-column: 1 / -1;
}

.textimage {
  overflow: hidden;
  background: rgb(var(--c-neutral-lighter));
  border-top: 3px solid rgb(var(--c-neutral-lightest));
}

.textimage-image {
  position: relative;
  height: 200px;
  background-position: center;
  background-size: cover;
}

.textimage-textmiddle .textimage-linkwrap,
.textimage-textright .textimage-linkwrap {
  right: 0;
  left: auto;
  text-align: right;
}

@media (min-width: 401px) {

  .textimage-image {
    height: 300px;
  }
}

.textimage-textmiddle .textimage-imageright {
  display: none;
}

.textimage-text {
  text-align: center;
}

.textimage-textwrap {
  margin: 0.5em;
  padding: 1em;
  border: 3px solid rgb(var(--c-neutral-lightest));
}

.textimage-text h3 {
  display: block;
  font-family: var(--f-family-2);
  font-style: italic;
  font-weight: var(--f-weight-l);
  font-size: 110%;
  line-height: 1.2;
  text-transform: none;
}

@media (min-width: 641px) {

  .textimage-text h3 {
    font-size: 125%;
  }
}

.textimage-bodytext {
  margin-top: 1em;
}

.textimage-icon {
  margin-bottom: 0.5em;
}

.textimage-icon img {
  max-height: 30px;
}

.textimage-icon .iconfont {
  color: rgb(var(--c-neutral-darker));
  font-size: 60px;
}

.textimage-linkwrap {
  position: absolute;
  bottom: 0;
  left: 0;
}

.textimage-link {
  display: block;
  width: 100%;
}

.textimage-link a {
  display: inline-block;
  height: 30px;
  margin-top: 3px;
  padding: 0 15px;
  line-height: 30px;
  text-transform: uppercase;
  color: rgb(var(--c-neutral-lightest));
  background: rgb(var(--c-neutral-darker));
  transition: all 0.3s ease;
}

@media (min-width: 641px) {

  .textimage-icon img {
    max-height: 40px;
  }

}

@media (min-width: 801px) {

  .textimage {
    display: flex;
    align-items: stretch;
    min-height: 400px;
  }

  .textimage-text,
  .textimage-image {
    width: 50%;
  }

  .textimage-image {
    height: auto;
  }

  .textimage-textright {
    flex-direction: row-reverse;
  }

  .textimage-textmiddle {
    flex-direction: row-reverse;
    justify-content: flex-start;
  }

  .textimage-textmiddle .textimage-text,
  .textimage-textmiddle .textimage-image {
    width: 50%;
  }

  .type4060 .textimage-text {
    width: 42%;
  }

  .type4060 .textimage-image {
    width: 58%;
  }

  .textimage-textwrap {
    margin: 2em;
    padding: 2em 1em;
  }

  .textimage-text h3 {
    font-size: 137%;
  }

  .textimage-icon img {
    max-height: 60px;
  }

  .textimage-icon .iconfont {
    font-size: 80px;
  }

  .textimage-link a {
    height: 40px;
    line-height: 40px;
    font-size: 125%;
  }

}

@media (min-width: 1081px) {

  .textimage-text h3 {
    font-size: 156%;
    line-height: 1.4;
  }
}

@media (min-width: 1101px) {

  .textimage-textmiddle .textimage-imageright {
    display: block;
  }

  .textimage-textmiddle .textimage-text {
    width: 44%;
  }

  .textimage-textmiddle .textimage-image {
    width: 28%;
  }
}

@media (hover: hover) {

  .textimage-link a:hover {
    color: rgb(var(--c-secondary));
    background: rgb(var(--c-primary));
  }
}

/* =============================================================================
   Icon shortcut
   ========================================================================== */

.shortcut {
  overflow: hidden;
  margin-bottom: 2em;
}

.shortcut-icon {
  position: relative;
  float: left;
  width: 40px;
  height: 40px;
}

.shortcut-icon-image {
  position: absolute;
  top: 0;
  left: 0;
  max-height: 40px;
}

.shortcut-icon-image.hover {
  display: none;
}

.shortcut-textwrap {
  margin-left: 48px;
}

.shortcut-subtitle {
  display: block;
  font-family: var(--f-family-2);
  font-style: italic;
  font-weight: var(--f-weight-l);
  font-size: 112%;
  line-height: 1.1;
  color: rgb(var(--c-neutral-darker));
}

@media (hover: hover) {

  .shortcut:hover .shortcut-icon-image {
    display: none;
  }

  .shortcut:hover .shortcut-icon-image.hover {
    display: block;
  }

  .shortcut:hover .shortcut-subtitle,
  .shortcut:hover h3 {
    color: rgb(var(--c-primary));
  }
}

/* =============================================================================
   Link box
   ========================================================================== */

.linkbox {
  --linkbox-bg: var(--c-neutral-lightest);
  position: relative;
  margin-bottom: 1em;
  background: rgb(var(--linkbox-bg));
  transition: background 0.3s ease;
}

/* Kontrast zum Untergrund: auf grauem Grund (body, frame-bg-grey, textimage) weiß,
   in weißen Containern (jeder 2. frame-type-col auf -main/-withoutmenu, s. firstload.css) hellgrau.
   Nur die Variable umschalten – so bleibt der Hover (.linkbox.withlink:hover) unabhängig von der
   Spezifität der Kontext-Selektoren wirksam. */
.-main:not(.-portal) .content > [class*="frame-type-col"]:nth-child(2n) .linkbox,
.-withoutmenu .content > [class*="frame-type-col"]:nth-child(2n) .linkbox {
  --linkbox-bg: var(--c-neutral-lighter);
}

.frame-bg-grey .linkbox,
.textimage .linkbox {
  --linkbox-bg: var(--c-neutral-lightest);
}

.linkboxinner {
  padding: 20px 60px 20px 20px;
}

.linkbox.nolink .linkboxinner {
  padding: 20px;
}

.linkbox.withlink > a {
  display: block;
}

.linkbox-title {
  margin-bottom: 0.2em;
  font-size: 125%;
  line-height: 1.4;
  text-transform: uppercase;
  color: rgb(var(--c-neutral-darkest));
}

.linkbox-subtitle {
  color: rgb(var(--c-neutral-dark));
}

.linkbox.withlink::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 50%;
  width: 13px;
  height: 30px;
  margin-top: -15px;
  background-color: rgb(var(--c-neutral-darker));
  -webkit-mask: url("../../Images/dce/chevron.svg") no-repeat center / contain;
  mask: url("../../Images/dce/chevron.svg") no-repeat center / contain;
}

@media (hover: hover) {

  .linkbox.withlink:hover {
    background: rgb(var(--c-primary));
  }

  .linkbox.withlink:hover .linkbox-title {
    color: rgb(var(--c-secondary));
  }

  .linkbox.withlink:hover .linkbox-subtitle,
  .linkbox.withlink:hover a {
    color: rgb(var(--c-neutral-lightest));
  }

  .linkbox.withlink:hover::after {
    background-color: rgb(var(--c-secondary));
  }
}

/* =============================================================================
   Full width image
   ========================================================================== */

.imagefullwidth {
  position: relative;
  min-height: 250px;
  text-align: center;
}

.imagefullwidth-overlay {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  background: rgba(var(--c-neutral-darkest), 0.2);
}

.imagefullwidth-content {
  position: absolute;
  top: 50%;
  width: 100%;
  padding: 2em 0;
  transform: translateY(-50%);
  color: rgb(var(--c-neutral-lightest));
}

.imagefullwidth-header {
  display: block;
  max-width: 800px;
  margin: 0 auto;
  font-size: 250%;
  font-weight: var(--f-weight-sb);
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: 2px 2px 5px rgba(var(--c-neutral-darkest), 0.3);
}

.imagefullwidth-text {
  display: block;
  max-width: 350px;
  margin: 0 auto;
  font-size: 156%;
  font-style: italic;
  line-height: 1.4;
  text-shadow: 1px 1px 5px rgba(var(--c-neutral-darkest), 0.5);
}

@media (min-width: 641px) {

  .imagefullwidth {
    min-height: 350px;
  }

  .imagefullwidth-text {
    max-width: 450px;
  }
}

@media (min-width: 901px) {

  .imagefullwidth {
    min-height: 450px;
  }

  .imagefullwidth-text {
    max-width: 650px;
  }
}

/* =============================================================================
   Special table
   ========================================================================== */

.special-table-row {
  display: table;
  width: 100%;
  overflow: hidden;
}

.special-table-td {
  border: 1px solid rgb(var(--c-neutral-lighter));
}

.special-table-td:nth-child(1),
.special-table-td:nth-child(2) {
  display: table-cell;
}

.special-table-td:first-child {
  width: 35%;
  padding: 0.3em 0.7em;
  color: rgb(var(--c-neutral-lightest));
  background: rgb(var(--c-neutral-darker));
  font-weight: var(--f-weight-n);
  text-align: left;
  text-transform: uppercase;
  vertical-align: top;
}

.special-table-td:nth-child(2) {
  padding: 0.3em 0.7em;
  background: rgb(var(--c-neutral-lightest));
}
