/* Schriftart und Schriftgröße global setzen */
body {
  font-family: Calibri, sans-serif;
  font-size: 11px;
  margin: 0;
  padding: 0 1rem;
}

h1 {
  font-size: 1.5rem;
  color: #00497a;
  margin: 1rem 0;
  text-align: center;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Standard: zwei Spalten */
  gap: 2rem;
  margin-top: 20px;
}

/* Responsive Anpassungen */
@media (max-width: 900px) {
  .news-grid {
    grid-template-columns: 1fr; /* Auf Tablets und kleiner: eine Spalte */
  }
}


.news-preview {
  background-color: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.news-preview h2 {
  color: #00497a;
  font-size: 1.2rem;
  margin-top: 0.5rem;
}

.news-preview p {
  color: #555;
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.news-preview .teaser {
  color: #555;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  line-height: 1.4;
}

.news-preview img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

/* Pop-Up Image für das Detailfenster */
.popup-image {
  width: 100%;
  height: auto;
  max-width: 1000px;
  margin-bottom: 1rem;
}

/* Formatierung für das Datum */
.news-preview small,
.news-preview p small {
  font-size: 0.85rem;
  color: #777;
}

.news-preview a {
  text-decoration: none;
  color: inherit;
}

/* Anpassungen für das Pop-Up Fenster */
.popup-window {
  font-family: Calibri, sans-serif;
  font-size: 11px;
  padding: 20px;
}

.popup-window h2 {
  color: #00497a;
  font-size: 1.5rem;
}

.popup-window p {
  color: #555;
  font-size: 0.95rem;
}

.popup-window small {
  color: #777;
  font-size: 0.85rem;
}

/* Responsive Anpassungen */
@media (max-width: 600px) {
  h1 {
    font-size: 1.25rem;
  }

  .news-preview h2 {
    font-size: 1rem;
  }

  .news-preview .teaser,
  .popup-window p {
    font-size: 0.9rem;
  }

  .news-preview img {
    height: 180px;
  }
}




