#idServicesSection {
    background-image: linear-gradient(to top, #f5f3f1, rgb(255 255 255) 50%);
}
.services_main {
    width: 100%;
}
.services_main h1 {
    text-align: center;
}
.services_main p {
    width: 85%;
    margin: 0 auto;
    text-align: justify;
    hyphens: auto;
}
.cards_container {
    width: 85%;
    margin: 0 auto;
    padding: 3vh 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}
.card {
    width: 40%;
    /* max-height: min-content; */
    min-height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.6) 30%, rgba(255, 255, 255, 0.1) 100%),
                        url("../img/Pattern_small_1920x1280px.png");
    text-decoration: none;
    border: 3px solid #ffd48a;
    border-radius: 10px;
    scale: 0.97 0.97;
    transition: scale 100ms ease, filter 150ms ease;
    box-sizing: border-box;
}
.card:hover {
    scale: 1 1;
    filter: brightness(105%) drop-shadow(8px 8px 10px rgba(0,0,0,0.25));
}
/* sichtbarer Tastaturfokus */
.card:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}
.services_card_img {
    height: 40%;
    width: 100%;
    margin: 0.8em 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.services_card_img svg {
    width: 16%;
    height: auto;
    fill: none;
    stroke: var(--text-color);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: none;
}
.card_text_cont {
    width: 100%;
    height: 55%;
}
.cards_container h2 {
    color: var(--accent-color);
}
.cards_container p {
    padding: 0 0 0.8em 0;
    color: var(--text-color);
}
.card1 {
    background-position-x: 1%;
    background-position-y: 85%;
}
.card2 {
    background-position-x: 25%;
}
.card3 {
    background-position-x: 85%;
    background-position-y: 70%;
}
.card4 {
    background-position-x: 8%;
    background-position-y: 1%;
}

@media (prefers-reduced-motion: reduce) {
    .card { transition: none; }
}

@media(max-width: 1280px) {
    .cards_container p {
        font-size: clamp(0.95rem, 0.9vw, 1.4rem);
    }
    .card1 {
        background-position-x: 10%;
        background-position-y: 85%;
    }
    .card3 {
        background-position-x: 80%;
        background-position-y: 65%;
    }
}
@media(max-width: 1080px) {
    .card3 {
        background-position-x: 70%;
        background-position-y: 60%;
    }
}
@media (max-width: 799px) {
    .services_main {
        width: 85%;
        margin: 0 auto;
    }
    .cards_container {
        width: 60%;
    }
    .card {
        width: 100%;
    }
    .cards_container p {
        width: 90%;
        margin: 0 auto;
    }
    .card1 {
        background-position-x: 10%;
        background-position-y: 85%;
    }
    .card3 {
        background-position-x: 80%;
        background-position-y: 65%;
    }
}
@media (max-width:480px) {
    .services_main p {
        width: 95%;
    }
    .cards_container {
        width: 85%;
        flex-direction: column;
        gap: 1em;
    }
    .card1 {
        background-position-x: 5%;
        background-position-y: 85%;
    }
    .card3 {
        background-position-x: 75%;
        background-position-y: 60%;
    }
}