body {
    font-family: 'Poppins', sans-serif;
    background-color: #1a1f29;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.top-bar {
    width: 100%;
    height: 50px;
    background-color: #161A22;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
	border-bottom: 5px solid #e22345;
}

.top-bar .menu-toggle {
    font-size: 1.5em;
    color: #e0e0e0;
    cursor: pointer;
}

.top-bar .right-section {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.top-bar .social-buttons {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.top-bar .social-buttons a {
    margin-left: 10px;
    color: #e0e0e0;
    font-size: 1.5em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-bar .social-buttons a.discord {
    color: #7289DA;
}

.top-bar .social-buttons a.twitter {
    color: #1DA1F2;
}

.top-bar .social-buttons a:hover {
    color: #fff;
}

.top-bar .profile-menu {
    display: flex;
    align-items: center;
}

.top-bar .profile-menu img.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.top-bar .profile-menu .dropdown {
    position: relative;
}

.top-bar .profile-menu .dropdown-content {
    display: none;
    position: absolute;
    background-color: #e22345; /* Blau */
    right: 0;
    min-width: 250px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 10px;
    color: #fff;
    padding: 10px;
}

.top-bar .profile-menu .dropdown-content .user-info {
    padding-bottom: 10px;
    border-bottom: 1px solid #fff;
    margin-bottom: 10px;
}

.top-bar .profile-menu .dropdown-content .user-info strong {
    display: block;
    font-size: 1.2em;
}

.top-bar .profile-menu .dropdown-content a {
    color: #fff;
    padding: 10px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.top-bar .profile-menu .dropdown-content a:hover {
    background-color: #FFC600;
}

.top-bar .profile-menu .dropdown:hover .dropdown-content {
    display: block;
}

.sidebar {
    width: 250px;
    background-color: #0d1014;
    height: 100vh;
    position: fixed;
    top: 50px; /* angepasst für die Top-Bar */
    left: 0;
    padding-top: 10px;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: all 0.3s;
    overflow-y: auto;
}

.sidebar .sidebar-section {
    margin-bottom: 20px;
}

.sidebar .sidebar-section h6 {
    padding-left: 15px;
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 0.9em;
    font-weight: 600; /* fett */
    color: #888;
    text-transform: uppercase;
}

.sidebar a {
    padding: 10px 15px; /* weniger padding */
    text-decoration: none;
    font-size: 0.9em;
    color: #e0e0e0;
    display: block;
    transition: all 0.3s;
    border-bottom: 1px solid #161c23;
}

.sidebar a:hover {
    background-color: #E22345;
    color: #fff;
}

.sidebar .dropdown-item {
    padding-left: 25px;
    border-left: 3px solid #E22345;
    font-size: 0.85em;
}

.content {
    margin-left: 280px;
    margin-right: 20px;
    padding: 50px;
    flex-grow: 1;
    transition: margin-left 0.3s;
    color: #e0e0e0;
    margin-top: 70px;
    background-color: #0d1014;
}

.collapsed-sidebar .sidebar {
    margin-left: -250px;
}

.collapsed-sidebar .content {
    margin-left: 0;
}

/* Scrollbar Styling */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: #111;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 10px;
    border: 2px solid #111;
}

/* Optimierung des Scrollens */
.sidebar {
    overflow-y: scroll;
    max-height: calc(100vh - 50px); /* Höhe angepasst an Top-Bar */
}


@media (max-width: 767px) {
    .sidebar {
        position: absolute;
        height: 100%;
        width: 250px;
        margin-left: -250px;
        top: 50px;
    }
    .sidebar.open {
        margin-left: 0;
    }
    .content {
        margin-left: 0;
    }
    .toggle-btn {
        display: block;
        position: fixed;
        left: 15px;
        top: 15px;
        z-index: 1100;
    }
}
