.container-fluid.main-container {
  position: relative;
  border-top: none;
  padding-top: 70px;
  background-color: #4f8ca6;
}

.container-fluid.main-container:before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  width: 100%;
  aspect-ratio: 1250/297;
  background-color: #fff;
  background-image: url(../img/mypoint/nordkette.svg);
  background-repeat: no-repeat;
  background-size: 100%;
  z-index: 0;
}

body .headline-right::after {
  background: none;
}

.newsitemwrapper {
  flex-direction: column;
  font-family: "Corporate S";
  background-color: #F2F2F2;
  display: flex;
  width: 100%;
}

.newsitemtextwrapper {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.allnewslink {
  position: absolute;
  bottom: -40px;
  right: 0.5em;
  color: #fff;
}

.allnewslink a {
  color: #fff !important;
}

.divlink {
  display: contents;
}

.eventlink {
  color: #DB363D !important;
}

.eventswrapper h4 {
  font-family: "Corporate S";
  background-color: #F2F2F2;
  margin-bottom: 1em;
}

.divlink {
  display: contents;
}

.news {
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.newsitemcat {
  margin-bottom: 1.5em;
}

.newsitemcatitem {
  background: #DB363D;
  color: #fff;
  text-transform: uppercase;
  font-size: 0.8em;
  width: fit-content;
  padding: 8px 10px 5px 10px; 
  line-height: 1em;
  border-radius: 5px;
  margin: 0 0.4em 0.4em 0;
  float: left;
}

.newsitemmedia {
  overflow: hidden;
}

.newsitem .newsitemmedia video{
  object-fit: cover;
  overflow: hidden;
  object-position: center;
  width: 100%;
  height: 100%;
  transition: all 0.2s ease-out;
  aspect-ratio: 5/3;
}

.newsitem .newsitemmedia img{
  object-fit: cover;
  overflow: hidden;
  object-position: center;
  width: 100%;
  height: 100%;
  transition: all 0.2s ease-out;
  aspect-ratio: 5/3;
}

.newsitem:hover .newsitemmedia img{
  transform: scale(1.2);
}

.newsitem a {
  color: #494D4F;
}

.newsitem a:hover {
  color: #DB363D;
}

.newsitem {
  line-height: 1.2em;
  margin-bottom: 1.5em;
  align-items: stretch;
  display: flex;
}

@media (max-width: 768px) {
  .newsitem-4 {
    margin-bottom: 3.5em;
  }
  body #muiSite main .news {
    margin-bottom: 30px !important;
  }
}



.newsitem-1 .newsitemwrapper {
  flex-direction: row;
}

.newsitem-1 .newsitemmedia img {
  aspect-ratio: 5/3;
}

.newsitem-2 .newsitemwrapper {
  flex-direction: column;
}

.newsitem-2 .newsitemmedia img {
  max-width: 100%;
}

.newsitemteaser {
  font-size: 1.2em;
  line-height: 1.1em;
  hyphens: auto;
}

.newsitemlinkicon {
  margin-top: 0.5em;
  flex-grow: 1;
  display: flex;
  justify-content: end;
  align-items: end;
}

#imedCarousel {
  padding-bottom: 50px;
}

.slider {
  padding: 0 15px 0 15px !important;
}

.carousel {
  padding-right: 0;
  padding-left: 0;
}

.carousel-indicators button {
  background-color: #4f8ca6 !important;
}

.carousel-contentwrapper {
  background-color: #F2F2F2;
}

.carousel-media {
  overflow: hidden;
}

.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23DB363D'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
  background-color: rgba(255,255,255,0.7);
  margin-right: 20px;
}

.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23DB363D'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e") !important;
  background-color: rgba(255,255,255,0.7);
  margin-left: 20px;
}

.carousel-control-prev {
  justify-content: start !important;
}

.carousel-control-next {
  justify-content: end !important;
}

.carousel-control-next, .carousel-control-prev {
  opacity: 1 !important;
}

.carousel-innerwrapper {
  padding: 0 1em 0 1em;
}

.carousel-media img {
  object-fit: cover;
  aspect-ratio: 1/1;
  overflow: hidden;
  object-position: center;
  width: 100%;
  height: 100%;
  transition: all 0.2s ease-out;
}

.slide {
  padding: 0 !important;
}

@media (min-width: 768px) {
  .container-fluid.main-container {
    padding-top: 8em;
  }
  .newsitemteaser {
    font-size: 1.1em;
    line-height: 1.1em;
  }
  .newsitemtextwrapper {
    padding: 12px;
  }
  .newsitemcat {
    font-size: 0.7em;
  }
  .news {
    margin-right: -12px !important;
    margin-left: -12px !important;
  }
  .slider {
    padding: 0 !important;
  }
}

@media (min-width: 992px) {
  .newsitemteaser {
    font-size: 1.2em;
    line-height: 1.1em;
  }
  .newsitemtextwrapper {
    padding: 20px;
  }
  .newsitemcat {
    font-size: 0.8em;
  }
}
