﻿/* Shop – EF-Hefte Produktdetail */
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-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-product-page #ff-shop-primary.ff-main {
    background-color: transparent !important;
}

body.ff-shop-shell:not(.ff-ad-bg).ff-shop-ef-hefte-product-page #ff-shop-primary.ff-main {
    background-color: #000 !important;
}

body.ff-shop-shell.ff-shop-ef-hefte-product-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-product-page .ff-shop-wrap {
        padding-top: var(--ff-shop-header-gap, 100px) !important;
    }
}

html body.ff-shop-shell.ff-shop-ef-hefte-product-page .ff-header-stack,
html body.ff-shop-shell.ff-shop-ef-hefte-product-page .ff-header-stack.ff-header--compact,
html body.ff-shop-shell.ff-shop-ef-hefte-product-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;
}

body.ff-shop-shell.ff-shop-ef-hefte-product-page .ff-content-wrap {
    padding-top: 0 !important;
}

/* Produktdetail-Inhalt */
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;
}

.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: minmax(0, 596px) minmax(0, 1fr);
    column-gap: 32px;
    align-items: start;
}

.ff-shop-ef-product__media-col {
    position: relative;
    min-width: 0;
    padding-left: 30px;
}

.ff-shop-ef-product__dots-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 14px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.ff-shop-ef-product__dots {
    position: sticky;
    top: var(--ff-ef-product-sticky-top, calc(var(--ff-header-stack-h, 170px) + 24px));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
    width: 14px;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.ff-shop-ef-product__dot {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-sizing: border-box;
    border: 1px solid #fff;
    background: transparent;
    flex: none;
    opacity: 1;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.ff-shop-ef-product__dot.is-active {
    background: #fff;
    border-color: #fff;
}

.ff-shop-ef-product__content {
    min-width: 0;
    color: #fff;
}

.ff-shop-ef-product__content-pin {
    flex: none;
    overflow: visible;
}

.ff-shop-ef-product__content-inner {
    width: 100%;
    backface-visibility: hidden;
}

.ff-shop-ef-product__offscreen {
    display: none;
}

.ff-shop-ef-product__actions--bottom {
    overflow: hidden;
    max-height: 0;
    margin-bottom: 0 !important;
    opacity: 0;
    transform: translate3d(0, 10px, 0);
    transition:
        max-height 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.ff-shop-ef-product__actions--bottom.is-expanded {
    max-height: 120px;
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.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--bottom.is-expanded {
    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;
    flex: 1;
    min-width: 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);
}

/* GSAP-Galerie: kein CSS-Transition-Konflikt */
.ff-shop-ef-product--gsap-gallery .ff-shop-ef-product__reveal .ff-shop-ef-product__gallery-img {
    transition: none;
}

@media (min-width: 1025px) {
    .ff-shop-ef-product--sticky-info .ff-shop-ef-product__inner {
        align-items: start;
    }

    .ff-shop-ef-product--sticky-info .ff-shop-ef-product__dots {
        padding-top: 0;
    }

    .ff-shop-ef-product--sticky-info .ff-shop-ef-product__content {
        display: flex;
        flex-direction: column;
        align-self: start;
        min-height: 0;
    }

    .ff-shop-ef-product--sticky-info .ff-shop-ef-product__content-pin {
        position: sticky;
        top: var(--ff-ef-product-sticky-top, calc(var(--ff-header-stack-h, 170px) + 24px));
        z-index: 3;
        overflow: visible;
    }

    .ff-shop-ef-product--sticky-info .ff-shop-ef-product__offscreen {
        display: block;
        height: 0;
        pointer-events: none;
    }

    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,
    body.ff-shop-shell.ff-shop-45-hefte-product-page .ff-content-wrap,
    body.ff-shop-shell.ff-shop-45-hefte-product-page #main.site-main,
    body.ff-shop-shell.ff-shop-45-hefte-product-page #ff-shop-primary.ff-main,
    body.ff-shop-shell.ff-shop-45-hefte-product-page .ff-shop-ef-product,
    body.ff-shop-shell.ff-shop-pyro-product-page .ff-content-wrap,
    body.ff-shop-shell.ff-shop-pyro-product-page #main.site-main,
    body.ff-shop-shell.ff-shop-pyro-product-page #ff-shop-primary.ff-main,
    body.ff-shop-shell.ff-shop-pyro-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;
    }

    .ff-shop-ef-product__actions--bottom {
        max-height: none;
        opacity: 1;
        transform: none;
    }

    .ff-shop-ef-product--sticky-info .ff-shop-ef-product__content-inner {
        transform: none !important;
        will-change: auto;
    }
}

@media (max-width: 1024px) {
    .ff-shop-ef-product__inner {
        grid-template-columns: 1fr;
    }

    .ff-shop-ef-product__media-col {
        padding-left: 0;
    }

    .ff-shop-ef-product__dots-wrap {
        display: none;
    }

    .ff-shop-ef-product__content {
        display: block;
    }

    .ff-shop-ef-product__content-pin {
        position: static;
    }

    .ff-shop-ef-product__actions--bottom {
        max-height: none;
        opacity: 1;
        transform: none;
    }

    .ff-shop-ef-product--sticky-info .ff-shop-ef-product__content-inner {
        transform: none !important;
        will-change: auto;
    }
}

@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;
    }
}

/* Produktdetail: Mobile */
@media (max-width: 1024px) {
    body.ff-shop-shell.ff-shop-ef-hefte-product-page .ff-shop-wrap,
    body.ff-shop-shell.ff-shop-45-hefte-product-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-product-page #ff-shop-primary.ff-main,
    body.ff-shop-shell.ff-shop-45-hefte-product-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;
    }

    .ff-shop-ef-product__inner {
        box-sizing: border-box;
    }

    .ff-shop-ef-product__media-col {
        padding-left: 0;
    }
}
