/* HEADER BASE */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background:
        linear-gradient(180deg, rgba(10,14,22,0.85), rgba(5,8,14,0.75));
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148,163,184,0.10);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

/* INNER */
.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* LOGO */
.header-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.header-logo img {
    height: 40px;
    width: 140px;
    object-fit: contain;
    filter: brightness(1.12);
    transition: transform 0.25s ease, filter 0.25s ease;
}

.header-logo:hover img {
    transform: scale(1.04);
    filter:
        brightness(1.16)
        drop-shadow(0 0 10px rgba(111, 178, 255, 0.35));
}

/* NAV */
.header-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

/* NAV ITEMS */
.nav-item {
    position: relative;
}

.nav-item::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 12px;
}

/* LINKS */
.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 650;
    line-height: 1;
    color: #d8e1f0;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.has-dropdown > .nav-link::after {
    content: "";
    width: 10px;
    height: 10px;
    margin-left: 4px;

    background: no-repeat center / contain;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23cbd5e1' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

    transform: translateY(-1px);
    opacity: 0.8;
}

.nav-link:hover::after {
    opacity: 1;
    transform: translateY(-1px) scale(1.05);
}

.nav-item.open > .nav-link::after {
    transform: translateY(-1px) rotate(180deg);
}

/* HOVER + ACTIVE */
.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.075);
    color: #ffffff;
}

.nav-link.active {
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16);
}

/* GTA 6 MAP CTA */
.nav-highlight {
    margin-left: 10px;
    background:
        linear-gradient(180deg, #7bc1ff 0%, #4c95fb 100%);
    color: #ffffff;
    box-shadow:
        0 0 0 1px rgba(147, 197, 253, 0.35),
        0 8px 22px rgba(76, 149, 251, 0.28);
}

.nav-highlight:hover,
.nav-highlight.active {
    background:
        linear-gradient(180deg, #93d0ff 0%, #5aa2ff 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow:
        0 0 0 1px rgba(147, 197, 253, 0.55),
        0 12px 28px rgba(76, 149, 251, 0.38);
}

/* DROPDOWN */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;

    display: none;
    flex-direction: column;
    min-width: 238px;
    padding: 8px;

    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    box-shadow:
        0 22px 48px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
    display: flex;
}

.dropdown a,
.dropdown-label {
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 9px 11px;
    border-radius: 10px;
    font-size: 14px;
}

.dropdown a {
    color: #cbd5e1;
    text-decoration: none;
    transition:
        background 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.dropdown a:hover,
.dropdown a.active {
    background: rgba(255, 255, 255, 0.075);
    color: #ffffff;
}

.dropdown a:hover {
    transform: translateX(2px);
}

.dropdown-label {
    margin-top: 4px;
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.95;
    padding-top: 8px;
    padding-bottom: 5px;
}

.dropdown-divider {
    height: 1px;
    background: rgba(148, 163, 184, 0.14);
    margin: 7px 4px;
}

/* SEARCH DESKTOP */
.header-search {
    display: flex;
    align-items: center;
    margin-left: 8px;
}

.header-search input {
    width: 200px;
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.055);
    color: #edf2ff;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.header-search input:focus {
    width: 260px;
    border-color: rgba(94, 162, 255, 0.55);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(94, 162, 255, 0.12);
}

/* SEARCH BUTTON MOBILE */
.header-search-toggle,
.header-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    border-radius: 12px;
}

.header-search-toggle svg,
.header-toggle svg {
    width: 26px;
    height: 26px;
    display: block;
}

/* SEARCH OVERLAY */
.header-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    padding: 86px 16px 16px;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(10px);
}

.header-toggle {
    font-size: 26px;
    line-height: 1;
}

.header-search-overlay.open {
    display: block;
}

.header-search-panel {
    max-width: 560px;
    margin: 0 auto;
    padding: 16px;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42);
}

.header-search-panel-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    color: #ffffff;
}

.header-search-close {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

.mobile-global-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.mobile-global-search input {
    height: 46px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #edf2ff;
    font-size: 16px;
}

.mobile-global-search button {
    height: 46px;
    padding: 0 16px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(180deg, #7bc1ff 0%, #4c95fb 100%);
    font-weight: 700;
    cursor: pointer;
}

/* GLOBAL SEARCH AUTOCOMPLETE */
.header-search,
.mobile-global-search {
    position: relative;
}

.global-search-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 3000;

    padding: 8px;
    border-radius: 16px;

    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));

    border: 1px solid rgba(148, 163, 184, 0.18);

    box-shadow:
        0 22px 48px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.global-search-suggestions.open {
    display: grid;
    gap: 6px;
}

.global-search-suggestion {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    align-items: center;

    min-height: 58px;
    padding: 8px;

    border-radius: 12px;

    color: inherit;
    text-decoration: none;

    transition:
        background 0.16s ease,
        transform 0.16s ease;
}

.global-search-suggestion:hover {
    background: rgba(255, 255, 255, 0.075);
    transform: translateX(2px);
}

.global-search-suggestion-image {
    width: 48px;
    height: 38px;
    border-radius: 10px;

    background:
        radial-gradient(circle at 50% 40%, rgba(94, 162, 255, 0.16), transparent 52%),
        #10141c;

    border: 1px solid rgba(255,255,255,0.06);

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.global-search-suggestion-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
    box-sizing: border-box;
}

.global-search-suggestion-body {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.global-search-suggestion-type {
    width: fit-content;
    padding: 3px 7px;
    border-radius: 999px;

    background: rgba(94, 162, 255, 0.12);
    border: 1px solid rgba(94, 162, 255, 0.26);

    color: #8bc3ff;

    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.global-search-suggestion-body strong {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.2;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.global-search-suggestion-body small {
    color: #8d9ab4;
    font-size: 12px;
    line-height: 1.25;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.global-search-suggestion-all {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    margin-top: 4px;
    padding: 0 12px;

    border-radius: 12px;

    background: rgba(94, 162, 255, 0.12);
    border: 1px solid rgba(94, 162, 255, 0.24);

    color: #b7daff;
    text-decoration: none;

    font-size: 13px;
    font-weight: 800;

    transition:
        background 0.16s ease,
        color 0.16s ease;
}

.global-search-suggestion-all:hover {
    background: rgba(94, 162, 255, 0.18);
    color: #ffffff;
}

/* ACCESSIBILITY */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* MOBILE TOGGLE */
.header-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
}

@media (min-width: 901px) {
    .header-search {
        order: 50;
    }

    .nav-highlight {
        order: 60;
    }
}

.home-recent-card {
    min-height: 260px;
}

.home-recent-card .vehicle-card-image-area {
    margin-top: 0;
}

.home-recent-card .vehicle-card-title {
    color: #edf2ff;
}

/* MOBILE */
@media (max-width: 900px) {

    .header-logo {
        margin-right: auto;
    }

    .header-toggle {
        display: inline-flex;
    }

    .header-search-toggle,
    .header-toggle {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .header-search-toggle:hover,
    .header-toggle:hover {
        background: rgba(255, 255, 255, 0.06);
    }

    .header-search {
        order: -10;
        width: 100%;
        margin: 0 0 6px;
    }

    .nav-highlight {
        order: 60;
    }

     .header-search input,
.header-search input:focus {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border-radius: 16px;
    font-size: 16px;
    box-sizing: border-box;
}

 .header-inner {
    position: relative;
    padding: 12px 16px;
    min-height: 72px;
    gap: 8px;
    justify-content: flex-start;
}

.header-logo {
    margin-right: auto;
}

.header-search-toggle,
.header-toggle {
    display: inline-flex;
    flex: 0 0 auto;
}

.header-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;

    width: 100vw;
    height: calc(100dvh - 72px);
    min-height: calc(100vh - 72px);

    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;

    margin: 0;
    padding: 16px;

    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
    backdrop-filter: blur(14px);

    border-top: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 0;
    box-shadow: none;

    z-index: 5000;
    overflow-y: auto;
    box-sizing: border-box;
}

.header-nav.open {
    display: flex;
}

.nav-item {
    width: 100%;
}

.nav-item::after {
    display: none;
}

.nav-link {
    width: 100%;
    min-height: 52px;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.055);
    font-size: 16px;
    box-sizing: border-box;
}

.nav-highlight {
    margin-left: 0;
    justify-content: center;
    min-height: 54px;
}

.dropdown {
    position: static;
    display: none;
    min-width: 0;
    margin-top: 8px;
    padding: 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(148, 163, 184, 0.10);
    box-shadow: none;
}

.nav-item:hover .dropdown {
    display: none;
}

.nav-item.open .dropdown,
.nav-item.open:hover .dropdown {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown a {
    min-height: 42px;
    padding: 11px 13px;
    border-radius: 12px;
    font-size: 15px;
}

    .mobile-global-search .global-search-suggestions {
        top: calc(100% + 12px);
        left: 0;
        right: 0;
    }

    .global-search-suggestion {
        grid-template-columns: 54px minmax(0, 1fr);
        min-height: 64px;
    }

    .global-search-suggestion-image {
        width: 54px;
        height: 42px;
    }

    @media (max-width: 900px) {

    .header-search-overlay {
        padding: 72px 0 0; /* kein seitliches Padding mehr */
    }

    .header-search-panel {
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: 0;

        /* optional: wirkt wie native App */
        border-left: 0;
        border-right: 0;
    }

}
    
}