/* ================================
   Services – Karten
================================ */
.service-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
}

/* Karte – Kompakt und modern */
.card {
    background-color: #ffffff;
    width: 260px;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    transition: transform 0.25s, box-shadow 0.25s;
    height: auto; /* <<< WICHTIG: passt sich automatisch der Textlänge an */
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

/* Bild */
.card-image img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

/* Scrollbarer Bereich (wird jetzt nur aktiv wenn Inhalt wirklich lang ist) */
.card-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    max-height: none; /* <<< verhindert unnötiges Strecken */
}

.card-scroll::-webkit-scrollbar {
    width: 6px;
}
.card-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.15);
    border-radius: 4px;
}

/* Titel */
.card-scroll h3 {
    margin: 0 0 8px 0;
    font-size: 1.2em;
    font-weight: bold;
    color: #000;
}

/* Beschreibung */
.card-scroll p {
    font-size: 0.92em;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.35;
}

/* Liste */
.card-scroll ul {
    margin: 0;
    padding-left: 18px;
    color: #555;
}

.card-scroll li {
    margin-bottom: 4px;
    font-size: 0.9em;
}

/* Button fix am unteren Rand */
.card-footer {
    padding: 12px 16px 16px 16px;
    background: #fff;
    border-top: 1px solid #eee;
}

.card-footer .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background-color: #1E90FF;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
}

.card-footer .btn:hover {
    background-color: #0077cc;
}

/* ================================
   Vorteile / Kundeninfos
================================ */
.advantages {
    background-color: #f3f7fb;
    padding: 60px 20px;
    text-align: center;
}

.advantages h2 {
    font-size: 2.2em;
    margin-bottom: 40px;
}

.advantage-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.advantage-cards .card {
    background-color: #fff;
    padding: 25px 15px;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    max-width: 230px;
    transition: 0.25s;
}

.advantage-cards .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.1);
}

.advantage-cards h3 {
    font-size: 1.2em;
    color: #1E90FF;
    margin-bottom: 10px;
}

/* ================================
   Testimonials
================================ */
.testimonials {
    padding: 60px 20px;
    text-align: center;
}

.testimonial-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.testimonial-cards .card {
    background-color: #f9f9fb;
    padding: 22px 16px;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    max-width: 260px;
    font-style: italic;
    transition: 0.25s;
    height: auto; /* <<< Wichtig für schrumpfende Höhe */
}

.testimonial-cards .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}

.testimonial-cards span {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    font-style: normal;
}

/* ================================
   Responsive Design
================================ */
@media (max-width: 900px) {
    .service-cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
        height: auto;
    }
}
