/* ==========================
   Shadowland RP – Globales mystisches Design
========================== */

/* ==========================
   Farben & Variablen
========================== */
:root {
  --violet: #7b52ff;
  --blue: #4cc9ff;
  --dark: #0b0f13;
  --glass: rgba(255,255,255,0.04);
  --border-glass: rgba(255,255,255,0.08);
  --glow-soft: 0 0 14px rgba(124,82,255,0.6), 0 0 25px rgba(76,201,255,0.4);
  --glow-strong: 0 0 25px rgba(124,82,255,0.9), 0 0 45px rgba(76,201,255,0.6);
}

/* ==========================
   Allgemeines
========================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--dark);
  color: #e4e4e4;
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==========================
   Header & Navigation
========================== */
.header {
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  border-bottom: 1px solid var(--border-glass);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  text-align: center;
}

.nav {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.nav a {
  color: #d0d0d0;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.nav a:hover {
  color: var(--violet);
  text-shadow: var(--glow-soft);
}

.nav .active {
  color: var(--blue);
  text-shadow: var(--glow-soft);
}

.logo {
  width: 50px;
  height: auto;
}

/* ==========================
   Hero / Startseite
========================== */
.hero {
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
}

.title-glow {
  font-size: 3.5rem;
  font-weight: 800;
  text-shadow: var(--glow-soft);
  transition: 0.4s;
  color: white;
}

.title-glow:hover {
  text-shadow: var(--glow-strong);
}

.intro-text {
  max-width: 650px;
  margin-top: 20px;
  font-size: 1.1rem;
  color: #cfcfcf;
}

/* ==========================
   Seiten-Layout
========================== */
.page-section {
  max-width: 1100px;
  margin: 120px auto 60px;
  padding: 20px;
  text-align: center;
}

.main-content {
  max-width: 700px;
  margin: 120px auto 40px;
  padding: 0 20px;
  text-align: center;
}

.main-content h2,
.main-content h3 {
  margin-bottom: 15px;
}

.main-content p,
.main-content ul {
  text-align: left;
  margin-bottom: 15px;
}

.main-content ul {
  padding-left: 20px;
}

/* ==========================
   Team Cards & Hover Overlay
========================== */
.team-section-title {
  margin-top: 40px;
  margin-bottom: 15px;
  font-size: 1.6rem;
  font-weight: 700;
}

.team-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.team-card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--border-glass);
  padding: 18px;
  border-radius: 12px;
  text-align: center;
  backdrop-filter: blur(6px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  cursor: pointer;
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--violet);
  box-shadow: var(--glow-strong);
}

.team-card img.team-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--violet);
  box-shadow: var(--glow-soft);
  margin-bottom: 12px;
}

.role {
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 4px;
}

/* Hover Overlay */
.team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 19, 0.95);
  color: #e4e4e4;
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 15px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  pointer-events: none;
  z-index: 10;
}

.team-card:hover .team-overlay {
  opacity: 1;
  pointer-events: auto;
}

.team-overlay h4 {
  margin-bottom: 6px;
  color: var(--violet);
  font-size: 0,25rem;
}

.team-overlay p {
  margin-bottom: 6px;
  font-size: 0.9rem;
  line-height: 0.75;
}

/* ==========================
   News
========================== */
.news-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-item {
  background: var(--glass);
  border: 1px solid var(--border-glass);
  padding: 20px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
  transition: 0.3s;
}

.news-item:hover {
  border-color: var(--blue);
  box-shadow: var(--glow-soft);
}

/* ==========================
   Events
========================== */
.event-list {
  margin-top: 40px;
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
}

.event-card {
  background: var(--glass);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(4px);
  transition: 0.3s;
}

.event-card:hover {
  box-shadow: var(--glow-strong);
  border-color: var(--violet);
}

/* ==========================
   Twitch Cards
========================== */
.twitch-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 25px;
}

.twitch-card {
  background: var(--glass);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid var(--border-glass);
  transition: 0.3s;
}

.twitch-card:hover {
  box-shadow: var(--glow-strong);
  border-color: var(--blue);
}

/* ==========================
   Regelwerk
========================== */
.rules-box {
  background: var(--glass);
  border: 1px solid var(--border-glass);
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  max-width: 800px;
  margin: 40px auto;
  line-height: 1.6;
  backdrop-filter: blur(6px);
}

.rules-box h2 {
  margin-top: 25px;
  color: var(--violet);
  text-shadow: var(--glow-soft);
}

/* ==========================
   Mystischer Nebel
========================== */
.fog-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 300%;
  height: 300%;
  background: url('https://i.ibb.co/WKqH4Gh/fog.png') repeat;
  background-size: 1200px 1200px;
  mix-blend-mode: lighten;
  pointer-events: none;
}

.fog1 { animation: fog1 200s linear infinite; opacity: 0.18; }
.fog2 { animation: fog2 260s linear infinite; opacity: 0.12; }
.fog3 { animation: fog3 300s linear infinite; opacity: 0.1; }

@keyframes fog1 {
  0% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(-250px,150px,0); }
  100% { transform: translate3d(0,0,0); }
}

@keyframes fog2 {
  0% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(200px,-120px,0); }
  100% { transform: translate3d(0,0,0); }
}

@keyframes fog3 {
  0% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(-150px,200px,0); }
  100% { transform: translate3d(0,0,0); }
}

/* ==========================
   Pulsierende Partikel
========================== */
#particles::before,
#particles::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle,var(--violet),transparent);
  animation: pulse 3s ease-in-out infinite alternate;
}

#particles::after {
  left: 70%;
  top: 25%;
  background: radial-gradient(circle,var(--blue),transparent);
  animation-duration: 4s;
}

@keyframes pulse {
  0% { transform: scale(0.7); opacity: 0.4; }
  100% { transform: scale(1.7); opacity: 1; }
}

/* ==========================
   Footer
========================== */
footer {
  text-align: center;
  padding: 25px;
  font-size: 12px;
  color: #999;
  border-top: 1px solid #222;
  margin-top: 40px;
}

/* ==========================
   Discord Widget & Button
========================== */
.discord-widget {
  width: 100%;
  display: block;
  text-align: center;
  margin-top: 20px;
}

.discord-widget iframe {
  display: inline-block;
}

.discord-invite {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.discord-button {
  width: 350px;
  max-width: 90%;
  display: inline-block;
  background: #5865F2;
  color: white;
  padding: 12px 0;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 0 18px rgba(88,101,242,0.6);
  text-align: center;
  transition: 0.3s ease;
}

.discord-button:hover {
  box-shadow: 0 0 30px rgba(88,101,242,0.95), 0 0 50px rgba(76,201,255,0.7);
  transform: translateY(-3px);
}

/* ==========================
   Responsive Anpassungen
========================== */
@media(max-width:600px){
  .page-section,
  .main-content { padding: 0 15px; }

  .team-overlay h4 { font-size: 0.9rem; }
  .team-overlay p { font-size: 0.8rem; }
  .team-card img.team-img { width: 80px; height: 80px; }
  .nav { flex-direction: column; gap: 15px; }
}
