/* Font Face */
@font-face {
    font-family: 'AlpenFontFree';
    src: url('fonts/AlpenFontFree.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

/* Header Styles */
.header {
    width: 100%;
    background-color: #ffffff;
    /* border-bottom: 1px solid #f0f0f0; */
}

.header-container {
    max-width: 1000px;
    min-width: 380px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.header-left {
    flex: 0 0 auto;
    max-width: 300px;
    min-width: 100px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: left;
    padding: 10px;
}

.logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.header-center {
    flex: 0 0 400px;
    max-width: 400;
    min-width: 100px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    padding: 14px;
}

.nav-menu li a {
    font-family: 'AlpenFontFree', sans-serif;
    font-size: 20px;
    line-height: 29px;
    color: #000000;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s;
}

.nav-menu li a:hover {
    color: #e6aebb;
}

/* Submenu Styles */
.has-submenu {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    min-width: 180px;
    z-index: 1000;
}

.has-submenu:hover .submenu {
    display: block;
}

.submenu li {
    padding: 0;
}

.submenu li a {
    display: block;
    padding: 10px 20px;
    font-size: 16px;
    white-space: nowrap;
}

.submenu li a:hover {
    background-color: #f9f9f9;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 18px;
    height: 2px;
    background-color: #e6aebb;
    transition: 0.3s;
}

.header-right {
    flex: 0 0 auto;
    max-width: 300px;
    min-width: 100px;
    /* width: 100%; */
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: right;
    padding: 10px;
}

.language-select {
    font-family: 'AlpenFontFree', sans-serif;
    font-size: 18px;
    line-height: 29px;
    color: #000000;
    white-space: nowrap;
}

.mobile-language-select {
    display: none;
    font-family: 'AlpenFontFree', sans-serif;
    font-size: 16px;
    line-height: 29px;
    color: #000000;
    list-style: none;
}

/* Responsive Design - Tablet */
@media screen and (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        width: 95vw;
        /* min-width: 768px;*/
        flex-direction: column;
        position: absolute;
        top: 100%;
        /*right: 0vw;*/
        background-color: #ffffff;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 20px;
        gap: 16px;
        text-align: left;
        background-image: url('images/submenu_image1.png');
        background-repeat: no-repeat;
        background-position: top right;
        background-size: 80px;
    }

    .nav-menu.active {
        display: flex;
        z-index: 1000;
    }

    /* Mobile Submenu */
    .submenu {
        position: static;
        display: none;
        box-shadow: none;
        padding: 10px 0 0 0;
        min-width: auto;
        margin-right: 100px;
    }

    .has-submenu.active .submenu {
        display: block;
    }

    .submenu li a {
        font-size: 16px;
        padding: 8px 0 8px 20px;
    }

    .nav-menu.active .mobile-language-select {
        display: block;
        padding-top: 10px;
        border-top: 1px solid #f0f0f0;
    }

    .desktop-only {
        display: none;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px;
    }

    .header-left {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
        min-width: auto;
        height: auto;
        justify-content: flex-start;
    }

    .header-center {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
        min-width: auto;
        height: auto;
        position: relative;
        justify-content: flex-end;
    }

    .header-right {
        display: none;
    }
}

/* Responsive Design - Mobile */
@media screen and (max-width: 400px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        width: 364px;
        min-width: 364px;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0%;
        background-color: #ffffff;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 20px;
        gap: 15px;
        text-align: left;
        background-image: url('images/submenu_image1.png');
        background-repeat: no-repeat;
        background-position: top right;
        background-size: 80px;
    }

    .nav-menu.active {
        display: flex;
    }

    /* Mobile Submenu */
    .submenu {
        position: static;
        display: none;
        box-shadow: none;
        padding: 10px 0 0 0;
        min-width: auto;
        margin-right: 100px;
    }

    .has-submenu.active .submenu {
        display: block;
    }

    .submenu li a {
        font-size: 16px;
        padding: 8px 0 8px 20px;
    }

    .nav-menu.active .mobile-language-select {
        display: block;
        padding-top: 10px;
        border-top: 1px solid #f0f0f0;
    }

    .desktop-only {
        display: none;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px;
    }

    .header-left {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
        min-width: auto;
        height: auto;
        justify-content: flex-start;
    }

    .header-center {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
        min-width: auto;
        height: auto;
        position: relative;
        justify-content: flex-end;
    }

    .header-right {
        display: none;
    }
}
