/* ===================================
   MARTIN HANDELSAGENTUR – STYLES
   Farben: Anthrazit (RAL 7016) + Signalgelb, Schrift: Archivo
   =================================== */

@font-face {
    font-family: 'Archivo';
    src: url('../fonts/archivo.woff2') format('woff2-variations'),
         url('../fonts/archivo.woff2') format('woff2');
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Farben */
    --paper: #f1f2ef;
    --surface: #ffffff;
    --ink: #1d2326;
    --anthracite: #2e3438;
    --anthracite-deep: #24292c;
    --steel: #5f6a72;
    --line: #d6dad8;
    --signal: #f3b300;
    --signal-hover: #ffc72c;

    /* Schrift */
    --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    --text-sm: 0.875rem;
    --text-base: 1.0625rem;
    --text-md: 1.3125rem;
    --text-lg: 1.75rem;
    --text-xl: clamp(2rem, 4vw, 2.75rem);
    --text-hero: clamp(2.6rem, 7.2vw, 6.25rem);

    /* Abstände */
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --section: clamp(4rem, 9vw, 7.5rem);
    --max: 1240px;
    --radius: 4px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    font-variant-numeric: lining-nums;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--signal);
    outline-offset: 2px;
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

section[id] {
    scroll-margin-top: 72px;
}

/* Überschriften: breite Archivo als Markenzeichen */
.display,
h1,
h2 {
    font-stretch: 118%;
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.015em;
}

h2 {
    font-size: var(--text-xl);
}

h3 {
    font-stretch: 108%;
    font-weight: 700;
    line-height: 1.2;
}

.lead {
    font-size: var(--text-md);
    line-height: 1.5;
    color: var(--steel);
    max-width: 38ch;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-weight: 650;
    font-stretch: 108%;
    line-height: 1.1;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn-signal {
    background: var(--signal);
    color: var(--ink);
}

.btn-signal:hover {
    background: var(--signal-hover);
}

.btn-ghost {
    background: transparent;
    border-color: currentColor;
}

.btn-ghost:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: white;
}

.on-dark .btn-ghost:hover {
    background: white;
    border-color: white;
    color: var(--ink);
}

.btn-block {
    width: 100%;
}

.text-link {
    font-weight: 650;
    border-bottom: 2px solid var(--signal);
    padding-bottom: 2px;
}

.text-link:hover {
    border-bottom-color: var(--ink);
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.navbar .container {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 72px;
}

.nav-brand {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    font-size: 1.15rem;
    line-height: 1;
    margin-right: auto;
}

.nav-brand strong {
    font-stretch: 125%;
    font-weight: 850;
}

.nav-brand span {
    font-weight: 450;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.75rem;
}

.nav-link {
    font-weight: 550;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    border-bottom-color: var(--signal);
}

.nav-call {
    min-height: 40px;
    padding: 0.5rem 1rem;
    font-variant-numeric: tabular-nums;
}

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
}

.mobile-menu-toggle span,
.mobile-menu-toggle span::before,
.mobile-menu-toggle span::after {
    position: absolute;
    left: 10px;
    width: 24px;
    height: 2px;
    background: currentColor;
    content: '';
    transition: transform 0.2s;
}

.mobile-menu-toggle span {
    top: 21px;
}

.mobile-menu-toggle span::before {
    left: 0;
    top: -7px;
}

.mobile-menu-toggle span::after {
    left: 0;
    top: 7px;
}

.mobile-menu-toggle[aria-expanded="true"] span {
    background: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] span::before {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] span::after {
    transform: translateY(-7px) rotate(-45deg);
}

/* Startseite: Navigation transparent über dem Foto */
.page-home .navbar:not(.scrolled):not(.menu-open) {
    background: transparent;
    border-bottom-color: transparent;
    color: white;
}

.page-inner {
    padding-top: 72px;
}

/* ===================================
   HERO
   =================================== */
.hero {
    position: relative;
    min-height: max(620px, 92vh);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
    background: var(--anthracite);
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
    opacity: 0;
    transition: opacity 2s ease;
}

.hero-bg-image.active {
    opacity: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(29, 35, 38, 0.92) 0%, rgba(29, 35, 38, 0.55) 45%, rgba(29, 35, 38, 0.15) 75%),
        linear-gradient(to right, rgba(29, 35, 38, 0.5), transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: 9rem;
    padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.hero-title {
    font-size: var(--text-hero);
    font-stretch: 125%;
    font-weight: 850;
    line-height: 0.95;
    letter-spacing: -0.025em;
    max-width: 11ch;
}

.hero-subtitle {
    margin-top: 1.5rem;
    font-size: var(--text-md);
    line-height: 1.45;
    max-width: 34ch;
    color: rgba(255, 255, 255, 0.85);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2.25rem;
}

/* Bestands-Leiste am unteren Rand des Hero */
.hero-stock {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(29, 35, 38, 0.55);
    backdrop-filter: blur(6px);
}

.hero-stock .container {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.hero-stock a,
.hero-stock .stock-total {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 1.5rem 1.1rem 0;
    margin-right: 1.5rem;
    line-height: 1.2;
}

.hero-stock .stock-total {
    border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-stock strong {
    font-size: var(--text-lg);
    font-stretch: 118%;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.hero-stock span {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.75);
}

.hero-stock a:hover span {
    color: var(--signal);
}

/* Einmaliger Auftritt beim Laden */
@media (prefers-reduced-motion: no-preference) {
    .hero-title,
    .hero-subtitle,
    .hero-buttons {
        animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }

    .hero-subtitle {
        animation-delay: 0.12s;
    }

    .hero-buttons {
        animation-delay: 0.24s;
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ===================================
   ABSCHNITTE
   =================================== */
.section {
    padding: var(--section) 0;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head h2 {
    max-width: 16ch;
}

/* ===================================
   FAHRZEUGKARTEN
   =================================== */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.vehicle-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    transition: border-color 0.2s;
}

.vehicle-card:hover {
    border-color: var(--ink);
}

.vehicle-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--line);
    overflow: hidden;
}

.vehicle-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.vehicle-card:hover .vehicle-card-image img {
    transform: scale(1.04);
}

.vehicle-card.is-sold .vehicle-card-image img {
    filter: grayscale(1) contrast(0.9);
}

.vehicle-card-noimage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 220px;
    color: var(--steel);
}

.vehicle-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.3rem 0.65rem;
    border-radius: 2px;
    font-size: var(--text-sm);
    font-weight: 700;
    line-height: 1.2;
}

.badge-reserviert {
    background: var(--signal);
    color: var(--ink);
}

.badge-verkauft {
    background: var(--ink);
    color: white;
}

.vehicle-photo-count {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: 2px;
    font-size: 0.8125rem;
    color: white;
    background: rgba(29, 35, 38, 0.75);
}

.vehicle-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem 1.25rem 0;
}

.vehicle-card-body h3 {
    font-size: 1.375rem;
    margin-top: 0.15rem;
}

.vehicle-card-variant {
    margin-top: 0.15rem;
    color: var(--steel);
    font-size: 0.9375rem;
    line-height: 1.4;
}

/* Datenleiste wie ein Typenschild */
.spec-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    margin-top: 1.1rem;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.spec-strip div {
    padding: 0.6rem 0.75rem 0.65rem 0;
    line-height: 1.25;
}

.spec-strip div + div {
    padding-left: 0.75rem;
    border-left: 1px solid var(--line);
}

.spec-strip dt {
    font-size: 0.75rem;
    color: var(--steel);
}

.spec-strip dd {
    font-size: 0.9375rem;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.vehicle-card-price {
    margin-top: auto;
    padding: 1rem 0 1.15rem;
    font-size: var(--text-lg);
    font-stretch: 112%;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.empty-state {
    padding: clamp(2rem, 5vw, 3.5rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.empty-state p {
    max-width: 50ch;
    color: var(--steel);
}

.empty-state h3 {
    margin-bottom: 0.5rem;
}

.empty-state .btn {
    margin-top: 1.5rem;
}

/* ===================================
   ÜBER UNS
   =================================== */
.about {
    background: var(--surface);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.about-text h2 {
    margin-bottom: 1.5rem;
    font-stretch: 106%;
    hyphens: auto;
}

.about-text p {
    max-width: 58ch;
    margin-bottom: 1rem;
}

.about-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
}

.timeline {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: clamp(3rem, 6vw, 4.5rem);
    border-top: 2px solid var(--ink);
}

.timeline li {
    padding: 1.25rem 1.5rem 0 0;
}

.timeline li + li {
    padding-left: 1.5rem;
    border-left: 1px solid var(--line);
}

.timeline strong {
    display: block;
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    font-stretch: 125%;
    font-weight: 850;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    margin-bottom: 0.5rem;
}

.timeline span {
    display: block;
    max-width: 30ch;
    color: var(--steel);
}

/* ===================================
   LEISTUNGEN
   =================================== */
.services-list {
    list-style: none;
    border-top: 1px solid var(--ink);
}

.services-list li {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 1rem 3rem;
    padding: clamp(1.5rem, 3vw, 2.25rem) 0;
    border-bottom: 1px solid var(--line);
}

.services-list h3 {
    font-size: var(--text-lg);
    font-stretch: 115%;
    font-weight: 750;
    line-height: 1.1;
}

.services-list p {
    max-width: 56ch;
    color: var(--steel);
}

/* ===================================
   KONTAKT
   =================================== */
.contact {
    background: var(--anthracite);
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 5rem);
}

.contact h2 {
    margin-bottom: 1.25rem;
}

.contact-phone {
    display: inline-block;
    font-size: clamp(1.75rem, 3.6vw, 2.75rem);
    font-stretch: 118%;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    color: var(--signal);
    margin-bottom: 0.25rem;
}

.contact-phone:hover {
    color: var(--signal-hover);
}

.contact-mail {
    display: inline-block;
    font-size: var(--text-md);
    border-bottom: 2px solid rgba(255, 255, 255, 0.35);
}

.contact-mail:hover {
    border-bottom-color: var(--signal);
}

.contact-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 2rem;
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-facts dt {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
}

.contact-facts dd {
    line-height: 1.55;
}

.map-box {
    position: relative;
    min-height: 380px;
    height: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--anthracite-deep);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.map-box iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-consent {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    padding: 2rem;
}

.map-consent p {
    max-width: 40ch;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
}

.map-consent .map-address {
    font-size: var(--text-md);
    font-weight: 650;
    color: white;
}

.map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--anthracite-deep);
    color: rgba(255, 255, 255, 0.65);
    font-size: var(--text-sm);
}

.footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 2rem;
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
}

.footer a:hover {
    color: white;
}

/* ===================================
   UNTERSEITEN: KOPF & FILTER
   =================================== */
.page-header {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2rem);
}

.page-header h1 {
    font-size: clamp(2.25rem, 5.5vw, 4.25rem);
    font-stretch: 125%;
    font-weight: 850;
    line-height: 0.98;
}

.page-header p {
    margin-top: 0.75rem;
    color: var(--steel);
    font-variant-numeric: tabular-nums;
}

.vehicles-list {
    padding-bottom: var(--section);
}

.vehicle-filter {
    display: grid;
    grid-template-columns: minmax(200px, 2fr) repeat(3, minmax(150px, 1fr)) auto;
    gap: 0.75rem;
    align-items: end;
    padding: 1rem;
    margin-bottom: 2rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.vehicle-filter label > span {
    display: block;
    font-size: 0.8125rem;
    color: var(--steel);
    margin-bottom: 0.25rem;
}

.vehicle-filter input[type="search"],
.vehicle-filter select {
    width: 100%;
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.vehicle-filter input[type="search"]:focus,
.vehicle-filter select:focus {
    border-color: var(--ink);
}

.filter-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    white-space: nowrap;
    cursor: pointer;
}

.filter-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--ink);
}

.filter-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    grid-column: 1 / -1;
}

.filter-reset {
    font-size: var(--text-sm);
    color: var(--steel);
    text-decoration: underline;
}

.filter-reset:hover {
    color: var(--ink);
}

.filter-submit {
    min-height: 44px;
}

.js .filter-submit {
    display: none;
}

/* ===================================
   FAHRZEUG-DETAILSEITE
   =================================== */
.vehicle-detail {
    padding: 1.5rem 0 var(--section);
}

.back-link {
    display: inline-block;
    margin-bottom: 1.25rem;
    font-weight: 600;
    color: var(--steel);
}

.back-link:hover {
    color: var(--ink);
}

.preview-banner {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    background: var(--signal);
    color: var(--ink);
}

.preview-banner a {
    font-weight: 700;
    text-decoration: underline;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: start;
}

.gallery-main {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--anthracite-deep);
    border-radius: var(--radius);
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.gallery-nav:hover {
    background: var(--signal);
}

.gallery-prev {
    left: 0.75rem;
}

.gallery-next {
    right: 0.75rem;
}

.gallery-counter {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
    font-size: var(--text-sm);
    font-variant-numeric: tabular-nums;
    color: white;
    background: rgba(29, 35, 38, 0.75);
}

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
}

.gallery-thumb {
    flex: 0 0 104px;
    height: 78px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius);
    overflow: hidden;
    background: none;
    opacity: 0.65;
    cursor: pointer;
    transition: opacity 0.2s;
}

.gallery-thumb:hover {
    opacity: 1;
}

.gallery-thumb.active {
    opacity: 1;
    border-color: var(--signal);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-summary {
    position: sticky;
    top: 92px;
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.detail-summary h1 {
    font-size: clamp(1.75rem, 3vw, 2.375rem);
    margin-top: 0.2rem;
}

.detail-variant {
    margin-top: 0.4rem;
    color: var(--steel);
}

.detail-price {
    margin-top: 1.25rem;
    font-size: clamp(2rem, 3.4vw, 2.75rem);
    font-stretch: 118%;
    font-weight: 850;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.015em;
}

.detail-vat {
    margin-top: 0.35rem;
    font-size: var(--text-sm);
    color: var(--steel);
}

.detail-summary .spec-strip {
    margin-top: 1.25rem;
}

.detail-contact {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.detail-contact p {
    font-size: var(--text-sm);
    color: var(--steel);
    margin-bottom: 0.25rem;
}

.detail-stock {
    margin-top: 0.4rem;
    font-size: var(--text-sm);
    color: var(--steel);
}

.detail-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    gap: 2.5rem clamp(2rem, 5vw, 4rem);
    margin-top: clamp(3rem, 6vw, 4.5rem);
}

.spec-group h2,
.detail-block h2 {
    font-size: var(--text-lg);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--ink);
}

.spec-group dl {
    display: grid;
    grid-template-columns: auto 1fr;
}

.spec-group dt,
.spec-group dd {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--line);
}

.spec-group dt {
    padding-right: 1.5rem;
    color: var(--steel);
}

.spec-group dd {
    text-align: right;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.detail-block {
    margin-top: clamp(3rem, 6vw, 4.5rem);
}

.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    column-gap: 2rem;
}

.feature-list li {
    position: relative;
    padding: 0.6rem 0 0.6rem 1.25rem;
    border-bottom: 1px solid var(--line);
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.15rem;
    width: 8px;
    height: 8px;
    background: var(--signal);
}

.detail-description {
    margin-top: 1.25rem;
    max-width: 68ch;
    line-height: 1.7;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 24, 26, 0.96);
}

.lightbox[hidden] {
    display: none;
}

.lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    border: none;
    background: none;
    color: white;
    font-size: 2.25rem;
    line-height: 1;
    cursor: pointer;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1000px) {
    .vehicle-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vehicle-filter .filter-search {
        grid-column: 1 / -1;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-summary {
        position: static;
    }
}

@media (max-width: 860px) {
    .navbar .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem var(--gutter) 1.25rem;
        background: var(--paper);
        color: var(--ink);
        border-bottom: 1px solid var(--line);
    }

    .navbar .nav-menu.open {
        display: flex;
    }

    .nav-menu .nav-link {
        display: block;
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--line);
        font-size: var(--text-md);
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-call {
        display: none;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .services-list li {
        grid-template-columns: 1fr;
    }

    .timeline {
        grid-template-columns: 1fr;
    }

    .timeline li,
    .timeline li + li {
        padding: 1.25rem 0;
        border-left: none;
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 560px) {
    .hero-title {
        font-size: clamp(1.85rem, 9vw, 2.6rem);
        font-stretch: 100%;
        max-width: none;
        hyphens: auto;
    }

    .hero-buttons .btn {
        flex: 1 1 100%;
    }

    .hero-stock .stock-total {
        flex-basis: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.22);
        margin-right: 0;
    }

    .hero-stock a {
        padding: 0.75rem 1.25rem 0.85rem 0;
        margin-right: 0.75rem;
    }

    .vehicle-filter {
        grid-template-columns: 1fr;
    }

    .contact-facts {
        grid-template-columns: 1fr;
    }

    .spec-group dl {
        grid-template-columns: 1fr 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ===================================
   RECHTSTEXTE (Impressum, Datenschutz)
   =================================== */
.legal {
    padding-bottom: var(--section);
}

.legal-body > * {
    max-width: 72ch;
}

.legal-body h2 {
    margin-top: 2rem;
    font-size: 1.15rem;
    font-weight: 750;
}

.legal-body h2:first-child {
    margin-top: 0;
}

.legal-body p {
    margin-top: 0.6rem;
    line-height: 1.65;
}

.legal-body a {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.legal-date {
    margin-top: 2.5rem !important;
    color: var(--steel);
    font-size: var(--text-sm);
}
