:root {
    --sm-bf-page-gutter: 16px;
    --sm-bf-grid-row-gap: 28px;
    --sm-bf-grid-column-gap: 12px;
}

@media (min-width: 768px) {
    :root {
        --sm-bf-page-gutter: 40px;
        --sm-bf-grid-row-gap: 40px;
        --sm-bf-grid-column-gap: 24px;
    }
}

@font-face {
    font-family: "Sachsenmoped Black Weekend";
    src: url("bai-jamjuree-v11-latin-regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Sachsenmoped Black Weekend";
    src: url("bai-jamjuree-v11-latin-700.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

.sm-bf-banner,
.sm-bf-teasers,
.sm-bf-card,
.sm-bf-landing,
.sm-bf-product-pricing {
    --bf-black: #080a07;
    --bf-paper: #f9faf4;
    --bf-green: #adff19;
    --bf-forest: #17240f;
    font-family: "Sachsenmoped Black Weekend", "Bai Jamjuree", Arial, sans-serif;
    font-weight: 700;
}

.sm-bf-banner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    column-gap: 1.15rem;
    row-gap: .2rem;
    padding: .55rem 1rem;
    background: var(--bf-green);
    color: var(--bf-black);
    text-align: center;
    text-decoration: none;
    font-size: .9rem;
}

.sm-bf-banner strong { font-size: 1.05rem; }
.sm-bf-banner:hover { color: var(--bf-black); background: #c6ff66; }
.sm-bf-banner__link { text-decoration: underline; text-underline-offset: .15em; }

.sm-bf-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.sm-bf-teasers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--sm-bf-grid-column-gap);
    position: relative;
    margin-inline: var(--sm-bf-page-gutter);
    background: var(--bf-black);
}

.sm-bf-card {
    container-type: inline-size;
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    position: relative;
    isolation: isolate;
    aspect-ratio: 1.54;
    box-sizing: border-box;
    padding: 6.3%;
    overflow: hidden;
    border: 1px solid #3e5427;
    color: var(--bf-paper);
    background: var(--bf-black);
    text-decoration: none;
    line-height: 1;
}

.sm-bf-card:hover { background: #151c0e; color: var(--bf-paper); text-decoration: none; }
.sm-bf-card:focus-visible { outline: 3px solid var(--bf-green); outline-offset: -5px; }

.sm-bf-card__title {
    display: block;
    font-size: 14cqw;
    line-height: .96;
}

.sm-bf-card__title span { display: block; }
.sm-bf-card__title span:first-child { color: var(--bf-green); }
.sm-bf-card--angebote .sm-bf-card__title span:first-child { color: var(--bf-paper); }
.sm-bf-card--angebote .sm-bf-card__title span:last-child { color: var(--bf-green); }
.sm-bf-card__title sup { margin-inline-start: .15em; font-size: .32em; }

.sm-bf-card__art { display: grid; }
.sm-bf-card__countdown {
    position: absolute;
    inset-inline-start: 6.3%;
    inset-block-end: 6.3%;
    font-size: 3.7cqw;
    color: var(--bf-paper);
}

.sm-bf-tag {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: .1em;
    position: relative;
    box-sizing: border-box;
    width: max-content;
    padding: .25em 1.1em .25em .44em;
    color: var(--bf-black);
    background: var(--bf-green);
    clip-path: polygon(0 0, 84% 0, 100% 50%, 84% 100%, 0 100%);
    line-height: 1;
    white-space: nowrap;
    transform: rotate(-9deg);
}

.sm-bf-tag::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 7%;
    width: .13em;
    height: .13em;
    border-radius: 50%;
    translate: 0 -50%;
    background: var(--bf-black);
}

.sm-bf-tag strong { font-size: 1em; }
.sm-bf-tag__label { font-size: .32em; }
.sm-bf-card__art .sm-bf-tag { justify-self: end; margin-inline-end: 2cqw; font-size: 14cqw; }
.sm-bf-card--social { align-content: center; gap: 8cqw; aspect-ratio: 4 / 5; }

.sm-bf-landing {
    color: var(--bf-paper);
    background: var(--bf-black);
    overflow: hidden;
}

.sm-bf-landing__masthead {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    padding: 2.6rem;
    overflow: hidden;
    background: #111612;
}

.sm-bf-landing__masthead::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(165deg, #adff19, #65a50b);
    clip-path: polygon(0 100%, 100% 23%, 100% 100%);
}

.sm-bf-landing__copy {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: start;
    gap: 1.35rem;
}

.sm-bf-landing__masthead h1 {
    color: var(--bf-paper);
    font-family: inherit;
    font-size: 7.4rem;
    font-weight: 700;
    line-height: .83;
    margin: 0;
}

.sm-bf-landing__masthead h1 span { display: block; }
.sm-bf-landing__masthead h1 span:first-child { color: var(--bf-green); }
.sm-bf-preview-note { margin: 0 0 .45rem; font-size: .9rem; }

.sm-bf-landing__countdown:not([hidden]) {
    display: inline-grid;
    grid-template-columns: repeat(3, 5.7rem);
    background: var(--bf-black);
    color: var(--bf-green);
}

.sm-bf-landing__time {
    display: grid;
    justify-items: center;
    gap: .25rem;
    padding: .55rem .4rem .65rem;
}

.sm-bf-landing__time + .sm-bf-landing__time { border-inline-start: 1px solid #526336; }

.sm-bf-landing__digits {
    font-size: 3.25rem;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.sm-bf-landing__unit { color: var(--bf-paper); font-size: .78rem; line-height: 1.1; }

.sm-bf-landing__art { position: relative; aspect-ratio: 1.2; }
.sm-bf-landing__part { position: absolute; height: auto; filter: drop-shadow(0 1rem 1.35rem #0007); }
.sm-bf-landing__part--cylinder { width: 83%; inset: 8% -3% auto auto; transform: rotate(-11deg); }
.sm-bf-landing__part--gear { width: 61%; inset: -3% auto auto -1%; transform: rotate(13deg); }
.sm-bf-landing__tag {
    position: absolute;
    inset-inline-start: 10%;
    inset-block-end: 6%;
    font-size: 3.6rem;
    filter: drop-shadow(0 .25rem 0 #080a07);
}
.sm-bf-banner:focus-visible { outline: 2px solid var(--bf-black); outline-offset: -4px; }

.sm-bf-landing__footnotes {
    display: grid;
    gap: .3rem;
    padding: .8rem 1rem;
    border-block-start: 1px solid #46523b;
    font-family: system-ui, sans-serif;
    font-weight: 400;
    color: #d3ddc9;
}

.sm-bf-landing__footnotes small { font-size: .75rem; scroll-margin-top: 6rem; }


/* The campaign uses the catalog's full-width canvas, with at most four products across. */
.content-main:has(.sm-bf-campaign-layout),
.container-main:has(.sm-bf-campaign-layout),
.cms-section-default.boxed:has(.sm-bf-campaign-layout) {
    width: 100%;
    max-width: none;
}

.content-main:has(.sm-bf-campaign-layout) {
    background: #0a0d08;
    color: #f9faf4;
}

.cms-page:has(.sm-bf-campaign-layout) {
    padding-inline: var(--sm-bf-page-gutter);
    padding-block-end: 3rem;
}

.cms-section-default.boxed:has(.sm-bf-campaign-layout) { padding-inline: 0; }

.cms-block-container:has(.sm-bf-campaign-layout) {
    max-width: none;
    padding-inline: 0 !important;
}

.cms-block-container-row:has(> .col-12 > .sm-bf-campaign-layout) { margin-inline: 0; }
.cms-block-container-row > .col-12:has(> .sm-bf-campaign-layout) { padding-inline: 0; }

.sm-bf-product-grid,
.sm-bf-product-list#angebote .cms-listing-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sm-bf-grid-row-gap) var(--sm-bf-grid-column-gap);
    margin-inline: 0;
}

@media (min-width: 600px) {
    .sm-bf-product-grid,
    .sm-bf-product-list#angebote .cms-listing-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1300px) {
    .sm-bf-product-grid,
    .sm-bf-product-list#angebote .cms-listing-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.sm-bf-product-list#angebote .cms-listing-row > .cms-listing-col {
    width: auto !important;
    margin: 0;
    padding: 0 !important;
}

.sm-bf-product-list#angebote .cms-listing-row > .col-12 { grid-column: 1 / -1; }

.sm-bf-product-list#angebote { margin-block-start: 1rem; scroll-margin-top: 6rem; }

.sm-bf-product-list .product-box {
    height: 100%;
    background: #151a11;
    color: #f9faf4;
    border: 1px solid #4b642d;
    border-radius: 0;
    font-family: "Sachsenmoped Black Weekend", Arial, sans-serif;
}

.sm-bf-product-list .product-box .card-body {
    display: grid;
    grid-template-rows: auto 1fr;
    padding: 0;
}

.sm-bf-product-list :is(.product-box, .product-inquiry-card) .product-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 1fr auto auto;
    gap: .45rem;
    padding: 2.2rem .8rem .8rem;
    background-color: #151a11;
}

.sm-bf-product-list :is(.product-box, .product-inquiry-card) .product-name {
    display: block;
    height: auto;
    margin: 0;
    color: #f9faf4;
    font: inherit;
    overflow-wrap: anywhere;
}

.sm-bf-product-list .product-box .product-image { object-fit: contain; }

.sm-bf-product-list .sm-bf-product-art {
    position: relative;
    isolation: isolate;
    aspect-ratio: 1;
    background: #adff19;
}

.sm-bf-product-list .sm-bf-product-art::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(165deg, #e7e7e7, #bcbcbc);
    clip-path: polygon(0 68.333%, 100% 47.5%, 100% 100%, 0 100%);
    pointer-events: none;
}

.sm-bf-product-list .sm-bf-product-art .sm-bf-cutout {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: normal;
    filter: drop-shadow(0 .4rem .55rem #0003);
}
.sm-bf-product-list .badge-discount { display: none; }
.sm-bf-product-pricing { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .75rem; }
.sm-bf-product-tag { transform: rotate(-5deg); }
.sm-bf-product-action { margin-block-start: 0; }

.sm-bf-product-buy {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: .9rem .5rem;
    border: 1px solid #c9b8ff;
    border-radius: .75rem;
    background: #c9b8ff;
    color: #171126;
    font: inherit;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    text-align: center;
    text-transform: none;
}

.sm-bf-product-buy:not(:disabled):hover { background: #e2d7ff; color: #171126; }
.sm-bf-product-buy:focus-visible { outline: 2px solid #c9b8ff; outline-offset: 3px; }
.sm-bf-product-buy--detail { background: #151a11; color: #f9faf4; }

.sm-bf-product-reference { font-size: .82rem; }
.sm-bf-product-list .sm-bf-product-reference del {
    color: var(--bf-paper);
    white-space: nowrap;
}
.sm-bf-product-list .sm-bf-product-pricing .product-price {
    flex-basis: 100%;
    color: #adff19;
    margin: 0;
    font-size: 2rem;
    font-weight: 400 !important;
    line-height: 1.2;
}

@media (max-width: 1150px) {
    .sm-bf-landing__masthead h1 { font-size: 5.3rem; }
    .sm-bf-landing__tag { font-size: 2.75rem; }
}

@media (max-width: 860px) {
    .sm-bf-landing__masthead { grid-template-columns: 1fr; padding: 1.4rem; }
    .sm-bf-landing__art { width: 100%; aspect-ratio: 1.65; }
    .sm-bf-landing__part--cylinder { width: 60%; inset: -4% -3% auto auto; }
    .sm-bf-landing__part--gear { width: 51%; inset: -4% auto auto 7%; }
    .sm-bf-landing__masthead::after { clip-path: polygon(0 79%, 100% 56%, 100% 100%, 0 100%); }
}

@media (max-width: 767.98px) {
    .sm-bf-teasers {
        grid-template-columns: minmax(0, 1fr);
        row-gap: var(--sm-bf-grid-column-gap);
    }
}

@media (max-width: 575px) {
    .sm-bf-banner { padding-inline: .5rem; column-gap: .65rem; font-size: .78rem; }
    .sm-bf-banner__detail { display: none; }
    .sm-bf-card { font-size: 1rem; }
    .sm-bf-landing__masthead { padding: 1.4rem 1rem 1.5rem; }
    .sm-bf-landing__masthead h1 { font-size: 3.3rem; }
    .sm-bf-landing__countdown:not([hidden]) { grid-template-columns: repeat(3, 4.65rem); }
    .sm-bf-landing__digits { font-size: 2.55rem; }
    .sm-bf-landing__tag { font-size: 2.4rem; }
    .sm-bf-product-list :is(.product-box, .product-inquiry-card) .product-info { padding: 1.65rem .55rem .55rem; }
    .sm-bf-product-list .sm-bf-product-pricing .product-price { font-size: 1.6rem; }
    .sm-bf-product-buy { font-size: 1rem; }
}

@media (prefers-reduced-motion: no-preference) {
    .sm-bf-card .sm-bf-tag, .sm-bf-landing__tag { animation: sm-bf-punch 2.3s cubic-bezier(.2,.8,.22,1) 1; }
    .sm-bf-card--warenkorb .sm-bf-tag { animation-delay: .14s; }
    .sm-bf-card--angebote .sm-bf-tag { animation-delay: .28s; }
    @keyframes sm-bf-punch {
        0% { transform: translate(8%, 10%) rotate(-15deg) scale(.92); }
        24% { transform: translate(0, -3%) rotate(-7deg) scale(1.055); }
        52%, 100% { transform: rotate(-9deg) scale(1); }
    }
}
