.service-grid {
    display: grid;
    grid-template-columns: 1fr; /* Zwingt das Grid auf exakt 1 Spalte */
    gap: 30px;
    padding: 20px 0;
    margin: 0 auto;
    max-width: 1320px; /* Optional: Verhindert, dass das Grid auf riesigen Monitoren endlos breit wird */
}

/* Die Kachel als kompletter Link */
.service-card {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    text-decoration: none;
    color: #333333;
    border: 1px solid #e1e4e8;
    border-radius: 5px;
    transition:
        background-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    background-color: var(--udgGelb);
}

.card-icon i,
.card-headline,
.card-text,
.card-btn {
    transition: color 0.3s ease, background-color 0.3s ease;
}

.service-card:hover .card-icon i,
.service-card:hover .card-headline,
.service-card:hover .card-text {
    color: #222;
}

.card-icon i {
    font-size: 40px;
    color: #333333;
    margin-bottom: 20px;
}

.card-headline {
    font-size: 1.2rem;
    font-family: sans-serif;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    color: #333333;
}

.card-text {
    font-size: 1rem;
    color: #555555;
    line-height: 1.5;
    margin: 0 0 30px 0;
    flex-grow: 1; /* Drückt den Button immer nach unten, falls Texte ungleich lang sind */
}

/* Der visuelle Button */
.card-btn {
    background-color: #3a3a3a;
    color: #ffffff;
    padding: 12px 24px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease;
}

/* Hover-Zustand des Buttons, wenn man die Kachel berührt */
.service-card:hover .card-btn {
    background-color: #1a1a1a;
}

/* 2. Tablet (ab 768px Breite) -> 2 Spalten */
@media (min-width: 768px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 3. Normaler Desktop (ab 992px Breite) -> 3 Spalten */
@media (min-width: 992px) {
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 4. Großer Desktop (ab 1200px Breite) -> 4 Spalten */
@media (min-width: 1200px) {
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}