/* -- Partial: STREICHER Base: Oben Base -- */

:root {
    --oben_bg: rgba(var(--color_base_color), var(--color_base_alpha085));
    --oben_color: rgb(var(--color_weiss));
    --oben_maxwidth: var(--max-with90);
    --oben_logo_width: clamp(90px, calc(79.091px + 3.409vw), 120px); /* min. 90px -> 320px, max. 120px -> 1200px */
}

#oben {
    width: 100%;
    float: left;
    clear: both;
    margin: 0;
    position: fixed;
    top: 0;
    left: auto;
    background: var(--oben_bg);
    color: var(--oben_color);
    z-index: 5;
    font-family: var(--hl_fontfamily_1);
    font-size: var(--font-size_14);
    line-height: var(--font_lineheigt);
    font-weight: var(--hl_fontweigt_400);
    text-transform: uppercase;
    max-width: var(--absolute_width);
}

#oben:has(.na_hauptnavi.is-mobile) {
    --oben_bg: rgba(var(--color_base_color), var(--color_base_alpha1));
}

#oben *,
#oben a {
    color: var(--oben_color);   
}

#oben a {
    text-decoration: none;
}

#oben a::before {
    display: none;
}

#oben > .rahmen {
    width: var(--oben_maxwidth);
    margin: 0 auto;
}

.ob_box {
    width: 100%;
    float: left;
    clear: both;
    display: flex;
    align-items: flex-start;
    gap: var(--paddingl50);
}

/* -- Logo - -*/
.ob_logo { 
    position: relative;
    max-width: var(--oben_logo_width);
    width: 100%;
    float: left;
    clear: both;
    flex: 0 0 var(--oben_logo_width);
}

.ob_logo > .frame {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

/* -- Mobile Navigation sichtbar -- */
#oben:has(.na_hauptnavi.is-mobile) .ob_logo > .frame {
    position: static;
}

.ob_logo .ce-gallery,
.ob_logo .ce-gallery .ce-row,
.ob_logo .ce-gallery .ce-column,
.ob_logo .ce-gallery .image {
    margin: 0;
    padding: 0;
    width: 100%;
    float: left;
    clear: both;
    display: block;
}

.ob_logo .ce-gallery a,
.ob_logo .ce-gallery img {
    display: block;
}

/* -- Navibereich -- */
.ob_navibereich {
    flex: 1 1 auto;
    min-width: 0; 
    margin-top: var(--padding10);
}

/* -- Sonderfall, wenn es keine Navi, Quicklinks oben, Suche, Sprache gibt -- */
.ob_navibereich:not(:has(.ob_hauptnavi > *)):not(:has(.ob_quicklinks > *)):not(:has(.ob_funktionen > *)) {
    margin-top: 0;
}

/* -- Wenn es irgendwas in oben gbit. --*/
.ob_navibereich:not(:has(.ob_hauptnavi > *)):has(.ob_quicklinks > *) .ob_quicklinks,
.ob_navibereich:not(:has(.ob_hauptnavi > *)):has(.ob_funktionen > *) .ob_funktionen {
    margin-bottom: var(--padding10);
}



/* -- Quicklinks -- */
.ob_qf {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;     
    container-type: inline-size;
    container-name: qf;
}

.ob_quicklinks {
    width: 100%;
    float: left;
    clear: both;
    min-width: 0;
    white-space: nowrap;
}

.ob_quicklinks ul {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    list-style: none;

    column-gap: var(--padding10);
    row-gap: 0;
}

.ob_quicklinks li {
    flex: 0 0 auto;
    white-space: nowrap;
}

.ob_quicklinks li a {
    min-height: calc(var(--padding10) * 2.4);
    line-height: calc(var(--padding10) * 2.4);
    display: block;
}

.ob_quicklinks .oben_suche.resp {
    display: none;
    width: 100%;
    float: left;
    clear: both;
}

/* -- Funktionen -- */
.ob_funktionen {
    display: flex;
    align-items: center;
    column-gap: var(--padding1020);
    justify-self: end;
    white-space: nowrap;
    margin-left: var(--paddingl50);
}

/* -- Sprachen -- */
.ob_langnav {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    list-style: none;
    column-gap: var(--padding10);
    row-gap: 0;
}

.ob_langnav li {
    display: block;
}

.ob_langnav li a {
    display: block;
    min-height: calc(var(--padding10) * 2.4);
    min-width: calc(var(--padding10) * 2.4);
    line-height: calc(var(--padding10) * 2.4);
    text-align: center;
}

.ob_langnav li.act a {
    font-weight: var(--hl_fontweigt_700);
}

.ob_funktionen:has(.oben_sprachen + .oben_suche) .oben_sprachen {
    border-right: 1px solid var(--oben_color);
    padding-right: var(--padding1020);
}

/* -- Suche -- */
.ob_funktionen .oben_suche a.suchbutton {
    width: calc(var(--padding10) * 2.4);
    height: calc(var(--padding10) * 2.4);
    position: relative;
    display: block;
    overflow: hidden;
    text-indent: -9999px;
}

.ob_funktionen .oben_suche a.suchbutton::after {
    content: '';
    display: block;
    background-color: var(--oben_color);
    mask-image: url(../../../images/suche.svg);
    mask-size: calc(var(--padding10) * 1.5) auto;
    mask-repeat: no-repeat;
    mask-position: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* -- Hauptnavigationszeile -- */
.ob_hauptnavi {
    width: 100%;
    float: left;
    clear: both;
}


/* -- Abfrage, wenn der Mob-Button erscheint, dann sollen die Quicklinks weg. -- */
.ob_navibereich:has(.na_hauptnavi.is-mobile) .ob_quicklinks {
    display: none;
}

/* -- Responsive -- */
@media (max-width: 500px) {
    .oben_suche {
        display: none;

    }

    .ob_funktionen:has(.oben_sprachen + .oben_suche) .oben_sprachen {
        padding: 0;
        border: 0;
    }

    .ob_quicklinks .oben_suche.resp {
        display: inline;
        float: none;
        clear: none;
        width: auto;

    }

    .ob_quicklinks .oben_suche.resp a {
        display: inline-block;
        padding: 0 calc(var(--padding10) / 2);
        line-height: calc(var(--padding10) * 2.4);
    }
}

@media (max-width: 400px) {
    .ob_funktionen {
        display: none;
    }

}
