/* _content/kampfkunstschule/App.razor.rz.scp.css */
/* _content/kampfkunstschule/Pages/Layout/MainLayout.razor.rz.scp.css */
/* Allgemeine Layout-Einstellungen */
html[b-kz9iggnrtm], body[b-kz9iggnrtm] {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #3a3a3a;
    color: #fff;
    border: none;
}

.layout[b-kz9iggnrtm] {
    width: 100%;
    height: calc(100vh - 20px);
    border-collapse: collapse;
}

.layout td[b-kz9iggnrtm] {
    border: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

/* Menü-Container */
.menu-container[b-kz9iggnrtm] {
    width: 100%;
    z-index: 1001;
}

/* Menü-Design */
.menu[b-kz9iggnrtm] {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Erste Menü-Liste (Hauptnavigation) */
.menu:first-of-type[b-kz9iggnrtm] {
    flex: 1;
    padding: 10px 0;
}

/* Zweite Menü-Liste (Login/Benutzer) */
.menu:last-of-type[b-kz9iggnrtm] {
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.08);
}

/* Animation für Menüpunkte */
.menu li[b-kz9iggnrtm] {
    margin: 0;
    padding: 5px 10px;
    border-bottom: 1px solid #292929 !important;
}

.menu li:last-child[b-kz9iggnrtm] {
    border-bottom: none;
}

#sidebar.expanded .menu li[b-kz9iggnrtm] {
    opacity: 1;
    transform: translateX(0);
    transition-delay: calc(0.1s * var(--i));
}

.menu a[b-kz9iggnrtm] {
    display: block;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.menu a:hover[b-kz9iggnrtm] {
    background: #ff4400;
    transform: translateX(5px);
}

/* Login-Button speziell stylen */
.menu-login[b-kz9iggnrtm] {
    background: #ff4400;
    margin: 10px 20px;
    text-align: center;
    border-radius: 6px;
}

.menu-login:hover[b-kz9iggnrtm] {
    background: darkred !important;
    transform: scale(1.02) !important;
}

/* Hauptbereich */
.main-content[b-kz9iggnrtm] {
    width: 85%;
    background: #3a3a3a;
    color: #fff;
}

/* Scrollbar im Menü */
#sidebar[b-kz9iggnrtm]::-webkit-scrollbar {
    width: 6px;
}

#sidebar[b-kz9iggnrtm]::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

#sidebar[b-kz9iggnrtm]::-webkit-scrollbar-thumb {
    background: rgba(255, 68, 0, 0.5);
    border-radius: 3px;
}

#sidebar[b-kz9iggnrtm]::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 68, 0, 0.7);
}

/* Footer */
.footer[b-kz9iggnrtm] {
    position: fixed; /* Fixiert den Footer am unteren Rand */
    bottom: 10px; /* Abstand vom unteren Bildschirmrand */
    right: 20px; /* Ganz nach rechts */
    font-size: 12px; /* Nicht zu groß, aber gut lesbar */
    color: #777; /* Dezente Farbe, nicht zu dominant */
}

.footer[b-kz9iggnrtm] {
    opacity: 0;
    transform: translateY(20px); /* Leichte Bewegung nach oben */
    animation: fadeInUp-b-kz9iggnrtm 1s ease-in-out forwards;
}
@keyframes fadeInUp-b-kz9iggnrtm { 
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


.spacer[b-kz9iggnrtm] {
    display: none;
}

/* Menü-Steuerelemente */
#menu-toggle[b-kz9iggnrtm] {
    position: fixed;
    top: 20px;
    left: 20px;
    background: transparent;
    color: white;
    padding: 12px;
    border: 2px solid #ff4400;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 1000;
}

#menu-toggle[b-kz9iggnrtm]::before {
    content: "☰";
    display: block;
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

#menu-toggle[b-kz9iggnrtm] {
    opacity: 0;
    transform: translateX(-20px); /* Bewegung von links */
    animation: fadeInLeft-b-kz9iggnrtm 1s ease-in-out forwards;
}
@keyframes fadeInLeft-b-kz9iggnrtm {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

#menu-toggle:hover[b-kz9iggnrtm] {
    background: #ff4400;
    transform: scale(1.05);
}

#menu-toggle[b-kz9iggnrtm]::before {
    content: "☰ Menü"; /* Standardtext */
}

/* Wechsel auf reines Hamburger-Icon bei kleinerer Bildschirmgröße */
@media screen and (max-width: 768px) {
    #menu-toggle[b-kz9iggnrtm] {
        top: 0;
        left: 0;
        border-radius: 0px 0px 10px 0px;
    }
    #menu-toggle[b-kz9iggnrtm]::before {
        content: "☰"; /* Nur das Icon anzeigen */
    }
}

/* Schließen-Button */
#menu-close[b-kz9iggnrtm] {
    width: 100%;
    padding: 20px;
    background: #ff4400;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#menu-close[b-kz9iggnrtm]::after {
    content: "✖";
    font-size: 20px;
}

#menu-close:hover[b-kz9iggnrtm] {
    background: darkred;
}

/* Sidebar-Menü */
#sidebar[b-kz9iggnrtm] {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh; /* Volle Viewport-Höhe */
    background: linear-gradient(to right, #1a1a1a, #292929);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    z-index: 1001;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.3);
    overflow-y: auto; /* Ermöglicht Scrollen */
}

#sidebar ul[b-kz9iggnrtm] {
    list-style: none;
    padding: 0;
    margin: 0;
    min-height: fit-content;
}

/* Erste Menü-Liste bleibt oben */
#sidebar ul:first-of-type[b-kz9iggnrtm] {
    align-self: flex-start;
}

/* Zweite Menü-Liste bleibt immer unten */
#sidebar ul:last-of-type[b-kz9iggnrtm] {
    align-self: flex-end;
}

#sidebar ul li[b-kz9iggnrtm] {
    padding: 10px;
    border-bottom: 1px solid gray;
}

#sidebar ul li a[b-kz9iggnrtm] {
    color: white;
    text-decoration: none;
}

#sidebar.expanded[b-kz9iggnrtm] {
    left: 0;
}

/* Admin-Menü */
#admin-menu[b-kz9iggnrtm] {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: linear-gradient(135deg, #6a0b0b, #c62828);
    color: white;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    z-index: 1002;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

/* Sidebar ausgeklappt */
#admin-menu.expanded[b-kz9iggnrtm] {
    right: 0;
}

#admin-menu ul[b-kz9iggnrtm] {
    list-style: none;
    padding: 0;
    margin: 0;
    min-height: fit-content;
}

/* Erste Menü-Liste bleibt oben */
#admin-menu ul:first-of-type[b-kz9iggnrtm] {
    align-self: flex-start;
}

/* Zweite Menü-Liste bleibt immer unten */
#admin-menu ul:last-of-type[b-kz9iggnrtm] {
    align-self: flex-end;
}

#admin-menu ul li[b-kz9iggnrtm] {
    padding: 10px;
    border-bottom: 1px solid gray;
}

#admin-menu ul li a[b-kz9iggnrtm] {
    color: white;
    text-decoration: none;
}

.admin-menu[b-kz9iggnrtm] {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.admin-menu li[b-kz9iggnrtm] {
    margin: 5px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.admin-menu li:last-child[b-kz9iggnrtm] {
    border-bottom: none !important;
}

.admin-menu a[b-kz9iggnrtm] {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1.1em;
    background: rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.admin-menu a:hover[b-kz9iggnrtm] {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
}

/* Schaltfläche zum Öffnen des Menüs */
.admin-menu-toggle[b-kz9iggnrtm] {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #8B0000, #590000);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: adminPulse-b-kz9iggnrtm 2.5s infinite;
}

@keyframes adminPulse-b-kz9iggnrtm {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 0, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(139, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(139, 0, 0, 0);
    }
}

.admin-menu-toggle:hover[b-kz9iggnrtm] {
    background: linear-gradient(135deg, #a50000, #6d0000);
    animation: adminPulseHover-b-kz9iggnrtm 1.5s infinite;
}

.admin-menu-toggle[b-kz9iggnrtm]::before {
    content: "🔒 Admin"; /* Standardtext */
}

@keyframes adminPulseHover-b-kz9iggnrtm {
    0% {
        box-shadow: 0 0 0 0 rgba(165, 0, 0, 0.8);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(165, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(165, 0, 0, 0);
    }
}

/* Admin-Menü Schließen Button */
.admin-menu-close[b-kz9iggnrtm] {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #6a0b0b, #c62828);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease;
}

.admin-menu-close:hover[b-kz9iggnrtm] {
    background: linear-gradient(135deg, #bd1616, #c62828);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .admin-menu-toggle[b-kz9iggnrtm] {
        top: 0;
        right: 0;
        border-radius: 0 0 0 8px;
        padding: 15px;
    }

    #admin-menu[b-kz9iggnrtm] {
        width: 100%;
        right: -100%;
    }

    .admin-menu-toggle[b-kz9iggnrtm]::before {
        content: "🔒"; /* Nur das Icon anzeigen */
    }
}
