/* =====================================================================
   MoonnightSMP — Style (Emerald-inspired, Moonnight-Lila)
   ===================================================================== */

:root{
  /* Moonnight-Lila statt Hypixel-Türkis */
  --primary:        #7a5fff;
  --primary-hover:  #6a4ff5;
  --primary-dark:   #4a3aa8;
  --primary-soft:   rgba(122,95,255,.15);

  --info:           #4d8fff;
  --info-hover:     #3a78f0;
  --danger:         #ff6666;

  /* Hintergrund-Töne (dunkler als Original, passt zum Moonnight-Look) */
  --bg-overlay:     rgb(1, 14, 26);
  --bg-deep:        #07090f;
  --bg-section:     #0b0f1a;
  --bg-card:        #10162a;
  --bg-card-hover:  #161d35;

  --text:           #ffffff;
  --text-soft:      #dde2ee;
  --text-muted:     #8a93ab;
  --text-faint:     #5b6480;

  --line:           rgba(255,255,255,.08);

  --shadow-soft:    0 8px 24px rgba(0,0,0,.25);
  --shadow-card:    0 12px 40px rgba(0,0,0,.4);
}

*{ box-sizing: border-box; }
html, body{ margin:0; padding:0; }
html{ scroll-behavior: smooth; }

body{
  font-family: 'Jost', sans-serif;
  background: var(--bg-section);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── Typografie ─── */
.display-1, .display-2, .display-3, .display-5, .mbr-section-title, h1, h2, h3{
  font-family: 'Fredoka One', display, cursive;
  font-weight: 400;
  letter-spacing: .01em;
}
.display-1{ font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; }
.display-2{ font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; }
.display-3{ font-size: clamp(1.5rem, 3vw, 2rem); }
.display-4{ font-size: 1rem; font-family: 'Jost', sans-serif; line-height: 1.6; }
.display-5{ font-size: 1.25rem; }
.display-7{ font-size: 1.05rem; font-family: 'Jost', sans-serif; line-height: 1.6; }

/* ─── Buttons ─── */
.btn{
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  padding: 12px 26px;
  border-radius: 6px;
  border: 2px solid transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .25s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary{
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.btn-primary:hover{
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px var(--primary);
}
.btn-info-outline{
  background: transparent;
  border-color: var(--info);
  color: var(--info);
}
.btn-info-outline:hover{
  background: var(--info);
  color: white;
  transform: translateY(-2px);
}
.btn-secondary{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.08);
  color: white;
}
.btn-secondary:hover{
  background: rgba(255,255,255,.15);
}

/* ─── NAVBAR ─── */
.navbar{
  background: rgba(7, 9, 15, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
  z-index: 1000;
}
.navbar-brand{
  display: flex; align-items: center;
  gap: 12px;
}
.navbar-logo img{
  height: 44px;
  width: auto;
}
.navbar-caption{
  font-family: 'Fredoka One', cursive;
  font-size: 1.4rem;
  color: white;
  text-decoration: none;
}
.navbar-nav .nav-link{
  color: var(--text-soft) !important;
  font-weight: 500;
  padding: 8px 16px !important;
  transition: color .2s ease;
  position: relative;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active{
  color: var(--primary) !important;
}
.navbar-nav .nav-link.active::after{
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* Hamburger */
.hamburger{
  width: 30px; height: 30px;
  display: flex; flex-direction: column; justify-content: space-around;
  cursor: pointer;
}
.hamburger span{
  display: block;
  width: 100%; height: 2px;
  background: white;
  border-radius: 2px;
  transition: all .3s ease;
}
.navbar-toggler{
  border: none;
  background: transparent;
}

/* Live-Server-Status im Header */
.server-status-pill{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: .85rem;
  text-decoration: none;
  background: rgba(122,95,255,.05);
  transition: all .2s ease;
}
.server-status-pill:hover{
  border-color: var(--primary);
  background: rgba(122,95,255,.10);
  color: white;
}
.server-status-pill .dot{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #5bd05b;
  box-shadow: 0 0 10px rgba(91,208,91,.6);
  animation: pulse 1.8s ease-in-out infinite;
}
.server-status-pill.offline .dot{
  background: #ff6666;
  box-shadow: 0 0 10px rgba(255,102,102,.6);
}
.server-status-pill.unknown .dot{
  background: var(--text-faint);
  box-shadow: none;
  animation: none;
}
@keyframes pulse{
  0%, 100%{ opacity:1; transform: scale(1); }
  50%     { opacity:.55; transform: scale(.85); }
}

/* ─── HERO ─── */
.hero-section{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('../assets/img/lobby.png') center/cover no-repeat;
  padding: 100px 0 60px;
}
.hero-section::before{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(1,14,26,.75) 0%,
    rgba(1,14,26,.85) 50%,
    rgba(11,15,26,.95) 100%);
}
.hero-section .container{
  position: relative;
  z-index: 1;
}
.hero-logo{
  max-width: 100%;
  width: 320px;
  height: auto;
  filter: drop-shadow(0 8px 32px rgba(122,95,255,.4));
  animation: float 4s ease-in-out infinite;
}
@keyframes float{
  0%,100%{ transform: translateY(0); }
  50%    { transform: translateY(-12px); }
}
.hero-section h1{
  color: white;
  margin-bottom: 1.5rem;
}
.hero-section .mbr-text{
  color: var(--text-soft);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ─── SECTIONS ─── */
.section{
  padding: 80px 0;
  position: relative;
}
.section.section-bg{
  background: var(--bg-deep);
}
.section-overlay{
  position: relative;
  background: url('../assets/img/smp-spawn.png') center/cover no-repeat;
}
.section-overlay::before{
  content: '';
  position: absolute; inset: 0;
  background: rgba(1,14,26,.85);
}
.section-overlay > .container{
  position: relative;
  z-index: 1;
}

/* ─── FEATURES (was ist X) ─── */
.feature-item{
  display: flex;
  gap: 16px;
  padding: 18px 0;
}
.feature-icon{
  width: 56px; height: 56px;
  min-width: 56px;
  border-radius: 12px;
  background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.feature-icon svg{ width: 28px; height: 28px; }
.feature-text h4{
  color: white;
  margin: 0 0 6px;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
}
.feature-text p{
  color: var(--text-muted);
  margin: 0;
}

/* ─── STEPS (wie joinst du) ─── */
.step-card{
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 28px;
  height: 100%;
  transition: all .25s ease;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step-card:hover{
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.step-number{
  width: 52px; height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  box-shadow: 0 6px 20px rgba(122,95,255,.4);
}
.step-card h4{
  color: white;
  margin: 0 0 8px;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
}
.step-card p{
  color: var(--text-muted);
  margin: 0;
}

/* ─── GAMEMODES ─── */
.gamemode-card{
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 28px;
  height: 100%;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.gamemode-card:hover{
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
}
.gamemode-card .gm-icon{
  width: 64px; height: 64px;
  margin-bottom: 18px;
  color: var(--primary);
}
.gamemode-card .gm-icon svg{ width: 100%; height: 100%; }
.gamemode-card h3{
  color: white;
  font-family: 'Fredoka One', cursive;
  margin: 0 0 10px;
}
.gamemode-card p{
  color: var(--text-muted);
  margin: 0 0 16px;
}
.gm-status{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .05em;
  position: absolute;
  top: 20px; right: 20px;
}
.gm-status.online{ background: rgba(91,208,91,.15); color: #5bd05b; }
.gm-status.soon{ background: rgba(255,255,255,.05); color: var(--text-faint); }
.gm-status.maintenance{ background: rgba(217,162,68,.15); color: #e0b86a; }
.gm-status .dot{
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.gm-link{
  display: inline-block;
  color: var(--primary);
  font-size: .85rem;
  font-weight: 600;
  transition: transform .2s ease;
}
.gamemode-card:hover .gm-link{
  transform: translateX(4px);
}

/* ─── QUOTE / STORY ─── */
.quote-section blockquote{
  border-left: 4px solid var(--primary);
  padding: 16px 32px;
  margin: 0;
}
.quote-section blockquote h5{
  color: var(--primary);
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.quote-section blockquote p{
  color: var(--text-soft);
  font-size: 1.15rem;
  line-height: 1.7;
  margin: 0;
}

/* ─── DISCORD-CTA ─── */
.cta-section{
  position: relative;
  background: url('../assets/img/cta-bg.png') center/cover no-repeat;
  padding: 100px 0;
  text-align: center;
}
.cta-section::before{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(122,95,255,.20) 0%,
    rgba(1,14,26,.85) 100%);
}
.cta-section > .container{
  position: relative; z-index: 1;
}
.cta-section h2{ color: white; margin-bottom: 1.5rem; }

/* ─── FAQ Accordion ─── */
.faq-section .accordion{
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: var(--line);
  --bs-accordion-border-radius: 12px;
  --bs-accordion-color: white;
  --bs-accordion-btn-color: white;
  --bs-accordion-btn-bg: var(--bg-card);
  --bs-accordion-active-bg: var(--bg-card-hover);
  --bs-accordion-active-color: white;
  --bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem rgba(122,95,255,.25);
}
.faq-section .accordion-item{
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px !important;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-section .accordion-button{
  background: var(--bg-card);
  color: white;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  padding: 18px 22px;
  border-radius: 12px !important;
}
.faq-section .accordion-button:not(.collapsed){
  background: var(--bg-card-hover);
  color: white;
  box-shadow: none;
}
.faq-section .accordion-button:focus{
  box-shadow: none;
  border-color: var(--primary);
}
.faq-section .accordion-button::after{
  filter: invert(60%) sepia(50%) saturate(2000%) hue-rotate(230deg);
}
.faq-section .accordion-body{
  background: var(--bg-card);
  color: var(--text-muted);
  padding: 0 22px 22px;
  line-height: 1.7;
}

/* ─── SECTION HEAD ─── */
.section-head{
  text-align: center;
  margin-bottom: 60px;
}
.section-head h2{
  color: white;
  margin-bottom: 16px;
}
.section-head .lead{
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ─── FOOTER ─── */
.site-footer{
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
.site-footer p{
  color: var(--text-muted);
  margin: 0;
}
.site-footer a{
  color: var(--primary);
  text-decoration: none;
  transition: color .2s ease;
}
.site-footer a:hover{
  color: var(--primary-hover);
}
.site-footer strong{ color: white; }

.social-list{
  display: flex; gap: 12px; justify-content: flex-end;
  flex-wrap: wrap;
}
.soc-item a{
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text-muted);
  transition: all .25s ease;
}
.soc-item a:hover{
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}
.soc-item svg{ width: 18px; height: 18px; }

/* ─── PAGE-HEAD (Subpages) ─── */
.page-head{
  background: url('../assets/img/lobby.png') center/cover no-repeat;
  padding: 140px 0 80px;
  position: relative;
  text-align: center;
}
.page-head::before{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(1,14,26,.80) 0%,
    rgba(11,15,26,.95) 100%);
}
.page-head > .container{ position: relative; z-index: 1; }
.page-head h1{
  color: white;
  margin-bottom: 12px;
}
.page-head p{
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 991px){
  .hero-logo{ width: 220px; margin-bottom: 30px; }
  .section{ padding: 60px 0; }
}
@media (max-width: 768px){
  .hero-section{ min-height: 80vh; text-align: center; }
  .hero-section .row{ justify-content: center; }
  .navbar-buttons{ padding: 12px 0; }
  .navbar-buttons .btn{ width: 100%; }
  .social-list{ justify-content: center; margin-top: 16px; }
  .step-card{ flex-direction: column; align-items: flex-start; }
}

/* ─── REVEAL ─── */
.reveal{
  opacity: 0;
  transform: translateY(20px);
  transition: all .8s cubic-bezier(.16,1,.3,1);
}
.reveal.visible{
  opacity: 1;
  transform: translateY(0);
}
