/* ===========================================
   SERVICES CARDS CONTAINER
=========================================== */
.servicecontainer {
    display: flex;
    flex-wrap: nowrap; /* Karten standardmäßig in einer Reihe */
    justify-content: center;
    padding: 2% 0 3% 0;
    gap: 5%; /* Abstand zwischen Karten */
}

/* ===========================================
   INDIVIDUAL CARD
=========================================== */
.card {
    flex: 1 1 25%; /* Flex-grow, flex-shrink, Basisbreite */
    max-width: 95%;
    text-align: center;
    font-family: Georgia, 'Times New Roman', Times, serif;
    background-color: #27133a;
    color: white;
    border-radius: 5%;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.36), 0 6px 20px rgba(255, 255, 255, 0.3);
    margin-bottom: 2%;
    opacity: 0.75;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.card:hover {
    opacity: 1;
    transform: translateY(-5px);
}

/* Bild innerhalb der Karte */
.card img {
    width: 100%;
    height: 33%;
    object-fit: cover;
    z-index: 1;
}

/* Kartentitel */
.card h3 {
    padding: 5%;
    font-size: 2rem;
}

/* Kartentext */
.card p {
    font-size: 1.2rem;
    color: white;
    margin: 0 5%;
}

/* Buttons in der Karte */
.card button {
    width: 90%;
    margin: 10px auto;
    padding: 10px;
    font-size: 2rem;
    border: none;
    outline: none;
    position: relative;
    border-radius: 12%;
    background: linear-gradient(to right, #8c52ff, #ededed);
    cursor: pointer;
}

.card button::before {
    content: attr(data);
    position: absolute;
    top: 1px; right: 1px; bottom: 1px; left: 1px;
    background-color: #27133a;
    color: white;
    text-align: center;
    border-radius: 12%;
    padding-top: 2%;
}

.card button::after {
    content: attr(data);
    font-size: 16px;
    color: #27133a;
    transition: 200ms;
}

/* Optionaler Abstand rechts */
.abstandrechts {
    margin-right: 5%;
}

/* ===========================================
   RESPONSIVE CARDS
=========================================== */
@media (max-width: 1710px) {
    .card { flex: 1 1 33%; }
}

@media (max-width: 1110px) {
    .servicecontainer { flex-wrap: wrap; justify-content: center; }
    .card { flex: 1 1 50%; min-width: 310px; }
    .abstandrechts { margin: 1%; }
}

@media (min-width: 1110px) {
    .card { flex: 1 1 19%; }
}

/* ===========================================
   FLIPCARDS (Zahlen / Fakten)
=========================================== */
.flip-box {
    background-color: transparent;
    width: 100%;
    height: 200px;
    perspective: 1000px;
    border-radius: 2%;
    overflow: hidden;
    display: block;
}

.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%;
    backface-visibility: hidden;
}

.flip-box-front {
    color: black;
}

.flip-box-back {
    background-color: transparent;
    color: black;
    transform: rotateY(180deg);
}

.flip-box-back h2 {
    color: white;
    margin: 0 5%;
    font-size: xx-large;
    line-height: 1.2;
    text-align: center;
}
