* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #111827;
    background: #f6f8fb;
    line-height: 1.6;
}

.container {
    width: min(1160px, 92%);
    margin: auto;
}


/* HEADER */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.nav-container {
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* LOGO */

.logo {
    display: flex;
    align-items: baseline;
    gap: 7px;

    text-decoration: none;
}

.logo span {
    font-size: 30px;
    font-weight: 900;
    color: #082d63;
}

.logo small {
    color: #e21d2d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}


/* NAVIGATION */

nav {
    display: flex;
    gap: 28px;
}

nav a {
    text-decoration: none;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

nav a:hover {
    color: #e21d2d;
}

.menu-button {
    display: none;
    border: none;
    background: none;
    font-size: 28px;
    cursor: pointer;
}


/* HERO */

.hero {
    min-height: 600px;

    display: flex;
    align-items: center;

    position: relative;

    background:
        linear-gradient(
            110deg,
            #061d40,
            #0b4388
        );

    overflow: hidden;
}

.hero::after {
    content: "";

    position: absolute;

    right: -200px;
    bottom: -300px;

    width: 800px;
    height: 800px;

    background: #e21d2d;

    opacity: 0.25;

    border-radius: 50%;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.45),
            transparent
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    color: white;

    padding: 100px 0;

    max-width: 700px;
}

.eyebrow {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;

    color: white;

    margin-bottom: 15px;
}

.eyebrow.blue {
    color: #e21d2d;
}

.hero h1 {
    font-size: clamp(45px, 7vw, 75px);

    line-height: 1;

    letter-spacing: -3px;

    margin: 0 0 25px;
}

.hero h1 span {
    border-bottom: 6px solid #e21d2d;
}

.hero-text {
    max-width: 600px;

    font-size: 19px;

    color: #dbeafe;
}

.hero-buttons {
    display: flex;

    gap: 12px;

    flex-wrap: wrap;

    margin-top: 30px;
}


/* BUTTONS */

.button {
    display: inline-flex;

    justify-content: center;
    align-items: center;

    min-height: 48px;

    padding: 0 22px;

    border-radius: 8px;

    text-decoration: none;

    border: none;

    font-size: 14px;

    font-weight: 800;

    cursor: pointer;
}

.button.red {
    background: #e21d2d;
    color: white;
}

.button.red:hover {
    background: #c91524;
}

.button.white {
    background: white;
    color: #082d63;
}

.button.full {
    width: 100%;
}


/* INFO */

.info-strip {
    background: white;

    border-bottom: 1px solid #e5e7eb;
}

.info-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    padding: 25px 0;
}

.info-grid div {
    text-align: center;

    border-right: 1px solid #e5e7eb;
}

.info-grid div:last-child {
    border: none;
}

.info-grid strong {
    display: block;

    color: #082d63;

    font-size: 20px;
}

.info-grid span {
    color: #64748b;

    font-size: 12px;
}


/* SECTIONS */

.section {
    padding: 80px 0;
}

.section-header {
    display: flex;

    justify-content: space-between;

    align-items: end;

    gap: 20px;

    margin-bottom: 30px;
}

.section h2 {
    font-size: 42px;

    line-height: 1.1;

    letter-spacing: -1.5px;

    margin: 0 0 10px;
}

.section p {
    color: #64748b;
}


/* FILTERS */

.filters {
    display: grid;

    grid-template-columns:
        2fr
        1fr
        1fr
        1fr;

    gap: 10px;

    margin-bottom: 25px;
}

.filters input,
.filters select,
.appointment-form input,
.appointment-form select,
.appointment-form textarea {

    width: 100%;

    border: 1px solid #dce2ea;

    border-radius: 8px;

    background: white;

    padding: 13px;

    font: inherit;

    outline: none;
}

.filters input:focus,
.filters select:focus,
.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {

    border-color: #0d4c9a;

    box-shadow:
        0 0 0 3px
        rgba(13,76,154,.08);
}


/* VEHICLES */

.vehicle-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.vehicle-card {

    background: white;

    border: 1px solid #e4e9f0;

    border-radius: 14px;

    overflow: hidden;

    box-shadow:
        0 8px 25px
        rgba(0,0,0,.05);

    transition: .2s;
}

.vehicle-card:hover {

    transform: translateY(-3px);

    box-shadow:
        0 15px 35px
        rgba(0,0,0,.1);
}

.vehicle-image {

    height: 220px;

    background:
        linear-gradient(
            135deg,
            #dbe5f2,
            #eef2f7
        );

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;

    overflow: hidden;
}

.vehicle-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.vehicle-placeholder {

    text-align: center;

    color: #64748b;

    font-weight: 800;
}

.vehicle-badge {

    position: absolute;

    left: 12px;
    top: 12px;

    background: #e21d2d;

    color: white;

    padding: 6px 9px;

    border-radius: 6px;

    font-size: 11px;

    font-weight: 800;
}

.vehicle-body {
    padding: 18px;
}

.vehicle-body h3 {
    margin: 0 0 5px;

    font-size: 19px;
}

.vehicle-price {

    color: #082d63;

    font-size: 21px;

    font-weight: 900;

    margin-bottom: 12px;
}

.vehicle-meta {

    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    color: #64748b;

    font-size: 12px;

    margin-bottom: 18px;
}

.vehicle-meta span {

    padding-right: 7px;

    border-right: 1px solid #ccd4df;
}

.vehicle-meta span:last-child {
    border: none;
}

.vehicle-actions {

    display: flex;

    gap: 8px;
}

.vehicle-actions .button {
    flex: 1;
}

.button.outline {

    background: white;

    color: #082d63;

    border: 1px solid #082d63;
}


/* NO RESULTS */

.no-results {

    padding: 40px;

    background: white;

    text-align: center;

    border: 1px dashed #b7c2d0;

    border-radius: 10px;

    color: #64748b;
}

.hidden {
    display: none !important;
}


/* ABOUT */

.about {

    background: #082d63;

    color: white;
}

.about-grid {

    display: grid;

    grid-template-columns:
        1.1fr .9fr;

    gap: 60px;

    align-items: center;
}

.about p {
    color: #d4e1f5;
}

.about-card {

    background: white;

    color: #111827;

    border-radius: 18px;

    padding: 32px;

    box-shadow:
        0 20px 50px
        rgba(0,0,0,.2);
}

.about-card h3 {
    margin-top: 0;
}

.about-card a {

    color: #0d4c9a;

    font-weight: 800;

    text-decoration: none;
}

.baz-icon {

    width: 65px;
    height: 65px;

    display: grid;
    place-items: center;

    background: #e21d2d;

    color: white;

    border-radius: 12px;

    font-size: 22px;

    font-weight: 900;

    margin-bottom: 20px;
}


/* BESICHTIGUNG */

.appointment-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 60px;

    align-items: center;
}

.appointment-grid ul {

    list-style: none;

    padding: 0;

    margin-top: 25px;
}

.appointment-grid li {

    margin: 13px 0;

    padding-left: 28px;

    position: relative;
}

.appointment-grid li::before {

    content: "✓";

    position: absolute;

    left: 0;

    color: #e21d2d;

    font-weight: 900;
}


/* FORM */

.appointment-form {

    background: white;

    border: 1px solid #e4e9f0;

    border-radius: 16px;

    padding: 28px;

    box-shadow:
        0 10px 35px
        rgba(0,0,0,.06);
}

.appointment-form h3 {

    margin-top: 0;

    font-size: 23px;
}

.appointment-form label {

    display: block;

    font-size: 12px;

    font-weight: 800;

    margin-bottom: 15px;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {

    margin-top: 6px;
}

.two-columns {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 12px;
}

.appointment-form small {

    display: block;

    text-align: center;

    margin-top: 10px;

    color: #64748b;

    font-size: 11px;
}


/* CONTACT */

.contact {

    background: white;
}

.contact-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;

    margin-top: 30px;
}

.contact-card {

    background: #f6f8fb;

    border: 1px solid #e4e9f0;

    border-radius: 12px;

    padding: 22px;

    text-decoration: none;

    color: #111827;
}

.contact-card:hover {

    border-color: #e21d2d;
}

.contact-card span {

    display: block;

    color: #64748b;

    font-size: 12px;

    margin-bottom: 5px;
}

.contact-card strong {

    font-size: 16px;
}


/* FOOTER */

footer {

    background: #061a39;

    color: #b9c8df;

    padding: 28px 0;
}

.footer-content {

    display: flex;

    justify-content: space-between;

    gap: 20px;

    font-size: 12px;
}

.footer-content strong {
    color: white;
}


/* MODAL */

.modal {

    position: fixed;

    inset: 0;

    z-index: 1000;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 20px;
}

.modal-background {

    position: absolute;

    inset: 0;

    background: rgba(0,0,0,.7);
}

.modal-content {

    position: relative;

    z-index: 2;

    width: min(900px, 100%);

    max-height: 90vh;

    overflow: auto;

    background: white;

    border-radius: 16px;

    padding: 28px;
}

.close-button {

    position: absolute;

    right: 15px;
    top: 10px;

    border: none;

    background: none;

    font-size: 32px;

    cursor: pointer;

    color: #64748b;
}

.detail-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 30px;
}

.detail-image {

    height: 350px;

    border-radius: 12px;

    overflow: hidden;

    background: #e5eaf1;
}

.detail-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.detail-placeholder {

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    color: #64748b;

    font-weight: 800;
}

.detail-content h2 {

    margin: 0 0 5px;

    font-size: 30px;
}

.detail-price {

    color: #082d63;

    font-size: 25px;

    font-weight: 900;

    margin-bottom: 20px;
}

.specs {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 8px;

    margin: 20px 0;
}

.spec {

    background: #f6f8fb;

    border-radius: 7px;

    padding: 10px;

    font-size: 13px;
}

.spec strong {

    display: block;

    color: #64748b;

    font-size: 10px;

    text-transform: uppercase;
}

.equipment {

    color: #64748b;

    font-size: 14px;
}

.modal-buttons {

    display: flex;

    gap: 10px;

    margin-top: 20px;
}

.modal-buttons .button {
    flex: 1;
}


/* MOBILE */

@media (max-width: 900px) {

    .vehicle-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filters {
        grid-template-columns: 1fr 1fr;
    }

    .about-grid,
    .appointment-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 650px) {

    .menu-button {
        display: block;
    }

    nav {

        display: none;

        position: absolute;

        top: 76px;
        left: 0;
        right: 0;

        background: white;

        flex-direction: column;

        padding: 20px 4%;

        border-bottom: 1px solid #e5e7eb;
    }

    nav.open {
        display: flex;
    }

    .hero {
        min-height: 550px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-text {
        font-size: 16px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-grid div {
        border-right: none;

        border-bottom: 1px solid #e5e7eb;

        padding: 10px;
    }

    .section {
        padding: 60px 0;
    }

    .section h2 {
        font-size: 34px;
    }

    .filters {
        grid-template-columns: 1fr;
    }

    .vehicle-grid {
        grid-template-columns: 1fr;
    }

    .two-columns {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
    }

    .detail-image {
        height: 270px;
    }

    .modal-buttons {
        flex-direction: column;
    }

}/*
    ZUSÄTZLICHES CSS
    Diesen Code an das Ende deiner style.css einfügen
    (oder diese Datei separat mit <link> einbinden)
*/

/* Bildergalerie in der Detailansicht */
.gallery-main {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #f2f2f2;
}

.gallery-main img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav:hover { background: rgba(0,0,0,0.75); }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

.gallery-counter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
}

.gallery-thumbs {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: opacity 0.15s, border-color 0.15s;
}

.gallery-thumb:hover { opacity: 0.9; }
.gallery-thumb.active { opacity: 1; border-color: #C1121F; }

/* Kurzbeschreibung unter Titel */
.detail-shortdesc {
    color: #555;
    font-size: 15px;
    margin: 4px 0 10px;
}

/* Ausstattungsliste im AutoScout-Stil */
.equipment-list {
    columns: 2;
    -webkit-columns: 2;
    column-gap: 20px;
    padding-left: 18px;
    margin: 8px 0 16px;
    font-size: 14px;
    line-height: 1.6;
}

.equipment-list li {
    break-inside: avoid;
}

@media (max-width: 600px) {
    .equipment-list { columns: 1; }
    .gallery-main img { height: 220px; }
}

/* Formular Status-Meldung (Formspree) */
.form-status {
    margin-top: 10px;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
}

.form-status.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.form-status.error {
    background: #ffebee;
    color: #c62828;
}