/* ============================================================= */
/* Scroll To Top
/* ============================================================= */

#scroll-to-top {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 90;
    position: fixed;
    right: 10px;
    bottom: 10px;
    width: 50px;
    height: 50px;
    box-shadow: 0 0 10px 0 rgba(0,0,0,0.3);
    border-radius: 100%;
    color: #ffffff;
    background-color: rgba(29, 29, 27, 0.60);
    backdrop-filter: blur(5px);
    padding: 15px;
    transform: translateY(100px);
    transition: background-color 0.15s linear, transform 0.3s ease-in-out;
    cursor: pointer;
}

html.no-touch #scroll-to-top:hover {
    background-color: var(--wp--preset--color--bg-dark, #000000);
}

#scroll-to-top.active {
    transform: translateY(0);
}

#scroll-to-top svg {
    width: 100%;
    height: auto;
}

#scroll-to-top path {
    fill: currentColor;
}


/* ============================================================= */
/* Site Header
/* ============================================================= */

#site-header {
    font-family: var(--wp--preset--font-family--headings, inherit);
    z-index: 100;
    display: flex;
    flex-flow: column;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 3px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease-out;
}

body.nav-up #site-header {
    transform: translateY(calc(-100% - 6px)); /* 100% - box shadow */
}

body.admin-bar #site-header { /* Admin preview */
    position: absolute;
    top: 32px;
}

.site-header-inner {
    width: 100%;
    padding: 15px;
    margin: 0 auto;
}


/* ============================================================= */
/* Navigation Main
/* ============================================================= */

#navigation-main {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
	align-items: center;
    gap: 20px;
    color: var(--wp--preset--color--content, #333333);
}

/* Logo
/* ------------------------------------------------------------- */

#header-logo-wrapper {
    width: auto;
    height: 30px;
}

#header-logo-wrapper .wp-block-site-logo {
    height: 100%;
    width: auto;
}

#header-logo-wrapper a {
    display: flex;
    width: auto;
    height: 100%;
}

#header-logo-wrapper svg {
    height: 100%;
    width: auto;
}

/* Navigation Icons
/* ------------------------------------------------------------- */

#navigation-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Call taxi button */

.call-taxi-header a {
    display: flex;
    align-items: center;
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--bg-light) !important;
    border: var(--wp--preset--color--primary) solid 2px !important;
    padding: 0.75rem 1.5rem !important;
    transition: all 0.2s linear;
}

.call-taxi-header a:hover {
    background-color: var(--wp--preset--color--bg-light);
    color: var(--wp--preset--color--primary) !important;
}

.call-taxi-header .icon-call {
    font-size: 1.25rem;
	padding-right: 0.5rem;
}

.call-taxi-header .icon-whatsapp {
    padding-right: 0.5rem;
}

/* Language Flag */

.language-flag .wpml-ls-legacy-list-horizontal {
    padding: 0;
}

.language-flag a.wpml-ls-link {
    display: flex;
}

.wpml-ls-legacy-list-horizontal .wpml-ls-flag {
    width: 30px;
    height: auto;
}

.wpml-ls-legacy-list-horizontal a {
    padding: 8px 10px 5px !important;
}

/* Burger Icon */

#navigation-icons .nav-burger {
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

#navigation-icons .nav-burger .bar {
    width: 40px;
    height: 3px;
    background-color: currentColor;
    border-radius: 5px;
    margin: 0;
}

/* Navigation Menu
/* ------------------------------------------------------------- */

#site-header .navigation-wrapper {
    display: none;
}


/* ============================================================= */
/* Site Header Margin
/* ============================================================= */

#site-header-margin {
    height: 64px;
    visibility: hidden;
    opacity: 0;
}


/* ============================================================= */
/* Call taxi mobile
/* ============================================================= */

body.nav-up #call-taxi-mobile {
    transform: translateY(calc(100%)); 
}

#call-taxi-mobile {
    display: flex;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: auto;
	border-top: 1px solid #fff;
    z-index: 10;
    transition: all 0.3s ease-out;
}

#call-taxi-mobile span {
    padding-right: 5px;
}

#call-taxi-mobile a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Prompt', sans-serif;
    color: var(--wp--preset--color--bg-light);
    background-color: var(--wp--preset--color--primary);
    border-top: var(--wp--preset--color--primary) solid 2px;
    flex: 1 1 50%;
    min-width: 0;
    font-size: 1.05rem;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 0.75rem 0.5rem;
    width: 100%;
    transition: all 0.3s ease-out;
}

#call-taxi-mobile a:hover {
    text-decoration: none;
    color: var(--wp--preset--color--primary);
    background-color: var(--wp--preset--color--bg-light);
}

#call-taxi-mobile a + a {
    border-left: 1px solid var(--wp--preset--color--bg-light);
}


/* ============================================================= */
/* Menu Modal
/* ============================================================= */

#menu-modal {
    z-index: 100;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #ffffff;
    background-color: rgba(29, 29, 27, 0.9);
    backdrop-filter: blur(5px);
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
    overflow-y: auto;
    scrollbar-width: none;  /* Hide scrollbar for Firefox */
}

.menu-modal-inner {
    display: flex;
    flex-flow: column nowrap;
    height: 100%;
    padding: 0;
    margin: 0;
}

/* Menu Modal Burger
/* ------------------------------------------------------------- */

#menu-modal-burger-wrapper {
    z-index: 10;
    display: block;
    position: absolute;
    top: 20px;
    right: 15px;
}

#menu-modal-burger-wrapper .nav-burger {
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

#menu-modal-burger-wrapper .nav-burger .bar {
    width: 30px;
    height: 3px;
    background-color: currentColor;
    border-radius: 5px;
    margin: 0;
    transform-origin: center;
}

#menu-modal-burger-wrapper .nav-burger .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

#menu-modal-burger-wrapper .nav-burger .bar:nth-child(2) {
    opacity: 0;
}

#menu-modal-burger-wrapper .nav-burger .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Menu Modal Navigation
/* ------------------------------------------------------------- */

#menu-modal-navigation-wrapper {
    flex: 1;
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
}

#menu-modal ul {
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    gap: 20px;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    list-style: none;
    padding: 80px 20px 50px;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
}

#menu-modal ul li {
    line-height: 1;
    text-align: center;
    padding: 0 10px;
    margin: 0 20px;
}

#menu-modal ul a {
    display: inline-block;
    position: relative;
    border-bottom: 2px solid transparent;
    color: inherit;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    padding-bottom: 2px;
}

#menu-modal ul a > svg {
    position: absolute;
    top: 0;
    left: calc(100% + 0.1em);
    height: 100%;
}

#menu-modal ul li.nav-back-button a > svg {
    left: initial;
    right: calc(100% + 0.1em);
}

#menu-modal ul li:not(.menu-item-has-children) > a > svg.arrow-right {
    display: none;
}

/* Aktive Seite, Hover und Fokus blau, ohne Unterstreichung (Buttons ausgenommen).
   Anker-Links (/#...) markiert WordPress auf der Startseite alle als aktiv, deshalb zählen sie nicht als aktive Seite. */
#menu-modal ul.menu > li:not(.call-taxi-header).current-menu-item > a:not([href*="#"]),
#menu-modal ul.menu > li:not(.call-taxi-header).current-menu-ancestor > a:not([href*="#"]),
#menu-modal ul.menu > li:not(.call-taxi-header) > a[href]:hover,
#menu-modal ul.menu > li:not(.call-taxi-header) > a[href]:focus,
#menu-modal ul.menu > li:not(.call-taxi-header) > a[href]:active {
    color: var(--wp--preset--color--primary, #3c66b7);
}



/* Only for WP admin preview */
@media screen and (max-width: 782px) {

    body.admin-bar #site-header { /* Admin preview */
        top: 46px;
    }

}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {

    /* ============================================================= */
    /* Call taxi mobile
    /* ============================================================= */

    #call-taxi-mobile a {
        font-size: 1.25rem;
        padding: 0.75rem 1.5rem;
    }

}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {

    /* ============================================================= */
    /* Scroll To Top
    /* ============================================================= */

    #scroll-to-top {
        right: 15px;
        bottom: 15px;
    }


    /* ============================================================= */
    /* Navigation Main
    /* ============================================================= */

    #navigation-main{
        padding: 20px 40px;
    }


    /* ============================================================= */
    /* Site Header Margin
    /* ============================================================= */

    #site-header-margin {
        height: 74px;
    }


    /* ============================================================= */
    /* Menu Modal
    /* ============================================================= */

    /* Menu Modal Burger
    /* ------------------------------------------------------------- */

    #menu-modal-burger-wrapper {
        top: 40px;
        right: 40px;
    }

    #menu-modal-burger-wrapper .nav-burger .bar {
        width: 40px;
    }

    /* Menu Modal Navigation
    /* ------------------------------------------------------------- */

    #menu-modal ul {
        padding-right: 60px;
        padding-left: 60px;
    }


}

/* Medium devices (tablets, 768px and up, orientation portrait) */
@media (orientation: portrait) and (min-width: 768px) {


    /* ============================================================= */
    /* Menu Modal
    /* ============================================================= */

    /* Menu Modal Navigation
    /* ------------------------------------------------------------- */

    #menu-modal ul {
        padding-top: 200px;
    }

}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {

    /* ============================================================= */
    /* Navigation Main
    /* ============================================================= */

    #navigation-main {
        justify-content: center;
        gap: 30px;
    }

    /* Logo
    /* ------------------------------------------------------------- */

    #header-logo-wrapper {
        height: 50px;
    }

    /* Navigation Icons
    /* ------------------------------------------------------------- */

    #navigation-icons {
        display: none;
    }

    /* Navigation Menu
    /* ------------------------------------------------------------- */

    #site-header .navigation-wrapper {
        width: auto;
        align-items: center;
    }

    #site-header #navigation-primary-wrapper {
        display: flex;
        width: 100%;
    }

    #site-header #navigation-primary-wrapper > nav {
        width: 100%;
        height: 100%;
    }

    #site-header ul.menu {
        display: flex;
        flex-flow: row wrap;
        justify-content: flex-end;
		align-items: center;
        gap: 40px;
        height: 100%;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    #site-header ul.menu li {
        display: flex;
        align-items: center;
        position: relative;
        height: 100%;
    }

    #site-header ul.menu a {
        color: var(--wp--preset--color--content, #3d3d3d);
        font-size: 1.25em;
        line-height: 1;
        text-transform: uppercase;
        text-decoration: none;
        transition: all 0.15s linear;
    }

    #site-header ul.menu li.current-menu-ancestor > a,
    #site-header ul.menu li.current-menu-item > a,
    #site-header ul.menu li:hover > a,
    #site-header ul.menu a:hover,
    #site-header ul.menu a:active,
    #site-header ul.menu a:focus {
        color: var(--wp--preset--color--primary, #3c66b7);
    }

    /* Sub Menu */

    #site-header ul.sub-menu {
        z-index: 10;
        position: absolute;
        top: calc(100% + 20px);
        right: -20px;
        width: auto;
        min-width: 260px;
        height: auto;
        color: #ffffff;
        box-shadow: 0 3px 10px 0 rgba(0,0,0,0.2);
        border-radius: 0 0 8px 8px;
        background-color: rgba(29, 29, 27, 0.80);
        backdrop-filter: blur(5px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-out;
        list-style: none;
        padding: 10px 0;
        margin: 0;
    }

    #site-header li:hover > ul.sub-menu {
        opacity: 1;
        visibility: visible;
    }

    #site-header ul.sub-menu:before {
        content: "";
        position: absolute;
        bottom: 100%;
        left: 0;
        display: block;
        width: 100%;
        height: 20px;
        opacity: 0;
    }

    #site-header ul.sub-menu a {
        display: block;
        font-size: 0.9em;
        padding: 10px 20px;
        width: 100%;
    }

    #site-header ul.sub-menu li.current-menu-ancestor > a,
    #site-header ul.sub-menu li.current-menu-item > a,
    #site-header ul.sub-menu li:hover > a,
    #site-header ul.sub-menu a:hover,
    #site-header ul.sub-menu a:active,
    #site-header ul.sub-menu a:focus {
        color: var(--wp--preset--color--primary, #3c66b7);
    }


    /* ============================================================= */
    /* Site Header Margin
    /* ============================================================= */

    #site-header-margin {
        height: 80px;
    }
    

    /* ============================================================= */
    /* WhatsApp menu item (icon only up to 1399px)
    /* ============================================================= */

    #nav-primary #menu-primary {
        gap: 28px;
    }

    #nav-primary #menu-primary li.whatsapp-taxi-header {
        margin-left: -12px;
    }

    #nav-primary #menu-primary li.whatsapp-taxi-header > a {
        font-size: 0;
    }

    #nav-primary #menu-primary li.whatsapp-taxi-header .icon-whatsapp {
        font-size: 1.25rem;
        padding-right: 0;
    }


    /* ============================================================= */
    /* Call taxi mobile
    /* ============================================================= */

    #call-taxi-mobile {
        display: none;
    }


}

/* XL devices 1200-1399px: Taxi rufen nur als Icon (wie WhatsApp) */

@media (min-width: 1200px) and (max-width: 1399.98px) {

    /* ------------------------------------------------------------- */
    /* Taxi rufen: nur Icon wie WhatsApp (Platz für Menüpunkt Tagestouren)
    /* ------------------------------------------------------------- */

    #nav-primary #menu-primary li.call-taxi-header > a {
        font-size: 0;
    }

    #nav-primary #menu-primary li.call-taxi-header .icon-call {
        font-size: 1.4rem;
        padding-right: 0;
    }

}

/* XL devices 1200px and up: Menü-Farben (grau, Hover/Fokus/aktive Seite blau) */

@media (min-width: 1200px) {

    /* ------------------------------------------------------------- */
    /* Menü: Anker-Links (/#...) markiert WordPress auf der Startseite
    /* alle als aktiv, deshalb dort grau wie die übrigen Punkte
    /* ------------------------------------------------------------- */

    #site-header ul.menu > li:not(.call-taxi-header).current-menu-item > a[href*="#"],
    #site-header ul.menu > li:not(.call-taxi-header).current-menu-ancestor > a[href*="#"] {
        color: var(--wp--preset--color--content, #3d3d3d);
    }

    #site-header ul.menu > li:not(.call-taxi-header) > a[href]:hover,
    #site-header ul.menu > li:not(.call-taxi-header) > a[href]:focus,
    #site-header ul.menu > li:not(.call-taxi-header) > a[href]:active {
        color: var(--wp--preset--color--primary, #3c66b7);
    }

}

/* XXL devices (1400px and up) */
@media (min-width: 1400px) {

    /* ============================================================= */
    /* WhatsApp menu item
    /* ============================================================= */

    #nav-primary #menu-primary li.whatsapp-taxi-header > a {
        font-size: 1.25em;
    }

    #nav-primary #menu-primary li.whatsapp-taxi-header .icon-whatsapp {
        font-size: inherit;
        padding-right: 0.5rem;
    }

}

/* Extra extra large devices (1600px and up) */
@media (min-width: 1600px) {

    /* ============================================================= */
    /* WhatsApp menu item
    /* ============================================================= */

    #nav-primary #menu-primary {
        gap: 40px;
    }

    #nav-primary #menu-primary li.whatsapp-taxi-header {
        margin-left: -24px;
    }

}
