﻿/*body, html {
    margin: 0;
    height: 100%;
    overflow: hidden;
}*/

.page {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.top-row {
    position: fixed;
    background-color: #f8f8f8;
    border-bottom: 1px solid #d6d5d5;
    /*justify-content: flex-end;*/
    height: 3.5rem;
    /*display: flex;*/
    align-items: center;
}

main {
    flex: 1;
    /*overflow-y: auto;*/
    height: 100%;
    background-color: #fff; /* Anpassbare Farbe */
}

.content {
    /*height: calc(100% - 56px);*/
    overflow-y: auto;
}

.top-row ::deep a,
.top-row .btn-link {
    white-space: nowrap;
    /*margin-left: 1.5rem;*/
}

.top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2147483649;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

    .loading-overlay.visible {
        visibility: visible;
        opacity: 1;
        transition: opacity 1.5s linear;
    }

    .loading-overlay.hidden {
        visibility: hidden;
        opacity: 0;
        transition: visibility 0s 1s, opacity 1s linear;
    }

/*@media (min-width: 641px) {*/
@media (min-width: 992px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 9;
    }

    .top-row,
    article {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    #menuToggle {
        display: none;
    }
}

/*@media (max-width: 640.98px) {*/
@media (max-width: 991.98px) {
    .top-row:not(.auth) {
        display: none;
    }

    .top-row.auth {
        justify-content: space-between;
    }

    .top-row a,
    .top-row .btn-link {
        margin-left: 0;
    }

    #navMenu {
        max-height: 0;
        overflow-y: auto;
        transition: max-height 0.5s ease-in-out;
    }

        #navMenu.open {
            max-height: 300px; /* Ändere dies entsprechend der Größe deines Menüs */
        }
}

.btn {
    font-weight: 600;
}

.btn-toggle {
    padding: .25rem .5rem;
    color: var(--bs-emphasis-color);
    background-color: transparent;
}

    .btn-toggle:hover,
    .btn-toggle:focus {
        color: rgba(var(--bs-emphasis-color-rgb), .85);
        background-color: var(--bs-tertiary-bg);
    }

    .btn-toggle::before {
        width: 1.25em;
        line-height: 0;
        content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
        transition: transform .35s ease;
        transform-origin: .5em 50%;
    }

[data-bs-theme="dark"] .btn-toggle::before {
    content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%28255,255,255,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
}

.btn-toggle[aria-expanded="true"] {
    color: rgba(var(--bs-emphasis-color-rgb), .85);
}

    .btn-toggle[aria-expanded="true"]::before {
        transform: rotate(90deg);
    }

.btn-toggle-nav a {
    padding: .1875rem .5rem;
    margin-top: .125rem;
    margin-left: 1.25rem;
}

    .btn-toggle-nav a:hover,
    .btn-toggle-nav a:focus {
        background-color: var(--bs-tertiary-bg);
    }

.sidebar {
    background-color: #f8f8f8;
    overflow-y: auto;
}

.rotate-90 {
    transform: rotate(90deg);
    transition: transform 0.2s ease-in-out;
}

.rotate-0 {
    transform: rotate(0deg);
    transition: transform 0.2s ease-in-out;
}



/*@media (min-width: 641px) {*/
@media (min-width: 992px) {
    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    #menuToggle {
        display: none;
    }
}

/*@media (max-width: 640.98px) {*/
@media (max-width: 991.98px) {
    .nav-menu {
        display: none;
    }

        .nav-menu.open {
            display: block;
        }
}
