/* Container Styles */
    .sidebar-modern {
        padding: 20px 15px;
        color: #ddd;
        font-family: 'Segoe UI', sans-serif;
    }

    /* Profil Box */
    .profile-box {
        /* Standardmäßig Flex, wird aber unten durch deine Regeln überschrieben */
        display: flex;
        align-items: center;
        gap: 15px;
        padding-bottom: 15px;
        margin-bottom: 5px;
    }
    .profile-avatar {
        width: 50px; height: 50px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid rgba(255,255,255,0.1);
    }
    .profile-name {
        font-weight: bold;
        color: white;
        font-size: 1.05em;
        margin-bottom: 2px;
    }
    .profile-action {
        font-size: 0.8em;
        color: #888;
        cursor: pointer;
        display: flex; align-items: center; gap: 5px;
        transition: 0.2s;
    }
    .profile-action:hover { color: #4285F4; }
    .profile-action i { transition: 0.3s; }

    /* Submenu (Dropdown) */
    .user-submenu {
        background: rgba(0,0,0,0.2);
        border-radius: 10px;
        margin-bottom: 15px;
        overflow: hidden;
        border: 1px solid rgba(255,255,255,0.05);
    }
    .sub-link {
        display: flex; align-items: center; gap: 10px;
        padding: 10px 15px;
        color: #aaa;
        text-decoration: none;
        font-size: 0.9em;
        transition: 0.2s;
    }
    .sub-link:hover { background: rgba(255,255,255,0.05); color: white; }
    .sub-link.logout:hover { color: #e74c3c; background: rgba(231, 76, 60, 0.1); }
    .sub-link.login:hover { color: #2ecc71; background: rgba(46, 204, 113, 0.1); }

    .menu-divider {
        height: 1px;
        background: rgba(255,255,255,0.05);
        margin: 10px 0 20px 0;
    }

    /* Navigation Items */
    .nav-item {
        display: flex; align-items: center; gap: 15px;
        padding: 12px 15px;
        border-radius: 12px;
        text-decoration: none;
        color: #ccc;
        transition: all 0.2s ease;
        margin-bottom: 5px;
    }
    
    .icon-box {
        width: 24px; text-align: center; font-size: 1.2em;
    }

    /* Hover State */
    .nav-item:hover {
        background: rgba(255,255,255,0.08);
        color: white;
        transform: translateX(3px);
    }
    .nav-item:hover .icon-box { color: #4285F4; }

    /* Active State */
    .nav-item.active {
        background: linear-gradient(90deg, rgba(66, 133, 244, 0.15) 0%, rgba(66, 133, 244, 0) 100%);
        color: #4285F4;
        border-left: 3px solid #4285F4;
        font-weight: 600;
    }

    /* ------------------------------------------------ */
    /* DEINE SIDEBAR TOGGLE LOGIK                       */
    /* ------------------------------------------------ */
    
    /* Standardmäßig ausblenden (wenn Sidebar zu ist) */
    .sidebar .profile-box {
        display: none;
    }
    .sidebar .menu-divider {
        display: none;
    }

    /* Einblenden, wenn Checkbox aktiv ist (Sidebar offen) */
    #check:checked ~ .sidebar .profile-box {
        display: flex;
    }
    #check:checked ~ .sidebar .menu-divider {
        display: flex;
    }