
/* ===============================
   ZeroLab Mobile Navigation
   =============================== */

/* Root overlay */
.zl-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.zl-mobile-menu.is-open { display: block; }

.zl-mobile-menu::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
}

/* Panel */
.zl-mobile-panel{
  position:absolute;
  top:0; right:0;
  height:100%;
  width:min(92vw, 420px);
  background:#0c1a21;
  border-left:1px solid rgba(230,179,50,.28);
  box-shadow: 0 25px 80px rgba(0,0,0,.6);
  transform: translateX(110%);
  transition: transform .25s ease;
  display:flex;
  flex-direction:column;
}
.zl-mobile-menu.is-open .zl-mobile-panel{ transform: translateX(0); }

/* Header */
.zl-mobile-panel-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.zl-mobile-title{
  color:#e6b332;
  font-weight:700;
  letter-spacing:.08em;
  font-size:12px;
  text-transform:uppercase;
}
.zl-mobile-close{
  appearance:none;
  border:1px solid rgba(230,179,50,.28);
  background: rgba(255,255,255,.04);
  color:#fff;
  border-radius:12px;
  width:44px; height:44px;
  display:grid; place-items:center;
  cursor:pointer;
}

/* Body */
.zl-mobile-panel-body{
  padding:12px 12px 18px;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
}

/* Menu list */
.zl-menu-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.zl-menu-item{
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  overflow:hidden;
}

.zl-menu-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.zl-menu-link{
  flex:1;
  display:flex;
  align-items:center;
  padding:14px;
  color:#eaeaea;
  text-decoration:none;
  font-size:16px;
}

.zl-menu-item:hover{
  border-color: rgba(230,179,50,.35);
  background: rgba(230,179,50,.08);
}

/* Submenu */
.zl-subtoggle{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  background:transparent;
  border:0;
  border-left:1px solid rgba(255,255,255,.08);
  color:#fff;
  cursor:pointer;
}
.zl-subtoggle span{
  transition: transform .2s ease;
}

.zl-submenu{
  max-height:0;
  overflow:hidden;
  transition:max-height .25s ease;
  border-top:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
}

.zl-menu-item.is-expanded .zl-submenu{
  max-height:480px;
}
.zl-menu-item.is-expanded .zl-subtoggle span{
  transform: rotate(180deg);
}

/* Desktop: never show */
@media (min-width: 577px) {
  .zl-mobile-menu { display: none !important; }
}
  /* 1) Mobile-Button standardmäßig aus */
.zl-mobile-nav {
  display: none !important;
}

/* 2) Desktop-Navigation auf Mobile aus (optional aber sinnvoll) */
@media (max-width: 576px) {
  header nav {
    display: none !important;
  }

  /* 3) Mobile-Button auf Mobile an */
  .zl-mobile-nav {
    display: flex !important;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    border-radius: 12px;
    border: 1px solid rgba(230,179,50,0.35);
    background: rgba(230,179,50,0.15);
    cursor: pointer;
  }

  .zl-mobile-nav svg {
    width: 48px;
    height: 48px;
  }
}

/* optional: auf großen Screens sicher aus */
@media (min-width: 577px) {
  .zl-mobile-nav { display: none !important; }
}

