html {
    scroll-behavior: smooth;
}

/* Modern Design System 2026 - Autoankauf Dortmund (White/Blue/Orange) */
:root {
    /* Colors - Google 2026 Clean Theme */
    --bg-main: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;

    /* Primary Colors */
    --color-primary: #0f172a;
    --color-accent: #c2410c;
    /* WCAG AA Compliant (Darker Orange) */
    --color-accent-hover: #c2410c;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    /* Slightly darker for better contrast */

    /* Spacing & Layout - Increased for "Breathing Room" */
    --container-max-width: 1300px;
    /* Slightly wider for modern screens */
    --section-padding: 8rem 2rem;
    /* Massive white space */
    --radius-lg: 2.5rem;
    /* Super rounded modern shapes */
    --radius-md: 1.5rem;
    --radius-sm: 1rem;

    /* Shadows - Google-style extremely soft shadows */
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.06);

    /* Animation */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.8;
    /* Increased line-height for better readability */
    overflow-x: hidden;
    min-height: 100vh;
}

/* Cleanup Typography */
h1,
h2,
h3 {
    color: var(--color-primary);
    letter-spacing: -0.03em;
    font-weight: 800;
}

.glass {
    background: var(--bg-card);
    border: 1px solid rgba(15, 23, 42, 0.05);
    /* Barely visible border */
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.glass:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--color-primary);
    /* Dark Blue */
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--color-primary);
}

h1 span {
    color: var(--color-accent) !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

h2 {
    font-size: clamp(2rem, 4vw + 0.5rem, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.25rem, 3vw + 0.5rem, 1.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.85);
    /* Slightly more transparent glass */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    transition: var(--transition-smooth);
}

.header-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.04em;
}

.logo span {
    color: var(--color-accent);
}

.nav-menu {
    display: flex;
    gap: 0.75rem;
    /* Reduced gap for more breathing room on medium screens */
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    /* Slightly smaller for better fit */
    transition: var(--transition-fast);
    padding: 0.6rem 0.8rem;
    border-radius: 100px;
    white-space: nowrap;
    /* Prevent internal wrapping of menu items */
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
    background: rgba(234, 88, 12, 0.05);
    /* Soft highlight on hover */
}

/* Buttons - Modern Minimalist Pill Shapes */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    gap: 0.75rem;
    border: none;
    font-size: 1.05rem;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}

.btn-primary:hover {
    background: var(--color-accent);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px rgba(234, 88, 12, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

/* Hero Section - Clean & Centered */
.hero {
    padding: 12rem 2rem 8rem;
    text-align: center;
    position: relative;
    z-index: 1;
    background: radial-gradient(circle at 50% 0%, rgba(234, 88, 12, 0.03), transparent 70%);
}

.hero p {
    color: var(--text-secondary);
    font-size: clamp(1.2rem, 2vw + 0.5rem, 1.5rem);
    max-width: 800px;
    margin: 0 auto 4rem;
    font-weight: 500;
}

/* Form Styles - Clean & Modern */
.contact-form {
    display: grid;
    gap: 2rem;
}

input,
textarea,
select {
    width: 100%;
    padding: 1.25rem 1.75rem;
    border-radius: var(--radius-md);
    background: #fdfdfd;
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: var(--text-primary);
    font-size: 1.05rem;
    font-family: inherit;
    transition: var(--transition-smooth);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 6px rgba(15, 23, 42, 0.03);
}

/* Cards & Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    padding: 2.5rem;
    height: 100%;
    transition: var(--transition-fast);
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border-color: var(--color-accent);
}

.card h3 {
    color: var(--color-accent);
}

/* Footer */
footer {
    border-top: 1px solid #e2e8f0;
    padding: 4rem 0;
    background: #f8fafc;
    text-align: center;
    margin-top: auto;
}

footer a {
    color: var(--text-secondary);
}

footer a:hover {
    color: var(--color-accent);
}

/* List Styles */
ul.check-list {
    list-style: none;
    display: grid;
    gap: 1rem;
}

ul.check-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

ul.check-list li span {
    color: var(--sc-success);
    font-weight: bold;
}

/* Vehicle Grid - Compact "Frankfurt" Style */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.vehicle-card {
    background: white;
    border-radius: 1rem;
    padding: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    border-bottom: 2px solid var(--color-accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.vehicle-img-container {
    width: 100%;
    height: 120px;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.vehicle-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0.25rem 0;
}

/* WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    z-index: 100;
    transition: var(--transition-fast);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Page specific utilities */
.legal-card {
    padding: 3rem;
    text-align: left;
    margin-bottom: 2rem;
}

.legal-card h2 {
    font-size: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.legal-card p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    position: relative;
    z-index: 2;
}

.section-header h2 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Centralized CTA Section */
.quick-cta {
    padding: 6rem 2rem;
    text-align: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin: 4rem auto;
    max-width: 800px;
}

.quick-cta h2 {
    margin-bottom: 1.5rem;
}

.quick-cta p {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Trust Bar - USPs Under Hero */
.trust-bar {
    padding: 1.5rem 0;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
}

.trust-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
}

.trust-item span.icon {
    font-size: 1.25rem;
}

.trust-item strong {
    color: var(--color-accent);
}

@media (max-width: 768px) {
    .trust-content {
        gap: 1.5rem;
    }

    .trust-item {
        font-size: 0.85rem;
    }
}

/* Testimonials - Swiper Style */
.testimonials-section {
    padding: 8rem 0;
    background: white;
}

.testimonial-card {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: var(--radius-lg);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.testimonial-card:hover {
    background: white;
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.stars {
    color: #fbbf24;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info h4 {
    font-size: 1rem;
    color: var(--color-primary);
    margin: 0;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.swiper-pagination-bullet-active {
    background: var(--color-accent) !important;
}

.mt-8 {
    margin-top: 4rem;
}

/* Form Featured Image */
.form-image-container {
    text-align: center;
    margin-bottom: -2rem;
    position: relative;
    z-index: 5;
}

.form-image-container img {
    max-width: 450px;
    width: 90%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 4px solid white;
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    background: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.faq-question {
    padding: 1.5rem 2rem;
    font-weight: 700;
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.faq-question:hover {
    background: rgba(0, 0, 0, 0.02);
}

.faq-answer {
    padding: 0 2rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-icon::after {
    content: '+';
    font-size: 1.5rem;
}

.faq-item.active .faq-icon::after {
    content: '−';
}

/* Subpage Excellence Utilities */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.feature-item {
    padding: 2.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: center;
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.feature-item h3 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
    counter-reset: step-counter;
}

.step-card {
    position: relative;
    padding: 3rem 2rem 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    text-align: center;
}

.step-card::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 3rem;
    background: var(--color-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: 0 5px 15px rgba(255, 126, 0, 0.3);
}

/* Responsive & Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

/* Hamburger Animation to X */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: var(--transition-smooth);
        z-index: 1000;
        padding: 2rem;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.5rem;
        width: 100%;
        text-align: center;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.75rem;
    }

    h2 {
        font-size: 2rem;
    }

    #anfrage .container {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* Footer Districts Section */
.footer-districts h4 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.footer-districts h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--color-accent);
    border-radius: 2px;
}

.district-grid a {
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

.district-grid a:hover {
    color: var(--color-accent) !important;
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .district-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Footer Standorte Section */
.footer-standorte {
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-standorte h4 {
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.standorte-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.standorte-grid a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.standorte-grid a:hover {
    color: var(--color-accent) !important;
}