/* 
   Premium Design System for ihr-autoankauf-augsburg.de
   Modern, Trustworthy, Minimalist
*/

:root {
    --primary: #ea580c;
    /* Solid Dark Orange */
    --primary-hover: #c2410c;
    /* Darker Orange for Hover */
    --secondary-gradient: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    --bg-white: #ffffff;
    --bg-section: #F8FAFC;
    --text-main: #1F2937;
    --text-muted: #4B5563;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

*, *::before, *::after {
    max-width: 100%;
}

img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

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

section {
    padding: 5rem 0;
}

h1,
h2,
h3 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 0.5rem;
}

.btn-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 2.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 2rem;
    background-color: rgba(234, 88, 12, 0.1);
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid rgba(234, 88, 12, 0.2);
    margin-bottom: 2rem;
    width: auto;
}

.btn-phone:hover {
    background-color: rgba(234, 88, 12, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(234, 88, 12, 0.15);
}

.btn-phone svg {
    width: 28px;
    height: 28px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(234, 88, 12, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.23);
}

.btn-secondary {
    background: var(--secondary-gradient);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(34, 197, 94, 0.39);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.23);
}

/* --- Navigation --- */
nav.site-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hamburger button - hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1100;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
    padding: 8rem 0 0;
    /* Reduced bottom padding */
    background: #ffffff;
    overflow: hidden;
    /* Prevent horizontal scroll from bleeding image */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    z-index: 10;
}

.hero-content h1 {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    color: #111827;
    word-break: break-word;
    overflow-wrap: break-word;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    margin-right: -50vw;
    /* Intense breakout to bleed to the very edge */
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    width: auto;
    height: 100%;
    max-height: 480px;
    /* Control height instead of width for bleed control */
    object-fit: contain;
    mix-blend-mode: multiply;
    /* Blends the image's white background with the page */
    filter: contrast(1.02);
    display: block;
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

/* --- Social Proof --- */
.social-proof {
    background: var(--bg-white);
    padding-top: 0;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.proof-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid #f1f5f9;
}

.proof-card h3 {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.proof-card p {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* --- Services (Grid Cards) --- */
.services {
    background: var(--bg-section);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #f1f5f9;
    text-align: left;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.2);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.service-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* --- Table Section --- */
.comparison {
    padding: 6rem 0;
}

.comparison-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.comp-card {
    padding: 3rem;
    border-radius: var(--radius-xl);
    border: 1px solid #e2e8f0;
}

.comp-card.private {
    background: #f8fafc;
}

.comp-card.us {
    background: var(--white);
    border: 2px solid var(--primary);
    position: relative;
    box-shadow: var(--shadow-lg);
}

.comp-card h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.comp-list {
    list-style: none;
}

.comp-list li {
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.comp-list li:last-child {
    border-bottom: none;
}

.comp-list li span.icon {
    margin-right: 0.5rem;
}

/* --- Steps Section --- */
.steps {
    background: var(--bg-section);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    position: relative;
}

.step-item {
    text-align: center;
    position: relative;
}

.step-number {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
}

/* --- FAQ Section --- */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
}

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

.faq-question:hover {
    background: #f1f5f9;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: var(--white);
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 300px;
}

/* --- Contact Form --- */
.contact {
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: #f8fafc;
    border-radius: 2rem;
    padding: 4rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.contact-img {
    max-width: 100%;
    width: 450px;
    height: auto;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    display: block;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    color: #111827;
    transition: var(--transition);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.03);
    background: #ffffff;
}

.spam-protection {
    background: rgba(243, 244, 246, 0.6);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px dashed #D1D5DB;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.spam-protection label {
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.spam-protection input {
    width: 80px;
    padding: 0.5rem;
    text-align: center;
    font-weight: bold;
    box-shadow: none;
}

@media (max-width: 768px) {
    /* --- Mobile Nav --- */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(16px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1050;
        padding: 2rem;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1.25rem;
        font-weight: 700;
    }

    .nav-links .btn {
        width: 80%;
        text-align: center;
        justify-content: center;
    }

    /* --- Hero --- */
    .hero {
        padding: 5rem 0 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .section-title h2 {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    .hero-btns {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .hero-btns .btn, .hero-btns a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .btn-phone {
        font-size: 1.15rem;
        padding: 0.75rem 1.5rem;
        width: 100%;
    }

    .hero-image {
        margin-right: 0;
        justify-content: center;
        margin-top: 1rem;
    }

    .hero-image img {
        max-height: 250px;
        width: 100%;
        object-fit: contain;
    }

    /* Quick-form: full width on mobile */
    .quick-form-wrapper {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .quick-form-wrapper form {
        flex-direction: column !important;
    }

    .quick-form-wrapper form input,
    .quick-form-wrapper form button {
        width: 100% !important;
        min-width: 0 !important;
    }

    /* --- Grids --- */
    .proof-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .comparison-wrapper {
        grid-template-columns: 1fr;
    }

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

    /* --- Contact / Form --- */
    .contact-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    /* Inline form-row grids collapse to single column */
    .form-row {
        grid-template-columns: 1fr !important;
    }

    /* Footer inline grid */
    .footer-inner-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .container {
        padding: 0 1rem;
    }

    section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Footer becomes single column */
    .footer-inner-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Footer Icons Fix --- */
footer svg {
    flex-shrink: 0;
}
