/* web-mm Ad-Sidebar — via Nginx sub_filter in alle public Services injiziert */

#wmm-ad-sidebar {
    position: fixed;
    top: 80px;
    right: 0;
    width: 160px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 8px 12px;
    background: rgba(255, 255, 255, 0.95);
    border-left:   1px solid #e0e0e0;
    border-top:    1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 6px 0 0 6px;
    box-shadow: -2px 2px 8px rgba(0,0,0,0.08);
    font-family: sans-serif;
    transition: transform 0.3s ease;
}

#wmm-ad-sidebar.wmm-hidden {
    transform: translateX(160px);
}

#wmm-ad-sidebar .wmm-ad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

#wmm-ad-sidebar .wmm-close-btn {
    cursor: pointer;
    color: #bbb;
    font-size: 16px;
    line-height: 1;
    padding: 0 2px;
    border: none;
    background: none;
}

#wmm-ad-sidebar .wmm-close-btn:hover {
    color: #666;
}

#wmm-ad-sidebar .wmm-ad-slot {
    width: 144px;
    min-height: 100px;
    background: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wmm-ad-reopen {
    position: fixed;
    top: 80px;
    right: 0;
    z-index: 9998;
    display: none;
    width: 22px;
    height: 50px;
    background: rgba(255,255,255,0.9);
    border-left:   1px solid #e0e0e0;
    border-top:    1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 4px 0 0 4px;
    box-shadow: -2px 0 6px rgba(0,0,0,0.08);
    cursor: pointer;
    writing-mode: vertical-rl;
    font-size: 9px;
    color: #aaa;
    text-align: center;
    align-items: center;
    justify-content: center;
}

#wmm-ad-reopen:hover {
    color: #555;
    background: #fff;
}

/* Auf kleinen Bildschirmen ausblenden */
@media (max-width: 900px) {
    #wmm-ad-sidebar,
    #wmm-ad-reopen {
        display: none !important;
    }
}
