﻿
li{
    list-style: none;
}

a{
    color:black;
    text-decoration: none;
}

.my-a{
    padding: 2px;
}

.my-container{
    position: relative;
    max-width: 1400px;
    margin: auto; 
    display: flex;
    flex-direction: column;
    height: auto;
}

.my-subcontainer{
    position: relative;
    width: 90%;
    margin: auto;
    height:auto;
}


.my-navbar {    
    margin-top: 2rem;
    width: 100%;
    min-height: var(--navbar-height);
    display:flex;
    justify-content: space-between;
    align-items:flex-start;
    background-color: white;
    margin-bottom: 1rem;
}


.my-a-logo {
    /*display: block;*/
    width: 20%;
    margin-left: 20px;
    color: black;
    justify-content: flex-start;
    
}

    .my-a-logo:hover {
        text-decoration: none;
        color: var(--color-my-blue);
        transition: color 2s;
    }


.rahmen {
    display: flex;
    justify-content: flex-end;
    flex-direction: row;
    margin-right: 20px;
}

.my_hamburger_label {
    display: none;
    /*justify-content: right;*/
    text-align: right;
}


.hamburger_bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 4px 0;
    transition: all 0.3s ease;
    /*background-color: white;*/
    background-color: var(--color-my-blue);
    border-radius: 100px;
    margin-right: 0;
    margin-left: auto;
}

.my_language_menu {
    width: 80%;
    height: auto;
    display: flex;
    justify-content: flex-end;
    flex-direction: row;
    flex-grow: 1;
}

.my-nav-menu {
    width: 80%;
    /*height: 70px;*/
    display: flex;
    justify-content: flex-end;
    flex-direction: row;
    flex-grow: 1;   
}

    .my-nav-menu > ul {
        display: flex;
        flex-direction: row;
        list-style-type: none;
        padding-inline-start: 20px;
        /*padding-inline-end: 5px;*/

        margin-bottom: 0;
        /*position: relative;*/
    }

    .my-nav-menu > ul > li {
        display: list-item;
        height: 100%;
        text-align: center;
        color: black;
        float: right;
        /*position: relative;*/
    }


nav a {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
}


.my-nav-menu > ul > li:hover .my-dropdown {
    display: block;     
}

.my-nav-menu > ul > li a:hover {
    text-decoration: none;
    color: var(--color-my-blue);
    transition: color 1s;
}



.my-dropdown {
    padding: 0;
    height: min-content;
    /*width: 150px;*/
    /*background: red;*/
    display: none;
    flex-direction: column;
    /*position: absolute;*/
    z-index: 10;
}

    /*
.my-dropdown ul{
    display: flex:
}
    */

    .my-dropdown li {
        /*position:relative;
        display: block;*/
        display: list-item;
        height: 30px;
        width: 100%;
        list-style-type: none;
        padding-inline-start: 10px;
        z-index: 10;
    }

    .my-dropdown li a {
        /*position: relative;*/

        justify-content: flex-start;
        text-decoration: none;
        align-items: flex-start;
        float: left;
        z-index: 10;
        /*background-color: red;*/
        height: auto;
    }

    .my-dropdown li ul li a {
        color: red;
        padding-left: 10px;
        color: grey;
    }


#home {
    margin: 100px auto 0;
    display: block;
    /*margin-top: var(--navbar-height);*/
    border: 1px solid black;
    position: relative;
    /*height: 10000vh;*/
    width: 100%;
    justify-content: center;
}

/*
.hamburger:hover {
    background-color: green;
    
}
    */



.my-a:hover {
    /*    text-decoration: none;*/
    background-color: var(--color-my-yellow);
}


.my-form-logout {
    height: 24px;
    padding-top: 0;
    flex-direction: row;
    /*align-items: start;*/
    /*vertical-align: top;*/
    text-align: center;
}

.my-button-logout {
    padding: 0;
    border: 0;
    color: #0366d6;
}

.my.logout-ul{
    display:flex;    
}

.my-logout-li{
    display: flex;
    align-items:flex-start;
    position: relative;
    padding-top: 0;
}





@media(max-width: 1400px) {
    .my-container {
        width: 100%;
    }
}



@media(max-width: 1000px) {

    .my-a {
        padding: 5px;
    }

    .my-navbar {
        margin-top: 2rem;
        width: 100%;
        min-height: var(--navbar-height);
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        position: relative; /*er nimmt position fixed; top: 0; right: 0; z-index: 10, damit er immer vorne liegt und ncht wegrollt*/
        margin-bottom: 1rem;
    }

    .rahmen {
        display: flex;
        justify-content: right;
        flex-direction: column;
        margin-right: 20px;
    }

    .my_hamburger_label {
        display: block;
        /*justify-content: right;*/
        text-align: right;
    }

    .my-nav-menu {       
        transition: 1s ease-out; /*damit das menu langsam erscheint*/
        display: none;
        flex-direction: column;
        width: 100%;
        height: min-content;        
        justify-content: center;
        flex-grow: 1;
        flex-wrap: nowrap;        
        top: 70px;
    }



    .my-nav-menu > ul {
        list-style-type: none;
        padding-inline-start: 20px;
        margin-bottom: 0;
        justify-content: right;
    }

    .my-nav-menu > ul > li {
        height: 100%;
        text-align: center;
        color: black;
        float: right;        
        display: list-item;
        width: 100%;        
        align-content: center;
        background-color: none;
        position: relative;
        flex-direction: column;
    }

    .my-nav-menu > ul > li > p{
        float: right;
        padding-inline-end: 10px;
        margin-right: 0px;
    }


    nav a {
        width: 100%;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: right;
        padding-inline-end: 10px;
        color: black;
    }


    .my-nav-menu > ul > li:hover .my-dropdown {
        display: flex;
    }

    .my-nav-menu > ul > li a:hover {
        text-decoration: none;
        color: var(--color-my-blue);
        transition: color 1s;
    }


    .my-dropdown {
        padding: 0;
        height: min-content;
        width: 100%;
        /*background: red;*/
        display: none;
        flex-direction: column;
        position: relative;
        justify-content: center;
    }

    /*
    .my-dropdown ul{
        display: flex:
    }
    */

    .my-dropdown li {
        display: list-item;
        height: 30px;
        width: 100%;
        list-style-type: none;
        padding-inline-start: 10px;
    }

        .my-dropdown li a {
            justify-content: right;
            padding-inline-end: 10px;
            text-decoration: none;
            align-items: flex-start;
            float: left;
            /*color: grey;*/
        }

        .my-dropdown li ul li a {
            color: red;
            padding-right: 20px;
            color: grey;
        }
    

    .my-form-logout {
        width: 100%;
        height: 30px;
        justify-content: right;
        padding-inline-end: 5px;
    }





    #hamburger_checkbox_id:checked ~ .my-nav-menu {
        display: block;        
    }


    /*
    #hamburger_checkbox_id:checked ~ .hamburger_bar:nth-child(3) {
        Transform: translateY(-8px) rotate(-45deg);
        background-color: var(--color-my-pink);
    }
    */


    nav input[id="hamburger_checkbox_id"]:checked + label .hamburger_bar:nth-child(2) {
        opacity: 0;
        background-color: var(--color-my-pink);
    }

    nav input[id="hamburger_checkbox_id"]:checked + label .hamburger_bar:nth-child(1) {
        Transform: translateY(8px) rotate(45deg);
        background-color: var(--color-my-pink);
    }

    
    nav input[id="hamburger_checkbox_id"]:checked + label .hamburger_bar:nth-child(3) {
        Transform: translateY(-8px) rotate(-45deg);
        background-color: var(--color-my-pink);
    }
    


    /*hiermit sollte das Menu sichtbar werden, wenn ide Ccheckbox aktiv ist*/

    /*jetzt nicht über display sonder die right eigenschaft*/
    /*
    nav input[id="hamburger_checkbox_id"]:checked + label ~ .my-nav-menu {
        display: block; 

        right: 0;
    }
        */


    /*jetzt nicht über display sonder die right eigenschaft*/
    /*
    nav input[id="hamburger_checkbox_id"]:checked ~ .my-nav-menu {
        display: block; 
        background-color: grey;
        right: 0;
    }
        */


    



    #home {
        margin-top: 250px;
        border: 1px solid black;
        height: 100vh;
    }

}

