.schulleben-page {
  min-height: 100vh;
}

.news-grid {
  display: grid;
  grid-template-rows: repeat(2, 350px);
  grid-auto-flow: column;
  grid-auto-columns: 350px;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 2rem;
  scroll-snap-type: x mandatory;
}

.news-card:nth-child(5n+1) {
  grid-row: span 2;
}

.news-card:nth-child(7n+2) {
  grid-column: span 2;
}

.news-card:nth-child(11n+5) {
  grid-column: span 2;
  grid-row: span 2;
}

.news-card {
  scroll-snap-align: start;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(0,0,0,0.05);
}

.news-card:nth-child(5n+1) .card-image,
.news-card:nth-child(11n+5) .card-image {
  height: 60%;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--color-green);
}

.card-image {
  height: 220px;
  overflow: hidden;
  background-color: var(--color-light-green);
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover .card-image img {
  transform: scale(1.05);
}

.placeholder-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-light-green), #e0f2e9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-image::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 2px solid var(--color-green);
  border-radius: 50%;
  opacity: 0.2;
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-content .date {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-green);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.card-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-petrol);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.card-content .preview {
  font-size: 0.95rem;
  color: var(--color-slate-600);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

.read-more {
  font-weight: 600;
  color: var(--color-green);
  font-size: 0.9rem;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.2s ease;
}

.news-card:hover .read-more {
  gap: 0.5rem;
}