/* ============================================================
   GERMAN-SPOB – MODELLE UND FAHRZEUGTYPEN
   ============================================================ */

.models-page {
    min-height: 520px;
    padding: 24px 0 56px;
    background:
        linear-gradient(180deg, #f4f6f9 0, #ffffff 240px);
    color: var(--text-main);
}

.models-page__inner {
    max-width: 1280px;
}

.models-page__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: #6c7d8e;
    font-size: 12px;
}

.models-page__breadcrumb a {
    color: #4d647d;
}

.models-page__breadcrumb a:hover {
    color: var(--spob-blue);
    text-decoration: underline;
}

.models-page__header {
    max-width: 820px;
    margin-bottom: 28px;
}

.models-page__eyebrow {
    margin: 0 0 6px;
    color: #9a722d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Gegen allgemeinere Theme-Regeln absichern. */
.models-page .models-page__header > .models-page__eyebrow {
    color: #9a722d !important;
}

.models-page__header h1,
.models-page__message h1 {
    margin: 0;
    color: var(--spob-blue);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
}

.models-page__header p {
    margin: 12px 0 0;
    color: var(--text-muted);
    font-size: 16px;
}

.models-page__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.models-page__section + .models-page__section {
    margin-top: 48px;
}

.models-page__section-header {
    margin: 0 0 18px;
}

.models-page__section-header h2 {
    margin: 0;
    color: var(--spob-blue);
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.2;
}

.models-page__section-header p {
    max-width: 780px;
    margin: 7px 0 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.models-page__section--additional {
    padding-top: 32px;
    border-top: 1px solid #d7e0e8;
}

.models-page__section--additional .models-page__section-header h2 {
    font-size: clamp(20px, 2.6vw, 27px);
}

.model-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: 0 22px 22px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-medium);
    box-shadow: 0 7px 24px rgba(8, 45, 93, 0.07);
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.model-card__image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 124px;
    margin: 0 -22px 18px;
    padding: 12px 18px;
    overflow: hidden;
    background: #f6f8fb;
    border-bottom: 1px solid var(--border-color);
}

.model-card__image {
    display: block;
    width: auto;
    height: auto;
    max-width: 150px;
    max-height: 100px;
    object-fit: contain;
}

.model-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 70px;
    height: 4px;
    background: var(--spob-gold);
}

.model-card:hover {
    transform: translateY(-3px);
    border-color: #aebccc;
    box-shadow: 0 12px 30px rgba(8, 45, 93, 0.12);
}

.model-card--secondary {
    min-height: 270px;
    box-shadow: 0 5px 18px rgba(8, 45, 93, 0.05);
}

.model-card--secondary::before {
    width: 54px;
    background: #8191a3;
}

.model-card--secondary .model-card__image-wrap {
    height: 112px;
    background: #f8f9fb;
}

.model-card--secondary .model-card__image {
    max-height: 88px;
}

.model-card--secondary .model-card__name {
    font-size: 17px;
}

.model-card__name {
    color: var(--spob-blue);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.model-card__meta {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 13px;
}

.model-card__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
    color: var(--spob-blue);
    font-size: 13px;
    font-weight: 700;
}

.model-bodies {
    display: grid;
    gap: 24px;
}

.model-body {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-medium);
    box-shadow: 0 8px 28px rgba(8, 45, 93, 0.08);
}

.model-body__header {
    position: relative;
    display: block;
    padding: 19px 22px 17px;
    cursor: pointer;
    list-style: none;
}

.model-body[open] .model-body__header {
    border-bottom: 1px solid #e5e9ef;
}

.model-body__header::-webkit-details-marker {
    display: none;
}

.model-body__chevron {
    position: absolute;
    top: 50%;
    right: 24px;
    width: 11px;
    height: 11px;
    border-right: 2px solid var(--spob-blue);
    border-bottom: 2px solid var(--spob-blue);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 160ms ease;
}

.model-body[open] .model-body__chevron {
    transform: translateY(-30%) rotate(225deg);
}

.model-body__eyebrow {
    display: block;
    margin-bottom: 3px;
    color: var(--spob-gold-dark, #9a722d);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.model-body__header h2 {
    margin: 0;
    padding-right: 38px;
    color: var(--spob-blue);
    font-size: 22px;
    line-height: 1.2;
}

.sales-groups {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
}

.sales-group {
    min-width: 0;
}

.sales-group[open] {
    grid-column: 1 / -1;
}

.sales-group summary {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 3px 12px;
    min-height: 72px;
    padding: 12px 42px 12px 16px;
    background: #f7f9fc;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    cursor: pointer;
    list-style: none;
    transition: border-color 150ms ease, background-color 150ms ease;
}

.sales-group summary::-webkit-details-marker {
    display: none;
}

.sales-group summary:hover,
.sales-group[open] summary {
    background: #ffffff;
    border-color: var(--spob-gold);
}

.sales-group__name {
    color: var(--spob-blue);
    font-size: 22px;
    font-weight: 800;
}

.sales-group__hint {
    grid-column: 1;
    color: var(--text-muted);
    font-size: 12px;
}

.sales-group__chevron {
    position: absolute;
    top: 50%;
    right: 17px;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--spob-blue);
    border-bottom: 2px solid var(--spob-blue);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 160ms ease;
}

.sales-group[open] .sales-group__chevron {
    transform: translateY(-30%) rotate(225deg);
}

.sales-group__variants {
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
}

.vehicle-variant {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 15px 18px;
    border-bottom: 1px solid #e5e9ef;
}

.vehicle-variant:last-child {
    border-bottom: 0;
}

.vehicle-variant:hover {
    background: #f7f9fc;
}

.vehicle-variant h3 {
    margin: 0 0 10px;
    color: var(--spob-blue);
    font-size: 15px;
    line-height: 1.35;
}

.vehicle-variant__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    margin: 0;
}

.vehicle-variant__facts div {
    display: flex;
    gap: 6px;
}

.vehicle-variant__facts dt,
.vehicle-variant__facts dd {
    margin: 0;
    font-size: 12px;
}

.vehicle-variant__facts dt {
    color: var(--text-muted);
}

.vehicle-variant__facts dd {
    color: var(--spob-blue);
    font-weight: 700;
}

.vehicle-variant__continue {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 92px;
    justify-content: flex-end;
    color: var(--spob-blue);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.models-page__message {
    padding: 28px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-soft);
}

.models-page__message p {
    color: var(--text-muted);
}

.models-page__message .button {
    margin-top: 8px;
}

.models-page__message--error {
    border-left: 4px solid var(--spob-red);
}

@media (max-width: 1050px) {
    .models-page__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .models-page {
        padding-top: 18px;
    }

    .models-page__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 560px) {
    .models-page {
        padding-bottom: 38px;
    }

    .models-page__grid {
        grid-template-columns: 1fr;
    }

    .model-card {
        min-height: 145px;
    }

    .models-page__section + .models-page__section {
        margin-top: 36px;
    }

    .models-page__section--additional {
        padding-top: 25px;
    }

    .model-card--secondary {
        min-height: 145px;
    }

    .sales-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        padding: 12px;
    }

    .sales-group summary {
        min-height: 64px;
        padding: 10px 36px 10px 13px;
    }

    .sales-group__name {
        font-size: 19px;
    }

    .vehicle-variant {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px;
    }

    .vehicle-variant__continue {
        justify-content: space-between;
        padding-top: 10px;
        border-top: 1px solid #e5e9ef;
    }

    .vehicle-variant__facts {
        display: grid;
        grid-template-columns: 1fr;
        gap: 5px;
    }
}
