/*=============== HERO SECTION ===============*/
.hero {
    position: relative;
    background: url('../images/about_site.jpg') no-repeat center center/cover;
    color: #fff;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #333; /* Fallback color */
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for better text visibility */
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2; /* Ensures the content is above the dark overlay */
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.hero__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero__subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/*=============== ABOUT SECTION ===============*/
.about {
    padding: 4rem 1.5rem;
    background-color: #f8f8f8;
    color: #333;
}

.about__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem; /* Abstände links und rechts */
    text-align: center;
}

.about__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center; /* Zentriert das Bild und den Text */
    gap: 2rem; /* Abstand zwischen Bild und Text */
}

.about__image {
    flex: 1;
    max-width: 600px; /* Setzt eine maximale Breite für das Bild */
    width: 100%; /* Sorgt dafür, dass das Bild die volle Breite seines Containers einnimmt */
    margin: 0 auto; /* Zentriert das Bild horizontal */
    padding: 0 1rem; /* Gleicher Abstand links und rechts */
    text-align: center; /* Zentriert das Bild innerhalb seines Containers */
}

.about__image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%; /* Stellt sicher, dass das Bild nicht größer als sein Container wird */
}

.about__text {
    flex: 1;
    padding: 0 1rem;
    max-width: 700px; /* Maximalbreite für den Text */
    margin: 0 auto; /* Zentriert den Textblock */
    text-align: center; /* Zentriert den Text */
}

.about__title {
    font-size: 2rem;
    color: #68B92E;
    margin-bottom: 1.5rem;
}

.about__text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #555;
}

/* Responsive Anpassungen für mobile Geräte */
@media (max-width: 768px) {
    .about__row {
        flex-direction: column;
        align-items: center; /* Zentriert Inhalt horizontal */
        text-align: center; /* Zentriert den Text */
    }

    .about__image {
        margin-right: 0;
        margin-bottom: 2rem;
        max-width: 100%; /* Verhindert, dass das Bild zu breit wird */
        margin-left: auto;
        margin-right: auto; /* Zentriert das Bild */
    }

    .about__text {
        text-align: center;
        max-width: 100%; /* Lässt den Text die volle Breite einnehmen */
        padding: 0 1.5rem; /* Fügt Abstände links und rechts hinzu */
        margin: 0 auto; /* Zentriert den Textblock */
    }
}

/*=============== ADVANTAGES SECTION ===============*/
.advantages-section {
    padding: 4rem 1.5rem;
    background-color: #fff;
    color: #333;
}

.advantages-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}

.advantage {
    flex: 1 1 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    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;
}

.advantage:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.icon {
    font-size: 2.5rem;
    color: #68B92E;
    margin-bottom: 1rem;
}

.advantage-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.advantage-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/*=============== 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;
}

.promo-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    padding: 0 20px;
}

.promo-subtitle {
    display: block;
    font-size: 1rem;
    color: #fbc02d;
    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) {
    .about__row {
        flex-direction: column;
        align-items: center;
    }

    .about__image {
        margin-right: 0;
        margin-bottom: 2rem;
    }

    .about__text {
        text-align: center;
    }

    .hero {
        height: 40vh;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .advantages-content {
        flex-direction: column;
        align-items: center;
    }

    .advantage {
        max-width: 90%;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .promo-section {
        height: 300px;
    }

    .promo-title {
        font-size: 1.5rem;
    }
}
