
header {
    background: var(--background);
    text-align: center;
    position: fixed;
    z-index: 999;
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: auto minmax(50px, auto) minmax(100px, auto) minmax(50px, auto) minmax(50px, auto);
    top: 0;
}


#logo {
    height: 100px;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    grid-column: 2 / 3;
}


#logo_big {
    display: none;
}

#logo_small {
    display: inline-block;
}

#user {
    height: 100px;
    padding: 5px;
    min-width: 100px;
    text-align: left;
    grid-column: 3 / 4;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rounded_card {
    border-radius: 0;
    background-color: rgba(120, 170, 255, .5);
    padding: 5px;
    margin: 5px;
    color: #ffffff;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}


.rounded_card > hr{
    border: 0;
    height: 1px;
    background-color: #fff;
    position: relative;
    margin: 0 0 2px 0;
}


#calendar {
    font-size: 1.2em;
    position: relative;
    grid-column: 4 / 5;
    display: flex;
    justify-content: center;
    align-items: center;
}

/*Checkbox verstecken*/
#responsive-cal {
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
}

#responsive-cal:checked ~ table#calendarTable {
    transform: scale(1, 1);
}


#calendarTable {
    /*grid-row: 3/4;*/
    /*grid-column: 2/5;*/
    transform: scale(1,0);
    position: absolute;
    text-align: left;
    top: 100%;
    left: 0;
    background: var(--background);
    width: 100%;
    transform-origin: top;
    transition: transform 400ms ease-in-out;
}

#date {
    display: none;
}
#calendar_icon {
    /*display: flex;*/
    height: 50%;
    width: 50%;
    padding: 2px;
    cursor: pointer;

}

/*#calendar table {*/
/*    font-size: 0.8em;*/
/*    width: 100%;*/
/*    position: absolute;*/
/*    right: calc(50% - 50px);*/
/*    top: 50px;*/
/*    border-collapse: collapse;*/
/*    background: white;*/
/*    border: 1px solid #000;*/
/*    z-index: 10;*/
/*    transform: scale(1, 0);*/
/*    transform-origin: top;*/
/*    transition: transform 200ms ease-in-out;*/
/*    box-shadow: 10px 5px 5px rgba(0, 0, 0, 0.5);*/
/*}*/

#calendarTable {
    border-collapse: collapse;
        background: white;
        border: 1px solid #000;
    }

    #calendarTable td, #calendarTable th {
        padding: 5px;
        text-align: center;
        border: 1px solid #000;
        width: 100px;
        color: #000;
    }

    #calendarTable th {
        background-color: #444;
        color: #fff;
    }

    #calendarTable td:hover {
        background-color: #ffcccc;
    }


    #calendar:hover > table {
        transform: scale(1, 1);
    }

    #calendar table td.previous-month,
    #calendar table td.next-month {
        color: #999999;
    }

    .current-day {
        background-color: #ffcc00;
    }

    #monthYearSelect div{
        display: flex;
        justify-content: space-evenly;
        /*align-items: center;*/
    /*padding: 5px;*/
}


.rounded_card b {
    font-size: 0.7rem;
}

.rounded_card  {
    font-size: 0.6rem;
}

#card_firstname {
    display: inline-block;
    font-size: 0;
}

/*funktioniert nur mit Block-Elementen*/
#card_firstname:first-letter{
    font-size: 0.7rem;
}


#card_firstname:after{
    content: ".";
    font-size: var(--font-size);
}

/*Checkbox verstecken*/
#responsive-nav {
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
}
#responsive-nav:focus ~ .responsive-nav-label {
    outline: 3px solid rgba(100, 150, 255 , .75);
}

#responsive-nav:checked ~ nav {
    transform: scale(1,1);
}

.responsive-nav-label {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    margin-right: 1em;
    display: flex;
    align-items: center;
    grid-column: 5 / 6;
    grid-row: 1 / 2;
}

.responsive-nav-label span,
.responsive-nav-label span::before,
.responsive-nav-label span::after {
    display: block;
    background-color: var(--menue-color);
    height: 2px;
    width: 2em;
    border-radius: 2px;
    position: relative;
}

.responsive-nav-label span::before,
.responsive-nav-label span::after {
    content: '';
    position: absolute;
}


.responsive-nav-label span::before{
    bottom: 7px;
}
.responsive-nav-label span::after {
    top: 7px;
}


nav {
    position: absolute;
    grid-row: 2/3;
    grid-column: 1/6;
    text-align: left;
    top: 0;
    left: 0;
    background: var(--background);
    width: 100%;
    transform: scale(1, 0);
    transform-origin: top;
    transition: transform 400ms ease-in-out;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

nav ul li {
    background: var(--background);
    /*margin-bottom: 1em;*/
    /*margin-left: 1em;*/
}


nav ul li a {
    color: var(--color);
    font-size: 1.8em;
    padding: 0.15em 0.5em;
    white-space: nowrap;
}

nav ul li:hover {
    background-color: rgba(255, 255, 255, 0.5);
}
nav ul li ul {
    /*display: none;*/
    transform: scale(1,0);
}

nav ul li:hover ul {
    display: block;
    transform: scale(1, 1);
    transition: transform 400ms ease-in-out;
    transform-origin: top;
    /*position: relative;*/
    /*top: 0;*/
    /*left: 0;*/
    /*background-color: rgba(255, 255, 255, 0.5);*/
    /*margin: 0;*/
    /*padding: 0;*/
    list-style: none;
}


@media screen and (min-width: 800px) {

    .responsive-nav-label {
        display: none;
    }

    header {
        display: grid;
        grid-template-columns: minmax(0, 1.5fr)  minmax(250px, 1fr)  minmax(350px, 1fr)   minmax(200px, 1fr)  minmax(0, 1.5fr);
        box-shadow: 0 0 10px rgba(0,0,0,0.5);
    }

    #logo {
        grid-column: 2 / 3;
    }


    #logo_big {
        display: inline-block;
        height: clamp(5rem, 20vw, 10rem);
        width: clamp(5rem, 20vw, 10rem);
        margin: 1rem;
    }

    #logo_small {
        display: none;
    }



    #user {
        grid-column: 3 / 4;
    }


    .rounded_card  {
        font-size: 0.8rem;
    }

    .rounded_card b {
        font-size: 1rem;
    }

    #card_firstname {
        display: inline-block;
        font-size: var(--font-size);
    }

    #card_firstname:first-letter {
        font-size: var(--font-size);
    }

    #card_firstname:after{
        content: " ";
        font-size: var(--font-size);
    }

    #calendar {
        grid-column: 4 / 5;
    }


    #calendarTable {
        display: inline-block;
    }

    #date {
        /*display: inline-block;*/
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #calendar_icon {
        display: none;
    }

    nav {
    // all: unset; /* this causes issues with Edge, since it's unsupported */

        /* the following lines are not from my video, but add Edge support */
        position: relative;
        text-align: left;
        transition: none;
        transform: scale(1,1);
        background: none;
        top: initial;
        left: initial;
        /* end Edge support stuff */

        grid-row: 2 / 3;
        grid-column: 2 / 5;
        display: flex;
    }

    nav ul {
        display: flex;
        justify-content: start;
        align-items: center;
        width: 100%;
        gap: 2rem;
    }

    nav ul li a {
        font-size: 1.2em;
        padding: 0.15em 0.5em;
    }

    nav ul li {
        position: relative;
    }

    nav ul li ul {
        display: none;
        position: absolute;
        left: 0;
        z-index: 10;
        box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
        background-color: var(--background);
    }

    nav ul li ul li {
        width: 100%;
        position: relative;
    }

    nav ul li:hover > ul {
        display: block;
        position: absolute;
        left: 0;
        width: 100%;
    }

    nav ul li ul li ul {
        display: none;
    }

    nav ul li ul li:hover ul {
        display: block;
        position: absolute;
        width: 100%;
        left: 50%;
        top: 90%;
    }

    /*nav ul li ul li:hover ul {*/
    /*    display: block;*/
    /*    position: relative;*/
    /*    left: 10px;*/
    /*}*/



    #calendarTable {
        grid-row: 1/2;
        grid-column: 4/5;
        font-size: 0.8em;
        /*width: 100%;*/
        position: absolute;
        /*right: calc(50% - 50px);*/
        right: 10%;
        top: 50%;
        border-collapse: collapse;
        background: white;
        border: 1px solid #000;
        z-index: 10;
        transform: scale(1, 0);
        transform-origin: top;
        transition: transform 200ms ease-in-out;
        box-shadow: 10px 5px 5px rgba(0, 0, 0, 0.5);
    }

    #calendarTable td, #calendarTable th {
        padding: 5px;
        text-align: center;
        border: 1px solid #000;
        width: 100px;
        color: #000;
    }

    #calendarTable th {
        background-color: #444;
        color: #fff;
    }

    #calendarTable td:hover {
        background-color: #ffcccc;
    }


    /*#calendar:hover ~ #calendarTable {*/
    /*    transform: scale(1, 1);*/
    /*}*/

    #calendar table td.previous-month,
    #calendar table td.next-month {
        color: #999999;
    }


}