:root {
    --autohaus-bg: #f4f7f9;
    --autohaus-surface: #ffffff;
    --autohaus-ink: #15202b;
    --autohaus-muted: #647384;
    --autohaus-line: #dbe4ec;
    --autohaus-primary: #0f5e9c;
    --autohaus-primary-dark: #0a4674;
    --autohaus-accent: #f28c28;
    --autohaus-radius: 24px;
    --autohaus-shadow: 0 24px 70px rgba(20, 45, 70, .12);
}

* {
    box-sizing: border-box;
}

body.autohaus-theme {
    margin: 0;
    min-height: 100vh;
    color: var(--autohaus-ink);
    background:
        radial-gradient(circle at 12% 0%, rgba(15, 94, 156, .11), transparent 34rem),
        linear-gradient(180deg, #ffffff 0%, var(--autohaus-bg) 38%, #eef3f7 100%);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: inherit;
}

.autohaus-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.autohaus-header {
    position: sticky;
    top: 14px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 14px 0 34px;
    padding: 12px 14px 12px 18px;
    border: 1px solid rgba(219, 228, 236, .86);
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 16px 44px rgba(18, 39, 62, .1);
    backdrop-filter: blur(18px);
}

.autohaus-brand,
.autohaus-nav,
.autohaus-header__actions,
.autohaus-nav-panel {
    display: flex;
    align-items: center;
}

.autohaus-brand {
    gap: 12px;
    color: var(--autohaus-ink);
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -.03em;
}

.autohaus-brand img,
.autohaus-brand__mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

.autohaus-brand img {
    object-fit: contain;
}

.autohaus-brand__mark {
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--autohaus-primary), var(--autohaus-accent));
    font-size: .82rem;
    letter-spacing: .05em;
}

.autohaus-nav-panel {
    gap: 22px;
}

.autohaus-nav {
    gap: 6px;
}

.autohaus-nav a,
.autohaus-header__actions a:not(.autohaus-btn),
.autohaus-footer a {
    text-decoration: none;
}

.autohaus-nav a {
    padding: 10px 13px;
    border-radius: 999px;
    color: var(--autohaus-muted);
    font-weight: 700;
    font-size: .93rem;
}

.autohaus-nav a.is-active,
.autohaus-nav a:hover {
    color: var(--autohaus-primary-dark);
    background: #eaf3fa;
}

.autohaus-header__actions {
    gap: 10px;
}

.autohaus-header__actions a:not(.autohaus-btn) {
    color: var(--autohaus-muted);
    font-size: .82rem;
    font-weight: 800;
}

.autohaus-header__actions a.is-active {
    color: var(--autohaus-primary);
}

.autohaus-btn,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.autohaus-btn--primary,
.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--autohaus-primary), var(--autohaus-primary-dark));
    box-shadow: 0 12px 30px rgba(15, 94, 156, .24);
}

.btn-secondary,
.btn-outline {
    color: var(--autohaus-primary-dark);
    background: #eaf3fa;
}

.nav-toggle {
    display: none;
}

.autohaus-main {
    padding-bottom: 48px;
}

.dealer-home {
    display: grid;
    gap: 42px;
}

.dealer-home__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .72fr);
    gap: 30px;
    align-items: stretch;
}

.dealer-home__copy,
.dealer-home__panel,
.dealer-home__filter-card,
.dealer-home__empty,
.dealer-home__service-card,
.dealer-home__usp-card,
.dealer-home__vehicle-card {
    border: 1px solid var(--autohaus-line);
    border-radius: var(--autohaus-radius);
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--autohaus-shadow);
}

.dealer-home__copy {
    padding: clamp(28px, 5vw, 58px);
}

.dealer-home__eyebrow,
.dealer-home__section-head span,
.dealer-home__service-card > span,
.dealer-home__vehicle-top span {
    color: var(--autohaus-primary);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dealer-home h1,
.dealer-home h2,
.dealer-home h3 {
    margin: 0;
    color: var(--autohaus-ink);
    line-height: 1.08;
    letter-spacing: -.045em;
}

.dealer-home h1 {
    max-width: 760px;
    margin-top: 14px;
    font-size: clamp(2rem, 4vw, 3.7rem);
}

.dealer-home h2 {
    margin-top: 8px;
    font-size: clamp(1.55rem, 2.8vw, 2.35rem);
}

.dealer-home h3 {
    font-size: 1.18rem;
}

.dealer-home p {
    color: var(--autohaus-muted);
}

.dealer-home__copy > p {
    max-width: 700px;
    font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.dealer-home__actions,
.dealer-filter-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
}

.dealer-home__meta,
.dealer-home__trust,
.dealer-home__usp-grid,
.dealer-home__services,
.dealer-home__vehicle-grid {
    display: grid;
    gap: 16px;
}

.dealer-home__meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 30px;
}

.dealer-home__meta-card,
.dealer-home__trust-item,
.dealer-home__panel-list article,
.dealer-home__panel-search,
.dealer-home__contact {
    border: 1px solid #e3ebf2;
    border-radius: 18px;
    background: #f7fafc;
    padding: 16px;
}

.dealer-home__meta-card strong,
.dealer-home__meta-card span,
.dealer-home__panel-list strong,
.dealer-home__panel-list span {
    display: block;
}

.dealer-home__meta-card span,
.dealer-home__panel-list span {
    color: var(--autohaus-muted);
    font-size: .92rem;
}

.dealer-home__panel {
    padding: 24px;
    background:
        linear-gradient(150deg, rgba(15, 94, 156, .1), transparent 42%),
        #fff;
}

.dealer-home__panel-top,
.dealer-home__panel-search {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.dealer-home__panel-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.dealer-home__trust {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dealer-home__section {
    display: grid;
    gap: 18px;
}

.dealer-home__usp-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dealer-home__services {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dealer-home__service-card,
.dealer-home__usp-card {
    padding: 24px;
}

.dealer-home__vehicle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dealer-home__vehicle-card {
    overflow: hidden;
}

.dealer-home__vehicle-card img,
.dealer-home__vehicle-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
}

.dealer-home__vehicle-card img {
    display: block;
    object-fit: cover;
}

.dealer-home__vehicle-placeholder {
    display: grid;
    place-items: center;
    color: var(--autohaus-muted);
    background: linear-gradient(135deg, #e7eef5, #f8fbfd);
    font-weight: 800;
}

.dealer-home__vehicle-body {
    display: grid;
    gap: 12px;
    padding: 20px;
}

.dealer-home__vehicle-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.dealer-home__vehicle-body ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.dealer-home__vehicle-body li {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--autohaus-muted);
    background: #eef4f8;
    font-size: .86rem;
}

.dealer-home__vehicle-body a,
.dealer-home__service-card a,
.dealer-home__panel-search a {
    color: var(--autohaus-primary-dark);
    font-weight: 900;
}

.dealer-home__filter-card,
.dealer-home__empty {
    padding: 24px;
}

.dealer-filter-form__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.dealer-filter-form label,
.dealer-filter-form__feature-group {
    display: grid;
    gap: 7px;
}

.dealer-filter-form span,
.dealer-filter-form__feature-group strong {
    color: var(--autohaus-muted);
    font-size: .86rem;
    font-weight: 800;
}

.dealer-filter-form input,
.dealer-filter-form select,
.dealer-filter-form textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--autohaus-line);
    border-radius: 14px;
    background: #fff;
    color: var(--autohaus-ink);
    padding: 10px 12px;
}

.dealer-filter-form__features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.dealer-filter-form__checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dealer-check {
    display: inline-flex !important;
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid var(--autohaus-line);
    border-radius: 999px;
    background: #f7fafc;
}

.autohaus-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    margin: 28px 0;
    padding: 26px;
    border-top: 1px solid var(--autohaus-line);
    color: var(--autohaus-muted);
}

.autohaus-footer strong {
    color: var(--autohaus-ink);
}

.autohaus-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-end;
}

@media (max-width: 900px) {
    .autohaus-header {
        align-items: flex-start;
        border-radius: 24px;
    }

    .nav-toggle {
        display: inline-grid;
        gap: 4px;
        border: 0;
        background: transparent;
        color: var(--autohaus-ink);
    }

    .nav-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: currentColor;
    }

    .autohaus-nav-panel {
        display: none;
        position: absolute;
        inset: 68px 12px auto;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border: 1px solid var(--autohaus-line);
        border-radius: 20px;
        background: #fff;
        box-shadow: var(--autohaus-shadow);
    }

    .autohaus-nav-panel.is-open {
        display: flex;
    }

    .autohaus-nav,
    .autohaus-header__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .dealer-home__hero,
    .dealer-home__meta,
    .dealer-home__trust,
    .dealer-home__usp-grid,
    .dealer-home__services,
    .dealer-home__vehicle-grid,
    .dealer-filter-form__grid,
    .dealer-filter-form__features,
    .autohaus-footer {
        grid-template-columns: 1fr;
    }

    .autohaus-footer nav {
        justify-content: flex-start;
    }
}
