
.carousel-inner.fixedheight .carousel-item {
  height: 100%;
}

.fixedheight .carousel-item>img {
    object-fit: cover;
    object-position: center;
    /* height: 50vh; */
    overflow: hidden;
    /* min-height: 100%;
    min-width: 100%; */
    width: 100%;
    height: 100%;
  }

.carousel-caption {
  bottom: unset;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  right: 5%;
  left: 5%;
}


@media (min-width: 769px) {
  .carousel-caption {
    right: 15%;
    left: 15%;
  }
}

.ce-textpic, .ce-image, .ce-nowrap .ce-bodytext, .ce-gallery, .ce-row, .ce-uploads li, .ce-uploads div {
  overflow: unset;
}



/* .ce-intext.ce-right img { */
.ce-intext.ce-right figure.image {
  float: right;
  margin: 1rem 0 1rem 1rem;
  /* max-width: 200px; */
    
}

.ce-gallery figure.image {
    display: table;
    max-width: 100%;
}

.news .ce-gallery figure.image {
    display: block;
    max-width: 100%;
}

.ce-gallery figure.image img {
    display: block;
    max-width: 100%;
    height: auto;
}

.ce-gallery figure.image figcaption {
    display: table-caption;
    caption-side: bottom;
    overflow-wrap: break-word;
    margin-top: 4px;
}

/* figure { outline: 2px solid red; }
figcaption { outline: 2px solid blue; } */

.ce-intext.ce-left img {
  float: left;
  margin: 1rem 1rem 1rem 0;
  /* max-width: 200px; */
  
}


@media (max-width: 768px) {
  /* .ce-intext img { */
  .ce-intext figure.image {
      float: none !important;
      /* display: block; */
      display: table;
      margin: 0 auto 1rem auto !important;
      max-width: 100%;
  }
}



@media (min-width: 576px) {
  .modal.medium .modal-dialog {
      /* max-width: var(--bs-modal-width); */
      max-width: 700px;
  }

  .modal.big .modal-dialog {
    /* max-width: var(--bs-modal-width); */
    max-width: 80%;
}
}


/**********************************************
*
* Jarallax
*
**********************************************/


.jarallax .overlay {

  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
 
  z-index: -1;

}

.jarallax.dark-1 .overlay {
  background: rgba(0, 0, 0, 0.4); /* Abdunkelung */
}
.jarallax.dark-2 .overlay {
  background: rgba(0, 0, 0, 0.6); /* Abdunkelung */
}
.jarallax.dark-3 .overlay {
  background: rgba(0, 0, 0, 0.8); /* Abdunkelung */
}
.jarallax.dark-1 a, .jarallax.dark-2 a, .jarallax.dark-3 a {
  color: #54c0e7;
}
.jarallax h1, .jarallax h2, .jarallax h3, .jarallax h4, .jarallax p, .jarallax li {

 color: #dbdbdb;

}

.jarallax .accordion-body h1, .jarallax .accordion-body h2, .jarallax .accordion-body h3, .jarallax .accordion-body h4, .jarallax .accordion-body p, .jarallax .accordion-body li {
 color: var(--bs-card-color);
}

 


/**********************************************
*
* SwiperJS
*
**********************************************/
/* Gleichmäßige Bewegung ohne Abbremsen */
.mySwiper .swiper-wrapper {
    transition-timing-function: linear !important;
}
.swiper-slide {
  display: flex;
  justify-content: center;  /* horizontal */
  align-items: center;      /* vertikal */
  height: 100px;            /* oder auto, oder je nach gewünschter Slider-Höhe */
  

}

.swiper-slide img {
  max-height: 80px;         /* damit Logos nicht zu groß werden */
  width: auto;
  height: auto;
  object-fit: contain;
}



/**********************************************
*
* Responsive Youtube Video
*
**********************************************/


/* Stellt den Container des Videos responsiv ein */
.responsive-video, .video-embed {
  position: relative; 
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  padding-top: 25px; 
  height: 0;
}

/* Stellt das iframe des Videos so ein, dass es den Container voll ausfüllt */
.responsive-video iframe, 
.video-embed iframe, 
.video-embed .video-shariff-preview-overlay, 
.video-shariff-play,
.video-shariff-play img {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-shariff-preview-overlay {
  background-color: rgba(0, 0, 0, 0.1);
}

.video-embed video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* height: 100%; */

}


/* .video-shariff-preview-overlay {
  background: rgb(255 255 255 / 70%);
} */

.video-shariff-preview-text {
  width: 100% !important;
  background-color: var(--khg-secondary);
  color: #fff;
  padding: 10px;
}

@media screen and (min-width: 800px) {
  .video-shariff-preview-text {
      width: 100%;
  }
}


/**********************************************
*
* Responsive Video Element
*
**********************************************/

.responsive-video video {
  width: 100%;
}




/**********************************************
*
* KHG Overview Cards
*
**********************************************/


.khg-overview-grid {
  align-items: stretch;
}

.khg-overview-grid > [class*="col"] {
  display: flex;
}

.khg-overview-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 140px;
  border: 0;
  border-radius: 1.35rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 34px rgba(40, 24, 16, 0.08);
  transition:
    transform .22s ease,
    box-shadow .22s ease;
}

.khg-overview-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, #a2d5ff, #48a9fb);
  z-index: 2;
}

.khg-overview-card::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -45px;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  /* background: rgba(143, 29, 44, 0.06); */
  transition:
    transform .22s ease,
    background .22s ease;
}

.khg-overview-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(40, 24, 16, 0.14);
}

.khg-overview-card:hover::after {
  transform: scale(1.18);
  /* background: rgba(199, 160, 74, 0.16); */
  background: rgba(245, 172, 80, 0.4);
}

.khg-overview-card .card-body {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
}

.khg-overview-card .card-title {
  margin-bottom: .75rem;
  color: #252525;
  font-size: 1.25rem;
  font-weight: 700;
}

.khg-overview-card .card-text {
  color: #6f6f6f;
  line-height: 1.55;
}

.khg-overview-card .btn {
  align-self: flex-start;
  margin-top: auto;
  border-radius: 999px;
  padding: .55rem 1.05rem;
  font-weight: 600;
}

.khg-overview-card .btn-primary {
  background-color: #8f1d2c;
  border-color: #8f1d2c;
}

.khg-overview-card .btn-primary:hover,
.khg-overview-card .btn-primary:focus {
  background-color: #661520;
  border-color: #661520;
}

/* Falls die Karte selbst als Link gebaut ist */
a.khg-overview-card {
  color: inherit;
  text-decoration: none;
}

a.khg-overview-card:hover {
  color: inherit;
}

/* Mobile etwas kompakter */
@media (max-width: 575.98px) {
  .khg-overview-card {
    min-height: auto;
    border-radius: 1.1rem;
  }

  .khg-overview-card .card-body {
    padding: 1.35rem;
  }
}


/* Gesamte Card klickbar */
.khg-overview-card {
    position: relative;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

/* Vorhandenen Link über die gesamte Card ausdehnen */
.khg-overview-card .card-text a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Hover-Effekt */
.khg-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(20, 58, 80, .18);
}

/* Tastaturbedienung */
.khg-overview-card:focus-within {
    outline: 2px solid var(--khg-secondary, #0077a2);
    outline-offset: 3px;
}

.khg-overview-card:focus-within:not(:has(a:focus-visible)) {
    outline: none;
}

.khg-overview-card:has(a:focus-visible) {
    outline: 2px solid var(--khg-secondary, #0077a2);
    outline-offset: 3px;
}

