/* ========================================================================== 
   Schlafstudio Wien - Header CSS v4
   Version 4: Desktop beibehalten, mobiler Header sauber links/rechts ausgerichtet

   Einbindung im Contao-Seitenlayout NACH:
   1. main-schlafstudio.css
   2. custom-schlafstudio.css
   3. isotope-schlafstudio.css

   Wichtig:
   - Kein festes padding-bottom fuer .page-header setzen.
   - actions.js misst die tatsaechliche Headerhoehe und setzt den Abstand inline.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Seiten- und Fixed-Header
   -------------------------------------------------------------------------- */

.page-header {
    position: relative;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

#ha-header.header--fixed {
    position: fixed;
    z-index: 10;
    top: 0;
    right: 0;
    left: 0;
    background: #fff;
}

#ha-header .ha-header-front {
    position: relative;
    z-index: 2;
    display: block;
    background: #fff;
}

@media screen and (max-width: 601px) {
    .page-header {
        zoom: 1;
    }

    .page-header::before,
    .page-header::after {
        display: table;
        content: "";
    }

    .page-header::after {
        clear: both;
    }
}

/* --------------------------------------------------------------------------
   2. Obere Kontaktleiste
   -------------------------------------------------------------------------- */

#ha-header > .topContainer {
    width: 100%;
    height: 2.3rem;
    padding: 0.1rem 0.3rem 0.3rem;
    border: 1px solid #dedede;
    background: #f5f5f5;
}

#ha-header > .topContainer .icon-links {
    margin: 0;
}

#ha-header > .topContainer .icon-links ul {
    margin-bottom: 0;
}

#ha-header > .topContainer .icon-links li {
    float: right;
    margin-right: 2.5rem;
}

#ha-header > .topContainer .icon-links a {
    padding: 0;
    border: 0;
    font-size: 0.9rem;
}

#ha-header > .topContainer .icon-links a:hover span {
    text-decoration: none;
}

#ha-header > .topContainer .icon-links a[data-icon]::before {
    margin-right: 0.1rem;
    font-size: 1rem;
}

/* --------------------------------------------------------------------------
   3. Hauptwrapper
   -------------------------------------------------------------------------- */

#ha-header > .main-navigation-wrapper {
    position: relative;
    z-index: 30;
    clear: both;
    margin: 0 auto;
    padding: 0;
    border: 0;
    background: #fff;
    box-shadow: 0 4px 8px rgba(33, 33, 33, 0.3);
}

#ha-header > .main-navigation-wrapper::before,
#ha-header > .main-navigation-wrapper::after {
    display: table;
    content: "";
}

#ha-header > .main-navigation-wrapper::after {
    clear: both;
}

#ha-header .main-navigation-inside {
    position: relative;
    display: block;
    clear: both;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   4. Logo
   -------------------------------------------------------------------------- */

#ha-header .logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    float: left;
    margin: 0.5em 0 0.5em 2em;
    padding: 0;
    overflow: hidden;
    font-size: inherit;
}

#ha-header .logo a {
    display: block;
    overflow: hidden;
}

#ha-header .logo img {
    position: relative;
    z-index: 2;
    display: block;
    max-width: 100%;
    height: auto;
    padding: 0.3em 0;
    image-rendering: auto;
}

/* --------------------------------------------------------------------------
   5. Warenkorb und Kundenkonto
   -------------------------------------------------------------------------- */

#ha-header .mod_customnav {
    display: inline-block;
    float: right;
    padding: 3.5em 0 0;
    text-align: right;
}

#ha-header a.btnWarenkorb {
    z-index: 1;
    text-decoration: none;
}

#ha-header a.btnWarenkorb::before {
    position: relative;
    z-index: 0;
    display: inline-block;
    margin: 0 0.5em 0 0;
    color: #4b4a83;
    content: "\e03a";
    font: 1.5em/1 "RockSolid Icons";
    text-indent: 0;
    text-rendering: geometricprecision;
}

#ha-header a.btnWarenkorb span.cart_items_w {
    position: absolute;
    z-index: 1;
    min-width: 0;
    height: auto;
    margin: -1.2em 0 0 -1.2em;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: normal;
}

/*
 * .cart_items_w und .holder sind immer im Header vorhanden.
 * Der Kreis wird erst auf #getQuantity gestaltet, sobald Isotope
 * tatsaechlich eine Mengenangabe in .holder geladen hat.
 */
#ha-header a.btnWarenkorb span.cart_items_w .holder:empty,
#ha-header a.btnWarenkorb span.cart_items_w #getQuantity:empty {
    display: none !important;
}

#ha-header a.btnWarenkorb span.cart_items_w #getQuantity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: 20px;
    background-color: #4b4a83;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

#ha-header a.btnLogin::before {
    position: relative;
    z-index: 0;
    display: inline-block;
    margin: 0 0.5em 0 0;
    color: #4b4a83;
    content: "\e139";
    font: 1.5em/1 "RockSolid Icons";
    text-indent: 0;
    text-rendering: geometricprecision;
}

/* --------------------------------------------------------------------------
   6. Hauptnavigation
   -------------------------------------------------------------------------- */

#ha-header .main-navigation {
    display: inline-block;
    float: right;
    width: 100%;
    margin: 0 0 0.5em;
    padding: 0;
    overflow: hidden;
    font-size: 1em;
    font-weight: inherit;
    text-align: right;
}

#ha-header .main-navigation ul,
#ha-header .main-navigation li {
    display: inline;
    margin: 0;
    padding: 0.2em 0.1em;
}

#ha-header .main-navigation ul {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#ha-header .main-navigation a,
#ha-header .main-navigation li > span {
    display: block;
    float: none;
    padding: 0.05em 0.75em 0.2em;
    border: 0;
    color: inherit;
    text-decoration: none;
    transition: padding 0.4s ease-in-out;
}

#ha-header .main-navigation a.trail,
#ha-header .main-navigation a.active,
#ha-header .main-navigation li > span.trail,
#ha-header .main-navigation li > span.active,
#ha-header .main-navigation li > span.forward {
    border-bottom: 1px solid #333;
    background: transparent;
    color: #555;
}

#ha-header .main-navigation a.home,
#ha-header .main-navigation li > span.home {
    overflow: hidden;
    line-height: 0;
    text-indent: -99em;
}

#ha-header .main-navigation a.home::after,
#ha-header .main-navigation li > span.home::after {
    position: relative;
    display: block;
    content: "\2302";
    font: 0.75em/2 "RockSolid Icons";
    text-indent: 0;
    text-rendering: geometricprecision;
}

#ha-header .main-navigation a.home.trail,
#ha-header .main-navigation a.home.active,
#ha-header .main-navigation li > span.home.trail,
#ha-header .main-navigation li > span.home.active,
#ha-header .main-navigation a:hover,
#ha-header .main-navigation a:focus {
    background: #a3a2cc45;
}

#ha-header .main-navigation a.angebote,
#ha-header .main-navigation a.angebote:hover,
#ha-header .main-navigation a.angebote:focus {
    color: #4b4a83;
}

#ha-header .main-navigation li > span.forward {
    border: 0;
}

#ha-header .main-navigation li:first-child > a,
#ha-header .main-navigation li:first-child > span {
    border-left: 0;
}

/* --------------------------------------------------------------------------
   7. Suche in der Hauptnavigation
   -------------------------------------------------------------------------- */

#ha-header .main-navigation-search {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    overflow: hidden;
}

#ha-header .main-navigation-search input {
    float: right;
    width: 10.25em;
    margin: 0.5625em 3em 0 -10.3125em;
    padding-top: 0.25em;
    padding-bottom: 0.1875em;
    border: 1px solid #000;
    box-shadow: none;
    font-size: 0.88889em;
    transition: margin-left 0.2s ease-out;
}

#ha-header .main-navigation-search:hover input,
#ha-header .main-navigation-search input:hover,
#ha-header .main-navigation-search input:focus {
    margin-left: 1.375em;
}

#ha-header .main-navigation-search button {
    position: absolute;
    top: 0;
    right: 0;
    width: 3.55556em;
    height: 100%;
    margin: 0;
    padding: 0.77778em 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #4b4a83;
    cursor: pointer;
    line-height: 0;
    text-align: left;
    text-indent: -99em;
    text-shadow: none;
}

#ha-header .main-navigation-search button::after {
    position: relative;
    display: block;
    content: "\e0cb";
    font: 1.11111em/1 "RockSolid Icons";
    text-align: center;
    text-indent: 0;
    text-rendering: geometricprecision;
}

#ha-header .main-navigation-search button:hover,
#ha-header .main-navigation-search button:focus {
    background: transparent;
    color: #100f55;
}

/* --------------------------------------------------------------------------
   8. Produktnavigation unterhalb der Hauptnavigation
   -------------------------------------------------------------------------- */

#ha-header .sidebar-wrapper-left {
    clear: both;
    background: #4b4a83;
}

#ha-header .sub-navigation {
    margin-right: 0.6em;
    padding: 1em 1em 0.8em;
    border: 0;
    font-size: 0.86667em;
    text-align: center;
}

#ha-header .sub-navigation ul {
    margin: 0;
    padding: 0;
}

#ha-header .sub-navigation li {
    position: relative;
    display: inline-block;
}

#ha-header .sub-navigation li::before {
    display: none;
    content: none;
}

#ha-header .sub-navigation li.-mega {
    position: static;
}

#ha-header .sub-navigation li > a,
#ha-header .sub-navigation li > span.active,
#ha-header .sub-navigation li > span.trail,
#ha-header .sub-navigation li > span.forward {
    position: relative;
    display: block;
    margin: 5px;
    padding: 0 0.2em;
    border-bottom: 3px solid transparent;
    background-clip: padding-box;
    color: #fff;
    font-size: 1em;
    font-weight: normal;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    white-space: nowrap;
}

#ha-header .sub-navigation a,
#ha-header .sub-navigation li > span {
    margin: 0;
}

#ha-header .sub-navigation li > a:hover,
#ha-header .sub-navigation li > a:focus {
    border-bottom: 1px solid #fff;
    color: #fff;
    font-weight: normal;
    text-decoration: none;
}

#ha-header .sub-navigation li > a.active,
#ha-header .sub-navigation li > a.trail,
#ha-header .sub-navigation li > a.forward,
#ha-header .sub-navigation li > span.active,
#ha-header .sub-navigation li > span.trail,
#ha-header .sub-navigation li > span.forward {
    border-bottom: 1px solid #fff;
    background-color: transparent;
    color: #fff;
    font-weight: normal;
}

/* --------------------------------------------------------------------------
   9. Mobile-Menue-Trigger im Header
   -------------------------------------------------------------------------- */

#ha-header .mobileMenu {
    float: right;
    width: 60px;
    margin-right: 2.2em;
    padding: 0 0 0 0.5em;
}

#ha-header .mobile_menu_trigger {
    z-index: 200;
    display: none;
    float: right;
    width: 55px;
    height: 39px;
    margin: 0;
    padding: 25px 15px 25px 10px;
    cursor: pointer;
    font-size: 20px;
    line-height: 0;
    text-indent: -92em;
}

#ha-header .mobile_menu_trigger::after {
    display: block;
    height: 3px;
    margin-top: -8px;
    border-radius: 2px;
    background: #4b4a83;
    box-shadow: 0 7px #4b4a83, 0 14px #4b4a83;
    content: "";
}

/* --------------------------------------------------------------------------
   10. Ausgegebenes Mobile-Menue
   Das Plugin rendert dieses Element ausserhalb des Header-Wrappers.
   -------------------------------------------------------------------------- */

.mobile_menu {
    transform: translate3d(-100%, 0, 0) scale3d(1, 1, 1);
}

.mobile_menu .inner {
    overflow: auto;
    background: #fff;
}

.mobile_menu img {
    height: auto;
}

.mobile_menu ul {
    margin: 0;
    padding: 0;
}

.mobile_menu ul ul {
    background-color: rgba(162, 161, 202, 0.26);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

.mobile_menu li {
    position: relative;
    display: block;
    margin: 4px 0;
}

.mobile_menu li::before {
    content: none;
}

.mobile_menu li.submenu_show > ul {
    padding-bottom: 1em;
}

.mobile_menu a,
.mobile_menu span.active,
.mobile_menu span.trail,
.mobile_menu span.forward {
    display: block;
    padding: 0.64286em 0.92857em 0.57143em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    background-color: transparent;
    box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.5);
    color: #333;
    font-weight: 300;
    transition: background-color 0.6s ease-out, box-shadow 1s ease-out;
}

.mobile_menu a:hover,
.mobile_menu a:focus,
.mobile_menu span.active:hover,
.mobile_menu span.active:focus,
.mobile_menu span.trail:hover,
.mobile_menu span.trail:focus,
.mobile_menu span.forward:hover,
.mobile_menu span.forward:focus {
    outline: 0;
    background-color: rgba(75, 74, 131, 0.2);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease-out;
}

.mobile_menu a.active,
.mobile_menu span.active {
    background-color: rgba(75, 74, 131, 0.9);
    color: #fff;
}

.mobile_menu li li a,
.mobile_menu li li span.active,
.mobile_menu li li span.trail,
.mobile_menu li li span.forward {
    padding-left: 1.9em;
    border-bottom: 0;
    font-weight: normal;
}

.mobile_menu li li a:hover,
.mobile_menu li li a:focus,
.mobile_menu li li span.active:hover,
.mobile_menu li li span.active:focus,
.mobile_menu li li span.trail:hover,
.mobile_menu li li span.trail:focus,
.mobile_menu li li span.forward:hover,
.mobile_menu li li span.forward:focus {
    outline: 0;
    background-color: rgba(75, 74, 131, 0.25);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease-out;
}

.mobile_menu li li li a,
.mobile_menu li li li span.active,
.mobile_menu li li li span.trail,
.mobile_menu li li li span.forward {
    padding-left: 2.5em;
    border-bottom: 0;
    background-color: rgba(75, 74, 131, 0.3);
    font-weight: normal;
}

.mobile_menu::after {
    position: relative;
    display: block;
    color: #653b16;
    content: "\e009";
    font: 1.14286em/1 "RockSolid Icons";
    text-indent: 0;
    text-rendering: geometricprecision;
}

.LogoHeaderMobile {
    display: inline-block;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    text-align: center;
}

.LogoHeaderMobile h1 img {
    margin-left: 0;
}

.mobile_menu .logo {
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
}

.mobile_menu .logo a,
.mobile_menu .logo a:hover,
.mobile_menu .logo a:focus {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.mobileMenuKontaktBtn {
    width: 100%;
    margin: 0;
    padding: 0.5em 0;
    background: #4b4a83;
    color: #fff;
    text-align: center;
}

.mobileMenuKontaktBtn a,
.mobileMenuKontaktBtn a:hover {
    border: 0;
    box-shadow: none;
    color: #fff;
}

/* --------------------------------------------------------------------------
   11. Headroom-Ein-/Ausblendanimation
   -------------------------------------------------------------------------- */

#ha-header.animated {
    animation-duration: 0.5s;
    animation-fill-mode: both;
    will-change: transform, opacity;
}

@keyframes schlafstudioHeaderSlideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes schlafstudioHeaderSlideUp {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-100%);
    }
}

#ha-header.animated.slideDown {
    animation-name: schlafstudioHeaderSlideDown;
}

#ha-header.animated.slideUp {
    animation-name: schlafstudioHeaderSlideUp;
}

/* --------------------------------------------------------------------------
   12. Responsive Darstellung

   Tablet und Mobile bis 1250px:
   Zeile 1: Schnellanfrage | Telefonnummer
   Zeile 2: Logo | Warenkorb/Login | Suche | Hamburger

   Das padding-bottom der .page-header bleibt weiterhin dynamisch und wird
   ausschliesslich durch actions.js gesetzt.
   -------------------------------------------------------------------------- */

@media screen and (max-width: 1419px) {
    #ha-header .main-navigation {
        margin-bottom: 0.25em;
    }
}

@media screen and (max-width: 1250px) {

    /* --------------------------------------------------------------
       Kontaktleiste: sichtbar, aber kompakter
       -------------------------------------------------------------- */

    #ha-header > .topContainer {
        position: relative;
        z-index: 31;
        display: flex !important;
        align-items: center;
        width: 100%;
        height: auto;
        min-height: 2rem;
        margin: 0;
        padding: 0 0.75rem;
        border: 0;
        border-bottom: 1px solid #dedede;
        background: #f5f5f5;
    }

    #ha-header > .topContainer .icon-links {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    #ha-header > .topContainer .icon-links ul {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 1rem;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    #ha-header > .topContainer .icon-links li {
        float: none;
        min-width: 0;
        margin: 0;
        padding: 0;
        white-space: nowrap;
    }

    #ha-header > .topContainer .icon-links li:first-child {
        justify-self: start;
        text-align: left;
    }

    #ha-header > .topContainer .icon-links li:last-child {
        justify-self: end;
        text-align: right;
    }

    #ha-header > .topContainer .icon-links a {
        display: inline-flex;
        align-items: center;
        min-height: 2rem;
        margin: 0;
        padding: 0;
        border: 0;
        font-size: 0.75rem;
        line-height: 1.2;
        white-space: nowrap;
    }

    #ha-header > .topContainer .icon-links a[data-icon]::before {
        flex: 0 0 auto;
        margin-right: 0.2rem;
        font-size: 0.85rem;
    }

    /* --------------------------------------------------------------
       Zweite Headerzeile als gemeinsames Grid
       -------------------------------------------------------------- */

    #ha-header > .main-navigation-wrapper {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) auto auto;
        grid-template-areas: "logo shop search menu";
        align-items: center;
        column-gap: 0.2rem;
        box-sizing: border-box;
        width: 100%;
        min-height: 4.5rem;
        margin: 0;
        padding: 0.45rem 0.75rem;
        background: #fff;
    }

    #ha-header > .main-navigation-wrapper::before,
    #ha-header > .main-navigation-wrapper::after {
        display: none;
        content: none;
    }

    /*
     * Der Zwischenwrapper bleibt im HTML erhalten, nimmt aber selbst keinen
     * eigenen Grid-Platz ein. Suche und Mobile-Menue werden dadurch direkte
     * Grid-Elemente der .main-navigation-wrapper.
     */
    #ha-header > .main-navigation-wrapper > .main-navigation-inside {
        display: contents !important;
    }

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

    #ha-header > .main-navigation-wrapper > .logo {
        grid-area: logo;
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        justify-self: start;
        align-self: center;
        float: none;
        min-width: 0;
        width: auto;
        max-width: none;
        height: auto;
        margin: 0;
        padding: 0;
        overflow: visible;
        text-align: left;
        transform: none;
    }

    #ha-header > .main-navigation-wrapper > .logo a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        min-width: 0;
        width: auto;
        height: auto;
        overflow: visible;
        text-align: left;
    }

    #ha-header > .main-navigation-wrapper > .logo img {
        display: block;
        width: auto;
        max-width: clamp(8.25rem, 38vw, 9.5rem);
        min-width: 0;
        height: auto;
        max-height: 3.25rem;
        margin: 0;
        padding: 0;
        object-position: left center;
    }

    /* --------------------------------------------------------------
       Warenkorb und Login
       -------------------------------------------------------------- */

    #ha-header > .main-navigation-wrapper > .mod_customnav.mod_navigation.sub-navigation {
        grid-area: shop;
        position: static;
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        justify-self: stretch;
        gap: 0.05rem;
        float: none;
        min-width: 0;
        width: auto;
        height: auto;
        margin: 0;
        padding: 0;
        overflow: visible;
        text-align: right;
        transform: none;
    }

    #ha-header > .main-navigation-wrapper > .mod_customnav.mod_navigation.sub-navigation > a {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        width: 2.5rem;
        height: 2.5rem;
        margin: 0;
        padding: 0;
        border: 0;
        line-height: 1;
        text-decoration: none;
    }

    #ha-header > .main-navigation-wrapper > .mod_customnav.mod_navigation.sub-navigation > a::before {
        margin: 0;
        font-size: 1.4rem;
        line-height: 1;
    }

    #ha-header a.btnWarenkorb span.cart_items_w {
        top: 0.05rem;
        right: -0.05rem;
        margin: 0;
    }

    #ha-header a.btnWarenkorb span.cart_items_w #getQuantity {
        min-width: 1rem;
        height: 1rem;
        padding: 0 0.2rem;
        border-radius: 999px;
        font-size: 0.62rem;
        line-height: 1;
    }

    /* --------------------------------------------------------------
       Desktopnavigation und Produktnavigation ausblenden
       -------------------------------------------------------------- */

    #ha-header > .main-navigation-wrapper > .main-navigation-inside > .main-navigation,
    #ha-header > .main-navigation-wrapper > .sidebar-wrapper-left {
        display: none !important;
    }

    /* --------------------------------------------------------------
       Suche als kompaktes Icon
       -------------------------------------------------------------- */

    #ha-header > .main-navigation-wrapper > .main-navigation-inside > .main-navigation-search {
        grid-area: search;
        position: static;
        display: flex !important;
        justify-self: end;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        width: 2.5rem;
        height: 2.5rem;
        margin: 0;
        padding: 0;
        overflow: visible;
        transform: none;
    }

    #ha-header > .main-navigation-wrapper > .main-navigation-inside > .main-navigation-search input {
        display: none;
    }

    #ha-header > .main-navigation-wrapper > .main-navigation-inside > .main-navigation-search button {
        position: static;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        width: 2.5rem;
        height: 2.5rem;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        color: #4b4a83;
        cursor: pointer;
    }

    #ha-header > .main-navigation-wrapper > .main-navigation-inside > .main-navigation-search button::after {
        font-size: 1.35rem;
        line-height: 1;
    }

    /* --------------------------------------------------------------
       Hamburger
       -------------------------------------------------------------- */

    #ha-header > .main-navigation-wrapper > .main-navigation-inside > .mobileMenu {
        grid-area: menu;
        position: static;
        display: flex !important;
        justify-self: end;
        align-items: center;
        justify-content: center;
        float: none;
        width: 2.5rem;
        height: 2.5rem;
        margin: 0;
        padding: 0;
        overflow: visible;
        transform: none;
    }

    #ha-header > .main-navigation-wrapper > .main-navigation-inside > .mobileMenu .mobile_menu_trigger {
        display: flex !important;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        float: none;
        width: 2.5rem;
        height: 2.5rem;
        margin: 0;
        padding: 0;
        overflow: hidden;
        cursor: pointer;
        font-size: 0;
        line-height: 1;
        text-indent: -9999px;
    }

    #ha-header > .main-navigation-wrapper > .main-navigation-inside > .mobileMenu .mobile_menu_trigger::after {
        display: block;
        width: 1.45rem;
        height: 2px;
        margin: 0;
        border-radius: 2px;
        background: #4b4a83;
        box-shadow: 0 6px #4b4a83, 0 -6px #4b4a83;
        content: "";
    }

    #back-top {
        display: none;
    }
}

@media screen and (min-width: 1251px) {
    #ha-header .mobileMenu {
        display: none;
    }
}

@media screen and (max-width: 420px) {
    #ha-header > .topContainer {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }

    #ha-header > .topContainer .icon-links ul {
        gap: 0.5rem;
    }

    #ha-header > .topContainer .icon-links a {
        font-size: 0.68rem;
    }

    #ha-header > .topContainer .icon-links a[data-icon]::before {
        margin-right: 0.12rem;
        font-size: 0.78rem;
    }

    #ha-header > .main-navigation-wrapper {
        min-height: 4.35rem;
        column-gap: 0.1rem;
        padding: 0.4rem 0.5rem;
    }

    #ha-header > .main-navigation-wrapper > .logo img {
        max-width: clamp(7.6rem, 34vw, 8.7rem);
        max-height: 3rem;
    }

    #ha-header > .main-navigation-wrapper > .mod_customnav.mod_navigation.sub-navigation > a,
    #ha-header > .main-navigation-wrapper > .main-navigation-inside > .main-navigation-search,
    #ha-header > .main-navigation-wrapper > .main-navigation-inside > .main-navigation-search button,
    #ha-header > .main-navigation-wrapper > .main-navigation-inside > .mobileMenu,
    #ha-header > .main-navigation-wrapper > .main-navigation-inside > .mobileMenu .mobile_menu_trigger {
        width: 2.3rem;
        height: 2.3rem;
    }
}

@media screen and (max-width: 360px) {
    #ha-header > .topContainer .icon-links a {
        font-size: 0.64rem;
    }

    #ha-header > .main-navigation-wrapper {
        padding-right: 0.4rem;
        padding-left: 0.4rem;
    }

    #ha-header > .main-navigation-wrapper > .logo img {
        max-width: 7.25rem;
    }

    #ha-header > .main-navigation-wrapper > .mod_customnav.mod_navigation.sub-navigation > a,
    #ha-header > .main-navigation-wrapper > .main-navigation-inside > .main-navigation-search,
    #ha-header > .main-navigation-wrapper > .main-navigation-inside > .main-navigation-search button,
    #ha-header > .main-navigation-wrapper > .main-navigation-inside > .mobileMenu,
    #ha-header > .main-navigation-wrapper > .main-navigation-inside > .mobileMenu .mobile_menu_trigger {
        width: 2.2rem;
        height: 2.2rem;
    }
}

/* --------------------------------------------------------------------------
   13. Druck
   -------------------------------------------------------------------------- */

@media print {
    .page-header {
        padding-bottom: 0 !important;
    }

    #ha-header.header--fixed {
        position: static !important;
        transform: none !important;
    }
}
