/* ==================== HAMBURGER ==================== */
.hamburger {
  background: none;
  border: none;
  font-size: 15px;
 color: var(--text);
  padding: 4px 8px;
  cursor: pointer;
 
  z-index: 900;
  position: relative;
}

.hamburger:hover {
  color: var(--gold);
}

.username-badge {
    font-size: 0.95rem;          
    color: #610000;             
    font-weight: 400;
    margin-left: -5px;
    align-self: flex-start;       
    letter-spacing: -0.5px;
    opacity: 0.9;
}



/* ==================== MOBILE SLIDE MENU ==================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 350px;
  height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  box-shadow: rgba(73, 73, 73, 0.4) 0px 0px 0px 2px, rgba(6, 24, 44, 0.65) 0px 4px 6px -1px, rgba(165, 164, 164, 0.08) 0px 1px 0px inset;
  z-index: 9999 !important;
  transition: right 0.45s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-y: auto;
  font-size: 1rem; 
}

.mobile-menu.active {
  right: 0;
}

/* Pointer Events Schutz */
.mobile-menu.active ~ * {
  pointer-events: none;
 
}

.mobile-menu.active,
.mobile-menu-header,
.mobile-menu-content,
.mobile-menu-inner {
  pointer-events: all;
}

/* Inner Struktur */
.mobile-menu-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .mobile-menu {
  
  width: 100%;
  
}
  }
/* ==================== MOBILE MENU HEADER ==================== */
.mobile-menu-header {
  padding: 10px 12px;
   border: 1px solid var(--bg);
  display: flex;
  align-items: flex-start;        /* wichtig für vertikale Ausrichtung */
  justify-content: space-between;
  background-color: var(--card-bg);
 
  position: sticky;
  top: 0;
  z-index: 2;
}

/* Linke Seite mit Logo + Zeit darunter */
.header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.logo-circle {
  font-size: 1.45rem;
  line-height: 1;
  color: var(--text);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 1px;
 
  color: var(--gold);
}

/* Uhrzeit unter dem Logo */
.header-time {
  font-size: 0.8rem;
 
  color: var(--text);

}



/* Inhalt */
.mobile-menu-content {
  padding: 14px 12px 30px;
  flex: 1;
}

/* Sections */
.mobile-nav-section {
  margin-bottom: 22px;
}

.mobile-nav-section h4 {
 background-color: var(--header-bg);
  color: var(--gold);
  font-size: 0.72rem;           /* war 0.93rem */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  margin-bottom: 10px;
  padding: 10px;
  border-bottom: 1px solid var(--bg);
}
.mobile-nav-section h4:hover {
 background-color: var(--header-bg);
  color: var(--logo);
  font-size: 0.72rem;           /* war 0.93rem */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  padding: 10px;
  border-bottom: 1px solid var(--bg);
}

.mobile-nav-section a {
  display: block;
  padding: 8px 8px;
  color: var(--text);
  font-size: 0.9rem;           
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--bg);
  transition: all 0.25s ease;
}
.mobile-nav-section a:active {
  display: block;
  padding: 8px 8px;
  color: var(--logo);
  font-size: 0.9rem;           
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--bg);
  transition: all 0.25s ease;
}

.mobile-nav-section a:last-child {
  border-bottom: none;
  
}

.mobile-nav-section a:hover {
 color: var(--logo);
 font-weight: 600;
  
}

/* Close Button */
.close-menu {
  background: none;
  border: none;
  font-size: 26px;              /* war 30px */
  color:  var(--gold);
  padding: 4px;
  cursor: pointer;
  line-height: 1;
}

.close-menu:hover {
  color: #a51005;
}


.mobile-nav-section a{
    position: relative;
}

.messages-badge{
    position:absolute;
    right:12px;
    top:50%;
    transform:translateY(-50%);

    min-width:18px;
    height:18px;
    line-height:18px;
    padding:0 6px;

    border-radius:999px;

    background:#dc3545;
    color:#fff;
    font-size:.7rem;
    font-weight:600;
    text-align:center;
}
.messages-badge-menu{
    position:absolute;
    left:25px;
    top:10%;
    transform:translateY(-50%);

   /* Kleiner & perfekter Kreis */
    width: 12px;           /* ← Hauptgröße */
    height: 12px;
    min-width: 12px;
    min-height: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;    /* Besser als 999px */

    background:#960312;
    color:#960312;
    font-size:.7rem;
    font-weight:600;
    text-align:center;
}
/* ==================== NAV-INFO (User-Bereich im Mobile Menu) ==================== */
.nav-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 8px;
     background-color: var(--bg);
    border-radius: 5px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--bg);
}

.profile-pic {
    width: 64px;                  /* leicht kleiner */
    height: 64px;
     border-radius: 12px;
   border: 1px solid var(--bg);
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.12);
  object-fit: cover;
  display: block;
}

.profile-info {
    flex: 1;
    min-width: 0;
    line-height: 1.35;
}

.profile-info strong {
    font-size: 1.05rem;           /* war 1.15rem */
    font-weight: 700;
    color: var(--text);
    display: block;
}

.profile-info span {
    font-size: 0.92rem;           /* war 0.97rem */
     color: var(--text);
    display: block;
    margin-top: 2px;
}

.profile-info small {
    font-size: 0.78rem;           /* war 0.82rem */
    color: var(--text);
    margin-top: 6px;
    display: block;
}

/* Gast-Modus Link schöner */
.profile-info a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

.profile-info a:hover {
    text-decoration: underline;
}


.profile-info a {
    color: var(--text);
    text-decoration: none;
    font-weight: 400;
    font-size: 1.0rem;           /* etwas kleiner als der Strong-Text */
    display: block;
    line-height: 1.25;
    overflow: hidden;
   
    white-space: nowrap;         /* verhindert Zeilenumbruch */
}

.profile-info a:hover {
    text-decoration: none;
}