/* =====================================================
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: 5px 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: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
}

.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;
    gap: 14px;
}

.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);
}

.tw-header-actions .tw-offer-btn {
    min-width: 194px;
    height: 49px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 17px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.92);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 2px 0 rgba(0, 0, 0, 0.12);
    text-shadow: 1px 2px 0 rgba(0, 0, 0, 0.24);
}

.tw-header-actions .tw-offer-btn:hover {
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
}


/* Responsive Navigation: dieselbe Grenze wie in header.php. */
.tw-header .tw-tablet-login { display: none; }
.tw-header .tw-logo { min-width: 0; max-width: 100%; }
.tw-header .tw-logo-img { max-width: 100%; height: auto; }
.tw-header .tw-nav-link,
.tw-header .tw-login-btn,
.tw-header .tw-offer-btn { flex-shrink: 0; white-space: nowrap; }
.tw-header a:focus-visible,
.tw-header .tw-mobile-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@media (min-width: 1301px) and (max-width: 1550px) {
    .tw-header .tw-header-inner { width: calc(100% - 48px); gap: 22px; }
    .tw-header .tw-logo-img { width: 240px; }
    .tw-header .tw-nav { gap: 20px; }
    .tw-header .tw-nav-link { font-size: 16px; }
    .tw-header .tw-header-actions { gap: 12px; }
    .tw-header .tw-login-btn { min-width: 112px; padding: 0 18px; }
    .tw-header .tw-offer-btn { min-width: 0; padding: 0 18px; }
}
@media (max-width: 1300px) {
    .tw-header { min-height: 0; }
    .tw-header .tw-header-inner {
        width: calc(100% - 40px); min-height: 106px;
        grid-template-columns: minmax(0, 1fr) auto 44px;
        gap: 0 18px; padding: 16px 0;
    }
    .tw-header .tw-logo { grid-column: 1; grid-row: 1; }
    .tw-header .tw-logo-img { width: 240px; }
    .tw-header .tw-tablet-login { display: inline-flex; grid-column: 2; grid-row: 1; }
    .tw-header .tw-mobile-toggle {
        display: block; grid-column: 3; grid-row: 1; height: 44px;
    }
    .tw-header .tw-nav {
        display: none; grid-column: 1 / -1; grid-row: 2;
        flex-direction: column; align-items: stretch; gap: 0;
        margin-top: 18px; padding: 10px 0;
        border-top: 1px solid rgba(255,255,255,.3);
    }
    .tw-header .tw-nav-link {
        display: flex; align-items: center; min-height: 44px;
        line-height: 1.4; white-space: normal;
    }
    .tw-header .tw-header-actions {
        display: none; grid-column: 1 / -1; grid-row: 3;
        justify-content: flex-start; flex-wrap: wrap; gap: 12px;
        padding: 6px 0;
    }
    .tw-header .tw-header-actions .tw-login-btn { display: none; }
    .tw-header.is-open .tw-nav,
    .tw-header.is-open .tw-header-actions { display: flex; }
}
@media (max-width: 600px) {
    .tw-header .tw-header-inner {
        width: calc(100% - 32px); min-height: 90px;
        grid-template-columns: minmax(0, 1fr) 44px; column-gap: 14px;
    }
    .tw-header .tw-logo-img { width: 210px; }
    .tw-header .tw-tablet-login { display: none; }
    .tw-header .tw-mobile-toggle { grid-column: 2; }
    .tw-header .tw-header-actions { flex-direction: column; align-items: stretch; }
    .tw-header .tw-header-actions .tw-login-btn { display: inline-flex; }
    .tw-header .tw-header-actions a { min-width: 0; max-width: 100%; white-space: normal; }
}
