/* ===== NAV BAR BASIS ===== */
.main-nav {
  width: 100%;
  background-color: var(--navigation-main-background);
  color: white;
  position: sticky;
  top: 0;
  z-index: 50;
}

/* ===== 2-ZEILIGES GRID =====
   Spalten:  [Logo] [Mitte] [Rechts]
   Zeile 1:  Logo  | Trustpilot (spannt 2+3) |
   Zeile 2:  Logo  | Game-Selector           | Nav-Links
*/
.nav-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 10px;
  display: grid;
  grid-template-columns: auto 1fr auto; /* Logo | Mitte | Rechts */
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 6px;
  position: relative;
}

/* Logo links: über beide Zeilen */
.logo { grid-column: 1; grid-row: 1 / span 2; }
.logo img {
  height: 64px;      /* größer erlaubt */
  width: auto;
}

/* TRUSTPILOT – ZEILE 1, ÜBER MITTE+RECHTS, ZENTRIERT */
.trustpilot-box {
  /*grid-column: 2 / 4;*/
  grid-row: 1;
  justify-self: center;
  align-self: center;
  line-height: 1;
  margin-left: 230px;
}

/* GAME-SELECTOR – ZEILE 2, MITTE, ZENTRIERT
   (alte absolute Zentrierung überschreiben) */
.game-selector {
  grid-column: 2;
  grid-row: 2;
  position: static !important;
  left: auto !important;
  transform: none !important;
  justify-self: center;
  margin-left: 240px;
}

/* LINKS – ZEILE 2, RECHTS */
.nav-links {
  grid-column: 3;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-self: end;
  font-size: 14px;
}
.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}
.nav-links a:hover { color: #c48f43; }

/* ===== DROPDOWN / SPIELAUSWAHL (dein Bestand) ===== */
.dropdown button {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.game-dropdown {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 10px;
  background: var(--game-dropdown-background);
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}
.game-dropdown a img { height: 48px; transition: transform 0.2s; }
.game-dropdown a:hover img { transform: scale(1.1); }
.game-dropdown li { border-radius: 8px; list-style: none; padding: 10px; }
.game-dropdown li:hover, .active-game { background-color: #e6ecf3; }

/* ===== SPRACHEN / ICONS (dein Bestand) ===== */
.languages { display: flex; gap: 8px; }
.languages a { font-size: 20px; }

/* ===== MOBILE TOGGLE / MENÜ (dein Bestand) ===== */
.mobile-toggle button {
  font-size: 24px;
  color: white;
  background: none;
  border: none;
}
.mobile-menu {
  position: fixed;
  top: 125px; /* Höhe der Leiste */
  right: 5px;
  width: 180px;
  background-color: var(--navigation-main-background);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9998;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}
.mobile-menu.slide-in { animation: slideIn 0.3s ease forwards; }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}

/* ===== HILFSKLASSEN (dein Bestand) ===== */
.desktop-only {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}
.mobile-only { display: none; }
.hidden { display: none; }
.dropdown-wrapper { position: relative; }

/* ===== RESPONSIVE ===== */
/* === MOBILE: Logo links, Burger rechts, darunter Trustpilot + Game-Selector === */
@media (max-width: 1024px) {
  /* Desktop-Links aus, Mobile-Button an */
  .desktop-only { display: none; }
  .mobile-only  { display: block; }

  /* 1. Zeile: Logo | (leer) | Burger
     2. Zeile: Trustpilot (über volle Breite)
     3. Zeile: Game-Selector (über volle Breite) */
  .nav-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto auto;
    align-items: center;
    row-gap: 8px;
  }

  /* Zeile 1 */
  .logo {
    grid-column: 1; 
    grid-row: 1;
    justify-self: start;
  }
  .mobile-toggle {
    grid-column: 3; 
    /*grid-row: 1;*/
    grid-row: 2;
    justify-self: end;
  }

  /* Zeile 2: Trustpilot mittig */
  .trustpilot-box {
    grid-column: 1 / -1; 
    /*grid-row: 2;*/
    justify-self: center;
    margin-left: 170px;
  }

  /* Zeile 3: Game-Selector mittig (alte absolute Zentrierung deaktivieren) */
  .game-selector {
    grid-column: 1 / -1; 
    /*grid-row: 3;*/
    grid-row: 2;
    justify-self: center;
    position: static !important;
    left: auto !important;
    transform: none !important;
    margin: 0; /* Abstand steuerst du bei Bedarf hier */
  }

  /* Optik-Feinschliff mobil */
  .logo img { height: 52px; }

  /* Dein Dropdown bleibt mittig unter dem Button */
  #game-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    background: var(--game-dropdown-background);
    z-index: 9999;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }
}

