/* ============================================================
 * KONFIGURATOR SCHWEISSVORHANG MIT PVC-SICHTFENSTER
 * Ergänzt configurator.css und curtain-configurator.css (Klassen .pv-*)
 * ============================================================ */

.pv-build { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 8px 0 24px; }
.pv-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line, #E3E6EA); border-radius: 6px; background: var(--surface, #fff); overflow: hidden; }
.pv-card--fixed { border-color: var(--ink, #141618); }
.pv-card-img { position: relative; aspect-ratio: 3 / 2; background: #ECEEF0; }
.pv-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-card-body { padding: 16px 18px 18px; display: grid; gap: 12px; align-content: start; }
.pv-card-body h3 { margin: 0; font-size: 1.15rem; }
.pv-card-body h3 span { display: block; font-size: .9rem; font-weight: 500; color: var(--muted, #6B7176); }
.pv-kicker { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #6B7176); }
.pv-lock { display: inline-flex; gap: 4px; align-items: center; padding: 2px 8px; border-radius: 999px; background: var(--ink, #141618); color: #fff; letter-spacing: .02em; text-transform: none; font-weight: 600; }

.pv-colors { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
.pv-colors legend { padding: 0; margin-bottom: 6px; font-weight: 600; font-size: .92rem; }
.pv-color { position: relative; display: block; cursor: pointer; }
.pv-color input { position: absolute; opacity: 0; inset: 0; }
.pv-color > span { display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line-2, #D5D9DE); border-radius: 6px; }
.pv-color i { grid-row: span 2; width: 36px; height: 36px; border-radius: 4px; background: var(--pv); opacity: .82; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15), inset 0 -10px 14px rgba(255,255,255,.25); }
.pv-color small { color: var(--muted, #6B7176); font-size: .82rem; }
.pv-color input:checked + span { border-color: var(--ink, #141618); box-shadow: 0 0 0 1px var(--ink, #141618); }
.pv-color input:focus-visible + span { outline: 2px solid var(--accent, #D7141E); outline-offset: 2px; }
.pv-more { margin: 0; font-size: .82rem; color: var(--muted, #6B7176); }

.pv-cert { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 10px 12px; border-radius: 6px; background: #F3F5F6; }
.pv-cert .icon { color: #1E7B3A; margin-top: 2px; }
.pv-cert strong { display: block; font-size: .9rem; }
.pv-cert small { display: block; color: var(--muted, #6B7176); font-size: .82rem; line-height: 1.45; }

.pv-scheme { margin: 0 0 20px; }
.pv-steps-list { margin: 8px 0 0; padding-left: 1.3em; display: grid; gap: 6px; color: var(--text, #2B2F33); }

/* Schritt 2 */
.pv-win .cfg-preset-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pv-fields { margin: 8px 0 0; font-size: .9rem; }
.pv-fields:empty { display: none; }
.pv-fields b { font-weight: 600; }
.pv-red { color: #8E1A22; }
.pv-ey legend small { font-weight: 500; color: var(--muted, #6B7176); margin-left: 6px; }
.pv-ey-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.pv-ey-row .field { margin: 0; min-width: 180px; }
.pv-ey-row .cfg-side-res { margin: 0; }
.pv-sw { display: inline-block; width: 28px; height: 40px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }

@media (max-width: 760px) {
    .pv-build, .pv-win .cfg-preset-row { grid-template-columns: 1fr; }
}

/* Schritt 1: Hinweis Aufbau, Farbauswahl je Position, nicht realisierbare Optionen */
.pv-info { margin: 0 0 18px; border: 1px solid var(--line, #E3E6EA); border-radius: 6px; background: #F7F8F9; }
.pv-info summary { cursor: pointer; padding: 10px 14px; font-weight: 600; font-size: .92rem; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.pv-info summary span { font-weight: 500; color: var(--muted, #6B7176); font-size: .85rem; }
.pv-info .pv-steps-list, .pv-info .cfg-small { margin: 0 14px 12px 32px; font-size: .88rem; }
.pv-info .cfg-small { margin-left: 14px; }
.pv-colors { margin: 18px 0 0; }
.pv-color-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pv-color-row .pv-color, .pv-color-row .pv-color > span { height: 100%; }
.pv-color-row .pv-color > span { grid-template-columns: 1fr; align-content: start; row-gap: 3px; padding: 10px 10px 12px; }
.pv-color-row .pv-color strong { margin-top: 8px; font-size: .9rem; line-height: 1.25; hyphens: manual; }
.pv-color-row .pv-color small { font-size: .78rem; line-height: 1.35; }
/* Farbvorschau mit leichtem Glanz (Lichtkante oben, weicher Reflex, dunkle Kante unten) */
.pv-color-row .pv-color i { position: relative; overflow: hidden; grid-row: auto; width: 100%; height: 64px; border-radius: 5px; opacity: 1;
    background: linear-gradient(165deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,.16) 34%, rgba(255,255,255,0) 36%, rgba(0,0,0,0) 70%, rgba(0,0,0,.14) 100%), var(--pv);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.6), 0 1px 2px rgba(20,22,24,.12); }
.pv-color-row .pv-color i::after { content: ""; position: absolute; top: 7px; left: 10%; width: 38%; height: 9px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(255,255,255,.7), rgba(255,255,255,0) 70%); }
/* Dunkelgrün matt: ohne Glanz, nur feine Körnung */
.pv-color-row .pv-color--dgreen i { background: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1.2px) 0 0 / 3px 3px, var(--pv); box-shadow: inset 0 0 0 1px rgba(0,0,0,.14), 0 1px 2px rgba(20,22,24,.12); }
.pv-color-row .pv-color--dgreen i::after { display: none; }
.pv-color-row .pv-color input:checked + span i { box-shadow: inset 0 0 0 1px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.6), 0 2px 6px rgba(20,22,24,.22); }
.pv-color.is-off { cursor: not-allowed; }
.pv-color.is-off > span { opacity: .5; background: #F3F5F6; }
.pv-color.is-off i { filter: grayscale(.2); }
.cfg-preset.is-off { cursor: not-allowed; }
.cfg-preset.is-off > span { opacity: .45; }
@media (max-width: 640px) {
    .pv-color-row { grid-template-columns: 1fr; gap: 8px; }
    .pv-color-row .pv-color > span { grid-template-columns: 44px 1fr; column-gap: 12px; align-items: center; padding: 9px 12px; }
    .pv-color-row .pv-color i { grid-row: span 2; width: 44px; height: 44px; }
    .pv-color-row .pv-color i::after { top: 5px; height: 7px; width: 50%; }
    .pv-color-row .pv-color strong { margin-top: 0; }
}

/* Ganze Karte als Klickfläche: Auswahlfeld liegt unsichtbar über der Karte, Hover-Rahmen als Rückmeldung */
.pv-color-row .pv-color input { z-index: 2; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pv-color-row .pv-color.is-off input { cursor: not-allowed; }
.pv-color-row .pv-color:not(.is-off):hover > span { border-color: var(--ink, #141618); }
.pv-color-row .pv-color > span { transition: border-color .15s ease, box-shadow .15s ease; }

/* Ösen: dezent hervorgehobener Bereich */
.pv-ey { margin-top: 22px; padding: 14px 16px 12px; border: 1px solid var(--line, #E3E6EA); border-radius: 6px; background: #F7F8F9; }
.pv-ey legend { float: left; width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 12px; font-weight: 600; font-size: 15px; color: var(--ink, #141618); }
.pv-ey legend + * { clear: both; }
.pv-ey legend small { margin-left: 0; font-weight: 500; font-size: 13px; }
.pv-ey-ico { width: 18px; height: 18px; flex: none; }
.pv-ey .field select, .pv-ey .cfg-unit { background: #fff; }
.pv-ey > .cfg-small { margin: 10px 0 0; }

/* Schritt 1: nur „Weiter“, rechtsbündig */
#cfg-step-1 .cfg-step-foot { justify-content: flex-end; }
