/*=============== HERO SLIDER SECTION ===============*/
.hero-slider {
    position: relative;
    width: 100%;
    height: 80vh; /* 80% of the viewport height */
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 100%;
    transition: left 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    left: 0;
}

.slide-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.slide-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Dark overlay for text visibility */
    z-index: 1; /* Ensures overlay is below text */
}

.static-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    z-index: 2; /* Ensures text is above overlay */
    padding: 0 1rem; /* Adds padding for better text visibility on small screens */
}

.hero-title {
    font-size: 2.5rem;
    color: #fff;
    line-height: 1.2;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 2rem;
}

.hero-cta {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #68B92E;
    color: #fff;
    font-size: 1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.hero-cta:hover {
    background-color: #5ba826;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 3;
}

.slider-controls button {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 1.5rem;
}

.slider-controls button:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Media Query for Mobile: Full-width slider and centered text */
@media (max-width: 768px) {
    .slide-image::before {
        background: rgba(0, 0, 0, 0.8); /* Dark overlay for text visibility */
    }

    .static-content {
        width: 90%; /* Makes sure the text takes the full width with some padding */
        max-width: 100%; /* Ensures it does not overflow */
        padding: 0 1rem; /* Adds padding for spacing from the edges */
        box-sizing: border-box;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* =============== ÜBER UNS =============== */
.about {
    padding: 4rem 1.5rem;
    background-color: #f8f8f8; /* Heller Hintergrund für Kontrast */
    color: #333;
}

.about__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem; /* Abstände links und rechts */
}

.about__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center; /* Zentriere den Inhalt horizontal */
    gap: 2rem; /* Abstand zwischen Bild und Text */
}

.about__image {
    flex: 1 1 100%;
    max-width: 100%;
    margin: 0 auto; /* Zentriere das Bild */
    text-align: center; /* Text innerhalb des Containers zentrieren */
}

.about__image img {
    width: 100%;
    max-width: 90%; /* Verhindert, dass das Bild zu breit wird auf großen Bildschirmen */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: block;
    margin-left: auto;
    margin-right: auto; /* Zentriere das Bild */
}

.about__text {
    flex: 1 1 100%;
    text-align: center; /* Zentriere den Text */
    max-width: 90%;
    margin: 0 auto; /* Zentriere den Text-Block */
}

.about__title {
    font-size: 2rem;
    color: #68B92E; /* Primäre grüne Farbe */
    margin-bottom: 1.5rem;
}

.about__text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #555; /* Etwas helleres Grau für den Text */
}

/* Responsive Anpassungen für Mobilgeräte */
@media (max-width: 768px) {
    .about__row {
        flex-direction: column;
        align-items: center; /* Zentriere den Inhalt horizontal */
        text-align: center; /* Text zentrieren */
    }

    .about__image {
        margin-bottom: 2rem; /* Abstand zwischen Bild und Text */
        max-width: 90%; /* Bildgröße auf mobilen Geräten beschränken */
    }

    .about__text {
        max-width: 100%; /* Text auf die gesamte Breite */
        padding: 0 1.5rem; /* Abstand links und rechts */
    }
}


/*=============== SERVICES SECTION ===============*/
.services-section {
    padding: 4rem 1.5rem;
    background-color: #fff;
    color: #333;
}

.services-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}

.service-card {
    flex: 1 1 calc(33.333% - 2rem); /* Three columns with gap */
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding: 2rem 1rem;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.service-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.icon {
    font-size: 3rem;
    color: #68B92E; /* Primary green color */
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.service-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

/*=============== RESPONSIVE DESIGN ===============*/
@media (max-width: 768px) {
    .services-content {
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        flex: 1 1 100%;
        max-width: 90%;
        margin-bottom: 2rem;
    }

    .hero {
        height: 40vh;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .services-intro p {
        font-size: 1rem;
        max-width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .service-card {
        flex: 1 1 calc(50% - 2rem); /* Two columns for tablet screens */
    }
}



/*=============== PROMO SECTION ===============*/
.promo-section {
    position: relative;
    width: 100%;
    height: 400px;
    background-image: url('../images/promo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.promo-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for better text visibility */
    z-index: 1; /* Ensures the overlay is below the text */
}

.promo-content {
    position: relative;
    z-index: 2; /* Ensures the text is above the overlay */
    color: #fff;
    text-align: center;
    padding: 0 20px; /* Padding for mobile responsiveness */
}

.promo-subtitle {
    display: block;
    font-size: 1rem;
    color: #fbc02d; /* Bright yellow color for subtitle */
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.promo-title {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.2;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .promo-section {
        height: 300px; /* Adjust height for smaller screens */
    }

    .promo-title {
        font-size: 1.5rem; /* Adjust font size for better readability on mobile */
    }
}

/*=============== REFERENZEN SECTION ===============*/
.references {
    padding: 4rem 1.5rem;
    background-color: #f8f8f8; /* Light grey background for contrast */
    color: #333;
}

.references__content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.references__title {
    font-size: 2rem;
    color: #68B92E; /* Primary green color */
    margin-bottom: 2.5rem;
}

.references__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-items: center; /* Centers items within the grid */
}

.reference__card {
    padding: 0; /* No padding, just the image */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reference__card:hover {
    transform: translateY(-5px);
}

.reference__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Button style */
.references__button {
    margin-top: 2rem;
}

.cta-button {
    background-color: #68B92E; /* Green background */
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background-color 0.3s, color 0.3s;
}

.cta-button:hover {
    background-color: #5ba826;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .references__grid {
        grid-template-columns: 1fr; /* Single column on small screens */
    }

    .reference__card {
        width: 100%; /* Full width on mobile */
        max-width: 100%; /* Removes max-width to allow full width */
        margin: 0 auto; /* Centers the card horizontally */
    }
}


/*=============== ADVANTAGES SECTION ===============*/
.advantages-section {
    padding: 4rem 1.5rem;
    background-color: #fff; /* White background for contrast */
    color: #333;
}

.advantages-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    align-items: stretch; /* Aligns children to stretch to the same height */
}

.advantage {
    flex: 1 1 30%; /* Flexible basis with a set width for consistency */
    display: flex;
    flex-direction: column; /* Allows content to be stacked */
    align-items: center;
    text-align: left;
    padding: 1.5rem;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 250px; /* Ensures all boxes have the same minimum height */
}

.advantage:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.icon {
    font-size: 2.5rem;
    color: #68B92E; /* Primary green color for icons */
    margin-bottom: 1rem;
}

.advantage-text {
    text-align: center; /* Centers the text inside the advantage */
}

.advantage-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.advantage-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .advantages-content {
        flex-direction: column;
        align-items: center;
    }

    .advantage {
        width: 90%; /* Make sure the advantages fit well on mobile */
        text-align: center;
        min-height: auto; /* Remove fixed height for mobile responsiveness */
        margin-bottom: 1.5rem; /* Adds space between boxes on mobile */
    }
}



/*=============== JOBS SECTION STYLES ===============*/
.jobs-section {
    padding: 4rem 1.5rem;
    background-color: #f8f8f8;
    color: #333;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.job-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.job-title {
    font-size: 1.5rem;
    color: #68B92E;
    margin-bottom: 1rem;
}

.job-description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.job-button {
    background-color: #68B92E;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.job-button:hover {
    background-color: #5ba826;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


.application-form {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #e8e8e8; /* Slightly darker grey for form background */
    border-radius: 8px;
}

.application-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.application-form input,
.application-form textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.application-form button {
    background-color: #68B92E;
    color: #fff;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.application-form button:hover {
    background-color: #5ba826;
}

