.blog-posts .splide__list { 
  display: flex; 
}

.blog-posts.splide { 
  padding-left: 5em; 
  padding-right: 5em; 
}

.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 350px;
}
.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.card-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
  height: 100%;
}
.card-body h5 {
  margin: 0;
  font-size: 1rem;
}
.card-body p {
  margin: 0;
  color: #555;
  font-size: 0.9rem;
  line-height: 1.3;
  max-height: 50px;
}
.card-link {
  color: #0077cc !important;
  font-weight: 600 !important;
}
.card-link:hover {
  text-decoration: underline !important;
  cursor: pointer !important;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #888;
  margin-top: auto;
  width: 100%;
  height: 15px;
  align-self: flex-end !important;
}

#news .newsContainer{
    height: 450px;
}

/* blog-site blog/index.php */
/* ======================== */

#blog-container {
  background-image: url('/images/hero.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 0;
  width: 100%;
  height: 100%;
  position: relative;
}

.posts-container{
  /* margin-top: 100px; */
  width: 90%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  align-items: center;
  margin-left: 50%;
  transform: translateX(-50%);
}
.posts-list {
  display: flex;
  gap: 1rem;
  padding: 2rem;
  /* max-height: 70vh;  */
  overflow-y: auto;  /* vertikaler Scroll */
  overflow-x: hidden; /* kein horizontaler Scroll */
  width: 100%;
  justify-content: center;
  flex: 1 1 auto;
  flex-wrap: wrap;
  border-radius: 8px;
}


.posts-list p{ 
    padding: unset !important;
}

.posts-list .card {
  flex: 0 0 300px; /* nicht wachsen, nicht schrumpfen, Basis 300px */
  width: 300px;
  box-sizing: border-box;
}

/* Bild innerhalb der Card richtig skalieren */
.posts-list .card img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}


#blog-container .post-article {
  background: rgba(255, 255, 255); /* halbtransparenter Weißer Schleier */
  z-index: 0;
  height: 100%;
}

/* ======================== */
/*  Einzelner Blogbeitrag   */
/* ======================== */
.post-article {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  overflow: hidden;
  max-width: 900px;
  margin: 100px auto; /* Abstand von oben/unten, zentriert */
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: #333;
}

/* Titel */
.post-title {
  font-size: 2rem;
  margin: 0;
  color: #222;
  text-align: center;
}

/* Meta-Info */
.post-meta {
  font-size: 0.9rem;
  color: #777;
  text-align: center;
}

/* Beitragsbild */
.post-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  display: block;
  margin: 0 auto;
}

/* Content */
.post-content {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #444;
}

.post-content p {
  margin-bottom: 1.2em;
}

/* Link-Stil wie bei Karten */
.post-content a {
  color: #0077cc;
  font-weight: 600;
}
.post-content a:hover {
  text-decoration: underline;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .post-article {
    margin: 60px 15px;
    padding: 1.2rem;
  }
  .post-title {
    font-size: 1.6rem;
  }
  .post-content {
    font-size: 1rem;
  }
}
/* ======================== */