.dct-catalog {
    --dct-catalog-ink: #1b2328;
    --dct-catalog-muted: #4d5e67;
    --dct-catalog-line: #cbd5dd;
    --dct-catalog-red: #b01e18;
    --dct-catalog-gap: clamp(.85rem, 1.6vw, 1.25rem);
    color: var(--dct-catalog-ink);
}

.dct-catalog .cms-block-category-heading .cms-block-container {
    /* Erlebniswelten geben die Blockabstände als Inline-Stile aus. */
    padding: clamp(1rem, 2.5vw, 2rem) clamp(.95rem, 3vw, 2.5rem) !important;
    background: #29383e;
    color: #fff;
}

.dct-catalog .cms-block-category-heading h1 {
    margin: 0;
    color: inherit;
    font-size: clamp(1.75rem, 4vw, 2.65rem);
    font-weight: 750;
    letter-spacing: -.035em;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.dct-catalog .dct-catalog-intro {
    margin: .42rem 0 0;
    color: inherit;
    font-size: clamp(.95rem, 1.5vw, 1.125rem);
    line-height: 1.4;
}

.dct-catalog--compact .cms-block-image-text:not([style*="background-image"]):not(:has(
    [data-dct-catalog-content], [style*="background-image"], img, video, audio, iframe, svg, a[href],
    .cms-element-text :not(.cms-element-alignment, br)
)) {
    display: none;
}

.dct-catalog :is(.filter-panel-item-toggle, .filter-panel-wrapper-toggle, .sorting select) {
    min-height: 44px;
    border-color: var(--dct-catalog-line);
    border-radius: .35rem;
    color: var(--dct-catalog-ink);
    font-size: .95rem;
}

.dct-catalog :is(.filter-panel-item-toggle, .filter-panel-wrapper-toggle):hover {
    border-color: var(--dct-catalog-red);
    background-color: #fff;
    color: var(--dct-catalog-red);
}

.dct-catalog .cms-element-product-listing-actions {
    align-items: center;
    gap: .45rem .75rem;
    margin-inline: 0;
    margin-bottom: var(--dct-catalog-gap);
}

.dct-catalog .cms-element-product-listing-actions > :has(.sorting) {
    width: auto;
    max-width: 100%;
    margin-inline-start: auto;
}

.dct-catalog .sorting {
    max-width: 100%;
    margin-block: 0;
}

.dct-catalog .cms-listing-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--dct-catalog-gap);
    margin: 0 0 var(--dct-catalog-gap);
}

.dct-catalog .cms-listing-row > .cms-listing-col {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.dct-catalog .cms-listing-row > .cms-listing-col:has(> .alert) {
    grid-column: 1 / -1;
}

.dct-catalog .cms-listing-col .product-box {
    --dct-catalog-card-gap: clamp(.65rem, 1.5vw, 1.15rem);
    --dct-catalog-card-padding: clamp(.8rem, 1.7vw, 1.4rem);
    height: 100%;
    border: 1px solid var(--dct-catalog-line);
    border-radius: .55rem;
    background: #fff;
    box-shadow: none;
}

.dct-catalog .cms-listing-col .product-box > .card-body {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: var(--dct-catalog-card-gap);
    padding: var(--dct-catalog-card-padding);
}

.dct-catalog .cms-listing-col .product-box .product-image-wrapper {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    height: auto;
    aspect-ratio: 5 / 4;
    margin: 0;
    overflow: hidden;
}

.dct-catalog .cms-listing-col .product-box .product-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
}

.dct-catalog .product-image-placeholder {
    width: min(100%, 8rem);
    height: auto;
}

.dct-catalog .cms-listing-col .product-info {
    display: grid;
    align-content: center;
    min-width: 0;
}

.dct-catalog .cms-listing-col .product-name {
    display: block;
    height: auto;
    margin: 0;
    overflow: visible;
    color: var(--dct-catalog-ink);
    font-size: clamp(1rem, 1.5vw, 1.22rem);
    font-weight: 720;
    letter-spacing: -.015em;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.dct-catalog .cms-listing-col .product-name:hover {
    color: var(--dct-catalog-red);
    text-decoration: underline;
    text-underline-offset: .16em;
}

.dct-catalog .cms-listing-col .product-box .product-name.stretched-link::after {
    inset: var(--dct-catalog-card-padding) auto var(--dct-catalog-card-padding) var(--dct-catalog-card-padding);
    width: calc((100% - var(--dct-catalog-card-padding) * 2 - var(--dct-catalog-card-gap)) * .475);
    height: auto;
}

.dct-catalog .product-image-wrapper :is(button, a) {
    z-index: 2;
}

.dct-catalog .dct-catalog-meta {
    margin: .35rem 0 0;
    color: var(--dct-catalog-muted);
    font-size: .92rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.dct-catalog :is(.dct-catalog-brand, .dct-catalog-summary) {
    display: block;
}
.dct-catalog .dct-catalog-brand {
    font-weight: 620;
}

.dct-catalog .cms-listing-col :is(.product-rating, .product-variant-characteristics, .product-cheapest-price) {
    min-height: 0;
    margin: 0;
}

.dct-catalog .cms-listing-col .product-price-info {
    margin-top: .45rem;
}

.dct-catalog .cms-listing-col .product-price-unit {
    height: auto;
    margin: 0;
    overflow: visible;
}

.dct-catalog .cms-listing-col .product-price {
    font-size: clamp(1.13rem, 2vw, 1.55rem);
    font-weight: 750;
    line-height: 1.28;
}

.dct-catalog .cms-listing-col .product-action {
    margin-top: .15rem;
}

.dct-catalog .dct-catalog-product-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    gap: .45rem;
    min-height: 44px;
    max-width: 100%;
    margin-top: .4rem;
    padding: .42rem .68rem;
    border: 1px solid var(--dct-catalog-line);
    border-radius: .35rem;
    background: #fff;
    color: var(--dct-catalog-ink);
    font-size: .94rem;
    font-weight: 620;
    text-align: center;
    text-decoration: none;
}

.dct-catalog .dct-catalog-product-link [aria-hidden="true"] {
    color: var(--dct-catalog-red);
}

.dct-catalog .dct-catalog-product-link:hover {
    border-color: var(--dct-catalog-red);
    color: var(--dct-catalog-red);
}

.dct-catalog :is(.product-name, .dct-catalog-product-link, .filter-panel-item-toggle, .filter-panel-wrapper-toggle, .sorting select):focus-visible {
    outline: 2px solid var(--dct-catalog-red);
    outline-offset: 2px;
}

@media (min-width: 768px) {
    .dct-catalog .filter-panel:not(.is--sidebar) .filter-panel-items-container {
        display: flex;
        flex-wrap: wrap;
        gap: .5rem;
        margin-bottom: .35rem;
    }

    .dct-catalog .filter-panel:not(.is--sidebar) .filter-panel-item {
        margin: 0;
    }
}

@media (max-width: 767px) {
    .dct-catalog .cms-listing-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 389px) {
    .dct-catalog .cms-listing-col .product-box > .card-body {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto 1fr;
    }

    .dct-catalog .cms-listing-col .product-box .product-image-wrapper {
        aspect-ratio: 5 / 3;
    }

    .dct-catalog .cms-listing-col .product-box .product-name.stretched-link::after {
        inset-inline-end: var(--dct-catalog-card-padding);
        inset-block-end: auto;
        width: auto;
        aspect-ratio: 5 / 3;
    }
}
