/*=============== HERO SECTION ===============*/
.hero {
    position: relative;
    background: url('../images/Dienstleistungen.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.5); /* 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;
}

/*=============== SERVICES INTRO SECTION ===============*/
.services-intro {
    padding: 2rem 1.5rem;
    background-color: #f8f8f8;
    color: #333;
    text-align: center;
}

.services-intro p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/*=============== 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 */
    }
}
