/*
|--------------------------------------------------------------------------
| Hard Worker City
| Zentrales Dropdown-Menü – geschütztes globales Layout
|--------------------------------------------------------------------------
|
| Diese Datei verhindert, dass einzelne Seiten-CSS-Dateien das zentrale
| Header- und Dropdown-Menü verändern.
|
*/

/*
|--------------------------------------------------------------------------
| Menübereich vollständig isolieren
|--------------------------------------------------------------------------
*/

html body .hwc-site-header,
html body .hwc-site-header *,
html body #hwc-dropdown-menu,
html body #hwc-dropdown-menu * {
    box-sizing: border-box !important;
}

/*
|--------------------------------------------------------------------------
| Menüknopf rechts oben
|--------------------------------------------------------------------------
*/

html body .hwc-site-header .hwc-main-navigation {
    position: relative !important;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

html body .hwc-site-header #hwc-menu-button {
    display: inline-flex !important;
    width: auto !important;
    min-width: 110px !important;
    max-width: none !important;
    min-height: 44px !important;
    height: 44px !important;

    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;

    margin: 0 !important;
    padding: 8px 15px !important;

    border: 1px solid rgba(99, 235, 155, 0.48) !important;
    border-radius: 11px !important;

    background: #59e895 !important;
    color: #06120b !important;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif !important;

    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;

    box-shadow: none !important;
    cursor: pointer !important;
    appearance: none !important;
}

html body .hwc-site-header #hwc-menu-button:hover,
html body .hwc-site-header #hwc-menu-button[aria-expanded="true"] {
    border-color: #9dffc3 !important;
    background: #79f2a9 !important;
    color: #041008 !important;
    transform: translateY(-1px) !important;
}

html body .hwc-site-header #hwc-menu-button .hwc-menu-button__icon {
    display: flex !important;
    width: 18px !important;
    height: auto !important;
    flex: 0 0 18px !important;
    flex-direction: column !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

html body .hwc-site-header #hwc-menu-button .hwc-menu-button__icon span {
    display: block !important;
    width: 18px !important;
    height: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: currentColor !important;
}

html body .hwc-site-header #hwc-menu-button .hwc-menu-button__label {
    display: inline !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

html body .hwc-site-header #hwc-menu-button .hwc-menu-button__arrow {
    display: inline-block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    font-size: 10px !important;
    line-height: 1 !important;
}

/*
|--------------------------------------------------------------------------
| Dropdown-Grundfläche
|--------------------------------------------------------------------------
*/

html body #hwc-dropdown-menu {
    position: absolute !important;
    z-index: 99999 !important;

    top: calc(100% + 12px) !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;

    display: block !important;
    width: 296px !important;
    min-width: 296px !important;
    max-width: calc(100vw - 24px) !important;
    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    border: 1px solid rgba(99, 235, 155, 0.43) !important;
    border-radius: 15px !important;

    background: rgba(7, 25, 15, 0.99) !important;
    color: #f2fff7 !important;

    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.52) !important;

    text-align: left !important;
    transform-origin: top right !important;
}

html body #hwc-dropdown-menu[hidden] {
    display: none !important;
}

/*
|--------------------------------------------------------------------------
| Dropdown-Kopf
|--------------------------------------------------------------------------
*/

html body #hwc-dropdown-menu .hwc-dropdown-menu__header {
    display: flex !important;
    width: 100% !important;
    min-height: 48px !important;

    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;

    margin: 0 !important;
    padding: 11px 13px 11px 16px !important;

    border: 0 !important;
    border-bottom: 1px solid rgba(99, 235, 155, 0.18) !important;
    border-radius: 0 !important;

    background: rgba(99, 235, 155, 0.045) !important;
    color: #a5ffc8 !important;

    box-shadow: none !important;
}

html body #hwc-dropdown-menu .hwc-dropdown-menu__header > span {
    display: inline-block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;

    color: #a5ffc8 !important;

    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: 1.2px !important;
    text-transform: uppercase !important;
}

html body #hwc-dropdown-menu .hwc-dropdown-menu__close {
    display: grid !important;
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;

    place-items: center !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid transparent !important;
    border-radius: 8px !important;

    background: transparent !important;
    color: #bdd2c4 !important;

    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1 !important;

    box-shadow: none !important;
    cursor: pointer !important;
}

html body #hwc-dropdown-menu .hwc-dropdown-menu__close:hover {
    border-color: rgba(99, 235, 155, 0.22) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}

/*
|--------------------------------------------------------------------------
| Menüpunktliste
|--------------------------------------------------------------------------
*/

html body #hwc-dropdown-menu .hwc-dropdown-menu__items {
    display: flex !important;
    width: 100% !important;
    max-height: min(64vh, 530px) !important;

    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 4px !important;

    margin: 0 !important;
    padding: 9px !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
}

/*
|--------------------------------------------------------------------------
| Jeder einzelne Menüpunkt
|--------------------------------------------------------------------------
*/

html body #hwc-dropdown-menu .hwc-dropdown-menu__items a.hwc-dropdown-item,
html body #hwc-dropdown-menu a.hwc-dropdown-item {
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 46px !important;
    height: 46px !important;

    grid-template-columns: 36px minmax(0, 1fr) 14px !important;
    grid-template-rows: 1fr !important;

    align-items: center !important;
    justify-items: stretch !important;
    gap: 9px !important;

    margin: 0 !important;
    padding: 5px 9px 5px 6px !important;

    overflow: hidden !important;

    border: 1px solid transparent !important;
    border-radius: 10px !important;

    background: transparent !important;
    color: #bdd2c4 !important;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif !important;

    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;

    text-align: left !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;

    box-shadow: none !important;
    transform: none !important;
}

/*
|--------------------------------------------------------------------------
| Hover und aktiver Menüpunkt
|--------------------------------------------------------------------------
*/

html body #hwc-dropdown-menu .hwc-dropdown-menu__items a.hwc-dropdown-item:hover {
    border-color: rgba(99, 235, 155, 0.25) !important;
    background: rgba(99, 235, 155, 0.075) !important;
    color: #a5ffc8 !important;
    transform: translateX(2px) !important;
}

html body #hwc-dropdown-menu .hwc-dropdown-menu__items a.hwc-dropdown-item.is-active,
html body #hwc-dropdown-menu .hwc-dropdown-menu__items a.hwc-dropdown-item[aria-current="page"] {
    min-height: 46px !important;
    height: 46px !important;

    border: 1px solid rgba(99, 235, 155, 0.42) !important;
    border-radius: 10px !important;

    background: rgba(99, 235, 155, 0.11) !important;
    color: #a5ffc8 !important;

    box-shadow: none !important;
    transform: none !important;
}

/*
|--------------------------------------------------------------------------
| Verhindert den übergroßen grünen aktiven Menüpunkt
|--------------------------------------------------------------------------
*/

html body #hwc-dropdown-menu a.hwc-dropdown-item.is-active::before,
html body #hwc-dropdown-menu a.hwc-dropdown-item.is-active::after,
html body #hwc-dropdown-menu a.hwc-dropdown-item[aria-current="page"]::before,
html body #hwc-dropdown-menu a.hwc-dropdown-item[aria-current="page"]::after {
    display: none !important;
    content: none !important;
}

html body #hwc-dropdown-menu a.hwc-dropdown-item.is-danger:hover {
    border-color: rgba(255, 116, 116, 0.37) !important;
    background: rgba(255, 116, 116, 0.09) !important;
    color: #ffb5b5 !important;
}

/*
|--------------------------------------------------------------------------
| Symbol links
|--------------------------------------------------------------------------
*/

html body #hwc-dropdown-menu .hwc-dropdown-item__icon {
    display: grid !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;

    place-items: center !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 9px !important;

    background: rgba(255, 255, 255, 0.045) !important;
    color: #63eb9b !important;

    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1 !important;

    box-shadow: none !important;
}

html body #hwc-dropdown-menu a.hwc-dropdown-item.is-active
.hwc-dropdown-item__icon {
    background: rgba(99, 235, 155, 0.10) !important;
    color: #8effb8 !important;
}

/*
|--------------------------------------------------------------------------
| Bezeichnung und Pfeil
|--------------------------------------------------------------------------
*/

html body #hwc-dropdown-menu .hwc-dropdown-item__label {
    display: block !important;
    min-width: 0 !important;
    width: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    color: inherit !important;

    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;

    text-align: left !important;
    text-decoration: none !important;
    text-overflow: ellipsis !important;
    text-transform: none !important;
    white-space: nowrap !important;
}

html body #hwc-dropdown-menu .hwc-dropdown-item__arrow {
    display: block !important;
    width: 14px !important;
    min-width: 14px !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #789486 !important;

    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1 !important;

    text-align: right !important;
}

/*
|--------------------------------------------------------------------------
| Dropdown-Fuß
|--------------------------------------------------------------------------
*/

html body #hwc-dropdown-menu .hwc-dropdown-menu__footer {
    display: flex !important;
    width: 100% !important;
    min-height: 42px !important;

    align-items: center !important;
    justify-content: flex-start !important;

    margin: 0 !important;
    padding: 9px 15px !important;

    border: 0 !important;
    border-top: 1px solid rgba(99, 235, 155, 0.18) !important;
    border-radius: 0 !important;

    background: rgba(0, 0, 0, 0.17) !important;

    box-shadow: none !important;
}

html body #hwc-dropdown-menu .hwc-dropdown-menu__status {
    display: inline-flex !important;
    width: auto !important;

    align-items: center !important;
    gap: 7px !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #789486 !important;

    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
}

html body #hwc-dropdown-menu .hwc-dropdown-menu__status i {
    display: block !important;
    width: 7px !important;
    height: 7px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 50% !important;

    background: #63eb9b !important;

    box-shadow:
        0 0 9px rgba(99, 235, 155, 0.8) !important;
}

/*
|--------------------------------------------------------------------------
| Hintergrund bei geöffnetem Menü
|--------------------------------------------------------------------------
*/

html body #hwc-menu-backdrop {
    position: fixed !important;
    z-index: 9990 !important;
    inset: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    background: rgba(0, 0, 0, 0.32) !important;

}

html body #hwc-menu-backdrop[hidden] {
    display: none !important;
}

/*
|--------------------------------------------------------------------------
| Mobilgeräte
|--------------------------------------------------------------------------
*/

@media (max-width: 520px) {
    html body .hwc-site-header #hwc-menu-button {
        width: 46px !important;
        min-width: 46px !important;
        max-width: 46px !important;
        height: 42px !important;
        min-height: 42px !important;
        padding: 8px !important;
    }

    html body .hwc-site-header #hwc-menu-button
    .hwc-menu-button__label,
    html body .hwc-site-header #hwc-menu-button
    .hwc-menu-button__arrow {
        display: none !important;
    }

    html body #hwc-dropdown-menu {
        position: fixed !important;

        top: 74px !important;
        right: 10px !important;
        left: 10px !important;

        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;

        max-height: calc(100vh - 86px) !important;
    }

    html body #hwc-dropdown-menu
    .hwc-dropdown-menu__items {
        max-height: calc(100vh - 175px) !important;
    }
}


/*
|--------------------------------------------------------------------------
| HWC_DROPDOWN_NO_BLUR_FIX
| Geöffnetes Dropdown ohne verschwommenen Seitenhintergrund
|--------------------------------------------------------------------------
*/

html body #hwc-menu-backdrop,
html body .hwc-menu-backdrop {
    background: rgba(0, 0, 0, 0.22) !important;

    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;

    filter: none !important;
}

html body .hwc-site-header,
html body .hwc-site-header__inner,
html body .hwc-main-navigation,
html body #hwc-menu-button,
html body #hwc-dropdown-menu,
html body #hwc-dropdown-menu * {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    filter: none !important;
}

/*
|--------------------------------------------------------------------------
| HWC_DROPDOWN_CLICK_LAYER_FIX
|--------------------------------------------------------------------------
|
| Der Menü-Hintergrund darf den Header und das Dropdown nicht überlagern.
| Ein Element innerhalb eines niedrigen Stacking-Contexts kann trotz eines
| hohen eigenen z-index nicht über einen höher liegenden Geschwisterbereich
| springen. Deshalb wird der gesamte Header über den Backdrop gelegt.
|
*/

html body .hwc-site-header {
    position: sticky !important;
    z-index: 100000 !important;
}

html body .hwc-site-header__inner {
    position: relative !important;
    z-index: 100001 !important;
}

html body .hwc-site-header .hwc-main-navigation {
    position: relative !important;
    z-index: 100002 !important;
}

html body #hwc-dropdown-menu {
    position: absolute !important;
    z-index: 100003 !important;

    pointer-events: auto !important;
    visibility: visible !important;
}

html body #hwc-dropdown-menu[hidden] {
    display: none !important;
}

html body #hwc-dropdown-menu:not([hidden]) {
    display: block !important;
    pointer-events: auto !important;
}

html body #hwc-dropdown-menu .hwc-dropdown-menu__items {
    position: relative !important;
    z-index: 100004 !important;
    pointer-events: auto !important;
}

html body #hwc-dropdown-menu a.hwc-dropdown-item {
    position: relative !important;
    z-index: 100005 !important;

    pointer-events: auto !important;
    cursor: pointer !important;
}

html body #hwc-dropdown-menu a.hwc-dropdown-item *,
html body #hwc-dropdown-menu .hwc-dropdown-menu__close {
    pointer-events: auto !important;
}

html body #hwc-menu-backdrop {
    position: fixed !important;
    z-index: 99999 !important;

    pointer-events: auto !important;

    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

html body #hwc-menu-backdrop[hidden] {
    display: none !important;
    pointer-events: none !important;
}

/*
 * Außerhalb des geöffneten Menüs darf der Hintergrund Klicks empfangen,
 * damit das Dropdown durch einen Klick daneben geschlossen werden kann.
 * Der Header samt Dropdown bleibt wegen seines höheren z-index davor.
 */
html.hwc-menu-is-open body .hwc-site-header,
body.hwc-menu-is-open .hwc-site-header {
    z-index: 100000 !important;
}

html.hwc-menu-is-open body #hwc-dropdown-menu,
body.hwc-menu-is-open #hwc-dropdown-menu {
    z-index: 100003 !important;
    pointer-events: auto !important;
}
