.frontend-container {
    display: flex;
    min-height: 80vh;
}

.frontend-sidebar {
    width: 280px;
    min-width: 280px;
    padding: 20px 0;
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
}

.frontend-main-content {
    flex: 1;
    padding: 20px;
    width: calc(100% - 280px);
}

/* Wenn keine Sidebar vorhanden ist, nimmt der Hauptinhalt die volle Breite ein */
.frontend-container:not(:has(.frontend-sidebar)) .frontend-main-content {
    width: 100%;
}

/* Alternative Klasse für Hauptinhalt ohne Sidebar */
.frontend-main-content.no-sidebar {
    width: 100%;
    padding: 20px;
}

/* Anpassungen für VerticalMenuRenderer in der Sidebar */
.frontend-sidebar .vertical-menu {
    padding: 0 15px;
}

.frontend-sidebar .vertical-menu .menu-link {
    padding: 10px 15px;
    border-left: 3px solid transparent;
}

.frontend-sidebar .vertical-menu .menu-link:hover {
    background-color: #e9ecef;
    border-left-color: #adb5bd;
}

.frontend-sidebar .vertical-menu .menu-link.active {
    background-color: #e3f2fd;
    border-left-color: #0d6efd;
    color: #0d6efd;
    font-weight: 600;
}

.frontend-sidebar .vertical-menu .menu-item-level-0 {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.frontend-sidebar .vertical-menu .menu-item-level-1 {
    padding-left: 15px;
}

.frontend-sidebar .vertical-menu .menu-item-level-2 {
    padding-left: 30px;
    font-size: 0.875rem;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-item {
    margin-bottom: 2px;
}

.sidebar-link {
    display: block;
    padding: 10px 15px;
    color: #495057;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    background-color: #e9ecef;
    border-left-color: #adb5bd;
    text-decoration: none;
}

.sidebar-link.active {
    background-color: #e9ecef;
    border-left-color: #0d6efd;
    font-weight: 500;
}

.sidebar-text {
    display: block;
    padding: 10px 15px;
    color: #6c757d;
    border-left: 3px solid transparent;
}

/* Untermenü-Stile */
.sidebar-submenu {
    list-style: none;
    padding-left: 0;
    margin: 0;
    margin-bottom: 10px;
}

.sidebar-submenu-item {
    margin-bottom: 2px;
}

.sidebar-submenu-link {
    display: block;
    padding: 8px 15px 8px 35px;
    color: #495057;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.sidebar-submenu-link:hover {
    background-color: #e9ecef;
    border-left-color: #adb5bd;
    text-decoration: none;
}

.sidebar-submenu-link.active {
    background-color: #e9ecef;
    border-left-color: #0d6efd;
    font-weight: 500;
}

.sidebar-submenu-text {
    display: block;
    padding: 8px 15px 8px 35px;
    color: #6c757d;
    font-size: 0.95rem;
}

/* Ebene 2 des Untermenüs */
.sidebar-submenu-level2 {
    list-style: none;
    padding-left: 0;
    margin: 0 0 5px 0;
}

.sidebar-submenu-level2 .sidebar-submenu-link {
    padding-left: 55px;
    font-size: 0.9rem;
}

.sidebar-header {
    font-weight: 500;
    margin-bottom: 10px;
    margin-top: 20px;
    padding: 0 15px;
    color: #6c757d;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sprachauswahl im Sidebar-Menü */
.sidebar-language-selector {
    padding: 10px 15px;
}

.sidebar-language-header {
    color: #495057;
    font-weight: 500;
    margin-bottom: 10px;
}

.sidebar-language-list {
    list-style: none;
    padding-left: 20px;
    margin: 0;
}

.sidebar-language-item {
    display: block;
    padding: 5px 10px;
    margin: 3px 0;
    color: #495057;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.sidebar-language-item:hover {
    background-color: #e9ecef;
    text-decoration: none;
}

.sidebar-language-item.active {
    background-color: #e9ecef;
    font-weight: 500;
}

/* Responsives Verhalten */
@media (max-width: 768px) {
    .frontend-container {
        flex-direction: column;
    }
    
    .frontend-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }
    
    .frontend-main-content {
        width: 100%;
    }
}