/* Modern Design System for mein-autokauf.de */
:root {
    --bg-dark: #0b0d0f;
    --bg-card: #15191e;
    --primary-cyan: #66fcf1;
    --primary-cyan-dim: #45a29e;
    --accent-orange: #ff6f00;
    --text-main: #ffffff;
    --text-muted: #c5c6c7;
    --grad-main: linear-gradient(135deg, #1f2833 0%, #0b0d0f 100%);
    --font-main: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(15px);
}

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

img, video, iframe, table, pre {
    max-width: 100%;
}

a, button, input, select, textarea {
    touch-action: manipulation;
}

html {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}

h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-highlight {
    color: var(--primary-cyan);
}

section {
    padding: 6rem 0;
}

/* Trust Bar – Modern White Premium Design */
.trust-bar {
    background: #ffffff;
    border-top: none;
    border-bottom: none;
    padding: 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    text-align: center;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 4px 20px rgba(102, 252, 241, 0.12);
    overflow: hidden;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 2.2rem 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.trust-item:last-child {
    border-right: none;
}

.trust-item:hover {
    background: linear-gradient(135deg, #f0fffe 0%, #e8f9ff 100%);
    transform: translateY(-3px);
}

.trust-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-cyan), #45a29e);
    border-radius: 3px 3px 0 0;
    transition: width 0.3s ease;
}

.trust-item:hover::before {
    width: 60%;
}

/* New icon wrapper replacing broken .trust-icon span */
.trust-icon-wrap {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.6rem;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, #45a29e 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    line-height: 1;
    box-shadow: 0 6px 18px rgba(102, 252, 241, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #0b0d0f;
}

.trust-item:hover .trust-icon-wrap {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 10px 28px rgba(102, 252, 241, 0.5);
}

/* Keep old .trust-icon for backward compatibility */
.trust-icon {
    font-size: 2rem;
    color: var(--primary-cyan);
    margin-bottom: 0.5rem;
}

.trust-value {
    font-size: 2rem;
    font-weight: 900;
    color: #0b0d0f;
    letter-spacing: -0.03em;
    line-height: 1;
}

.trust-label {
    font-size: 0.78rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-top: 0.1rem;
}

@media (max-width: 768px) {
    .trust-bar {
        margin-top: -30px;
        padding: 0 15px;
    }
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        border-radius: 16px;
    }
    .trust-item {
        padding: 1.4rem 1rem;
        border-right: 1px solid rgba(0, 0, 0, 0.06);
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    .trust-item:nth-child(2),
    .trust-item:nth-child(4) {
        border-right: none;
    }
    .trust-item:nth-child(3),
    .trust-item:nth-child(4) {
        border-bottom: none;
    }
    .trust-icon-wrap {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }
    .trust-value {
        font-size: 1.5rem;
    }
}

/* Comparison Table */
.comparison-section {
    background: var(--bg-dark);
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 3rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table th, .comparison-table td {
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.comparison-table th {
    background: rgba(102, 252, 241, 0.05);
    color: var(--primary-cyan);
    font-weight: 700;
}

.comparison-table .highlight-col {
    background: rgba(102, 252, 241, 0.1);
    color: #fff;
    font-weight: 600;
}

.comparison-table .icon-check { color: #28a745; margin-right: 8px; }
.comparison-table .icon-cross { color: #dc3545; margin-right: 8px; }

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

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #fff;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0, 1, 0, 1);
    color: var(--text-muted);
}

.faq-item.active {
    border-color: var(--primary-cyan-dim);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 1.5rem 1.5rem;
    transition: all 0.3s cubic-bezier(1, 0, 1, 0);
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Hexagon/Glass Cards for Warum wir? */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary-cyan);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 252, 241, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-cyan-dim) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #0b0d0f;
    box-shadow: 0 10px 20px rgba(102, 252, 241, 0.3);
    position: relative;
    z-index: 1;
}

/* Sticky Mobile CTA */
.mobile-bottom-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0b0d0f;
    border-top: 1px solid var(--glass-border);
    padding: 12px 15px;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    z-index: 9999;
}

@media (max-width: 768px) {
    .mobile-bottom-cta {
        display: grid;
    }
    body {
        padding-bottom: 80px;
    }
}

.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    transition: transform 0.2s ease;
}

.cta-btn:active {
    transform: scale(0.95);
}

.cta-phone { background: var(--primary-cyan); color: #0b0d0f; }
.cta-offer { background: var(--accent-orange); color: #fff; }

/* E-E-A-T Expert Section */
.expert-profile {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 30px;
}

@media (max-width: 768px) {
    .expert-profile {
        flex-direction: column;
        text-align: center;
    }
}

.expert-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid var(--primary-cyan);
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.expert-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.expert-role {
    color: var(--primary-cyan);
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: block;
}

.expert-bio {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.expert-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .expert-badges {
        justify-content: center;
    }
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--glass-border);
}

/* --- Modern Form & Hero Updates --- */

/* Hero Centered Mode */
.hero.centered {
    text-align: center;
    padding: 10rem 0 6rem;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.hero.centered .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero.centered .hero-text {
    width: 100%;
}

.hero.centered h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 2rem;
    line-height: 1.1;
}

.hero-stats-center {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2rem 0;
}

.hero-stat-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.hero-stat-badge:hover {
    background: rgba(102, 252, 241, 0.1);
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
}

/* Modern Contact Section */
.contact-form-section {
    background: var(--bg-card);
    padding: 8rem 0;
    position: relative;
    border-top: 1px solid var(--glass-border);
}

.contact-card-modern {
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 5rem 4rem;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.contact-header {
    text-align: center;
    margin-bottom: 5rem;
}

.contact-header h2 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--primary-cyan));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-header p {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

.modern-form .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.form-group label {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

.modern-form input, 
.modern-form select, 
.modern-form textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.3rem 1.5rem;
    color: #fff;
    font-family: inherit;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-form input:focus, 
.modern-form select:focus, 
.modern-form textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 30px rgba(102, 252, 241, 0.15);
    transform: translateY(-2px);
}

.btn-submit-modern {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, #45a29e 100%);
    color: #0b0d0f;
    border: none;
    padding: 1.8rem 4rem;
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.btn-submit-modern:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 25px 50px rgba(102, 252, 241, 0.4);
}

.form-footer {
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
    padding-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.privacy-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .contact-card-modern {
        padding: 3rem 1.5rem;
    }
    .btn-submit-modern {
        width: 100%;
        font-size: 1.1rem;
    }
}

/* --- Premium Testimonials --- */
.testimonials-section {
    background: var(--bg-card);
    padding: 10rem 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--glass-border);
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(102, 252, 241, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 260px);
    gap: 2rem;
    margin-top: 4rem;
    justify-content: center;
}

.testimonial-card-modern {
    background: #111418;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2rem;
    width: 260px;
    height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.testimonial-card-modern::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 25px;
    font-size: 5rem;
    color: var(--primary-cyan);
    opacity: 0.1;
    font-family: serif;
    line-height: 1;
}

.testimonial-card-modern:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: var(--primary-cyan);
    box-shadow: 0 20px 40px rgba(102, 252, 241, 0.1);
}

.testimonial-stars {
    color: #ffb300;
    margin-bottom: 1rem;
    font-size: 1rem;
    letter-spacing: 2px;
}

.testimonial-content {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #cbd5e0;
    margin-bottom: 1.5rem;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
}

.testimonial-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.testimonial-info h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #fff;
}

.testimonial-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- Modern Services Grid --- */
.grid-glass {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 28px;
    padding: 3rem 2rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.glass-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary-cyan);
    background: rgba(102, 252, 241, 0.04);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(102, 252, 241, 0.1);
}

.glass-icon {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card:hover .glass-icon {
    background: var(--grad-main);
    transform: scale(1.1) rotate(-5deg);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(102, 252, 241, 0.2);
}

.glass-content h2, .glass-content h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.glass-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.8;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(102, 252, 241, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* --- Premium Call to Action Banner --- */
.cta-banner-premium {
    margin-top: 4rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(102, 252, 241, 0.05) 0%, rgba(31, 40, 51, 0.4) 100%);
    padding: 4rem 2rem;
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.cta-banner-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(102, 252, 241, 0.08) 0%, transparent 50%);
    pointer-events: none;
    animation: rotate-glow 15s linear infinite;
}

@keyframes rotate-glow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-banner-premium h3 {
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.cta-banner-premium p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta-premium {
    display: inline-block;
    background: var(--grad-main);
    color: var(--bg-dark);
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(102, 252, 241, 0.3);
    border: none;
    cursor: pointer;
}

.btn-cta-premium:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(102, 252, 241, 0.5), 0 0 40px rgba(102, 252, 241, 0.2);
    color: var(--bg-dark);
}


/* --- Modern Multi-Tier Header --- */
.top-bar-modern {
    background: #050607;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.8rem 0;
    font-size: 0.85rem;
    color: #c5c6c7;
}
.top-bar-content { display: flex; justify-content: space-between; align-items: center; }
.top-bar-items { display: flex; gap: 2rem; }
.top-bar-item { display: flex; align-items: center; gap: 0.6rem; }
.top-bar-item i { color: var(--primary-cyan); font-weight: bold; font-style: normal; }
@media (max-width: 991px) {
    .top-bar-items { gap: 1rem; }
    .top-bar-location { display: none; }
    .top-bar-modern { padding: 0.5rem 0; }
}
.header-modern { background: #ffffff; padding: 1.5rem 0; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08); }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo-modern { font-size: 2rem; font-weight: 900; text-decoration: none; color: #111; letter-spacing: -1px; }
.logo-modern span { color: var(--primary-cyan-dim); }
.header-info-boxes { display: flex; gap: 2.5rem; }
.info-box { display: flex; align-items: center; gap: 1rem; }
.info-icon { width: 50px; height: 50px; background: #f1f3f5; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.info-text { display: flex; flex-direction: column; }
.info-label { font-size: 0.7rem; color: #888; text-transform: uppercase; font-weight: 800; letter-spacing: 0.5px; }
.info-value { font-size: 1.15rem; color: #111; font-weight: 800; text-decoration: none; transition: color 0.3s ease; }
.info-value:hover { color: var(--primary-cyan-dim); }
.nav-modern { background: #111418; position: sticky; top: 0; z-index: 1000; border-bottom: 3px solid var(--primary-cyan); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.nav-links-modern { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; align-items: center; }
.nav-links-modern li a { display: block; padding: 1.2rem 1.5rem; color: #fff; text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: 0.9rem; transition: all 0.3s ease; letter-spacing: 0.5px; }
.nav-links-modern li a:hover { background: rgba(102, 252, 241, 0.1); color: var(--primary-cyan); }
.nav-links-modern li.nav-cta a { background: var(--primary-cyan); color: #0b0d0f; margin-left: 1rem; border-radius: 4px; }
.nav-links-modern li.nav-cta a:hover { background: #fff; color: #0b0d0f; }
@media (max-width: 991px) {
    .header-modern, .nav-modern { display: none; }
    .main-header { display: block !important; }
}
@media (min-width: 992px) {
    .main-header { display: none !important; }
}

/* --- Mobile-Only Enhancements --- */
@media (max-width: 991px) {
    .header-modern, .nav-modern { display: none !important; }

    .top-bar-modern {
        background: #000;
        padding: 0.6rem 0;
    }

    .top-bar-items {
        justify-content: center;
        gap: 0.8rem;
        font-size: 0.75rem;
    }

    .top-bar-item {
        white-space: nowrap;
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }

    .main-header {
        display: block !important;
        background: #ffffff !important;
        padding: 0.8rem 0;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        position: sticky;
        top: 0;
        z-index: 1001;
    }

    .logo {
        color: #111 !important;
        font-size: 1.3rem;
        font-weight: 800;
        text-decoration: none;
    }

    .logo span {
        color: var(--primary-cyan-dim);
    }

    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: #111;
        border-radius: 8px;
        color: #fff;
        font-size: 1.4rem;
        border: none;
        cursor: pointer;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: rgba(11, 13, 15, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 2000;
        padding: 4rem 2rem;
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: 20px 0 60px rgba(0,0,0,0.5);
    }

    .mobile-menu.active {
        transform: translateX(100%);
    }

    .mobile-menu a {
        color: #fff;
        font-size: 1.3rem;
        font-weight: 800;
        text-decoration: none;
        padding: 1rem 0.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .mobile-menu a::after {
        content: '?';
        color: var(--primary-cyan);
        font-size: 1.2rem;
        font-weight: normal;
    }
    
    /* Overlay effect when menu is open */
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1999;
    }
}

/* Global Mobile Menu Fix */
.mobile-menu {
    display: none;
}

@media (max-width: 991px) {
    .mobile-menu {
        display: flex; /* Show only when toggle script adds 'active' or on mobile layout */
    }
}

/* Ensure no overlap on desktop */
@media (min-width: 992px) {
    .mobile-menu {
        display: none !important;
    }
}

/* --- Floating Modern WhatsApp Button (The "Netz" Pulse Design) --- */
.floating-whatsapp {
    position: fixed;
    right: 20px;
    bottom: 100px; /* Above the bottom CTA bar */
    width: 65px;
    height: 65px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 1500;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-decoration: none;
}

.floating-whatsapp::before, .floating-whatsapp::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25d366;
    opacity: 0.5;
    z-index: -1;
}

.floating-whatsapp::before {
    animation: pulse-out 2s infinite linear;
}

.floating-whatsapp::after {
    animation: pulse-out 2s infinite linear 1s;
}

@keyframes pulse-out {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.2); opacity: 0; }
}

.floating-whatsapp svg {
    width: 35px;
    height: 35px;
    fill: #fff;
}

.floating-whatsapp:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

@media (max-width: 991px) {
    .floating-whatsapp {
        bottom: 90px; /* Adjust for mobile cta bar */
        right: 15px;
        width: 60px;
        height: 60px;
    }
}

/* --- Modern SEO-Optimized Footer --- */
.footer-modern {
    background: #050607;
    padding: 6rem 0 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr 1.2fr; gap: 4rem; margin-bottom: 4rem; }
.footer-col h4 { color: #fff; font-size: 1.15rem; margin-bottom: 2rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.footer-col p { font-size: 0.95rem; line-height: 1.8; margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.9rem; }
.footer-col ul li a { color: var(--text-muted); text-decoration: none; transition: all 0.3s ease; }
.footer-col ul li a:hover { color: var(--primary-cyan); padding-left: 5px; }
.footer-locations { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.footer-locations a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.3s ease; }
.footer-locations a:hover { color: var(--primary-cyan); }
.all-locations { display: inline-block; margin-top: 2rem; color: var(--primary-cyan); text-decoration: none; font-weight: 800; font-size: 0.95rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 2rem; font-size: 0.85rem; }
.footer-bottom-content { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom-content a { color: var(--text-muted); text-decoration: none; margin-left: 1rem; transition: color 0.3s; }
.footer-bottom-content a:hover { color: #fff; }
@media (max-width: 991px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
@media (max-width: 650px) { .footer-grid { grid-template-columns: 1fr; text-align: center; } .footer-locations { grid-template-columns: repeat(2, 1fr); text-align: left; padding: 0 10%; } .footer-bottom-content { flex-direction: column; gap: 1rem; } }

/* --- Refined Mobile Header (Unified header-modern) --- */
@media (max-width: 991px) {
    .header-modern {
        display: block !important;
        background: #fff !important;
        padding: 0.8rem 0;
        position: sticky;
        top: 0;
        z-index: 1001;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .logo-modern {
        color: #111 !important;
        font-size: 1.2rem;
    }
    .header-info-boxes {
        display: none !important; /* Hide phone/email numbers in header on mobile */
    }
    /* Hamburger is part of header-modern now */
    .mobile-menu-toggle {
        display: flex !important;
    }
}
