body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #1c1f26;
  color: white;
  padding-top: 80px;
}

html {
  scroll-behavior: smooth;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #1c1f26;
  border-bottom: 2px solid #1e90ff;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
}

.logo img {
  height: 50px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #1e90ff;
}

.menu-toggle {
  display: none;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 320px;
  background:
    linear-gradient(
      rgba(0,0,0,0.7),
      rgba(0,0,0,0.7)
    ),
    url("../assets/images/venue/viadukt-hintergrund.png") center/cover no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.hero-content {
  max-width: 900px;
}

.hero h1 {
  font-size: 52px;
  margin-bottom: 15px;
  color: white;
}

.hero p {
  color: #ccc;
  font-size: 18px;
  line-height: 1.6;
}

.news-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.news-card {
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  overflow: hidden;
  transition: 0.3s;
  backdrop-filter: blur(8px);
}

.news-card:hover {
  transform: translateY(-5px);
  border-color: #1e90ff;
}

.news-preview img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.news-preview iframe {
  width: 100%;
  height: 240px;
  border: none;
  background: white;
}

.news-content {
  padding: 22px;
}

.news-date {
  color: #1e90ff;
  font-size: 14px;
  margin-bottom: 10px;
}

.news-content h2 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 24px;
}

.news-button {
  display: inline-block;
  margin-top: 10px;
  background: #1e90ff;
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.news-button:hover {
  background: #0d6efd;
}

.loading-text,
.empty-text {
  text-align: center;
  color: #aaa;
  font-size: 18px;
  margin-top: 50px;
}

footer {
  background: #000;
  padding: 25px;
  text-align: center;
  color: #666;
  font-size: 14px;
  margin-top: 80px;
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  color: #1e90ff;
  text-decoration: none;
  margin: 0 5px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-credit {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: #777;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-credit-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d4af37;
  text-decoration: none;
  transition: 0.3s;
  opacity: 0.9;
}

.footer-credit-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.footer-credit img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  .nav-container {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #1c1f26;
    margin-top: 15px;
    padding: 10px 0;
    gap: 0;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    text-align: center;
    padding: 12px 0;
  }

  .hero h1 {
    font-size: 38px;
  }

}


.news-gallery {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: #111820;
}

.news-gallery-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.news-gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.news-gallery-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.news-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  background: rgba(0,0,0,0.58);
  color: white;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  transition: 0.25s;
}

.news-gallery-btn:hover {
  background: rgba(30,144,255,0.9);
  border-color: #1e90ff;
}

.news-gallery-btn.prev {
  left: 14px;
}

.news-gallery-btn.next {
  right: 14px;
}

.news-gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.42);
}

.news-gallery-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: 0.25s;
}

.news-gallery-dot.active {
  background: #1e90ff;
  transform: scale(1.25);
}

.news-gallery-counter {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.58);
  color: white;
  font-size: 13px;
}

.news-text {
  color: #ccc;
  line-height: 1.7;
  white-space: pre-line;
  margin-bottom: 15px;
}

.news-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 768px) {
  .news-gallery {
    height: 250px;
  }

  .news-gallery-btn {
    width: 38px;
    height: 38px;
  }
}


/* Aufklappbare News-Ansicht */
.news-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.news-card .news-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
}

.news-card .news-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card .news-actions {
  margin-top: auto;
}

.news-toggle-button {
  display: inline-block;
  margin-top: 14px;
  border: 1px solid rgba(30,144,255,0.45);
  background: transparent;
  color: #8fc6ff;
  padding: 11px 18px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.25s;
}

.news-toggle-button:hover {
  color: white;
  background: rgba(30,144,255,0.16);
  border-color: #1e90ff;
}

.news-card.expanded {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  min-height: 520px;
  border-color: #1e90ff;
  box-shadow:
    0 18px 55px rgba(0,0,0,0.38),
    0 0 28px rgba(30,144,255,0.12);
  transform: none;
}

.news-card.expanded:hover {
  transform: none;
}

.news-card.expanded .news-preview,
.news-card.expanded .news-gallery {
  height: 100%;
  min-height: 520px;
}

.news-card.expanded .news-preview img,
.news-card.expanded .news-gallery-slide img {
  height: 100%;
  min-height: 520px;
}

.news-card.expanded .news-content {
  padding: 34px;
  justify-content: flex-start;
}

.news-card.expanded .news-content h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.news-card.expanded .news-text {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  white-space: pre-line;
  font-size: 17px;
  line-height: 1.8;
}

.news-card.expanded .news-gallery-btn {
  width: 48px;
  height: 48px;
  font-size: 28px;
}

.news-card.expanded .news-gallery-counter {
  font-size: 14px;
}

.news-grid.has-expanded {
  align-items: start;
}

@media (max-width: 900px) {
  .news-card.expanded {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .news-card.expanded .news-preview,
  .news-card.expanded .news-gallery,
  .news-card.expanded .news-preview img,
  .news-card.expanded .news-gallery-slide img {
    min-height: 0;
    height: 360px;
  }
}

@media (max-width: 600px) {
  .news-card.expanded .news-preview,
  .news-card.expanded .news-gallery,
  .news-card.expanded .news-preview img,
  .news-card.expanded .news-gallery-slide img {
    height: 260px;
  }

  .news-card.expanded .news-content {
    padding: 24px;
  }
}
