/* Kategorieansicht: Minimog-inspirierte Galerie mit nativen JTL-Filtern. */
#content-wrapper.is-item-list { max-width: 1600px; padding-left: 40px; padding-right: 40px; }
#content-wrapper.is-item-list #content > .row > :first-child { flex: 0 0 100%; max-width: 100%; }
#result-wrapper > .title { text-align: center; padding: 24px 0 20px; margin-bottom: 0; }
#result-wrapper > .title h1 { font-size: clamp(28px, 3vw, 40px); font-weight: 500; color: #000; margin: 0; }
#result-wrapper .productlist-page-nav-header-m { margin-top: 16px; margin-bottom: 26px; border-bottom: 0; align-items: center; }
#result-wrapper .tp-catalog-toolbar { display: flex; align-items: center; gap: 18px; width: 100%; max-width: 100%; flex: 0 0 100%; padding: 0 0 18px; }
.tp-catalog-toolbar button, .tp-catalog-toolbar .dropdown-toggle { color: #000; font-size: 14px; font-weight: 500; }
.tp-filter-toggle { display: inline-flex; align-items: center; gap: 9px; border: 0; background: none; padding: 10px 0; }
.tp-filter-toggle[hidden] { display: none; }
.tp-catalog-toolbar .dropdown-toggle { border: 0; background: transparent; box-shadow: none; padding: 10px 0; }
.tp-catalog-toolbar .dropdown-menu { border: 1px solid #e8e8e8; border-radius: 0; padding: 8px; }
.tp-catalog-toolbar .dropdown-item { color: #000; border: 0; border-radius: 3px; padding: 8px 10px; }
.tp-catalog-toolbar .dropdown-item.active { color: #fff; background: #000; }
.tp-grid-controls { margin-left: auto; display: flex; gap: 8px; }
.tp-grid-controls button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: #f5f5f5; border-radius: 2px; }
.tp-grid-controls button[aria-pressed="true"] { background: #000; color: #fff; }
.tp-grid-icon { display: block; height: 15px; background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 5px); }
.tp-grid-2 { width: 7px; } .tp-grid-3 { width: 12px; } .tp-grid-4 { width: 17px; }
#result-wrapper .productlist-page-nav-header-m .productlist-pagination { display: none; }
#result-wrapper .productlist-item-info { color: #000; font-size: 13px; border: 0; padding: 0; margin: 0; }
#product-list { display: grid; grid-template-columns: repeat(var(--tp-columns, 6), minmax(0, 1fr)); gap: 36px 26px; margin: 0; }
#product-list > .product-wrapper { width: auto; max-width: 100%; padding: 0; flex: none; min-width: 0; margin: 0; }
.tp-catalog-card { width: 100%; background: #fff; color: #000; }
.tp-catalog-image { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; background: #fff; overflow: hidden; }
.tp-catalog-image picture { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.tp-catalog-image img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.tp-catalog-image:hover img { transform: scale(1.025); }
.tp-catalog-caption { padding: 16px 0 0; text-align: left; }
.tp-catalog-name { display: block; color: #000; font-size: 15px; line-height: 1.5; font-weight: 500; text-decoration: none; }
.tp-catalog-name:hover { color: #000; text-decoration: underline; text-underline-offset: 3px; }
.tp-catalog-price { margin-top: 7px; color: #000; font-size: 15px; }
.tp-catalog-price .price_wrapper { margin: 0; }
.tp-catalog-price .price, .tp-catalog-price .price span { font-size: 15px; font-weight: 500; color: #000; }
.tp-catalog-price .price-note { font-size: 12px; }
#result-wrapper .productlist-page-nav:not(.productlist-page-nav-header-m) { margin-top: 42px; justify-content: center; gap: 18px; }
#result-wrapper .pagination .page-link { color: #000; border: 0; padding: 9px 12px; }
#result-wrapper .pagination .active > .page-link { color: #fff; background: #000; border-radius: 3px; }
@media (min-width: 992px) {
body.tp-catalog-ready #sidepanel_left .box { border: 0; border-radius: 0; padding: 0 0 24px; margin: 0 0 24px; border-bottom: 1px solid #ededed; background: #fff; }
body.tp-catalog-ready #sidepanel_left .productlist-filter-headline, body.tp-catalog-ready #sidepanel_left .box-normal-link { color: #000; font-size: 15px; font-weight: 600; background: transparent; padding: 0 0 14px; border: 0; }
body.tp-catalog-ready #sidepanel_left .box-normal-link { display: none; }
body.tp-catalog-ready #sidepanel_left .productlist-filter-headline { display: flex !important; }
body.tp-catalog-ready #sidepanel_left .box-normal > .collapse { display: block; }
body.tp-catalog-ready #sidepanel_left .nav-link { padding: 8px 0; border: 0; color: #000; background: transparent; font-size: 14px; }
body.tp-catalog-ready #sidepanel_left .nav .nav { padding-left: 16px; }
body.tp-catalog-ready #sidepanel_left .nav-item.active > .nav-link { font-weight: 600; box-shadow: none; border: 0; }
body.tp-catalog-ready #sidepanel_left .nav-link::after { border-color: currentColor; }
body.tp-catalog-ready #sidepanel_left input { border-color: #ddd; color: #000; box-shadow: none; }
body.tp-catalog-ready #sidepanel_left .noUi-connect { background: #000; }
body.tp-catalog-ready #sidepanel_left .noUi-handle { border-color: #000; background: #fff; box-shadow: none; }
}
@media (max-width: 1199px) {
    #product-list { grid-template-columns: repeat(var(--tp-columns, 6), minmax(0, 1fr)); gap: 30px 20px; }
    #content-wrapper.is-item-list { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 767px) {
    #content-wrapper.is-item-list { padding-left: 16px; padding-right: 16px; }
    #result-wrapper > .title { padding: 20px 0 24px; }
    #result-wrapper .tp-catalog-toolbar { gap: 14px; flex-wrap: wrap; }
    .tp-catalog-limit { display: none; }
    .tp-grid-controls { display: none; }
    #product-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
    .tp-catalog-name, .tp-catalog-price .price { font-size: 14px; }
    .tp-catalog-caption { padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { .tp-catalog-image img, body.tp-catalog-ready #sidepanel_left, .tp-filter-backdrop { transition: none; } }

/* Desktop: Kategorien und Filter dauerhaft links sichtbar. */
@media (min-width: 992px) {
    #content-wrapper.is-item-list #content > .row { align-items: flex-start; }
    #content-wrapper.is-item-list #content > .row > :first-child {
        flex: 0 0 calc(100% - 280px);
        max-width: calc(100% - 280px);
        padding-left: 30px;
    }
    body.tp-catalog-ready #sidepanel_left {
        position: static !important;
        inset: auto;
        flex: 0 0 280px;
        width: 280px;
        max-width: 280px;
        height: auto;
        overflow: visible;
        padding: 24px 18px 0 0;
        transform: none;
        visibility: visible;
        transition: none;
        z-index: auto;
    }
    body.tp-catalog-ready #sidepanel_left .tp-filter-heading,
    .tp-catalog-toolbar .tp-filter-toggle,
    .tp-filter-backdrop { display: none !important; }
    body.tp-filters-open { overflow: auto; }
}


.tp-native-mobile-filters { display: none; }
@media (max-width: 991px) {
    .tp-native-mobile-filters { display: block; width: 100%; }
    #result-wrapper .tp-catalog-toolbar { flex-wrap: wrap; }
}

/* Ruhige Filtergruppen mit einer einzigen Aufklappebene. */
@media (min-width: 992px) {
    body.tp-catalog-ready #sidepanel_left { padding-right: 24px; }
    body.tp-catalog-ready #sidepanel_left .box {
        padding: 0 0 18px;
        margin: 0 0 18px;
        border-bottom: 1px solid #e8e8e8;
    }
    #sidepanel_left .box-filter-hr { display: none; }
    #sidepanel_left .btn-filter-box {
        padding: 0 0 12px;
        min-height: 34px;
        border: 0;
        color: #000;
        background: transparent;
        text-align: left;
        font-size: 15px;
        font-weight: 600;
        box-shadow: none;
    }
    #sidepanel_left .snippets-categories-collapse { background: transparent; }
    #sidepanel_left .nav .nav { border-left: 1px solid #e4e4e4; margin: 6px 0 12px 2px; padding-left: 15px; background: transparent; }
    #sidepanel_left .nav-item.active > .nav-link { color: #000; }
    #sidepanel_left .nav-link:hover { text-decoration: underline; text-underline-offset: 3px; }
    #sidepanel_left .input-group { border: 1px solid #e4e4e4; border-radius: 5px; overflow: hidden; }
    #sidepanel_left .input-group .form-control { min-width: 0; border: 0; height: 38px; padding: 8px; background: #fff; }
    #sidepanel_left .input-group-text { border: 0; background: #f6f6f6; color: #000; font-size: 12px; }
    #sidepanel_left .noUi-target { height: 3px; background: #e6e6e6; border: 0; box-shadow: none; margin: 24px 8px 10px; }
    #sidepanel_left .noUi-horizontal .noUi-handle { width: 14px; height: 14px; right: -7px; top: -6px; border-radius: 50%; border: 2px solid #000; background: #fff; box-shadow: none; }
    #sidepanel_left .noUi-handle::before, #sidepanel_left .noUi-handle::after { display: none; }
}
.tp-filter-values { padding: 0; }
.tp-filter-value-list { max-height: 280px; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #ccc transparent; }
.tp-filter-choice { display: block; padding: 8px 0; color: #000; font-size: 14px; line-height: 1.45; text-decoration: none; white-space: normal; }
.tp-filter-choice .box-link-wrapper { display: flex; align-items: flex-start; gap: 10px; width: 100%; }
.tp-filter-checkbox { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px; border: 1px solid #bcbcbc; border-radius: 3px; position: relative; background: #fff; }
.tp-filter-choice.active .tp-filter-checkbox { border-color: #000; background: #000; }
.tp-filter-choice.active .tp-filter-checkbox::after { content: ''; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tp-filter-choice .filter-item-value { min-width: 0; overflow-wrap: anywhere; }
.tp-filter-count { margin-left: auto; padding-left: 8px; font-size: 12px; color: #000; }
.tp-filter-choice:hover { color: #000; text-decoration: none; }
.tp-filter-choice:hover .tp-filter-checkbox { border-color: #000; }
.tp-filter-choice:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.tp-filter-values .filter-search { margin-bottom: 10px; }
.snippets-filter-mobile-item-collapse .tp-filter-values { padding: 8px 0 14px; }

/* Kategorien wie in der Vorlage: bündig, ohne Baumlinie oder eingerückten Kasten. */
#sidepanel_left .nav .nav,
body.tp-catalog-ready #sidepanel_left .nav .nav {
    border-left: 0;
    padding-left: 0;
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 8px;
    background: transparent;
}
#sidepanel_left .snippets-categories-collapse,
#sidepanel_left .snippets-categories-collapse .nav-item {
    background: transparent;
    border: 0;
    box-shadow: none;
}
#sidepanel_left .snippets-categories-nav-link-child,
body.tp-catalog-ready #sidepanel_left .snippets-categories-nav-link-child {
    padding-left: 0;
    margin-left: 0;
}

/* Preisfilter: native und bereits hochgeladene Zwischenversion gleich robust darstellen. */
#sidepanel_left .price-range-inputs,
.tp-price-fields {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 14px;
    align-items: end;
    margin: 0;
}
#sidepanel_left .price-range-inputs > .col {
    width: 100%; max-width: none; padding: 0; min-width: 0;
}
#sidepanel_left .price-range-inputs .input-group,
.tp-price-input-wrap {
    display: flex; flex-wrap: nowrap; align-items: center;
    width: 100%; height: 42px; border: 1px solid #ddd;
    border-radius: 4px; background: #fff; overflow: hidden;
}
#sidepanel_left .price-range-inputs input,
#sidepanel_left .tp-price-input,
.tp-price-input-wrap input {
    flex: 1 1 0; width: 0 !important; min-width: 0;
    height: 40px; padding: 9px 10px; margin: 0;
    border: 0 !important; background: transparent;
    box-shadow: none !important; color: #000; font-size: 14px;
}
#sidepanel_left .price-range-inputs .input-group-prepend,
#sidepanel_left .price-range-inputs .input-group-append {
    display: flex; margin: 0; flex: 0 0 auto;
}
#sidepanel_left .price-range-inputs .input-group-text,
.tp-price-currency {
    display: block; padding: 0 10px 0 0; border: 0;
    background: transparent; color: #000; font-size: 12px;
}
.tp-price-field { display: block; min-width: 0; margin: 0; }
.tp-price-label { display: block; margin-bottom: 6px; font-size: 12px; color: #000; }
.tp-price-separator { display: none; }
#sidepanel_left .price-range-slide.noUi-target {
    height: 2px !important; margin: 24px 7px 10px !important;
    border: 0; background: #e5e5e5; box-shadow: none;
}
#sidepanel_left .price-range-slide .noUi-connect { background: #000; }
#sidepanel_left .price-range-slide .noUi-handle {
    width: 12px !important; height: 12px !important;
    top: -5px !important; right: -6px !important;
    border: 1px solid #000; border-radius: 50%; background: #fff; box-shadow: none;
}
#sidepanel_left .price-range-slide .noUi-handle::before,
#sidepanel_left .price-range-slide .noUi-handle::after { display: none; }

/* Rasterauswahl: drei, vier oder sechs Spalten. */
.tp-grid-6 { width: 27px; }

/* Bilder nutzen die volle Kartenbreite; keine schmalere Bildfläche als der Titel. */
#product-list .tp-catalog-card,
#product-list .tp-catalog-caption { width: 100%; min-width: 0; max-width: 100%; }
#product-list .tp-catalog-image {
    display: block;
    width: 100%;
    aspect-ratio: auto;
    padding: 0;
    margin: 0;
}
#product-list .tp-catalog-image picture {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}
#product-list .tp-catalog-image img {
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    max-height: none;
    margin: 0;
}
#product-list .tp-catalog-name { max-width: 100%; overflow-wrap: anywhere; }
@media (min-width: 768px) {
    #product-list[data-tp-columns="6"] { column-gap: 14px; }
}

/* Kompakte Artikelreihen: keine zusätzlichen NOVA-Höhen oder Außenabstände. */
#product-list {
    row-gap: 30px;
    align-items: start;
    align-content: start;
    grid-auto-rows: auto;
}
#product-list > .product-wrapper,
#product-list .tp-catalog-card {
    height: auto !important;
    min-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
#product-list .tp-catalog-caption,
#product-list .tp-catalog-price,
#product-list .tp-catalog-price .price_wrapper { margin-bottom: 0 !important; }

/* Automatisches Nachladen mit zugänglichem Button und nativer Rückfallebene. */
.tp-infinite-footer { padding: 28px 0; text-align: center; }
.tp-infinite-controls[hidden], .tp-load-more[hidden] { display: none; }
.tp-infinite-status { margin: 0 0 14px; color: #000; font-size: 13px; }
.tp-load-more { padding: 12px 28px; border: 1px solid #000; border-radius: 4px; color: #fff; background: #000; font-size: 14px; }
.tp-load-more:hover { color: #000; background: #fff; }
.tp-load-more:disabled { opacity: .5; cursor: wait; }
.tp-infinite-ready .tp-pagination-fallback { display: none; }

/* Bei automatischem Nachladen ist die Seitengrößenauswahl überflüssig. */
#result-wrapper .tp-catalog-limit { display: none !important; }

/* Einheitliche Inhaltsbreite; Header und Footer liegen außerhalb von main-wrapper. */
#main-wrapper {
    width: calc(100% - 32px);
    max-width: 1305px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}
#content-wrapper,
#content-wrapper.is-item-list {
    width: 100%;
    max-width: 1305px;
    padding-left: 0;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}
#main-wrapper .product-slider-wrapper,
#main-wrapper .slick-slider-other-container,
#main-wrapper #content > .container,
#main-wrapper #content > .container-fluid {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}
