/* ==========================================================================
   AutoDealer Pro - Hauptstyles
   ========================================================================== */

:root {
    --primary: #0066cc;
    --primary-dark: #0052a3;
    --primary-light: #3385d6;
    --secondary: #1a1a1a;
    --accent: #ff9500;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --dark: #212529;
    --white: #ffffff;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============== Typography ============== */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.lead { font-size: 1.125rem; color: var(--gray); }
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.bg-light { background: var(--light); }

/* ============== Topbar ============== */
.topbar {
    background: var(--secondary);
    color: rgba(255,255,255,0.85);
    padding: 8px 0;
    font-size: 0.875rem;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.topbar-info { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topbar-info a, .topbar-info span {
    color: rgba(255,255,255,0.85);
    display: inline-flex; align-items: center; gap: 0.5rem;
}
.topbar-info a:hover { color: white; }
.topbar-social { display: flex; gap: 0.75rem; }
.topbar-social a {
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
}
.topbar-social a:hover { background: var(--primary); }

/* ============== Header / Navigation ============== */
.main-header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--secondary);
    font-weight: 700;
}
.brand-logo {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 1.5rem;
}
.brand img { max-height: 50px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 1.25rem; line-height: 1.1; }
.brand-tagline { font-size: 0.75rem; color: var(--gray); font-weight: 400; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
    margin: 0;
}
.nav-menu a {
    padding: 10px 16px;
    color: var(--dark);
    font-weight: 500;
    border-radius: var(--radius-sm);
    display: inline-flex; align-items: center; gap: 6px;
    transition: var(--transition);
}
.nav-menu a:hover { background: var(--light); color: var(--primary); }
.nav-menu a.active { background: var(--primary); color: white; }
.nav-menu .nav-cta { margin-left: 0.5rem; }
.nav-menu .nav-cta a.btn { color: white; padding: 10px 20px; }

.nav-toggle {
    display: none;
    width: 40px; height: 40px;
    background: none; border: none;
    flex-direction: column; justify-content: center; align-items: center;
    gap: 4px;
    cursor: pointer;
}
.nav-toggle span {
    width: 24px; height: 2px;
    background: var(--dark);
    transition: var(--transition);
    border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* ============== Buttons ============== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
}
.btn-outline {
    background: white;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}
.btn-white {
    background: white;
    color: var(--primary);
    border-color: white;
}
.btn-white:hover {
    background: var(--light);
    color: var(--primary);
    transform: translateY(-2px);
}
.btn-large { padding: 16px 32px; font-size: 1.05rem; }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; }

/* ============== Hero Slider ============== */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: var(--secondary);
}
.slider-container { position: relative; height: 100%; }
.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex; align-items: center;
}
.slide.active { opacity: 1; z-index: 1; }
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
}
.slide-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 700px;
    animation: slideIn 0.8s ease;
}
.slide-title {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.slide-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    opacity: 0.95;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}
.slider-arrow:hover { background: var(--primary); border-color: var(--primary); }
.slider-prev { left: 30px; }
.slider-next { right: 30px; }

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 0.5rem;
    z-index: 10;
}
.slider-dots .dot {
    width: 12px; height: 12px;
    background: rgba(255,255,255,0.4);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}
.slider-dots .dot.active {
    background: white;
    width: 36px;
    border-radius: 6px;
}

/* ============== Quick Actions ============== */
.quick-actions {
    padding: 40px 0;
    background: var(--light);
}
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.action-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    text-align: left;
    color: var(--dark);
    position: relative;
    transition: var(--transition);
    border: 1px solid transparent;
}
.action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    color: var(--dark);
}
.action-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}
.action-card h3 { margin-bottom: 0.5rem; }
.action-card p { color: var(--gray); font-size: 0.95rem; margin: 0; }
.action-arrow {
    position: absolute;
    bottom: 1.5rem; right: 1.5rem;
    width: 36px; height: 36px;
    background: var(--light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    transition: var(--transition);
}
.action-card:hover .action-arrow {
    background: var(--primary);
    color: white;
    transform: translateX(5px);
}

/* ============== Sections ============== */
.section { padding: 80px 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.section-badge.light { background: rgba(255,255,255,0.2); color: white; }
.section-title { margin-bottom: 1rem; }
.section-subtitle { color: var(--gray); font-size: 1.1rem; }

/* ============== Intro Section ============== */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.intro-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 2rem 0;
}
.feature {
    display: flex; align-items: center; gap: 0.5rem;
    font-weight: 500;
}
.feature i { color: var(--success); font-size: 1.25rem; }

.intro-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.stat-card {
    background: var(--light);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    border-top: 4px solid var(--primary);
}
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label {
    color: var(--gray);
    font-weight: 500;
}

/* ============== Vehicle Grid ============== */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}
.vehicle-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    color: var(--dark);
    display: flex;
    flex-direction: column;
}
.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    color: var(--dark);
}
.vehicle-image {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--light);
    overflow: hidden;
}
.vehicle-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.vehicle-card:hover .vehicle-image img { transform: scale(1.08); }
.vehicle-badge {
    position: absolute;
    top: 12px; left: 12px;
    padding: 6px 12px;
    background: var(--accent);
    color: white;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex; align-items: center; gap: 4px;
}
.vehicle-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 102, 204, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    font-weight: 600;
    gap: 0.5rem;
}
.vehicle-card:hover .vehicle-overlay { opacity: 1; }

.vehicle-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.vehicle-title { margin-bottom: 0.75rem; }
.vehicle-title h3 { font-size: 1.15rem; margin: 0; }
.vehicle-variant {
    font-size: 0.85rem;
    color: var(--gray);
    margin: 4px 0 0;
}
.vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin: 0.75rem 0 1rem;
    font-size: 0.85rem;
    color: var(--gray);
}
.vehicle-specs span {
    display: inline-flex; align-items: center; gap: 4px;
}
.vehicle-specs i { color: var(--primary); }
.vehicle-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-light);
    margin-top: auto;
}
.vehicle-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}
.vehicle-cta {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex; align-items: center; gap: 4px;
}

/* ============== Services ============== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.service-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}
.service-icon {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 1.75rem;
    margin: 0 auto 1.25rem;
}
.service-card h3 { margin-bottom: 0.75rem; }
.service-card p { color: var(--gray); margin-bottom: 1rem; }
.service-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-light);
}

/* ============== CTA Section ============== */
.cta-section { padding: 0; }
.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    padding: 4rem;
    color: white;
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: center;
    gap: 2rem;
    box-shadow: var(--shadow-lg);
}
.cta-box h2 { margin-bottom: 1rem; }
.cta-box p { font-size: 1.1rem; opacity: 0.95; margin-bottom: 1.5rem; }
.cta-image {
    text-align: center;
    font-size: 8rem;
    opacity: 0.4;
}

/* ============== About ============== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-image {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    aspect-ratio: 4/3;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 8rem;
}
.trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.trust-badge {
    background: white;
    padding: 1.25rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.trust-badge i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

/* ============== Page Header ============== */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 60px 0;
    text-align: center;
}
.page-header h1 { margin-bottom: 0.5rem; }
.page-header p { font-size: 1.1rem; opacity: 0.95; }
.breadcrumb {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}
.breadcrumb a { color: white; text-decoration: underline; }

/* ============== Filter Section ============== */
.filter-section {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid var(--gray-light);
    position: sticky;
    top: 73px;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.filter-form { width: 100%; }
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    align-items: end;
}
.filter-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    background: white;
    font-size: 0.95rem;
    transition: var(--transition);
}
.filter-group select:focus,
.filter-group input:focus {
    border-color: var(--primary);
    outline: none;
}
.filter-actions {
    display: flex;
    gap: 0.5rem;
}
.filter-actions .btn { flex: 1; }

.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.results-info-note {
    font-size: 0.875rem;
    color: var(--gray);
    margin: 0;
}

/* ============== AutoScout Banner ============== */
.autoscout-banner {
    background: linear-gradient(135deg, #ffcc00, #ff9500);
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
    color: var(--secondary);
}
.autoscout-banner h3 { margin-bottom: 0.5rem; }

/* ============== Forms ============== */
.form-section {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}
.form-intro h2 { margin-bottom: 1rem; }
.form-benefits {
    margin-top: 1.5rem;
    display: grid;
    gap: 0.75rem;
}
.form-benefits div {
    display: flex; align-items: center; gap: 0.5rem;
    font-weight: 500;
}
.form-benefits i { color: var(--success); }

.form-wrapper {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.contact-form .form-row.form-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--dark);
}
.form-group small { display: block; color: var(--gray); font-size: 0.825rem; margin-top: 4px; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    background: white;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}
.form-section-title {
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-light);
    font-size: 1.1rem;
    display: flex; align-items: center; gap: 0.5rem;
    color: var(--primary);
}
.form-section-title:first-child { margin-top: 0; }
.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin: 0;
    cursor: pointer;
}

/* ============== Alerts ============== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
}
.alert i { font-size: 1.25rem; flex-shrink: 0; margin-top: 2px; }
.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
    border-left: 4px solid var(--success);
}
.alert-error {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-left: 4px solid var(--danger);
}

/* ============== Process Steps ============== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.step {
    text-align: center;
    position: relative;
    padding: 1.5rem 1rem;
}
.step-number {
    position: absolute;
    top: 0; right: 1rem;
    width: 40px; height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}
.step-icon {
    width: 80px; height: 80px;
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--gray); }

/* ============== Contact Page ============== */
.content-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}
.contact-card-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}
.contact-card {
    background: white;
    padding: 1.25rem;
    border-radius: var(--radius);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
}
.contact-card-icon {
    width: 48px; height: 48px;
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.contact-card strong { display: block; margin-bottom: 4px; }
.contact-card p { margin: 0; color: var(--gray); }
.contact-form-wrapper {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.contact-form-wrapper h2 { margin-bottom: 1.5rem; }

/* ============== Empty State ============== */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--gray);
}
.empty-state i {
    font-size: 4rem;
    color: var(--gray-light);
    display: block;
    margin-bottom: 1rem;
}
.empty-state h3 { margin-bottom: 0.5rem; color: var(--dark); }

/* ============== Legal Content ============== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}
.legal-content h2 {
    margin: 2rem 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-light);
}
.legal-content h2:first-child { border: none; padding-top: 0; }
.legal-content h3 { margin: 1.5rem 0 0.75rem; color: var(--primary); }

/* ============== Footer ============== */
.main-footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.85);
    padding: 4rem 0 1rem;
    margin-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand {
    color: white;
    margin-bottom: 1rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.footer-col h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col ul li {
    margin-bottom: 0.5rem;
}
.footer-col a {
    color: rgba(255,255,255,0.7);
}
.footer-col a:hover { color: white; }
.footer-contact { margin: 0; padding: 0; }
.footer-contact li {
    display: flex; align-items: flex-start; gap: 0.5rem;
    line-height: 1.6;
}
.footer-contact i { margin-top: 4px; }
.footer-hours { white-space: pre-line; }
.footer-social {
    display: flex; gap: 0.75rem;
    margin-top: 1.5rem;
}
.footer-social a {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: white;
    transition: var(--transition);
}
.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom p { margin: 0; font-size: 0.9rem; }
.footer-links { display: flex; gap: 1.5rem; font-size: 0.9rem; }

/* ============== Mobile Bottom Navigation ============== */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 8px 4px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--gray-light);
}
.mobile-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    color: var(--gray);
    font-size: 0.7rem;
    font-weight: 500;
    gap: 2px;
    border-radius: 8px;
    transition: var(--transition);
}
.mobile-nav a i {
    font-size: 1.4rem;
}
.mobile-nav a.active {
    color: var(--primary);
    background: rgba(0, 102, 204, 0.08);
}

/* ============== Floating Buttons ============== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px; height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 998;
    transition: var(--transition);
    animation: pulse 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7); }
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px; height: 48px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ============== Responsive ============== */
@media (max-width: 992px) {
    .nav-toggle { display: flex; }

    .nav-menu {
        display: none;
        position: fixed;
        top: 0; right: 0;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 1.5rem 2rem;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 999;
        overflow-y: auto;
    }
    .nav-menu.open { display: flex; }
    .nav-menu li { width: 100%; }
    .nav-menu a { width: 100%; padding: 14px 16px; font-size: 1rem; }
    .nav-menu .nav-cta { margin: 1rem 0 0; }
    .nav-menu .nav-cta a { width: 100%; }

    .intro-grid, .about-grid, .form-section, .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-box {
        grid-template-columns: 1fr;
        padding: 2.5rem;
        text-align: center;
    }
    .cta-image { display: none; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .filter-section { position: static; }
}

@media (max-width: 768px) {
    .topbar { display: none; }
    .section { padding: 50px 0; }

    .hero-slider { height: 480px; }
    .slider-prev, .slider-next { width: 40px; height: 40px; }
    .slider-prev { left: 15px; }
    .slider-next { right: 15px; }

    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .mobile-nav { display: flex; }

    /* Padding für Mobile Nav */
    body { padding-bottom: 75px; }
    .whatsapp-float { bottom: 90px; right: 15px; width: 52px; height: 52px; font-size: 1.5rem; }
    .scroll-top { bottom: 90px; left: 15px; width: 44px; height: 44px; }

    .vehicle-grid { grid-template-columns: 1fr; }
    .contact-form .form-row,
    .contact-form .form-row.form-row-3 {
        grid-template-columns: 1fr;
    }
    .form-wrapper { padding: 1.5rem; }

    .intro-stats { grid-template-columns: 1fr 1fr; }
    .stat-card { padding: 1.5rem 1rem; }
    .stat-number { font-size: 2rem; }

    .autoscout-banner { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .brand-tagline { display: none; }
    .page-header { padding: 40px 0; }
    h1 { font-size: 1.75rem; }
    .nav-menu .nav-cta a span,
    .nav-menu .nav-cta a {
        font-size: 0.95rem;
    }
    .filter-grid { grid-template-columns: 1fr 1fr; }
}

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

/* ============== Fade-in on Scroll ============== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============== Tap Highlight (iOS) ============== */
a, button { -webkit-tap-highlight-color: transparent; }

/* PWA standalone mode adjustments */
@media all and (display-mode: standalone) {
    .topbar, .main-header .nav-cta { display: none; }
    body { padding-top: env(safe-area-inset-top); }
}

/* ============== Mobile-Feinschliff (alle Geräte) ============== */
@media (max-width: 768px) {
    /* Verhindert iOS-Auto-Zoom beim Antippen von Feldern (Schrift >= 16px) */
    input, select, textarea { font-size: 16px !important; }
    /* Lange Button-Texte umbrechen statt überlaufen (verhindert Querscrollen) */
    .btn { white-space: normal; }
    /* Primär-Buttons über volle Breite, gut treffbar */
    .btn-large { width: 100%; justify-content: center; }
    /* Sicherheitsnetz gegen seitliches Überlaufen */
    .container { overflow-x: clip; }
    .form-actions { display: flex; flex-direction: column; gap: .75rem; }
    .filter-actions { flex-direction: column; }
    .filter-actions .btn { width: 100%; }
    .inquiry-actions { flex-wrap: wrap; }
    .results-info { flex-direction: column; align-items: flex-start; gap: .4rem; }
    /* Sehr lange Wörter / Kennzeichen / URLs sauber umbrechen */
    .inquiry-message, .vehicle-variant, .legal-content { overflow-wrap: anywhere; }
}
@media (max-width: 380px) {
    h1 { font-size: 1.5rem; }
    .section-title { font-size: 1.4rem; }
    .btn { width: 100%; justify-content: center; }
}
