/* === Grundlegendes === */
body {
  background-color: #1c1a2e;
  color: #f5f5dc;
  font-family: 'Cinzel', serif;
  margin: 0;
  padding: 0;
}

header {
  background-color: #2c2540;
  padding: 20px;
  text-align: center;
}

.logo img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
}

nav a {
  color: #ffd700;
  text-decoration: none;
  font-weight: bold;
}

.intro {
  text-align: center;
  padding: 40px;
  background-color: #2e2a3f;
}

.site-header {
  text-align: center;
  padding: 40px;
  background-color: #2e2a3f;
  border-bottom: 2px solid #ffd700;
}

.site-header h1 {
  margin: 0;
  font-size: 2.5em;
  color: #ffd700;
}

.site-nav {
  background-color: #2e2a3f;
  border-bottom: 1px solid #444;
}

.site-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  gap: 30px;
}

.site-nav a {
  color: #f5f5dc;
  text-decoration: none;
  font-weight: bold;
}

.site-nav a:hover {
  color: #ffd700;
}

/* Containerbreite erhöht, damit 3 Spalten komfortabel Platz finden */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
}

/* Allgemeine Vorschau-Stile */
.news-preview {
  margin-bottom: 60px;
}

.news-preview h2 {
  font-size: 1.8em;
  color: #ffd700;
  margin-bottom: 10px;
}

.news-date {
  font-size: 0.9em;
  color: #c0b283;
  margin-bottom: 15px;
}

.news-thumb {
  max-width: 100%;
  border-radius: 6px;
  margin-bottom: 15px;
}

.news-summary {
  font-size: 1.1em;
  margin-bottom: 20px;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  color: #ffd700;
  font-weight: bold;
  text-decoration: none;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #2c2540;
  font-size: 0.9em;
}

/* === News-Grid: feste 3 Spalten auf Desktop === */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* genau 3 Spalten */
  gap: 30px;
  padding: 20px;
  box-sizing: border-box;
}

/* Kartenstile */
.news-card {
  background-color: #2e2a3f;
  border: 1px solid #ffd700;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.news-card:hover {
  transform: scale(1.02);
}

.news-card a {
  color: inherit;
  text-decoration: none;
  display: block;
  height: 100%;
}

.news-image-wrapper {
  height: 180px;
  overflow: hidden;
  border-bottom: 2px solid #444;
  flex: 0 0 auto;
}

.news-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-text {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

.news-text h2 {
  font-size: 1.25em;
  margin: 0 0 8px;
  color: #ffd700;
}

.news-text .news-date {
  font-size: 0.9em;
  color: #c0b283;
  margin-bottom: 8px;
}

.news-text .news-summary {
  font-size: 1em;
  margin-bottom: 8px;
  flex: 1 1 auto;
  color: #f5f5dc;
}

.news-text .read-more {
  color: #ffd700;
  font-weight: bold;
  font-size: 0.95em;
  align-self: flex-end;
}

/* === Responsive: 2 Spalten unter 1000px, 1 Spalte unter 600px === */
@media (max-width: 1000px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .site-main {
    padding: 30px;
  }
  .news-image-wrapper {
    height: 160px;
  }
}

@media (max-width: 600px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .site-main {
    padding: 20px;
  }
  .news-image-wrapper {
    height: 180px;
  }
}

/* Accessibility / focus */
.news-card a:focus {
  outline: 3px solid rgba(255,215,0,0.35);
  outline-offset: 2px;
}
