/*
 * Hard Worker City
 * Gemeinsamer Header, Dropdown und Footer
 *
 * Die Klassen sind bewusst mit "hwc-" gekennzeichnet,
 * damit vorhandene Seitengestaltungen nicht überschrieben werden.
 */

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

.hwc-site-header {
    position: sticky;
    top: 0;
    z-index: 10000;
    width: 100%;
    min-height: 74px;
    background: rgba(2, 8, 4, 0.97);
    border-bottom: 1px solid rgba(32, 255, 122, 0.28);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
}

.hwc-header-inner {
    width: 100%;
    max-width: 1500px;
    min-height: 74px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.hwc-brand {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    color: #effff4;
    text-decoration: none;
}

.hwc-brand strong {
    color: #20ff7a;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: 0.2px;
}

.hwc-brand span {
    color: #b9d8c2;
    font-size: 13px;
    line-height: 1.25;
}

.hwc-menu-wrap {
    position: relative;
    flex: 0 0 auto;
}

.hwc-menu-toggle {
    min-height: 46px;
    padding: 11px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #031006;
    background: linear-gradient(135deg, #20ff7a, #00c75c);
    border: 1px solid rgba(32, 255, 122, 0.7);
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0, 255, 120, 0.17);
    font: inherit;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.hwc-menu-toggle:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #4cff96, #10de70);
    box-shadow: 0 12px 28px rgba(0, 255, 120, 0.25);
}

.hwc-menu-toggle:focus-visible {
    outline: 3px solid rgba(32, 255, 122, 0.42);
    outline-offset: 3px;
}

.hwc-menu-toggle[aria-expanded="true"] {
    background: #effff4;
}

.hwc-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: auto;
    z-index: 10001;
    width: 290px;
    max-width: calc(100vw - 30px);
    margin: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 7px;
    color: #effff4;
    background: rgba(1, 15, 7, 0.99);
    border: 1px solid rgba(32, 255, 122, 0.42);
    border-radius: 16px;
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(18px);
}

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

.hwc-dropdown-menu a {
    width: 100%;
    padding: 12px 14px;
    display: block;
    color: #eafff1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    border-radius: 10px;
    text-align: left;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    transition:
        color 150ms ease,
        background 150ms ease,
        border-color 150ms ease;
}

.hwc-dropdown-menu a:hover,
.hwc-dropdown-menu a:focus-visible {
    color: #031006;
    background: #20ff7a;
    border-color: #20ff7a;
    outline: none;
}

.hwc-dropdown-menu a.active,
.hwc-dropdown-menu a[aria-current="page"] {
    color: #031006;
    background: linear-gradient(135deg, #20ff7a, #00c75c);
    border-color: rgba(255, 255, 255, 0.16);
    font-weight: 900;
}

.hwc-site-footer {
    width: 100%;
    margin-top: auto;
    color: #b9d8c2;
    background: #020804;
    border-top: 1px solid rgba(32, 255, 122, 0.25);
}

.hwc-footer-inner {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 27px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.hwc-footer-name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.hwc-footer-name strong {
    color: #20ff7a;
    font-size: 17px;
}

.hwc-footer-name span {
    color: #8fb99c;
    font-size: 13px;
}

.hwc-footer-links {
    max-width: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 17px;
}

.hwc-footer-links a {
    color: #b9d8c2;
    text-decoration: none;
    font-size: 14px;
}

.hwc-footer-links a:hover,
.hwc-footer-links a:focus-visible {
    color: #20ff7a;
    outline: none;
}

@media (max-width: 720px) {
    .hwc-header-inner {
        min-height: 68px;
        padding: 10px 14px;
        gap: 12px;
    }

    .hwc-brand strong {
        font-size: 18px;
    }

    .hwc-brand span {
        font-size: 11px;
    }

    .hwc-menu-toggle {
        min-height: 43px;
        padding: 10px 14px;
    }

    .hwc-dropdown-menu {
        position: fixed;
        top: 76px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
    }

    .hwc-footer-inner {
        padding: 24px 16px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hwc-footer-name {
        align-items: center;
    }

    .hwc-footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 430px) {
    .hwc-brand span {
        display: none;
    }

    .hwc-menu-toggle {
        padding: 10px 12px;
    }
}
