/* Shop-Bereich (WooCommerce) – Content-Layout */

body.ff-shop-shell {
    --ff-shop-header-gap: 100px;
    --ff-shop-hero-neuheiten-gap: 150px;
    --ff-shop-hero-min-height: 800px;
    /* Feste Header-Höhe (expanded) — darf nicht mit --ff-header-stack-h mitlaufen, sonst springt der Hero-Inhalt beim Scrollen */
    --ff-shop-hero-header-base: 200px;
}

/*
 * Shop + Advanced Ads (ff-ad-bg): wie Website — Wallpaper links/rechts,
 * schwarze Mittelsäule 1000px (ff-ads.css ::after), Details in ff-ads.css.
 * Ohne ff-ad-bg: Fallback komplett schwarz.
 */
html body.ff-shop-shell.ff-ad-bg {
    background-color: #e8e8e8 !important;
    scrollbar-color: #b43526 #e8e8e8;
}

html body.ff-shop-shell:not(.ff-ad-bg) {
    background: #000 !important;
    scrollbar-color: #b43526 #000;
}

html body.ff-shop-shell:not(.ff-ad-bg) .ff-content-wrap,
html body.ff-shop-shell:not(.ff-ad-bg) .site,
html body.ff-shop-shell:not(.ff-ad-bg) .site-content,
html body.ff-shop-shell:not(.ff-ad-bg) .content-area,
html body.ff-shop-shell:not(.ff-ad-bg) #main.site-main,
html body.ff-shop-shell:not(.ff-ad-bg) #main.site-main > article,
html body.ff-shop-shell:not(.ff-ad-bg) .inside-article,
html body.ff-shop-shell:not(.ff-ad-bg) #ff-shop-primary,
html body.ff-shop-shell:not(.ff-ad-bg) .ff-shop-wrap,
html body.ff-shop-shell:not(.ff-ad-bg) .ff-shop-neuheiten,
html body.ff-shop-shell:not(.ff-ad-bg) .ff-shop-ef-ausgaben,
html body.ff-shop-shell:not(.ff-ad-bg) .ff-shop-ef-hefte,
html body.ff-shop-shell:not(.ff-ad-bg) .ff-shop-hero,
html body.ff-shop-shell:not(.ff-ad-bg) .ff-shop-archive,
html body.ff-shop-shell:not(.ff-ad-bg) .ff-shop-single {
    background-color: #000 !important;
}

/* Hero volle Breite schwarz (über Wallpaper in der Mitte) */
html body.ff-shop-shell.ff-ad-bg .ff-shop-hero {
    background-color: #000 !important;
}

body.ff-shop-shell #main.site-main {
    display: block !important;
    width: 100% !important;
    max-width: min(var(--ff-layout-max), calc(100% - 2 * var(--ff-layout-gutter))) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

body.ff-shop-shell #main.site-main > article {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    overflow: visible !important;
}

body.ff-shop-shell #main.site-main > article .entry-content {
    padding: 0 !important;
    margin: 0 !important;
}

body.ff-shop-main-page .inside-article > .entry-header,
body.ff-shop-main-page .entry-header .entry-title,
body.ff-shop-main-page h1.entry-title:not(.screen-reader-text),
body.woocommerce-shop .page-header,
body.woocommerce-shop .rank-math-breadcrumb,
body.woocommerce-shop .yoast-breadcrumb,
body.woocommerce-shop nav.woocommerce-breadcrumb {
    display: none !important;
}

body.ff-shop-main-page .woocommerce-products-header,
body.ff-shop-main-page .woocommerce-no-products-found,
body.ff-shop-main-page .woocommerce-result-count,
body.ff-shop-main-page .term-description {
    display: none !important;
}

body.ff-shop-main-page .site-main,
body.ff-shop-main-page .inside-article,
body.ff-shop-main-page .entry-content {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto;
    margin-right: auto;
}

body.ff-shop-main-page #ff-shop-primary.ff-main {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
    box-sizing: border-box;
}

body.ff-shop-main-page .ff-shop-wrap {
    max-width: 100%;
    width: 100%;
    margin-inline: auto;
    padding: 0 0 48px;
    box-sizing: border-box;
}

/* ── Shop-Hero (Startseite, 715px) ── */
.ff-shop-hero {
    position: relative;
    width: 100%;
    height: 715px;
    overflow: hidden;
    background: #000;
    color: #fff;
}

.ff-shop-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: #fff;
    z-index: 10;
    pointer-events: none;
}

.ff-shop-hero__bg {
    position: absolute;
    inset: 0;
    background-color: #000;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.ff-shop-hero__bg {
    z-index: 0;
}

.ff-shop-hero__smoke {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    isolation: isolate;
    background: #000;
}

.ff-shop-hero__smoke > * {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* WebGL-Pyro-Canvas (Hauptbild) */
.ff-shop-hero__pyro {
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    filter: saturate(1.12) contrast(1.1);
    image-rendering: auto;
}

/* Fallback wenn WebGL nicht verfügbar */
.ff-shop-hero__smoke--fallback {
    background:
        radial-gradient(ellipse 95% 65% at 50% 100%, rgba(216, 80, 50, 0.5) 0%, rgba(180, 53, 38, 0.28) 24%, rgba(80, 20, 14, 0.12) 52%, transparent 80%),
        radial-gradient(ellipse 130% 100% at 50% 110%, #3a0c06 0%, #1d0503 42%, #0a0201 74%, #000000 100%);
}

/* Subtile Film-Körnung — gibt Tiefe und Hochwertigkeit */
.ff-shop-hero__grain {
    z-index: 3;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.55'/></svg>");
    background-size: 200px 200px;
    opacity: 0.05;
    mix-blend-mode: overlay;
    animation: ff-shop-grain-shift 1.6s steps(7) infinite;
    will-change: transform;
}

/* Film-Grain */
.ff-shop-hero__grain {
    z-index: 2;
}

/* Vignette deaktiviert */
.ff-shop-hero__vignette {
    display: none;
}

/* ── Keyframes (alle perfect-loop) ── */
@keyframes ff-shop-atmos-breathe {
    0% {
        opacity: 0.88;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.025);
    }
}

@keyframes ff-shop-glow-center {
    0% {
        opacity: 0.55;
        transform: translate3d(-0.6%, 0.4%, 0) scale(1);
    }

    100% {
        opacity: 0.95;
        transform: translate3d(0.6%, -0.4%, 0) scale(1.05);
    }
}

@keyframes ff-shop-glow-left {
    0% {
        opacity: 0.7;
        transform: translate3d(-2.4%, 1.2%, 0) scale(1);
    }

    100% {
        opacity: 1;
        transform: translate3d(1.8%, -1%, 0) scale(1.07);
    }
}

@keyframes ff-shop-glow-right {
    0% {
        opacity: 1;
        transform: translate3d(2.2%, -1.2%, 0) scale(1.05);
    }

    100% {
        opacity: 0.7;
        transform: translate3d(-1.8%, 1%, 0) scale(1);
    }
}

@keyframes ff-shop-heat-rise {
    0% {
        opacity: 0.62;
        transform: translate3d(-1%, 1.5%, 0);
    }

    100% {
        opacity: 0.88;
        transform: translate3d(1%, -1%, 0);
    }
}

@keyframes ff-shop-grain-shift {
    0% {
        transform: translate3d(0, 0, 0);
    }

    25% {
        transform: translate3d(-2%, 1%, 0);
    }

    50% {
        transform: translate3d(1%, -2%, 0);
    }

    75% {
        transform: translate3d(-1%, -1%, 0);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ff-shop-hero__atmos,
    .ff-shop-hero__glow,
    .ff-shop-hero__heat,
    .ff-shop-hero__grain {
        animation: none;
    }

    .ff-shop-hero__heat {
        filter: blur(20px);
    }

    .ff-shop-hero__smoke-canvas {
        opacity: 0.85;
    }
}

.ff-shop-hero__overlay {
    display: none;
}

.ff-shop-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: center;
    justify-content: center;
    gap: 100px;
    height: 100%;
    max-width: min(var(--ff-layout-max, 1000px), calc(100% - 2 * var(--ff-layout-gutter, 20px)));
    margin: 0 auto;
    padding: 0 max(16px, var(--ff-layout-gutter, 20px));
    box-sizing: border-box;
}

.ff-shop-hero__content {
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ff-shop-hero__issue {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin: 0 0 20px;
}

.ff-shop-hero__issue-no {
    flex: 0 0 auto;
    display: inline-block;
    margin: 0 0 0 -1px;
    padding: 0;
    align-self: flex-start;
    transform: translateY(-6px);
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 500;
    font-style: italic;
    font-size: 40px;
    line-height: 1;
    letter-spacing: 0;
    font-variant: small-caps;
    text-decoration: none;
    color: #fff;
    --ff-issue-no-line-h: 2px;
    --ff-issue-no-line-y: calc(1em - 3px);
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-size: 100% var(--ff-issue-no-line-h);
    background-position: -1px var(--ff-issue-no-line-y);
}

.ff-shop-hero__issue-num {
    flex: 0 0 auto;
    margin: 0;
    display: flex;
    align-items: flex-end;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 500;
    font-style: italic;
    font-size: 55px;
    line-height: 1;
    letter-spacing: 0;
}

.ff-shop-hero__price {
    margin: 0 0 10px;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 40px;
    line-height: 1;
    letter-spacing: 0;
    color: #fff;
}

body.ff-shop-shell .ff-shop-hero .ff-shop-hero__tax {
    margin: 0 0 32px;
    padding: 0;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 25px;
    line-height: 1;
    letter-spacing: 0;
    color: #fff;
}

.ff-shop-hero__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.ff-shop-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 30px;
    padding: 5px 11px;
    border: none;
    border-radius: 21px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 17px;
    line-height: 1;
    letter-spacing: 0.005em;
    text-decoration: none !important;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.ff-shop-hero__btn--view {
    min-width: 73px;
    background: #2b2b2bcc;
    color: #fff !important;
}

.ff-shop-hero__btn--cart {
    min-width: 139px;
    background: #ffffffe5;
    color: #000 !important;
}

.ff-shop-hero__btn:hover,
.ff-shop-hero__btn:focus {
    opacity: 0.88;
    text-decoration: none !important;
}

.ff-shop-hero__media {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ff-shop-hero__cover {
    display: block;
    width: 268px;
    height: 374px;
    max-width: 100%;
    object-fit: cover;
    object-position: center center;
}

@media (max-width: 782px) {
    body.ff-shop-shell.ff-shop-main-page .ff-shop-hero,
    body.ff-shop-shell.ff-shop-neuheiten-page .ff-shop-hero {
        min-height: 0;
    }

    .ff-shop-hero {
        height: auto;
        min-height: 0;
        padding: 32px 0 40px;
    }

    .ff-shop-hero__inner {
        flex-direction: column;
        height: auto;
        gap: 100px;
    }

    .ff-shop-hero__media {
        order: -1;
    }

    .ff-shop-hero__issue-no {
        font-size: clamp(28px, 8vw, 40px);
    }

    .ff-shop-hero__issue-num {
        font-size: clamp(36px, 10vw, 55px);
        width: auto;
        height: auto;
    }

    .ff-shop-hero__price {
        font-size: clamp(28px, 8vw, 40px);
    }

    body.ff-shop-shell .ff-shop-hero .ff-shop-hero__tax {
        font-size: clamp(18px, 5vw, 25px);
        font-weight: 300;
        line-height: 1;
        letter-spacing: 0;
    }
}

/* ── Neuheiten-Grid (3×3, 7 Bilder) ── */
body.ff-shop-shell.ff-shop-main-page #ff-shop-primary.ff-main,
body.ff-shop-shell.ff-shop-neuheiten-page #ff-shop-primary.ff-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.ff-shop-shell.ff-shop-main-page .ff-shop-wrap,
body.ff-shop-shell.ff-shop-neuheiten-page .ff-shop-wrap {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.ff-shop-shell.ff-shop-main-page #main.site-main > article,
body.ff-shop-shell.ff-shop-neuheiten-page #main.site-main > article {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.ff-shop-shell.ff-shop-main-page .ff-shop-neuheiten,
body.ff-shop-shell.ff-shop-neuheiten-page .ff-shop-neuheiten {
    margin-top: 0 !important;
    padding-top: var(--ff-shop-hero-neuheiten-gap, 150px) !important;
}

.ff-shop-neuheiten {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0 48px;
    box-sizing: border-box;
}

.ff-shop-neuheiten__grid {
    display: grid;
    grid-template-columns: repeat(3, 285px);
    grid-template-rows: repeat(3, auto);
    gap: 40px;
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    justify-content: center;
}

.ff-shop-neuheiten__cell {
    width: 285px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ff-shop-neuheiten__media {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

.ff-shop-neuheiten__img {
    flex-shrink: 0;
    box-sizing: border-box;
}

body.ff-shop-shell .ff-shop-neuheiten__title {
    margin: 10px 0 0;
    padding: 0;
    width: 100%;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 19px;
    line-height: 1;
    letter-spacing: 0;
    color: #fff;
}

body.ff-shop-shell .ff-shop-neuheiten__price {
    margin: 6px 0 0;
    padding: 0;
    width: 100%;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 19px;
    line-height: 1;
    letter-spacing: 0;
    color: #fff;
}

/* 1. Reihe Mitte (rechts neben T-Shirt): Heftcover 255×276 */
body.ff-shop-shell .ff-shop-neuheiten__media.ff-shop-neuheiten__media--255,
body.ff-shop-shell .ff-shop-neuheiten__cell--row1-center .ff-shop-neuheiten__media {
    width: 255px !important;
    height: 276px !important;
    max-width: 255px;
    max-height: 276px;
}

body.ff-shop-shell .ff-shop-neuheiten__media.ff-shop-neuheiten__media--255 .ff-shop-neuheiten__img,
body.ff-shop-shell .ff-shop-neuheiten__cell--row1-center .ff-shop-neuheiten__img {
    width: 255px !important;
    height: 276px !important;
    max-width: 255px !important;
    max-height: 276px !important;
    object-fit: contain;
    object-position: center center;
}

@media (max-width: 960px) {
    .ff-shop-neuheiten__grid {
        grid-template-columns: repeat(2, min(285px, calc((100% - 40px) / 2)));
        gap: 24px;
        width: 100%;
    }

    .ff-shop-neuheiten__cell {
        width: 100%;
    }

    .ff-shop-neuheiten__media {
        width: 100%;
        height: auto;
        aspect-ratio: 285 / 276;
    }

    body.ff-shop-shell .ff-shop-neuheiten__media.ff-shop-neuheiten__media--255,
    body.ff-shop-shell .ff-shop-neuheiten__cell--row1-center .ff-shop-neuheiten__media {
        width: min(255px, 100%) !important;
        max-width: 100%;
        height: auto !important;
        aspect-ratio: 255 / 276;
    }

    body.ff-shop-shell .ff-shop-neuheiten__media.ff-shop-neuheiten__media--255 .ff-shop-neuheiten__img,
    body.ff-shop-shell .ff-shop-neuheiten__cell--row1-center .ff-shop-neuheiten__img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: none !important;
        aspect-ratio: 255 / 276;
    }
}

/* ── Letzte EF-Ausgaben (gestaffelter Cover-Stapel) ── */
.ff-shop-ef-ausgaben {
    --ff-ef-section-h: 378px;
    --ff-ef-heading-h: 25px;
    --ff-ef-gap: 26px;
    --ff-ef-stack-h: 322px;
    --ff-ef-cover-w: 225px;
    --ff-ef-cover-h: 322px;
    --ff-ef-count: 12;
    --ff-ef-step-divisor: 11;
    --ff-ef-step: calc((100% - var(--ff-ef-cover-w)) / var(--ff-ef-step-divisor));
    --ff-ef-peek: 30px;
    --ff-ef-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ff-ef-duration: 0.45s;

    width: 100%;
    max-width: min(var(--ff-layout-max, 1000px), calc(100% - 2 * var(--ff-layout-gutter, 20px)));
    min-height: var(--ff-ef-section-h);
    margin: 96px auto 0;
    padding: 0 max(16px, var(--ff-layout-gutter, 20px)) 48px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: var(--ff-ef-gap);
    position: relative;
}

body.ff-shop-shell .ff-shop-ef-ausgaben__heading {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 25px;
    line-height: 1;
    letter-spacing: 0;
    color: #fff;
    text-align: left;
}

.ff-shop-ef-ausgaben__stack {
    position: relative;
    z-index: 1;
    isolation: isolate;
    flex: 0 0 auto;
    width: 100%;
    height: var(--ff-ef-stack-h);
    margin: 0;
    overflow: visible;
    cursor: default;
    touch-action: pan-y;
}

.ff-shop-ef-ausgaben__cell {
    --ff-ef-index: 0;
    position: absolute;
    top: 0;
    left: calc(var(--ff-ef-index) * var(--ff-ef-step));
    width: var(--ff-ef-cover-w);
    height: var(--ff-ef-stack-h);
    pointer-events: none;
}

.ff-shop-ef-ausgaben__cell.is-active {
    z-index: 100 !important;
}

.ff-shop-ef-ausgaben__item {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    pointer-events: none;
}

.ff-shop-ef-ausgaben__cover {
    display: block;
    flex: 0 0 auto;
    width: var(--ff-ef-cover-w);
    height: var(--ff-ef-cover-h);
    max-width: none;
    pointer-events: none;
    object-fit: contain;
    object-position: center bottom;
    transform: translate3d(0, 0, 0);
    transform-origin: left bottom;
    backface-visibility: hidden;
    transition:
        transform var(--ff-ef-duration) var(--ff-ef-ease),
        filter var(--ff-ef-duration) var(--ff-ef-ease);
}

.ff-shop-ef-ausgaben__cell.is-active .ff-shop-ef-ausgaben__cover {
    transform: translate3d(var(--ff-ef-peek), 0, 0);
    filter: drop-shadow(6px 10px 22px rgba(0, 0, 0, 0.42));
}

@media (prefers-reduced-motion: reduce) {
    .ff-shop-ef-ausgaben__cover {
        transition: none;
    }

    .ff-shop-ef-ausgaben__cell.is-active .ff-shop-ef-ausgaben__cover {
        transform: none;
        filter: none;
    }
}

@media (max-width: 1040px) {
    .ff-shop-ef-ausgaben {
        height: auto;
        min-height: var(--ff-ef-section-h);
    }

    .ff-shop-ef-ausgaben__stack {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
}

/* Shop-Start: Editor-/Mediathek-Reste (Werb-Platzhalter aus Shop-Seiten-Inhalt) */
body.ff-shop-main-page .entry-content,
body.ff-shop-main-page .page-description,
body.ff-shop-main-page .term-description,
body.ff-shop-main-page figure.wp-block-image,
body.ff-shop-main-page img[src*="928x90"] {
    display: none !important;
}

/* ── 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 {
    --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 {
    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 {
    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-ef-hefte-product-page #ff-shop-primary.ff-main,
body.ff-shop-shell.ff-ad-bg.ff-shop-45-hefte-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-ef-hefte-product-page #ff-shop-primary.ff-main,
body.ff-shop-shell:not(.ff-ad-bg).ff-shop-45-hefte-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 {
    width: 100% !important;
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: var(--ff-shop-header-gap, 100px) 0 48px !important;
    box-sizing: border-box;
}

.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%;
    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;
    }
}

/* ── EF-Hefte Produktdetail (Prototyp) ── */
body.ff-shop-shell.ff-shop-ef-hefte-product-page #main.site-main,
body.ff-shop-shell.ff-shop-ef-hefte-product-page #ff-shop-primary.ff-main {
    width: min(100%, 1000px) !important;
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.ff-shop-shell.ff-shop-ef-hefte-page.ff-shop-ef-hefte-product-page .ff-shop-wrap {
    padding-top: var(--ff-shop-header-gap, 100px) !important;
}

.ff-shop-ef-product {
    margin-top: 0;
    margin-bottom: 120px;
}

.ff-shop-ef-product__inner {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 566px minmax(0, 1fr);
    column-gap: 32px;
    align-items: start;
}

.ff-shop-ef-product__content {
    min-width: 0;
    color: #fff;
}

.ff-shop-ef-product__head {
    margin: 0 0 24px;
    padding: 0;
}

.ff-shop-ef-product__head .ff-shop-hero__issue {
    margin: 0 0 20px;
}

body.ff-shop-shell.ff-shop-ef-hefte-product-page .ff-shop-ef-product__head .ff-shop-hero__issue-num {
    font-family: 'Barlow Semi Condensed', sans-serif;
}

.ff-shop-ef-product__price {
    margin: 0 0 6px;
    padding: 0;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    font-size: 40px;
    line-height: 1;
    letter-spacing: 0;
    color: #fff;
}

.ff-shop-ef-product__tax {
    margin: 0;
    padding: 0;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 300;
    font-size: 19px;
    line-height: 1;
    letter-spacing: 0;
    color: #fff;
}

.ff-shop-ef-product__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin: 0 0 32px;
}

.ff-shop-ef-product__qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 57px;
    height: 30px;
    padding: 5px 5px;
    box-sizing: border-box;
    border: 0;
    border-radius: 21px;
    background: #fff;
    flex-shrink: 0;
}

.ff-shop-ef-product__qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    line-height: 0;
}

.ff-shop-ef-product__qty-btn svg {
    display: block;
    transform: translateY(2px);
}

.ff-shop-ef-product__qty-value {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    font-size: 17px;
    line-height: 1;
    letter-spacing: 0.005em;
    color: #000;
    min-width: 8px;
    text-align: center;
}

.ff-shop-ef-product__cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 139px;
    height: 30px;
    margin: 0;
    padding: 5px 11px;
    box-sizing: border-box;
    border: 0;
    border-radius: 21px;
    background: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    font-size: 17px;
    line-height: 1;
    letter-spacing: 0.005em;
    color: #000;
    text-transform: uppercase;
    cursor: pointer;
    transition: none;
}

.ff-shop-ef-product__wish-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    line-height: 0;
}

body.ff-shop-shell .ff-shop-ef-product__cart-btn:hover,
body.ff-shop-shell .ff-shop-ef-product__cart-btn:focus:not(:focus-visible),
body.ff-shop-shell .ff-shop-ef-product__cart-btn:active {
    background: #fff !important;
    color: #000 !important;
    opacity: 1;
    transform: none;
    box-shadow: none !important;
    outline: none !important;
}

body.ff-shop-shell .ff-shop-ef-product__wish-btn:hover,
body.ff-shop-shell .ff-shop-ef-product__wish-btn:focus:not(:focus-visible),
body.ff-shop-shell .ff-shop-ef-product__wish-btn:active {
    background: transparent !important;
    color: #fff !important;
    opacity: 1;
    transform: none;
    box-shadow: none !important;
    outline: none !important;
    border: 0 !important;
}

body.ff-shop-shell .ff-shop-ef-product__qty-btn:hover,
body.ff-shop-shell .ff-shop-ef-product__qty-btn:focus:not(:focus-visible),
body.ff-shop-shell .ff-shop-ef-product__qty-btn:active {
    background: transparent !important;
    color: inherit !important;
    opacity: 1;
    transform: none;
    box-shadow: none !important;
    outline: none !important;
    border: 0 !important;
}

.ff-shop-ef-product__body {
    margin: 0 0 32px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 300;
    font-size: 21px;
    line-height: 1.15;
    letter-spacing: 0;
    color: #fff;
}

.ff-shop-ef-product__body p {
    margin: 0 0 21px;
    padding: 0;
}

.ff-shop-ef-product__body p:last-child {
    margin-bottom: 0;
}

.ff-shop-ef-product__topics-heading {
    margin: 0 0 4px;
    padding: 0;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    font-size: 21px;
    line-height: 1.15;
    letter-spacing: 0;
}

.ff-shop-ef-product__topics {
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: 1.15;
}

.ff-shop-ef-product__topics li {
    margin: 0 0 2px;
    padding: 0;
    position: relative;
    padding-left: 0.55em;
}

.ff-shop-ef-product__topics li:last-child {
    margin-bottom: 0;
}

.ff-shop-ef-product__topics li::before {
    content: '-';
    position: absolute;
    left: 0;
}

.ff-shop-ef-product__content > .ff-shop-ef-product__actions:last-child {
    margin-bottom: 0;
}

/* Links: Cover + Galerie; Abstand nur zwischen echten Bildkanten (keine Fix-Höhen mit contain-Lücken) */
.ff-shop-ef-product__media {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 566px;
    max-width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.ff-shop-ef-product__figure {
    margin: 0;
    padding: 0;
    width: 566px;
    max-width: 100%;
    height: auto;
    flex-shrink: 0;
    display: block;
    line-height: 0;
}

.ff-shop-ef-product__img {
    display: block;
    width: 566px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    vertical-align: top;
}

.ff-shop-ef-product__gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
    max-width: 566px;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.ff-shop-ef-product__gallery-img {
    display: block;
    width: 566px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    padding: 0;
    vertical-align: top;
}

/* Galerie: einmal revealen, danach sichtbar lassen */
.ff-shop-ef-product__reveal {
    width: 100%;
    max-width: 566px;
    margin: 0 auto;
}

.ff-shop-ef-product__reveal .ff-shop-ef-product__gallery-img {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition:
        opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.ff-shop-ef-product__reveal.is-revealed .ff-shop-ef-product__gallery-img {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (min-width: 1025px) {
    .ff-shop-ef-product--sticky-info .ff-shop-ef-product__inner {
        align-items: stretch;
    }

    .ff-shop-ef-product--sticky-info .ff-shop-ef-product__content {
        position: sticky;
        top: var(--ff-ef-product-sticky-top, calc(var(--ff-header-stack-h, 170px) + 24px));
        align-self: start;
        z-index: 3;
    }

    body.ff-shop-shell.ff-shop-ef-hefte-product-page .ff-content-wrap,
    body.ff-shop-shell.ff-shop-ef-hefte-product-page #main.site-main,
    body.ff-shop-shell.ff-shop-ef-hefte-product-page #ff-shop-primary.ff-main,
    body.ff-shop-shell.ff-shop-ef-hefte-product-page .ff-shop-ef-product {
        overflow: visible !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ff-shop-ef-product__reveal .ff-shop-ef-product__gallery-img {
        transition: none;
        transform: none;
    }

    .ff-shop-ef-product__reveal.is-revealed .ff-shop-ef-product__gallery-img,
    .ff-shop-ef-product__reveal .ff-shop-ef-product__gallery-img {
        opacity: 1;
    }
}

@media (max-width: 640px) {
    .ff-shop-ef-product__inner {
        grid-template-columns: 1fr;
        row-gap: 32px;
    }

    .ff-shop-ef-product__media,
    .ff-shop-ef-product__figure,
    .ff-shop-ef-product__gallery,
    .ff-shop-ef-product__reveal,
    .ff-shop-ef-product__img,
    .ff-shop-ef-product__gallery-img {
        width: 100%;
    }

    .ff-shop-ef-product__img,
    .ff-shop-ef-product__gallery-img {
        width: 100%;
        height: auto;
    }
}

/* ── EF-Produktdetail: Weitere Produkte (1000px, Karussell) ── */
.ff-shop-ef-more {
    --ff-more-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ff-more-duration: 0.5s;
    --ff-more-fade: 40px;
    --ff-more-col: 168px;
    --ff-more-pad: 30px;
    --ff-more-slot: calc(var(--ff-more-col) + (2 * var(--ff-more-pad)));
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 64px;
    padding: 0 max(16px, var(--ff-layout-gutter, 20px));
    box-sizing: border-box;
    color: #fff;
}

/* EF-Hefte-Kategorie: Titel mittig, Streifen wie Produktdetail */
.ff-shop-ef-more--interesse {
    margin-top: 80px;
}

.ff-shop-ef-more--interesse .ff-shop-ef-more__header {
    justify-content: center;
    position: relative;
    padding-left: 72px;
    padding-right: 72px;
    box-sizing: border-box;
}

.ff-shop-ef-more--interesse .ff-shop-ef-more__heading {
    flex: 1 1 auto;
    text-align: center;
}

.ff-shop-ef-more--interesse .ff-shop-ef-more__arrows {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* 1000px-Block mittig wie Produktdetail, Überschrift links */
.ff-shop-ef-more__bundle {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.ff-shop-ef-more__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 36px;
    padding: 0;
}

.ff-shop-ef-more__heading {
    margin: 0;
    padding: 0;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 25px;
    line-height: 1;
    letter-spacing: 0;
    text-align: left;
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 0.55s var(--ff-more-ease),
        transform 0.55s var(--ff-more-ease);
}

.ff-shop-ef-more.is-inview .ff-shop-ef-more__heading {
    opacity: 1;
    transform: none;
}

.ff-shop-ef-more__arrows {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ff-shop-ef-more__arrow {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 0;
    opacity: 0;
    transition: opacity 0.55s var(--ff-more-ease);
}

.ff-shop-ef-more.is-inview .ff-shop-ef-more__arrow {
    opacity: 1;
}

.ff-shop-ef-more.is-inview .ff-shop-ef-more__arrow--next {
    transition-delay: 0.06s;
}

.ff-shop-ef-more__arrow::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    box-sizing: border-box;
    pointer-events: none;
    transition:
        transform 0.22s ease,
        border-color 0.22s ease;
}

.ff-shop-ef-more__arrow svg {
    position: relative;
    z-index: 1;
    display: block;
    width: 10px;
    height: 10px;
    transform: translate3d(0, 0, 0);
    transform-origin: 50% 50%;
    transform-box: fill-box;
    transition: transform 0.22s ease;
}

.ff-shop-ef-more__arrow--prev svg {
    transform: translate3d(-0.5px, 0, 0);
}

.ff-shop-ef-more__arrow--next svg {
    transform: translate3d(0.5px, 0, 0);
}

.ff-shop-ef-more__arrow:hover::before {
    transform: scale(1.08);
    border-color: #fff;
}

.ff-shop-ef-more__arrow--prev:hover svg {
    transform: translate3d(-0.5px, 0, 0) scale(1.08);
}

.ff-shop-ef-more__arrow--next:hover svg {
    transform: translate3d(0.5px, 0, 0) scale(1.08);
}

.ff-shop-ef-more__arrow:active::before {
    transform: scale(1.03);
}

.ff-shop-ef-more__arrow--prev:active svg {
    transform: translate3d(-0.5px, 0, 0) scale(1.03);
}

.ff-shop-ef-more__arrow--next:active svg {
    transform: translate3d(0.5px, 0, 0) scale(1.03);
}

.ff-shop-ef-more__arrow:focus {
    outline: none;
}

.ff-shop-ef-more__arrow:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.ff-shop-ef-more.is-inview .ff-shop-ef-more__arrow.is-disabled {
    opacity: 0.28;
}

.ff-shop-ef-more__arrow.is-disabled {
    cursor: default;
    pointer-events: none;
}

.ff-shop-ef-more__arrow.is-disabled::before {
    transform: none;
    border-color: rgba(255, 255, 255, 0.28);
}

.ff-shop-ef-more__arrow--prev.is-disabled svg {
    transform: translate3d(-0.5px, 0, 0);
}

.ff-shop-ef-more__arrow--next.is-disabled svg {
    transform: translate3d(0.5px, 0, 0);
}

.ff-shop-ef-more__arrow.is-disabled:focus-visible {
    outline: none;
}

.ff-shop-ef-more__viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
}

.ff-shop-ef-more__viewport::before,
.ff-shop-ef-more__viewport::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: var(--ff-more-fade);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.ff-shop-ef-more__viewport::before {
    left: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, transparent 100%);
}

.ff-shop-ef-more__viewport::after {
    right: 0;
    background: linear-gradient(270deg, rgba(0, 0, 0, 0.92) 0%, transparent 100%);
}

.ff-shop-ef-more__viewport.is-at-start::before {
    opacity: 0;
}

.ff-shop-ef-more__viewport.is-at-end::after {
    opacity: 0;
}

.ff-shop-ef-more__viewport:not(.is-at-start)::before,
.ff-shop-ef-more__viewport:not(.is-at-end)::after {
    opacity: 1;
}

.ff-shop-ef-more__track {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: max-content;
    margin: 0;
    will-change: transform;
    transition: transform var(--ff-more-duration) var(--ff-more-ease);
}

.ff-shop-ef-more__track.is-instant {
    transition: none;
}

@media (prefers-reduced-motion: reduce) {
    .ff-shop-ef-more__heading,
    .ff-shop-ef-more__arrow,
    .ff-shop-ef-more__item {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .ff-shop-ef-more__track,
    .ff-shop-ef-more__img,
    .ff-shop-ef-more__fan-cell,
    .ff-shop-ef-more__btn {
        transition: none;
    }
}

.ff-shop-ef-more__item {
    position: relative;
    flex: 0 0 var(--ff-more-slot);
    width: var(--ff-more-slot);
    margin: 0;
    padding: 0 var(--ff-more-pad);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.55s var(--ff-more-ease);
}

.ff-shop-ef-more__item::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: 78%;
    max-height: 280px;
    transform: translateY(-50%);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.14) 12%,
        rgba(255, 255, 255, 0.42) 50%,
        rgba(255, 255, 255, 0.14) 88%,
        rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.ff-shop-ef-more__item:hover::after {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 12%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0.2) 88%,
        rgba(255, 255, 255, 0) 100%
    );
}

.ff-shop-ef-more__item:last-child::after {
    content: none;
}

.ff-shop-ef-more.is-inview .ff-shop-ef-more__item {
    opacity: 1;
}

.ff-shop-ef-more.is-inview .ff-shop-ef-more__item:nth-child(1) { transition-delay: 0.05s; }
.ff-shop-ef-more.is-inview .ff-shop-ef-more__item:nth-child(2) { transition-delay: 0.1s; }
.ff-shop-ef-more.is-inview .ff-shop-ef-more__item:nth-child(3) { transition-delay: 0.15s; }
.ff-shop-ef-more.is-inview .ff-shop-ef-more__item:nth-child(4) { transition-delay: 0.2s; }
.ff-shop-ef-more.is-inview .ff-shop-ef-more__item:nth-child(n+5) { transition-delay: 0.24s; }

.ff-shop-ef-more__item--stack {
    overflow: hidden;
}

.ff-shop-ef-more__head {
    width: 100%;
    max-width: var(--ff-more-col);
    min-height: 40px;
    margin: 0 0 12px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

body.ff-shop-shell .ff-shop-ef-more__title {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    color: #fff;
}

.ff-shop-ef-more__title-line {
    display: block;
    height: 20px;
    line-height: 20px;
    overflow: visible;
    white-space: nowrap;
}

.ff-shop-ef-more__subtitle {
    margin: 0;
    padding: 0;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 20px;
    text-align: center;
    color: #fff;
}

.ff-shop-ef-more__media {
    width: 100%;
    max-width: var(--ff-more-col);
    height: 200px;
    margin: 0 0 14px;
    flex: 0 0 200px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    line-height: 0;
}

.ff-shop-ef-more__img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    margin: 0 auto;
    transform: translate3d(0, 0, 0);
    transition: transform 0.4s var(--ff-more-ease), filter 0.4s ease;
}

.ff-shop-ef-more__item:hover .ff-shop-ef-more__img {
    transform: translate3d(0, -5px, 0);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
}

/* Stapel (5 Ausgaben / Triple): im Kasten halten, gleiche Abstände wie Einzelcover */
.ff-shop-ef-more__item--stack .ff-shop-ef-more__media {
    width: 100%;
    max-width: var(--ff-more-col);
    height: 200px;
    flex: 0 0 200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin: 0 auto 14px;
}

.ff-shop-ef-more__fan {
    --ff-more-cover-w: 162px;
    --ff-more-cover-h: 168px;
    --ff-more-fan-step-divisor: 4;
    --ff-more-fan-step: 12px;
    position: relative;
    isolation: isolate;
    flex: 0 0 auto;
    width: calc(var(--ff-more-cover-w) + (var(--ff-more-fan-step) * var(--ff-more-fan-step-divisor)));
    height: var(--ff-more-cover-h);
    margin: 0 auto;
    transition: width 0.4s var(--ff-more-ease);
}

.ff-shop-ef-more__item--stack:hover .ff-shop-ef-more__fan {
    --ff-more-fan-step: 14px;
}

.ff-shop-ef-more__fan-cell {
    --ff-more-fan-index: 0;
    position: absolute;
    top: auto;
    bottom: 0;
    left: calc(var(--ff-more-fan-index) * var(--ff-more-fan-step));
    width: var(--ff-more-cover-w);
    height: var(--ff-more-cover-h);
    pointer-events: none;
    transition: left 0.4s var(--ff-more-ease);
}

.ff-shop-ef-more__item--stack:hover .ff-shop-ef-more__fan-cell:last-child .ff-shop-ef-more__fan-img {
    transform: translate3d(0, -5px, 0);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
}

.ff-shop-ef-more__fan-img {
    display: block;
    width: var(--ff-more-cover-w);
    height: var(--ff-more-cover-h);
    max-width: none;
    object-fit: contain;
    object-position: center bottom;
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: transform 0.4s var(--ff-more-ease), filter 0.4s ease;
}

.ff-shop-ef-more__fan-cell:not(:last-child) .ff-shop-ef-more__fan-img {
    filter: drop-shadow(2px 0 8px rgba(0, 0, 0, 0.4));
}

.ff-shop-ef-more__fan-cell:last-child .ff-shop-ef-more__fan-img {
    filter: drop-shadow(4px 4px 14px rgba(0, 0, 0, 0.35));
}

.ff-shop-ef-more__foot {
    width: 100%;
    margin-top: auto;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ff-shop-ef-more__price {
    margin: 0 0 14px;
    padding: 0;
    width: 100%;
    max-width: var(--ff-more-col);
    min-height: 24px;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    color: #fff;
}

.ff-shop-ef-more__actions {
    max-width: var(--ff-more-col);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.ff-shop-ef-more__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 5px 11px;
    box-sizing: border-box;
    border: 0;
    border-radius: 21px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    font-size: 17px;
    line-height: 1;
    letter-spacing: 0.005em;
    text-transform: none;
    cursor: pointer;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s var(--ff-more-ease),
        box-shadow 0.25s ease;
}

.ff-shop-ef-more__btn--view {
    width: 73px;
    height: 30px;
    background: #4d4d4d;
    color: #fff;
}

.ff-shop-ef-more__btn--cart {
    width: 165px;
    height: 30px;
    background: #fff;
    color: #000;
    text-transform: uppercase;
}

body.ff-shop-shell .ff-shop-ef-more__btn--view:hover,
body.ff-shop-shell .ff-shop-ef-more__btn--view:focus:not(:focus-visible) {
    background: #666 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

body.ff-shop-shell .ff-shop-ef-more__btn--cart:hover,
body.ff-shop-shell .ff-shop-ef-more__btn--cart:focus:not(:focus-visible) {
    background: #f2f2f2 !important;
    color: #000 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.12) !important;
}

@media (max-width: 1040px) {
    .ff-shop-ef-more {
        max-width: min(1000px, calc(100% - 2 * var(--ff-layout-gutter, 20px)));
    }
}

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;
}

@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-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-ef-hefte-page .ff-shop-wrap,
    body.ff-shop-shell.ff-shop-45-hefte-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;
    }
}

.ff-shop-archive,
.ff-shop-single {
    max-width: 100%;
    padding: 0;
    margin: 0 auto;
    background: #000;
    font-family: 'Barlow Semi Condensed', sans-serif;
}

.ff-shop-wrap {
    max-width: min(var(--ff-layout-max), calc(100% - 2 * var(--ff-layout-gutter)));
    width: 100%;
    margin: 0 auto;
    padding: 24px 0 48px;
    box-sizing: border-box;
}

.ff-shop-archive-header {
    margin-bottom: 28px;
}

.ff-shop-archive-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 10px;
    color: #fff;
}

.ff-shop-archive .woocommerce-result-count,
.ff-shop-archive .woocommerce-ordering {
    margin-bottom: 20px;
    color: #fff;
}

.ff-shop-archive ul.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 3vw, 32px);
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    clear: both;
}

.ff-shop-archive ul.products::before,
.ff-shop-archive ul.products::after {
    display: none;
}

.ff-shop-archive ul.products li.product {
    margin: 0;
    width: 100%;
    max-width: none;
    float: none;
}

@media (max-width: 782px) {
    .ff-shop-wrap {
        padding-left: max(12px, env(safe-area-inset-left, 0));
        padding-right: max(12px, env(safe-area-inset-right, 0));
    }

    body.ff-shop-main-page .ff-shop-wrap {
        padding-left: max(12px, env(safe-area-inset-left, 0));
        padding-right: max(12px, env(safe-area-inset-right, 0));
    }

    .ff-shop-archive ul.products {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 783px) and (max-width: 1024px) {
    .ff-shop-archive ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

/*
 * Abstand unter fixem Header
 * Shop-Hauptseite (Main + Neuheiten kommen IMMER zusammen, s. template-hooks.php):
 *   Hero liegt HINTER dem Header (kein Wrap-Padding), Header wird frosted glass.
 * EF-Hefte/Detail: Header-Höhe + 100px am Wrap.
 */
html body.ff-shop-shell.ff-shop-main-page .ff-content-wrap,
html body.ff-shop-shell.ff-shop-neuheiten-page .ff-content-wrap {
    padding-top: 0 !important;
    overflow: visible !important;
}

/* Hero: min. 800px (Pyro-Höhe), Abstand zum Grid über .ff-shop-neuheiten padding-top */
body.ff-shop-shell.ff-shop-main-page .ff-shop-hero,
body.ff-shop-shell.ff-shop-neuheiten-page .ff-shop-hero {
    height: auto;
    min-height: var(--ff-shop-hero-min-height, 800px);
    overflow: visible;
    padding-bottom: 0;
}

/* Hero-Inhalt: festes Header-Padding + vertikal zentriert (nicht --ff-header-stack-h — ändert sich beim Compact-Scroll) */
body.ff-shop-shell.ff-shop-main-page .ff-shop-hero__inner,
body.ff-shop-shell.ff-shop-neuheiten-page .ff-shop-hero__inner {
    align-content: center !important;
    align-items: center;
    min-height: var(--ff-shop-hero-min-height, 800px);
    padding-top: var(--ff-shop-hero-header-base, 200px) !important;
    padding-bottom: 0;
    box-sizing: border-box;
}

/* Header: schwarz + leicht transparent + Blur (auch im Compact-Modus konsistent) */
html body.ff-shop-shell.ff-shop-main-page .ff-header-stack,
html body.ff-shop-shell.ff-shop-neuheiten-page .ff-header-stack,
html body.ff-shop-shell.ff-shop-main-page .ff-header-stack.ff-header--compact,
html body.ff-shop-shell.ff-shop-neuheiten-page .ff-header-stack.ff-header--compact,
html body.ff-shop-shell.ff-shop-main-page .ff-header-stack.ff-header--compact.ff-header--compact-show-nav,
html body.ff-shop-shell.ff-shop-neuheiten-page .ff-header-stack.ff-header--compact.ff-header--compact-show-nav {
    background: rgba(0, 0, 0, 0.32) !important;
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    backdrop-filter: blur(12px) saturate(1.4);
    box-shadow: none !important;
    border-bottom: none !important;
}

/* Innere Layer transparent — Blur/BG nur auf .ff-header-stack, nicht doppelt */
html body.ff-shop-shell.ff-shop-main-page .ff-header,
html body.ff-shop-shell.ff-shop-neuheiten-page .ff-header,
html body.ff-shop-shell.ff-shop-main-page .ff-header-inner,
html body.ff-shop-shell.ff-shop-neuheiten-page .ff-header-inner,
html body.ff-shop-shell.ff-shop-main-page .ff-header-left,
html body.ff-shop-shell.ff-shop-neuheiten-page .ff-header-left,
html body.ff-shop-shell.ff-shop-main-page .ff-header-center,
html body.ff-shop-shell.ff-shop-neuheiten-page .ff-header-center,
html body.ff-shop-shell.ff-shop-main-page .ff-header-right,
html body.ff-shop-shell.ff-shop-neuheiten-page .ff-header-right,
html body.ff-shop-shell.ff-shop-main-page .ff-header-stack.ff-header--compact .ff-header,
html body.ff-shop-shell.ff-shop-neuheiten-page .ff-header-stack.ff-header--compact .ff-header,
html body.ff-shop-shell.ff-shop-main-page .ff-header-stack.ff-header--compact .ff-header-inner,
html body.ff-shop-shell.ff-shop-neuheiten-page .ff-header-stack.ff-header--compact .ff-header-inner,
html body.ff-shop-shell.ff-shop-main-page nav.ff-main-nav,
html body.ff-shop-shell.ff-shop-main-page nav#ff-main-nav,
html body.ff-shop-shell.ff-shop-neuheiten-page nav.ff-main-nav,
html body.ff-shop-shell.ff-shop-neuheiten-page nav#ff-main-nav,
html body.ff-shop-shell.ff-shop-main-page .ff-header-stack.ff-header--compact nav.ff-main-nav,
html body.ff-shop-shell.ff-shop-main-page .ff-header-stack.ff-header--compact nav#ff-main-nav,
html body.ff-shop-shell.ff-shop-neuheiten-page .ff-header-stack.ff-header--compact nav.ff-main-nav,
html body.ff-shop-shell.ff-shop-neuheiten-page .ff-header-stack.ff-header--compact nav#ff-main-nav,
html body.ff-shop-shell.ff-shop-main-page .ff-header-stack.ff-header--compact.ff-header--compact-show-nav nav.ff-main-nav,
html body.ff-shop-shell.ff-shop-main-page .ff-header-stack.ff-header--compact.ff-header--compact-show-nav nav#ff-main-nav,
html body.ff-shop-shell.ff-shop-neuheiten-page .ff-header-stack.ff-header--compact.ff-header--compact-show-nav nav.ff-main-nav,
html body.ff-shop-shell.ff-shop-neuheiten-page .ff-header-stack.ff-header--compact.ff-header--compact-show-nav nav#ff-main-nav {
    background: transparent !important;
    border-bottom: none !important;
}

/*
 * EF-Hefte: kein padding-top am Wrap (sonst schwarzer BG im padding unter dem fixen Header).
 * Abstand nur per margin-top am Main-Block — beginnt unterhalb des Headers.
 */
/* EF-Hefte: Wrap ohne padding-top; Abstand nur am #ff-shop-primary */
body.ff-shop-shell.ff-shop-ef-hefte-page .ff-content-wrap,
body.ff-shop-shell.ff-shop-45-hefte-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 {
    background: #000 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border-bottom: none !important;
}

@media (max-width: 1024px) {
    body.ff-shop-shell {
        --ff-shop-hero-header-base: 120px;
    }

    body.ff-shop-shell.ff-shop-main-page .ff-shop-hero__inner,
    body.ff-shop-shell.ff-shop-neuheiten-page .ff-shop-hero__inner {
        min-height: 0;
        padding-top: var(--ff-shop-hero-header-base, 120px) !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 {
        margin-top: var(--ff-header-stack-h, 120px) !important;
    }
}
