/* ================= ROOT (NEU, NUR FARBEN) ================= */
:root{
  --bg-main: #071126;
  --bg-panel: rgba(10,22,40,.72);
  --bg-panel-soft: rgba(10,22,40,.54);

  --border-main: rgba(255,255,255,.08);

  --text-main: rgba(255,255,255,.92);
  --text-muted: rgba(255,255,255,.55);

  --accent: #4a9eff;
  --accent-2: #2c7fe0;

  --success: #22c55e;
  --warning: #eab308;
  --danger: #ef4444;
}

/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= BODY ================= */
body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(180deg,#071126,#050b18);
  color: var(--text-main);
  line-height: 1.6;
  padding-bottom: 4rem;
  overflow-x: hidden;
}

/* ================= NAVBAR ================= */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background-color: var(--bg-panel);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-main);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  flex-wrap: wrap;
}

.logo img { height: 70px; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-main);
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem;
}

.nav-links a:hover {
  color: var(--accent);
}

/* Icons */
.search-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icons i {
  color: var(--text-main);
  margin-left: 10px;
  cursor: pointer;
  font-size: 1.2rem;
}

nav a {
  margin: 0 10px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
}

nav a:hover {
  color: var(--accent);
}

/* ================= HERO ================= */
.hero {
  text-align: center;
  padding: 4rem 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  color: transparent;
  background-image: linear-gradient(to right, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero .highlight { font-weight: bold; }

/* ================= CARDS ================= */
.card-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: var(--bg-panel-soft);
  border-radius: 12px;
  overflow: hidden;
  width: 250px;
  border: 1px solid var(--border-main);
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
  transition: transform 0.3s ease;
}

.card:hover { transform: translateY(-5px); }

.card img {
  width: 100%;
  display: block;
}

.card-title {
  text-align: center;
  padding: 1rem;
  font-weight: bold;
  color: var(--text-main);
}

/* ================= SKEW SECTION ================= */
.skewed-section {
  transform: skewY(2deg);
  width: 100vw;
  overflow: hidden;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

:root { --skew-angle: 2deg; }

.skewed-inner {
  transform: skewY(calc(var(--skew-angle) * -1));
  padding: 5rem 2rem;
  width: 100%;
  background: linear-gradient(
    180deg,
    rgba(10,22,40,.85),
    rgba(5,11,24,.95)
  );
}

/* ================= CITY ================= */
.city-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  justify-content: center;
}

.city-text {
  flex: 1 1 400px;
  max-width: 600px;
}

.city-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.city-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ================= FULL HERO ================= */
.hero.bg-hero {
  background-image: url('/img/index/fw.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;

  width: 100vw;
  height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  padding: 0;
  overflow: hidden;
  z-index: 1;
}

.hero.bg-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5,11,24,.55),
    rgba(7,17,38,.85)
  );
  z-index: 0;
}

.hero.bg-hero h1,
.hero.bg-hero p {
  z-index: 2;
  color: var(--text-main);
  position: relative;
}

.hero.bg-hero h1 {
  font-size: 3rem;
  font-weight: bold;
}

.hero.bg-hero p {
  font-size: 1.3rem;
  max-width: 600px;
}

/* ================= SERVER STATUS ================= */
.server-status-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 1.5rem;
  font-size: 1.2rem;
  z-index: 2;
  position: relative;
}

.status-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.status-text { font-weight: bold; }

.online {
  background-color: var(--success);
  box-shadow: 0 0 12px var(--success);
}

.offline {
  background-color: var(--danger);
  box-shadow: 0 0 12px var(--danger);
}

.aufbau {
  background-color: var(--warning);
  box-shadow: 0 0 12px var(--warning);
}

.wartung {
  background-color: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

/* ================= BUTTON ================= */
.join-button {
  background: linear-gradient(180deg,var(--accent),var(--accent-2));
  color: #020617;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  transition: transform 0.3s ease, filter 0.3s ease;
  display: inline-block;
  z-index: 2;
  position: relative;
}

.join-button:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
}

@keyframes glow-pulse {
  0%,100% { box-shadow: 0 0 15px rgba(74,158,255,.5); }
  50% { box-shadow: 0 0 25px rgba(74,158,255,.9); }
}


/* ================= SKEW SECTION ================= */
.skewed-section {
  overflow: hidden;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  z-index: 5;
  transform: skewY(var(--skew-angle));
}

.skewed-inner {
  transform: skewY(calc(var(--skew-angle) * -1));
  padding: 5rem 2rem;
  width: 100%;
  background: linear-gradient(
    180deg,
    rgba(10,22,40,.85),
    rgba(5,11,24,.95)
  );
}

:root {
  --skew-angle: 2deg;
}

/* ================= CITY ================= */
.city-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  justify-content: center;
}

.city-text {
  flex: 1 1 400px;
  max-width: 600px;
}

.city-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.city-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.city-image {
  max-width: 500px;
  height: auto;
  cursor: pointer;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 30px rgba(0,0,0,.6);
}

/* ================= MODAL ================= */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background-color: rgba(5,11,24,.95);
  cursor: grab;
}

.modal .close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: var(--text-main);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

.modal-content img {
  position: absolute;
  max-width: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.2s;
}

.modal-controls {
  position: absolute;
  top: 20px;
  right: 80px;
  color: var(--text-main);
  background-color: rgba(10,22,40,.75);
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
  z-index: 9999;
  max-width: 200px;
  border: 1px solid var(--border-main);
}

/* ================= ANIMATIONS ================= */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes zoomIn {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

.animated {
  opacity: 0;
  animation-fill-mode: forwards;
}

/* ================= FEATURES FULL BG ================= */
.features-fullbg {
   /* background-image: url('/img/index/rk.png');*/
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  width: 100vw;
  height: 100vh;
  min-height: 100vh;

  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;

  color: var(--text-main);
  z-index: 0;
}

 /* .features-fullbg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5,11,24,.65),
    rgba(7,17,38,.9)
  );
  z-index: 0;
} */

.features-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  text-align: center;
}

.features-content h2 {
  font-size: 3rem;
  margin-bottom: 60px;
  font-weight: bold;
  background: linear-gradient(90deg,var(--accent),var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.feature-box {
  background: rgba(10,22,40,.55);
  border-radius: 16px;
  padding: 30px;
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-main);
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  transition: transform 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-8px);
}

.feature-box i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 15px;
}

.feature-box h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ================= FOOTER ================= */
.footer {
  background: linear-gradient(180deg,#050b18,#071126);
  color: var(--text-muted);
  padding: 40px 20px 20px;
  font-size: 0.9rem;
  border-top: 1px solid var(--border-main);
  margin-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.footer-about,
.footer-links,
.footer-contact,
.footer-social {
  flex: 1 1 220px;
  min-width: 220px;
}

.footer-about h3,
.footer-links h4,
.footer-contact h4,
.footer-social h4 {
  color: var(--accent);
  margin-bottom: 15px;
  font-weight: 700;
}

.footer-about p,
.footer-contact p {
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a,
.footer-contact a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover,
.footer-contact a:hover {
  color: var(--accent);
}

.footer-social .social-icons a {
  color: var(--text-muted);
  font-size: 1.8rem;
  margin-right: 15px;
  transition: color 0.3s ease;
}

.footer-social .social-icons a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border-main);
  padding-top: 15px;
  margin-top: 30px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 8px;
}

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

/* ================= CREATOR PROGRAM ================= */
.creator-program {
  color: var(--text-main);
  padding: 4rem 2rem;
}

.creator-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 3rem;
}

.creator-text {
  flex: 1;
  min-width: 300px;
}

.creator-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg,var(--accent),var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.creator-box {
  margin-top: 1.5rem;
  background: rgba(10,22,40,.6);
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border-main);
}

.creator-box h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.creator-box ul {
  list-style: none;
  padding-left: 0;
}

.creator-box li {
  margin-bottom: 0.5rem;
}

.creator-note {
  margin-top: 2rem;
  font-style: italic;
  color: var(--accent);
}

.creator-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
  margin-top: 8rem;
}

.creator-image img {
  max-width: 100%;
  border-radius: 1rem;
  box-shadow: 0 0 30px rgba(0,0,0,.5);
}

/* ================= VEHICLE SKINS ================= */
.section-title {
  text-align: center;
  font-size: 2.5em;
  margin: 60px 0 40px 0;
  font-weight: bold;
  color: var(--text-main);
}

.vehicle-skins {
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding: 0 20px;
}

.skin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.skin-row:nth-child(even) {
  flex-direction: row-reverse;
}

.skin-text {
  flex: 1;
  color: var(--text-main);
}

.skin-text h3 {
  font-size: 1.8em;
  margin-bottom: 10px;
}

.skin-text p {
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--text-muted);
}

.skin-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.skin-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0,0,0,.5);
}

/* ================= PARTNER ================= */
.partner-section {
  padding: 60px 40px;
  color: var(--text-main);
  text-align: center;
}

.partner-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.partner-section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  background: linear-gradient(90deg,var(--accent),var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.partner-card {
  background: rgba(10,22,40,.6);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border-main);
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.partner-card:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 45px rgba(0,0,0,.6);
}

.partner-card img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 25px;
  filter: brightness(.95);
}

.partner-card p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0;
}

/* ================= PARTNER TEXT FIX ================= */

/* gesamte Karte als Link – neutral */
.partner-card,
.partner-card * {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Titel (z.B. LagsIT / Horizon Mods) */
.partner-card strong,
.partner-card h3,
.partner-card h4,
.partner-card p {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* falls es <a> Tags sind */
.partner-card a,
.partner-card a:visited,
.partner-card a:hover,
.partner-card a:active {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Hover: KEIN Unterstreichen */
.partner-card:hover * {
  text-decoration: none !important;
}


/* ================= ANIMATION ================= */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= FAQ SECTION ================= */
.faq-section {
  background-image: url('/img/index/rd.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  width: 100vw;
  min-height: 100vh;

  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;

  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
  z-index: 0;
}

.faq-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5,11,24,.9);
  z-index: 1;
}

.faq-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  z-index: 2;
}

/* ================= FAQ TITLE ================= */
.faq-wrapper h2 {
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: 0.04em;
}

/* ================= FAQ ITEMS ================= */
.faq-item {
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-main);
  padding-bottom: 12px;
}

.faq-question {
  background: none;
  border: none;
  width: 100%;
  text-align: left;

  color: var(--text-main);
  font-size: 1.3rem;
  padding: 18px 0;
  cursor: pointer;

  position: relative;
  font-weight: 600;
  transition: color 0.3s ease;
  letter-spacing: 0.02em;
}

.faq-question:hover,
.faq-question.active {
  color: var(--accent);
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  transition: transform 0.3s ease;
  user-select: none;
}

.faq-question.active::after {
  content: '-';
  transform: translateY(-50%) rotate(180deg);
}

/* ================= FAQ ANSWER ================= */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1);
  color: var(--text-muted);
  padding-left: 10px;
  font-size: 1.05rem;
  line-height: 1.5;
}

.faq-answer p {
  margin: 10px 0 0 0;
}

/* ================= MEDIA QUERIES – UNVERÄNDERT ================= */



@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .search-icons {
    display: none;
  }

  .nav-links.active + .search-icons,
  .nav-links.active ~ .search-icons {
    display: block;
  }
  
  .nav-links {
    width: 100%;
    flex-direction: column;
    display: none;
    margin-top: 1rem;
  }

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

  .search-icons {
    margin-left: auto;
  }

  .card {
    width: 90%;
  }

  .skewed-section,
  .skewed-inner {
    transform: none;
    padding: 2rem 1rem;
  }

  .hero.bg-hero h1 {
    font-size: 2rem;
  }

  .hero.bg-hero p {
    font-size: 1rem;
  }

  .modal-content img {
    max-width: 100%;
    height: auto;
  }

  .footer-container {
    flex-direction: column;
    gap: 30px;
  }

  .footer-about,
  .footer-links,
  .footer-contact,
  .footer-social {
    flex: 1 1 100%;
    min-width: auto;
  }

  .features-grid {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 0.5rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  
  .feature-box {
    flex: 0 0 250px;
  }
}

@media (max-width: 480px) {
  nav a {
    display: block;
    margin: 5px 0;
  }

  .hero.bg-hero h1 {
    font-size: 1.6rem;
  }

  .hero.bg-hero p {
    font-size: 0.9rem;
  }
}
