/* I do not know what this file does, but if it is deleted, the shop crashes. SO DON'T TOUCH THIS */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');
/* region VARS */

:root {
    --pwr-gray: #fafaf9;
    --pwr-gray-border: #e7e7e7;
    --pwr-mono-font: "JetBrains Mono", monospace;
}

/* endregion */

/* region RESETS */

html {
    background:black;
}

.container {
    max-width: 1240px;
}

.h1, .h2, .h3, .h4, .h5, .h6,
h1, h2, h3, h4, h5, h6 {
    text-transform: uppercase;
    letter-spacing:3%;
}

.z-1 {z-index: 1 !important}
.z-2 {z-index: 2 !important}

.breadcrumb-wrapper {
    padding-bottom: .75rem;
    padding-top: .5rem;
}

#main-wrapper {
    padding-bottom: 2rem;
}

.btn {
    text-transform: uppercase;
    font-size: .85rem;
    font-weight: 700;
    line-height: 1.8;
}

button[data-niu-sidebar-trigger-content="menu"] {
    transform: none !important;
}

/* endregion */

/* region HELPER */

.pwr-mono-font {
    font-family: var(--pwr-mono-font);
    text-transform: uppercase;

    &.small {
        font-size: .75rem !important;
    }
}

.row-no-gutter-y {
    .col {
        padding-bottom: 0 !important;
    }
}

.no-padding-y, .no-padding-y section.splide {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.stretch-margin-y {
    margin-top:-1px !important;
    margin-bottom: -1px !important;
}

/* endregion */

/* region HEADER */

#niu-top-bar {
    border-bottom:1px solid #1c1c1c;
}

header {
    .niu-categories-color-wrap {
        border-top:1px solid #1c1c1c;

        .nav-item {
            border-right:1px solid #1c1c1c;
        }
    }

    .niu-nav-icon-headline {
        font-family:var(--pwr-mono-font);
        text-transform: uppercase;
        font-size: .75rem;
        letter-spacing: -1%;
    }

    .niu-nav-icon-container {
        i {
            font-size:.85rem;
        }
    }

    .navbar-nav .nav-link {
        text-transform: uppercase;
        font-size: .75rem;
        letter-spacing: 0.05em;
        font-weight: 500;
    }

    .niu-input-group.niu-header-search {
        background:#1c1c1c !important;
        border-color: #272727;

        button {
            background:var(--primary);
            color:white;
        }

        .form-control {
            color:white;
        }
    }
}

/* endregion */

/* region FOOTER */

#footer {

    padding-top:0;

    .productlist-filter-headline {
        font-family: "Inter", sans-serif;
        text-transform: uppercase;
        font-size: .85rem;
        letter-spacing: 0.05em;
        font-weight: 700;
    }

    .nav-link {

        font-size: 0.85rem;
    }
}

/* endregion */

/* region PDP */

/* niu custom - pulsierender Statuspunkt vor dem Lieferstatus */
.delivery-status .status {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: capitalize;
}

.delivery-status .status::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* niu custom - Farben je Statusstufe: 2 = verfuegbar, 1 = bald lieferbar, 0 = nicht verfuegbar */
.delivery-status .status.status-2::before { color: var(--success); }
.delivery-status .status.status-1::before { color: #f1c40f; }
.delivery-status .status.status-0::before { color: #e74c3c; }

/* niu custom - Pulsanimation nur bei status-2 (verfuegbar) */
.delivery-status .status.status-2::before {
    box-shadow: 0 0 0 0 currentColor;
    animation: niu-status-pulse 1.8s infinite;
}

@keyframes niu-status-pulse {
    0%   { box-shadow: 0 0 0 0 currentColor; }
    70%  { box-shadow: 0 0 0 8px rgba(0, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .delivery-status .status.status-2::before { animation: none; }
}

#product-offer {

    .price {
        font-family: var(----pwr-mono-font);
        font-weight: 700;
        letter-spacing: -2%;
    }

    .product-info-inner .niu-item-detail {
        font-size: .75rem;
    }
}

#image_wrapper {
    @media screen and (min-width: 992px) {
        /* niu custom - thumbnails-spalte links neben dem hauptbild (statt darunter); DOM-Reihenfolge wurde dafür in image.tpl angepasst */
        .niu-productdetails-splide {
            display: flex;
            flex-direction: row;
            align-items: flex-start;
            gap: 1rem;
        }

        #niu-product-splide-thumbs {
            flex: 0 0 88px;
            max-width: 88px;
            order: 0;
        }

        #niu-product-splide {
            flex: 1 1 0;
            min-width: 0;
            order: 1;
        }

        /* niu custom - thumbs vertikal stapeln (visuell); achtung: splide selbst rechnet weiterhin horizontal (transform: translateX). bei vielen thumbs kann pagination/scroll spinnen — sauberes vertikales splide braucht direction:'ttb' im NiuSlider-JS */
        #niu-product-splide-thumbs .splide__list {
            flex-direction: column;
        }

        #niu-product-splide-thumbs .splide__slide {
            width: 100% !important;
            margin-bottom: .5rem;
        }
    }
}



.product-offer {
    background: var(--pwr-gray);
    padding: 1.5rem 1.5rem;
    border: 1px solid var(--pwr-gray-border);
    border-radius: 2px;
}

.niu-productdetails-paymethods-text {
    font-size: .75rem;
}

.table-striped tbody tr:nth-of-type(even) {
    background: var(--pwr-gray);
}

.dzm-con-widget-wrapper {
    font-size: .75rem !important;
}

.vat_info {
    font-family: var(--pwr-mono-font);
    font-size: .75rem;
    letter-spacing: -5%;
}

.product-info {
    .niu-custom-boxes-container {

        margin-top:1rem !important;

        .niu-cb-card {
            margin-bottom: -1px !important;
            background: var(--pwr-gray);

            .h4 {
                font-family: "Inter", sans-serif;
                font-size: .85rem;
                text-transform: uppercase;
                font-weight: 700;
                letter-spacing: 1%;
            }

        }
    }

}

.niu-sticky-top {
    top:3rem;
}

.product-attributes {
    td.h6 {
        font-family: "Inter", sans-serif;
        font-size: .85rem;
        text-transform: uppercase;
        font-weight: 700;
        letter-spacing: 1%;
    }
}

#add-to-cart {
    @media screen and (min-width: 991px) {
        .col:has(button.btn-checkout) {
            padding-left:0 !important;
        }
    }


    .form-control.quantity {
        font-family: "Inter", sans-serif;
    }
}

.niu-cb-card:has(.pwr-fahrzeuge-lg) {

    @media screen and (max-width: 991px) {
        display: none !important;
    }

    @media screen and (min-width: 992px) {
        display: block !important;
    }
}

.niu-cb-card:has(.pwr-fahrzeuge-xs) {

    @media screen and (max-width: 991px) {
        display: block !important;
    }

    @media screen and (min-width: 991px) {
        display: none !important;
    }
}

.niu-itembox-style-modern .productbox-price {
    font-size: 1rem;
}

/* endregion */

/* region PLP */

.niu-itembox-style-modern {
    .productbox-title {
        font-size: 0.9rem;
        font-weight: 600;
    }

    .productbox-price {
        font-family: var(--pwr-mono-font);
    }
}

.niu-itembox-option--has-border.productbox-inner {
    padding:0;
    background: var(--pwr-gray);
}

.productbox-image {
    margin-bottom: 0 !important;

    img {
        mix-blend-mode: darken;
    }
}

.dzm-itembox-quickbuy-trigger-wrapper {
    padding:0 1.5rem;
}

.niu-productbox-caption {
    border-top:1px solid #e5e5e5;
    padding:1.5rem 1.25rem;
    background:white;
}

.productbox .niu-itembox-option--has-border .productbox-ribbon.ribbon {
    top:1rem;
    left:1rem;
}

.estimated_delivery, .niu-productdetails-paymethods-text, .product-offer .niu-nav-icon-headline {
    font-family: var(--pwr-mono-font);
}


hr.productlist-page-nav-top {
    margin-bottom: 0;
}

hr.productlist-page-nav-bottom {
    margin-top:0;
}


#sidepanel_left {
    .box {
        background: var(--pwr-gray);
        padding: 1rem 1.25rem;
        border-radius: 2px;
        border:1px solid var(--pwr-gray-border);

        .productlist-filter-headline {
            font-family: "Inter", sans-serif;
            font-size: .85rem;
            letter-spacing: 0.05em;
            font-weight: 700;
            text-transform: uppercase;
        }
    }
}

.info-essential {
    margin-bottom: 1rem;
    font-family: 'bootstrap 5 icons';
}

.productbox {
    .pwr-gray-ribbon {
        margin-left: -1px;
    }

    .niu-ribbon-list-container {
        gap:0;
    }
}

/* endregion */

/* region OPC */

.pwr-start-row {
    @media screen and (max-width: 991px) {
        .col:first-child {
            order: 2;
        }
    }
}

.pwr-gradient-dark .dzm-itb-overlay , .pwr-gradient-dark::after {
    background: #000;
    background: linear-gradient(360deg, rgba(0, 0, 0, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.pwr-gradient-dark::after {
    content: '';
    display: block;
    pointer-events: none;
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
}

.dzm-hl-wrapper hr {
    display: none;
}

.pwr-skew-section {
    position:relative;

    &:before {
        content:'';
        height:100px;
        background:var(--secondary);
        width: 100%;
        display: block;
        clip-path: polygon(0 0, 0 100%, 100% 100%);
        transform: translateY(-99px);
    }

    &:after {
        content:'';
        height:100px;
        background:var(--secondary);
        width: 100%;
        display: block;
        clip-path: polygon(0 0, 100% 0, 100% 100%);
        transform: translateY(99px);
    }

    /* niu custom - mobile (< 992px): flachere skew-dreiecke, damit die sektion auf mobile nicht so lang wird */
    @media (max-width: 991px) {
        &:before {
            height: 30px;
            transform: translateY(-29px);
        }

        &:after {
            height: 30px;
            transform: translateY(29px);
        }
    }
}

.pwr-product-count {
    position: absolute;
    top:1rem;
    right: 1rem;
    background: var(--primary);
    color:white;
    padding:.15rem .75rem;
    border-radius: 2px;
}

/* endregion */

/* region FAHRZEUGFILTER */

#s360-vehicle-search-filter {
    position: relative;
    flex-direction: column;
    padding: 3rem 2rem;
    color: #fff;
    overflow: hidden;
    margin: 0;
}

#s360-vehicle-search-filter > * {
    position: relative;
    z-index: 1;
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0;
}

#s360-vehicle-search-filter > div:has(> strong) {
    order: 1;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
}

#s360-vehicle-search-filter > div:has(> strong)::before {
    content: 'FAHRZEUGFINDER';
    font-family: var(--pwr-mono-font);
    font-size: .8rem;
    color: var(--primary);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

#s360-vehicle-search-filter > div:has(> strong) strong {
    font-family: "Anton", sans-serif;
    font-size: clamp(1.35rem, 5vw, 1.75rem);
    line-height: 1;
    display: block;
    text-transform: uppercase;
    font-weight: 400;
}

#s360-vehicle-search-filter > div:has(#s360-vehicle-search-filter-box-category-switch) {
    display: none;
}

#s360-vehicle-search-filter > div:has(#s360-vehicle-search-hsn) {
    order: 2;
    margin-bottom: 2rem;
}

#s360-vehicle-search-filter > div:has(#s360-vehicle-search-hsn)::before {
    content: 'SUCHE NACH SCHLÜSSELNUMMER';
    display: block;
    font-family: var(--pwr-mono-font);
    font-size: .8rem;
    color: rgba(255,255,255,.5);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

#s360-vehicle-search-filter > div:has(#s360-vehicle-search-hsn) .hide-auto.hide-bike {
    display: block !important;
}

#s360-vehicle-search-filter > div:has(#s360-vehicle-search-hsn) .dropdown {
    display: none;
}

#s360-vehicle-search-filter > div:has(> .row > .text-uppercase) {
    order: 3;
    margin: 1rem 0 1.5rem;
}

#s360-vehicle-search-filter > div:has(> .row > .text-uppercase) hr {
    border-color: rgba(255,255,255,.2);
    margin: 0;
}

#s360-vehicle-search-filter > div:has(> .row > .text-uppercase) .text-uppercase {
    font-family: var(--pwr-mono-font);
    color: rgba(255,255,255,.5);
    letter-spacing: 0.1em;
    font-size: .85rem;
}

#s360-vehicle-search-filter > div:has(#s360-vehicle-search-filter-box-manufacturer-select) {
    order: 4;
    margin-bottom: .5rem !important;
}

#s360-vehicle-search-filter > div:has(#s360-vehicle-search-filter-box-manufacturer-select)::before {
    content: 'NACH KRITERIEN';
    display: block;
    font-family: var(--pwr-mono-font);
    font-size: .8rem;
    color: rgba(255,255,255,.5);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

#s360-vehicle-search-filter > div:has(#s360-vehicle-search-filter-box-model-select) {
    order: 5;
    margin-bottom: .5rem !important;
}

#s360-vehicle-search-filter > div:has(#s360-vehicle-search-filter-box-typ-select) {
    order: 6;
}

#s360-vehicle-search-filter .form-control {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    height: 56px;
    font-size: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 0;
}

#s360-vehicle-search-filter .form-control::placeholder {
    color: rgba(255,255,255,.45);
}

#s360-vehicle-search-filter .form-control:focus {
    background: rgba(255,255,255,.06);
    border: 1px solid var(--secondary) !important;
    box-shadow: none;
    color: #fff;
}

#s360-vehicle-search-filter select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='1.5' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 12px 8px;
    padding-right: 2.75rem;
}

#s360-vehicle-search-filter select.form-control option {
    background: #000;
    color: #fff;
}

#s360-vehicle-search-filter .input-group {
    flex-wrap: nowrap;
    gap: .75rem;
}

#s360-vehicle-search-filter .input-group .form-control {
    border-radius: 0;
}

#s360-vehicle-search-filter .input-group .input-group-append {
    display: none;
}

/* endregion */

/* region MISC */

.pwr-cooler-pattern {

    overflow: hidden;

    &:before {
        content: '';
        position: absolute;
        mix-blend-mode: screen;
        opacity: 1%;
        top:0;
        left:0;
        display:block;
        pointer-events: none;
        width: 100%;
        height: 100%;
        /*
        background-color: #000;
        */
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='32' viewBox='0 0 24 32'><path d='M0,18.5 C3,4.5 9,4.5 12,18.5 C15,32.5 21,32.5 24,18.5 L24,13.5 C21,27.5 15,27.5 12,13.5 C9,-0.5 3,-0.5 0,13.5 Z' fill='%23222'/></svg>");
        background-size: 24px 32px;
    }

}

.pwr-gray-ribbon {
    border:1px solid var(--pwr-gray-border);
    border-radius: 2px;
}

.badge {
    font-family: "IBM Plex Mono", monospace;
    border-radius: 2px;
    font-weight: 400;
}

.badge-primary {

}

/* endregion */


header {

    overflow: clip;
    &:before {
        content: '';
        position: absolute;
        mix-blend-mode: screen;
        opacity: 10%;
        top:0;
        left:0;
        display:block;
        pointer-events: none;
        width: 100%;
        height: 100%;
        /*
        background-color: #000;
        */
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='32' viewBox='0 0 24 32'><path d='M0,18.5 C3,4.5 9,4.5 12,18.5 C15,32.5 21,32.5 24,18.5 L24,13.5 C21,27.5 15,27.5 12,13.5 C9,-0.5 3,-0.5 0,13.5 Z' fill='%23222'/></svg>");
        background-size: 24px 32px;
    }

    &:after {
        content: '';
        position: absolute;
        height:500px;
        width:500px;
        background: #380004;
        background: radial-gradient(circle,rgba(56, 0, 4, 1) 0%, rgba(0, 0, 0, 1) 100%);
        display: block;
        top:50px;
        right:30%;
        z-index: -1;
    }
}

.fadeInUp {
    animation:
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, 8%, 0);
        transform: translate3d(0, 8%, 0);
    }
    100% {
        opacity: 1;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

}


#tab-matching-vehicles {
    opacity: 100% !important;
}

.pwr-fahrzeuge-lg {
    #matching-vehicles-datatable {
        thead {
            background:var(--pwr-gray);
        }

        thead th {
            border-color:var(--pwr-gray-border);
            text-transform: uppercase;
            font-size: .85rem;
            letter-spacing: 0.05em;
            font-weight: 500;
        }

        tr {
            border:1px solid var(--pwr-gray-border);
        }

        td {
            font-size: .75rem;
        }

    }
}
