:root {
    --sidepanel-w: 300px;
    --max-content: 1200px;
    --nav-h: 60px; /* Falls vorhanden, sonst auf 0 setzen */
    --accent-color: #3498db;
    --header-bg: #f8f9fa; /* Die leicht abgesetzte Farbe */
}

/* Wrapper & Overlay Logik von dir */
.sidepanel-wrapper {
    position: fixed;
    top: var(--nav-h);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-content);
    height: 0;
    z-index: 2000;
    pointer-events: none;
}

.sidepanel-overlay {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-content);
    height: 100vh;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(2px);
    display: none;
    z-index: 1500;
}

.sidepanel-overlay.active { display: block !important; }

/* Die Sidebar Box */
.sidepanel {
    position: absolute;
    top: 0;
    right: 0;
    width: var(--sidepanel-w);
    background: #ffffff;
    pointer-events: auto;
    border-bottom-left-radius: 10px;
    box-shadow: -5px 5px 20px rgba(0,0,0,0.12);
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    
    /* Flexbox für internen Aufbau */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Damit der Header-Radius oben passt */
    padding: 0; /* Padding wird in die Unterelemente verlagert */
}

.sidepanel.active {
    transform: translateX(0);
    opacity: 1;
}

/* --- INNEN-DESIGN --- */

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    color: #888;
}

/* Header Bereich */
.user-profile-header {
    background-color: var(--header-bg);
    padding: 40px 25px 25px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #eee;
}

.logo-circle {
    width: 45px;
    height: 45px;
    background: var(--accent-color);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.user-info { display: flex; flex-direction: column; }
.username { font-weight: 700; color: #333; font-size: 1rem; }
.user-status { font-size: 0.75rem; color: #27ae60; }

/* Menü Liste */
.menu-content {
    padding: 5px 0;
}

.menu-content ul { list-style: none; padding: 0; margin: 0; }

.menu-content li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 25px;
    text-decoration: none;
    color: #555;
    transition: 0.2s;
}

.menu-content li a:hover {
    background: #f0f7ff;
    color: var(--accent-color);
}

.material-symbols-outlined {
    font-size: 22px;
}

/* Footer Bereich */
.sidepanel-footer {
    margin-top: auto; /* Schiebt Footer nach unten */
    padding: 0 0px 0px 0px;
}

.divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 10px 0 20px 0;
}

.footer-placeholder {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #bbb;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.logout-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #d9534f !important;
    text-decoration: none;
    font-weight: 600;
}

.sp-help-link {
    text-decoration: none;
    padding: 3px 3px 3px 3px;
   }

a.pill-icon-btn {
    text-decoration: none;
}
