/*Grunddefinition des NEWS Sliders*/

#news_section {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--secondary-color);
  padding-bottom: 50px;
}

.news_div {
  margin-top: 50px;
  position: relative;
  width: 2048px;
  max-width: 85%;
  height: 350px;
  background: rgb(255, 255, 255);
  color: black;
  padding-top: 10px;

  overflow: hidden;
  border-radius: 10px;
  /* Runde Ecken */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
  /* Schatten */
}

#news_container {
  width: 100%;
}

/*Klassen für die GFX*/
.fadein {
  animation: fadeIn 1s;
  -webkit-animation: fadeIn 1s;
  -moz-animation: fadeIn 1s;
  -o-animation: fadeIn 1s;
  -ms-animation: fadeIn 1s;
}

.news_load_img_rightToLeft {
  animation: news_load_img 1s;
  -webkit-animation: news_load_img 1s;
  -moz-animation: news_load_img 1s;
  -o-animation: news_load_img 1s;
  -ms-animation: news_load_img 1s;
}

.news_load_img_LeftToRight {
  animation: news_load_img_lr 1s;
  -webkit-animation: news_load_img_lr 1s;
  -moz-animation: news_load_img_lr 1s;
  -o-animation: news_load_img_lr 1s;
  -ms-animation: news_load_img_lr 1s;
}

.news_load_text {
  animation: news_load_text 2s;
  -webkit-animation: news_load_text 2s;
  -moz-animation: news_load_text 2s;
  -o-animation: news_load_text 2s;
  -ms-animation: news_load_text 2s;
}

/**/

#news_container a {
  text-decoration: none;
}

#news_container .slide {
  display: none;
}

#news_container .slide img {
  height: 300px;
  width: auto;
  max-width: 80%;
}

#news_container .slide img.left {
  position: absolute;
  left: 50px;
  top: 30px;

  opacity: 0;
  /* Standardmäßig ausblenden */
  z-index: 1;
}

#news_container .slide img.right {
  position: absolute;
  left: inherit;
  right: 50px;
  top: 30px;
  opacity: 0;
  /* Standardmäßig ausblenden */
  z-index: 1;
}

#news_container .slide h2 {
  position: relative;
  margin: 0;
  width: 100%;
  color: black;
  text-align: center;
  z-index: 3;
}

#news_container .caption {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  background: rgba(2, 73, 123, 0.8);
  /*background: url('/content/img_ressources/projects/3ddruck.JPG') center center/cover;*/
  clip-path: polygon(25% 100%, 30% 0, 100% 0%, 100% 100%);
  padding: 10px;
  padding-top: 100px;
  color: #fff;

  opacity: 0;
  /* Standardmäßig ausblenden */
  transition: opacity 0.5s;
  /* Übergang für das Ausblenden und Einblenden */
  z-index: 2;

}

#news_container .caption.pc {}

#news_container .caption.mobile {
  display: none;
}

#news_container .caption .text {}

#news_container .caption .news_load_table {
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

#news_container .slide .caption ul {
  list-style-position: inside;
  color: greenyellow;
}

#news_container .slide.active {
  display: block;
  transition: opacity 1.5s;
  /* Übergang für das Ausblenden und Einblenden */
}

#news_container .slide img,
#news_container .slide img.left,
#news_container .slide img.right,
#news_container .slide .caption {
  opacity: 1;
  /* Einblenden, wenn die Klasse active angewendet wird */
}

#news_container .prev,
#news_container .next {
  width: 30px;
  height: 60px;
  text-align: center;
  position: absolute;
  top: 50%;
  padding-top: 30px;
  transform: translateY(calc(-50% - 15px));
  font-size: 20px;
  cursor: pointer;
  color: black;
  border-radius: 30px;
}

#news_container .prev {
  left: 10px;
  z-index: 5;
}

#news_container .next {
  right: 10px;
  z-index: 5;
}


#news_container .indicator-container {
  position: absolute;
  bottom: 5px;
  width: 100%;
  text-align: center;
  margin-top: 20px;
  z-index: 4;
}

#news_container .indicator {
  height: 10px;
  width: 10px;
  margin: 0 8px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;

}

#news_container .indicator.active {
  background-color: #007702;
}

/*Ab einer Breite von 1950px (Tablet)*/
@media(max-width: 1950px) {
  #news_container .slide h2 {
    right: 50px;
    color: black;
    text-align: right;
    z-index: 3;
  }

  #news_container .slide img.left {
    max-height: 250px;
  }

  #news_container .slide img.right {
    opacity: 0;
    /* Standardmäßig ausblenden */
    display: none;
  }

  #news_container .caption {
    position: absolute;
    top: 0;
    width: 85%;
    height: 100%;
    right: 0px;
    clip: inherit;
    clip-path: polygon(15% 100%, 25% 0, 100% 0%, 100% 100%);
    text-align: right;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding-top: 100px;
    padding-bottom: 10px;
    padding-right: 50px;
    z-index: 2;
    font-size: 16px;
  }

  #news_container .caption.pc {}

  #news_container .caption.pc p {
    margin: auto;
    margin-right: 0;
    max-width: 75%;
    overflow: hidden;
  }

  #news_container .caption.mobile {
    display: none;
  }

  #news_container .caption .news_load_table {
    margin-right: 0px;
    text-align: right;
  }
}

/*Ab einer Breite von 1950px (Smartphone)*/
@media(max-width: 1050px) {

  #news_container .slide.active {
    display: flex;
    align-items: center;
  }

  #news_container .slide img.left {
    position: inherit;
    width: 80%;
    max-width: 350px;
    height: auto;
    max-height: 250px;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;

  }

  #news_container .slide h2 {}

  #news_container .slide .pc {
    display: none;
  }

  #news_container .caption {
    position: absolute;
    bottom: 35px;
    right: 0px;
    width: 100%;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding-top: 10px;
    padding-bottom: 10px;

    z-index: 2;
    clip-path: none;
    top: auto;
    height: auto;
    padding-right: inherit;
  }

  #news_container .caption.pc {
    display: none;
  }

  #news_container .caption.mobile {
    display: block;
  }

  #news_container .caption .news_load_table {
    display: none;

  }

}