.service_start{
    display: flex;
    flex-direction: column;
    height: auto;
    width: 100%;
    background-color: var(--main_background_color);
}
.service_wrapper{
    height: 100%;
    width: 100%;
    margin-top: var(--header_height);
    background-image: url("../img/beispielauto.jpg");
    background-size: cover;
    background-repeat: no-repeat;
}
.service_content{
    position: relative;
    display: flex;
    width: 100%;
    box-sizing: border-box;
}
.service_content_text{
    display: flex;
    flex-direction: column;
    margin: auto;
    width: 90%;
    height: 70%;
    box-sizing: border-box;
}
.service_home_text{
    margin: 0 auto;
    margin-top: 30px;
    padding: 10px;
    text-shadow: 2px 2px 7px rgba(0, 0, 0, 1), 0px 0px 7px rgba(0, 0, 0, 1);
    margin-bottom: 30px;
    height: auto;
    font-family: Arial, Helvetica, sans-serif;
}
.service_home_text_header{
    color: var(--color_white);
    margin: 0 0;
}
.service_home_text_welcome{
    color: white;
    font-size: 21px;
}
.service_home_text_button{
    margin:20px 0px; /* Abstand zum oberen Inhalt */
    padding: 8px 20px; /* Kleinere Innenabstände für den Button */
    background-color: #000000; /* Hintergrundfarbe */
    color: white; /* Textfarbe */
    border: none;
    border-radius: 5px; /* Abgerundete Ecken */
    font-size: 0.9rem; /* Kleinere Schrift */
    cursor: pointer; /* Zeigt, dass der Button klickbar ist */
    transition: background-color 0.3s ease; /* Weicher Übergang bei Hover */
    align-self: flex-start; /* Button ist linksbündig zum Text */
}
.service_home_text_button:hover{
    background-color: #444;
}
.service_home_text_button:active {
    background-color: #666;
}
.service_container {
    width: 60%; /* Der Inhalt nimmt nun nur 60% der Bildschirmbreite ein */
    margin: 0 auto; /* Zentriert den Inhalt horizontal */
}
.services {
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding: 50px 20px;
}
.service {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    gap: 20px;
}
.service a {
    display: block;
    width: 40%;
}
.service a img {
    width: 100%;
}
.service_reverse {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    gap: 20px;
}
.service_reverse a {
    display: block;
    width: 40%;
}
.service_reverse a img {
    width: 100%;
}
.service_image {
    width: 40%; /* Bild nimmt 40% der Breite ein */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    object-fit: cover; /* Bild bleibt proportional */
}
.service_description {
    width: 60%; /* Text nimmt 60% der Breite ein */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Text vertikal mittig */
    padding: 0 20px;
    position: relative;
}
.service_description h2 {
    font-size: 1.8rem;
    color: #0056b3;
    margin: 20px 0;
}

.service_description p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.service_description .service_button {
    margin:20px 0px; /* Abstand zum oberen Inhalt */
    padding: 8px 20px; /* Kleinere Innenabstände für den Button */
    background-color: #0056b3; /* Hintergrundfarbe */
    color: white; /* Textfarbe */
    border: none;
    border-radius: 5px; /* Abgerundete Ecken */
    font-size: 0.9rem; /* Kleinere Schrift */
    cursor: pointer; /* Zeigt, dass der Button klickbar ist */
    transition: background-color 0.3s ease; /* Weicher Übergang bei Hover */
    align-self: flex-start; /* Button ist linksbündig zum Text */
}

.service_description .service_button:hover {
    background-color: #003366;
}
@media(max-width:768px) {
    .service_container{
        width: 95%;
    }
    .service_description{
        width: 90%;
    }
    .service{
        padding: 20px;
        flex-direction: column;
    }
    .service_reverse{
        padding: 20px;
        flex-direction: column-reverse;
    }
    .service_image, .service a{
        width: 80%;
    }
    .service_description .service_button{
        margin: 20px auto;
    }
}

/*Animationen vorbereiten*/
/*======================================================================*/
.hidden{
    opacity: 0;
    transition: opacity 0.6s ease-out;
}
.visible{
    opacity: 1;
}
/*======================================================================*/


/* Pseudo-Elemente für die Streifen */
.service_description::before,
.service_description::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    height: 5px;
    background-color: #2f56b3; /* Farbiger Streifen */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.service_description::before {
    top: 0; /* Streifen oben */
}

.service_description::after {
    bottom: 0; /* Streifen unten */
}