/* Vehicle pages (/fahrzeuge …): kept in the shop's current look (Luma theme "hagl") until the full redesign. */
.vp {
    --vp-green: #057233;
    --vp-green-dark: #006400;
    --vp-tint: #f2f7f3;
    --vp-check: #fff8e5;
    --vp-check-text: #7a5200;
    --vp-border: #e8e8e9;
    --vp-input: #c2c2c2;
    --vp-text: #333;
    --vp-muted: #757575;
    --vp-blue: #00b9ff;
    color: var(--vp-text);
    font-size: 14px;
}
.vp a { text-decoration: none; }
.vp a:hover { text-decoration: underline; }
.vp ol, .vp ul { list-style: none; margin: 0; padding: 0; }
.vp li { margin: 0; }
.vp-icon { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
.vp-link { background: none; border: 0; padding: 0; color: var(--vp-green); font-weight: 600; font-size: 13px; cursor: pointer; box-shadow: none; }
.vp-link:hover { text-decoration: underline; background: none; border: 0; color: var(--vp-green); }
.vp-select {
    height: 32px;
    border: 1px solid var(--vp-input);
    background-color: #f0f0f0;
    padding: 0 30px 0 10px;
    font-size: 14px;
}

/* vehicle facts at the right end of the vehicle search bar (block "vehicle.facts", moved into Bmnnit_ModelSearch) */
.vp-facts { margin-left: auto; display: flex; flex-wrap: wrap; font-weight: 600; font-size: 14px; color: #333; }
.vp-facts > span + span::before { content: "·"; margin: 0 10px; color: #757575; font-weight: 400; }
.vp-facts--elektro > span:last-child { color: #006ab3; }
@media (max-width: 767px) { .vp-facts { display: none; } }

/* layout */
.vp-body { display: grid; grid-template-columns: 254px minmax(0, 1fr); gap: 48px; align-items: start; }
.vp-mobilebar, .vp-side__close, .vp-side__foot, .vp-overlay { display: none; }

/* sidebar = "Filter" like the category pages */
.vp-side__head strong { display: block; font-size: 15px; font-weight: 600; padding: 0 0 10px; }
.vp-current { padding: 4px 10px 14px; }
.vp-current__title { display: block; font-size: 13px; margin-bottom: 6px; }
.vp-current li { display: flex; align-items: center; gap: 6px; padding: 3px 0; font-size: 13px; }
.vp-current li a { color: var(--vp-muted); display: inline-flex; }
.vp-current li .vp-icon { width: 14px; height: 14px; }
.vp .vp-current__clear { display: inline-block; margin-top: 6px; color: var(--vp-green); font-size: 13px; }

.vp-facet { border-top: 1px solid var(--vp-border); }
.vp-facet:last-child { border-bottom: 1px solid var(--vp-border); }
.vp-facet summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 10px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    list-style: none;
}
.vp-facet summary::-webkit-details-marker { display: none; }
.vp-facet[open] summary .vp-icon { transform: rotate(180deg); }
.vp-facet__items { display: flex; flex-direction: column; gap: 8px; padding: 0 10px 14px; }
.vp-facet__items--scroll { max-height: 260px; overflow-y: auto; }
.vp-facet__child { padding-left: 16px; }
.vp-facet .vp-link { margin: -6px 10px 14px; }
.vp .vp-opt { color: var(--vp-green); }
.vp .vp-opt .count { color: var(--vp-muted); font-size: 13px; }
.vp .vp-opt .count::before { content: "("; }
.vp .vp-opt .count::after { content: ")"; }
.vp .vp-opt.is-active { font-weight: 700; }
.vp .vp-opt--back { color: var(--vp-muted); font-size: 13px; }
.vp .vp-opt--parent { font-weight: 700; }
.vp .vp-opt--check::before {
    content: "";
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-right: 7px;
    vertical-align: -1px;
    border: 1px solid var(--vp-input);
    background: #fff;
}
.vp .vp-opt--check.is-active::before {
    border-color: var(--vp-green);
    background: var(--vp-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* results */
.vp-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.vp-count span { color: var(--vp-muted); }
.vp-sort label { display: flex; align-items: center; gap: 10px; font-weight: 400; }

.vp .vp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
}
.vp .vp-grid .vp-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: auto;
    margin: 0;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--vp-border);
}
.vp-card__title a { display: block; color: var(--vp-green); font-weight: 700; font-size: 14px; line-height: 1.35; }
.vp-card__title span { font-size: 12px; color: var(--vp-muted); }

/* fit box: one line in the normal case, yellow + modal only when notes/positions differ per variant */
.vp-fit { background: var(--vp-tint); padding: 8px 10px; font-size: 12px; line-height: 1.45; }
.vp-fit__row { display: flex; gap: 6px; align-items: flex-start; color: var(--vp-green); font-size: 12px; }
.vp-fit__row .vp-icon { width: 15px; height: 15px; margin-top: 1px; }
.vp-fit__years { margin-top: 2px; }
.vp-fit__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.vp-fit__tags span { padding: 1px 7px; background: #fff; border: 1px solid var(--vp-input); font-size: 11px; }
.vp-fit__note { margin-top: 4px; color: #5c5c5c; }
.vp-fit--check { background: var(--vp-check); }
.vp-fit--check .vp-fit__row { color: var(--vp-check-text); }
.vp-fit__differs { margin-top: 6px; font-weight: 600; }
.vp-fit__preview li { color: #5c5c5c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp .vp-fit__open { margin-top: 4px; font-size: 12px; display: inline-flex; gap: 4px; align-items: center; }
.vp-fit__open .vp-icon { width: 12px; height: 12px; }

.vp-card__media { display: flex; gap: 12px; align-items: center; margin-top: auto; }
.vp-card__image { flex: 0 0 110px; }
.vp-card__image .product-image-container { width: 110px !important; }
.vp-card__buy { flex: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.vp-card__note { font-size: 12px; color: var(--vp-muted); }
.vp-card__tier { font-size: 12px; color: var(--vp-muted); }
.vp-card__cart { display: flex; gap: 6px; width: 100%; }
.vp-card__cart .qty { width: 64px; height: 40px; text-align: center; flex: none; }
.vp .vp-card__cart .tocart { flex: 1; height: 40px; }
.vp-card__price { min-width: 0; }
.vp-card__price .price-label { display: block; font-size: 11px; color: var(--vp-text); }
.vp-card__price:not(.vp-card__price--guest) .price { font-size: 22px; }
.vp .vp-card__login, .vp .vp-card__cart .tocart { background: var(--vp-green-dark); border-color: var(--vp-green-dark); padding: 8px 16px; font-size: 13px; }

.vp-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.vp-stock::before { content: ""; width: 10px; height: 10px; flex: none; }
.vp-stock--ok::before { background: #00ff24; }  /* shop colours, fixed (styleguide § 12) */
.vp-stock--order::before { background: #e100ff; }
.vp-stock--no::before { background: #fdc300; }

.vp-card__foot { border-top: 1px solid var(--vp-border); padding-top: 8px; min-height: 29px; font-size: 12px; }
.vp-card__foot:not(:has(.vp-card__variants)) { border-top-color: transparent; }
.vp .vp-card__variants { font-size: 12px; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.vp-card__variants .vp-icon { width: 12px; height: 12px; }
.vp-table--variants td { vertical-align: middle; }
.vp-table--variants .price-box, .vp-table--variants .price-container { margin: 0; }

/* modal with the fitment lines (only for the ~4 % of products whose notes/positions differ) */
.vp-dialog { width: min(780px, calc(100vw - 32px)); max-height: calc(100vh - 64px); padding: 0; border: 0; border-radius: 4px; color: var(--vp-text); }
.vp-dialog::backdrop { background: rgba(0, 0, 0, .4); }
.vp-dialog[open] { display: flex; flex-direction: column; }
.vp-dialog__head { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--vp-border); }
.vp-dialog__head strong { display: block; font-size: 18px; }
.vp-dialog__head span { font-size: 13px; color: var(--vp-muted); }
.vp .vp-dialog__x { background: none; border: 0; padding: 2px; box-shadow: none; color: var(--vp-text); }
.vp-dialog__x .vp-icon { width: 20px; height: 20px; }
.vp-dialog__body { overflow-y: auto; padding: 14px 20px; }
.vp-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.vp-table th { background: #f5f5f5; color: var(--vp-muted); font-size: 11px; text-align: left; padding: 6px 8px; }
.vp-table td { padding: 7px 8px; border-top: 1px solid #eee; vertical-align: top; }
.vp-dialog__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 20px; border-top: 1px solid var(--vp-border); font-size: 12px; color: var(--vp-muted); }

.vp-more-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 24px 0 8px; color: var(--vp-muted); font-size: 12px; }
.vp .vp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px;
    background: var(--vp-green-dark);
    color: #fff;
    font-weight: 600;
}
.vp .vp-button:hover { text-decoration: none; }
.vp .vp-button--ghost { background: #f0f0f0; border: 1px solid var(--vp-input); color: var(--vp-text); }

@media (max-width: 1023px) and (min-width: 768px) {
    .vp .vp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* mobile */
@media (max-width: 767px) {

    .vp-mobilebar {
        position: sticky;
        top: 0;
        z-index: 20;
        display: flex;
        gap: 10px;
        margin: 0 -15px 8px;
        padding: 8px 15px;
        background: #fff;
        border-bottom: 1px solid var(--vp-border);
    }
    .vp-mobilebar__filter {
        flex: 1;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: #fff;
        border: 1px solid var(--vp-green);
        color: var(--vp-green);
        font-weight: 600;
        font-size: 13px;
        box-shadow: none;
    }
    .vp-mobilebar__sort { flex: 0 0 112px; }
    .vp-mobilebar__filter { white-space: nowrap; gap: 6px; padding: 0 8px; }
    .vp-mobilebar__sort .vp-select { width: 100%; height: 40px; }
    .vp-badge { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--vp-green); color: #fff; font-size: 11px; font-weight: 700; }

    .vp-active {
        display: flex;
        gap: 8px;
        margin: 0 -15px 10px;
        padding: 0 15px 2px;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .vp .vp-chip {
        display: inline-flex;
        flex: none;
        align-items: center;
        gap: 6px;
        height: 32px;
        padding: 0 8px 0 10px;
        background: #eaf4ee;
        color: var(--vp-green-dark);
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
    }
    .vp .vp-chip .vp-icon { width: 14px; height: 14px; }
    .vp .vp-chip--clear { background: #fff; border: 1px solid var(--vp-input); color: var(--vp-text); padding: 0 10px; }

    .vp-body { display: block; }
    .vp-sort { display: none; }
    .vp-toolbar { margin-bottom: 10px; font-size: 13px; color: var(--vp-muted); }
    .vp .vp-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    /* theme reserves 100px above the columns for the category toolbar; the vehicle page has its own */
    .haglmodelpages-page-view.page-products .columns { padding-top: 0; }

    .vp-side {
        position: fixed;
        inset: 0;
        z-index: 1001;
        display: flex;
        flex-direction: column;
        background: #fff;
        transform: translateY(100%);
        transition: transform .25s ease;
        visibility: hidden;
    }
    .vp.is-filter-open .vp-side { transform: none; visibility: visible; }
    .vp.is-filter-open .vp-overlay { display: block; position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .45); }
    .vp-side__head { display: flex; align-items: center; height: 56px; padding: 0 16px; border-bottom: 1px solid var(--vp-border); }
    .vp-side__head strong { flex: 1; padding: 0; font-size: 16px; font-weight: 700; }
    .vp .vp-side__close { display: block; background: none; border: 0; padding: 4px; color: var(--vp-text); box-shadow: none; }
    .vp-side__close .vp-icon { width: 22px; height: 22px; }
    .vp-side__body { overflow-y: auto; padding: 4px 16px; flex: 1; }
    .vp-side__foot { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--vp-border); }
    .vp-side__foot .vp-button { height: 44px; }
    .vp-side__foot .vp-button:not(.vp-button--ghost) { flex: 1; }
    html.vp-noscroll, html.vp-noscroll body { overflow: hidden; }

    .vp-dialog { width: 100vw; max-width: 100vw; max-height: 90vh; margin: auto 0 0; border-radius: 0; }
    .vp-table th:nth-child(2), .vp-table td:nth-child(2) { white-space: nowrap; }
}

/* while a filter change is loading */
.vp.is-loading .vp-results { opacity: .5; pointer-events: none; transition: opacity .15s .1s; }

/* /fahrzeuge, Hersteller, Hubraum: manufacturer/model buttons two per row on phones (design "Mobil – /fahrzeuge") */
@media (max-width: 767px) {
    .fahrzeug-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
    .fahrzeug-grid a { font-size: 1.5rem !important; padding: .8rem .4rem !important; word-break: break-word; }
}

/* vehicle pages: two (empty) shop-wide CMS widgets under the breadcrumb add 2 × 20px before the vehicle search */
.haglmodelpages-page-view .breadcrumbs { margin-bottom: 10px; }
.haglmodelpages-page-view .breadcrumbs ~ .widget.block-static-block { margin-bottom: 0; }

/* tiles on the manufacturer page (ccm) and the ccm page (models) – design "Modell-Boxen", styleguide sizes, square like the shop */
.vt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; list-style: none; margin: 0 0 40px; padding: 0; }
.vt-grid > li { margin: 0; }
.vt {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    height: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #057233;
    color: #333;
}
a.vt:hover, a.vt:focus { background: #eaf4ee; text-decoration: none; }
.vt__icon { flex: none; width: 20px; height: 20px; color: #057233; }
.vt__icon--chevron { width: 18px; height: 18px; }
.vt__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vt__name { font-size: 15px; font-weight: 700; line-height: 1.3; color: #006400; overflow-wrap: anywhere; }
.vt__meta { font-size: 12px; color: #757575; }
/* manufacturers keep the shop's upper case names */
.vt-grid--makers .vt__name { text-transform: uppercase; }
.vt--elektro { border-color: #b3d1ea; }
.vt--elektro .vt__icon:not(.vt__icon--chevron) { color: #006ab3; }
.vt--elektro .vt__meta::before { content: none; }
.vt-grid > li.vt-first { order: -1; }
.vt--empty { background: #f0f0f0; border-color: #dadada; }
.vt--empty .vt__name, .vt--empty .vt__icon { color: #757575; }

@media (max-width: 1023px) {
    .vt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .vt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .vt { min-height: 60px; padding: 10px; }
    .vt__icon { display: none; }
    .vt__name { font-size: 14px; }
}

/* parts description from our own data, below the tiles */
.vp-about { margin: 32px 0 8px; padding-top: 20px; border-top: 1px solid #e8e8e9; }
.vp-about h2 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.vp-about p { margin: 0; max-width: 820px; line-height: 1.6; color: #333; }

/* layout B: image + stock/price, variants link, then the action over the full width as last element */
.vp-card__action { display: flex; }
.vp-card__action .vp-card__cart { width: 100%; }
.vp .vp-card__action .vp-card__login { width: 100%; text-align: center; height: 40px; display: flex; align-items: center; justify-content: center; }
.vp-card__foot { min-height: 25px; padding-top: 6px; }

/* variants modal: price (with VAT note) and cart / Anmelden per row */
.vp-table__num { text-align: right; }
.vp-table--variants .price-box { margin: 0; text-align: right; }
.vp-table--variants .price-label { display: block; position: static !important; width: auto !important; height: auto !important; clip: auto !important; overflow: visible !important; font-size: 11px; color: #707070; }
.vp-table--variants .old-price, .vp-table--variants .discount { font-size: 12px; }
.vp-table--variants .special-price .price, .vp-table--variants .price-final_price .price { font-size: 15px; font-weight: 700; }
.vp-card__cart--row { width: auto; flex-wrap: nowrap; }
.vp-card__cart--row .qty { width: 56px; height: 36px; }
.vp .vp-card__cart--row .tocart { height: 36px; flex: none; white-space: nowrap; }
.vp .vp-table--variants .vp-card__login { white-space: nowrap; padding: 8px 14px; }
.vp-dialog:has(.vp-table--variants) { width: min(1040px, calc(100vw - 32px)); }
.vp-table--variants td:first-child { min-width: 220px; }
.vp-table--variants td:last-child { width: 1%; white-space: nowrap; }
.vp .vp-table--variants .vp-card__cart--row .tocart { width: auto !important; min-width: 0 !important; padding: 0 14px !important; }
.vp-table--variants { table-layout: auto; width: 100%; }

/* view toggle (list / tiles), square like the styleguide */
.vp-toolbar { flex-wrap: wrap; }
.vp-view { display: flex; border: 1px solid var(--vp-border); }
.vp .vp-view__btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--vp-muted); background: #fff; }
.vp .vp-view__btn.is-active { background: var(--vp-green); color: #fff; }
.vp-view__btn .vp-icon { width: 18px; height: 18px; }

/* List view = styleguide § 11 table, variant A (design board "Listenzeile angemeldet"):
   thumb | Artikel (+ Varianten) | Passt für | Verfügbarkeit · Preis | Menge + Warenkorb.
   Same card markup as the tiles, only laid out differently; variants open as sub-rows. */
.vp-list-head { display: none; }
.vp-subrows[hidden] { display: none; }
/* compact price in the list: final price, then "UVP … · Rabatt …", then the VAT note (unchanged wording) */
.vp-grid--list .price-box { display: flex; flex-direction: column; align-items: flex-end; }
.vp-grid--list .price-box .special-price,
.vp-grid--list .price-box .price-container { display: contents; }
.vp-grid--list .price-box .price-wrapper { order: 1; }
.vp-grid--list .price-box > div { order: 2; display: flex; gap: 6px; font-size: 12px; color: #00b9ff; }
.vp-grid--list .price-box > div .price-container { display: inline; }
.vp-grid--list .price-box > div .old-price .price, .vp-grid--list .price-box > div .price-label { font-size: 12px !important; font-weight: 400; padding: 0; }
.vp-grid--list .price-box > div .discount::before { content: "· "; }
.vp-grid--list .price-box .special-price .price-label,
.vp-grid--list .price-box > .price-container .price-label { order: 3; }
.vp-grid--list .vp-card__price:not(.vp-card__price--guest) .price-wrapper .price { font-size: 18px; font-weight: 700; }
.vp-subrow__name a { color: var(--vp-green); font-size: 13px; }
.vp-subrow__name span { display: block; font-size: 12px; color: var(--vp-muted); }
.vp-subrow__buy { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }

@media (min-width: 768px) {
    .vp-list-head, .vp .vp-grid--list .vp-card {
        display: grid; grid-template-columns: 56px minmax(0, 1.2fr) minmax(0, 1fr) 200px 250px; column-gap: 16px;
    }
    .vp-list-head {
        padding: 10px 12px; background: #f6f6f6; border: 1px solid var(--vp-border); border-bottom: 0;
        font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--vp-muted);
    }
    .vp-list-head span:nth-child(4) { text-align: right; }
    .vp .vp-grid.vp-grid--list { grid-template-columns: minmax(0, 1fr); gap: 0; border: 1px solid var(--vp-border); }
    .vp .vp-grid--list .vp-card {
        grid-template-areas: "img title fit buy action" "img foot fit buy action" "sub sub sub sub sub";
        grid-template-rows: auto 1fr auto;
        row-gap: 4px; padding: 12px; border: 0; border-bottom: 1px solid var(--vp-border);
    }
    .vp .vp-grid--list .vp-card:last-child { border-bottom: 0; }
    .vp-grid--list .vp-card__title { grid-area: title; }
    .vp-grid--list .vp-card__title a { font-size: 13px; }
    .vp-grid--list .vp-card__media { display: contents; }
    .vp-grid--list .vp-card__image { grid-area: img; align-self: start; }
    .vp-grid--list .vp-card__image .product-image-container { width: 56px !important; }
    .vp-grid--list .vp-card__foot { grid-area: foot; border-top: 0; padding-top: 0; min-height: 0; }
    .vp-grid--list .vp-fit { grid-area: fit; align-self: start; background: none; padding: 0; }
    .vp-grid--list .vp-fit--check .vp-fit__row { color: var(--vp-check-text); }
    .vp-grid--list .vp-fit__differs { margin-top: 2px; font-weight: 400; color: var(--vp-check-text); }
    .vp-grid--list .vp-fit__preview { display: none; }
    .vp-grid--list .vp-card__buy { grid-area: buy; align-self: start; gap: 2px; }
    .vp-grid--list .vp-card__action { grid-area: action; align-self: start; justify-content: flex-end; margin-top: 18px; }
    .vp-grid--list .vp-card__action .qty, .vp-subrow .qty { width: 56px; height: 36px; }
    .vp .vp-grid--list .vp-card__action .tocart, .vp .vp-grid--list .vp-card__action .vp-card__login,
    .vp .vp-subrow .tocart, .vp .vp-subrow .vp-card__login { height: 36px; }
    .vp-grid--list .vp-subrows { grid-area: sub; margin: 8px -12px -12px; }
    .vp-subrow {
        display: grid; grid-template-columns: minmax(0, 1fr) 200px 250px; column-gap: 16px; align-items: start;
        padding: 10px 12px 10px 84px; background: #f6f6f6; border-top: 1px solid var(--vp-border);
    }
    .vp-subrow__action { display: flex; justify-content: flex-end; margin-top: 18px; }
}

/* mobile list: compact row - thumb + name/fit, stock left / price right, cart full width */
@media (max-width: 767px) {
    .vp .vp-grid--list .vp-card {
        display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 12px; row-gap: 8px;
        grid-template-areas: "img title" "img fit" "buy buy" "action action" "foot foot" "sub sub";
    }
    .vp-grid--list .vp-card__title { grid-area: title; }
    .vp-grid--list .vp-card__media { display: contents; }
    .vp-grid--list .vp-card__image { grid-area: img; }
    .vp-grid--list .vp-card__image .product-image-container { width: 56px !important; }
    .vp-grid--list .vp-fit { grid-area: fit; background: none; padding: 0; }
    .vp-grid--list .vp-fit__preview { display: none; }
    .vp-grid--list .vp-card__buy { grid-area: buy; flex-direction: row; justify-content: space-between; align-items: flex-end; }
    .vp-grid--list .vp-card__action { grid-area: action; }
    .vp-grid--list .vp-card__foot { grid-area: foot; border-top: 0; padding-top: 0; min-height: 0; }
    .vp-grid--list .vp-subrows { grid-area: sub; display: flex; flex-direction: column; gap: 8px; }
    .vp-subrow { display: flex; flex-direction: column; gap: 6px; padding: 10px; background: #f6f6f6; }
    .vp-subrow__buy { flex-direction: row; justify-content: space-between; align-items: flex-end; }
    .vp-subrow__action .vp-card__cart { width: 100%; }
    .vp .vp-subrow__action .tocart { flex: 1; }
    .vp .vp-subrow__action .vp-card__login { width: 100%; text-align: center; }
}

/* list polish: UVP on one line, labels right-aligned, links look like links */
.vp-grid--list .price-box { text-align: right; }
.vp-grid--list .price-box .old-price .price-container { display: inline-flex !important; flex-direction: row; gap: 4px; align-items: baseline; }
.vp-grid--list .price-box .old-price .price-wrapper { order: 0; }
.vp-grid--list .price-box > div { align-items: baseline; justify-content: flex-end; flex-wrap: wrap; }
.vp-grid--list .price-box .price-label { white-space: normal; text-align: right; }
.vp .vp-grid--list button.vp-card__variants,
.vp .vp-grid--list button.vp-card__variants:hover,
.vp .vp-grid--list button.vp-card__variants[aria-expanded="true"] {
    background: none; border: 0; padding: 0; box-shadow: none; color: var(--vp-green); font-size: 12px; font-weight: 600;
}
.vp .vp-grid--list .vp-fit__open { display: inline; text-align: left; }
.vp-grid--list .vp-fit__open .vp-icon { display: inline-block; vertical-align: -1px; }
.vp .vp-grid--list .vp-fit__open { white-space: nowrap; }

/* Variants on the tiles: desktop opens the modal, phones expand sub-rows under the tile
   (design board "Mobil – Liste A / Varianten aufgeklappt") - no side-scrolling table on phones */
.vp-grid:not(.vp-grid--list) .vp-card__variants--inline { display: none; }
.vp-grid:not(.vp-grid--list) .vp-subrows { display: none; }
@media (max-width: 767px) {
    .vp-grid:not(.vp-grid--list) .vp-card__variants--modal { display: none; }
    .vp .vp-grid:not(.vp-grid--list) .vp-card__variants--inline { display: inline-flex; }
    .vp-grid:not(.vp-grid--list) .vp-subrows:not([hidden]) { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
}
