.leistungen-description{
    padding: 0px 6px 40px 6px;
}
.card {
    /* Add shadows to create the "card" effect */
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.3);
    transition: 0.3s;
    width: 100%;
    height: 100%;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
}
    /* On mouse-over, add a deeper shadow */
.card:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.5);
    background-color: rgb(240, 240, 240);
}
/* Add some padding inside the card container */
.card-text-content {
    padding: 2px 16px;
}
.card-title{
  text-align: center;
}
.title-2{
  font-weight: normal;
}
.card-title .title-2{
  margin-bottom: 0px;
}
.card-text p{
  margin-top: 0px;
  text-align: center;
}


.separator{
  margin: 6px!important;
}


.row {
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 40px;
}
.leistungen-category{
  cursor: pointer;
}
  
/* Create four equal columns that sits next to each other */
.column {
  flex: 20%;
  max-width: 20%;
  padding: 6px;
  box-sizing: border-box;
}

.column img {
  margin-top: 8px;
  vertical-align: middle;
  width: 100%;
}
.image-top{
  height: 10px;
  background-color:rgb(140, 175, 175);
  border-radius: 10px 10px 0px 0px;
}

.card:hover div.image-top{
  background-color:darkslategrey;
}



.active-top{
  background-color:darkslategrey;
}
.active-img{
  opacity: 100%!important;
}
.active-card{
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.5);
  background-color: rgb(240, 240, 240);
}

.category-menu{
  text-align: center;
  display: flex;
  background-color: rgb(140, 175, 175, 0.5);
  justify-content: center;
  flex-direction: column;
  flex-wrap: wrap;
  border-radius: 16px;
  padding: 10px;
}
.category-menu-link{
  cursor: pointer;
  text-decoration: none;
}


#Bilder{
  min-height: 30px;
}

/* ----- MODAL -----*/

/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0,0.9);
}

/* Modal Content */
.modal-content {
  position: relative;
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 1200px;
  height: 80%;

  justify-content: center;
  display: flex;
  flex-direction: column;
}

img.modalImage{  
  max-height: 100%;
  max-width: 100%;

}
.ModalImage-Container{
  text-align: center;
  max-height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  z-index: 10;
}

/* The Close Button */
.close {
  color: white;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 50px;
  font-weight: bold;
  padding: 10px 20px;
  z-index: 999;
  }

.close:hover,
.close:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

/* Next & previous buttons */
.prev-container,
.next-container{
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  z-index: 999;
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
}
.next-container{
  right: 0;
}
.prev-container{
  left: 0;
}

.prev,
.next {
  cursor: pointer;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 26px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.modalheader{
  text-align: center;
  height: 10%;
  justify-content: center;
  display: flex;
  flex-direction: column;
  padding-bottom: 10px;
}
/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: medium;
}
.cattitle{
  color: #f2f2f2;
  font-size: large;
}

/* Caption text */
.caption-container {
  text-align: center;
  background-color: black;
  padding: 2px 16px;
  color: white;
}


.cat-border{
  border: black 1px solid;
  border-radius: 2px;
  padding: 0px 3px 0px 3px;
  background-color: white;
}

/* ------ Responsive layout ------ */
@media screen and (max-width: 1600px) {
  .column {
    flex: 33%;
    max-width: 33%;
  }
  .modal {
    padding-top: 40px;
}
}

@media screen and (max-width: 860px) {
  .column {
    flex: 50%;
    max-width: 50%;
  }
}

@media screen and (max-width: 700px) {
  .column {
    flex: 100%;
    max-width: 100%;
    padding-bottom: 16px;
  }
  .leistungen-container{
      display: block;
  }
}


/* TOUCH DISPLAY */
@media (hover: none) {
  .card img{
    opacity: 100%;
  }
  div.image-top{
    background-color:darkslategrey;
  }
}
