/* Services Cards */
.servicecontainer {
    display: flex;
    flex-wrap: wrap; /* Ensure cards wrap to the next row on smaller screens */
    padding-top: 2%;
    padding-bottom: 3%;
    
}

.card {
    border-style: solid;
    width: 30%; /* Make cards full width on smaller screens */
    max-width: 90%; /* Ensure it doesn't overflow */
    height: auto; /* Responsive height */
    text-align: center;
    font-family: Georgia, 'Times New Roman', Times, serif;
    background-color: #ffffff;
    color: #000000;
    border-color: #42b8fd;
    border-radius: 5%;
    overflow: hidden;
    box-shadow: 0 4px 8px 0 rgba(255, 255, 255, 0.356), 0 6px 20px 0 rgba(255, 255, 255, 0.301);
    margin-bottom: 2%; /* Add margin between cards */
}


.abstandrechts {
    margin-right: 5%;
}
@media only screen and (max-width: 1100px) {
    .servicecontainer{
        justify-content: center;
    }
    .card{
        width: 50%;
        min-width: 310px;
    }
  .abstandrechts{
    margin: 1%;
  }
}
.card img {
    width: 100%; /* Make images responsive */
    height: auto;
}

.card h3 {
    display: block;
    padding: 5% 5%;
    font-size: 3rem;
}

.card p {
    color: #000000;
}

.card button {
    width: 100%;
    border-style: none;
    background-color: transparent;
    font-size: 2.5rem;
    cursor: pointer;
}

/* Flipcards für Zahlen und Fakten */
.flip-box {
    background-color: transparent;
    width: 100%; /* Make it full width */
    height: 200px; /* Responsive height */
    border: 1px solid #f1f1f1;
    perspective: 1000px;
    border-radius: 20%;
    overflow: hidden;
    display: block; /* Change to block for responsiveness */
}

.flip-box-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-box:hover .flip-box-inner {
    transform: rotateY(180deg);
}

.flip-box-front, .flip-box-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.flip-box-front {
    background-color: #bbb;
    color: black;
}

.flip-box-back {
    background-color: transparent;
    color: black;
    transform: rotateY(180deg);
}

.flip-box-back h2 {
    color: #000000;
    margin: 0 5% 0 5%;
}