/* === Container === */
.rsb-news-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 50px 20px;
  box-sizing: border-box;
  background: transparent;
}

/* === Grid === */
.rsb-news-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  justify-content: center;
}


/* === Item === */
.rsb-news-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  aspect-ratio: 1 / 1; /* größere, breitere Kacheln */
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rsb-news-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(25, 25, 25, 0.55);
  transition: background 0.3s ease;
}

.rsb-news-item:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.rsb-news-item:hover::before {
  background: rgba(25, 25, 25, 0.7);
}

/* === Textbereich === */
.rsb-news-text {
  position: relative;
  padding: 25px;
  z-index: 2;
}

.rsb-news-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #fff;
  line-height: 1.3;
}

.rsb-news-excerpt {
  font-size: 1rem;
  opacity: 0.9;
  color: #fff;
  line-height: 1.5;
  max-height: 4.5em;
  overflow: hidden;
}

/* === Pagination === */
.rsb-news-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  gap: 1rem;
}

.rsb-news-pagination-left a,
.rsb-news-pagination-right a {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  background: #256586;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0px;
  transition: background 0.3s ease;
}

.rsb-news-pagination-left a:hover,
.rsb-news-pagination-right a:hover {
  background: #1b4b63;
}

/* === Responsive === */
@media (max-width: 1200px) {
  .rsb-news-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .rsb-news-container {
    padding: 30px 15px;
  }

  .rsb-news-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .rsb-news-title {
    font-size: 1.1rem;
  }

  .rsb-news-excerpt {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .rsb-news-title {
    font-size: 1rem;
  }
  .rsb-news-excerpt {
    font-size: 0.9rem;
  }
}

@media (max-width: 1200px) {
  .rsb-news-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .rsb-news-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .rsb-news-wrapper {
    grid-template-columns: 1fr;
  }
}

