/* js_finder – Contentseite. Preis-Optik kommt aus dem Shop-CSS (.price_wrapper etc.). */

/* PayPal-MiniCart-Klickfalle entschaerfen (live diagnostiziert): Das GESCHLOSSENE
   Warenkorb-Dropdown im Header ist nur per visibility:hidden/opacity:0 versteckt
   (bleibt display:block, z-index 1000). Der PayPal-zoid-iframe (jtl_paypal_commerce,
   MiniCart-ECS) setzt sich darin selbst wieder auf visibility:visible -> unsichtbare,
   klickbare 150x43-Flaeche ueber dem Seiteninhalt; ein Klick dort (z.B. auf das
   Modell-Select des Finders) oeffnete das PayPal-Checkout-Popup. Regel: geschlossene
   Dropdowns fangen keine Klicks; beim Oeffnen (.show) oder Hover aufs Warenkorb-Icon
   bleibt PayPal voll bedienbar. Wirkt bewusst shopweit (Falle existiert auf jeder Seite). */
.cart-icon-dropdown .dropdown-menu:not(.show),
.cart-icon-dropdown .dropdown-menu:not(.show) * { pointer-events: none !important; }
.cart-icon-dropdown:hover .dropdown-menu,
.cart-icon-dropdown:hover .dropdown-menu * { pointer-events: auto !important; }

.js-finder { padding: 1rem 0 2rem; }

/* Hero */
.js-finder-hero { text-align: center; max-width: 780px; margin: 0 auto 2rem; }
/* Ist ein h2 (NOVA liefert die Seiten-H1) — Groesse explizit auf H1-Optik gesetzt. */
.js-finder-hero__title { font-weight: 700; font-size: 1.9rem; margin-top: .25rem; }
@media (max-width: 575.98px) { .js-finder-hero__title { font-size: 1.45rem; } }
.js-finder-hero__lead { color: #666; font-size: 1.05rem; }

/* Finder-Widgets */
.js-finder-widgets { margin-bottom: 2.5rem; }
.js-finder-widget {
    height: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 1.25rem;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.js-finder-widget__badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #fff;
    background: #EC6707;
    padding: .2rem .6rem;
    border-radius: 4px;
}
.js-finder-widget__badge--alt { background: #333; }
.js-finder-widget__title { font-size: 1.15rem; margin: .6rem 0 1rem; }
.js-finder-cascade { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.js-finder-select { width: 100%; }
.js-finder-widget__hint { margin: .8rem 0 0; font-size: .85rem; }

/* Paket-Grid */
.js-finder-packages__title { text-align: center; margin: 0 0 1.5rem; font-weight: 700; }
/* Kacheln NICHT auf gleiche Höhe strecken: sonst schiebt das Auffächern einer Kachel
   die Optik (Preis/Button via margin-top:auto) der anderen. flex-start = jede Kachel
   in natürlicher Höhe, aufgeklappte wächst nur nach unten. */
.js-finder-grid { align-items: flex-start; }
.js-finder-col { margin-bottom: 1.5rem; display: flex; }
.js-finder-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid #e9e9e9;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .18s ease, transform .18s ease;
}
.js-finder-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.10); transform: translateY(-3px); }

.js-finder-card__imglink { position: relative; display: block; }
.js-finder-card__img {
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f7f8;
    padding: .8rem;
}
.js-finder-card__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.js-finder-card__noimg { color: #b9bdc2; font-weight: 700; letter-spacing: .05em; }

.js-finder-tier {
    position: absolute;
    top: .6rem; left: .6rem;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background: rgba(236,103,7,.95);
    padding: .18rem .5rem;
    border-radius: 4px;
}

.js-finder-card__body { display: flex; flex-direction: column; flex: 1; padding: .9rem; }
.js-finder-card__title {
    font-weight: 600;
    color: #222;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}
.js-finder-card__title:hover { color: #EC6707; text-decoration: none; }
.js-finder-card__meta { font-size: .8rem; color: #888; margin: .25rem 0 .5rem; }

/* Einbauort (Front Tuer / Rear ...) – direkt ueber dem Preis, mit diesem unten verankert */
.js-finder-card__pos {
    font-size: .8rem;
    font-weight: 600;
    color: #555;
    margin: auto 0 .35rem;   /* uebernimmt das margin-top:auto des Preisblocks */
}
.js-finder-card__pos + .price_wrapper { margin-top: 0; }

/* Preisblock sitzt unten, Button darunter */
.js-finder-card .price_wrapper { margin-top: auto; }
.js-finder-card .price.productbox-price { font-size: 1.25rem; font-weight: 700; }
.js-finder-cta { margin-top: .7rem; background: #EC6707; border-color: #EC6707; }
.js-finder-cta:hover { background: #cf5a06; border-color: #cf5a06; }

/* Platzhalter (bis Fahrzeug gewaehlt) */
.js-finder-placeholder {
    text-align: center;
    color: #888;
    font-size: 1.02rem;
    padding: 2rem 1rem 1rem;
}

/* Finder-Ergebnisbereich */
.js-finder-results { margin: 0 0 2.5rem; scroll-margin-top: 1rem; }
.js-finder-results__title { text-align: center; font-weight: 700; margin: 0 0 1.25rem; }

/* Auffaechern-Button */
.js-finder-toggle {
    margin-top: .6rem;
    width: 100%;
    background: none;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    padding: .45rem .6rem;
    font-size: .82rem;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}
.js-finder-toggle:hover { border-color: #EC6707; color: #EC6707; }
.js-finder-toggle__chev { transition: transform .18s ease; }
.js-finder-card.is-open .js-finder-toggle__chev { transform: rotate(180deg); }

/* Komponenten-Liste */
.js-finder-card__components { margin-top: .6rem; border-top: 1px solid #eee; padding-top: .5rem; }
.js-finder-comp {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .4rem .3rem;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f2f2f2;
}
.js-finder-comp:last-child { border-bottom: 0; }
.js-finder-comp:hover { background: #faf6ef; color: #333; text-decoration: none; }
.js-finder-comp__img {
    flex: 0 0 40px;
    width: 40px; height: 40px;
    background: #f6f7f8;
    border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.js-finder-comp__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.js-finder-comp__ph { width: 18px; height: 18px; border-radius: 3px; background: #dfe2e5; }
.js-finder-comp__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.js-finder-comp__name {
    font-size: .82rem;
    line-height: 1.25;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.js-finder-comp__qty { color: #EC6707; font-weight: 700; }
.js-finder-comp__meta { font-size: .72rem; color: #999; }
.js-finder-comp__price { flex: 0 0 auto; font-size: .82rem; font-weight: 600; color: #222; white-space: nowrap; }

@media (max-width: 575.98px) {
    .js-finder-cascade { grid-template-columns: 1fr; }
}

/* ============================================================================
   Finder-Hinweis auf Artikeldetailseiten (ueber "Angaben zur Produktsicherheit").
   Sitzt in einer schmalen Spalte (col-lg-5) -> kompakte Karte, Button erbt die
   Shop-Optik (.btn-primary), damit der Block nativ wirkt.
   ========================================================================== */
.jsf-pdp {
    border: 1px solid #e5e7eb;
    border-left: 4px solid #EC6707;
    border-radius: 6px;
    background: #fbfbfc;
    padding: 1rem 1.1rem;
    margin: 0 0 1.75rem;
}
.jsf-pdp__head { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.jsf-pdp__icon { width: 20px; height: 20px; color: #EC6707; flex: 0 0 20px; }
.jsf-pdp__badge {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #EC6707;
}
.jsf-pdp__text { font-size: .9rem; line-height: 1.55; color: #333; margin: 0 0 .85rem; }
.jsf-pdp__text strong { font-weight: 600; }
.jsf-pdp__btn { display: inline-block; }

/* ============================================================================
   SEO-Contentbereich (jsf-*) unter dem Finder. Inline-SVG-Grafiken, Palette
   Orange #EC6707 / Dunkel #1f2937 / Linie #e5e7eb. Bewusst flach passend zu NOVA.
   ========================================================================== */
.jsf-content {
    --jsf-orange: #EC6707;
    --jsf-dark: #1f2937;
    --jsf-line: #e5e7eb;
    --jsf-muted: #6b7280;
    --jsf-tile: #f6f7f8;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--jsf-line);
    color: var(--jsf-dark);
}
#js-finder-top { scroll-margin-top: 1.5rem; }

.jsf-section { margin: 0 auto 3.25rem; max-width: 1040px; }
.jsf-section:last-child { margin-bottom: .5rem; }

.jsf-h2 {
    text-align: center;
    font-weight: 700;
    font-size: 1.6rem;
    margin: 0 0 .6rem;
    color: var(--jsf-dark);
}
.jsf-h2::after {
    content: "";
    display: block;
    width: 54px; height: 3px;
    margin: .7rem auto 0;
    background: var(--jsf-orange);
    border-radius: 3px;
}
.jsf-lead {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2rem;
    color: var(--jsf-muted);
    font-size: 1.03rem;
    line-height: 1.6;
}

/* ---- 3-Schritte ---- */
.jsf-steps {
    list-style: none;
    counter-reset: jsf-step;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 0;
    margin: 0 0 1.8rem;
}
.jsf-step { counter-increment: jsf-step; text-align: center; }
.jsf-step__icon {
    position: relative;
    width: 96px; height: 96px;
    margin: 0 auto 1rem;
    background: var(--jsf-tile);
    border: 1px solid var(--jsf-line);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.jsf-step__icon svg { width: 56px; height: 56px; }
.jsf-step__icon::after {
    content: counter(jsf-step);
    position: absolute; top: -6px; right: -6px;
    width: 28px; height: 28px;
    background: var(--jsf-orange);
    color: #fff;
    font-size: .85rem; font-weight: 700;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(236,103,7,.35);
}
.jsf-step__title { font-size: 1.08rem; font-weight: 700; margin: 0 0 .35rem; }
.jsf-step__txt p { color: var(--jsf-muted); font-size: .92rem; line-height: 1.55; margin: 0; }

/* ---- Vorteile ---- */
.jsf-benefits {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    padding: 0; margin: 0;
}
.jsf-benefit {
    text-align: center;
    background: #fff;
    border: 1px solid var(--jsf-line);
    border-radius: 12px;
    padding: 1.4rem 1rem;
    transition: box-shadow .18s ease, transform .18s ease;
}
.jsf-benefit:hover { box-shadow: 0 8px 22px rgba(0,0,0,.07); transform: translateY(-2px); }
.jsf-benefit__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; margin-bottom: .8rem;
}
.jsf-benefit__icon svg { width: 52px; height: 52px; }
.jsf-benefit__title { font-size: .98rem; font-weight: 700; margin: 0 0 .4rem; }
.jsf-benefit p { color: var(--jsf-muted); font-size: .86rem; line-height: 1.5; margin: 0; }

/* ---- Paket / Compose (Figur + Bausteine) ---- */
.jsf-package {
    display: grid;
    grid-template-columns: minmax(0, 42%) 1fr;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.6rem;
}
.jsf-package__figure {
    background: var(--jsf-tile);
    border: 1px solid var(--jsf-line);
    border-radius: 14px;
    padding: 1.5rem;
    display: flex; align-items: center; justify-content: center;
}
.jsf-package__figure svg { width: 100%; max-width: 380px; height: auto; }
/* Compose: Figur nach rechts spiegeln für Rhythmus */
.jsf-section--compose .jsf-package__figure { order: 2; }

.jsf-parts { list-style: none; padding: 0; margin: 0; }
.jsf-part {
    position: relative;
    padding: 0 0 1rem 1.6rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--jsf-line);
}
.jsf-part:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.jsf-part::before {
    content: "";
    position: absolute; left: 0; top: .45rem;
    width: 9px; height: 9px;
    background: var(--jsf-orange);
    border-radius: 50%;
}
.jsf-part h3 { font-size: 1.02rem; font-weight: 700; margin: 0 0 .3rem; }
.jsf-part p { color: var(--jsf-muted); font-size: .9rem; line-height: 1.55; margin: 0; }

/* ---- Marke ---- */
.jsf-brand {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(180deg, #fff, var(--jsf-tile));
    border: 1px solid var(--jsf-line);
    border-radius: 14px;
    padding: 2rem;
}
.jsf-brand__figure { display: flex; align-items: center; justify-content: center; }
.jsf-brand__figure svg { width: 100%; max-width: 200px; height: auto; }
.jsf-brand__txt h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 .6rem; }
.jsf-brand__txt p { color: #4b5563; font-size: .96rem; line-height: 1.65; margin: 0 0 1.1rem; }

/* ---- CTA ---- */
.jsf-cta {
    display: inline-flex; align-items: center; justify-content: center;
    margin: 1.6rem auto 0;
    background: var(--jsf-orange);
    color: #fff;
    font-weight: 700;
    padding: .7rem 1.6rem;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(236,103,7,.28);
    transition: background .15s ease, transform .15s ease;
}
.jsf-section > .jsf-cta { display: flex; width: max-content; }
.jsf-cta:hover { background: #cf5a06; color: #fff; text-decoration: none; transform: translateY(-1px); }
.jsf-brand__txt .jsf-cta { margin-top: 0; }

/* ---- FAQ (Accordion) ---- */
.jsf-faq { max-width: 820px; margin: 0 auto; }
.jsf-faq__item {
    border: 1px solid var(--jsf-line);
    border-radius: 10px;
    margin-bottom: .7rem;
    background: #fff;
    overflow: hidden;
}
.jsf-faq__item[open] { border-color: #f0c88a; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.jsf-faq__q {
    list-style: none;
    cursor: pointer;
    padding: 1rem 3rem 1rem 1.1rem;
    font-weight: 600;
    color: var(--jsf-dark);
    position: relative;
}
.jsf-faq__q::-webkit-details-marker { display: none; }
.jsf-faq__q::after {
    content: "+";
    position: absolute; right: 1.1rem; top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem; font-weight: 400; line-height: 1;
    color: var(--jsf-orange);
    transition: transform .2s ease;
}
.jsf-faq__item[open] .jsf-faq__q::after { content: "\2212"; }
.jsf-faq__q:hover { color: var(--jsf-orange); }
.jsf-faq__a { padding: 0 1.1rem 1.1rem; }
.jsf-faq__a p { color: var(--jsf-muted); font-size: .93rem; line-height: 1.6; margin: 0; }

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .jsf-benefits { grid-template-columns: repeat(2, 1fr); }
    .jsf-brand { grid-template-columns: 160px 1fr; gap: 1.5rem; padding: 1.5rem; }
}
@media (max-width: 767.98px) {
    .jsf-steps { grid-template-columns: 1fr; gap: 1.8rem; }
    .jsf-package,
    .jsf-section--compose .jsf-package { grid-template-columns: 1fr; gap: 1.2rem; }
    .jsf-package__figure,
    .jsf-section--compose .jsf-package__figure { order: 0; }
    .jsf-brand { grid-template-columns: 1fr; text-align: center; }
    .jsf-brand__figure svg { max-width: 150px; }
    .jsf-brand__txt .jsf-cta { margin: .4rem auto 0; }
}
@media (max-width: 479.98px) {
    .jsf-benefits { grid-template-columns: 1fr; }
    .jsf-h2 { font-size: 1.38rem; }
}
