/* ============ KOMPLETTSETS (Präfix ks-) ============ */

/* Vergleichstabelle */
.ks-cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); }
.ks-cmp { width: 100%; min-width: 820px; border-collapse: collapse; font-size: .9063rem; }
.ks-cmp th, .ks-cmp td { padding: 14px 16px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.ks-cmp thead th { vertical-align: bottom; padding-top: 22px; background: #fff; position: relative; width: 20%; }
.ks-cmp-corner { width: 20%; }
.ks-th-nr { display: block; font-size: 1.25rem; font-weight: 800; color: #1a4480; letter-spacing: -0.01em; }
.ks-th-t { display: block; font-size: .8125rem; font-weight: 500; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.ks-th-badge { position: absolute; top: 0; left: 16px; transform: translateY(-1px); background: var(--blue); color: #fff; font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 0 0 8px 8px; }
.ks-cmp tbody th { font-weight: 700; color: var(--navy); font-size: .8438rem; white-space: nowrap; }
.ks-cmp tbody td { color: #1a4480; font-weight: 600; }
.ks-cmp tbody tr:nth-child(even):not(.ks-cmp-btns) { background: #f8faff; }
.ks-cmp .ks-col-hl, .ks-cmp td:nth-child(3), .ks-cmp th.ks-col-hl { background: #f0f8fd !important; }
.ks-yes { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #e3f6ea; color: #16884a; margin-right: 8px; vertical-align: -6px; }
.ks-yes svg { width: 13px; height: 13px; }
.ks-no { color: #b6c5d0; font-weight: 600; }
.ks-cmp-btns td, .ks-cmp-btns th { border-bottom: 0; padding-bottom: 20px; }
.ks-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; font-size: .8438rem; }
.ks-btn .icon { width: 14px; height: 14px; }

/* Set-Karten */
.ks-sets { display: grid; gap: 28px; }
.ks-set { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); scroll-margin-top: 100px; }
.ks-flip .ks-set-media { order: 2; border-left: 1px solid var(--line); border-right: 0; }
.ks-set-media { position: relative; display: flex; align-items: center; justify-content: center; padding: 28px; background: #fff; border-right: 1px solid var(--line); }
.ks-set-media a { display: block; width: 100%; }
.ks-set-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; display: block; }
.ks-badge { position: absolute; top: 18px; left: 18px; background: var(--blue); color: #fff; font-size: .75rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.ks-qty { position: absolute; right: 18px; bottom: 18px; background: #1a4480; color: #fff; border-radius: 12px; padding: 8px 14px; text-align: center; line-height: 1.15; }
.ks-qty strong { display: block; font-size: 1.125rem; }
.ks-qty span { font-size: .6875rem; opacity: .85; }
.ks-set-body { padding: 30px 32px 30px; background: linear-gradient(180deg, #fff 0%, #fbfcff 100%); }
.ks-set-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ks-nr { font-size: .875rem; font-weight: 700; color: var(--blue); letter-spacing: .02em; }
.ks-set h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); color: #1a4480; letter-spacing: -0.02em; margin: 0 0 6px; }
.ks-sub { color: var(--text); margin: 0 0 18px; font-size: .9375rem; }
.ks-rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.ks-row { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ks-row-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--bg-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.ks-row-ic .icon { width: 20px; height: 20px; }
.ks-row h4 { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); margin: 2px 0 4px; }
.ks-row ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.ks-row li { font-size: .875rem; line-height: 1.45; color: var(--text); }
.ks-row li b { color: #1a4480; }
.ks-empf { margin-top: 18px; }
.ks-empf-h { display: block; font-size: .6875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #9a5b00; margin-bottom: 8px; }
.ks-empf ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ks-empf li { font-size: .75rem; font-weight: 600; color: #7a4a00; background: #fff4e0; border-radius: 999px; padding: 5px 11px; }

/* Montageset */
.ks-mont { margin-top: 28px; display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; background: var(--bg-soft); border-radius: 16px; padding: 20px 28px 20px 20px; }
.ks-mont-img { background: #fff; border-radius: 12px; overflow: hidden; }
.ks-mont-img img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
.ks-mont h3 { font-size: 1.25rem; color: #1a4480; margin: 10px 0 6px; }
.ks-mont p { margin: 0; color: var(--text); font-size: .9375rem; }

@media (max-width: 900px) {
  .ks-set { grid-template-columns: 1fr; }
  .ks-flip .ks-set-media { order: 0; border-left: 0; }
  .ks-set-media { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px; }
  .ks-set-body { padding: 22px 20px 24px; }
}
@media (max-width: 560px) {
  .ks-mont { grid-template-columns: 1fr; padding: 16px; gap: 14px; }
  .ks-mont-img { max-width: 220px; }
}
@media (max-width: 700px) {
  .ks-cmp { min-width: 640px; font-size: .8125rem; }
  .ks-cmp th, .ks-cmp td { padding: 11px 10px; }
  .ks-cmp tbody th, .ks-cmp-corner { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 var(--line); white-space: normal; width: 104px; }
  .ks-cmp tbody tr:nth-child(even):not(.ks-cmp-btns) th { background: #f8faff; }
  .ks-th-nr { font-size: 1.0625rem; }
}

/* Ergänzungssortimente */
.ks-ergs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ks-erg { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); scroll-margin-top: 100px; }
.ks-erg-media { position: relative; padding: 20px; border-bottom: 1px solid var(--line); background: #fff; }
.ks-erg-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; display: block; }
.ks-badge-neu { background: #16884a; }
.ks-erg-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; background: linear-gradient(180deg, #fff 0%, #fbfcff 100%); }
.ks-erg h3 { font-size: 1.3125rem; color: #1a4480; letter-spacing: -0.02em; margin: 0 0 6px; }
.ks-passt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; background: var(--bg-soft); border-radius: 10px; margin-bottom: 14px; }
.ks-passt span { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.ks-passt ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ks-passt li { font-size: .8125rem; font-weight: 700; color: #fff; background: #1a4480; border-radius: 6px; padding: 3px 9px; }
.ks-erg-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.ks-erg-list li { position: relative; padding-left: 20px; font-size: .875rem; line-height: 1.45; color: var(--text); }
.ks-erg-list li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.ks-erg-list b { color: #1a4480; }
.ks-sizes { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ks-sizes li { font-size: .75rem; font-weight: 700; color: var(--blue); border: 1px solid #cee7fa; background: #f4f9fe; border-radius: 999px; padding: 4px 10px; }
.ks-vid { align-self: flex-start; margin-top: 14px; padding: 9px 16px; font-size: .8438rem; display: inline-flex; align-items: center; gap: 8px; }
.ks-vid .icon { width: 18px; height: 18px; }
.ks-erg .ks-empf { margin-top: auto; padding-top: 18px; }
@media (max-width: 860px) { .ks-ergs { grid-template-columns: 1fr; } .ks-erg-body { padding: 20px; } }
.ks-ic-img { width: 24px; height: 24px; object-fit: contain; display: block; }
.ks-strength-img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
@media (min-width: 1100px) {
  .ks-ergs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .ks-erg-body { padding: 22px 22px 24px; }
  .ks-erg h3 { font-size: 1.1875rem; }
  .ks-erg-media { padding: 16px; }
}
.ks-cell { display: flex; align-items: flex-start; gap: 8px; line-height: 1.45; }
.ks-cell .ks-yes { margin: 0; flex-shrink: 0; vertical-align: 0; }
.ks-cell > span:last-child { padding-top: 1px; }
.ks-badge:not(.ks-badge-neu), .ks-th-badge { background: #e3262f; }
.ks-passt-all p { margin: 0; font-size: .8438rem; font-weight: 700; color: #1a4480; line-height: 1.35; }
.ks-warn { margin: 12px 0 0; padding: 10px 12px 10px 38px; position: relative; background: #fdecec; border: 1px solid #f6c4c6; border-radius: 10px; color: #9b1c22; font-size: .8125rem; line-height: 1.45; }
.ks-warn::before { content: "!"; position: absolute; left: 12px; top: 10px; width: 18px; height: 18px; border-radius: 50%; background: #e3262f; color: #fff; font-weight: 800; font-size: .75rem; display: flex; align-items: center; justify-content: center; }
.ks-row li .ks-warn-in { display: block; margin: 6px 0 2px; }
/* Hinweis dezent */
.ks-warn, .ks-row li .ks-warn-in { margin: 6px 0 0; padding: 0; background: none; border: 0; border-radius: 0; color: var(--muted); font-size: .75rem; line-height: 1.45; font-style: italic; }
.ks-warn::before { content: none; }
.ks-warn b { font-weight: 600; color: var(--text); }
.ks-h4-sub { margin-left: 8px; font-size: .6875rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.ks-th-sub { display: block; font-size: .6875rem; font-weight: 500; color: var(--muted); margin-top: 2px; }
.ks-mm { margin: 6px 0 0; font-size: .6875rem; color: var(--muted); }
.oe-banner { display: block; line-height: 0; }
.oe-banner img[src$="banner-ergaenzung.jpg"] { width: 100%; height: auto; aspect-ratio: 2000 / 767; max-height: 560px; object-fit: cover; display: block; }
.ks-erg-sub { font-size: 1.25rem; color: #1a4480; margin: 8px 0 6px; }
.ks-erg-sublead { color: var(--text); margin: 0 0 18px; font-size: .9375rem; }
.ks-ergs-4 { margin-bottom: 40px; }
@media (min-width: 1100px) { .ks-ergs.ks-ergs-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } .ks-ergs-4 .ks-erg-body { padding: 18px 18px 20px; } .ks-ergs-4 .ks-erg h3 { font-size: 1.0625rem; } }
.ks-erw-head { margin-top: 48px; margin-bottom: 20px; }
.ks-passt .ks-passt-tech { flex-basis: 100%; margin: 0; font-size: .8rem; color: var(--muted, #6b7785); }
/* Set-Inhalt nachbestellen */
.ks-reorder { margin-top: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ks-reorder-btn .icon { width: 15px; height: 15px; }
.ks-reorder-note { margin: 0; font-size: .78rem; color: #5b6b7f; }
.ks-erg .ks-reorder + .ks-empf { margin-top: 18px; }
.ks-reorder-s { display: block; margin-top: 8px; font-size: .78rem; font-weight: 600; color: #0070C0; text-decoration: underline; text-underline-offset: 3px; }
