/* ==========================================
   LOGIN-BADGE OBEN LINKS
   ========================================== */

#cl70-badge {
  position: fixed !important;
  top: 20px !important;
  left: 20px !important;
  bottom: auto !important;
  right: auto !important;

  display: flex;
  align-items: center;
  gap: 10px;

  background: #ffffff;
  border: 1px solid #808080;
  border-radius: 10px; /* Systemrundung wie Buttons/Kacheln */
  padding: 8px 16px;
  box-shadow: 9px 9px 12px rgba(0, 0, 0, 0.25);

  font: 600 18px/1.3 Georgia, "Liberation Serif", serif;
  color: #003b78;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  z-index: 99999 !important;

  visibility: hidden; /* Start: unsichtbar, bis /auth-status geladen ist */
}

/* Hover leicht betont */
#cl70-badge:hover {
  background: #f8faff;
  transform: translateY(-1px);
  box-shadow: 11px 11px 14px rgba(0,0,0,0.25);
}

/* ==============================
   AVATAR mit PNG-Icon
   ============================== */

#cl70-badge .avatar {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
  box-shadow: none !important;     /* Schatten komplett entfernt */
}

/* Eingeloggt: grünes Icon */
#cl70-badge .avatar.online {
  background-image: url("https://70-plus.com/wp-content/uploads/2025/11/anonym_green.png");
}

/* Nicht eingeloggt: graues Icon */
#cl70-badge .avatar.offline {
  background-image: url("https://70-plus.com/wp-content/uploads/2025/11/anonym-gray.png");
}

/* Text neben Icon */
#cl70-badge .label {
  user-select: none;
  color: #003b78 !important; /* Systemfarbe */
  font-weight: 600;
}

/* ==========================================
   OVERLAY FÜR ABMELDEN (zentriert)
   ========================================== */

#cl70-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 59, 120, 0.35); /* leicht abgedunkelt */
  display: none;                      /* wird per JS auf flex gesetzt */
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

/* Weißer Kasten in der Mitte */
#cl70-overlay .inner {
  background: #fff;
  border: 1px solid #808080;
  border-radius: 10px;
  box-shadow: 9px 9px 12px rgba(0,0,0,0.25);
  padding: 2rem 2.5rem;
  font: 20px/1.4 Georgia, "Liberation Serif", serif;
  color: #003b78;
  text-align: center;
  max-width: 360px;
  width: 92%;
}

/* auf sehr schmalen Geräten etwas enger */
@media (max-width: 480px) {
  #cl70-overlay .inner {
    padding: 1.5rem 1.25rem;
    font-size: 18px;
  }

  #cl70-overlay .btn-logout {
    width: 100%;
  }
}

/* Button-Reihe */
#cl70-overlay .buttons {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

/* Abmelde-Button */
#cl70-overlay .btn-logout {
  padding: 10px 24px;
  background: #003b78;
  color: #fff;
  font: 600 18px/1.2 Georgia, "Liberation Serif", serif;
  border: 1px solid #808080;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 9px 9px 12px rgba(0,0,0,0.25);
  transition: all 0.15s ease-in-out;
}

#cl70-overlay .btn-logout:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
