/* ===== Baskerville 2: gleich große Kacheln im Raster ===== */

/* Masonry-Positionierung abschalten, festes Raster */
.posts {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  height: auto !important;
  width: 100% !important;
  align-items: stretch;
}

/* Jede Kachel: gleiche Höhe, nicht mehr absolut positioniert */
.posts .post-container {
  position: static !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  transform: none !important;
  display: flex;
}

.posts .post-container .post,
.posts .post-container article {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.posts .post-container:hover .post,
.posts .post-container:hover article {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* Bilder: alle exakt gleiches Format */
.posts .featured-media,
.posts .post-image {
  display: block;
  width: 100%;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
  margin: 0;
}
.posts .featured-media img,
.posts .post-image img,
.posts .wp-post-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  margin: 0;
}

/* Textbereich füllt den Rest, Meta-Zeile rutscht nach unten */
.posts .post-inner,
.posts .post-content-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

/* Titel: max. 2 Zeilen */
.posts .post-title {
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Auszug: max. 4 Zeilen */
.posts .post-excerpt,
.posts .post-content {
  font-size: 0.95rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Datum/Kommentare immer ganz unten */
.posts .post-meta,
.posts .post-meta-container {
  margin-top: auto;
  padding-top: 14px;
}

/* Responsive */
@media (max-width: 1000px) {
  .posts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .posts { grid-template-columns: 1fr; }
}