:root {
    --primary: #e60000;
    --secondary: #333;
    --light: #f8f8f8;
    --dark: #222;
    --accent: #ff9900;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
}

header {
    background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--light);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/api/placeholder/1200/800') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary);
    color: var(--light);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.cta-button:hover {
    background-color: #ff0000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.section {
    padding: 5rem 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    display: inline-block;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--secondary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.service-image {
    height: 200px;
    background: url('/api/placeholder/400/300') center/cover no-repeat;
    position: relative;
}

.service-content {
    padding: 1.5rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.service-description {
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
}

.service-features li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.service-features li::before {
    content: '✓';
    color: var(--primary);
    margin-right: 0.5rem;
    font-weight: bold;
}

.about {
    background-color: var(--light);
    color: var(--dark);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    height: 400px;
    background: url('/api/placeholder/600/400') center/cover no-repeat;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.benefits {
    margin-top: 2rem;
}

.benefits h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

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

.benefits-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.benefits-list li::before {
    content: '→';
    color: var(--primary);
    margin-right: 0.5rem;
    font-weight: bold;
}

.contact {
    background-color: var(--secondary);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-details {
    list-style: none;
    margin-bottom: 2rem;
}

.contact-details li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-details li i {
    margin-right: 1rem;
    color: var(--primary);
    font-size: 1.2rem;
}

.contact-form {
    background-color: var(--dark);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #444;
    background-color: #333;
    color: var(--light);
    border-radius: 5px;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

footer {
    background-color: var(--dark);
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin-bottom: 1rem;
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pricing table */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.pricing-table th,
.pricing-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #444;
}

.pricing-table th {
    background-color: var(--secondary);
    color: var(--accent);
}

.pricing-table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Particle effect for hero section */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff0000;
}
/* AdBlue Problem Image Styling */
.adblue-image-container {
    text-align: center;
    margin: 3rem 0;
    position: relative;
}

.adblue-problem-image {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.5s ease;
    filter: grayscale(100%) brightness(0.7);
    cursor: pointer;
}

.adblue-problem-image:hover {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(230, 0, 0, 0.3);
}

/* AdBlue Content Styling Improvements */
#adblue-content h2 {
    color: var(--accent);
    font-size: 2rem;
    margin: 2.5rem 0 1.5rem 0;
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
}

#adblue-content ul {
    background-color: var(--secondary);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#adblue-content ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #444;
}

#adblue-content ul li:last-child {
    border-bottom: none;
}

#adblue-content p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
/* Service Images Optimization */
.service-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.service-image img {
    width: 100%;
    height: 200px;                /* or use auto + object-fit if needed */
    object-fit: cover;            /* Crop to fill without distortion */
    border-radius: 0.5rem;
}

.service-card:hover .service-img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

/* Service Card hover effects */
.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(230, 0, 0, 0.2);
}

.service-card:hover .service-title {
    color: var(--primary);
}
/* Stage 1 Section Styling */
#stage1-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

#stage1-content h1 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--accent);
    text-transform: uppercase;
}

#stage1-content h2 {
    color: var(--accent);
    font-size: 2rem;
    margin: 2.5rem 0 1.5rem 0;
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
}

#stage1-content p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

#stage1-content ul {
    background-color: var(--secondary);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#stage1-content ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #444;
}

#stage1-content ul li:last-child {
    border-bottom: none;
}

/* Stage 1 Table (e.g. PS & Nm Vergleich) */
.stage1-table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    background-color: var(--secondary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.stage1-table th,
.stage1-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #444;
}

.stage1-table th {
    background-color: var(--dark);
    color: var(--accent);
    font-weight: bold;
}

.stage1-table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Dyno Diagram */
.dyno-image {
    text-align: center;
    margin: 2rem 0;
}

.dyno-image img {
    width: 100%;
    max-width: 960px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s ease;
    filter: grayscale(100%) brightness(0.7);
    cursor: pointer;
}

.dyno-image img:hover {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(230, 0, 0, 0.3);
}
/* AGR/EGR Content Styling */
#agr-egr-content h1 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--accent);
    text-transform: uppercase;
}

#agr-egr-content h2 {
    color: var(--accent);
    font-size: 2rem;
    margin: 2.5rem 0 1.5rem 0;
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
}

#agr-egr-content p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

#agr-egr-content ul {
    background-color: var(--secondary);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#agr-egr-content ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #444;
}

#agr-egr-content ul li:last-child {
    border-bottom: none;
}

/* Responsive Anpassung für Stage 1 */


@media (max-width: 768px) {
    .adblue-problem-image {
        max-height: 250px;
    }

    #adblue-content h2 {
        font-size: 1.5rem;
    }

    .header-content {
        padding: 0 1rem;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        padding: 1rem;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 1rem 0;
    }

    .mobile-menu {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 250px;
    }
    #stage1-content h1 {
        font-size: 2rem;
    }

    #stage1-content h2 {
        font-size: 1.5rem;
    }

    .dyno-image img {
        max-height: 250px;
    }
        #agr-egr-content h1 {
            font-size: 2rem;
        }

        #agr-egr-content h2 {
            font-size: 1.5rem;
        }
    }

