/* =========================================================
   EMPIRE VALLEY – GLOBAL STYLE (2025)
   ========================================================= */

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ---------------- CSS VARIABLEN ---------------- */
:root {
  --orange: #ff7a00;
  --purple: #8b5cf6;
  --blue: #0ea5e9;
  --bg-dark: #0b0b18;
  --glass: rgba(255,255,255,0.08);
}


/* ---------------- RESET ---------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rajdhani', sans-serif;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(12,12,24,0.95), rgba(8,8,20,1)),
    url("https://images.unsplash.com/photo-1534081333815-ae5019106622?auto=format&fit=crop&w=1920&q=80")
    center / cover no-repeat fixed;
  overflow-x: hidden;
}

/* ---------------- HEADER ---------------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-wrap img {
  height: 72px;
  border-radius: 16px;
  filter: drop-shadow(0 0 12px var(--orange));
}

.logo-wrap h1 {
  font-family: 'Orbitron', sans-serif;
  color: var(--orange);
  letter-spacing: 1px;
}

/* =========================================================
   NAVBAR – FINAL (OHNE HTML-ÄNDERUNG)
   ========================================================= */

.main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Container */
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   LINKS – ECHT ZENTRIERT
   ========================================================= */

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.nav-links .nav-highlight {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}


/* Normal Links */
.nav-links a {
  position: relative;
  color: #cfcfcf;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

/* Underline */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #5865F2, #57F287);
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* =========================================================
   DISCORD – KLAR ALS DISCORD
   ========================================================= */

.nav-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;

  padding: 0.45rem 1.05rem;
  border-radius: 999px;

  background: linear-gradient(135deg, #5865F2, #4752C4);
  color: #fff !important;

  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-decoration: none;

  box-shadow:
    0 0 12px rgba(88,101,242,0.45),
    0 0 30px rgba(88,101,242,0.25);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-highlight::before {
  content: "💬";
  font-size: 0.9rem;
}

.nav-highlight::after {
  display: none;
}

.nav-highlight:hover {
  box-shadow:
    0 0 20px rgba(88,101,242,0.75),
    0 0 45px rgba(88,101,242,0.55);
}

/* ================= DISCORD ICON BUTTON ================= */

.discord-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.05rem;
  border-radius: 8px;

  /* Discord-Farbverlauf */
  background: linear-gradient(135deg, #5865F2, #4752C4);
  color: #fff !important;

  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;

  box-shadow:
    0 0 14px rgba(88,101,242,0.45),
    0 0 28px rgba(88,101,242,0.25);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* das Icon als Bild */
/* Icon als Bild */
.discord-icon-btn::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;

  background-image: url("https://uxwing.com/wp-content/themes/uxwing/download/brands-and-social-media/discord-white-icon.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  /* 🔥 Rotation-Animation */
  transition: transform 0.35s ease;
  transform-origin: 50% 50%;
}

/* Hover: Icon dreht sich 360° im Uhrzeigersinn */
.discord-icon-btn:hover::before {
  transform: rotate(360deg);
}


/* Hover-Effekt */
.discord-icon-btn:hover {
  box-shadow:
    0 0 22px rgba(88,101,242,0.85),
    0 0 48px rgba(88,101,242,0.55);
  filter: brightness(1.15);
}

.discord-icon-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transition: transform 0.2s ease;
}

.discord-icon-btn:hover::after {
  transform: translateY(-2px);
}



@media (max-width: 900px) {
  .nav-links .nav-highlight {
    position: static;
    transform: none;
    margin-top: 0.6rem;
  }
}


/* Subtiler Pulse */
@keyframes discordPulse {
  0%, 100% {
    box-shadow: 0 0 14px rgba(88,101,242,0.45);
  }
  50% {
    box-shadow: 0 0 22px rgba(88,101,242,0.75);
  }
}

.nav-highlight:not(:hover) {
  animation: discordPulse 3s infinite;
}

/* =========================================================
   BURGER
   ========================================================= */

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 1rem;
}

.burger span {
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  display: block;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

  .burger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    transform: none;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(14px);

    flex-direction: column;
    padding: 1.2rem;
    gap: 0.9rem;

    display: none;
  }

  .nav-links.active {
    display: flex;
  }
}




/* ---------------- HERO ---------------- */
.hero {
  text-align: center;
  padding: 140px 20px 100px;
  background:
    radial-gradient(circle at 50% -20%, rgba(255,122,0,0.25), transparent 70%),
    radial-gradient(circle at 90% 30%, rgba(139,92,246,0.25), transparent 70%);
}

.hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--orange);
  text-shadow:
    0 0 20px var(--orange),
    0 0 60px var(--purple);
}

.hero p {
  margin-top: 1rem;
  font-size: 1.3rem;
  max-width: 600px;
  margin-inline: auto;
}

.hero img {
  margin-top: 40px;
  width: 220px;
  border-radius: 16px;
  box-shadow:
    0 0 30px var(--blue),
    0 0 60px var(--purple);
  animation: float 5s ease-in-out infinite;
}

/* ---------------- SERVER STATUS ---------------- */
.server-status {
  margin-top: 20px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue);
  text-shadow: 0 0 10px var(--blue);
}

/* ---------------- BUTTONS ---------------- */
.buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  border: 2px solid var(--orange);
  color: var(--orange);
  padding: .9rem 1.6rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: .3s;
}

.btn:hover {
  background: var(--orange);
  color: #000;
  box-shadow: 0 0 25px var(--orange);
}

/* ---------------- SECTIONS ---------------- */
section {
  padding: 70px 20px;
  text-align: center;
  background: rgba(0,0,0,0.7);
}

h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.3rem;
  margin-bottom: 1.4rem;
  color: var(--purple);
  text-shadow: 0 0 14px var(--purple);
}

/* ---------------- FEATURES ---------------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 1.5rem;
  transition: .3s;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px var(--blue);
}

/* ---------------- CONNECT ---------------- */
.connect-section {
  background: rgba(10,10,20,0.85);
}

.connect-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.connect-buttons a {
  background: linear-gradient(90deg, var(--orange), var(--purple));
  color: #fff;
  padding: 1rem 1.6rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: .3s;
  box-shadow: 0 0 20px rgba(255,122,0,0.5);
}

.connect-buttons a:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px var(--blue);
}

/* ---------------- SALTYCHAT BUTTON ---------------- */
.salty-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 1rem 2rem;
  margin-top: 1.2rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05rem;
  color: #fff;
  text-decoration: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--purple));
  box-shadow:
    0 0 15px rgba(255,122,0,0.6),
    0 0 30px rgba(139,92,246,0.5);
  transition: .35s;
  position: relative;
  overflow: hidden;
}

.salty-btn.tiny {
  padding: .35rem .8rem;
  font-size: .7rem;
  border-radius: 8px;
}

.salty-btn:hover {
  transform: translateY(-3px) scale(1.03);
}

/* ---------------- POPUP ---------------- */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: flex-start;     /* WICHTIG */
  justify-content: center;
  padding: 3rem 1rem;
  z-index: 9999;

  overflow-y: auto;            /* 🔥 DAS FEHLTE */
}

.popup-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.hidden {
  opacity: 0;
  pointer-events: none;

}

.hidden {
  opacity: 0;
  pointer-events: none;
}


.popup-content {
  background: linear-gradient(145deg, var(--purple), var(--orange));
  padding: 2.5rem;
  border-radius: 16px;
  max-width: 460px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 40px rgba(0,0,0,0.6);
}

.popup-content button {
  margin-top: 1.5rem;
  padding: .7rem 1.6rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

/* ---------------- FOOTER ---------------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0.75rem 1.5rem;
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255,255,255,0.05);

  font-size: 0.85rem;
  color: #aaa;

  margin-top: auto; /* 🔥 DAS ist der Schlüssel */
}

/* Bereiche */
.footer-left,
.footer-center,
.footer-right {
  flex: 1;
  white-space: nowrap;
}

/* Uhrzeit */
.footer-left {
  text-align: left;
  font-size: 0.75rem;
  color: #888;
}

/* Copyright */
.footer-center {
  text-align: center;
  color: #aaa;
}

/* Links */
.footer-right {
  text-align: right;
}

.footer-right a {
  color: #888;
  text-decoration: none;
  margin-left: 0.75rem;
  transition: color 0.2s ease;
}

.footer-right a:hover {
  color: #fff;
}

@media (max-width: 768px) {
/*  .site-footer {            */
/*    flex-direction: column; */
/*    gap: 0.4rem;            */
/*    text-align: center;     */
/*  }                         */

  .footer-left,
  .footer-center,
  .footer-right {
    flex: unset;
    text-align: center;
  }
}

.footer-link {
  color: #ffd369;
  text-decoration: none;
  margin-left: 0.3rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #fff;
}

.footer-sep {
  margin: 0 0.35rem;
  color: rgba(255,255,255,0.3);
}


/* ---------------- ANIMATIONS ---------------- */
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
  }
  nav a {
    margin: .4rem;
  }
}

/* ================= SUPPORT / DONATION ================= */

.support-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(255,122,0,0.18), transparent 70%),
    rgba(0,0,0,0.75);
}

.support-text {
  max-width: 850px;
  margin: 0 auto 3rem;
  font-size: 1.15rem;
  color: #e6e6ff;
}

.support-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.support-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 2rem 1.6rem;
  transition: .35s ease;
  box-shadow: 0 0 25px rgba(0,0,0,0.5);
}

.support-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 35px var(--orange);
}

.support-card h3 {
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 0.8rem;
  color: var(--orange);
}

.support-card p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  color: #ddd;
}

/* Buttons */
.support-btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  color: #000;
  background: linear-gradient(135deg, var(--orange), var(--purple));
  box-shadow: 0 0 20px rgba(255,122,0,0.5);
  transition: .3s;
}

.support-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px var(--purple);
}

.support-btn.alt {
  background: linear-gradient(135deg, var(--purple), var(--blue));
}

.support-btn.ghost {
  background: transparent;
  color: #fff;
  border: 2px solid var(--orange);
}

.support-btn.ghost:hover {
  background: var(--orange);
  color: #000;
}

.support-note {
  margin-top: 2.5rem;
  font-size: 0.95rem;
  color: #ffcc80;
}

/* ================= ADMIN POPUP ================= */
.popup-content,
.admin-popup {
  max-width: 700px;
  width: 100%;
}

#adminContent {
  max-height: 85vh;
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* ================= CUSTOM SCROLLBAR ================= */

/* Breite */
::-webkit-scrollbar {
  width: 10px;
}

/* Hintergrund */
::-webkit-scrollbar-track {
  background: rgba(10,10,20,0.8);
  border-radius: 10px;
}

/* Scroll-Bar */
::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    #ff7a00,
    #8b5cf6
  );
  border-radius: 10px;
  border: 2px solid rgba(10,10,20,0.8);
}

/* Hover Effekt */
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    #ffa94d,
    #a78bfa
  );
}

/* ================= FIREFOX SCROLLBAR ================= */

* {
  scrollbar-width: thin;
  scrollbar-color: #8b5cf6 rgba(10,10,20,0.8);
}



.admin-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

/* ================= TEAM TREE ================= */

.team-section {
  padding: 5rem 1.5rem;
  text-align: center;
}

.team-intro {
  max-width: 700px;
  margin: 0 auto 3rem;
  color: #cfd3ff;
}

.team-tree {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.team-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.team-row.center {
  justify-content: center;
}

.team-card {
  background: linear-gradient(145deg, #12142a, #0b0d1c);
  border: 1px solid #2a2f5f;
  padding: 1.2rem 1.6rem;
  border-radius: 14px;
  min-width: 200px;
  box-shadow: 0 0 25px rgba(80,120,255,.15);
}

.team-card strong {
  display: block;
  font-size: 1.1rem;
  color: #fff;
}

.team-card span {
  font-size: .9rem;
  color: #9aa4ff;
}

/* Rollenfarben */
.team-card.lead { border-color: #ffd700; }
.team-card.management { border-color: #ff9f1c; }
.team-card.head-support { border-color: #4cc9f0; }
.team-card.supporter { border-color: #80ffdb; }
.team-card.moderator { border-color: #c77dff; }

/* ================= TEAM AVATAR ================= */

.team-avatar {
  width: 110px;
  height: 110px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.2);
  box-shadow: 0 0 18px rgba(139,92,246,.4);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card:hover .team-avatar {
  transform: scale(1.05);
  transition: .3s;
}

/* ================= TXADMIN POPUP ================= */

.txadmin-popup {
  width: 95vw;
  height: 90vh;
  max-width: 1400px;
  padding: 0;
  background: #000;
}

.txadmin-popup iframe {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: none;
}

.txadmin-popup .admin-close {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 10;
  background: rgba(0,0,0,.6);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

/* ================= VIP COIN GRID ================= */

.vip-card {
  position: relative;
  overflow: hidden;

  background:
    linear-gradient(160deg, rgba(25,25,45,.9), rgba(5,5,15,.95));

  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 2rem 1.6rem;
  text-align: center;

  box-shadow:
    0 0 30px rgba(0,0,0,.6),
    inset 0 0 25px rgba(255,122,0,.08);

  transition: transform .35s ease, box-shadow .35s ease;
}

.vip-card:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow:
    0 0 40px rgba(255,122,0,.6),
    0 0 90px rgba(139,92,246,.55),
    inset 0 0 30px rgba(255,122,0,.25);
}

.vip-image-wrap {
  height: 160px;
  margin-bottom: 1.4rem;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    radial-gradient(circle at 50% 35%, rgba(255,122,0,.35), transparent 65%),
    radial-gradient(circle at 80% 20%, rgba(139,92,246,.35), transparent 70%),
    linear-gradient(180deg, rgba(20,20,40,.8), rgba(5,5,15,.95));

  border-radius: 16px;
}

.vip-img {
  max-width: 90%;
  max-height: 120px;

  filter:
    drop-shadow(0 0 18px rgba(255,122,0,.9))
    drop-shadow(0 0 45px rgba(139,92,246,.7));

  animation: vip-float 4s ease-in-out infinite;
  transition: transform .4s ease;
}

.vip-card:hover .vip-img {
  transform: scale(1.18) rotate(-1deg);
}

.vip-price {
  margin-top: .6rem;
  font-size: 1.05rem;
  color: #ddd;
}

.vip-ultimate {
  border: 2px solid #ff7a00;
  box-shadow:
    0 0 60px rgba(255,122,0,.9),
    0 0 130px rgba(139,92,246,.7);
}

.vip-ultimate::before {
  content: "ULTIMATE";
  position: absolute;
  top: 18px;
  right: -48px;

  background: linear-gradient(135deg, #ff7a00, #8b5cf6);
  color: #000;

  font-weight: 900;
  font-size: .8rem;
  letter-spacing: 1px;

  padding: .5rem 3rem;
  transform: rotate(35deg);
}

.vip-card .support-btn {
  margin-top: 1.2rem;
  font-size: 1.05rem;
  letter-spacing: .5px;

  box-shadow:
    0 0 20px rgba(255,122,0,.6),
    0 0 40px rgba(139,92,246,.4);
}

.vip-card:hover .support-btn {
  transform: scale(1.08);
}

.vip-popular {
  position: relative;
  border: 2px solid #ffcc00;
  box-shadow:
    0 0 35px rgba(255,204,0,.6),
    0 0 80px rgba(255,122,0,.5);
}

.vip-popular::before {
  content: "🔥 BELIEBT";
  position: absolute;
  top: 14px;
  right: -42px;

  background: linear-gradient(135deg, #ffcc00, #ff7a00);
  color: #000;

  font-weight: 900;
  font-size: .75rem;
  letter-spacing: 1px;

  padding: .45rem 3rem;
  transform: rotate(35deg);

  box-shadow: 0 0 18px rgba(255,204,0,.8);
  z-index: 5;
}

.vip-popular:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow:
    0 0 50px rgba(255,204,0,.9),
    0 0 120px rgba(255,122,0,.8),
    inset 0 0 25px rgba(255,204,0,.25);
}


/* ======= LOGIN REGISTER ========*/

.header-user {
  position: absolute;
  top: 20px;
  right: 30px;
  display: flex;
  gap: 1rem;
}

.user-link {
  padding: .5rem 1rem;
  border-radius: 20px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: .9rem;
  text-decoration: none;
}

.user-link.register {
  background: linear-gradient(135deg,#ff7a00,#8b5cf6);
}

.user-link.logout {
  background: #ff4d4d;
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  position: relative;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-wrap img {
  height: 50px;
}

.header-user {
  display: flex;
  gap: 0.8rem;
}

.user-link {
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
  transition: 0.25s;
}

.user-link:hover {
  transform: translateY(-2px);
}

.user-link.register {
  background: linear-gradient(135deg,#ff7a00,#8b5cf6);
}

.user-link.logout {
  background: #ff4d4d;
}

/* ================= AUTH POPUP ================= */

.auth-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);

  display: flex;
  align-items: flex-start;   /* 🔥 NICHT center */
  justify-content: center;

  padding: 3rem 1rem;        /* Platz oben/unten */
  overflow-y: auto;          /* 🔥 DAS IST DER FIX */

  z-index: 9999;
}

.auth-popup.hidden {
  display: none;
}


.auth-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 2.2rem;

  background: linear-gradient(145deg, #12122a, #0b0b18);
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(0,0,0,0.7);
  text-align: center;
}

.auth-box h2 {
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 1.6rem;
  color: var(--orange);
}

/* Close */
.auth-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #fff;
  cursor: pointer;
}

/* Inputs */
.auth-box input {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  border: none;
  outline: none;
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* Button */
.auth-btn {
  width: 100%;
  padding: 0.85rem;
  margin-top: 0.6rem;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--orange), var(--purple));
  color: #000;
  transition: .3s;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255,122,0,.6);
}

/* Switch */
.auth-switch {
  margin-top: 1.2rem;
  font-size: 0.9rem;
}

.auth-switch a {
  color: var(--orange);
  font-weight: 600;
}

#registerSuccessPopup .auth-box {
  border: 2px solid #4ade80;
  box-shadow: 0 0 25px rgba(74, 222, 128, 0.6);
}

/* =========================
   SECTION SUBTITLE (H3)
========================= */

.section-subtitle {
  margin: 2.5rem 0 1.4rem;

  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.6px;

  color: var(--orange);
  text-align: center;

  position: relative;
  text-shadow: 0 0 12px rgba(255,122,0,0.45);
}

/* Linien links & rechts */
.section-subtitle::before,
.section-subtitle::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 90px;
  height: 2px;

  background: linear-gradient(
    90deg,
    transparent,
    var(--purple),
    var(--orange)
  );
}

.section-subtitle::before {
  left: -110px;
}

.section-subtitle::after {
  right: -110px;
}

/* Mobile */
@media (max-width: 600px) {
  .section-subtitle::before,
  .section-subtitle::after {
    display: none;
  }
}

/* ===============================
   TS3 SLIDE PANEL – FIXED & GLOBAL
================================ */

.ts3-wrapper {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;               /* Hover-Zone */
  height: 420px;
  z-index: 99999;
}

/* Panel */
.ts3-panel {
  position: absolute;
  left: 0;
  top: 0;

  width: 260px;
  height: 420px;

  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(14px);
  border-radius: 0 16px 16px 0;
  box-shadow: 0 0 40px rgba(0,0,0,0.7);

  transform: translateX(-260px);   /* 🔥 START VERSTECKT */
  transition: transform 0.35s ease;
  will-change: transform;
}

/* Hover fährt Panel raus */
.ts3-wrapper:hover .ts3-panel {
  transform: translateX(0);
}

/* Tab */
.ts3-tab {
  position: absolute;
  right: -36px;
  top: 50%;
  transform: translateY(-50%);

  background: linear-gradient(135deg, #ff7a00, #8b5cf6);
  padding: 14px 10px;
  border-radius: 0 14px 14px 0;

  box-shadow: 0 0 18px rgba(255,122,0,0.65);
  cursor: pointer;
}

/* Vertikaler Text */
.ts3-tab span {
  display: inline-block;
  writing-mode: vertical-rl;
  transform: rotate(180deg);

  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: #000;
}

/* Content */
.ts3-content {
  padding: 0.75rem;
  height: 100%;
  overflow-y: auto;
}

/* Mobile AUS */
@media (max-width: 900px) {
  .ts3-wrapper {
    display: none;
  }
}
