/* *{
  outline: 1px solid red;
} */

.custombbutton{
  border-radius: 0 1em;
}


/* separation between button icon and text */
.btn-primary > i {
  margin-right:1em;
}

/* fix partners to work with any size image */
#partners .angebot-item a {
  height:100%;
  display:flex !important;
  align-items: stretch;
  justify-content: stretch;
}

#partners .angebot-item a img {
  object-fit: contain;
  background-color: black;
  aspect-ratio: 4/3;
  width: 100%;

}

/* dont cut of the cards */
#jobs .angebot-caption,
#contact .standort-caption{
  display:flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: auto !important;
  gap:0.5em;
  width:100%;
  flex-grow:1;
  padding-inline:5px;
}

#jobs .angebot-item,
#contact .standort-item{
  display:flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
}

#jobs .angebot-caption > *,
#contact .standort-caption > *{
  margin:0px;
  /* width:100%; */
}

#jobs .angebot-caption p{
  height:auto;
  flex-grow:1;
  display: flex;
  align-items: flex-end;
}


/* fix image centering in mobile mode */
#angebot .img-fluid {
  margin:0 auto;
  display:block;
}


/* Picture Carusel */
#pictureCarusel .carousel-inner{
  width:100%;
  background:black;
}

#pictureCarusel .carousel-item{
  width:100%;
  height:100%;
}

#pictureCarusel .carousel-item img{
  width:100%;
  aspect-ratio:16/9;
  object-fit: contain;
}


#pictureCarusel .carousel-control-next,#pictureCarusel .carousel-control-prev {
  opacity:0;
  background: unset;
  border: unset;
}

#pictureCarusel .carousel-control-next:hover ,#pictureCarusel .carousel-control-prev:hover {
  opacity:0.75;

}

#pictureCarusel .carousel-control-next-icon, .carousel-control-prev-icon{
  transform:scale(2);
}




/* move link arrows into the center */
#jobs .angebot-item .angebot-link .angebot-hover .angebot-hover-content, #partners .angebot-item .angebot-link .angebot-hover .angebot-hover-content {
  margin:0;
  height:auto;
  inset:0;
  display:flex;
  justify-content: center;
  align-items: center;
}

/* fix modal size as modals are 100% plus 2rem margin */
.modal-content {
  width:calc(100% - 2rem);
}


/* fix colors to kxbz */
#angebot img, #tools img, #partners img {
  border-top: solid 4px var(--kxzb) !important;
  border-left: solid 1px var(--kxzb) !important;
  border-right: solid 1px var(--kxzb) !important;
  border-bottom: solid 0 var(--kxzb) !important;
}

#partners img{
  border-bottom-width: 4px !important;
}


#mainNav .navbar-toggler, ul.social-buttons li a:active, ul.social-buttons li a:focus, ul.social-buttons li a:hover {
  background-color: var(--kxzb) !important;
}


#partners .row, #jobs .row{
  display:flex;
  justify-content: center;
}


/* move KXBZ to first position */

#team > .container >.row:first-child > div:NOT(:first-child) {
  order:2;
}


#team > .container >.row:first-child > div:nth-child(4) {
  order:1;
}

#team .row:not(:first-child) .col-sm-6 {
  -ms-flex: 0 0 50%;
  flex: 0 0 50%;
  max-width: 50%;
  min-width:160px;
}

@media (min-width: 992px) {
  #team .row:not(:first-child) .col-lg-3 {
    -ms-flex: 0 0 25%;
    flex: 0 0 25%;
    max-width: 25%;
  }
}


#team .team-member img {
  width:100%;
  height:100%;
}

@media (max-width: 450px) {
  #team .team-member p {
    font-size: 75%;
  }
  #team .team-member h4{
    font-size: 1rem;
  }
}

#jobs .angebot-hover, .standort-hover{
  display:none;
}
#jobs .angebot-link, .standort-link{
  cursor: default;
  pointer-events: none;   
}