:root {
  --light-text: #ffffff;
  --discord-color: #5865F2;
  --secondary-color: #ffffff3b;
}

body {
  font-family: Arial, sans-serif;
  color: var(--light-text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-color: #000;
}

.rules-container {
  max-width: 1200px;
  margin: 6rem auto 2rem;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.rules-grid {
  list-style: none;
  counter-reset: rule-counter;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0;
  margin-top: 2rem;
}

.rules-grid > li {
  counter-increment: rule-counter;
  position: relative;
}

/* Die Regelkarte */
.rule-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  transition: all 0.3s ease;
}

.rule-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Überschrift */
.rule-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--light-text);
}

/* Regeln im Absatz */
.rule-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rule-details li {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  display: flex;
  align-items: start;
}

.rule-details li::before {
  content: "➤";
  margin-right: 0.5rem;
  color: var(--discord-color);
}

/* Animation */
@keyframes fadeInUp {
  0% {
      opacity: 0;
      transform: translateY(30px);
  }
  100% {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Responsive Anpassung */
@media (max-width: 600px) {
  .rules-grid > li::before {
      left: -1.2rem;
  }
}

.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  margin-top: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  background-color: rgba(0, 0, 0, 1);
}

.video-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(1px);
  transform: scale(1.1);
  transition: filter 0.3s ease-in-out;
}

.video-background.loaded {
  opacity: 1;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  position: relative;
}

.logo-container {
  position: fixed;
  top: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 11;
}

.site-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.site-logo:hover {
  transform: scale(1.1);
}

.site-name {
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 1px;
  color: var(--light-text);
  text-transform: uppercase;
}

.logo {
  font-weight: bold;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: var(--logo-margin-top) var(--logo-margin-right) var(--logo-margin-bottom) var(--logo-margin-left);
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

nav ul li {
  cursor: pointer;
  position: relative;
}

nav ul li a {
  color: var(--light-text);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  position: relative;
}

nav ul li a:hover {
  color: var(--secondary-color);
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

nav ul li:hover a::after,
nav ul li.active a::after {
  width: 100%;
}

nav ul li.active a::after {
  transform: scaleX(1);
}

nav ul li.active {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-right input {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
}


@media (max-width: 768px) {
  .features {
      grid-template-columns: 1fr;
  }
  
  nav ul {
      display: none;
  }
  
  .nav-right {
      margin-left: auto;
  }
}