﻿/* 2024 07 14 *******************************************************************************

    tut: https://www.youtube.com/watch?v=phWxA89Dy94&t=311s

*********************************************************************************************/

.testtest
{
    background-color:rebeccapurple;
}
/* Variable */
:root {
    --text-color: #0f1024;
    --accent-color: #006aff;
    --main-background-color: #f7f7f7;
}

* {
    margin: 0;
    padding: 0;
}
/* Ränder weg */



.NavMenu_Grunddiv_flexbox {
    width: 100%;
    display: flex;
    flex-direction: row;
    background-color: white;
    justify-content: space-between;
    height: 77px;
    background: linear-gradient(white, 95%, var(--main-background-color));
    font-size: 18pt;
    align-items: center;
    font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
}

.MainIcon {
    padding: 5px;
    flex-shrink: 5;
    height: 70px;
}


.MenuBand {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    flex-direction: row;
}

.MenuBand_Main_Item {
    text-decoration: none;
    color: var(--text-color);
    padding: 5px;
    display: flex;
    justify-content: center;
    flex-direction: row;
}

    .MenuBand_Main_Item:hover {
        background-color: var(--main-background-color);
        color: var(--accent-color);
        transition: 0.3s;
    }

.LoginSection {
    padding: 5px;
    margin-top: 20px;
    margin-bottom: 20px;
    flex-shrink: 5;
}

#sidebar_open {
    padding: 10px;
    display: none;
}

#sidebar_close {
    padding: 10px;
    display: none;
}

.sidebar_open, .sidebar_close {
    display: none;
}




/* Hier passiert im Grunde erste der responve Tiel in CSS */
@media(max-width: 700px) {

    .MainIcon {
        display: none;
    }

    .NavMenu_Grunddiv_flexbox {
        right: -100%;
        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: 0;
        transition: 0.33s;
        width: auto;
        height: auto;
        z-index: 10;
        box-shadow: -5px 0 5px rgba(247,247,247,0.25);
    }

    .MenuBand {
        flex-direction: column;
        align-items: flex-start;
        flex-grow: unset;
    }

    .MenuBand_Main_Item {
        padding: 20px 30px;
        width: 100%;
        justify-content: flex-start;
    }

    .sidebar_open, .sidebar_close {
        display: block;
        padding: 20px;
        text-align: center;
    }


    #Sidebar_Handys:checked ~ .NavMenu_Grunddiv_flexbox {
        right: 0%;
        transition: 0.77s;
    }
}
