/* =========================================================================
   TT Ajax Profisuche – Such-Layer
   Farben/Größen kommen als CSS-Variablen aus den Plugin-Einstellungen.
   ========================================================================= */
.ttpf-layer, .ttpf-layer *, .ttpf-layer *::before, .ttpf-layer *::after { box-sizing: border-box; }
.ttpf-layer {
    --ttpf-pad: 32px;
    position: fixed; z-index: 100050; top: 80px; left: 50%;
    width: var(--ttpf-w, 1000px); max-width: calc(100vw - 32px);
    max-height: calc(100vh - 96px);
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    background: var(--ttpf-bg, #fff); color: var(--ttpf-text, #323334);
    border: 1px solid rgba(0, 0, 0, .05); border-radius: var(--ttpf-r, 8px);
    box-shadow: 0 19px 38px rgba(0, 0, 0, .05), 0 15px 12px rgba(0, 0, 0, .05), 0 4px 30px rgba(0, 0, 0, .08);
    font-size: 16px; line-height: 1.5; text-align: left;
    padding: 22px 0; opacity: 0; transform: translateY(-6px);
    transition: opacity .15s ease, transform .15s ease;
}
.ttpf-layer[hidden] { display: none !important; }
.ttpf-layer.is-open { opacity: 1; transform: none; }
.ttpf-layer button { font: inherit; color: inherit; cursor: pointer; }
.ttpf-layer img { max-width: 100%; }
.ttpf-ic { display: block; flex: 0 0 auto; }
/* Abdunkelung: Standard kommt aus NOVA/Bootstrap (.modal-backdrop.fade.show);
   dies ist nur die Rückfallebene für Templates ohne diese Klassen.
   :where() hat Spezifität 0 – die Werte des Templates (z. B. NOVA: opacity .8)
   haben also immer Vorrang. */
:where(.ttpf-nova-backdrop) { position: fixed; top: 0; left: 0; z-index: 1020; width: 100vw; height: 100vh; background-color: #000; }
:where(.ttpf-nova-backdrop.fade) { opacity: 0; transition: opacity .15s linear; }
:where(.ttpf-nova-backdrop.show) { opacity: .5; }
body.ttpf-search-open .ttpf-nova-backdrop { pointer-events: auto; }
html.ttpf-noscroll, html.ttpf-noscroll body { overflow: hidden !important; }
/* Gesperrter Suchbutton, solange die Mindestzeichenzahl nicht erreicht ist */
.ttpf-submit-off { opacity: .55; cursor: not-allowed; }

/* ---------------------------------------------------------------- Klickbare Texte */
.ttpf-layer .ttpf-link { color: var(--ttpf-link, #1b3264) !important; transition: color .15s, border-color .15s; }
.ttpf-layer .ttpf-link:hover, .ttpf-layer .ttpf-link:focus-visible { color: var(--ttpf-link-h, #e65c00) !important; }

/* ---------------------------------------------------------------- Kopf */
.ttpf-head { display: flex; align-items: center; gap: 12px; padding: 0 var(--ttpf-pad); min-height: 32px; }
.ttpf-msearch { display: none; }
.ttpf-suggestions { flex: 1 1 auto; min-width: 0; display: flex; gap: 8px; }
.ttpf-sugg {
    display: inline-flex; align-items: center; height: 30px; padding: 0 12px; max-width: 100%;
    border: 1px solid currentColor; border-radius: 800px; background: transparent;
    font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ttpf-sugg strong { font-weight: 700; }
.ttpf-close {
    margin-left: auto; width: 32px; height: 32px; padding: 0; border: 0; background: transparent;
    display: inline-flex; align-items: center; justify-content: center; color: var(--ttpf-close, #6b7280) !important;
}
.ttpf-close:hover, .ttpf-close:focus-visible { color: var(--ttpf-close-h, #1f2937) !important; }
.ttpf-close .ttpf-ic { width: 30px; height: 30px; stroke-width: 1.5; }

.ttpf-body { padding: 0; }

/* ---------------------------------------------------------------- Startansicht */
.ttpf-start { padding: 8px var(--ttpf-pad) 8px; }
.ttpf-hint {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px;
    padding: 18px 24px; margin: 8px 0 24px;
    border: 1px solid var(--ttpf-line, #cbcccd); border-radius: var(--ttpf-r, 8px);
}
.ttpf-hint__title { font-size: 16px; font-weight: 700; flex: 1 1 260px; }
.ttpf-hint__dots { display: flex; gap: 6px; }
.ttpf-hint__dots span { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ttpf-line, #cbcccd); transition: all .15s; }
.ttpf-hint__dots span.is-on { background: var(--ttpf-accent, #1b3264); border-color: var(--ttpf-accent, #1b3264); }
.ttpf-hint__sub { flex: 1 1 100%; font-size: 13px; color: var(--ttpf-muted, #737678); }

.ttpf-sec { margin: 0 0 28px; }
.ttpf-sec__title { font-size: 18px; font-weight: 700; margin: 0 0 12px; padding: 0; color: var(--ttpf-text, #323334); line-height: 1.4; }

/* ---------------------------------------------------------------- Slider */
.ttpf-car { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ttpf-car__track {
    flex: 1 1 auto; min-width: 0; display: flex; gap: 12px; padding: 4px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.ttpf-car__track::-webkit-scrollbar { display: none; }
.ttpf-car__item { flex: 0 0 auto; scroll-snap-align: start; display: flex; }
.ttpf-car__arrow {
    flex: 0 0 40px; width: 40px; height: 40px; padding: 0; border: 1px solid var(--ttpf-line, #e5e7eb); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 0;
    background: var(--ttpf-arrow-bg, #fff); color: var(--ttpf-arrow-ic, #1f2937) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08); transition: background-color .15s, color .15s;
}
.ttpf-car__arrow:hover:not(:disabled), .ttpf-car__arrow:focus-visible {
    background: var(--ttpf-arrow-bg-h, #1b3264); color: var(--ttpf-arrow-ic-h, #fff) !important;
}
.ttpf-car__arrow:disabled { opacity: .35; cursor: default; }
.ttpf-car.is-static .ttpf-car__arrow { visibility: hidden; }
.ttpf-car--products .ttpf-car__item { width: var(--ttpf-slide, 220px); }
.ttpf-car--products .ttpf-card { width: 100%; }

/* Marken-/Kategorie-Kachel */
.ttpf-tile {
    display: flex; align-items: center; gap: 12px; width: 222px; height: 82px; padding: 8px 14px;
    border: 1px solid var(--ttpf-line, #cbcccd); border-radius: var(--ttpf-card-r, 4px);
    background: #fff; color: var(--ttpf-text, #323334) !important; text-decoration: none !important; text-align: left;
    transition: border-color .15s, box-shadow .15s;
}
.ttpf-tile:hover, .ttpf-tile:focus-visible { border-color: var(--ttpf-accent, #1b3264); box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
.ttpf-tile__media { flex: 0 0 64px; height: 56px; display: flex; align-items: center; justify-content: center; }
.ttpf-tile__media img { max-width: 64px; max-height: 56px; object-fit: contain; }
.ttpf-tile__ph {
    width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: #f3f4f5; color: var(--ttpf-muted, #737678); font-weight: 700; font-size: 15px;
}
.ttpf-tile__name { font-size: 15px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ttpf-car--cats .ttpf-tile { width: 200px; }

/* ---------------------------------------------------------------- Inhalt */
.ttpf-content {
    display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px;
    padding: 5px var(--ttpf-pad) 32px; align-items: start;
}
.ttpf-content.no-aside { grid-template-columns: minmax(0, 1fr); }

/* Hersteller-Leiste */
.ttpf-guided {
    grid-column: 1 / -1; display: flex; align-items: center; gap: 24px;
    padding: 24px 32px; margin-top: 12px;
    border: 1px solid var(--ttpf-line, #cbcccd); border-radius: var(--ttpf-r, 8px); background: #fff;
}
.ttpf-guided__head { flex: 0 0 auto; display: flex; flex-direction: column; min-width: 150px; }
.ttpf-guided__title { font-size: 16px; font-weight: 700; }
.ttpf-guided__sub { font-size: 14.4px; }
.ttpf-guided__skip {
    align-self: flex-start; padding: 8px 0; margin-top: 4px; border: 0; background: transparent; font-size: 13px;
}
.ttpf-guided__skip:hover { text-decoration: underline; }
.ttpf-guided__content { flex: 1 1 auto; min-width: 0; }
.ttpf-guided .ttpf-tile { width: 222px; }

/* ---------------------------------------------------------------- Filter */
.ttpf-aside { min-width: 0; }
.ttpf-aside__head { display: none; }
.ttpf-facet { margin: 0 0 24px; }
.ttpf-facet__title {
    display: flex; align-items: center; justify-content: space-between; gap: 4px; width: 100%;
    height: 32px; padding: 0; border: 0; background: transparent; text-align: left;
}
.ttpf-facet__title span { font-size: 18px; font-weight: 700; line-height: 32px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ttpf-fsearch {
    display: flex; align-items: center; gap: 10px; height: 32px; margin: 8px 0; padding: 6px 8px;
    border: 1px solid var(--ttpf-line, #cbcccd); border-radius: 4px; background: #fff; color: var(--ttpf-muted, #737678);
}
.ttpf-fsearch__input {
    flex: 1 1 auto; min-width: 0; border: 0 !important; outline: 0; padding: 0 !important; margin: 0; height: 18px;
    background: transparent !important; box-shadow: none !important; font: inherit; font-size: 14px; color: var(--ttpf-text, #323334);
}
.ttpf-fsearch__input::-webkit-search-cancel-button { display: none; }
.ttpf-fopts--frame { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 12px 0 8px; }
.ttpf-frame {
    display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 8px; max-width: 100%;
    border: 1px solid var(--ttpf-muted, #737678); border-radius: 6px; background: #fff; font-size: 14px;
}
.ttpf-frame__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ttpf-frame__count { display: none; }
.ttpf-frame:hover { border-color: var(--ttpf-text, #323334); }
.ttpf-frame.is-active { border-color: var(--ttpf-chip, #1b3264); box-shadow: inset 0 0 0 1px var(--ttpf-chip, #1b3264); color: var(--ttpf-chip, #1b3264) !important; }
.ttpf-fopts--list { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.ttpf-term {
    display: flex; align-items: center; gap: 8px; width: 100%; height: 32px; padding: 0 8px;
    border: 0; border-radius: 4px; background: transparent; font-size: 14px; text-align: left;
}
.ttpf-term:hover { background: #f5f5f6; }
.ttpf-term__check {
    flex: 0 0 16px; width: 16px; height: 16px; border: 1px solid var(--ttpf-muted, #737678); border-radius: 3px;
    display: flex; align-items: center; justify-content: center; background: #fff; color: #fff;
}
.ttpf-term.is-active .ttpf-term__check { background: var(--ttpf-chip, #1b3264); border-color: var(--ttpf-chip, #1b3264); }
.ttpf-term__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ttpf-term.is-active .ttpf-term__name { font-weight: 700; }
.ttpf-term__count { flex: 0 0 auto; color: var(--ttpf-muted, #737678); font-size: 12px; }
.ttpf-fcount { margin: 8px 0 0; font-size: 12px; color: var(--ttpf-muted, #737678); }
.ttpf-more {
    display: flex; align-items: center; gap: 4px; margin-top: 4px; padding: 0; border: 0; background: transparent; font-size: 12px;
}
.ttpf-more[hidden] { display: none; }

/* Preis-Slider */
.ttpf-range { position: relative; height: 32px; margin: 12px 8px 8px; }
.ttpf-range__track { position: absolute; left: 0; right: 0; top: 14px; height: 4px; border-radius: 2px; background: var(--ttpf-line, #cbcccd); }
.ttpf-range__fill { position: absolute; top: 0; bottom: 0; background: var(--ttpf-chip, #1b3264); border-radius: 2px; }
.ttpf-range__input {
    position: absolute; left: -8px; right: -8px; width: calc(100% + 16px); top: 6px; height: 20px; margin: 0; padding: 0;
    background: transparent; pointer-events: none; -webkit-appearance: none; appearance: none; border: 0;
}
.ttpf-range__input:focus { outline: none; }
.ttpf-range__input::-webkit-slider-runnable-track { background: transparent; height: 20px; }
.ttpf-range__input::-moz-range-track { background: transparent; height: 20px; }
.ttpf-range__input::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; pointer-events: auto; cursor: grab;
    width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--ttpf-chip, #1b3264); border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.ttpf-range__input::-moz-range-thumb {
    pointer-events: auto; cursor: grab; width: 16px; height: 16px; border-radius: 50%;
    background: var(--ttpf-chip, #1b3264); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.ttpf-range__input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(0, 0, 0, .15); }
.ttpf-prices { display: flex; align-items: center; gap: 8px; }
.ttpf-prices__dash { color: var(--ttpf-muted, #737678); }
.ttpf-pbox {
    flex: 1 1 0; min-width: 0; display: flex; align-items: center; height: 36px; margin: 0;
    border: 1px solid var(--ttpf-line, #cbcccd); border-radius: 4px; background: #fff; overflow: hidden;
}
.ttpf-pbox__input {
    flex: 1 1 auto; min-width: 0; height: 100%; border: 0 !important; padding: 0 8px !important; margin: 0;
    font: inherit; font-size: 14px; text-align: right; background: transparent !important; box-shadow: none !important; -moz-appearance: textfield;
}
.ttpf-pbox__input::-webkit-outer-spin-button, .ttpf-pbox__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ttpf-pbox__cur { flex: 0 0 auto; padding: 0 10px; height: 100%; display: flex; align-items: center; background: #f5f5f6; font-size: 14px; color: var(--ttpf-muted, #737678); }

/* ---------------------------------------------------------------- Ergebnisse */
.ttpf-main { min-width: 0; }
.ttpf-meta {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px;
    min-height: 36px; padding: 4px 0 0; margin-bottom: 16px; font-size: 14px;
}
.ttpf-meta__count strong { font-weight: 700; }
.ttpf-meta__tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ttpf-reset { padding: 0; border: 0; background: transparent; font-size: 13px; margin-left: auto; }
.ttpf-reset:hover { text-decoration: underline; }
.ttpf-filterbtn { display: none; }
.ttpf-sort { position: relative; }
.ttpf-sort__btn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 0; border: 0; background: transparent; font-size: 14px; }
.ttpf-sort__label { font-weight: 700; }
.ttpf-sort__menu {
    position: absolute; right: 0; top: 100%; z-index: 5; min-width: 200px; margin: 4px 0 0; padding: 6px 0; list-style: none;
    background: #fff; border: 1px solid var(--ttpf-line, #cbcccd); border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
}
.ttpf-sort__menu[hidden] { display: none; }
.ttpf-sort__opt { padding: 8px 14px; font-size: 14px; cursor: pointer; }
.ttpf-sort__opt:hover, .ttpf-sort__opt:focus { background: #f5f5f6; outline: 0; }
.ttpf-sort__opt.is-active { color: var(--ttpf-accent, #1b3264); font-weight: 700; }

.ttpf-note {
    margin: 0 0 16px; padding: 10px 14px; font-size: 14px; border-radius: 6px;
    background: #f5f5f6; border-left: 3px solid var(--ttpf-accent, #1b3264);
}
.ttpf-empty { padding: 40px 0; text-align: center; }
.ttpf-empty__title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.ttpf-empty__sugg { padding: 0; border: 0; background: transparent; font-size: 14px; }
.ttpf-empty__sugg strong { text-decoration: underline; }

.ttpf-grid { display: grid; grid-template-columns: repeat(var(--ttpf-cols, 2), minmax(0, 1fr)); gap: 16px; padding: 2px; }
.ttpf-layer.is-loading .ttpf-main, .ttpf-layer.is-loading .ttpf-aside { opacity: .55; transition: opacity .15s; pointer-events: none; }

/* Artikelkarte: Bild · Titel · Lieferstatus · Preis · Menge + Button */
.ttpf-card {
    position: relative; display: flex; flex-direction: column; min-width: 0; padding: 20px;
    container-type: inline-size;
    border: 1px solid var(--ttpf-card-bc, #eceef2); border-radius: var(--ttpf-card-r, 16px);
    background: var(--ttpf-card-bg, #fff); font-size: 14px; transition: box-shadow .2s, transform .2s;
}
.ttpf-layer.has-card-shadow .ttpf-card:hover { box-shadow: 0 10px 30px rgba(17, 24, 39, .10); }
.ttpf-card__media { position: relative; display: block; width: 100%; padding-bottom: 100%; margin-bottom: 16px; }
.ttpf-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ttpf-card__noimg { position: absolute; inset: 0; background: #f5f5f6; border-radius: 8px; }
.ttpf-flag {
    position: absolute; top: 14px; left: 14px; z-index: 1; padding: 3px 10px; border-radius: 999px;
    background: var(--ttpf-flag-bg, #e11d48); color: var(--ttpf-flag-tx, #fff); font-size: 12px; font-weight: 700; line-height: 18px;
}
.ttpf-card__body { flex: 1 1 auto; min-width: 0; }
.ttpf-card__title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: calc(2 * 1.35em);
    color: var(--ttpf-name-c, #1f2937) !important; font-size: var(--ttpf-name-s, 16px); font-weight: var(--ttpf-name-w, 700);
    line-height: 1.35; text-decoration: none !important; word-break: break-word; transition: color .15s;
}
.ttpf-card__title:hover, .ttpf-card__title:focus-visible { color: var(--ttpf-name-c-h, #1b3264) !important; }
.ttpf-card__mfr { color: var(--ttpf-mfr-c, #6b7280); font-size: var(--ttpf-mfr-s, 12px); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 2px; }
.ttpf-card__sku { color: var(--ttpf-sku-c, #6b7280); font-size: var(--ttpf-sku-s, 12px); margin-top: 4px; }
.ttpf-card__han { color: var(--ttpf-han-c, #6b7280); font-size: var(--ttpf-han-s, 12px); margin-top: 2px; }
.ttpf-card__gtin { color: var(--ttpf-gtin-c, #6b7280); font-size: var(--ttpf-gtin-s, 12px); margin-top: 2px; }
.ttpf-card__foot { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.ttpf-stock { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.3; }
.ttpf-stock__dot { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.ttpf-stock--ok { color: var(--ttpf-stock-ok, #16a34a); }
.ttpf-stock--warn { color: var(--ttpf-stock-warn, #f59e0b); }
.ttpf-stock--no { color: var(--ttpf-stock-no, #dc2626); }
.ttpf-card__prices { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ttpf-card__pricerow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.ttpf-card__uvp { color: var(--ttpf-uvp-c, #6b7280); font-size: var(--ttpf-uvp-s, 12px); line-height: 1.3; text-decoration: line-through; }
.ttpf-card__base { color: var(--ttpf-base-c, #6b7280); font-size: var(--ttpf-base-s, 12px); line-height: 1.35; }
.ttpf-card__price { color: var(--ttpf-price-c, #111827); font-size: var(--ttpf-price-s, 20px); font-weight: 700; white-space: nowrap; line-height: 1.25; }
.ttpf-card__price.is-sale { color: var(--ttpf-flag-bg, #e11d48); }
.ttpf-card__old { color: var(--ttpf-muted, #6b7280); font-size: 13px; text-decoration: line-through; white-space: nowrap; }
.ttpf-card__actions { display: flex; align-items: stretch; gap: 12px; margin-top: 6px; }

/* Buttons (Warenkorb / Zum Artikel) */
.ttpf-btn {
    flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 20px;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    border: 0; border-radius: var(--ttpf-btn-r, 999px); font-size: 16px; font-weight: 500; line-height: 1.2;
    text-decoration: none !important; cursor: pointer; transition: background-color .15s, color .15s;
}
.ttpf-btn__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ttpf-btn .ttpf-ic { transition: color .15s; }
.ttpf-btn--cart { background: var(--ttpf-cart-bg, #1b3264); color: var(--ttpf-cart-tx, #fff) !important; }
.ttpf-btn--cart .ttpf-ic { color: var(--ttpf-cart-ic, #fff); }
.ttpf-btn--cart:hover, .ttpf-btn--cart:focus-visible { background: var(--ttpf-cart-bg-h, #132447); color: var(--ttpf-cart-tx-h, #fff) !important; }
.ttpf-btn--cart:hover .ttpf-ic, .ttpf-btn--cart:focus-visible .ttpf-ic { color: var(--ttpf-cart-ic-h, #fff); }
.ttpf-btn--link { background: var(--ttpf-lbtn-bg, #1b3264); color: var(--ttpf-lbtn-tx, #fff) !important; }
.ttpf-btn--link .ttpf-ic { color: var(--ttpf-lbtn-ic, #fff); }
.ttpf-btn--link:hover, .ttpf-btn--link:focus-visible { background: var(--ttpf-lbtn-bg-h, #132447); color: var(--ttpf-lbtn-tx-h, #fff) !important; }
.ttpf-btn--link:hover .ttpf-ic, .ttpf-btn--link:focus-visible .ttpf-ic { color: var(--ttpf-lbtn-ic-h, #fff); }
.ttpf-btn:disabled { opacity: .6; cursor: wait; }
.ttpf-btn .ttpf-ic--lib { width: auto; height: 1.2em; flex: 0 0 auto; }
.ttpf-btn--icononly { flex: 1 1 auto; padding: 0 16px; }
.ttpf-btn--icononly .ttpf-ic--lib { height: 1.4em; }
.ttpf-btn--empty { min-width: 48px; }

/* Mengenwahl */
.ttpf-qty {
    flex: 0 0 auto; display: inline-flex; align-items: center; height: 48px; padding: 0 4px;
    border: 1.5px solid var(--ttpf-qty-bc, #1f2937); border-radius: var(--ttpf-btn-r, 999px);
    background: var(--ttpf-qty-bg, #fff); color: var(--ttpf-qty-tx, #1f2937);
}
.ttpf-qty__btn {
    width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: transparent; font-size: 0;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--ttpf-qty-ic, #1f2937) !important; transition: background-color .15s, color .15s;
}
.ttpf-qty__btn:hover:not(:disabled), .ttpf-qty__btn:focus-visible { background: var(--ttpf-qty-bg-h, #f3f4f6); color: var(--ttpf-qty-ic-h, #1b3264) !important; }
.ttpf-qty__btn:disabled { opacity: .35; cursor: default; }
.ttpf-qty__input {
    width: 42px; height: 38px; padding: 0 !important; margin: 0; border: 0 !important; outline: 0;
    background: transparent !important; box-shadow: none !important; text-align: center;
    font: inherit; font-size: 16px; font-weight: 500; color: var(--ttpf-qty-tx, #1f2937);
}
/* Schmale Karten: Menge und Button untereinander */
@container (max-width: 300px) {
    .ttpf-card__actions { flex-direction: column; }
    .ttpf-qty { justify-content: space-between; }
    .ttpf-qty__input { flex: 1 1 auto; }
}
.ttpf-card--compact { padding: 16px; }
.ttpf-card--compact .ttpf-btn, .ttpf-card--compact .ttpf-qty { min-height: 42px; height: auto; }

.ttpf-sentinel { display: flex; justify-content: center; padding: 20px 0; }
.ttpf-sentinel[hidden] { display: none; }
.ttpf-spinner {
    width: 26px; height: 26px; border-radius: 50%;
    border: 3px solid var(--ttpf-line, #cbcccd); border-top-color: var(--ttpf-accent, #1b3264);
    animation: ttpf-spin .8s linear infinite;
}
@keyframes ttpf-spin { to { transform: rotate(360deg); } }
.ttpf-all {
    display: block; margin: 16px auto 0; padding: 10px 16px; width: max-content; max-width: 100%;
    border: 1px solid currentColor; border-radius: 999px; font-size: 14px; text-align: center;
    text-decoration: none !important;
}

.ttpf-totop {
    position: sticky; float: right; bottom: 12px; margin: -60px 16px 0 0; z-index: 3;
    width: 52px; height: 52px; padding: 0; border: 1px solid var(--ttpf-line, #e5e7eb); border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    background: var(--ttpf-top-bg, #fff); color: var(--ttpf-top-ic, #1f2937) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
    opacity: 0; pointer-events: none; transition: opacity .2s, background-color .15s, color .15s;
}
.ttpf-totop .ttpf-ic { width: 28px; height: 28px; stroke-width: 2.5; }
.ttpf-totop:hover, .ttpf-totop:focus-visible { background: var(--ttpf-top-bg-h, #1b3264); color: var(--ttpf-top-ic-h, #fff) !important; }
.ttpf-totop.is-visible { opacity: 1; pointer-events: auto; }

/* ---------------------------------------------------------------- Toast */
.ttpf-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 100100; display: flex; flex-direction: column; gap: 8px; }
.ttpf-toast {
    display: flex; align-items: center; gap: 8px; max-width: 360px; padding: 10px 14px; border-radius: 8px;
    background: #323334; color: #fff; font-size: 14px; box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
    opacity: 0; transform: translateY(8px); transition: all .25s;
}
.ttpf-toast--ok .ttpf-ic { color: #4ade80; }
.ttpf-toast--error { background: #b91c1c; }
.ttpf-toast.is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- Tablet */
@media (max-width: 991.98px) {
    .ttpf-content { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; }
    .ttpf-guided { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
}

/* ---------------------------------------------------------------- Mobil (Vollbild) */
.ttpf-layer.is-mobile {
    --ttpf-pad: 16px;
    top: 0 !important; left: 0 !important; width: 100vw !important; max-width: none; height: 100%; max-height: none !important;
    border: 0; border-radius: 0; padding: 0 0 24px; transform: none;
}
.ttpf-layer.is-mobile .ttpf-head {
    position: sticky; top: 0; z-index: 4; flex-wrap: wrap; padding: 12px 16px; background: var(--ttpf-bg, #fff);
    border-bottom: 1px solid var(--ttpf-line, #cbcccd);
}
.ttpf-layer.is-mobile .ttpf-msearch {
    display: flex; align-items: center; gap: 8px; flex: 1 1 0; min-width: 0; height: 44px; padding: 0 16px;
    border: 1px solid var(--ttpf-muted, #737678); border-radius: 800px; color: var(--ttpf-muted, #737678);
}
.ttpf-layer.is-mobile .ttpf-msearch__input {
    flex: 1 1 auto; min-width: 0; height: 100%; border: 0 !important; outline: 0; padding: 0 !important; margin: 0;
    background: transparent !important; box-shadow: none !important; font: inherit; font-size: 16px; color: var(--ttpf-text, #323334);
}
.ttpf-layer.is-mobile .ttpf-close { margin-left: 0; }
.ttpf-layer.is-mobile .ttpf-suggestions { order: 3; flex: 1 1 100%; }
.ttpf-layer.is-mobile .ttpf-suggestions:empty { display: none; }
.ttpf-layer.is-mobile .ttpf-content { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 12px; }
.ttpf-layer.is-mobile .ttpf-guided { padding: 16px; }
.ttpf-layer.is-mobile .ttpf-guided .ttpf-tile, .ttpf-layer.is-mobile .ttpf-car--brands .ttpf-tile { width: 180px; height: 70px; }
.ttpf-layer.is-mobile .ttpf-car__arrow { display: none; }
.ttpf-layer.is-mobile .ttpf-car--products .ttpf-car__item { width: 46vw; max-width: 220px; }
.ttpf-layer.is-mobile .ttpf-card { padding: 12px; }
.ttpf-layer.is-mobile .ttpf-btn, .ttpf-layer.is-mobile .ttpf-qty { min-height: 44px; height: auto; }
.ttpf-layer.is-mobile .ttpf-filterbtn {
    display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
    border: 1px solid var(--ttpf-text, #323334); border-radius: 800px; background: #fff; font-size: 14px;
}
/* Filterleiste haftet mobil direkt unter der Kopfzeile – Filter jederzeit erreichbar */
.ttpf-layer.is-mobile .ttpf-meta {
    position: sticky; top: var(--ttpf-head-h, 69px); z-index: 3;
    margin: 0 calc(-1 * var(--ttpf-pad)) 12px; padding: 10px var(--ttpf-pad) 8px;
    background: var(--ttpf-bg, #fff); border-bottom: 1px solid var(--ttpf-line, #e5e7eb);
    box-shadow: 0 6px 12px -10px rgba(0, 0, 0, .35);
    flex-wrap: wrap; gap: 6px 12px;
}
.ttpf-layer.is-mobile .ttpf-meta__tools { order: 1; flex: 1 1 100%; flex-wrap: nowrap; justify-content: flex-start; gap: 10px; min-width: 0; }
.ttpf-layer.is-mobile .ttpf-filterbtn { flex: 0 0 auto; }
.ttpf-layer.is-mobile .ttpf-sort__prefix { display: none; }
.ttpf-layer.is-mobile .ttpf-sort__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 48vw; }
.ttpf-layer.is-mobile .ttpf-sort__btn { min-width: 0; }
.ttpf-layer.is-mobile .ttpf-meta__count { order: 2; flex: 1 1 auto; font-size: 13px; color: var(--ttpf-muted, #6b7280); }
.ttpf-layer.is-mobile .ttpf-reset { order: 3; flex: 0 0 auto; margin-left: auto; white-space: nowrap; }
.ttpf-layer.is-mobile .ttpf-sort { margin-left: auto; flex: 0 1 auto; min-width: 0; }
.ttpf-layer.is-mobile .ttpf-sort__btn { font-size: 13px; }
.ttpf-filterbtn__badge {
    min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--ttpf-chip, #1b3264); color: #fff; font-size: 12px; font-weight: 700; line-height: 1;
}
.ttpf-layer.is-mobile .ttpf-aside {
    display: none; position: fixed; inset: 0; z-index: 100060; overflow-y: auto; padding: 0 16px 24px; background: var(--ttpf-bg, #fff);
}
.ttpf-layer.is-mobile .ttpf-aside.is-open { display: block; }
.ttpf-layer.is-mobile .ttpf-aside__head {
    position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between;
    margin: 0 -16px 16px; padding: 12px 16px; background: var(--ttpf-bg, #fff); border-bottom: 1px solid var(--ttpf-line, #cbcccd);
    font-size: 18px; font-weight: 700;
}
.ttpf-aside__foot { display: none; }
.ttpf-layer.is-mobile .ttpf-aside.is-open { padding-bottom: 0; }
.ttpf-layer.is-mobile .ttpf-aside__foot {
    display: block; position: sticky; bottom: 0; margin: 8px -16px 0; padding: 12px 16px;
    background: var(--ttpf-bg, #fff); border-top: 1px solid var(--ttpf-line, #cbcccd);
}
.ttpf-aside__apply {
    width: 100%; height: 44px; border: 0; border-radius: 6px; font-weight: 700;
    background: var(--ttpf-cart-bg, #1b3264); color: var(--ttpf-cart-tx, #fff) !important;
}
.ttpf-aside__close { width: 36px; height: 36px; padding: 0; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; }
.ttpf-layer.is-mobile .ttpf-start { padding-top: 16px; }
.ttpf-layer.is-mobile .ttpf-totop { margin-right: 12px; }

@media (prefers-reduced-motion: reduce) {
    .ttpf-layer, .ttpf-toast, .ttpf-spinner { transition: none; animation: none; }
}
