/* ========================= */
/* Grundlayout               */
/* ========================= */

/* Container für die ganze Seite */
.server-info-container {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
    min-height: 900px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 3rem;
    color: #38bdf8;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    color: #b0b0b0;
}

/* Info-Boxen */
.server-info {
    position: relative;
}

/* Boxen absolute Positionierung */
.info-box {
    position: absolute;
    width: 350px;
    min-height: 200px;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Hover-Effekt */
.info-box:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
}

/* Überschriften */
.info-box h2 {
    font-size: 1.8rem;
    color: #38bdf8;
    margin-bottom: 15px;
    padding: 10px 20px;
    border-radius: 12px;
    background: transparent;
    transition: all 0.3s ease-in-out;
}

.info-box:hover h2 {
    color: #fff;
    background: #38bdf8;
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.5);
}

/* Textlisten */
.info-box ul {
    list-style: none;
    padding: 0;
}

.info-box li {
    font-size: 1.1rem;
    color: #b0b0b0;
    margin-bottom: 10px;
}

.info-box li strong {
    color: #fff;
}

/* Box-spezifische Farben */
.info-box.about { background: rgba(56, 189, 248, 0.1); }
.info-box.about:hover { background: rgba(56, 189, 248, 0.3); box-shadow: 0 0 25px rgba(56, 189, 248, 0.7); }
.info-box.support { background: rgba(34, 197, 94, 0.1); }
.info-box.support:hover { background: rgba(34, 197, 94, 0.3); box-shadow: 0 0 25px rgba(34, 197, 94, 0.7); }
.info-box.security { background: rgba(244, 63, 94, 0.1); }
.info-box.security:hover { background: rgba(244, 63, 94, 0.3); box-shadow: 0 0 25px rgba(244, 63, 94, 0.7); }
.info-box.network { background: rgba(168, 85, 247, 0.1); }
.info-box.network:hover { background: rgba(168, 85, 247, 0.3); box-shadow: 0 0 25px rgba(168, 85, 247, 0.7); }
.info-box.spielmodies { background: rgba(253, 224, 71, 0.1); }
.info-box.spielmodies:hover { background: rgba(253, 224, 71, 0.3); box-shadow: 0 0 25px rgba(253, 224, 71, 0.7); }

/* Überschriften-Farben pro Box */
.info-box.about h2 { background: rgba(56, 189, 248, 0.8); color: #fff; }
.info-box.about:hover h2 { background: rgba(56, 189, 248, 1); }
.info-box.support h2 { background: rgba(34, 197, 94, 0.8); color: #fff; }
.info-box.support:hover h2 { background: rgba(34, 197, 94, 1); }
.info-box.security h2 { background: rgba(244, 63, 94, 0.8); color: #fff; }
.info-box.security:hover h2 { background: rgba(244, 63, 94, 1); }
.info-box.network h2 { background: rgba(168, 85, 247, 0.8); color: #fff; }
.info-box.network:hover h2 { background: rgba(168, 85, 247, 1); }
.info-box.spielmodies h2 { background: rgba(255, 165, 0, 0.8); color: #fff; }
.info-box.spielmodies:hover h2 { background: rgb(255, 106, 0); }

/* Original Positionen (Desktop) */
.info-box.about { top: 100px; left: 200px; }
.info-box.support { top: 700px; left: 850px; }
.info-box.security { top: 1300px; left: 200px; }
.info-box.network { top: 1800px; left: 850px; }
.info-box.spielmodies { top: 2300px; left: 100px; }

/* Bilder in Boxen */
.info-box { overflow: hidden; }
.info-image {
    position: absolute;
    top: 10px;
    left: 270px;
    width: 80px;
    height: auto;
    z-index: 10;
}

/* Bild-Boxen */
.info-box.image-box {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.info-box.image-box:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.info-box.image-box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Beispielbild-Boxen (Desktop) */
.info-box.image-box.img1 { width: 550px; height: 550px; top: 110px; left: 690px; }
.info-box.image-box.img2 { width: 545px; height: 545px; top: 160px; left: 200px; }
.info-box.image-box.img3 { width: 450px; height: 450px; top: 215px; left: 750px; }
.info-box.image-box.img4 { width: 410px; height: 410px; top: 260px; left: 280px; }
.info-box.image-box.img5 { width: 460px; height: 460px; top: 370px; left: 750px; }

/* Coming Soon */
.coming-soon {
  color: #ff4d4d;
  font-size: 0.9em;
  font-weight: 700;
  font-style: italic;
  display: inline-block;
  margin-left: 1em;
  animation: subtlePulse 1.5s ease-in-out infinite;
}

@keyframes subtlePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
}

/* Hauptlinks */
.modes-list a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  transition: background 0.2s;
  position: relative;
  z-index: 2;
}

.modes-list a:hover {
  background: rgba(255,255,255,0.1);
}

.sub-item {
  display: block;
  margin-left: 1.2rem;
  padding: 0.15rem 0;
  font-weight: 400;
  font-size: 0.95em;
}

.hover-strip {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.hover-strip a { z-index: 2; position: relative; }

.hover-animation {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  opacity: 0.7;
  transition: left 0.5s ease;
}

.hover-strip:hover .hover-animation { left: 0; }


/* ========================= */
/* RESPONSIVE / MOBILE       */
/* ========================= */
@media (max-width: 1024px) {
  /* Alle Boxen auf mobile vertikal stapeln */
  .info-box,
  .info-box.image-box {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 90% !important;
    margin: 20px auto !important;
    transform: none !important;
  }

  /* Alternierende Reihenfolge von Text und Bild */
  .info-box:nth-child(odd) .info-image,
  .info-box:nth-child(odd) img {
    order: 2; /* Bild nach Text */
  }

  .info-box:nth-child(even) .info-image,
  .info-box:nth-child(even) img {
    order: 1; /* Bild vor Text */
  }

  /* Bilder zentrieren */
  .info-box .info-image,
  .info-box.image-box img {
    float: none !important;
    display: block;
    margin: 10px auto 0;
  }
}


@media (max-width: 480px) {
  .info-box,
  .info-box.image-box {
    width: 95% !important;
    margin: 15px auto !important;
  }

  .info-box.image-box { height: 200px !important; }

  /* Bilder immer zentriert */
  .info-box:nth-child(odd) .info-image,
  .info-box:nth-child(even) .info-image,
  .info-box.image-box img {
    float: none !important;
    display: block;
    margin: 0 auto 10px;
  }

  header h1 { font-size: 1.5rem; }
  header p  { font-size: 0.9rem; }
}