body,
html {
    background-color: white !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #212529;
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
}

.popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;   /* Klicks blockieren */
  transition: opacity 0.6s ease;
}

.popup.show {
  opacity: 1;
  pointer-events: auto;
}

#carouselExample .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(50%);

}

#carouselExample {
    position: relative;
}

#carouselExample .carousel-inner {
    height: calc(100vh - 100px);
    /* 100vh minus Header-Höhe */
}

#carouselExample .carousel-inner img {
    height: 100vh;
    object-fit: cover;
}

.carousel-text {
    position: absolute;
    /* über dem Bild */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: white;
    padding: 0 20px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Text startet oben */
    align-items: center;
    padding-top: 15%;
    /* Text 30% vom oberen Rand einrücken */
}



.gray {
    background-color: #818286;
}

/* Grundstruktur */
.section-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
    z-index: 2;
    background-color: #f5f5f5;
}

.blue {
    color: #044C7E;
}

/* h1 {
    color: #044C7E;
} */

.section-container {
    display: flex;
    gap: 20px;
    max-width: 1000px;
    width: 100%;
    align-items: stretch;

}

/* Boxen */
.section-box {
    flex: 1;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 18px;
    text-align: start;

}

.color {
    color: #044C7E
}

.sale {
    text-align: center;
    padding-bottom: 0 !important;
    margin: 0;
    background-color: #8B0000;
    color: white;
    font-size: bold;
}

.fixed-image {
    position: fixed;
    /* bleibt auch beim Scrollen unten links */
    bottom: 5%;
    left: 1.5%;
    z-index: 9999;
    /* liegt über allen anderen Elementen */
}


/* Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    /* standardmäßig versteckt */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Popup Box */
.popup-content {
    background: white;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease;
}

/* Bild */
.popup-image {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Button */
.popup-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 10px 20px;
    background-color: #044C7E;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: 0.3s ease;
}

.popup-btn:hover {
    background-color: #022a4b;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


.fixed-image img {
    width: 60px;
    /* Icon-Größe */
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.fixed-image img:hover {
    transform: scale(1.1);
    /* Hover-Effekt */
}

/* Bild */
.section-box img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 10px;
}

/* Text-Box Button */
.text-box button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 50px;
    background-color: #044C7E;
    color: white;
    cursor: pointer;
    border: none;
}

.text-box button:hover {
    background-color: #044C7E;
}

/* Animation */
.slide-left,
.slide-right {
    opacity: 0;
    /* unsichtbar am Anfang */
    transition: all 1s ease;
    /* sanfte Animation */
}

.slide-left {
    transform: translateX(-100px);
}

.slide-right {
    transform: translateX(100px);
}

.slide-left.active,
.slide-right.active {
    transform: translateX(0);
    opacity: 1;
}


.card {
    max-width: 260px;
    margin: 0 auto;
    max-height: 260px;
}

.benefits-container {
    background-color: #044C7E;
}

.benefits-container h2 {
    padding-top: 50px;
    padding-bottom: 50px;
    color: white;
    text-align: center;
}



.background {
    background-color: #f5f5f5;
}




.features {
    background-color: white;
    padding: 60px 20px;
    text-align: center;
}

.features h2 {
    margin-bottom: 40px;
    font-size: 2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    /* Abstand zwischen den Karten */
    margin-bottom: 2.5rem;
}

.card {
    background-color: #044C7E;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    /* gleiche Höhe für alle Cards */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #044C7E;
    /* Farbe nach Wunsch */
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: white;
}

.card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: white;
}


.fuehrerscheinklassen {
    color: black;
    padding: 60px 20px;
    border-radius: 12px;
}

.schrift {
    color: #044C7E;
}


.training-extras {
    background-color: #1c1c1c;
    /* Schwarz */
}

.training-extras h2 {
    font-weight: 700;
    font-size: 2.2rem;
}

.training-extras img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.vehicle-hero {
    background: linear-gradient(135deg, #f5f7fa, #e0e4ea);
    padding: 2rem;
    border-radius: 20px;
    max-width: 700px;
    margin: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 50px;
}

.vehicle-hero:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.vehicle-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.vehicle-info h3 {
    color: #044C7E;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.vehicle-info p {
    padding-bottom: 50px;
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
}

.vehicle-info{
    padding-bottom: 50px;

}


.cta-section {
    background-color: #ffffff;
    /* weißer Hintergrund */
}

.pr0 {
    padding-right: 0;
}

.cta-section h2 {
    font-weight: 700;
    color: black;
    /* dein dunkelblau fast schwarz */
}

.cta-section p {
    color: #333;
    /* etwas dunkler für gute Lesbarkeit */
}

.cta-section .btn-primary {
    /* dein Logo-Blau */
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    /* schöner runder Button */
    transition: 0.3s ease;
}

.cta-section .btn-primary:hover {
    background-color: #044C7E;
    /* dunkleres Blau beim Hover */
    transform: translateY(-2px);
}




.map-section {
    background-color: #f5f8ff;
    /* hellblauer Kontrast-Hintergrund */
}

.map-section h2 {
    /* deine Markenfarbe (dunkelblau) */
    font-weight: bold;
}

.map-container {
    width: 100%;
    margin: 0 auto;
}

.contact-section {
    background: #fff;
    /* weißer Hintergrund */
}

.custom-input {
    border: none;
    border-bottom: 2px solid #ccc;
    border-radius: 0;
    padding: 10px 5px;
    background: transparent;
    box-shadow: none;
    transition: border-color 0.3s ease;
}

.custom-input:focus {
    border-bottom: 2px solid #044C7E;
    /* dein Blau */
    outline: none;
    box-shadow: none;
}

.btn-primary {
    background-color: #044C7E;
    border: none;
    border-radius: 50px;
    /* pillenförmig */
    font-size: 1.1rem;
}

.btn-primary:hover {
    background-color: #044c7e;
    /* dunkleres Blau */
}

.swiper-slide {
    text-align: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.6;
}

.swiper-slide img {
    width: 100%;
    height: 300px;
    /* Höhe fix */
    object-fit: cover;
    border-radius: 12px;
}

/* Hervorhebung für das mittlere Bild */
.swiper-slide-active {
    transform: scale(1.1);
    opacity: 1;
}



/* Tablets / mittelgroße Geräte */
@media (max-width: 992px) {
    .section-container {
        flex-direction: column;
        gap: 30px;
    }

    .section-box img {
        margin: 0 auto;
    }

    .text-box {
        text-align: center;
    }

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

    #carouselExample {
        margin-top: 80px;
        /* Platz für Header */
    }



    .carousel-caption h1 {
        font-size: 1.5rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }

    .swiper-slide img {
        height: 200px;
    }
}

@media (max-width: 1220px) {
    .navbar-custom .nav-link {
        font-size: 0.8rem !important;
        font-weight: 600 !important;
    }

    /* Optional: Button auch anpassen */
    .navbar-custom .btn {
        font-size: 0.85rem !important;


    }
}

@media (max-width: 768px) {
    header {
        height: 70px;
    }

    #carouselExample .carousel-inner {
        height: calc(100vh - 70px);
        min-height: 350px;
        /* kleinere Smartphones */
    }
}


/* Smartphones */
@media (max-width: 576px) {
    .section-container {
        flex-direction: column;
        padding: 20px 10px;
    }

    .features {
        padding: 0
    }

    .text-center {
        padding-bottom: 12px;
    }


    .text-start {
        text-align: justify !important;
    }

    .mobil {
        font-size: 16px;
        text-align: start;
    }

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

    #carouselExample {
        margin-top: 48px;
        /* Platz für Header */

    }



    .carousel-caption h1 {
        font-size: 1.2rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }

    .carousel-caption .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .swiper-slide img {
        height: 150px;
    }

    .text-box {
        text-align: center;
    }

    .btn-primary {
        padding: 8px 20px;
        font-size: 1rem;
    }

    .contact-section .custom-input {
        width: 100%;
    }
}

/* Große Bildschirme */
@media (min-width: 1200px) {
    #carouselExample {
        margin-top: 100px;
        /* Platz für Header */
    }


    .features .grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .swiper-slide img {
        height: 300px;
    }
}