.post-container {
    padding-right: 0;
    padding: 3rem;
}

/* Basis-Image-Klassen */
.post-container img.cinema-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.post-container img.full-width-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.post-container img.square-image {
  width: 500px;
  height: 500px;
  object-fit: cover;
  display: block;
}

.post-container img.rectangle-image {
  width: 500px;
  height: 350px;
  object-fit: cover;
  display: block;
}

/* Position */
.left {
  float: left;
  margin-right: 1rem;
}

.right {
  float: right;
  margin-left: 1rem;
}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Clearfix damit Text nicht neben Bild steht*/
.post-container p:has(>img.left) + p,
.post-container p:has(>img.right) + p {
   clear: both;
}

/* Responsive  */
@media (max-width: 516px) {
  .post-container img.square-image,
  .post-container img.rectangle-image {
    width: 100%;
    margin: 1rem 0;
  }


 .post-container img.cinema-image {
    height: 200px;
  }

  .post-container img.full-width-image {
    height: 300px;
  }
}


@media (min-width: 517px) and (max-width: 767px) {
  .post-container img.square-image,
  .post-container img.rectangle-image {
    width: 80%;
    height: auto;
    float: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

 .post-container img.cinema-image {
    height: 200px;
  }

  .post-container img.full-width-image {
    height: 400px;
  }
}


@media (min-width: 768px) and (max-width: 1023px) {

  .post-container img.square-image {
    width: 400px;
    height: 400px;
  }

  .post-container img.rectangle-image {
    width: 400px;
    height: 300px;
  }

  .post-container img.cinema-image {
    height: 260px;
  }

  .post-container img.full-width-image {
    height: 500px;
  }
}
@media (min-width: 1024px) {
    .post-container img.cinema-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    }

    .post-container img.full-width-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    }

    .post-container img.square-image {
    width: 500px;
    height: 500px;
    object-fit: cover;
    display: block;

    }

    .post-container img.rectangle-image {
    width: 500px;
    height: 350px;
    object-fit: cover;
    display: block;
    }

    /* Position */
    .left {
    float: left;
    margin-right: 1rem;
    }

    .right {
    float: right;
    margin-left: 1rem;
    }

    .center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    }
}



/* col repair for event overview*/
.fixed-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

/* Block Overview Grid & Cards */
.overview-grid {
  display: grid;
  gap: 3rem; 
  grid-template-columns: repeat(1, 1fr); 
}


.card-body {
  padding: 1.5rem;
}

.btn.detail-btn {
  margin: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  width: auto;
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background-color: #008BB6;
  border-radius: 8px;
  transition: transform 400ms ease-in-out;

}

.card:hover .btn.detail-btn {
  color: #cbca00;
}

@media (min-width: 576px) {
  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
    .referate.overview-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (min-width: 768px) {
  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .referate.overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .overview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
    .referate.overview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


.overviewcontainer .mt-5 {
  margin-top: 5rem !important;
}


.referate a:hover{
  text-decoration: none;
  border:1px solid #008BB6;
}

.referate .card .card-title {
  color: #008BB6;

}
.referate .card .card-text {
  color: #fff;
}



.referate .card:hover, .events .card:hover {
  transform: scale(1.04);
}

.referate .card {
  display: flex;
  align-items: center;
  border-radius: 5px;
  background-color: #cbca00;
  transition: transform 400ms ease-in-out;
}

.referate .card a:hover{
  border: none !important;
}

.card, .card .card-body {
  overflow-wrap: break-word;
    justify-self:stretch;
}

.overview.container {
  margin-top: 5rem;
}

.events .card{
  border-radius: 8px;
  overflow: hidden;
  align-self: stretch;
  flex-direction: column;
  display: flex;
  align-items: space-between;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 400ms ease-in-out;
}

.events .card .card-body  {
  justify-content: space-between;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.events .card .card-title {
  margin-top: 1rem;
  margin-bottom: 10px;
  height: 100%;

}
.events .card .card-text {
  height: 100%;
}

.card .fas {
width: 20px;
}

.fa-calendar-alt:before, .fa-clock:before, .fa-map-marker-alt:before {
  color: #cbca00;
}

.btn-toOverview {
  margin: auto;
  display: block;
  border: 1.5px solid gray;
  max-width: 300px;
  padding: 1.5rem;
  transition: transform 400ms ease-in-out;
}

.btn-toOverview:hover {
  color: #008BB6;
  border: 1.5px solid #008BB6;
  transform: scale(1.04);
}