/* =========================================================
   JIK HOMEPAGE V2
   ========================================================= */

.jik-home-v2 {
    background: #f7f8fa;
    padding: 30px 0 42px;
}

.jik-home-container {
    max-width: 1320px;
}


/* =========================================================
   CUSTOMER HERO
   ========================================================= */

.jik-home-customer-hero {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(500px, 1.55fr);
    gap: 28px;
    padding: 30px;
    background: #fff;
    border: 1px solid #e9ebef;
    border-radius: 20px;
    box-shadow: 0 7px 28px rgba(20, 30, 50, 0.06);
}

.jik-home-customer-main {
    padding-right: 16px;
}

.jik-home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--o-color-1, #d9231f);
    margin-bottom: 10px;
}

.jik-home-customer-main h1,
.jik-home-public-content h1 {
    margin: 0;
    font-size: clamp(27px, 3vw, 40px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.jik-home-company {
    margin: 7px 0 21px;
    font-size: 17px;
    color: #69717d;
}

.jik-home-delivery {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 16px;
    max-width: 340px;
    background: #f3f7f8;
    border-radius: 13px;
}

.jik-home-delivery-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #fff;
    font-size: 19px;
    color: var(--o-color-1, #d9231f);
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.jik-home-delivery-label {
    display: block;
    margin-bottom: 1px;
    font-size: 11px;
    color: #7c8490;
}

.jik-home-delivery strong {
    font-size: 16px;
    color: #20242a;
}


/* =========================================================
   SEARCH
   ========================================================= */

.jik-home-search-area,
.jik-home-public-search {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.jik-home-search-title {
    margin-bottom: 9px;
    font-size: 16px;
    font-weight: 650;
    color: #22272e;
}

.jik-home-search {
    display: flex;
    align-items: center;
    height: 58px;
    padding-left: 18px;
    background: #fff;
    border: 2px solid #e2e5e9;
    border-radius: 13px;
    overflow: hidden;
    transition: border-color .18s, box-shadow .18s;
}

.jik-home-search:focus-within {
    border-color: var(--o-color-1, #d9231f);
    box-shadow: 0 0 0 4px rgba(217, 35, 31, .08);
}

.jik-home-search-icon {
    flex: 0 0 auto;
    margin-right: 11px;
    color: #9298a1;
    font-size: 17px;
}

.jik-home-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent;
    font-size: 16px;
}

.jik-home-search-button {
    align-self: stretch;
    min-width: 100px;
    border: 0;
    padding: 0 20px;
    background: var(--o-color-1, #d9231f);
    color: #fff;
    font-weight: 600;
}


/* =========================================================
   QUICK ACTIONS
   ========================================================= */

.jik-home-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    margin-top: 13px;
}

.jik-home-action {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid #e2e5e9;
    border-radius: 11px;
    background: #fff;
    color: #353b44;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    transition: .18s ease;
}

.jik-home-action:hover {
    border-color: #cdd1d7;
    color: var(--o-color-1, #d9231f);
    transform: translateY(-1px);
}

.jik-home-action-primary {
    color: #fff !important;
    background: var(--o-color-1, #d9231f);
    border-color: var(--o-color-1, #d9231f);
}


/* =========================================================
   PUBLIC HERO
   ========================================================= */

.jik-home-public-hero {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 50px;
    align-items: center;
    padding: 42px 46px;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 10%, rgba(217,35,31,.08), transparent 35%),
        #fff;
    border: 1px solid #e9ebef;
    border-radius: 20px;
    box-shadow: 0 7px 28px rgba(20,30,50,.06);
}

.jik-home-public-content p {
    max-width: 650px;
    margin: 17px 0 24px;
    color: #69717d;
    font-size: 17px;
    line-height: 1.55;
}

.jik-home-public-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.jik-home-public-primary,
.jik-home-public-login {
    min-height: 47px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
}

.jik-home-public-primary {
    background: var(--o-color-1, #d9231f);
    color: #fff !important;
}

.jik-home-public-login {
    background: #f3f4f6;
    color: #323841 !important;
}


/* =========================================================
   CATEGORY AREA V2
   Große visuelle Kategorie-Karten
   ========================================================= */

.jik-home-categories {
    margin-top: 38px;
}

.jik-home-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.jik-home-section-kicker {
    display: block;
    margin-bottom: 3px;
    color: var(--o-color-1, #d9231f);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.jik-home-section-header h2 {
    margin: 0;
    font-size: 27px;
    font-weight: 700;
}

.jik-home-see-all {
    color: #505761;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
}

.jik-home-see-all .fa {
    margin-left: 5px;
}


/* ---------------------------------------------------------
   Grid
   Desktop: 4 pro Reihe.
   Neue Kategorien laufen automatisch in die nächste Reihe.
   --------------------------------------------------------- */

.jik-home-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}


/* ---------------------------------------------------------
   Karte
   --------------------------------------------------------- */

.jik-home-category-card {
    min-width: 0;
    overflow: hidden;

    display: flex;
    flex-direction: column;

    background: #fff;
    border: 1px solid #e4e7eb;
    border-radius: 18px;

    color: #242931 !important;
    text-decoration: none !important;

    box-shadow:
        0 3px 12px rgba(20, 30, 50, .045);

    transition:
        transform .20s ease,
        box-shadow .20s ease,
        border-color .20s ease;
}


/* Hover nur auf Geräten mit Maus */
@media (hover: hover) {
    .jik-home-category-card:hover {
        transform: translateY(-4px);
        border-color: #d3d7dd;

        box-shadow:
            0 12px 30px rgba(20, 30, 50, .10);
    }
}


/* ---------------------------------------------------------
   Große Bildfläche – festes 4:3 Verhältnis
   --------------------------------------------------------- */

.jik-home-category-image {
    position: relative;

    width: 100%;
    aspect-ratio: 4 / 3;

    overflow: hidden;

    background: #f4f5f7;
}

.jik-home-category-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .30s ease;
}

@media (hover: hover) {
    .jik-home-category-card:hover
    .jik-home-category-image img {
        transform: scale(1.035);
    }
}


/* ---------------------------------------------------------
   Unterer Textbereich
   --------------------------------------------------------- */

.jik-home-category-content {
    flex: 1 1 auto;

    width: 100%;
    min-height: 62px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 15px 17px;
}

.jik-home-category-content strong {
    min-width: 0;

    font-size: 16px;
    font-weight: 650;
    line-height: 1.25;

    color: #242931;
}

.jik-home-category-content .fa {
    flex: 0 0 auto;

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f3f4f6;
    color: #555d68;

    font-size: 18px;

    transition:
        background .18s ease,
        color .18s ease;
}

@media (hover: hover) {
    .jik-home-category-card:hover
    .jik-home-category-content .fa {
        background: var(--o-color-1, #d9231f);
        color: #fff;
    }
}


/* Angebote leicht markieren */
.jik-home-category-sale {
    border-color: rgba(217, 35, 31, .20);
}

.jik-home-category-sale
.jik-home-category-content strong {
    color: var(--o-color-1, #d9231f);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1199.98px) {

    .jik-home-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 15px;
    }
}


@media (max-width: 991.98px) {

}


/* =========================================================
   MOBILE
   2 Karten pro Reihe
   ========================================================= */

@media (max-width: 767.98px) {

    .jik-home-categories {
        margin-top: 27px;
    }

    .jik-home-section-header {
        margin-bottom: 12px;
    }

    .jik-home-section-header h2 {
        font-size: 22px;
    }

    .jik-home-section-kicker {
        font-size: 10px;
    }

    .jik-home-see-all {
        font-size: 12px;
    }

    .jik-home-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .jik-home-category-card {
        border-radius: 13px;
    }

    .jik-home-category-image {
        aspect-ratio: 4 / 3;
    }

    .jik-home-category-content {
        min-height: 50px;
        padding: 10px 11px;
        gap: 6px;
    }

    .jik-home-category-content strong {
        font-size: 13px;
        line-height: 1.2;
    }

    .jik-home-category-content .fa {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
}


/* =========================================================
   Sehr kleine Smartphones
   ========================================================= */

@media (max-width: 359.98px) {

    .jik-home-category-grid {
        gap: 7px;
    }

    .jik-home-category-content {
        padding: 9px 8px;
    }

    .jik-home-category-content strong {
        font-size: 12px;
    }

    .jik-home-category-content .fa {
        width: 22px;
        height: 22px;
        font-size: 13px;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    .jik-home-customer-hero,
    .jik-home-public-hero {
        grid-template-columns: 1fr;
    }

    .jik-home-customer-main {
        padding-right: 0;
    }

    .jik-home-public-hero {
        gap: 28px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .jik-home-v2 {
        padding: 14px 0 28px;
    }

    .jik-home-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .jik-home-customer-hero,
    .jik-home-public-hero {
        gap: 22px;
        padding: 20px 16px;
        border-radius: 15px;
    }

    .jik-home-customer-main h1,
    .jik-home-public-content h1 {
        font-size: 25px;
    }

    .jik-home-company {
        font-size: 15px;
    }

    .jik-home-delivery {
        max-width: none;
    }

    .jik-home-search {
        height: 54px;
    }

    .jik-home-search input {
        font-size: 16px;
    }

    .jik-home-search-button {
        min-width: 68px;
        padding: 0 12px;
        font-size: 13px;
    }

    .jik-home-actions {
        grid-template-columns: 1fr 1fr;
    }

    .jik-home-action:first-child {
        grid-column: 1 / -1;
    }

    .jik-home-action {
        min-height: 48px;
        padding: 8px 7px;
        font-size: 13px;
    }

    .jik-home-public-actions .btn {
        flex: 1 1 0;
    }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 374.98px) {

    .jik-home-customer-hero,
    .jik-home-public-hero {
        padding: 18px 13px;
    }

    .jik-home-search-button {
        min-width: 58px;
        font-size: 0;
    }

    .jik-home-search-button::after {
        content: "→";
        font-size: 20px;
    }


}



/* =========================================================
   HOMEPAGE:
   Theme-Prime Header-Suche ausblenden.
   Die große JIK-Suche im Hero bleibt erhalten.
   Auf allen anderen Seiten bleibt die Header-Suche sichtbar.
   ========================================================= */

body:has(.jik-home-v2) header form[action="/shop"]:not(:has(.jik-home-search)),
body:has(.jik-home-v2) header form[action="/shop"]:has(input[name="search"]) {
    display: none !important;
}

