/* =====================================================
TOWNWORK HEADER
Datei: header.css
===================================================== */

:root {
    --tw-blue-top: #2f7fbd;
    --tw-blue-bottom: #0d4f93;
    --tw-blue-dark: #083f7c;
    --tw-orange: #ff7417;
    --tw-orange-dark: #e65e08;
    --tw-white: #ffffff;
    --tw-shadow: rgba(0, 0, 0, 0.22);
    --tw-header-height: 150px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

.tw-header {
    width: 100%;
    min-height: var(--tw-header-height);
    background: linear-gradient(180deg, var(--tw-blue-top) 0%, var(--tw-blue-bottom) 100%);
    border-bottom: 10px solid var(--tw-orange);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.18);
}

.tw-header-inner {
    width: min(1820px, calc(100% - 88px));
    min-height: 126px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 430px 1fr auto;
    align-items: center;
    gap: 36px;
}

.tw-logo {
    display: inline-flex;
    flex-direction: column;
    width: fit-content;
    text-decoration: none;
    color: var(--tw-white);
}

.tw-logo-img {
    width: 270px;
    height: auto;
    display: block;
}

.tw-logo-main {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 58px;
    line-height: 0.95;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -3px;
    color: var(--tw-orange);
    -webkit-text-stroke: 2px var(--tw-white);
    text-shadow:
        3px 3px 0 rgba(255, 255, 255, 0.75),
        5px 5px 0 rgba(0, 0, 0, 0.22);
}

.tw-logo-sub {
    margin-top: 8px;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--tw-white);
    text-shadow: 1px 2px 0 rgba(0, 0, 0, 0.25);
}

.tw-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    min-width: 0;
}

.tw-nav-link {
    color: var(--tw-white);
    text-decoration: none;
    font-size: 17px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
    text-shadow: 1px 2px 0 rgba(0, 0, 0, 0.28);
    transition: transform 0.16s ease, color 0.16s ease;
}

.tw-nav-link:hover {
    color: #ffe6d3;
    transform: translateY(-1px);
}

.tw-nav-dropdown {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tw-nav-arrow {
    font-size: 14px;
    transform: translateY(1px);
}

.tw-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.tw-login-btn {
    min-width: 142px;
    height: 49px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border-radius: 7px;
    color: var(--tw-white);
    text-decoration: none;
    font-size: 17px;
    font-weight: 800;
    background: linear-gradient(180deg, #ff8425 0%, var(--tw-orange-dark) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        0 2px 0 rgba(0, 0, 0, 0.18);
    text-shadow: 1px 2px 0 rgba(0, 0, 0, 0.24);
    transition: transform 0.16s ease, filter 0.16s ease;
}

.tw-login-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.tw-login-icon {
    width: 18px;
    height: 18px;
    position: relative;
    display: inline-block;
    font-size: 0;
}

.tw-login-icon::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0;
    width: 10px;
    height: 9px;
    border: 3px solid currentColor;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.tw-login-icon::after {
    content: '';
    position: absolute;
    left: 1px;
    bottom: 0;
    width: 16px;
    height: 13px;
    border: 3px solid currentColor;
    border-radius: 2px;
}

.tw-mobile-toggle {
    display: none;
    width: 44px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.tw-mobile-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    margin: 6px auto;
    background: var(--tw-white);
    border-radius: 10px;
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.25);
}

@media (max-width: 1200px) {
    .tw-header-inner {
        width: min(100% - 42px, 1160px);
        grid-template-columns: 350px 1fr auto;
        gap: 24px;
    }

    .tw-logo-main {
        font-size: 49px;
    }

    .tw-logo-sub {
        font-size: 15px;
    }

    .tw-nav {
        gap: 20px;
    }

    .tw-nav-link {
        font-size: 15px;
    }
}

@media (max-width: 920px) {
    :root {
        --tw-header-height: auto;
    }

    .tw-header-inner {
        width: min(100% - 32px, 760px);
        min-height: 106px;
        grid-template-columns: 1fr auto;
        gap: 18px;
        padding: 16px 0 18px;
    }

    .tw-logo-main {
        font-size: 44px;
    }

    .tw-logo-sub {
        font-size: 14px;
    }

    .tw-mobile-toggle {
        display: block;
        grid-column: 2;
        grid-row: 1;
    }

    .tw-nav,
    .tw-header-actions {
        grid-column: 1 / -1;
    }

    .tw-nav {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px 0 4px;
    }

    .tw-header-actions {
        display: none;
        justify-content: flex-start;
        padding-bottom: 6px;
    }

    .tw-header.is-open .tw-nav,
    .tw-header.is-open .tw-header-actions {
        display: flex;
    }
}
