/*
|--------------------------------------------------------------------------
| Hard Worker City – globales Layout
|--------------------------------------------------------------------------
*/

:root {
    --hwc-page-background: #040c08;
    --hwc-header-background: rgba(5, 16, 10, 0.97);
    --hwc-panel-background: #0b1c13;
    --hwc-panel-background-hover: #11271b;

    --hwc-border: rgba(99, 235, 155, 0.19);
    --hwc-border-strong: rgba(99, 235, 155, 0.42);

    --hwc-primary: #59e895;
    --hwc-primary-light: #a5ffc8;
    --hwc-primary-dark: #2cb669;

    --hwc-text: #f1fff7;
    --hwc-text-soft: #bdd2c4;
    --hwc-text-muted: #7f9b89;
    --hwc-danger: #ff7474;

    --hwc-header-height: 76px;
    --hwc-content-width: 1560px;

    --hwc-shadow:
        0 20px 55px rgba(0, 0, 0, 0.38);

    --hwc-radius: 16px;
    --hwc-transition: 160ms ease;
}

html {
    min-height: 100%;
    background: var(--hwc-page-background);
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(48, 165, 95, 0.07),
            transparent 28rem
        ),
        var(--hwc-page-background);
    color: var(--hwc-text);
}

body,
button,
input,
select,
textarea {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

.hwc-site-shell,
.hwc-site-shell * {
    box-sizing: border-box;
}

.hwc-site-shell {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.hwc-site-content {
    position: relative;
    z-index: 1;
    width: 100%;
    flex: 1 0 auto;
}

/*
|--------------------------------------------------------------------------
| Zentraler Header
|--------------------------------------------------------------------------
*/

.hwc-site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    width: 100%;
    border-bottom: 1px solid var(--hwc-border);
    background: var(--hwc-header-background);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22);

}

.hwc-site-header__inner {
    display: flex;
    width: min(
        var(--hwc-content-width),
        calc(100% - 32px)
    );
    min-height: var(--hwc-header-height);
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 auto;
}

.hwc-site-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    color: var(--hwc-text);
    text-decoration: none;
}

.hwc-site-brand__mark {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border: 1px solid var(--hwc-border-strong);
    border-radius: 13px;
    background:
        linear-gradient(
            145deg,
            var(--hwc-primary),
            var(--hwc-primary-dark)
        );
    color: #06110b;
    font-size: 0.72rem;
    font-weight: 1000;
    letter-spacing: 0.02em;
    box-shadow:
        0 0 0 5px rgba(89, 232, 149, 0.06);
}

.hwc-site-brand__text {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.hwc-site-brand__text strong {
    overflow: hidden;
    color: var(--hwc-text);
    font-size: 1rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hwc-site-brand__text small {
    overflow: hidden;
    color: var(--hwc-text-muted);
    font-size: 0.71rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hwc-main-navigation {
    position: relative;
    flex: 0 0 auto;
}

.hwc-menu-button {
    display: inline-flex;
    min-width: 125px;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 9px 14px;
    border: 1px solid var(--hwc-border-strong);
    border-radius: 12px;
    outline: none;
    background: rgba(89, 232, 149, 0.07);
    color: var(--hwc-text);
    font-size: 0.87rem;
    font-weight: 800;
    cursor: pointer;
    transition:
        border-color var(--hwc-transition),
        background var(--hwc-transition),
        color var(--hwc-transition),
        transform var(--hwc-transition);
}

.hwc-menu-button:hover,
.hwc-menu-button[aria-expanded="true"] {
    border-color: var(--hwc-primary);
    background: var(--hwc-primary);
    color: #07120b;
    transform: translateY(-1px);
}

.hwc-menu-button:focus-visible {
    outline: 3px solid rgba(89, 232, 149, 0.24);
    outline-offset: 3px;
}

.hwc-menu-button__icon {
    display: flex;
    width: 18px;
    flex-direction: column;
    gap: 4px;
}

.hwc-menu-button__icon span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.hwc-menu-button__arrow {
    font-size: 0.76rem;
    transition: transform var(--hwc-transition);
}

.hwc-menu-button[aria-expanded="true"]
.hwc-menu-button__arrow {
    transform: rotate(180deg);
}

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

.hwc-dropdown-menu {
    position: absolute;
    z-index: 1200;
    top: calc(100% + 12px);
    right: 0;
    width: min(340px, calc(100vw - 24px));
    overflow: hidden;
    border: 1px solid var(--hwc-border-strong);
    border-radius: var(--hwc-radius);
    background: rgba(8, 24, 15, 0.99);
    box-shadow: var(--hwc-shadow);
    transform-origin: top right;
}

.hwc-dropdown-menu[hidden] {
    display: none !important;
}

.hwc-dropdown-menu.is-opening {
    animation: hwcDropdownOpen 170ms ease both;
}

@keyframes hwcDropdownOpen {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hwc-dropdown-menu__header {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px 12px 18px;
    border-bottom: 1px solid var(--hwc-border);
    background: rgba(89, 232, 149, 0.045);
}

.hwc-dropdown-menu__header > span {
    color: var(--hwc-primary-light);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hwc-dropdown-menu__close {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--hwc-text-soft);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.hwc-dropdown-menu__close:hover {
    border-color: var(--hwc-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--hwc-text);
}

.hwc-dropdown-menu__items {
    display: flex;
    max-height: min(65vh, 560px);
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    padding: 10px;
    scrollbar-color:
        rgba(89, 232, 149, 0.35)
        rgba(255, 255, 255, 0.03);
}

.hwc-dropdown-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    min-height: 51px;
    padding: 7px 11px 7px 7px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: var(--hwc-text-soft);
    text-decoration: none;
    transition:
        border-color var(--hwc-transition),
        background var(--hwc-transition),
        color var(--hwc-transition),
        transform var(--hwc-transition);
}

.hwc-dropdown-item:hover,
.hwc-dropdown-item.is-active {
    border-color: var(--hwc-border);
    background: rgba(89, 232, 149, 0.085);
    color: var(--hwc-primary-light);
    transform: translateX(2px);
}

.hwc-dropdown-item.is-active {
    border-color: rgba(89, 232, 149, 0.32);
}

.hwc-dropdown-item.is-danger:hover {
    border-color: rgba(255, 116, 116, 0.35);
    background: rgba(255, 116, 116, 0.09);
    color: #ffb1b1;
}

.hwc-dropdown-item__icon {
    display: grid;
    width: 40px;
    height: 36px;
    place-items: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--hwc-primary);
    font-size: 0.72rem;
    font-weight: 900;
}

.hwc-dropdown-item__label {
    overflow: hidden;
    font-size: 0.86rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hwc-dropdown-item__arrow {
    color: var(--hwc-text-muted);
    font-size: 1.15rem;
}

.hwc-dropdown-menu__footer {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 11px 18px;
    border-top: 1px solid var(--hwc-border);
    background: rgba(0, 0, 0, 0.18);
}

.hwc-dropdown-menu__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--hwc-text-muted);
    font-size: 0.7rem;
}

.hwc-dropdown-menu__status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hwc-primary);
    box-shadow: 0 0 9px rgba(89, 232, 149, 0.8);
}

.hwc-menu-backdrop {
    position: fixed;
    z-index: 990;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);

}

.hwc-menu-backdrop[hidden] {
    display: none !important;
}

/*
|--------------------------------------------------------------------------
| Footer
|--------------------------------------------------------------------------
*/

.hwc-site-footer {
    position: relative;
    z-index: 2;
    width: 100%;
    flex: 0 0 auto;
    margin-top: 50px;
    border-top: 1px solid var(--hwc-border);
    background:
        linear-gradient(
            180deg,
            rgba(7, 21, 13, 0.98),
            rgba(4, 12, 8, 1)
        );
}

.hwc-site-footer__inner {
    display: grid;
    width: min(
        var(--hwc-content-width),
        calc(100% - 32px)
    );
    min-height: 150px;
    grid-template-columns:
        minmax(220px, 1fr)
        auto
        minmax(220px, 1fr);
    gap: 30px;
    align-items: center;
    margin: 0 auto;
    padding: 28px 0;
}

.hwc-site-footer__brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.hwc-site-footer__mark {
    display: grid;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    place-items: center;
    border: 1px solid var(--hwc-border-strong);
    border-radius: 12px;
    background: rgba(89, 232, 149, 0.09);
    color: var(--hwc-primary);
    font-size: 0.69rem;
    font-weight: 1000;
}

.hwc-site-footer__brand div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.hwc-site-footer__brand strong {
    overflow: hidden;
    color: var(--hwc-text);
    font-size: 0.9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hwc-site-footer__brand span {
    color: var(--hwc-text-muted);
    font-size: 0.7rem;
}

.hwc-site-footer__navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 18px;
    align-items: center;
    justify-content: center;
}

.hwc-site-footer__navigation a {
    position: relative;
    color: var(--hwc-text-soft);
    font-size: 0.77rem;
    font-weight: 650;
    text-decoration: none;
}

.hwc-site-footer__navigation a:hover {
    color: var(--hwc-primary-light);
}

.hwc-site-footer__copyright {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    color: var(--hwc-text-muted);
    font-size: 0.68rem;
}

/*
|--------------------------------------------------------------------------
| Mobil
|--------------------------------------------------------------------------
*/

@media (max-width: 850px) {
    .hwc-site-header__inner {
        width: min(100% - 20px, var(--hwc-content-width));
    }

    .hwc-site-footer__inner {
        width: min(100% - 24px, var(--hwc-content-width));
        grid-template-columns: 1fr;
        gap: 22px;
        justify-items: center;
        padding: 30px 0;
        text-align: center;
    }

    .hwc-site-footer__copyright {
        align-items: center;
    }
}

@media (max-width: 520px) {
    :root {
        --hwc-header-height: 67px;
    }

    .hwc-site-brand__mark {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 11px;
        font-size: 0.65rem;
    }

    .hwc-site-brand__text strong {
        font-size: 0.87rem;
    }

    .hwc-site-brand__text small {
        font-size: 0.63rem;
    }

    .hwc-menu-button {
        min-width: 48px;
        width: 48px;
        padding: 8px;
    }

    .hwc-menu-button__label,
    .hwc-menu-button__arrow {
        display: none;
    }

    .hwc-dropdown-menu {
        position: fixed;
        top: calc(var(--hwc-header-height) + 7px);
        right: 10px;
        left: 10px;
        width: auto;
        max-height: calc(100vh - var(--hwc-header-height) - 18px);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hwc-site-shell *,
    .hwc-site-shell *::before,
    .hwc-site-shell *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !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;
}
