/* Produktdetail v2 (2026-12-05): ruhiges Raster, Galerie, Varianten, Bestpreis-Box, Preisvergleich.
   Gilt nur innerhalb .ksf-pd2. Rücknahme: Option ksf_detail_v2 auf 0 setzen. */
.ksf-pd2 {
    --pd-brand: var(--kmb-brand, #0E5F6E); --pd-dark: var(--kmb-dark, #093F4A); --pd-tone: var(--kmb-tone, #E2F0F2);
    --pd-line: var(--kmb-line, #D3E1E4); --pd-muted: var(--kmb-muted, #4A5D66); --pd-ink: var(--kmb-ink, #13232A);
    --pd-warm: var(--kmb-warm, #C9772B); --pd-warm-tone: var(--kmb-warm-tone, #FBF1E6);
    --pd-radius: 16px; --pd-gap: clamp(16px, 2.4vw, 28px);
    --pd-shadow: 0 1px 2px rgba(9,63,74,.05), 0 6px 20px rgba(9,63,74,.06);
}
.ksf-pd2 > * + * { margin-block-start: var(--pd-gap); }
.ksf-pd2 h2 { margin-block: 0 .6rem; }

/* Zurück-Link: klein, kein Button */
.kmb-design .entry-content .ksf-pd2 .ksf-pd-back { margin: 0 0 4px; font-size: .9rem; }
.kmb-design .entry-content .ksf-pd2 .ksf-pd-back a { color: var(--pd-brand); font-weight: 600; text-decoration: none; }
.kmb-design .entry-content .ksf-pd2 .ksf-pd-back a:hover { background: none; text-decoration: underline; text-underline-offset: 3px; }

/* Buttons: ruhig, nur so breit wie ihr Text */
.kmb-design .entry-content .ksf-pd2 a.ksf-pd-btn, .ksf-pd2 .ksf-pd-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4em; width: auto;
    min-height: 42px; padding: 8px 16px; border: 1px solid var(--pd-brand); border-radius: 10px;
    background: #fff; color: var(--pd-brand); font-size: .92rem; font-weight: 700; line-height: 1.2;
    text-decoration: none; white-space: nowrap; box-shadow: none; transition: background-color .15s, color .15s, border-color .15s;
}
.kmb-design .entry-content .ksf-pd2 a.ksf-pd-btn:hover { background: var(--pd-tone); color: var(--pd-dark); border-color: var(--pd-dark); }
.kmb-design .entry-content .ksf-pd2 a.ksf-pd-btn-primary { background: var(--pd-brand); color: #fff; }
.kmb-design .entry-content .ksf-pd2 a.ksf-pd-btn-primary:hover { background: var(--pd-dark); color: #fff; }
.kmb-design .entry-content .ksf-pd2 a.ksf-pd-btn::after { content: none !important; }

/* Kopfbereich: Galerie links, Entscheidung + Bestpreis rechts */
.ksf-pd2 .ksf-pd-hero {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--pd-gap); align-items: start;
    padding: var(--pd-gap); border: 1px solid var(--pd-line); border-radius: 20px; background: #fff; box-shadow: var(--pd-shadow);
}
.ksf-pd2 .ksf-pd-hero-single { grid-template-columns: minmax(0, 1fr); }
.ksf-pd2 .ksf-pd-gallery { min-width: 0; }
.ksf-pd2 .ksf-pd-stage { position: relative; }
.ksf-pd2 .ksf-pd-zoom {
    display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1 / 1; padding: 6%;
    border: 1px solid #E6EEF0; border-radius: 14px; background: #fff; cursor: zoom-in; position: relative;
}
.ksf-pd2 .ksf-pd-gallery-illustration .ksf-pd-zoom { aspect-ratio: 4 / 3; padding: 0; overflow: hidden; background: #F6FAFB; }
.ksf-pd2 .ksf-pd-zoom img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.ksf-pd2 .ksf-pd-zoom-hint {
    position: absolute; inset-inline-end: 10px; inset-block-end: 10px; display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.94); border: 1px solid var(--pd-line);
    color: var(--pd-dark); font-size: .76rem; font-weight: 700; opacity: 0; transition: opacity .15s;
}
.ksf-pd2 .ksf-pd-zoom:is(:hover, :focus-visible) .ksf-pd-zoom-hint { opacity: 1; }
.ksf-pd2 .ksf-pd-zoom:focus-visible { outline: 3px solid var(--pd-brand); outline-offset: 2px; }
.ksf-pd2 .ksf-pd-badge {
    position: absolute; z-index: 1; inset-inline-start: 10px; inset-block-start: 10px; padding: 3px 10px; border-radius: 999px;
    border: 1px solid #EBD3BA; background: var(--pd-warm-tone); color: #7A4413; font-size: .76rem; font-weight: 700;
}
.ksf-pd2 .ksf-pd-thumbs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.ksf-pd2 .ksf-pd-thumbs li { margin: 0; padding: 0; }
.ksf-pd2 .ksf-pd-thumbs li::before { content: none; }
.ksf-pd2 .ksf-pd-thumbs button {
    display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1 / 1; padding: 4px;
    border: 1px solid var(--pd-line); border-radius: 9px; background: #fff; cursor: pointer;
}
.ksf-pd2 .ksf-pd-thumbs button[aria-current] { border-color: var(--pd-brand); box-shadow: inset 0 0 0 1px var(--pd-brand); }
.ksf-pd2 .ksf-pd-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.ksf-pd2 .ksf-pd-source { margin: 8px 0 0; font-size: .8rem; color: var(--pd-muted); }
.kmb-design .entry-content .ksf-pd2 .ksf-pd-source a { color: var(--pd-brand); font-weight: 600; }
.ksf-pd2 .ksf-pd-source small { color: var(--pd-muted); font-size: .75rem; }

.ksf-pd2 .ksf-pd-info { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ksf-pd2 .ksf-pd-info > * { margin: 0; }
.ksf-pd2 .ksf-pd-info h2 { font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.25; }
.ksf-pd2 .ksf-pd-intro { color: var(--pd-ink); }
.ksf-pd2 .ksf-decision-limit {
    padding: .65rem .85rem; border-inline-start: 3px solid var(--pd-brand); background: var(--pd-tone); border-radius: 0 8px 8px 0; font-size: .95rem;
}
.ksf-pd2 .ksf-product-identity { color: var(--pd-muted); font-size: .82rem; }
.ksf-pd2 .ksf-pd-rating { font-size: .9rem; }

/* Varianten als gleich hohe Auswahl-Kacheln */
.ksf-pd2 .ksf-pd-variants { width: 100%; }
.ksf-pd2 .ksf-pd-label { margin: 0 0 6px; color: var(--pd-muted); font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ksf-pd2 .ksf-pd-variants ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.ksf-pd2 .ksf-pd-variants li { margin: 0; padding: 0; display: flex; }
.ksf-pd2 .ksf-pd-variants li::before { content: none; }
.kmb-design .entry-content .ksf-pd2 .ksf-pd-variant {
    display: flex; align-items: center; gap: 8px; width: 100%; min-height: 52px; padding: 6px 10px 6px 6px;
    border: 1px solid var(--pd-line); border-radius: 10px; background: #fff; color: var(--pd-ink);
    font-size: .86rem; font-weight: 600; line-height: 1.25; text-decoration: none;
}
.kmb-design .entry-content .ksf-pd2 a.ksf-pd-variant:hover { border-color: var(--pd-brand); background: #F7FBFB; color: var(--pd-dark); }
.ksf-pd2 .ksf-pd-variant.is-current { border-color: var(--pd-brand); box-shadow: inset 0 0 0 1px var(--pd-brand); background: var(--pd-tone); }
.ksf-pd2 .ksf-pd-variant img { flex: 0 0 40px; width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 6px; }

/* Bestpreis-Box */
.ksf-pd2 .ksf-pd-best {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 18px; width: 100%;
    padding: 16px 18px; border: 1px solid #CFE5E8; border-radius: 14px; background: linear-gradient(120deg, #EEF7F8, #F9FCFC);
}
.ksf-pd2 .ksf-pd-best-price { display: grid; gap: 2px; margin: 0; }
.ksf-pd2 .ksf-pd-best-price small { color: var(--pd-muted); font-size: .8rem; font-weight: 700; }
.ksf-pd2 .ksf-pd-best-price strong { color: var(--pd-dark); font-size: 1.7rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ksf-pd2 .ksf-pd-best-price .ksf-pd-best-count { font-size: 1.3rem; }
.ksf-pd2 .ksf-pd-best-price span { color: var(--pd-muted); font-size: .82rem; }
.kmb-design .entry-content .ksf-pd2 .ksf-pd-best-price a { color: var(--pd-brand); }
.ksf-pd2 .ksf-pd-best-actions { display: grid; justify-items: end; gap: 3px; }
.ksf-pd2 .ksf-pd-best-note { color: var(--pd-muted); font-size: .72rem; }
.kmb-design .entry-content .ksf-pd2 .ksf-pd-more {
    grid-column: 1 / -1; justify-self: start; padding-top: 10px; border-top: 1px solid #D9E8EA; width: 100%;
    color: var(--pd-brand); font-size: .9rem; font-weight: 700; text-decoration: none;
}
.kmb-design .entry-content .ksf-pd2 .ksf-pd-more:hover { background: none; text-decoration: underline; text-underline-offset: 3px; }

/* Passform | Bewertungen + Quellen */
.ksf-pd2 .ksf-pd-facts { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--pd-gap); align-items: stretch; }
.ksf-pd2 .ksf-pd-facts-single { grid-template-columns: minmax(0, 1fr); }
.ksf-pd2 .ksf-pd-side { display: grid; gap: var(--pd-gap); align-content: start; }
.ksf-pd2 .ksf-pd-card {
    margin: 0; padding: clamp(16px, 2vw, 22px); border: 1px solid var(--pd-line); border-radius: var(--pd-radius);
    background: #fff; box-shadow: var(--pd-shadow);
}
.ksf-pd2 .ksf-pd-card > :last-child { margin-bottom: 0; }
.ksf-pd2 .ksf-pd-card h2 { font-size: 1.2rem; }
.ksf-pd2 .ksf-pd-card h3 { font-size: 1rem; margin-block: 1rem .5rem; }
.ksf-pd2 .ksf-fit-facts { max-width: none; }
.ksf-pd2 .ksf-pd-inline-action { margin: 14px 0 0; }
.ksf-pd2 .ksf-rating-sources { margin: 0; padding: 0; list-style: none; }
.ksf-pd2 .ksf-rating-sources li::before { content: none; }

/* Preisvergleich */
.ksf-pd2 .ksf-pd-offers { margin: var(--pd-gap) 0 0; padding: clamp(16px, 2.2vw, 26px); border-radius: 20px; border: 1px solid var(--pd-line); background: #fff; box-shadow: var(--pd-shadow); }
.ksf-pd2 .ksf-pd-section-head h2 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
.ksf-pd2 .ksf-pd-offer-list { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; counter-reset: none; }
.ksf-pd2 .ksf-pd-offer {
    display: grid; grid-template-columns: 148px minmax(0, 1fr) auto; align-items: center; gap: 12px 20px;
    margin: 0; padding: 12px 16px 12px 12px; border: 1px solid var(--pd-line); border-radius: 14px; background: #fff;
}
.ksf-pd2 .ksf-pd-offer::before { content: none; }
.ksf-pd2 .ksf-pd-offer.is-cheapest { border-color: var(--pd-brand); box-shadow: inset 0 0 0 1px var(--pd-brand); background: #FAFDFD; }
.ksf-pd2 .ksf-pd-offer.is-alternative { background: #FBFBFA; border-style: dashed; }
.ksf-pd2 .ksf-pd-logo {
    display: flex; align-items: center; justify-content: center; width: 148px; height: 64px; padding: 10px 14px;
    border: 1px solid #E6EEF0; border-radius: 10px; background: #fff;
}
.ksf-pd2 .ksf-pd-logo-img { display: block; width: 100%; height: 100%; max-width: 112px; max-height: 38px; object-fit: contain; }
.ksf-pd2 .ksf-pd-logo-text { color: var(--pd-dark); font-weight: 800; font-size: .95rem; text-align: center; line-height: 1.15; }
.ksf-pd2 .ksf-pd-offer-copy { display: grid; gap: 2px; min-width: 0; }
.ksf-pd2 .ksf-pd-flag {
    justify-self: start; margin-bottom: 2px; padding: 1px 8px; border-radius: 999px; background: var(--pd-brand); color: #fff;
    font-size: .72rem; font-weight: 700;
}
.ksf-pd2 .ksf-pd-price { color: var(--pd-dark); font-size: 1.35rem; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ksf-pd2 .ksf-pd-condition { color: var(--pd-ink); font-size: .86rem; }
.ksf-pd2 .ksf-pd-status { color: var(--pd-ink); font-size: .95rem; font-weight: 600; }
.ksf-pd2 .ksf-pd-meta { color: var(--pd-muted); font-size: .76rem; }
.kmb-design .entry-content .ksf-pd2 .ksf-pd-meta a { color: var(--pd-brand); min-height: 0; display: inline; font-size: inherit; }
.ksf-pd2 .ksf-pd-notes { margin-top: 14px; padding-top: 10px; border-top: 1px solid #E6EEF0; }
.ksf-pd2 .ksf-pd-notes .ksf-price-note { margin: 4px 0 0; font-size: .76rem; }
.ksf-pd2 .ksf-amazon-price-note[id] { scroll-margin-block-start: 6rem; }

/* Fragen als ruhiges Akkordeon */
.ksf-pd2 .ksf-pd-faq { max-width: 860px; }
.ksf-pd2 .ksf-pd-faq details { border-top: 1px solid var(--pd-line); }
.ksf-pd2 .ksf-pd-faq details:last-of-type { border-bottom: 1px solid var(--pd-line); }
.ksf-pd2 .ksf-pd-faq summary {
    display: flex; justify-content: space-between; gap: 1rem; padding: 14px 2px; cursor: pointer; list-style: none;
    font-weight: 700; color: var(--pd-ink);
}
.ksf-pd2 .ksf-pd-faq summary::-webkit-details-marker { display: none; }
.ksf-pd2 .ksf-pd-faq summary::after { content: "+"; color: var(--pd-brand); font-size: 1.2rem; line-height: 1; }
.ksf-pd2 .ksf-pd-faq details[open] summary::after { content: "–"; }
.ksf-pd2 .ksf-pd-faq details p { margin: 0 0 14px; max-width: 72ch; }

/* Karten unten: gleich hoch, ruhig, Buttons nicht vollbreit, kein Springen beim Hover */
.kmb-design .ksf-pd2 .ksf-product-card:hover { transform: none; }
.kmb-design .ksf-pd2 .ksf-product-copy > .ksf-product-actions { width: auto; }
.kmb-design .entry-content .ksf-pd2 .ksf-product-card a.ksf-product-button { display: inline-flex; width: auto; min-height: 40px; padding: 7px 14px; }
.kmb-design .entry-content .ksf-pd2 a.ksf-product-photo:hover { background: #fff; }
.kmb-design .ksf-pd2 .ksf-product-card .ksf-product-frame { aspect-ratio: 4 / 3; }
.kmb-design .ksf-pd2 .ksf-product-card .ksf-product-frame img { width: 100%; height: 100%; object-fit: contain; }

/* Lightbox */
html.ksf-pd-noscroll { overflow: hidden; }
.ksf-pd-lightbox { width: min(92vw, 760px); max-height: 94vh; padding: 0; border: 0; border-radius: 18px; background: #fff; box-shadow: 0 30px 80px rgba(9,63,74,.35); }
.ksf-pd-lightbox::backdrop { background: rgba(9, 32, 38, .72); }
.ksf-pd-lb-frame { position: relative; display: grid; gap: 10px; padding: 48px 56px 18px; }
.ksf-pd-lb-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; max-height: 70vh; background: #fff; }
.ksf-pd-lb-img img { max-width: 100%; max-height: 70vh; width: auto; height: auto; object-fit: contain; }
.ksf-pd-lb-close, .ksf-pd-lb-nav {
    position: absolute; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px;
    border: 1px solid #D3E1E4; border-radius: 999px; background: #fff; color: #093F4A; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.ksf-pd-lb-close:hover, .ksf-pd-lb-nav:hover { background: #E2F0F2; }
.ksf-pd-lb-close { inset-block-start: 8px; inset-inline-end: 8px; }
.ksf-pd-lb-nav { inset-block-start: calc(50% - 40px); }
.ksf-pd-lb-prev { inset-inline-start: 8px; }
.ksf-pd-lb-next { inset-inline-end: 8px; }
.ksf-pd-lb-caption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; font-size: .85rem; color: #4A5D66; }
.ksf-pd-lb-title { font-weight: 700; color: #13232A; flex: 1 1 100%; }
.ksf-pd-lb-count { margin-inline-end: auto; }
.ksf-pd-lightbox .ksf-pd-btn {
    display: inline-flex; align-items: center; gap: .4em; min-height: 40px; padding: 7px 14px; border: 1px solid #0E5F6E; border-radius: 10px;
    background: #0E5F6E; color: #fff; font-weight: 700; text-decoration: none;
}
.ksf-pd-lightbox .ksf-pd-btn:hover { background: #093F4A; }
.ksf-pd-lightbox small { font-size: .72rem; }

@media (max-width: 860px) {
    .ksf-pd2 .ksf-pd-hero { grid-template-columns: minmax(0, 1fr); }
    .ksf-pd2 .ksf-pd-zoom { aspect-ratio: 4 / 3; }
    .ksf-pd2 .ksf-pd-facts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .ksf-pd2 .ksf-pd-hero { padding: 14px; border-radius: 16px; }
    .ksf-pd2 .ksf-pd-thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .ksf-pd2 .ksf-pd-thumbs li:nth-child(n+6) { display: none; }
    .ksf-pd2 .ksf-pd-zoom-hint { opacity: 1; }
    .ksf-pd2 .ksf-pd-best { grid-template-columns: minmax(0, 1fr); }
    .ksf-pd2 .ksf-pd-best-actions { justify-items: start; }
    .ksf-pd2 .ksf-pd-offer { grid-template-columns: 112px minmax(0, 1fr); padding: 12px; gap: 10px 12px; }
    .ksf-pd2 .ksf-pd-logo { width: 112px; height: 52px; padding: 8px 10px; }
    .ksf-pd2 .ksf-pd-offer > .ksf-pd-btn { grid-column: 2; justify-self: start; }
    .ksf-pd-lb-frame { padding: 52px 12px 14px; }
    .ksf-pd-lb-nav { inset-block-start: auto; inset-block-end: 14px; }
    .ksf-pd-lb-caption { padding-inline-end: 100px; }
    .ksf-pd2 .ksf-pd-variants ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .ksf-pd2 * { transition: none !important; }
}

/* Theme-Buttonstile neutralisieren und Bildrahmen fest halten */
.kmb-design .ksf-pd2 :is(.ksf-pd-zoom, .ksf-pd-thumbs button),
.kmb-design .ksf-pd2 :is(.ksf-pd-zoom, .ksf-pd-thumbs button):is(:hover, :focus, :active) {
    background: #fff !important; color: inherit; box-shadow: none; text-transform: none; letter-spacing: normal; transform: none;
}
.kmb-design .ksf-pd2 .ksf-pd-thumbs button[aria-current] { box-shadow: inset 0 0 0 1px var(--pd-brand) !important; }
.kmb-design .ksf-pd2 .ksf-pd-thumbs button:hover { border-color: var(--pd-brand); }
.ksf-pd2 .ksf-pd-zoom, .ksf-pd2 .ksf-pd-thumbs button { position: relative; overflow: hidden; height: auto; }
.ksf-pd2 .ksf-pd-zoom > img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; }
.ksf-pd2 .ksf-pd-gallery-illustration .ksf-pd-zoom > img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ksf-pd2 .ksf-pd-thumbs img { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: contain; }
.kmb-design .ksf-pd-lightbox :is(.ksf-pd-lb-close, .ksf-pd-lb-nav) { background: #fff !important; color: #093F4A !important; padding: 0; }
.kmb-design .ksf-pd-lightbox :is(.ksf-pd-lb-close, .ksf-pd-lb-nav):hover { background: #E2F0F2 !important; }
.kmb-design .ksf-pd-lightbox a.ksf-pd-btn, .kmb-design .ksf-pd-lightbox a.ksf-pd-btn:hover { color: #fff !important; }
.kmb-design .ksf-pd-lightbox a.ksf-pd-lb-img:hover { background: #fff; }
@media (max-width: 600px) { .ksf-pd2 .ksf-pd-offer .ksf-pd-logo { align-self: start; } }
.ksf-pd2 .ksf-pd-gallery-illustration .ksf-pd-zoom { aspect-ratio: auto; display: block; }
.ksf-pd2 .ksf-pd-gallery-illustration .ksf-pd-zoom > img { position: static; inset: auto; width: 100%; height: auto; object-fit: contain; border-radius: 12px; }
.kmb-design .ksf-pd2 .ksf-catalog-section .ksf-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
@media (max-width: 860px) { .kmb-design .ksf-pd2 .ksf-catalog-section .ksf-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kmb-design .ksf-pd2 .ksf-catalog-section .ksf-product-grid { grid-template-columns: minmax(0, 1fr); } }
.ksf-pd2 .ksf-pd-variants ul { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.kmb-design .entry-content .ksf-pd2 .ksf-pd-variant span { overflow-wrap: normal; word-break: normal; hyphens: manual; }
