/* 
   Project: Ihr Autoankauf Hamburg
   Theme: Premium, Trustworthy, Fast
   Colors: #0B2A4A (Primary), #123B63 (Secondary), #FF6A00 (Accent), #F5F7FA (Bg)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0B2A4A;
    --primary-light: #123B63;
    /* Darkened further to #A04000 for AAA compliance & better visibility */
    --accent: #A04000;
    --accent-hover: #b34a00;
    --success: #18A957;
    --bg-light: #F5F7FA;
    --text-dark: #0F172A;
    --text-light: #64748B;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.95);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 4rem 0;
}

/* --- Header --- */
header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.nav-item {
    color: var(--text-dark);
    font-weight: 500;
}

.nav-item:hover,
.nav-item.active {
    color: var(--accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

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

/* --- Hero --- */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* --- Features / Trust --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--accent);
    text-align: center;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.feature-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* --- Content Content --- */
.content-block {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.content-block h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.check-list {
    list-style: none;
    margin: 1.5rem 0;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.check-list li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: var(--success);
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* --- Process --- */
.process-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.step-number {
    background: var(--primary-light);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* --- CTA Section --- */
.cta-section {
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
    border-radius: 16px;
    padding: 4rem 2rem;
    margin: 4rem 0;
}

.cta-section h2 {
    color: var(--white);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
}

/* --- Form --- */
.contact-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
}

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

.form-input {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
}

/* --- Footer --- */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links key,
.footer-links a:hover {
    color: var(--accent);
}

.district-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.district-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #94a3b8;
}

.district-tag:hover {
    background: var(--accent);
    color: white;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    section {
        padding: 2.5rem 0;
    }

    .hero {
        padding: 3rem 0;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
        word-wrap: break-word;
        hyphens: auto;
        /* Ensure long words break */
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .content-block {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .features-grid {
        gap: 1.5rem;
        margin-top: -1.5rem;
    }

    .footer-grid {
        gap: 2rem;
    }

    /* Mobile Navigation */
    .nav-container {
        position: relative;
    }

    .mobile-menu-btn {
        display: block !important;
        background: none;
        border: none;
        font-size: 2rem;
        cursor: pointer;
        color: var(--primary);
        z-index: 1001;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        gap: 1rem;
        text-align: center;
        z-index: 1000;
        border-top: 1px solid #f1f1f1;
    }

    .nav-links.active {
        display: flex;
        /* Show when active */
    }

    /* Hide the specific header call button on mobile to avoid duplication with sticky bar */
    header .btn-primary {
        display: none !important;
    }

    /* Sticky Bottom Bar */
    .sticky-mobile-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
        padding: 0.75rem 1rem;
        z-index: 2000;
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        align-items: center;
    }

    .sticky-btn {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0.75rem;
        border-radius: 8px;
        font-weight: 600;
        font-size: 0.9rem;
        text-align: center;
        gap: 0.5rem;
    }

    .btn-call {
        background-color: var(--accent);
        color: white;
    }

    .btn-whatsapp {
        background-color: #25D366;
        color: white;
    }

    /* Add space for the bar */
    body {
        padding-bottom: 80px;
    }

    .footer {
        padding-bottom: 6rem;
    }
}

.mobile-menu-btn {
    display: none;
    /* Hidden on desktop */
}

.sticky-mobile-bar {
    display: none;
}

/* Contact Form Styles */
.contact-form-container {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.375rem;
    display: none;
}

.form-status.success {
    background-color: #def7ec;
    color: #03543f;
    border: 1px solid #bcf0da;
    display: block;
}

.form-status.error {
    background-color: #fde8e8;
    color: #9b1c1c;
    border: 1px solid #fbd5d5;
    display: block;
}

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

/* --- Locations Grid --- */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.location-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.location-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.location-card a {
    color: var(--primary);
    font-weight: 500;
    display: block;
    width: 100%;
    height: 100%;
}