/* Header- und Menülayout */
.site-header,
.site-header .header-inner{
    overflow: visible !important;
}

.site-header .header-inner{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:16px !important;
    min-height:72px !important;
}

.site-header .brand{
    min-width:0 !important;
    flex:1 1 auto !important;
}

.site-header .menu-toggle{
    position:relative !important;
    top:auto !important;
    right:auto !important;
    left:auto !important;
    margin-left:auto !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    white-space:nowrap !important;
    z-index:7001 !important;
}

/* Sehr gezielt: Dieses Menü ist NUR geöffnet, wenn JS .open setzt. */
.site-header #accountMenu,
.site-header .account-menu:not(.open){
    display:none !important;
    visibility:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
}

.site-header #accountMenu.open,
.site-header .account-menu.open{
    display:grid !important;
    visibility:visible !important;
    opacity:1 !important;
    pointer-events:auto !important;
    position:absolute !important;
    top:calc(100% + 10px) !important;
    right:18px !important;
    left:auto !important;
    width:min(520px, calc(100vw - 24px)) !important;
    max-width:none !important;
    grid-template-columns:1fr 1fr !important;
    gap:8px !important;
    padding:12px !important;
    border-radius:22px !important;
    background:rgba(15,23,42,.98) !important;
    border:1px solid rgba(255,255,255,.14) !important;
    box-shadow:0 26px 70px rgba(0,0,0,.48) !important;
    z-index:7000 !important;
}

.site-header #accountMenu .account-summary{
    grid-column:1 / -1 !important;
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:8px !important;
}

.site-header #accountMenu .menu-section{
    display:contents !important;
}

.site-header #accountMenu a,
.site-header #accountMenu span{
    display:block !important;
    width:auto !important;
    min-width:0 !important;
    text-align:center !important;
    white-space:normal !important;
    line-height:1.25 !important;
    color:#fff !important;
    background:rgba(255,255,255,.09) !important;
    border:1px solid rgba(255,255,255,.14) !important;
    border-radius:14px !important;
    padding:10px 12px !important;
    text-decoration:none !important;
    font-weight:850 !important;
}

.site-header #accountMenu a:hover{
    background:linear-gradient(135deg,#ff7a18,#ff2d55) !important;
}

/* Gast-Links weg von oben links/absolutem Overlay. */
.site-header .guest-links{
    position:relative !important;
    top:auto !important;
    right:auto !important;
    left:auto !important;
    margin-left:auto !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:10px !important;
    z-index:7001 !important;
    flex:0 0 auto !important;
}

.site-header .guest-links a{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    white-space:nowrap !important;
    border-radius:999px !important;
    padding:10px 14px !important;
    color:#fff !important;
    text-decoration:none !important;
    font-weight:900 !important;
    background:linear-gradient(135deg,#ff7a18,#ff2d55) !important;
    border:1px solid rgba(255,255,255,.14) !important;
}

@media(max-width:700px){
    .site-header .header-inner{
        flex-wrap:wrap !important;
        align-items:center !important;
        min-height:auto !important;
        padding:12px !important;
    }

    .site-header .brand{
        flex:1 1 calc(100% - 110px) !important;
    }

    .site-header .brand strong{
        font-size:17px !important;
    }

    .site-header .brand small{
        display:none !important;
    }

    .site-header .menu-toggle{
        margin-left:auto !important;
        padding:9px 12px !important;
    }

    .site-header #accountMenu.open,
    .site-header .account-menu.open{
        top:calc(100% + 6px) !important;
        left:10px !important;
        right:10px !important;
        width:auto !important;
        grid-template-columns:1fr !important;
        max-height:calc(100vh - 95px) !important;
        overflow:auto !important;
    }

    .site-header #accountMenu .account-summary{
        grid-template-columns:1fr !important;
    }

    .site-header .guest-links{
        width:100% !important;
        margin-left:0 !important;
        justify-content:stretch !important;
        gap:8px !important;
    }

    .site-header .guest-links a{
        flex:1 1 0 !important;
        padding:10px 8px !important;
        font-size:13px !important;
    }
}


/* Header quick buttons: kompakt, sauber und auch mit Bestand-Button */
.header-quick-links{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
    flex-wrap:wrap!important;
    flex:0 1 auto!important;
}
.header-quick-btn{
    min-height:40px!important;
    padding:9px 13px!important;
    border-radius:999px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;
    color:#fff!important;
    text-decoration:none!important;
    font-weight:900!important;
    font-size:13px!important;
    letter-spacing:.01em!important;
    background:linear-gradient(135deg,rgba(255,122,24,.92),rgba(255,45,85,.86))!important;
    border:1px solid rgba(255,255,255,.16)!important;
    box-shadow:0 12px 28px rgba(0,0,0,.24)!important;
}
.header-quick-btn:hover{transform:translateY(-1px);filter:brightness(1.06)}
.header-quick-btn.stock-link{background:linear-gradient(135deg,rgba(251,191,36,.92),rgba(255,122,24,.88))!important;color:#111827!important;}
@media(max-width:700px){
    .header-quick-links{order:3;width:100%;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;}
    .header-quick-btn{width:100%!important;padding:9px 6px!important;font-size:12px!important;}
}

/* Buttons in der Schnellnavigation sollen wie Links aussehen */
button.header-quick-btn{
    appearance:none!important;
    -webkit-appearance:none!important;
    font-family:inherit!important;
    border:1px solid rgba(255,255,255,.16)!important;
    cursor:pointer!important;
}
