/* ===== PV-Verlustrechner (/ratgeber/pv-verlustrechner/), angelegt 27.09.2026 ===== */
:where(.pvr-page) :is(h1, h2, p, ul, ol, dl, dd) { margin-block: 0; }
:where(.pvr-page) :is(ul, ol) { padding: 0; list-style: none; }
.pvr-page { padding-bottom: clamp(56px, 7vw, 96px); }
.pvr-page .crumbs { padding-top: 20px; }
.pvr-page .crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; font-size: 14px; color: var(--muted); }
.pvr-page .crumbs li { display: flex; align-items: center; min-width: 0; }
.pvr-page .crumbs li + li::before { content: '/'; margin: 0 10px; color: var(--rule-strong); }
.pvr-page .crumbs a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink-2); text-decoration: none; }
.pvr-page .crumbs a:hover { color: var(--ink); text-decoration: underline; }
.pvr-page .crumbs [aria-current] { color: var(--ink-2); }
.pvr-head { max-width: 780px; padding-block: clamp(20px, 3vw, 36px) clamp(24px, 3vw, 36px); }
.pvr-title { font-size: clamp(34px, 3.7vw, 52px); line-height: 1.07; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; color: var(--ink); }
.pvr-page .pvr-lead { margin-top: 16px; font-size: clamp(18px, 1.4vw, 20px); color: var(--ink-2); line-height: 1.55; text-wrap: pretty; }
.pvr-page .pvr-author { margin-top: 22px; display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-2); }
.pvr-author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; box-shadow: 0 0 0 1px var(--rule); }
.pvr-author strong { color: var(--ink); font-weight: 600; }

.pvr { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 3vw, 40px); align-items: start; }
@media (max-width: 980px) { .pvr { grid-template-columns: minmax(0, 1fr); } }

.pvr-form { display: grid; gap: 14px; }
.pvr-step { background: var(--paper-hi); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--rule); padding: clamp(20px, 2.4vw, 28px); }
.pvr-step__head { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 14px; align-items: center; margin-bottom: 20px; }
.pvr-step__no { grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--on-navy); font-family: var(--font-cond); font-weight: 600; font-size: 17px; align-self: start; }
.pvr-step__title { font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.pvr-step__text { font-size: 16px; color: var(--muted); line-height: 1.45; }

.pvr-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.pvr-fields .field--wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .pvr-fields { grid-template-columns: minmax(0, 1fr); } }
.pvr-label { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 600; color: var(--ink); }
.pvr-unit { display: flex; align-items: stretch; background: #fff; border: 1.5px solid var(--rule-strong); border-radius: var(--r); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.pvr-unit:hover { border-color: var(--ink-2); }
.pvr-unit:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 95, 209, .28); }
.pvr-page .pvr-unit input, .pvr-page .pvr-unit select { flex: 1; min-width: 0; min-height: 54px; padding: 12px 14px; border: 0; background: transparent; font: inherit; font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; outline: none; border-radius: var(--r); box-shadow: none; }
.pvr-page .pvr-unit select { cursor: pointer; -webkit-appearance: none; appearance: none; border: 0 !important; box-shadow: none !important; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2333425A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 9.5L12 15l5.5-5.5'/%3E%3C/svg%3E") no-repeat right 14px center / 20px 20px; padding-right: 44px; height: 54px; margin: 0; }
.pvr-unit span { display: flex; align-items: center; padding: 0 14px; font-size: 15px; color: var(--muted); border-left: 1px solid var(--rule); white-space: nowrap; }
.pvr-page .pvr-hint { margin-top: 7px; font-size: 14px; color: var(--muted); line-height: 1.45; }

.pvr-range { display: flex; align-items: center; gap: 16px; min-height: 54px; }
.pvr-range input { flex: 1; accent-color: var(--blue); height: 28px; cursor: pointer; }
.pvr-range output { min-width: 64px; text-align: right; font-family: var(--font-cond); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }

.pvr-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pvr-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .pvr-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .pvr-tiles--3 { grid-template-columns: minmax(0, 1fr); } .pvr-tiles--3 .pvr-tile { grid-template-columns: 112px minmax(0, 1fr); } .pvr-tiles--3 .pvr-tile canvas { grid-row: span 3; } }
.pvr-tile { position: relative; display: grid; align-content: start; gap: 4px; padding: 8px 8px 12px; text-align: left; background: #fff; border: 0; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink); font: inherit; cursor: pointer; transition: box-shadow .2s var(--ease); }
.pvr-tile:hover { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.pvr-tile[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--blue); background: var(--blue-wash); }
.pvr-tile canvas { width: 100%; max-width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r-sm); display: block; margin-bottom: 6px; }
.pvr-tile b { font-size: 17px; font-weight: 600; line-height: 1.25; padding-inline: 4px; }
.pvr-tile small { font-size: 14px; line-height: 1.35; color: var(--muted); padding-inline: 4px; }
.pvr-tile .pvr-tile__pct { margin-top: 4px; padding-inline: 4px; font-family: var(--font-cond); font-size: 15px; font-weight: 600; color: var(--blue); }
.pvr-tile__check { position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; display: none; place-items: center; box-shadow: 0 0 0 2px #fff; }
.pvr-tile__check .icon { width: 16px; height: 16px; stroke-width: 2.6; }
.pvr-tile[aria-pressed="true"] .pvr-tile__check { display: grid; }

/* Ergebnis */
.pvr-result { position: sticky; top: 104px; display: grid; gap: 18px; padding: 22px 22px 20px; background: var(--paper-hi); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--rule), var(--shadow); }
@media (max-width: 980px) { .pvr-result { position: static; } }
.pvr-result__label { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.pvr-page .pvr-result__big { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.pvr-result__val { font-family: var(--font-cond); font-size: clamp(46px, 5vw, 60px); line-height: 1; font-weight: 600; letter-spacing: -.01em; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.pvr-result__per { font-size: 16px; color: var(--muted); }
.pvr-kv { display: grid; }
.pvr-kv div { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; border-top: 1px solid var(--rule); font-size: 16px; }
.pvr-kv dt { color: var(--ink-2); }
.pvr-kv dd { font-weight: 600; font-variant-numeric: tabular-nums lining-nums; text-align: right; }
.pvr-bars { display: grid; gap: 10px; }
.pvr-bar { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.pvr-bar b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.pvr-bar__track { height: 10px; background: var(--stone); border-radius: 5px; overflow: hidden; }
.pvr-bar__fill { height: 100%; border-radius: 5px; background: var(--navy); transition: width .4s var(--ease); }
.pvr-bar--dirty .pvr-bar__fill { background: #9A7B4F; }
.pvr-verdict { padding: 14px 16px; border-radius: var(--r); background: var(--stone); font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.pvr-verdict strong { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 17px; color: var(--ink); }
.pvr-verdict strong::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--rule-strong); flex: none; }
.pvr-verdict--good { background: #E8F3ED; } .pvr-verdict--good strong::before { background: var(--ok); }
.pvr-verdict--mid { background: #FBF3E2; } .pvr-verdict--mid strong::before { background: #C98A12; }
.pvr-page .pvr-moss { margin-top: -6px; padding: 12px 14px; border-radius: var(--r); background: var(--blue-wash); font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.pvr-moss a { font-weight: 600; }
.pvr-cta { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--rule); }
.pvr-cta__title { font-size: 19px; font-weight: 600; line-height: 1.3; }
.pvr-page .pvr-cta__text { font-size: 15px; color: var(--ink-2); line-height: 1.5; margin-top: -6px; }
.pvr-cta .btn { font-size: 16px; }
.pvr-cta .btn .icon { width: 16px; height: 16px; }
.pvr-cta__alt { font-size: 15px; color: var(--ink-2); text-align: center; }
.pvr-ticks { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.pvr-ticks li { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.pvr-ticks .icon { color: var(--ink); stroke-width: 2.4; width: 17px; height: 17px; }
.pvr-linkbtn { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--blue); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.pvr-linkbtn:hover { color: var(--blue-deep); }

/* Methode & Weiterlesen */
.pvr-more { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); padding-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--rule); }
@media (max-width: 900px) { .pvr-more { grid-template-columns: minmax(0, 1fr); } }
.pvr-page .pvr-h2 { font-size: clamp(26px, 2.3vw, 32px); line-height: 1.15; font-weight: 600; letter-spacing: -.02em; margin-bottom: 16px; text-wrap: balance; }
.pvr-more p { font-size: 17px; color: var(--ink-2); max-width: 65ch; }
.pvr-page .pvr-more p + p { margin-top: 12px; }
.pvr-table-wrap { overflow-x: auto; margin-block: 20px; }
.pvr-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.pvr-table th { text-align: left; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 12px 10px 0; border-bottom: 1.5px solid var(--ink); }
.pvr-table td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); vertical-align: top; }
.pvr-table td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.pvr-table th:last-child, .pvr-table td:last-child { text-align: right; padding-right: 0; font-family: var(--font-cond); font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pvr-page .pvr-sources { margin-top: 18px; display: grid; gap: 10px; font-size: 15px; }
.pvr-sources li { display: grid; gap: 2px; }
.pvr-sources a { font-weight: 600; }
.pvr-sources span { color: var(--muted); font-size: 14px; }
.pvr-links { display: grid; gap: 12px; align-content: start; }
.pvr-links a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 18px 20px; background: var(--paper-hi); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px; line-height: 1.35; transition: box-shadow .2s var(--ease); }
.pvr-links a:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.pvr-links a small { display: block; margin-top: 3px; font-weight: 400; font-size: 14px; color: var(--muted); }
.pvr-links .icon { color: var(--blue); }
@media (prefers-reduced-motion: reduce) { .pvr-bar__fill { transition: none; } }
/* Felder im Rahmen: Grundregeln aus v2-base (.drr-v2 .field input) neutralisieren */
.drr-v2 .pvr-page .pvr-unit input, .drr-v2 .pvr-page .pvr-unit input:hover, .drr-v2 .pvr-page .pvr-unit input:focus, .drr-v2 .pvr-page .pvr-unit input:focus-visible { border: 0; box-shadow: none; outline: none; min-height: 54px; padding: 12px 14px; background: transparent; }
