﻿/* Shop – EF-Hefte / 45°-Hefte (Kategorie) */
/* â”€â”€ Kategorie EF-Hefte (Intro + 4Ã—2, ein Block 1000px bÃ¼ndig) â”€â”€ */
body.ff-shop-shell.ff-shop-ef-hefte-page,
body.ff-shop-shell.ff-shop-45-hefte-page,
body.ff-shop-shell.ff-shop-fanzines-page,
body.ff-shop-shell.ff-shop-buecher-page,
body.ff-shop-shell.ff-shop-diverses-page,
body.ff-shop-shell.ff-shop-pyro-page {
    --ff-ef-header-gap: var(--ff-shop-header-gap, 100px);
}

body.ff-shop-shell.ff-shop-ef-hefte-page #main.site-main,
body.ff-shop-shell.ff-shop-45-hefte-page #main.site-main,
body.ff-shop-shell.ff-shop-fanzines-page #main.site-main,
body.ff-shop-shell.ff-shop-buecher-page #main.site-main,
body.ff-shop-shell.ff-shop-diverses-page #main.site-main,
body.ff-shop-shell.ff-shop-pyro-page #main.site-main {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 0 !important;
    padding: 0 !important;
}

body.ff-shop-shell.ff-shop-ef-hefte-page #ff-shop-primary.ff-main,
body.ff-shop-shell.ff-shop-45-hefte-page #ff-shop-primary.ff-main,
body.ff-shop-shell.ff-shop-fanzines-page #ff-shop-primary.ff-main,
body.ff-shop-shell.ff-shop-buecher-page #ff-shop-primary.ff-main,
body.ff-shop-shell.ff-shop-diverses-page #ff-shop-primary.ff-main,
body.ff-shop-shell.ff-shop-pyro-page #ff-shop-primary.ff-main {
    width: min(100%, 1000px) !important;
    max-width: 1000px !important;
    margin-top: var(--ff-header-stack-h, 170px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background-color: transparent !important;
}

body.ff-shop-shell.ff-ad-bg.ff-shop-ef-hefte-page #ff-shop-primary.ff-main,
body.ff-shop-shell.ff-ad-bg.ff-shop-45-hefte-page #ff-shop-primary.ff-main,
body.ff-shop-shell.ff-ad-bg.ff-shop-fanzines-page #ff-shop-primary.ff-main,
body.ff-shop-shell.ff-ad-bg.ff-shop-buecher-page #ff-shop-primary.ff-main,
body.ff-shop-shell.ff-ad-bg.ff-shop-diverses-page #ff-shop-primary.ff-main,
body.ff-shop-shell.ff-ad-bg.ff-shop-pyro-page #ff-shop-primary.ff-main {
    background-color: transparent !important;
}

body.ff-shop-shell:not(.ff-ad-bg).ff-shop-ef-hefte-page #ff-shop-primary.ff-main,
body.ff-shop-shell:not(.ff-ad-bg).ff-shop-45-hefte-page #ff-shop-primary.ff-main,
body.ff-shop-shell:not(.ff-ad-bg).ff-shop-fanzines-page #ff-shop-primary.ff-main,
body.ff-shop-shell:not(.ff-ad-bg).ff-shop-buecher-page #ff-shop-primary.ff-main,
body.ff-shop-shell:not(.ff-ad-bg).ff-shop-diverses-page #ff-shop-primary.ff-main,
body.ff-shop-shell:not(.ff-ad-bg).ff-shop-pyro-page #ff-shop-primary.ff-main {
    background-color: #000 !important;
}

body.ff-shop-shell.ff-shop-ef-hefte-page .ff-shop-wrap,
body.ff-shop-shell.ff-shop-45-hefte-page .ff-shop-wrap,
body.ff-shop-shell.ff-shop-fanzines-page .ff-shop-wrap,
body.ff-shop-shell.ff-shop-buecher-page .ff-shop-wrap,
body.ff-shop-shell.ff-shop-diverses-page .ff-shop-wrap,
body.ff-shop-shell.ff-shop-pyro-page .ff-shop-wrap {
    width: 100% !important;
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
    box-sizing: border-box;
}

@media (min-width: 1025px) {
    body.ff-shop-shell.ff-shop-ef-hefte-page .ff-shop-wrap,
    body.ff-shop-shell.ff-shop-45-hefte-page .ff-shop-wrap,
    body.ff-shop-shell.ff-shop-fanzines-page .ff-shop-wrap,
    body.ff-shop-shell.ff-shop-buecher-page .ff-shop-wrap,
body.ff-shop-shell.ff-shop-diverses-page .ff-shop-wrap,
body.ff-shop-shell.ff-shop-pyro-page .ff-shop-wrap {
        padding-top: var(--ff-shop-header-gap, 100px) !important;
    }
}

.ff-shop-ef-hefte {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.ff-shop-ef-hefte__inner {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.ff-shop-ef-hefte__intro {
    width: 100%;
    max-width: 1000px;
    margin: 0 0 80px;
    padding: 0;
    text-align: left;
    box-sizing: border-box;
}

body.ff-shop-shell .ff-shop-ef-hefte__heading {
    margin: 0 0 24px;
    padding: 0;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 30px;
    line-height: 1;
    letter-spacing: 0;
    color: #fff;
}

body.ff-shop-shell .ff-shop-ef-hefte__subheading {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 735px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 25px;
    line-height: 1;
    letter-spacing: 0;
    color: #fff;
}

/* 4Ã—2 â€“ Cover 203.58Ã—293 px, Grid bÃ¼ndig 1000px (Rand = Text) */
.ff-shop-ef-hefte__grid {
    --ff-ef-cover-w: 203.58px;
    --ff-ef-cover-h: 293px;
    --ff-ef-grid-max: 1000px;
    display: grid;
    grid-template-columns: repeat(4, var(--ff-ef-cover-w));
    grid-template-rows: auto auto;
    column-gap: max(28px, calc((100% - (4 * var(--ff-ef-cover-w))) / 3));
    row-gap: 48px;
    width: 100%;
    max-width: var(--ff-ef-grid-max);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    align-items: start;
    justify-content: start;
}

.ff-shop-ef-hefte__cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: var(--ff-ef-cover-w);
    min-width: 0;
    position: static;
}

.ff-shop-ef-hefte__media {
    position: relative;
    width: var(--ff-ef-cover-w);
    height: var(--ff-ef-cover-h);
    flex: 0 0 auto;
    overflow: hidden;
    display: block;
    margin: 0;
}

.ff-shop-ef-hefte__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.ff-shop-ef-hefte__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

@media (hover: hover) {
    .ff-shop-ef-hefte__link:hover .ff-shop-ef-hefte__img,
    .ff-shop-ef-hefte__link:focus-visible .ff-shop-ef-hefte__img {
        transform: scale(1.04);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ff-shop-ef-hefte__img {
        transition: none;
    }

    .ff-shop-ef-hefte__link:hover .ff-shop-ef-hefte__img,
    .ff-shop-ef-hefte__link:focus-visible .ff-shop-ef-hefte__img {
        transform: none;
    }
}

body.ff-shop-shell .ff-shop-ef-hefte__product-title {
    position: static;
    margin: 12px 0 0;
    padding: 0;
    width: 100%;
    flex: 0 0 auto;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 19px;
    line-height: 1.15;
    letter-spacing: 0;
    color: #fff;
    text-align: center;
}

body.ff-shop-shell .ff-shop-ef-hefte__product-price {
    position: static;
    margin: 8px 0 0;
    padding: 0;
    width: 100%;
    flex: 0 0 auto;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 19px;
    line-height: 1;
    letter-spacing: 0;
    color: #fff;
    text-align: center;
}

/* ── 45°-Hefte: Stapel-Cover im Grid ── */
.ff-shop-45-hefte__cell--stack {
    overflow: visible;
    position: relative;
    z-index: 3;
}

.ff-shop-45-hefte__cell--stack .ff-shop-45-hefte__link {
    width: calc(
        var(--ff-ef-cover-w)
        + (var(--ff-45-stack-step, 14px) * max(0, var(--ff-45-stack-count, 3) - 1))
    );
    max-width: none;
    position: relative;
    z-index: 1;
}

.ff-shop-45-hefte__media--stack {
    --ff-45-stack-step: 14px;
    overflow: visible;
    width: calc(var(--ff-ef-cover-w) + (var(--ff-45-stack-step) * max(0, var(--ff-45-stack-count, 1) - 1)));
}

.ff-shop-45-hefte__stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.ff-shop-45-hefte__stack-layer {
    position: absolute;
    top: 0;
    left: calc(var(--ff-45-stack-index, 0) * var(--ff-45-stack-step));
    width: var(--ff-ef-cover-w);
    height: var(--ff-ef-cover-h);
}

.ff-shop-45-hefte__stack-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

@media (hover: hover) {
    .ff-shop-45-hefte__link:hover .ff-shop-45-hefte__stack,
    .ff-shop-45-hefte__link:focus-visible .ff-shop-45-hefte__stack {
        --ff-45-stack-step: 18px;
    }

    .ff-shop-45-hefte__link:hover .ff-shop-ef-hefte__img,
    .ff-shop-45-hefte__link:focus-visible .ff-shop-ef-hefte__img {
        transform: scale(1.04);
    }
}

/* Karussell unter dem Grid (wie Produktdetail) */
.ff-shop-45-hefte .ff-shop-ef-more {
    margin-top: 220px;
}

@media (max-width: 1040px) {
    body.ff-shop-shell.ff-shop-ef-hefte-page #main.site-main,
    body.ff-shop-shell.ff-shop-45-hefte-page #main.site-main,
    body.ff-shop-shell.ff-shop-fanzines-page #main.site-main,
    body.ff-shop-shell.ff-shop-buecher-page #main.site-main,
    body.ff-shop-shell.ff-shop-diverses-page #main.site-main,
    body.ff-shop-shell.ff-shop-pyro-page #main.site-main,
    body.ff-shop-shell.ff-shop-ef-hefte-page #ff-shop-primary.ff-main,
    body.ff-shop-shell.ff-shop-45-hefte-page #ff-shop-primary.ff-main,
    body.ff-shop-shell.ff-shop-fanzines-page #ff-shop-primary.ff-main,
    body.ff-shop-shell.ff-shop-buecher-page #ff-shop-primary.ff-main,
    body.ff-shop-shell.ff-shop-diverses-page #ff-shop-primary.ff-main,
    body.ff-shop-shell.ff-shop-pyro-page #ff-shop-primary.ff-main,
    body.ff-shop-shell.ff-shop-ef-hefte-page .ff-shop-wrap,
    body.ff-shop-shell.ff-shop-45-hefte-page .ff-shop-wrap,
    body.ff-shop-shell.ff-shop-fanzines-page .ff-shop-wrap,
    body.ff-shop-shell.ff-shop-buecher-page .ff-shop-wrap,
    body.ff-shop-shell.ff-shop-diverses-page .ff-shop-wrap,
    body.ff-shop-shell.ff-shop-pyro-page .ff-shop-wrap,
    .ff-shop-ef-hefte__inner,
    .ff-shop-ef-hefte__intro,
    .ff-shop-ef-hefte__grid {
        max-width: min(1000px, calc(100% - 2 * var(--ff-layout-gutter, 20px)));
    }
}

@media (max-width: 960px) {
    .ff-shop-ef-hefte__grid {
        grid-template-columns: repeat(2, var(--ff-ef-cover-w, 203.58px));
        column-gap: 16px;
        row-gap: 40px;
    }
}

@media (max-width: 640px) {
    .ff-shop-ef-hefte__intro {
        margin-bottom: 56px;
    }

    body.ff-shop-shell .ff-shop-ef-hefte__heading {
        font-size: clamp(22px, 6vw, 30px);
    }

    body.ff-shop-shell .ff-shop-ef-hefte__subheading {
        font-size: clamp(18px, 4.5vw, 25px);
    }

    .ff-shop-ef-hefte__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body.ff-shop-shell .ff-shop-ef-hefte__product-title,
    body.ff-shop-shell .ff-shop-ef-hefte__product-price {
        font-size: 17px;
    }
}

/* ── Kategorie: Header / Abstände ── */
body.ff-shop-shell.ff-shop-ef-hefte-page .ff-content-wrap,
body.ff-shop-shell.ff-shop-45-hefte-page .ff-content-wrap,
body.ff-shop-shell.ff-shop-fanzines-page .ff-content-wrap,
body.ff-shop-shell.ff-shop-buecher-page .ff-content-wrap,
body.ff-shop-shell.ff-shop-diverses-page .ff-content-wrap,
body.ff-shop-shell.ff-shop-pyro-page .ff-content-wrap {
    padding-top: 0 !important;
}

/* EF-Hefte / 45Â°-Hefte: deckender schwarzer Header (kein Glas â€” sonst scheint Content dahinter) */
html body.ff-shop-shell.ff-shop-ef-hefte-page .ff-header-stack,
html body.ff-shop-shell.ff-shop-ef-hefte-page .ff-header-stack.ff-header--compact,
html body.ff-shop-shell.ff-shop-ef-hefte-page .ff-header-stack.ff-header--compact.ff-header--compact-show-nav,
html body.ff-shop-shell.ff-shop-45-hefte-page .ff-header-stack,
html body.ff-shop-shell.ff-shop-45-hefte-page .ff-header-stack.ff-header--compact,
html body.ff-shop-shell.ff-shop-45-hefte-page .ff-header-stack.ff-header--compact.ff-header--compact-show-nav,
html body.ff-shop-shell.ff-shop-fanzines-page .ff-header-stack,
html body.ff-shop-shell.ff-shop-fanzines-page .ff-header-stack.ff-header--compact,
html body.ff-shop-shell.ff-shop-fanzines-page .ff-header-stack.ff-header--compact.ff-header--compact-show-nav,
html body.ff-shop-shell.ff-shop-buecher-page .ff-header-stack,
html body.ff-shop-shell.ff-shop-buecher-page .ff-header-stack.ff-header--compact,
html body.ff-shop-shell.ff-shop-buecher-page .ff-header-stack.ff-header--compact.ff-header--compact-show-nav,
html body.ff-shop-shell.ff-shop-diverses-page .ff-header-stack,
html body.ff-shop-shell.ff-shop-diverses-page .ff-header-stack.ff-header--compact,
html body.ff-shop-shell.ff-shop-diverses-page .ff-header-stack.ff-header--compact.ff-header--compact-show-nav,
html body.ff-shop-shell.ff-shop-pyro-page .ff-header-stack,
html body.ff-shop-shell.ff-shop-pyro-page .ff-header-stack.ff-header--compact,
html body.ff-shop-shell.ff-shop-pyro-page .ff-header-stack.ff-header--compact.ff-header--compact-show-nav {
    background: #000 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border-bottom: none !important;
}

/* Kategorie: Mobile */
@media (max-width: 1024px) {
    body.ff-shop-shell.ff-shop-ef-hefte-page .ff-shop-wrap,
    body.ff-shop-shell.ff-shop-45-hefte-page .ff-shop-wrap,
    body.ff-shop-shell.ff-shop-fanzines-page .ff-shop-wrap,
    body.ff-shop-shell.ff-shop-buecher-page .ff-shop-wrap,
body.ff-shop-shell.ff-shop-diverses-page .ff-shop-wrap,
body.ff-shop-shell.ff-shop-pyro-page .ff-shop-wrap {
        padding-top: var(--ff-shop-header-gap, 32px) !important;
        padding-left: max(16px, env(safe-area-inset-left, 0));
        padding-right: max(16px, env(safe-area-inset-right, 0));
    }

    body.ff-shop-shell.ff-shop-ef-hefte-page #ff-shop-primary.ff-main,
    body.ff-shop-shell.ff-shop-45-hefte-page #ff-shop-primary.ff-main,
    body.ff-shop-shell.ff-shop-fanzines-page #ff-shop-primary.ff-main,
    body.ff-shop-shell.ff-shop-buecher-page #ff-shop-primary.ff-main,
body.ff-shop-shell.ff-shop-diverses-page #ff-shop-primary.ff-main,
body.ff-shop-shell.ff-shop-pyro-page #ff-shop-primary.ff-main {
        margin-top: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-inline: 0 !important;
        box-sizing: border-box;
    }
}
