/* =============================================
   Service Cards Block – Frontend
   Datei: assets/blocks/service-cards/style.css
   ============================================= */

.scb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 20px 0;
}

@media (max-width: 1024px) {
    .scb-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .scb-grid { grid-template-columns: 1fr; }
}

/* Karte ist ein <a>-Tag – Link-Reset */
a.scb-card {
    text-decoration: none;
    color: inherit;
    --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
    --tw-shadow-colored
--tw-shadow-colored is not defined
: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.scb-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 24px 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    text-decoration: none !important;
}

.scb-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,.10);
}

/* Icon-Wrapper: Größe wird inline per PHP gesetzt (iconSize + 16px) */
.scb-icon-wrap {
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: filter .25s ease;
    overflow: hidden;
    width: 58px!important;
    height: 58px!important;
}

.scb-card:hover .scb-icon-wrap {
    filter: brightness(0.85);
}

/* SVG-Icon im Wrapper */
.scb-icon-wrap img {
    display: block;
    object-fit: contain;
}

.scb-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.scb-desc {
    font-size: .875rem;
    color: #939192;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

.scb-link {
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    transition: gap .2s ease;
    pointer-events: none; /* Klick läuft über die ganze Karte */
}

.scb-card:hover .scb-link {
    gap: 8px;
}
