/*
 PROJECT:   SF Container Plugin – Showcase Edition
 FILE:      container.css  (Mobile First)
 AUTHOR:    Zurbel IT
*/

/* =========================================
   MOBILE BASE (Standard = kleinstes Gerät)
   ========================================= */

.sf-container-showcase {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    font-family: 'Inter', 'Manrope', sans-serif;
    padding-top: 48px;
    /* Abstand zum Header */
}

/* ── Intro ──────────────────────────────── */
.sf-showcase-intro {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 16px;
}

.sf-showcase-intro .display-title {
    font-family: 'Manrope', sans-serif;
    color: #0F172A;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 14px 0;
    line-height: 1.15;
}

.sf-showcase-intro .display-title span {
    color: #A1131A;
}

.sf-showcase-intro .lead-text {
    font-size: 1rem;
    color: #475569;
    line-height: 1.7;
    max-width: 680px;
    margin: 0 auto 24px;
}

/* Globaler Anruf-CTA */
.sf-main-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #A1131A 0%, #7F0E14 100%);
    color: #fff;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(161, 19, 26, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sf-main-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(161, 19, 26, 0.5);
    color: #fff;
    text-decoration: none;
}

/* ── Kategorien ─────────────────────────── */
.sf-category {
    margin-bottom: 48px;
    padding: 0 16px;
}

.sf-category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #F1F5F9;
}

.sf-category-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #A1131A 0%, #7F0E14 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(161, 19, 26, 0.25);
}

.sf-category-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 3px 0;
    line-height: 1.2;
}

.sf-category-sub {
    font-size: 0.85rem;
    color: #64748B;
    margin: 0;
    font-weight: 500;
}

/* ── Card Grid ──────────────────────────── */

/* Mobile: 1 Spalte */
.sf-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* ── Einzelne Card ──────────────────────── */
.sf-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.11);
    border-color: rgba(161, 19, 26, 0.15);
}

/* Bild */
.sf-card-image {
    background: #F8FAFC;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    border-bottom: 1px solid #F1F5F9;
    overflow: hidden;
}

.sf-card-image img {
    width: auto;
    max-height: 110px;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.4s ease;
}

.sf-card:hover .sf-card-image img {
    transform: scale(1.06);
}

/* Body */
.sf-card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sf-card-volume {
    font-family: 'Manrope', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.1;
}

.sf-card-volume span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748B;
}

.sf-card-allowed {
    flex: 1;
}

.sf-allowed-ok {
    color: #16a34a;
    font-weight: 700;
    font-size: 0.9rem;
}

.sf-allowed-warn {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.sf-warn-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

/* CTA Anruf-Button */
.sf-card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0F172A;
    color: #fff !important;
    text-decoration: none !important;
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.14);
}

.sf-card-cta:hover {
    background: #A1131A;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(161, 19, 26, 0.3);
    color: #fff !important;
}

.phone-icon {
    display: inline-block;
    animation: ring 2.5s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes ring {

    0%,
    90%,
    100% {
        transform: rotate(0deg);
    }

    92% {
        transform: rotate(-15deg);
    }

    94% {
        transform: rotate(15deg);
    }

    96% {
        transform: rotate(-10deg);
    }

    98% {
        transform: rotate(10deg);
    }
}


/* =========================================
   TABLET  ≥ 600px  (2 Spalten)
   ========================================= */
@media (min-width: 600px) {

    .sf-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sf-showcase-intro .display-title {
        font-size: 2.2rem;
    }

    .sf-main-cta {
        font-size: 1.1rem;
        padding: 16px 32px;
    }

    .sf-category-title {
        font-size: 1.45rem;
    }
}


/* =========================================
   DESKTOP  ≥ 1024px  (4 / 3 Spalten)
   ========================================= */
@media (min-width: 1024px) {

    .sf-container-showcase {
        padding-top: 72px;
        /* Mehr Abstand zum Header auf großen Screens */
    }

    .sf-showcase-intro {
        margin-bottom: 56px;
    }

    .sf-showcase-intro .display-title {
        font-size: clamp(2.2rem, 3.5vw, 3rem);
    }

    .sf-category {
        padding: 0;
    }

    /* Multicar: 4 Spalten */
    .sf-category.multicar .sf-cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Absetz + Abroll: 3 Spalten */
    .sf-category.absetz .sf-cards-grid,
    .sf-category.abroll .sf-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sf-card-image {
        min-height: 160px;
    }
}