/* Reset und Grundstyles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Body mit Weißer Schrift */
body {
  background-color: #000;
  color: white;
  line-height: 1.5;
  user-select: none;
}

/* Navigation */
.nav-container {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #111;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.logo {
  font-weight: 900;
  font-size: 1.6rem;
  color: #d946ef;
  user-select: none;
}

.nav-links {
  display: flex;
  gap: 1.3rem;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
  user-select: none;
}

.nav-links a:hover,
.nav-links a.nav-link.active {
  background-color: #9333ea;
  color: #fff;
}

/* Hauptbereich mit Padding für fixierte Nav */
main {
  padding-top: 65px;
}

/* Allgemeine Sektionen */
.section {
  min-height: 100vh;
  padding: 3rem 1rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

/* Overlay für dunkle Tönung der Backgroundbilder */
.overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.6);
  z-index: 1;
  border-radius: 0;
}

/* Inhalt in Sektionen */
.content-center {
  position: relative;
  max-width: 900px;
  z-index: 2;
}

.news-section {
  background: url('images/bg.png') center/cover no-repeat fixed;
  color: white;
  padding-bottom: 4rem;
  position: relative;
}

.news-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.6); /* dunkle Overlay für bessere Lesbarkeit */
  z-index: 0;
}

.news-section > .content-center {
  position: relative;
  z-index: 1;
}


/* Sektionstitel */
.section-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: #d946ef;
  text-shadow: 0 0 10px #9333ea;
  user-select: none;
}

/* Startseite mit Hintergrundbild */
.home-section {
  background: url('images/city.jpg') center/cover no-repeat fixed;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}

.hero-text {
  position: relative;
  z-index: 2;
  color: white;
  text-shadow: 0 0 20px #000;
  padding: 5rem 1rem;
}

.hero-text h2 {
  font-size: 5rem;
  margin-bottom: 1rem;
  user-select: none;
}

.hero-text p {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  user-select: none;
}

.hero-text .btn {
  background: linear-gradient(90deg, #9333ea 0%, #d946ef 100%);
  padding: 1rem 3rem;
  font-size: 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  color: white;
  box-shadow: 0 0 20px #d946ef;
  user-select: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-text .btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px #d946ef;
}

/* Hintergrundbilder pro Sektion */
.about-section {
  background: url('images/überunsbg.png') center/cover no-repeat fixed;
}

.rules-section {
  background: url('images/regelnbg.png') center/cover no-repeat fixed;
}

.team-section {
  background: url('images/teambg.png') center/cover no-repeat fixed;
}

.join-section {
  background: url('images/beitretenbg.png') center/cover no-repeat fixed;
}

/* Listen Styling (Regeln) */
.rules-section ul {
  list-style: none;
  padding-left: 0;
  font-size: 1.3rem;
  line-height: 2.2;
  max-width: 600px;
  margin: 0 auto;
  user-select: none;
  color: white;
  text-align: left;
}

.rules-section li::before {
  content: "✔️ ";
  color: #d946ef;
}

/* Team Grid */
.team-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  user-select: none;
  max-width: 900px;
  margin: 0 auto;
}

.card {
  background-color: rgba(0,0,0,0.4);
  border-radius: 15px;
  padding: 1.5rem 1rem 2rem 1rem;
  max-width: 220px;
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
  cursor: default;
  color: white;
  user-select: none;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.5);
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 9999px;
  object-fit: cover;
  margin: 0 auto 1rem auto;
  border: 3px solid #9333ea;
}

/* Beitreten Buttons Container */
.join-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Allgemeine Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 10px #d946ef;
  user-select: none;
  text-decoration: none;
  color: white;
}

/* Discord Button - lila */
.btn-discord {
  background: linear-gradient(90deg, #5865F2 0%, #7289DA 100%);
  box-shadow: 0 0 15px #5865F2;
}

.btn-discord:hover {
  box-shadow: 0 0 30px #5865F2;
  transform: scale(1.05);
}

/* Server Button - grünlich */
.btn-server {
  background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 0 15px #22c55e;
}

.btn-server:hover {
  box-shadow: 0 0 30px #22c55e;
  transform: scale(1.05);
}

/* Icons in Buttons */
.icon {
  fill: white;
  width: 24px;
  height: 24px;
  user-select: none;
}

/* Footer */
footer {
  background-color: #111;
  padding: 1.5rem 0;
  color: #666;
  font-size: 0.9rem;
  text-align: center;
  user-select: none;
  position: relative;
  z-index: 10;
}

/* Fade-In Animation */
.fade-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
  position: relative;
  z-index: 1;
}

.fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 0.8rem;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

/* Responsive Team Cards */
@media (max-width: 600px) {
  .team-grid {
    flex-direction: column;
    align-items: center;
  }
}

/* News Section Styling */
.news-section {
  background-color: #111;
  color: white;
  padding-bottom: 4rem;
}

.news-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.news-card {
  background-color: rgba(30, 30, 30, 0.85);
  border-radius: 15px;
  overflow: hidden;
  max-width: 320px;
  box-shadow: 0 0 20px #9333ea;
  cursor: default;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  user-select: none;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 30px #a855f7;
}

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 3px solid #9333ea;
}

.news-info {
  padding: 1rem 1.3rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.4rem;
  color: #d946ef;
  user-select: none;
}

.news-info p {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: #ddd;
  user-select: none;
}

.category {
  align-self: flex-start;
  background: linear-gradient(90deg, #a855f7 0%, #9333ea 100%);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  user-select: none;
}

/* Responsive News */
@media (max-width: 900px) {
  .news-grid {
    flex-direction: column;
    gap: 1.8rem;
    align-items: center;
  }

  .news-card {
    max-width: 90vw;
  }
}
