/* == ORIGINAL + ERGÄNZT (nichts gelöscht) == */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #121212;
  color: #f1f1f1;
  font-size: 14px;
}

main {
  max-width: 960px;
  margin: 2rem auto;
  padding: 1rem;
  text-align: left;
}

footer {
  text-align: center;
  margin-top: 3rem;
  padding: 1rem;
  background: #1e1e1e;
  color: #888;
  font-size: 0.9rem;
}

.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem;
  background: #1e1e1e;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-weight: bold;
  color: #2ecc71;
  margin-right: 2rem;
}
.logo a {
  color: #2ecc71;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-links li a {
  color: #f1f1f1;
  text-decoration: none;
  transition: color 0.3s;
}
.nav-links li a:hover,
.nav-links li a.active {
  color: #2ecc71;
  font-weight: bold;
}

/* === Language pill (global, wie Index) === */
.navbar .lang-dropdown { position: relative; }

.navbar .lang-btn{
  display:flex; align-items:center; gap:.5rem;
  padding:.45rem .85rem;
  border:none; border-radius:9999px;
  background:#1f1f1f; color:#eee; font-weight:700;
  cursor:pointer; box-shadow:0 0 0 1px rgba(255,255,255,.08) inset;
}
.navbar .lang-btn:hover{ background:#272727; }
.navbar .lang-btn .flag{ font-size:1.05rem; }
.navbar .lang-btn::after{
  content:"▾"; font-size:.8rem; opacity:.8;
}

.navbar .lang-menu{
  position:absolute; right:0; top:calc(100% + 8px);
  display:none; min-width:180px;
  background:#121212; border:1px solid #2b2b2b; border-radius:12px;
  box-shadow:0 12px 30px rgba(0,0,0,.35); z-index:9999;
  padding:.35rem;
}
.navbar .lang-dropdown.open .lang-menu{ display:block; }
.navbar .lang-menu li{
  display:flex; align-items:center; gap:.55rem;
  padding:.55rem .7rem; border-radius:8px; color:#eaeaea; cursor:pointer;
}
.navbar .lang-menu li:hover{ background:#1f1f1f; }

.nav-links .lang-dropdown { margin-left:auto; } /* schiebt den Schalter ganz nach rechts */

.hamburger {
  display: none !important;
}


.community-link { position: relative; }
.community-submenu {
  display: none;
  position: absolute;
  background: #222;
  padding: 0.5rem;
  border-radius: 4px;
  list-style: none;
  min-width: 160px;
  z-index: 1000;
}
.community-submenu a {
  color: #f1f1f1;
  text-decoration: none;
  display: block;
  padding: 0.25rem 0.5rem;
}
.community-link:hover .community-submenu { display: block; }
@media (min-width: 768px) {
  .community-link:hover .community-submenu { display: block !important; }
}

.server-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  min-height: 100px;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.3s;
  background: #1a1a1a;
  border: 1px solid #4a4a70;


}
.server-card img {
  flex: 0 0 300px;
  max-height: 80px;
  width: 100%;
  object-fit: contain;
  border-radius: 4px;
  background: #000;
}
.server-card > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.server-card h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.3rem;
  color: #fff;
}
.server-card p {
  font-size: 0.8rem;
  margin: 0.2rem 0;
  color: #ccc;
}
.server-card .tags {
  margin: 0.3rem 0;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.server-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(46,204,113,0.4);
}
.server-card.spotlight {
background: linear-gradient(145deg, #3e350a, #5a440f);
box-shadow: 0 0 12px rgba(241,196,15,0.6); /* satteres Goldgelb */

  border: 1px solid #4a4a70;
}
.server-card.top {
  background: linear-gradient(145deg, #243850, #305070);
  box-shadow: 0 0 12px rgba(52,152,219,0.5); 0 0 6px rgba(52,152,219,0.4);
  border: 1px solid #4a4a70;
}
.server-card.spotlight:hover {
  box-shadow: 0 0 12px rgba(241,196,15,0.8);
}
.server-card.top:hover {
  box-shadow: 0 0 12px rgba(52,152,219,0.8);
}



.section-box {
  background: #1a1a1a;
  border: 1px solid #4a4a70;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);

}

.info-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}
.info-table th, .info-table td {
  padding: 0.9rem 1.2rem;
  text-align: left;
  background: #1a1a1a;
  border-bottom: 1px solid #2c2c2c;
}
.info-table th {
  background: #2c2c2c;
  color: #2ecc71;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.info-table tr:hover td { background: #222; }

.cta-button {
  background: transparent;
  color: #2ecc71;
  border: 1px solid #2ecc71;
  font-weight: normal;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  transition: all 0.2s;
  font-size: 0.8rem;
  align-self: flex-start;
  display: inline-block;
  text-decoration: none;
  margin-top: 1rem;
}
.cta-button:hover {
  background: #2ecc71;
  color: #121212;
  font-weight: bold;
}

.tag {
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: #1a1a1a;
  color: #2ecc71;
  border: 1px solid #2ecc71;
  margin: 0.1rem 0.1rem 0 0;
}

#server-detail .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

#server-detail .tag {
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #2ecc71;
  color: #121212;
  font-weight: bold;
  display: inline-block;
  white-space: nowrap;
}

h3 {
  margin: 1.5rem 0 0.5rem;
}

.hidden { display: none; }

/* ▼▼▼ SHIM um einzelnes '}' zu balancieren (nichts gelöscht) ▼▼▼ */
@supports (display:block) {
/* ▲▲▲ */
}

}

/* === Cluster === */
.cluster-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cluster-fields {
  display: flex;
  gap: 1rem;
  flex-grow: 1;
}

.cluster-fields input[type="text"],
.cluster-fields select {
  background-color: #2c2c2c;
  color: #f1f1f1;
  border: none;
  padding: 0.8rem;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}

.cluster-row button.remove-cluster-row {
  background: none;
  color: #e74c3c;
  font-size: 1.4rem;
  border: none;
  cursor: pointer;
  padding: 0 0.5rem;
  transition: color 0.2s;
  flex-shrink: 0;
}

.cluster-row button.remove-cluster-row:hover {
  color: #ff6b6b;
}
/* === Direktlinks Buttons === */
.direct-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}
.link-button {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  min-width: 150px;
  transition: background-color 0.3s ease;
  font-size: 0.9rem;
}

.link-button.discord {
  background-color: #5865F2;
  color: #fff;
}

.link-button.discord:hover {
  background-color: #4752C4;
}

.link-button.website {
  background-color: #2ecc71;
  color: #121212;
}

.link-button.website:hover {
  background-color: #27ae60;
}
.status-online {
  color: #2ecc71;
  font-weight: bold;
}

.status-offline {
  color: #e74c3c;
  font-weight: bold;
}

.status-error {
  color: #f39c12;
  font-weight: bold;
}

.live-status {
  font-style: italic;
  color: #aaa;
  margin-top: 0.3rem;
}

.vote-counter {
  font-size: 0.85rem;
  color: #ccc;
  white-space: nowrap;
}



    #server-detail h1 {
      font-size: 2rem;
      margin-bottom: 0.5rem;
    }

    #server-detail .short-description {
      color: #bbb;
      font-style: italic;
      margin-bottom: 1rem;
    }

    #server-detail .section-box {
  background: #1a1a1a;
  border: 1px solid #4a4a70;
      border-radius: 10px;
      padding: 1.5rem;
      margin-bottom: 2rem;
      box-shadow: 0 0 10px rgba(0,0,0,0.2);
    }

    #server-detail h2 {
      color: #2ecc71;
      margin-top: 0;
      margin-bottom: 1rem;
      font-size: 1.4rem;
      border-bottom: 1px solid #2ecc71;
      padding-bottom: 0.4rem;
    }

    #server-detail h3 {
      font-size: 1.1rem;
      margin-top: 2rem;
      margin-bottom: 0.6rem;
      color: #9be5b4;
    }

    #server-detail .tags {
      margin-bottom: 2rem;
    }

    #server-detail .cta-button {
      margin-top: 3rem;
      display: inline-block;
    }

    .info-table {
      margin-bottom: 1rem;
    }

    #server-detail ul {
      margin-left: 1.2rem;
    }












/* === NEUE NAVBAR STRUKTUR === */



.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
  background: #1b1b1b;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* dunkler Schatten */
  margin-bottom: 20px;
}




/* === LOGO === */
.logo a {
  font-size: 1.8rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #2ecc71;
  text-shadow: 0 0 10px #2ecc71;
  letter-spacing: 1px;
  text-decoration: none;
}

/* === NAVIGATION === */
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  justify-content: center;
  flex: 1;
  margin: 0;
  padding: 0;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: #f1f1f1;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.4rem 0.6rem;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #2ecc71;
}

.navbar::after {
  content: "";
  display: block;
  height: 8px;
  background: linear-gradient(to bottom, rgba(46,204,113,0.2), rgba(0,0,0,0));
}


.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* === COMMUNITY DROPDOWN === */
.community-link {
  position: relative;
}

.community-submenu {
  position: absolute;
  top: 130%;
  left: 0;
  background: #121212;
  border: 1px solid #2ecc71;
  border-radius: 6px;
  min-width: 200px;
  padding: 0.5rem 0;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.community-submenu.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.community-submenu li {
  margin: 0;
}

.community-submenu a {
  color: #f1f1f1;
  padding: 0.5rem 1rem;
  display: block;
  text-decoration: none;
  transition: background 0.2s;
}

.community-submenu a:hover {
  background-color: #2ecc71;
  color: #121212;
}


.logo a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  color: #2ecc71;
  text-shadow: 
    0 1px 0 #000,
    0 2px 0 #000,
    0 3px 3px rgba(0,0,0,0.5);
  letter-spacing: 1px;
}







/* === Serverliste-Stil unterhalb Navbar === */

main.server-list {
  max-width: 960px;
  margin: 2rem auto;
  padding: 1rem 2rem;
  background: #181818;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}





.search-filter-bar input[type="text"] {
  background: #121212;
  border: 1px solid #444;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  color: #f1f1f1;
  width: 100%;
}

.section-box {
  background: #1b1b1b;
  padding: 1.5rem;
  border: 1px solid #333;
  border-radius: 8px;
  margin-bottom: 2rem;
}





/* Filter-Knöpfe */
.tag-filter-button {
  background: #121212;
  border: 1px solid #2ecc71;
  color: #2ecc71;
  border-radius: 16px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag-filter-button:hover,
.tag-filter-button.active {
  background: #2ecc71;
  color: #121212;
}

/* Aktive Filtertext */
#active-filter-info {
  font-size: 0.85rem;
  font-style: italic;
  color: #aaa;
}

/* Fallback für Lade-Fehler oder keine Treffer */
.server-section p {
  padding: 1rem;
  color: #999;
  font-style: italic;
}

/* === NAVBAR + LANGUAGE PILL — OVERRIDES (ANS ENDE DER DATEI) === */

/* Navbar */
.navbar{
  position:sticky; top:0; z-index:1000;
  display:flex; align-items:center; gap:2rem;
  padding:12px 24px;
  background:#151515;
  border-bottom:1px solid #242424;
  box-shadow:0 6px 16px rgba(0,0,0,.35);
}

/* Logo */
.navbar .logo{ margin-right:auto; }
.navbar .logo a{
  font-family:'Bebas Neue',sans-serif;
  font-size:1.6rem; font-weight:700; letter-spacing:1px;
  color:#2ecc71; text-decoration:none;
  text-shadow:0 0 10px rgba(46,204,113,.6);
}

/* Links */
.navbar .nav-links{
  display:flex; align-items:center; gap:2rem;
  list-style:none; margin:0; padding:0; flex:1;
}
.navbar .nav-links a{
  color:#f1f1f1; text-decoration:none;
  font-weight:700; font-size:1rem; letter-spacing:.2px;
  padding:.35rem .2rem; transition:color .15s ease;
}
.navbar .nav-links a:hover,
.navbar .nav-links a.active{ color:#2ecc71; }

/* Language pill rechts */
.navbar .nav-links .lang-dropdown{ margin-left:auto; position:relative; }

/* Pill-Button */
.lang-btn{
  display:flex; align-items:center; gap:.55rem;
  padding:.55rem 1rem;
  border-radius:9999px; border:1px solid rgba(255,255,255,.35);
  background:#1a1a1a; color:#eaeaea; font-weight:800;
  cursor:pointer; line-height:1;
  box-shadow:0 1px 0 rgba(255,255,255,.06) inset;
}
.lang-btn:hover{ background:#202020; }
.lang-btn .flag{ font-size:1.05rem; }
.lang-btn::after{ content:"▾"; font-size:.8rem; opacity:.85; }

/* Dropdown */
.lang-menu{
  position:absolute; right:0; top:calc(100% + 10px);
  min-width:200px; padding:.4rem; display:none;
  background:#0f0f0f; border:1px solid #2b2b2b; border-radius:12px;
  box-shadow:0 16px 34px rgba(0,0,0,.45); z-index:9999;
}
.lang-dropdown.open .lang-menu{ display:block; }
.lang-menu li{
  display:flex; align-items:center; gap:.55rem;
  padding:.6rem .7rem; border-radius:8px; color:#eaeaea; cursor:pointer;
}
.lang-menu li:hover{ background:#1c1c1c; }

/* Mobile Feinschliff */
@media (max-width:720px){
  .navbar .nav-links{ gap:1.2rem; }
  .lang-menu{ right:auto; left:0; }
}

/* =========================================================
   📱 MOBILE NAVBAR & KARTEN – OVERRIDES (NICHTS GELÖSCHT)
   ========================================================= */

/* Hamburger auf Mobile erzwingen (überschreibt earlier !important) */
@media (max-width: 900px){
  .hamburger{
    display:block !important;
    cursor:pointer;
    user-select:none;
    padding:.4rem .6rem;
    border:1px solid #2b2b2b;
    border-radius:8px;
    background:#191919;
    color:#f1f1f1;
  }
  .navbar{ position:relative; z-index:1001; }

  /* Dropdown standardmäßig verstecken */
  .nav-links{
    display:none;                /* auf Mobile versteckt */
    position:absolute;
    top:100%; left:0; right:0;
    background:#181818;
    border:1px solid #2b2b2b;
    border-top:none;
    border-radius:0 0 12px 12px;
    padding:.5rem 0;
    box-shadow:0 16px 28px rgba(0,0,0,.45);
    flex-direction:column;
    gap:.25rem;
    max-height:65vh; overflow:auto;
  }
  /* sichtbar wenn .show per JS gesetzt */
  .nav-links.show{
    display:flex !important;
  }
  .nav-links a{
    display:block;
    padding:.65rem 1rem;
    border-top:1px solid rgba(255,255,255,.05);
  }
}

/* Karten responsiv (Bilder kleiner/ausblenden) */
@media (max-width: 720px){
  .server-card{ gap:.75rem; padding:.75rem; }
  .server-card img{ flex:0 0 140px; max-height:60px; }
}
@media (max-width: 420px){
  .server-card{
    display:grid;
    grid-template-columns:1fr;
    grid-template-rows:auto;
  }
  .server-card img{ display:none; }
  .server-card h2{ font-size:1rem; }
}

