/* ============================================================
   Autohaus Service Manager – Frontend CSS
   ============================================================ */

/* ── Grid ─────────────────────────────────────────────────── */
.ahs-service-grid {
    --ahs-cols: 3;
    --ahs-accent: #c0392b;
    display: grid;
    grid-template-columns: repeat(var(--ahs-cols), 1fr);
    gap: 1.5rem;
    padding: 0;
    list-style: none;
    margin: 0;
}

/* ── Card ─────────────────────────────────────────────────── */
.ahs-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    padding: 2rem 1.5rem 1.75rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    border: 1px solid rgba(0,0,0,.06);
    transition: transform .22s ease, box-shadow .22s ease;
    cursor: default;
}

.ahs-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,.12);
}

/* ── Icon circle ──────────────────────────────────────────── */
.ahs-card__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--ahs-accent, #c0392b);
    color: #fff;
    margin-bottom: 1.1rem;
    flex-shrink: 0;
    transition: background .22s ease, transform .22s ease;
}

.ahs-service-card:hover .ahs-card__icon-wrap {
    transform: scale(1.08);
}

.ahs-card__icon-wrap svg {
    width: 36px; height: 36px;
}

/* ── Body ─────────────────────────────────────────────────── */
.ahs-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.ahs-card__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    margin: 0;
}

.ahs-card__desc {
    font-size: .875rem;
    line-height: 1.55;
    color: #666;
    margin: 0;
}

/* ── Empty state ──────────────────────────────────────────── */
.ahs-empty-msg {
    color: #888;
    font-style: italic;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .ahs-service-grid {
        --ahs-cols: 2 !important;
    }
}

@media (max-width: 560px) {
    .ahs-service-grid {
        --ahs-cols: 1 !important;
    }
    .ahs-service-card {
        flex-direction: row;
        text-align: left;
        padding: 1.25rem;
        gap: 1rem;
        align-items: flex-start;
    }
    .ahs-card__icon-wrap {
        width: 52px; height: 52px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .ahs-card__icon-wrap svg {
        width: 26px; height: 26px;
    }
}
