/*
 * B3 INTERACTIVE | Flyout-Menü
 * Datei: /wp-content/b3/mainmenu.css
 */

:root {
    --b3-menu-green: #0f0;
    --b3-menu-black: #000;
    --b3-menu-white: #fff;
    --b3-menu-width: 1440px;
    --b3-menu-height: 88px;
    --b3-menu-gap: 34px;
    --b3-menu-flyout-width: 270px;
}

body.page-template.page-id-27238 .aux-container {
    padding-top: 0 !important;
}

.b3-flyout-header,
.b3-flyout-header * {
    box-sizing: border-box;
}

.b3-flyout-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    color: var(--b3-menu-black);
    font-family: inherit;
}

.b3-flyout-header.is-overlay {
    position: absolute;
    top: 0;
    left: 0;
}

.b3-flyout-header__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
    align-items: center;
    width: min(100%, var(--b3-menu-width));
    min-height: var(--b3-menu-height);
    margin: 0 auto;
    padding: 0 34px;
}

.b3-flyout-header,
.b3-flyout-header button,
.b3-flyout-header input {
    font-family: "Corpid-H", Sans-serif;
}


/* =========================================================
   TOOLS LINKS
   ========================================================= */

.b3-flyout-header__tools {
    display: flex;
    align-items: center;
    justify-self: start;
    gap: 16px;
    min-width: 0;
}


/* Sprachumschaltung */

.b3-flyout-header__language {
    order: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    height: 34px;
    font-size: 14px;
    font-weight: 600;
    line-height: 34px;
    white-space: nowrap;
}

.b3-flyout-lang {
    display: inline-flex;
    align-items: center;
    height: 34px;
    color: var(--b3-menu-black);
    text-decoration: none;
}

.b3-flyout-lang:hover,
.b3-flyout-lang:focus-visible,
.b3-flyout-lang.is-active {
    color: var(--b3-menu-green);
    outline: none;
}

.b3-flyout-lang-separator {
    display: inline-flex;
    align-items: center;
    height: 34px;
    margin: 0 5px;
    color: var(--b3-menu-black);
}


/* Suche */

.b3-flyout-header__search {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 34px;
}

.b3-flyout-search-toggle {
    display: block;
    width: 34px;
    height: 34px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent url('search.svg') center / 24px 24px no-repeat;
    cursor: pointer;
}

.b3-flyout-search-toggle:hover,
.b3-flyout-search-toggle:focus-visible {
    outline: none;
    opacity: .65;
}


/* =========================================================
   HAUPTNAVIGATION
   ========================================================= */

.b3-flyout-header__nav {
    display: flex;
    justify-content: center;
    justify-self: center;
    min-width: 0;
	margin-top: 26px;
}

.b3-flyout-menu,
.b3-flyout-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.b3-flyout-menu {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: var(--b3-menu-gap);
}

.b3-flyout-menu > li {
    position: relative;
    display: flex;
    align-items: center;
}

.b3-flyout-menu a {
    color: var(--b3-menu-black);
    text-decoration: none;
}

.b3-flyout-menu > li > a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: var(--b3-menu-height);
    padding: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .035em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color .18s ease;
}


/* Hauptmenü Hover = Grün */

.b3-flyout-menu > li:hover > a,
.b3-flyout-menu > li:focus-within > a,
.b3-flyout-menu > li.current-menu-item > a,
.b3-flyout-menu > li.current-menu-ancestor > a {
    color: var(--b3-menu-green);
}


/* grüne Linie */

.b3-flyout-menu > li > a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 19px;
    left: 0;
    height: 2px;
    background: var(--b3-menu-green);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .18s ease;
}

.b3-flyout-menu > li:hover > a::after,
.b3-flyout-menu > li:focus-within > a::after,
.b3-flyout-menu > li.current-menu-item > a::after,
.b3-flyout-menu > li.current-menu-ancestor > a::after {
    transform: scaleX(1);
}


/* =========================================================
   FLYOUT
   ========================================================= */

.b3-flyout-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    display: block;
    width: var(--b3-menu-flyout-width);
    min-width: 100%;
    padding: 10px 0;
    background: var(--b3-menu-black);
    box-shadow: 0 8px 25px rgb(0 0 0 / 18%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition:
        opacity .16s ease,
        transform .16s ease,
        visibility .16s ease;
}

.b3-flyout-menu li:hover > .sub-menu,
.b3-flyout-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.b3-flyout-menu .sub-menu li {
    position: relative;
}

.b3-flyout-menu .sub-menu a {
    display: block;
    padding: 10px 18px;
    color: var(--b3-menu-white);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    white-space: normal;
}

.b3-flyout-menu .sub-menu a:hover,
.b3-flyout-menu .sub-menu a:focus-visible,
.b3-flyout-menu .sub-menu .current-menu-item > a {
    color: var(--b3-menu-green);
    outline: none;
}


/* weitere Flyout-Ebenen */

.b3-flyout-menu .sub-menu .sub-menu {
    top: -10px;
    left: 100%;
    margin-left: 1px;
}


/* =========================================================
   LOGO
   ========================================================= */

.b3-flyout-header__logo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    width: 100%;
    margin: 0;
}

.b3-flyout-header__logo a {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    line-height: 0;
}

.b3-flyout-header__logo img {
    display: block;
    width: auto;
    max-width: 135px;
    max-height: 44px;
    margin-left: auto;
}

.b3-flyout-logo-fallback {
    color: var(--b3-menu-black);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
}


/* =========================================================
   SUCHPANEL
   ========================================================= */

.b3-flyout-search-panel {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 50;
    width: 100%;
    padding: 18px 34px;
    background: var(--b3-menu-black);
}

.b3-flyout-search-panel[hidden] {
    display: none;
}

.b3-flyout-search-form {
    display: flex;
    width: min(100%, var(--b3-menu-width));
    margin: 0 auto;
}

.b3-flyout-search-form label {
    flex: 1 1 auto;
}

.b3-flyout-search-form input[type='search'] {
    width: 100%;
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid var(--b3-menu-white);
    border-radius: 0;
    background: var(--b3-menu-white);
    color: var(--b3-menu-black);
    font: inherit;
}

.b3-flyout-search-form button {
    min-height: 44px;
    margin-left: 8px;
    padding: 9px 20px;
    border: 1px solid var(--b3-menu-green);
    border-radius: 22px;
    background: var(--b3-menu-black);
    color: var(--b3-menu-white);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.b3-flyout-search-form button:hover,
.b3-flyout-search-form button:focus-visible {
    background: var(--b3-menu-green);
    color: var(--b3-menu-black);
    outline: none;
}


/* =========================================================
   HILFSKLASSEN
   ========================================================= */

.b3-flyout-menu-missing {
    padding: 10px 15px;
    background: var(--b3-menu-black);
    color: var(--b3-menu-white);
    font-size: 13px;
}

.b3-flyout-header .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* =========================================================
   MOBILE / OFF-CANVAS
   ========================================================= */

.b3-flyout-mobile-toggle,
.b3-flyout-offcanvas,
.b3-flyout-offcanvas-backdrop {
    display: none;
}


@media (max-width: 1024px) {

    .b3-flyout-header__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 72px;
        padding-right: 22px;
        padding-left: 22px;
    }

    .b3-flyout-header__tools {
        gap: 14px;
    }

    .b3-flyout-header__nav {
        display: none;
    }


    /* Hamburger */

    .b3-flyout-mobile-toggle {
        order: 0;
        position: relative;
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        width: 34px;
        height: 34px;
        padding: 5px;
        border: 0;
        background: transparent;
        cursor: pointer;
		margin-top: 14px;
  }
    }

    .b3-flyout-mobile-toggle > span[aria-hidden='true'] {
        display: block;
        width: 24px;
        height: 2px;
        margin: 3px 0;
        background: var(--b3-menu-black);
    }


    .b3-flyout-header__language {
        order: 1;
    }

    .b3-flyout-header__search {
        order: 2;
    }


    /* Logo mobil ebenfalls rechts */

    .b3-flyout-header__logo {
        justify-self: end;
    }

    .b3-flyout-header__logo img {
        max-width: 112px;
        max-height: 38px;
    }


    /* Backdrop */

    .b3-flyout-offcanvas-backdrop {
        position: fixed;
        inset: 0;
        z-index: 9998;
        display: block;
        background: rgb(0 0 0 / 45%);
    }

    .b3-flyout-offcanvas-backdrop[hidden] {
        display: none;
    }


    /* Offcanvas */

    .b3-flyout-offcanvas {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 9999;
        display: block;
        width: min(86vw, 390px);
        overflow-y: auto;
        background: var(--b3-menu-white);
        box-shadow: 8px 0 30px rgb(0 0 0 / 20%);
        transform: translateX(-105%);
        transition: transform .24s ease;
        visibility: hidden;
    }

    .b3-flyout-offcanvas.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .b3-flyout-offcanvas__head {
        display: flex;
        justify-content: flex-end;
        min-height: 66px;
        padding: 14px 18px;
        border-bottom: 1px solid rgb(0 0 0 / 10%);
    }

    .b3-flyout-offcanvas-close {
        width: 38px;
        height: 38px;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--b3-menu-black);
        font-size: 34px;
        line-height: 1;
        cursor: pointer;
		margin-top: 20px;
    }

    .b3-flyout-offcanvas__nav {
        padding: 10px 0 30px;
    }

    .b3-offcanvas-menu,
    .b3-offcanvas-menu ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .b3-offcanvas-menu li {
        position: relative;
        border-bottom: 1px solid rgb(0 0 0 / 9%);
    }

    .b3-offcanvas-menu a {
        display: block;
        padding: 15px 56px 15px 22px;
        color: var(--b3-menu-black);
        font-size: 15px;
        font-weight: 600;
        line-height: 1.3;
        text-decoration: none;
    }

    .b3-offcanvas-menu > li > a {
        text-transform: uppercase;
    }

    .b3-offcanvas-menu .sub-menu {
        display: none;
        background: rgb(0 0 0 / 3%);
    }

    .b3-offcanvas-menu .is-submenu-open > .sub-menu {
        display: block;
    }

    .b3-offcanvas-menu .sub-menu a {
        padding-left: 36px;
        font-size: 14px;
        font-weight: 400;
        text-transform: none;
    }

    .b3-offcanvas-menu .sub-menu .sub-menu a {
        padding-left: 52px;
    }

    .b3-offcanvas-submenu-toggle {
        position: absolute;
        top: 6px;
        right: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--b3-menu-green);
        font-size: 27px;
        line-height: 1;
        cursor: pointer;
    }

    .b3-offcanvas-menu a:hover,
    .b3-offcanvas-menu a:focus-visible,
    .b3-offcanvas-menu .current-menu-item > a,
    .b3-offcanvas-menu .current-menu-ancestor > a {
        color: var(--b3-menu-green);
        outline: none;
    }

    html.b3-offcanvas-open,
    html.b3-offcanvas-open body {
        overflow: hidden;
    }
}


@media (max-width: 540px) {

    .b3-flyout-header__inner {
        padding-right: 14px;
        padding-left: 14px;
    }

    .b3-flyout-header__tools {
        gap: 10px;
    }

    .b3-flyout-header__logo img {
        max-width: 90px;
        max-height: 33px;
    }

    .b3-flyout-header__language {
        font-size: 13px;
    }

    .b3-flyout-search-toggle {
        width: 30px;
        height: 30px;
        background-size: 20px 20px;
    }
}


@media (min-width: 320px) {

.b3-flyout-header__logo {
 
  width: 50%;
  
}

}

/* B3-OFFCANVAS-V025
 * Responsive Struktur ab Version 0.2.5.
 * Dieser Block wird bei einem Plugin-Update einmalig an /wp-content/b3/mainmenu.css angehängt.
 */

.b3-flyout-header__inner {
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
}

.b3-flyout-header__tools {
    display: flex;
    align-items: center;
    justify-self: start;
    gap: 16px;
    min-width: 0;
}

.b3-flyout-header__language {
    order: 1;
    justify-content: flex-start;
    margin-left: 0;
}

.b3-flyout-header__search {
    order: 2;
}

.b3-flyout-search-toggle {
    background-image: url('search.svg');
}

.b3-flyout-header__nav {
    justify-self: center;
}

.b3-flyout-header__logo {
    justify-self: end;
    margin-left: 0;
}

.b3-flyout-mobile-toggle,
.b3-flyout-offcanvas,
.b3-flyout-offcanvas-backdrop {
    display: none;
}

@media (max-width: 1024px) {
    .b3-flyout-header__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 72px;
        padding-right: 22px;
        padding-left: 22px;
    }

    .b3-flyout-header__tools {
        gap: 14px;
    }

    .b3-flyout-header__nav {
        display: none;
    }

    .b3-flyout-mobile-toggle {
        order: 0;
        position: relative;
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        width: 34px;
        height: 34px;
        padding: 5px;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .b3-flyout-mobile-toggle > span[aria-hidden='true'] {
        display: block;
        width: 24px;
        height: 2px;
        margin: 3px 0;
        background: var(--b3-menu-black);
    }

    .b3-flyout-header__language {
        order: 1;
    }

    .b3-flyout-header__search {
        order: 2;
    }

    .b3-flyout-header__logo img {
        max-width: 150px;
        max-height: 50px;
    }

    .b3-flyout-offcanvas-backdrop {
        position: fixed;
        inset: 0;
        z-index: 9998;
        display: block;
        background: rgb(0 0 0 / 45%);
    }

    .b3-flyout-offcanvas-backdrop[hidden] {
        display: none;
    }

    .b3-flyout-offcanvas {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 9999;
        display: block;
        width: min(86vw, 390px);
        overflow-y: auto;
        background: var(--b3-menu-white);
        box-shadow: 8px 0 30px rgb(0 0 0 / 20%);
        transform: translateX(-105%);
        transition: transform .24s ease;
        visibility: hidden;
    }

    .b3-flyout-offcanvas.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .b3-flyout-offcanvas__head {
        display: flex;
        justify-content: flex-end;
        min-height: 66px;
        padding: 14px 18px;
        border-bottom: 1px solid rgb(0 0 0 / 10%);
    }

    .b3-flyout-offcanvas-close {
        width: 38px;
        height: 38px;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--b3-menu-black);
        font-size: 34px;
        line-height: 1;
        cursor: pointer;
    }

    .b3-flyout-offcanvas__nav {
        padding: 10px 0 30px;
    }

    .b3-offcanvas-menu,
    .b3-offcanvas-menu ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .b3-offcanvas-menu li {
        position: relative;
        border-bottom: 1px solid rgb(0 0 0 / 9%);
    }

    .b3-offcanvas-menu a {
        display: block;
        padding: 15px 56px 15px 22px;
        color: var(--b3-menu-black);
        font-size: 15px;
        font-weight: 600;
        line-height: 1.3;
        text-decoration: none;
    }

    .b3-offcanvas-menu > li > a {
        text-transform: uppercase;
    }

    .b3-offcanvas-menu .sub-menu {
        display: none;
        background: rgb(0 0 0 / 3%);
    }

    .b3-offcanvas-menu .is-submenu-open > .sub-menu {
        display: block;
    }

    .b3-offcanvas-menu .sub-menu a {
        padding-left: 36px;
        font-size: 14px;
        font-weight: 400;
        text-transform: none;
    }

    .b3-offcanvas-menu .sub-menu .sub-menu a {
        padding-left: 52px;
    }

    .b3-offcanvas-submenu-toggle {
        position: absolute;
        top: 6px;
        right: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--b3-menu-green);
        font-size: 27px;
        line-height: 1;
        cursor: pointer;
    }

    .b3-offcanvas-menu a:hover,
    .b3-offcanvas-menu a:focus-visible,
    .b3-offcanvas-menu .current-menu-item > a,
    .b3-offcanvas-menu .current-menu-ancestor > a {
        color: var(--b3-menu-green);
        outline: none;
    }

    html.b3-offcanvas-open,
    html.b3-offcanvas-open body {
        overflow: hidden;
    }
}

@media (max-width: 540px) {
    .b3-flyout-header__inner {
        padding-right: 14px;
        padding-left: 14px;
    }

    .b3-flyout-header__tools {
        gap: 10px;
    }

    .b3-flyout-header__logo img {
        max-width: 120px;
        max-height: 44px;
    }

    .b3-flyout-header__language {
        font-size: 13px;
    }

    .b3-flyout-search-toggle {
        width: 30px;
        height: 30px;
        background-size: 20px 20px;
    }
}
