/* ==========================================================
   KFZ HEROLD — STYLESHEET
   Bereinigt: doppelte Regeln zusammengeführt, ein struktureller
   Bug behoben (fehlende Klammer riss Mobile-Styles in den
   globalen Scope), Farben/Radien/Schatten als CSS-Variablen.

   Design-Update: gedeckte Anthrazit/Gold-Palette, Premium-
   Schriftpaarung (Fraunces / Inter), ruhigere Übergänge und
   etwas mehr Weißraum für einen edleren Auftritt.
   ========================================================== */

/* Schriften: im HTML-<head> per <link> eingebunden (siehe Hinweis im Chat) */

:root {
    /* Typografie */
    --font-heading: 'Jost', 'Century Gothic', Futura, sans-serif;
    --font-body: 'Inter', Arial, sans-serif;

    /* Text */
    --color-text: #16191e;
    --color-text-strong: #333;
    --color-text-muted: #666;
    --color-text-light: #777;
    --color-text-lighter: #888;
    --color-text-inverse-muted: #bbb;

    /* Neutrals */
    --color-white: #fff;
    --color-black: #000;
    --color-dark-hover: #444;
    --color-dark-hover-2: #555;

    /* Borders & backgrounds — warmes Off-White statt reinem Weiß */
    --color-border: #ddd;
    --color-border-light: #eee;
    --color-bg: #f7f5f1;
    --color-bg-alt: #f3f1ec;
    --color-bg-card: #faf9f6;
    --color-bg-muted: #f2f2f2;

    /* Akzent: gedecktes Gold/Champagner für CTAs & Highlights */
    /* Status */
    --color-accent: #f5b400;
    --color-danger: #d93025;
    --color-danger-dark: #b71c1c;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-pill: 50px;

    /* Shadows — etwas weicher/größer für ruhigere Tiefe */
    --shadow-card: 0 12px 40px rgba(20, 20, 20, .07);
    --shadow-card-hover: 0 24px 50px rgba(20, 20, 20, .14);

    /* Motion — sanfteres Ease-out statt linear */
    --transition-fast: .2s cubic-bezier(.25, .8, .25, 1);
    --transition: .4s cubic-bezier(.25, .8, .25, 1);

    /* Layout */
    --container-max: 1400px;
    --nav-padding-x: 60px;
}

/* -----------------------------------------------------
   RESET & BASIS
----------------------------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0;
}

/* -----------------------------------------------------
   NAVIGATION
----------------------------------------------------- */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: rgba(255,255,255,0.90);
    backdrop-filter: blur(12px);
    z-index: 1000;
    transition: var(--transition);
    box-sizing: border-box;
}

/* Auf Desktop unsichtbar: die echten Kinder (nav, .phone) bleiben
   direkte Flex-Items der .navbar, das Desktop-Layout ändert sich
   dadurch nicht. Auf Mobile wird daraus das ausklappbare Menü. */
.nav-panel {
    display: contents;
}

.nav-toggle {
    display: none;
}

.logo {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

nav {
    display: flex;
    gap: 35px;
}

nav a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: var(--transition);
}

nav a:hover {
    color: var(--color-text-light);
}

.phone {
    font-weight: 700;
}

.logo img {
    width: 170px;
    height: auto;
    max-width: 170px;
    display: block;
}

.navbar .logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

.navbar .logo img {
    display: block;
    width: 170px;
    height: auto;
    max-width: 170px;
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: 35px;
    margin-left: auto;
    margin-right: auto;
}

.navbar nav a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: var(--transition);
}

.navbar nav a:hover {
    color: var(--color-text-light);
}

.navbar .phone {
    display: block;
    flex: 0 0 auto;
    margin: 0;
    color: var(--color-text);
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

/* -----------------------------------------------------
   HERO
----------------------------------------------------- */

.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/auto.jpg");
    background-size: cover;
    background-position: center;
    animation: heroZoom 22s ease-in-out infinite alternate;
    z-index: 0;
}

.hero-text {
    margin-left: 8%;
    max-width: 650px;
    color: var(--color-white);
    position: relative;
    z-index: 2;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero h1 {
    font-size: 72px;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero p {
    font-size: 24px;
    margin: 25px 0;
    margin-bottom: 40px;
}

.intro {
    text-align: center;
    padding: 80px;
}

.intro h2 {
    font-size: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* -----------------------------------------------------
   ANIMATIONEN
----------------------------------------------------- */

@keyframes heroZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.09); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-text h1,
.hero-text p,
.hero-text .hero-buttons,
.hero-text .search-box {
    opacity: 0;
    animation: fadeUp .9s cubic-bezier(.25, .8, .25, 1) forwards;
}

.hero-text h1          { animation-delay: .15s; }
.hero-text p            { animation-delay: .35s; }
.hero-text .hero-buttons { animation-delay: .55s; }
.hero-text .search-box   { animation-delay: .75s; }

/* Scroll-Reveal: Klasse "reveal" im HTML setzen (z. B. auf
   .vehicle-card, .why-card), JS schaltet "is-visible" per
   IntersectionObserver dazu — siehe js/reveal.js */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.25, .8, .25, 1),
                transform .7s cubic-bezier(.25, .8, .25, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .hero-text h1, .hero-text p, .hero-text .hero-buttons, .hero-text .search-box {
        opacity: 1;
        animation: none;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* -----------------------------------------------------
   BUTTONS (ALLGEMEIN)
----------------------------------------------------- */

button {
    padding: 15px 35px;
    background: var(--color-white);
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.btn-primary,
.btn-secondary {
    background: var(--color-white);
    color: var(--color-black);
    border: 2px solid var(--color-white);
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: var(--transition);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
}

.contact-section a,
.contact-section .btn-primary {
    display: inline-block;
    background: var(--color-text) !important;
    color: var(--color-white) !important;
    padding: 16px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: .25s ease;
}

.contact-section a:hover,
.contact-section .btn-primary:hover {
    background: var(--color-text-strong) !important;
}

.vehicles-cta .btn-primary {
    display: inline-block;
    background: var(--color-text) !important;
    color: var(--color-white) !important;
    padding: 17px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    transition: var(--transition);
}

.vehicles-cta .btn-primary:hover {
    background: var(--color-text-strong) !important;
    color: var(--color-white) !important;
    transform: translateY(-2px);
}

/* -----------------------------------------------------
   FAHRZEUG-LISTE
----------------------------------------------------- */

.vehicles {
    padding: 130px 8%;
    background: var(--color-bg);
}

.vehicles h2 {
    font-size: 48px;
    text-align: center;
    margin-bottom: 15px;
}

.subtitle {
    text-align: center;
    font-size: 18px;
    margin-bottom: 60px;
    color: var(--color-text-muted);
    letter-spacing: .02em;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 35px;
}

.vehicles-cta {
    text-align: center;
    margin-top: 55px;
}

.vehicle-card {
    position: relative;
    background: var(--color-white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.vehicle-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
}

.vehicle-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: .4s;
}

.vehicle-card:hover img {
    transform: scale(1.05);
}

.vehicle-info {
    padding: 25px;
}

.vehicle-info h3 {
    font-size: 26px;
    margin-bottom: 10px;
}

.vehicle-info p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.vehicle-info h4 {
    font-size: 30px;
    margin-bottom: 25px;
}

.details-btn {
    display: inline-block;
    padding: 14px 28px;
    background: var(--color-black);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
}

.details-btn:hover {
    background: var(--color-text-strong);
}

.vehicles-page-header {
    padding: 150px 8% 45px;
    text-align: center;
    background: var(--color-white);
}

.vehicles-page-header h1 {
    margin: 0 0 15px;
    font-size: 56px;
    line-height: 1.1;
    font-weight: 800;
}

.vehicles-page-header p {
    margin: 0;
    font-size: 21px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* -----------------------------------------------------
   SUCHLEISTE
----------------------------------------------------- */

.search-box {
    margin-top: 40px;
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    background: rgba(255,255,255,0.95);
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.search-box select {
    padding: 14px 18px;
    min-width: 160px;
    border: none;
    border-radius: 10px;
    background: var(--color-bg-alt);
    font-size: 15px;
}

.search-box button {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    background: var(--color-text);
    color: var(--color-white);
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    background: var(--color-text-strong);
    transform: translateY(-2px);
}

/* -----------------------------------------------------
   FAHRZEUG-DETAIL: GALERIE
----------------------------------------------------- */

.car-header {
    display: flex;
    align-items: flex-start;
    gap: 70px;
    padding: 140px 8% 80px;
}

.gallery {
    flex: 1.8;
    position: relative;
}

.main-image {
    width: 100%;
    border-radius: 14px;
    display: block;
    cursor: zoom-in;
    transition: opacity .25s ease;
}

.thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.thumbnails img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
}

.thumbnails img:hover {
    transform: scale(1.05);
}

.main-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
    background: var(--color-bg-muted);
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 50%;
    background: rgba(20,20,20,.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--color-white);
    font-family: Arial, sans-serif;
    font-size: 27px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    opacity: .9;
    transition: background .25s ease,
        border-color .25s ease,
        transform .25s ease,
        opacity .25s ease;
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-arrow:hover {
    background: rgba(0,0,0,.85);
    border-color: rgba(255,255,255,.8);
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
}

.gallery-arrow:active {
    transform: translateY(-50%) scale(.95);
}

.thumbnail {
    flex: 0 0 auto;
    width: 105px;
    height: 70px;
    object-fit: cover;
    border-radius: 9px;
    cursor: pointer;
    opacity: .55;
    border: 2px solid transparent;
    transition: opacity .25s ease,
        transform .25s ease,
        border-color .25s ease;
}

.thumbnail:hover {
    opacity: .9;
    transform: translateY(-2px);
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--color-text);
    transform: translateY(-2px);
}

.gallery-modal {
    position: fixed;
    inset: 0;
    background: rgba(8,8,8,0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    transition: opacity 0.3s ease,
        visibility 0.3s ease;
}

.gallery-modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-image {
    max-width: 88vw;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.55);
    user-select: none;
    transition: opacity 0.2s ease;
}

.gallery-close {
    position: absolute;
    top: 25px;
    right: 30px;
    width: 46px;
    height: 46px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 50%;
    background: rgba(20,20,20,0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--color-white);
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    z-index: 20;
    transition: all 0.25s ease;
}

.gallery-close:hover {
    background: var(--color-white);
    color: var(--color-text);
    transform: scale(1.08);
}

.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    background: rgba(20,20,20,0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--color-white);
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    z-index: 20;
    transition: all 0.25s ease;
}

.modal-prev {
    left: 35px;
}

.modal-next {
    right: 35px;
}

.modal-arrow:hover {
    background: var(--color-white);
    color: var(--color-text);
    transform: translateY(-50%) scale(1.08);
}

.modal-arrow:active {
    transform: translateY(-50%) scale(0.94);
}

.modal-counter {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    background: rgba(20,20,20,0.55);
    padding: 8px 15px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* -----------------------------------------------------
   FAHRZEUG-DETAIL: INFO & SPECS
----------------------------------------------------- */

.car-info {
    flex: 1;
    max-width: 420px;
}

.car-info h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.car-info h2 {
    font-size: 42px;
    margin-bottom: 30px;
}

.car-info p {
    font-size: 20px;
    line-height: 2;
    margin-bottom: 40px;
}

.specs {
    margin: 35px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-row span {
    color: var(--color-text-muted);
    font-size: 17px;
}

.spec-row strong {
    font-size: 18px;
}

.full-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 18px;
    background: var(--color-text);
    color: var(--color-white);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 35px;
    transition: var(--transition);
}

.full-btn:hover {
    background: var(--color-text-strong);
}

.badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background: var(--color-text-strong);
    color: var(--color-white);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: .03em;
    z-index: 10;
}

/* -----------------------------------------------------
   BESCHREIBUNG & AUSSTATTUNG
----------------------------------------------------- */

.description,
.equipment {
    padding: 110px 8%;
}

.description h2,
.equipment h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

.description p {
    font-size: 18px;
    line-height: 1.8;
    max-width: 900px;
    color: var(--color-dark-hover-2);
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
    margin-top: 30px;
}

.equipment-grid div {
    background: var(--color-bg-alt);
    padding: 18px;
    border-radius: 10px;
    font-size: 18px;
}

/* -----------------------------------------------------
   KONTAKT
----------------------------------------------------- */

.contact-section {
    padding: 90px 8%;
    background: var(--color-bg);
    text-align: center;
}

.contact-section h2 {
    font-size: 38px;
    margin-bottom: 15px;
}

.contact-section p {
    font-size: 18px;
    color: var(--color-text-muted);
    margin-bottom: 50px;
}

.contact-form {
    max-width: 700px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 18px;
    font-size: 16px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    outline: none;
}

.contact-form textarea {
    height: 180px;
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-text);
}

.contact-form button {
    padding: 18px;
    background: var(--color-text);
    color: var(--color-white);
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.contact-form button:hover {
    background: var(--color-text-strong);
}

/* -----------------------------------------------------
   FAHRZEUG VERKAUFEN
----------------------------------------------------- */

.sell-hero {
    padding: 120px 8% 60px;
    text-align: center;
    background: var(--color-bg-card);
}

.sell-hero h1 {
    font-size: 52px;
    margin-bottom: 20px;
}

.sell-hero p {
    font-size: 20px;
    color: var(--color-text-muted);
}

.sell-form {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 8%;
}

.form-success {
    max-width: 560px;
    margin: 0 auto;
    padding: 50px 40px;
    text-align: center;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.form-success h2,
.form-success h3 {
    margin-bottom: 16px;
}

.form-success p {
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.form-success .btn-primary {
    margin-top: 20px;
    background: var(--color-text) !important;
    color: var(--color-white) !important;
}

.form-error {
    max-width: 900px;
    margin: 0 auto 25px;
    padding: 16px 22px;
    background: rgba(217, 48, 37, .08);
    border-left: 4px solid var(--color-danger);
    border-radius: var(--radius-sm);
    color: var(--color-danger-dark);
    font-weight: 600;
}

.sell-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sell-form input,

.sell-form textarea {
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-size: 17px;
}

.sell-form textarea {
    height: 180px;
    resize: none;
}

.sell-form button {
    padding: 18px;
    background: var(--color-text);
    color: var(--color-white);
    border: none;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.sell-form button:hover {
    background: var(--color-text-strong);
}

/* -----------------------------------------------------
   BEWERTUNGEN
----------------------------------------------------- */

.reviews {
    padding: 100px 8%;
    text-align: center;
}

.reviews h2 {
    font-size: 42px;
    margin-bottom: 60px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
}

.review-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-card);
}

.stars {
    color: var(--color-accent);
    font-size: 26px;
    margin-bottom: 20px;
}

.review-card p {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 25px;
}

.review-card h4 {
    font-size: 18px;
}

/* -----------------------------------------------------
   WARUM KFZ HEROLD
----------------------------------------------------- */

.why-us {
    padding: 130px 8%;
    text-align: center;
    background: var(--color-bg);
}

.why-us h2 {
    font-size: 42px;
    margin-bottom: 60px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 30px;
}

.why-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-8px);
}

.icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.why-card h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

.why-card p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* -----------------------------------------------------
   STANDORT & KARTE
----------------------------------------------------- */

.location-section {
    padding: 100px 8%;
    background: var(--color-bg-alt);
}

.location-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.8fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.location-label {
    display: block;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-text-light);
}

.location-text h2 {
    margin: 0 0 25px;
    font-size: 48px;
    line-height: 1.1;
    font-weight: 800;
}

.location-text p {
    margin: 0 0 25px;
    font-size: 19px;
    line-height: 1.7;
    color: var(--color-dark-hover-2);
}

.map-link {
    display: inline-block;
    color: var(--color-text);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--color-text);
    padding-bottom: 4px;
    transition: .25s ease;
}

.map-link:hover {
    opacity: .6;
}

.map-container {
    width: 100%;
    height: 480px;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,.12);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.maps-consent {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 40px 25px;
    background: var(--color-border-light);
    text-align: center;
}

.maps-consent-content {
    width: 100%;
    max-width: 460px;
}

.maps-icon {
    font-size: 38px;
    margin-bottom: 15px;
}

.maps-consent h3 {
    margin: 0 0 12px;
    font-size: 27px;
}

.maps-consent p {
    margin: 8px 0;
    line-height: 1.6;
}

.maps-info {
    margin-top: 18px !important;
    color: var(--color-text-muted);
    font-size: 13px;
}

.maps-load-btn {
    margin-top: 22px;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    background: var(--color-text);
    color: var(--color-white);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .25s ease,
        transform .25s ease;
}

.maps-load-btn:hover {
    background: var(--color-text-strong);
    transform: translateY(-1px);
}

.google-map {
    width: 100%;
    height: 100%;
}

.google-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* -----------------------------------------------------
   FOOTER
----------------------------------------------------- */

footer {
    background: var(--color-text);
    color: var(--color-white);
    margin-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    padding: 70px 60px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 18px;
    margin: 0 0 20px;
    color: var(--color-white);
    font-weight: 700;
}

.footer-column p {
    color: var(--color-text-inverse-muted);
    line-height: 1.6;
    margin: 0 0 12px;
    font-size: 15px;
}

.footer-column a {
    color: var(--color-text-inverse-muted);
    text-decoration: none;
    line-height: 2;
    display: inline-block;
    margin-bottom: 10px;
    font-size: 15px;
    transition: .25s ease;
}

.footer-column a:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 22px 30px;
    text-align: center;
    color: var(--color-text-lighter);
    font-size: 13px;
    line-height: 1.5;
}

.footer-column {
    min-width: 0;
}

/* -----------------------------------------------------
   SOCIAL ICONS (Footer) & WHATSAPP-BUTTON
----------------------------------------------------- */

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    transition: var(--transition);
    margin-bottom: 0;
}

.footer-social a:hover {
    background: rgba(255,255,255,.2);
    transform: translateY(-2px);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: var(--color-white);
}

.whatsapp-float {
    position: fixed;
    right: 26px;
    bottom: 26px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card-hover);
    z-index: 500;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: translateY(-4px) scale(1.05);
    background: #1ebc59;
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: var(--color-white);
}

@media (max-width: 600px) {

    .whatsapp-float {
        width: 54px;
        height: 54px;
        right: 18px;
        bottom: 18px;
    }

    .whatsapp-float svg {
        width: 27px;
        height: 27px;
    }

}

/* -----------------------------------------------------
   RECHTLICHES
----------------------------------------------------- */

.legal-page {
    padding: 150px 20px 100px;
    background: var(--color-bg-card);
    min-height: 70vh;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 60px 70px;
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(0,0,0,.06);
}

.legal-label {
    display: block;
    margin-bottom: 15px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-text-light);
}

.legal-container h1 {
    margin: 0 0 55px;
    font-size: 52px;
    line-height: 1.1;
    font-weight: 800;
}

.legal-section {
    margin-bottom: 45px;
}

.legal-section h2 {
    margin: 0 0 18px;
    font-size: 25px;
    line-height: 1.25;
}

.legal-section p {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-dark-hover);
}

.legal-section ul {
    margin: 15px 0 20px;
    padding-left: 25px;
}

.legal-section li {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark-hover);
}

.legal-section a {
    color: var(--color-text);
    font-weight: 600;
}

.legal-back {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

.legal-back a {
    color: var(--color-text);
    font-weight: 700;
    text-decoration: none;
}

.legal-back a:hover {
    opacity: .6;
}

/* -----------------------------------------------------
   ADMIN: LOGIN
----------------------------------------------------- */

.admin-login-page {
    min-height: 100vh;
    padding: 160px 20px 80px;
    background: var(--color-bg-card);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.admin-login-box {
    width: 100%;
    max-width: 460px;
    background: var(--color-white);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,.08);
}

.admin-login-label {
    display: block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-text-light);
}

.admin-login-box h1 {
    margin: 0 0 15px;
    font-size: 42px;
    line-height: 1.1;
}

.admin-login-box > p {
    margin: 0 0 35px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.admin-login-box form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-login-box label {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 700;
}

.admin-login-box input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 16px;
    background: var(--color-white);
}

.admin-login-box input:focus {
    outline: none;
    border-color: var(--color-text);
}

.admin-login-box button {
    margin-top: 20px;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background: var(--color-text);
    color: var(--color-white);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.admin-login-box button:hover {
    opacity: .85;
}

.login-error {
    margin-bottom: 20px;
    padding: 12px 15px;
    background: #f5e5e5;
    color: #8a1f1f;
    border-radius: 8px;
    font-size: 14px;
}

/* -----------------------------------------------------
   ADMIN: BEREICH
----------------------------------------------------- */

.admin {
    max-width: 1100px;
    margin: 120px auto;
    padding: 40px;
}

.admin h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.admin-box {
    background: var(--color-white);
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(0,0,0,.08);
    margin-bottom: 80px;
}

.admin-box h2,
.admin-list h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-family: inherit;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    outline: none;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: var(--color-text);
}

.admin-form textarea {
    min-height: 180px;
    resize: vertical;
}

.admin-form button {
    margin-top: 10px;
    width: 100%;
    padding: 18px;
    background: var(--color-text);
    color: var(--color-white);
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.admin-form button:hover {
    background: var(--color-text-strong);
}

.admin-cars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-car {
    display: flex;
    align-items: center;
    gap: 25px;
    background: var(--color-white);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,.07);
}

.admin-car-image img {
    width: 200px;
    height: 130px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.admin-car-info {
    flex: 1;
}

.admin-car-info h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.admin-car-info p {
    margin: 6px 0;
    color: var(--color-dark-hover-2);
}

.admin-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-empty {
    background: var(--color-white);
    padding: 30px;
    border-radius: 12px;
    color: var(--color-text-light);
}

.admin-back {
    display: inline-block;
    margin-top: 25px;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.admin-back:hover {
    opacity: .6;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.admin-logout {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid var(--color-text);
    border-radius: 6px;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: .2s ease;
}

.admin-logout:hover {
    background: var(--color-text);
    color: var(--color-white);
}

.admin-search {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 25px 0 35px;
    max-width: 700px;
}

.admin-search input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-white);
    font-size: 16px;
    box-sizing: border-box;
}

.admin-search input:focus {
    outline: none;
    border-color: var(--color-text);
}

.admin-search button {
    padding: 14px 22px;
    border: none;
    border-radius: 8px;
    background: var(--color-text);
    color: var(--color-white);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.admin-search button:hover {
    opacity: .85;
}

/* -----------------------------------------------------
   SONSTIGES
----------------------------------------------------- */

.upload-area {
    margin-top: 10px;
    padding: 25px;
    border: 2px dashed var(--color-border);
    border-radius: 12px;
}

.upload-area label {
    display: block;
    font-weight: 700;
    margin-bottom: 15px;
}

.upload-area p {
    color: var(--color-text-light);
    margin-top: 10px;
}

.edit-btn,
.delete-btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: var(--transition);
}

.edit-btn {
    background: var(--color-text);
    color: var(--color-white);
}

.edit-btn:hover {
    background: var(--color-text-strong);
}

.delete-btn {
    background: var(--color-danger);
    color: var(--color-white);
}

.delete-btn:hover {
    background: var(--color-danger-dark);
}

.search-reset {
    white-space: nowrap;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.search-reset:hover {
    opacity: .6;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 600px) {

body {
        font-size: 15px;
}

.navbar {
        position: fixed;
        top: 0;
        left: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 14px 20px;
        background: rgba(247,245,241,.94);
        backdrop-filter: blur(12px);
        width: 100%;
        box-sizing: border-box;
        gap: 0;
        z-index: 1000;
}

.logo {
        font-size: 22px;
        line-height: 1;
        letter-spacing: 1.5px;
}

.navbar .logo {
        width: auto;
        flex: 0 0 auto;
}

.navbar .logo img {
        width: 100px;
        max-width: 100px;
}

/* Hamburger-Button */
.nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 34px;
        height: 34px;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        flex: 0 0 auto;
        z-index: 1001;
}

.nav-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--color-text);
        transition: var(--transition);
}

.nav-toggle.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
        opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
}

/* Ausklappbares Menü */
.nav-panel {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 30px;
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: min(320px, 82%);
        background: var(--color-bg-card);
        box-shadow: -20px 0 50px rgba(0,0,0,.18);
        padding: 40px 34px;
        box-sizing: border-box;
        transition: right .4s cubic-bezier(.25,.8,.25,1);
        z-index: 999;
}

.nav-panel.is-open {
        right: 0;
}

.nav-panel nav {
        display: flex;
        flex-direction: column;
        gap: 22px;
        width: 100%;
}

.nav-panel nav a {
        font-size: 15px;
}

.nav-panel .phone {
        display: block;
        margin-top: auto;
        padding-top: 20px;
        border-top: 1px solid var(--color-border);
        width: 100%;
        font-size: 14px;
        box-sizing: border-box;
}

body.nav-open {
        overflow: hidden;
}

body.nav-open::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(10,10,10,.45);
        z-index: 998;
}

.hero {
        min-height: 0;
        background-position: center;
        position: relative;
        width: 100%;
        height: auto;
        overflow: visible;
        display: block;
        align-items: flex-start;
}

.hero-text {
        margin: 0;
        max-width: none;
        position: relative;
        width: 100%;
        box-sizing: border-box;
        padding: 110px 20px 40px;
        z-index: 2;
}

.hero h1 {
        font-size: clamp(32px, 9vw, 42px);
        line-height: 1.12;
        margin-bottom: 20px;
        margin: 0 0 20px;
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
}

.hero p {
        font-size: 18px;
        line-height: 1.5;
        margin-bottom: 30px;
        margin: 0 0 28px;
}

.hero-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        display: flex;
        width: 100%;
}

.overlay {
        position: relative;
        inset: 0;
        height: auto;
        display: block;
        align-items: flex-start;
        overflow: visible;
        width: 100%;
        min-height: 0;
        background: rgba(0,0,0,.45);
}

.btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 16px 20px;
        box-sizing: border-box;
        font-size: 17px;
}

.contact-section a,
    .contact-section .btn-primary {
        width: 100%;
        box-sizing: border-box;
        display: block;
        margin-top: 25px;
}

.vehicles-cta .btn-primary {
        width: 100%;
        box-sizing: border-box;
        padding: 17px 20px;
}

.vehicles {
        padding: 60px 20px;
}

.vehicles h2 {
        font-size: 32px;
        line-height: 1.15;
}

.subtitle {
        font-size: 16px;
        margin-bottom: 30px;
        line-height: 1.5;
}

.vehicle-grid {
        grid-template-columns: 1fr;
        gap: 22px;
}

.vehicle-card img {
        height: 220px;
        width: 100%;
        object-fit: cover;
}

.vehicle-info {
        padding: 20px;
}

.vehicle-info h3 {
        font-size: 22px;
}

.vehicle-info h4 {
        font-size: 26px;
}

.details-btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
}

.vehicles-page-header {
        padding: 55px 20px 35px;
}

.vehicles-page-header h1 {
        font-size: 42px;
        line-height: 1.1;
        margin-bottom: 12px;
}

.vehicles-page-header p {
        font-size: 18px;
        line-height: 1.5;
}

.search-box {
        margin-top: 28px;
        padding: 16px;
        border-radius: 16px;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        gap: 10px;
        max-width: none;
}

.search-box select,
    .search-box button {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 15px;
        font-size: 16px;
}

.car-header {
        padding: 45px 20px 50px;
        gap: 35px;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
}

.gallery {
        width: 100%;
        max-width: 100%;
}

.main-image {
        width: 100%;
        border-radius: 10px;
        height: auto;
        max-height: none;
        object-fit: cover;
}

.gallery-arrow {
        width: 40px;
        height: 40px;
        font-size: 23px;
}

.gallery-prev {
        left: 10px;
}

.gallery-next {
        right: 10px;
}

.thumbnails {
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 5px;
        scrollbar-width: none;
        width: 100%;
        display: flex;
}

.thumbnails::-webkit-scrollbar {
        display: none;
}

.thumbnails img {
        flex: 0 0 auto;
        width: 78px;
        height: 55px;
}

.gallery-modal {
        padding: 15px;
}

.modal-image {
        max-width: 94vw;
        max-height: 78vh;
        border-radius: 6px;
}

.gallery-close {
        top: 15px;
        right: 15px;
        width: 42px;
        height: 42px;
        font-size: 27px;
}

.modal-arrow {
        width: 42px;
        height: 42px;
        font-size: 27px;
}

.modal-prev {
        left: 12px;
}

.modal-next {
        right: 12px;
}

.modal-counter {
        bottom: 18px;
        font-size: 13px;
}

.main-image-container {
        width: 100%;
}

.thumbnail,
    .thumbnails img {
        flex: 0 0 auto;
        width: 82px;
        height: 58px;
        object-fit: cover;
}

.car-info {
        width: 100%;
        max-width: none;
}

.car-info h1 {
        font-size: 34px;
        line-height: 1.1;
        margin-bottom: 15px;
}

.car-info h2 {
        font-size: 30px;
        margin-bottom: 25px;
}

.specs {
        margin: 25px 0;
        width: 100%;
}

.spec-row {
        padding: 14px 0;
        gap: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
}

.spec-row span {
        font-size: 15px;
}

.spec-row strong {
        font-size: 15px;
        text-align: right;
}

.full-btn {
        padding: 16px;
        margin-top: 25px;
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
}

.car-info p {
        font-size: 16px;
        line-height: 1.7;
}

.spec-row span,
    .spec-row strong {
        font-size: 15px;
}

.description,
    .equipment {
        padding: 55px 20px;
}

.description h2,
    .equipment h2 {
        font-size: 29px;
        margin-bottom: 20px;
        line-height: 1.2;
}

.description p {
        font-size: 16px;
        line-height: 1.7;
}

.equipment-grid {
        grid-template-columns: 1fr;
        gap: 12px;
}

.equipment-grid div {
        padding: 15px;
        font-size: 16px;
}

.contact-section {
        padding: 60px 20px;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
}

.contact-section h2 {
        font-size: 29px;
        line-height: 1.2;
}

.contact-section p {
        font-size: 16px;
        margin-bottom: 30px;
        line-height: 1.6;
}

.contact-form {
        width: 100%;
}

.contact-form input,
    .contact-form textarea {
        width: 100%;
        padding: 16px;
        font-size: 16px;
        box-sizing: border-box;
}

.contact-section h2,
    .contact-section p {
        max-width: 100%;
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-wrap: break-word;
}

.sell-hero {
        padding: 65px 20px 45px;
}

.sell-hero h1 {
        font-size: 37px;
        line-height: 1.1;
}

.sell-hero p {
        font-size: 17px;
        line-height: 1.6;
}

.sell-form {
        margin: 45px auto;
        padding: 0 20px;
        width: 100%;
        box-sizing: border-box;
}

.sell-form input,
    .sell-form textarea {
        width: 100%;
}

.sell-form input,
    .sell-form textarea,
    .sell-form select {
        width: 100%;
        box-sizing: border-box;
}

.reviews {
        padding: 65px 20px;
}

.reviews h2 {
        font-size: 31px;
        margin-bottom: 30px;
}

.reviews-grid {
        grid-template-columns: 1fr;
        gap: 18px;
}

.review-card {
        padding: 28px 22px;
}

.why-us {
        padding: 65px 20px;
}

.why-us h2 {
        font-size: 31px;
        margin-bottom: 30px;
}

.why-grid {
        grid-template-columns: 1fr;
        gap: 18px;
}

.location-section {
        padding: 60px 20px;
}

.location-container {
        grid-template-columns: 1fr;
        gap: 30px;
}

.location-text h2 {
        font-size: 30px;
}

.location-text p {
        font-size: 16px;
}

.map-container {
        height: 460px;
        border-radius: 12px;
}

.maps-consent {
        padding: 30px 20px;
}

.maps-icon {
        font-size: 30px;
        margin-bottom: 10px;
}

.maps-consent h3 {
        font-size: 22px;
}

.maps-consent p {
        font-size: 14px;
}

.maps-load-btn {
        padding: 13px 20px;
        font-size: 14px;
}

.why-card {
        padding: 28px 22px;
}

.icon {
        font-size: 34px;
}

footer {
        margin-top: 50px;
}

.footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 50px 20px;
}

.footer-column h3 {
        font-size: 19px;
}

.footer-column p,
    .footer-column a {
        font-size: 15px;
}

.footer-bottom {
        padding: 20px;
        font-size: 13px;
        line-height: 1.5;
        text-align: center;
}

.admin {
        margin: 100px auto 40px;
        padding: 25px 20px;
        width: 100%;
        box-sizing: border-box;
}

.admin h1 {
        font-size: 32px;
}

.admin h2 {
        font-size: 28px;
}

.admin-car {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
}

.admin-car img {
        width: 100%;
        height: 200px;
        object-fit: cover;
}

.admin-buttons {
        flex-direction: column;
        display: flex;
        width: 100%;
        gap: 10px;
}

.admin-car-info {
        width: 100%;
}

.edit-btn,
    .delete-btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
}

html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
}

}

@media (min-width: 601px) and (max-width: 768px) {

.logo img {
        width: 150px;
        max-width: 150px;
}

.search-box {
        margin-top: 30px;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 16px;
        border-radius: 14px;
}

.search-box select {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 14px 16px;
        font-size: 15px;
}

.search-box button {
        width: 100%;
        box-sizing: border-box;
        padding: 15px 20px;
        margin-top: 4px;
        font-size: 15px;
}

.gallery-arrow {
        width: 38px;
        height: 38px;
        font-size: 23px;
}

.gallery-prev {
        left: 12px;
}

.gallery-next {
        right: 12px;
}

.thumbnail {
        width: 85px;
        height: 58px;
}

.modal-image {
        max-width: 94vw;
        max-height: 78vh;
}

.gallery-close {
        top: 18px;
        right: 18px;
        width: 42px;
        height: 42px;
}

.modal-arrow {
        width: 42px;
        height: 42px;
        font-size: 26px;
}

.modal-prev {
        left: 12px;
}

.modal-next {
        right: 12px;
}

.modal-counter {
        bottom: 18px;
}

.location-section {
        padding: 70px 20px;
}

.location-container {
        grid-template-columns: 1fr;
        gap: 40px;
}

.location-text h2 {
        font-size: 36px;
}

.location-text p {
        font-size: 17px;
}

.map-container {
        height: 350px;
        border-radius: 14px;
}

.legal-page {
        padding: 110px 20px 60px;
}

.legal-container {
        padding: 40px 25px;
        border-radius: 12px;
}

.legal-container h1 {
        font-size: 38px;
        margin-bottom: 40px;
}

.legal-section {
        margin-bottom: 35px;
}

.legal-section h2 {
        font-size: 22px;
}

.legal-section p,
    .legal-section li {
        font-size: 15px;
        line-height: 1.7;
}

.admin-login-page {
        padding: 130px 20px 60px;
}

.admin-login-box {
        padding: 35px 25px;
}

.admin-login-box h1 {
        font-size: 34px;
}

.admin-header-actions {
        gap: 12px;
}

.admin-header-actions .phone {
        display: none;
}

.admin-logout {
        padding: 9px 14px;
        font-size: 13px;
}

.admin-search {
        flex-wrap: wrap;
        gap: 10px;
}

.admin-search input {
        width: 100%;
        flex-basis: 100%;
}

.admin-search button {
        flex: 1;
}

}

@media (min-width: 601px) and (max-width: 800px) {

.admin {
        margin-top: 100px;
        padding: 25px;
}

.admin-box {
        padding: 25px;
}

.admin-grid {
        grid-template-columns: 1fr;
}

.admin-car {
        flex-direction: column;
        align-items: stretch;
}

.admin-car-image img {
        width: 100%;
        height: 220px;
}

.admin-buttons {
        flex-direction: row;
}

.edit-btn,
    .delete-btn {
        flex: 1;
}

}

@media (min-width: 601px) and (max-width: 900px) {

.navbar {
        padding: 18px 25px;
}

.logo {
        font-size: 24px;
        letter-spacing: 1.5px;
}

nav {
        gap: 18px;
}

nav a {
        font-size: 14px;
}

.phone {
        display: none;
}

.navbar .logo img {
        width: 150px;
}

.navbar nav {
        gap: 20px;
}

.navbar nav a {
        font-size: 14px;
}

.navbar .phone {
        font-size: 14px;
}

.hero {
        min-height: 720px;
        height: auto;
}

.hero-text {
        margin-left: 6%;
        margin-right: 6%;
        max-width: 650px;
}

.hero h1 {
        font-size: 52px;
}

.hero p {
        font-size: 20px;
}

.vehicles {
        padding: 75px 6%;
}

.vehicles h2 {
        font-size: 38px;
}

.vehicle-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
}

.car-header {
        flex-direction: column;
        gap: 45px;
        padding: 110px 6% 60px;
}

.gallery {
        width: 100%;
}

.car-info {
        width: 100%;
        max-width: none;
}

.car-info h1 {
        font-size: 40px;
}

.car-info h2 {
        font-size: 36px;
}

.description,
    .equipment {
        padding: 60px 6%;
}

.contact-section {
        padding: 70px 6%;
}

.sell-hero {
        padding: 110px 6% 55px;
}

.sell-hero h1 {
        font-size: 42px;
}

.sell-form {
        padding: 0 6%;
}

.reviews {
        padding: 75px 6%;
}

.reviews h2 {
        font-size: 36px;
}

.reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
}

.why-us {
        padding: 75px 6%;
}

.why-us h2 {
        font-size: 36px;
}

.why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
}

.footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        padding: 55px 35px;
}

.admin {
        padding: 30px 6%;
}

}

@media (min-width: 769px) {

.hero {
        height: 100vh;
        min-height: 700px;
        position: relative;
        display: flex;
        align-items: center;
        background-size: cover;
        background-position: center;
        padding: 0;
}

.overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        background: rgba(0,0,0,.45);
}

.hero-text {
        width: auto;
        max-width: 650px;
        margin-left: 8%;
        margin-right: 0;
        padding: 0;
        box-sizing: border-box;
        color: var(--color-white);
}

.hero h1 {
        font-size: 72px;
        line-height: 1.1;
        margin: 0 0 25px;
        color: var(--color-white);
}

.hero p {
        font-size: 24px;
        line-height: 1.5;
        margin: 0 0 40px;
        color: var(--color-white);
}

.hero-buttons {
        display: flex;
        flex-direction: row;
        gap: 20px;
        width: auto;
}

.btn-primary,
    .btn-secondary {
        width: auto;
        box-sizing: border-box;
        padding: 18px 35px;
        white-space: nowrap;
}

.vehicles {
        padding: 100px 8%;
        background: var(--color-bg);
}

.vehicle-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
}

.search-box {
        width: auto;
        max-width: 100%;
        margin-top: 40px;
        padding: 20px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        box-sizing: border-box;
        background: rgba(255,255,255,.95);
        border-radius: 18px;
        box-shadow: 0 15px 35px rgba(0,0,0,.15);
}

.search-box select {
        width: auto;
        min-width: 160px;
        box-sizing: border-box;
        padding: 14px 18px;
        border: none;
        border-radius: 10px;
        background: var(--color-bg-alt);
        font-size: 15px;
}

.search-box button {
        width: auto;
        min-width: 120px;
        box-sizing: border-box;
        padding: 14px 28px;
        border: none;
        border-radius: 10px;
        background: var(--color-text);
        color: var(--color-white);
        font-weight: bold;
        cursor: pointer;
}

}

@media (min-width: 901px) {

.navbar {
        width: 100%;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 60px;
        background: rgba(255,255,255,0.85);
        position: fixed;
        z-index: 1000;
        top: 0;
        left: 0;
        backdrop-filter: blur(12px);
        transition: var(--transition);
}

.navbar .logo {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        font-size: 32px;
        font-weight: 800;
        letter-spacing: 2px;
}

.navbar .logo img {
        width: 170px;
        height: auto;
        display: block;
}

.navbar nav {
        display: flex;
        align-items: center;
        gap: 35px;
        margin-left: auto;
}

.navbar nav a {
        color: var(--color-text);
        text-decoration: none;
        font-size: 16px;
        font-weight: 600;
        white-space: nowrap;
        transition: var(--transition);
}

.navbar nav a:hover {
        opacity: .6;
        color: var(--color-text-light);
}

.navbar .phone {
        margin-left: 35px;
        white-space: nowrap;
        font-size: 15px;
        font-weight: 700;
        color: var(--color-text);
        display: block;
}

.why-us {
        padding: 100px 8%;
        background: var(--color-bg);
        text-align: center;
}

.why-us h2 {
        margin: 0 0 55px;
        text-align: center;
        font-size: 42px;
        line-height: 1.1;
        font-weight: 800;
        margin-bottom: 60px;
}

.why-grid {
        width: 100%;
        max-width: 1400px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
}

.why-card {
        width: 100%;
        box-sizing: border-box;
        padding: 40px 30px;
        background: var(--color-white);
        border-radius: 16px;
        text-align: center;
        box-shadow: var(--shadow-card);
        transition: var(--transition);
}

.why-card h3 {
        margin: 0 0 15px;
        font-size: 24px;
        margin-bottom: 15px;
}

.why-card p {
        margin: 0;
        color: var(--color-text-muted);
        font-size: 16px;
        line-height: 1.7;
}

.why-card:hover {
        transform: translateY(-8px);
}

.why-card .icon {
        font-size: 40px;
        margin-bottom: 20px;
}

}