/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  background: #0b0b0d;
  color: #e5e5e5;
  font-family: 'Inter', sans-serif;
}

/* =========================
   NAV
========================= */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0,0,0,0.85);
  border-bottom: 1px solid #1f1f1f;
  z-index: 500;
}

.nav-inner {
  max-width: 1200px;
  margin: auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.nav-logo { width: 42px; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  color: #e5e5e5;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 2px;
}

.nav-links a:hover { color: #ff2b2b; }

/* BURGER */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.burger span {
  width: 24px;
  height: 2px;
  background: #ff2b2b;
  display: block;
}

/* =========================
   DROPDOWNS (Desktop Hover / Mobile Click)
========================= */
.nav-links li { position: relative; }

.dropdown-menu {
  position: absolute;
  top: 130%;
  right: 0;
  min-width: 220px;
  background: #050505;
  border: 1px solid rgba(255,43,43,0.35);
  padding: 12px 0;
  list-style: none;
  display: none;
  z-index: 999;
}

.dropdown-menu li { list-style: none; }

.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  color: #e5e5e5;
}

.dropdown-menu a:hover {
  background: rgba(255,43,43,0.15);
  color: #ff2b2b;
}

@media (min-width: 901px) {
  .dropdown:hover .dropdown-menu { display: block; }
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  height: 100vh;
  padding-top: 80px;
  background: radial-gradient(circle at top, #1a0000, #000);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

/* HUD GRID */
.hud-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.15;
  z-index: 0;
}

/* LOGO WATERMARK */
.logo-bg {
  position: absolute;
  inset: 0;
  background: url("../img/logo.png") center no-repeat;
  background-size: 750px;
  opacity: 0.035;
  pointer-events: none;
  z-index: 1;
}

/* HUD BOX */
.hud-box {
  border: 1px solid rgba(255,43,43,0.35);
  padding: 40px;
  position: relative;
  background: rgba(0,0,0,0.55);
}

.hud-box::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(255,43,43,0.25);
  pointer-events: none;
}

/* HERO CONTENT */
.hero-content { z-index: 2; }

.logo {
  width: 230px;
  margin-bottom: 25px;
  filter: drop-shadow(0 0 25px rgba(255,43,43,0.45));
}

.hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 4rem;
  letter-spacing: 6px;
  color: #ff2b2b;
}

.subtitle {
  margin-top: 10px;
  font-size: 1.1rem;
  opacity: 0.85;
}

.tagline {
  margin: 20px 0 35px;
  font-size: 0.9rem;
  opacity: 0.75;
}

/* =========================
   BUTTONS
========================= */
.btn {
  padding: 12px 32px;
  border: 1px solid #c4161c;
  text-decoration: none;
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 2px;
  transition: 0.3s;
  background: transparent;
  display: inline-block;
}

.btn.primary { background: #c4161c; }

.btn:hover {
  box-shadow: 0 0 15px rgba(255,43,43,0.6);
}

/* ✅ Fix: Buttons kleben nicht mehr im Text */
.text + .btn,
p + .btn,
.text + a.btn,
p + a.btn {
  margin-top: 18px;
}

/* =========================
   SECTIONS
========================= */
.section {
  padding: 100px 12%;
}

.section.dark { background: #15151a; }

.hud-section { position: relative; }

/* ✅ Fix: Landing-Sections zentrieren */
.section .hud-title,
.section .text,
.section .match-preview,
.section .teaser-grid,
.section .join-form {
  margin-left: auto;
  margin-right: auto;
}

.hud-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: #ff2b2b;
  margin-bottom: 25px;
  text-align: center; /* ✅ Fix: Überschrift mittig */
}

.text {
  max-width: 700px;
  line-height: 1.6;
  opacity: 0.85;
  text-align: center; /* ✅ Fix: Text mittig */
  font-family: 'Inter', sans-serif; /* ✅ gleiche Schrift wie restlicher Text */
}

/* =========================
   LISTS / BADGES
========================= */
.bf-list {
  display: flex;
  gap: 18px;
  margin-top: 25px;
  flex-wrap: wrap;
  justify-content: center;
}

.bf-list span {
  border: 1px solid rgba(255,43,43,0.4);
  padding: 8px 18px;
  font-size: 0.7rem;
  letter-spacing: 1px;
  background: rgba(0,0,0,0.25);
}

/* =========================
   TEASER / STARTSEITE
========================= */
.teaser {
  text-align: center;
}

.teaser .text {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  line-height: 1.6;
  opacity: 0.85;
  max-width: 700px;
  margin: 0 auto;
}

/* ✅ Fix: Grid wieder sauber nebeneinander */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px auto 0;
  max-width: 1200px;
}

.teaser-box {
  padding: 30px 20px;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-align: center;
}

/* ✅ Fix: Wenn ein Button aus Versehen IM Grid steht (wie "ZUM TEAM") */
.teaser-grid .btn,
.teaser-grid a.btn {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 18px;
}

/* =========================
   MATCH PREVIEW
========================= */
.match-preview {
  max-width: 520px;
  margin: 30px auto 0;
  padding: 20px;
}

/* ✅ Fix: "ALLE MATCHES" Button mittig unter Match */
.match-preview + .btn,
.match-preview + a.btn {
  display: inline-block;
  margin-top: 18px;
}

/* =========================
   JOIN TEASER
========================= */
.join-teaser {
  background: linear-gradient(180deg, #120000, #000);
  text-align: center;
}

.join-teaser .text {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  line-height: 1.6;
  opacity: 0.85;
  max-width: 700px;
  margin: 0 auto;
}

/* =========================
   FORMS
========================= */
.join-form {
  max-width: 520px;
  margin: 0 auto;
  text-align: left; /* Formulare besser links */
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-row label {
  font-size: 0.7rem;
  letter-spacing: 2px;
  opacity: 0.7;
  margin-bottom: 6px;
}

.form-row input,
.form-row select,
.form-row textarea {
  background: #0b0b0d;
  border: 1px solid rgba(255,43,43,0.4);
  padding: 10px 12px;
  color: #fff;
  font-size: 0.85rem;
}

.form-row textarea {
  min-height: 100px;
  resize: vertical;
}

/* =========================
   FOOTER
========================= */
footer {
  background: #000;
  text-align: center;
  padding: 45px 20px;
}

.footer-logo {
  width: 75px;
  margin-bottom: 15px;
  opacity: 0.8;
}

footer small {
  display: block;
  margin-top: 8px;
  opacity: 0.5;
}

/* =========================
   LOGIN OVERLAY
========================= */
.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.login-overlay.active {
  display: flex;
}

.login-panel {
  width: 100%;
  max-width: 420px;
  padding: 40px;
  background: #000;
  border: 1px solid rgba(255,43,43,0.35);
  position: relative;
}

.login-form .form-row input { width: 100%; }

.btn.full-width {
  width: 100%;
  text-align: center;
}

.login-error {
  color: #ff2b2b;
  font-size: 0.75rem;
  margin-bottom: 15px;
  letter-spacing: 1px;
  text-align: center;
}

.login-hint {
  margin-top: 20px;
  font-size: 0.7rem;
  letter-spacing: 1px;
  opacity: 0.75;
  text-align: center;
}

.login-hint a {
  color: #ff2b2b;
  text-decoration: none;
}

.login-hint a:hover { text-decoration: underline; }

/* =========================
   RESPONSIVE + MOBILE NAV
========================= */
@media (max-width: 900px) {

  .burger { display: flex; }

  .nav-links {
    position: fixed;
    inset: 0;
    background: #000;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    display: none;
  }

  .nav-links.active { display: flex; }

  .nav-links a { font-size: 1rem; }

  /* Mobile Dropdown */
  .dropdown-menu {
    position: static;
    border: none;
    background: transparent;
    padding: 0;
    display: none;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    font-size: 0.8rem;
    opacity: 0.9;
    padding: 10px 0;
    text-align: center;
  }

  .teaser-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 { font-size: 2.8rem; }

  .logo { width: 180px; }

  .section { padding: 70px 8%; }
}

@media (max-width: 600px) {
  .hud-box { padding: 28px 22px; }
  .login-panel { padding: 30px 22px; }
}
