@import url('/styles/root.css');

/* General */
a {
    text-decoration: none;
    font-size: var(--fontSize_P_Normal);
    font-weight: var(--fontWeigth_A_Normal);
    font-family: var(--fontFamily_Primary);
    color: var(--fontColor_02);
}

p {
    font-size: var(--fontSize_P_Normal);
    line-height: 150%;
    font-family: var(--fontFamily_Primary);
}

/* Header */
#header {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    padding: 10px 20px;
    background-color: var(--backgroundColor_02);
    border-bottom: var(--borderStyle_01);
}

#headerMobile {
    z-index: 1000;
}

.icon {
    max-height: 36px;
    filter: var(--iconFilter_01);
}

.logo {
    grid-column: 1 / 2;
}

.main-nav {
    display: flex;
    flex-direction: row-reverse;
    grid-column: 2 / 4;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav ul li {
    display: inline;
    margin: 12px;
}

.main-nav ul li:last-child {
    margin-right: 0;
}

.menu-icon {
    grid-column: 3 / 4;
    text-align: right;
}

/*Mobile Menu*/
#mobileNav {
    display: flex;
    flex-direction: column;
}

#mobileNavigation {
    display: none;
    flex-direction: column-reverse;
    align-items: center;
    background: var(--backgroundColor_02    );    
    position: fixed;
    width: 100%;
    bottom: 0;
    padding: 10px 0;
    box-shadow: var(--boxShadow_Invert_01);
    z-index: 999;
}

#mobileMenu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--backgroundColor_02); /* Hintergrundfarbe anpassen */
    border-radius: var(--borderRadius_Top_01);
    box-shadow: var(--boxShadow_Invert_02); /* Schatten für Effekt */
    display: none; /* Standardmäßig ausgeblendet */
    padding-bottom: 100px;
    z-index: 999; /* Z-Index über andere Elemente */
}

#mobileMenu.open {
    display: block; 
    position: absolute;
    background: var(--backgroundColor_02);
}

#mobileMenu nav {
    text-align: center;
}

#mobileMenu ul {
    padding: 0;
    display: flex;
    flex-direction: column;
}

#mobileMenu ul li {
    list-style: none;
    padding: 16px 0;
    border-bottom: var(--borderStyle_01); /* Trennlinie zwischen Einträgen */
}

#mobileMenu ul li:last-child {
    border-bottom: none; /* Letzten Eintrag ohne Trennlinie */
}

/* main.css */

#mobileMenu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--backgroundColor_01); /* Hintergrundfarbe anpassen */
    border-radius: var(--borderRadius_Top_01);
    box-shadow: var(--boxShadow_Invert_02); /* Schatten für Effekt */
    display: none; /* Standardmäßig ausgeblendet */
    z-index: 999; /* Z-Index über andere Elemente */
    transform: translateY(250px);
    transition: transform .5s ease-in;
}

#mobileMenu.open {
    display: block; /* Bei Klick sichtbar machen */
    transform: translateY(0);
    transition: transform .5s ease-in;  
}

#mobileMenu nav {
    text-align: center;
}

#mobileMenu ul {
    padding: 0;
}

#mobileMenu ul li {
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-bottom: var(--borderStyle_01); /* Trennlinie zwischen Einträgen */
}

#mobileMenu ul li:last-child {
    border-bottom: none; /* Letzten Eintrag ohne Trennlinie */
}

/* Footer */
#footer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    background-color: var(--backgroundFooter_01);
    padding: 20px;
}

#footer > * {
    flex: 1 1 auto; /* Alle direkten Kinder des Footers nehmen gleichmäßig Platz ein */
    margin: 10px; /* Einen kleinen Abstand zwischen den Elementen einfügen */
}


.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav ul li {
    margin-bottom: 10px;
}

.footer-nav ul li a {
    color: var(--fontColor_01);
}

.contact-info {
    text-align: center;
}

.restaurant-info {
    text-align: right;
}

@media only screen and (max-width: 768px) {
    #footer {
        padding-bottom: 50px;
    }

    #mobileNavigation {
        display: flex;
    }
}