@font-face {
    font-family: Roboto;
    src: url(../fonts/Roboto-Regular.ttf);
}

@font-face {
    font-family: RobotoMedium;
    src: url(../fonts/Roboto-Medium.ttf);
}

@font-face {
    font-family: RobotoBold;
    src: url(../fonts/Roboto-Bold.ttf);
}

:root {
   --menu-count: 6;     /*Anzahl der Einträge im Hauptmenü */
}

body {
    background-color: rgba(219, 219, 219, 0.1);
  
      
  
}

.mobile-menu-btn{
    display: none;      /* Burger-Menü wird ausgeblendet*/
}



.header-main {
    font-family: Arial, Helvetica, sans-serif;
    width: 100%;
    padding: 0 8px;
    height: 50px;
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    position: fixed;
    top: 0;              /* Menü immer oben aneigen */
    z-index: 100;        /* Menü immer mit 100 px Höhe aneigen */
}


.header-main nav {
    display:flex;
}

.header-main .logo {
    height: 40px;
    width: fit-content;
    align-self: center;
    cursor: pointer;
}

.header-main .logo img {
    height: 100%;
}

.header-main ul {
    height: 100%;
    padding-left: 40px;
    list-style: none;
    display: flex;
    align-self: center;
}

.header-main ul li {
    position: relative;
     


}

.header-main ul li a {
    display: block;
    padding: 0 10px;
    height: 100%;
    line-height: 60px;
    font-size: 1rem;
    font-family: Arial, Helvetica, sans-serif;
    color: #000000;
    background-color: #fff;
    text-transform: uppercase;
    cursor:pointer;
    transition: all ease-in-out 100ms;
    text-decoration: none;
}

.header-main ul li a:hover {
    /*Haupt-Menüpunkte und Untermenü  */
    background-color:  rgb(87, 108, 135,1);
    color: #fff ;
}


/* Dropdown Styling Start */

.header-main ul li ul {
    visibility: hidden;    /* Untermenü wird versteckt*/
    opacity: 0;
    display: none;
    position: absolute;
    left: -40px;
    transition: all ease-in-out 100ms;
}

.header-main ul li ul li a {
    white-space: nowrap;          /* verhindert Zeilenumbruch im UnterMenü*/ 
}

ul li:hover>ul {
    visibility: visible;
    opacity: 1;
    display: block;
   margin-top: 3rem;
   @-moz-document url-prefix() {
     margin-top: 0rem;
  }
}



/* Dropdown Styling End
  margin-top: 3rem;
*/



.header-main .sm {
    align-self: center;
    display: flex;

}

.header-main form {
    height: 40px;
    padding-right: 15px;
    display: flex;
    border: 2px solid #989494;
    border-radius: 75px 100px 100px 75px;
    width: fit-content;
    align-self: center;
}

.header-main form input {
    height: 100%;
    width: 200px;
    border:1px ;
    padding: 0px 10px 0px 20px;
    border-radius: 15px;
    font-size: 1rem;
    font-family: Roboto;
}

.header-main form input:focus {
  border: 1px solid #8e8d8f;
}

.header-main form button {
    width:fit-content;
    padding: 0 0 0 0;
    border:none;
}

.header-main form button img {
    height: 100%;
    padding-top: 0%;
    cursor: pointer;
    border: none;

}

.header-main form button img:hover {
   /* Verhalten der Lupe im Suchfeld*/
    height: 105%;
    border-bottom: #576c87 solid; 
}

.header-main .sm-links {
    height: 60px;
    width: fit-content;
    display:flex;
    align-items: center;

    /*
   
    */
}

.header-main .sm-links a {
    margin-right: 16px;
    display:flexbox;
    height: 50px;
    cursor: pointer;
    align-self: center;
    padding-right: 10px;
    scroll-padding-left: 8px;
    cursor: pointer; 

     /*
    display:block;
    */

}

.header-main .sm-links img{
    /* Links für youtube und Instagram */
    height: 100%;
    margin-left: 20px;
 }





@media only screen and (max-width: 600px) {
      
      
    .header-main{
        height: 100vh;
        flex-wrap: wrap;
        flex-direction: column;
        padding: 0;
        justify-content: flex-start;
    }

    .header-main{
        display: none;
    }


    .mobile-menu-btn {
        display: flex;
        justify-content: center;
        width: 50px;
        height: 50px;
        position: absolute;
        top: 0;
        cursor: pointer;
    }

    .header-main nav {
        width: 100%;
        height: 80vh;
        flex-wrap: wrap;
        flex-direction: column;
        align-content: stretch;
    }

    .header-main .logo {
        height: 20%;
        padding: 0;
        margin: 0;
        display: flex;
        align-items: center;
    }

    .header-main .logo img {
        height: 50%;
        align-self: center;
    }

    .header-main ul {
        height: 70%;
        width: 100%;
        padding: 0;
        margin: 0;
        flex-wrap: wrap;
        flex-direction: column;
        align-content: space-between;
    }

    .header-main ul li {
        width: 100%;
        height: calc(100%/var(--menu-count));
        padding: 0;
        margin: 0;
        /* Linie  über allen Menüeinträgen*/
        border-top: 1px solid #ddd;
        /* Flex festlegen*/
        display: flex;
        flex-wrap: nowrap;
        flex-direction: column;
        justify-content: center;
        transition: all ease-in-out 100ms;
    }

    .header-main ul li:nth-last-child(1) {
        /* Gibt dem letzen Menü-Eintrag einen Teilungsstrich*/
       border-bottom: 1px solid #ddd;
    }


    .header-main ul li a {
        width: 100%;
        height: fit-content;
        padding: 0;
        margin: 0;
        text-align: center;
        font-size: 1.2rem;     
    }

    .header-main ul li a:hover{
        background-color: rgba(18, 68, 134,0.9); 
        color: #fff;
    }

    .header-main nav{
        overflow-y: scroll;
        overflow-x: hidden;
        
    }


    .header-main ul li ul {
        display: none;  /* flex none = Untermenü bei hovern nicht anzeigen*/
        flex-wrap: nowrap;
        flex-direction: column;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 2000;
    }

    .header-main ul li ul li {
       height: fit-content;
       display: block;
       background-color: #576c87;  
    }

    .header-main ul li ul li a {
        background-color: #576c87; 
        color: #fff; 
        font-size: 1.2rem;   
     }

     .header-main ul li ul li a:hover {
        background-color: rgba(18, 68, 134,0.9); 
        color: #fff; 
     }


     .header-main ul li:focus>ul, 
     .header-main ul li:hover>ul {
       display: flex;
       visibility: visible;
       opacity: 1; /*erfordelich für Firefox */
     }


    .header-main .sm {
        width: 100%;
        height: 20vh;
        margin: 0;
        padding: 0;
        flex-wrap: wrap;
        flex-direction: column;
       
    }


    .header-main form {
        padding-right: 0;
        width: 90%;
        height: 40%;
    }

    .header-main form  input{
        width: 100%;
        height: 100%;
        padding: 0 10px 0 20px;
        font-size: 1.6rem;
    }
     
    .header-main form  button{
        padding: 0 5%;
    }


    .header-main form button img {
        height: 5vh;
        padding: 15%;
    }

    .header-main .sm-links{
        width: 100%;
        height: 40%;
        margin: 0;
        padding: 0;
        justify-content: center;
    }


    .header-main .sm-links a {
        height: 60%;
        margin: 0 2%;
        padding: 0;
    }

    .header-main .sm-links img {
        height: 80%;
        margin: 0 2%;
        padding: 0;
    }
  
   }



    