body {
    margin: 0;
    font-family: 'Cinzel', serif;
    background-color: #1e1b2c;
    color: #f5f5dc;
}

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;
}

.cta-button {
    background-color: #ffd700;
    color: #1e1b2c;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

.preview {
    padding: 40px;
    background-color: #3a3450;
}

.preview-grid {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.preview-item img {
    width: 100%;
    max-width: 250px;
    border: 2px solid #ffd700;
    border-radius: 8px;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #2c2540;
    font-size: 0.9em;
}

.slider-tabs {
  background-color: #2e2a3f;
  padding: 40px;
  color: #f5f5dc;
  font-family: 'Cinzel', serif;
}

.slider-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.slider-progress {
  width: 100%;
  height: 6px;
  max-width: 1000px;
  margin: 20px auto 0;
  background-color: #2c2540;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 10px;
}

.slider-bar {
  height: 100%;
  width: 0%;
  background-color: #ffd700;
  transition: width 6s linear;
}

.tab-button {
  background: none;
  border: none;
  color: #ffd700;
  font-weight: bold;
  font-size: 1em;
  padding: 10px 15px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s;
}

.tab-button.active {
  border-bottom: 2px solid #ffd700;
}

.tab-content {
  display: none;
  text-align: center;
}

.tab-content.active {
  display: block;
}

.tab-content img {
  max-width: 600px;
  margin-top: 20px;
  border-radius: 8px;
}

.tab-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
  text-align: left;
  max-width: 1000px;
  margin: 0 auto;
}

.tab-text {
  flex: 1 1 400px;
  max-width: 400px;
}

.tab-image {
  flex: 1 1 400px;
  max-width: 700px;
  max-height: 400px;
}

.tab-image img {
  width: 100%;
  border-radius: 8px;
}

/* --- Latest news block (homepage) --- */
.home-latest-news {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.latest-news-heading {
  color: #ffd700;
  margin: 0 0 12px 4px;
  font-size: 1.5rem;
  text-align: center;
}

/* Grid: 3 columns desktop, 2 tablet, 1 mobile */
.latest-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}

/* Card */
.latest-card {
  background: #2e2a3f;
  border: 1px solid #ffd700;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease;
  min-height: 230px;
}

.latest-card:hover {
  transform: translateY(-4px);
}

.latest-card a {
  color: inherit;
  text-decoration: none;
  display: block;
  height: 100%;
}

.latest-thumb {
  height: 140px;
  overflow: hidden;
  background: #1a2e1d;
}

.latest-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.latest-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

.latest-body h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #ffd700;
}

.latest-body .date {
  color: #c0b283;
  font-size: 0.9rem;
}

.latest-body .excerpt {
  color: #f5f5dc;
  font-size: 0.95rem;
  line-height: 1.3;
  flex: 1 1 auto;
}

.latest-body .more {
  align-self: flex-end;
  color: #ffd700;
  font-weight: bold;
}

/* Responsive adjustments for latest news */
@media (max-width: 1000px) {
  .latest-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tab-image img {
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  .latest-news-grid {
    grid-template-columns: 1fr;
  }
  .tab-layout {
    gap: 20px;
    padding: 0 12px;
  }
}

/* --- Features section --- */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  background-color: #2e2a3f;
  padding: 60px 20px;
  border-top: 2px solid #444;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.3);
}

.feature-box {
  background-color: #1e1b2c;
  border: 1px solid #444;
  border-radius: 12px;
  padding: 30px;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.feature-box img {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

.feature-box h3 {
  color: #ffd700;
  font-size: 1.4em;
  margin-bottom: 15px;
  font-family: 'Cinzel', serif;
}

.feature-box p {
  color: #c0b283;
  font-size: 1em;
  line-height: 1.6;
}

/* Utility: small screens adjustments for overall layout */
@media (max-width: 900px) {
  .tab-text, .tab-image { flex: 1 1 100%; max-width: 100%; }
  .preview-grid { flex-direction: column; align-items: center; }
}

.more-news-wrap {
  max-width: 1200px;
  margin: 30px auto 10px;
  padding: 0 20px;
  text-align: center;
  box-sizing: border-box;
}

.more-news-button {
  display: inline-block;
  background: transparent;
  color: #ffd700;
  border: 2px solid #ffd700;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.more-news-button:hover,
.more-news-button:focus {
  background: #ffd700;
  color: #1e1b2c;
  transform: translateY(-2px);
  outline: none;
}

@media (max-width: 600px) {
  .more-news-button { padding: 10px 14px; font-size: 0.95rem; }
}

/* News-Sektion Hintergrund wie Slider */
.home-latest-news,
.home-news-section {
  background-color: #2e2a3f;
  padding: 40px 20px;
  color: #f5f5dc;
  font-family: 'Cinzel', serif;
}

/* Hintergrund für volle Breite der News-Sektion */
.news-background {
  background-color: #2e2a3f;
  padding: 40px 0;
  border-top: 2px solid #444;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.3);
}

/* Innenbereich bleibt zentriert */
.home-latest-news {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
