/* Analyse: Pillar-Karten → Overall Score → Reiter → Front und Profil nebeneinander → Werte.
   Messungen erscheinen beim Darüberfahren im Foto (Linien, Winkel, Punkte, leichter Zoom). */

/* ---------- Rahmen ---------- */
.rp-main { min-width: 0; padding-bottom: 0 !important; }
.rpx { padding-bottom: 56px; }
.rpx--overview { max-width: 1280px; }
.rp-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 4px 0 16px; }
.rp-top .kicker { margin-bottom: 8px; }
.rp-h1 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 6px; overflow-wrap: anywhere; }
.rp-top .label-mono { color: var(--faint); }
.rp-flag { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border: 1px solid color-mix(in oklab, #e6b35a 45%, transparent); border-radius: 999px; font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #ecc57c; }
.rp-flag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #e6b35a; box-shadow: 0 0 8px #e6b35a; }

/* Pillar-Karten als Links */
.rp-ptree .pcard { text-decoration: none; }
.rp-ptree .pcard .pc-c { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rp-ptree .pcard.locked .pc-v { min-height: 22px; align-items: center; }
.rp-card { position: relative; }
.pill.on, .pill[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 600; }
.oc-head .oc-pot .label-mono { color: var(--ink-2); }
.rp-note { margin-top: 16px; }
.rp-provenance { margin: 26px 0 0; padding-top: 0; }
.rp-provenance > p { line-height: 1.65; margin: 14px 0; color: var(--muted); max-width: 820px; }
.rp-bottom-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 0; }
.rp-confirm { margin: 18px 0 0; border-color: #ad6f61; }

/* ---------- Bühne: Front und Profil ---------- */
.rs { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rs-faces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rs-face { margin: 0; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); overflow: hidden; transition: border-color .3s, opacity .3s; }
.rs-face.is-active { border-color: color-mix(in oklab, var(--plat) 55%, transparent); }
.rs-face.is-idle .rs-svg image { opacity: .5; }
.rs-svg { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; max-height: calc(100dvh - 330px); min-height: 220px; background: #0b0d13; }
.rs-svg image { transition: opacity .35s; }
.rs-face figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 8px 12px 9px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.rs-face figcaption small { margin-left: 8px; font-size: 11px; color: var(--faint); }
.rs-face figcaption b { font-size: 14px; font-weight: 700; }
.rs-missing { aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 20px; text-align: center; font-size: 12.5px; color: var(--muted); }
/* alle Punkte (Schalter „Punkte“) */
.rs-all { opacity: 0; transition: opacity .3s; pointer-events: none; }
.rs-all.on { opacity: 1; }
.rs-all circle { r: calc(2.3px * var(--u, 1)); fill: #fff; stroke: rgba(5, 8, 13, .65); stroke-width: calc(.8px * var(--u, 1)); }
.rs-all circle.is-manual { fill: #f2b65a; }
.rs-face.is-active .rs-all { opacity: .42; }

/* Messung im Foto: wie die Live-Messung der Startseite */
.rs-ms { pointer-events: none; }
.rs-line { fill: none; stroke: #fff; stroke-width: calc(1.7px * var(--u, 1)); stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 calc(1.2px * var(--u, 1)) rgba(4, 5, 9, .9)); }
.rs-line--soft { stroke-width: calc(1.3px * var(--u, 1)); }
.rs-ref { fill: none; stroke: #eef2fb; stroke-opacity: .55; stroke-width: calc(1px * var(--u, 1)); stroke-dasharray: calc(5px * var(--u, 1)) calc(4px * var(--u, 1)); opacity: 0; }
.rs-guide { fill: none; stroke: #eef2fb; stroke-opacity: .6; stroke-width: calc(1px * var(--u, 1)); stroke-dasharray: calc(3px * var(--u, 1)) calc(4px * var(--u, 1)); opacity: 0; }
/* Bemaßung: gemessene Strecke durchgezogen mit Endstrichen, Bezugsstrecke gestrichelt („1“ bzw. „100 %“), Hilfslinien fein gestrichelt */
.rs-dim { fill: none; stroke: #fff; stroke-width: calc(1.8px * var(--u, 1)); stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 calc(1.2px * var(--u, 1)) rgba(4, 5, 9, .95)); }
.rs-dim--ref { stroke: #e4eaf7; stroke-width: calc(1.5px * var(--u, 1)); stroke-linecap: butt; stroke-dasharray: calc(5px * var(--u, 1)) calc(3.5px * var(--u, 1)); stroke-dashoffset: 0; opacity: 0; }
.rs-cap { fill: none; stroke: #fff; stroke-width: calc(1.4px * var(--u, 1)); stroke-linecap: round; opacity: 0; filter: drop-shadow(0 0 calc(1px * var(--u, 1)) rgba(4, 5, 9, .9)); }
.rs-ext { fill: none; stroke: #eef2fb; stroke-opacity: .5; stroke-width: calc(1px * var(--u, 1)); stroke-dasharray: calc(2px * var(--u, 1)) calc(3px * var(--u, 1)); opacity: 0; }
.rs-ref--fh { stroke-opacity: .7; }
.rs-ref--mid { stroke-opacity: .42; stroke-dasharray: calc(8px * var(--u, 1)) calc(5px * var(--u, 1)); }
.rs-tag--base rect { fill: rgba(9, 11, 17, .82); stroke: rgba(228, 234, 247, .7); stroke-dasharray: 3 2; }
.rs-tag--base text { fill: #e4eaf7; font-weight: 500; }
.rs-at { transform: translate(calc(var(--x) * 1px), calc(var(--y) * 1px)) scale(calc(var(--u, 1) * var(--ts, 1))); }
.rs-arc { fill: none; stroke: #fff; stroke-width: 1.4; stroke-dasharray: 1 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 1px rgba(4, 5, 9, .9)); }
.rs-ring { fill: rgba(6, 8, 12, .25); stroke: #fff; stroke-width: 1.3; }
.rs-dot { fill: #fff; }
.rs-built { fill: none; stroke: #dfe6ff; stroke-width: 1.2; }
.rs-p { opacity: 0; }
.rs-tag rect { fill: rgba(9, 11, 17, .92); stroke: rgba(220, 226, 238, .45); stroke-width: 1; }
.rs-tag text { fill: #e8edf8; font: 500 9px var(--mono); letter-spacing: .06em; }
.rs-tag--v rect { fill: #f4f6fb; stroke: none; }
.rs-tag--v text { fill: #07090e; font-weight: 600; }
.rs-t { opacity: 0; }
.rs-region { fill: rgba(220, 226, 238, .1); stroke: #eef2fb; stroke-width: calc(1.3px * var(--u, 1)); stroke-dasharray: calc(4px * var(--u, 1)) calc(3px * var(--u, 1)); opacity: 0; }
.rs-region--line { fill: none; stroke-dasharray: 1 1; stroke-dashoffset: 1; stroke-width: calc(1.8px * var(--u, 1)); stroke-linejoin: round; opacity: 1; }
.rs-ms.on .rs-line, .rs-ms.on .rs-arc, .rs-ms.on .rs-region--line, .rs-ms.on .rs-dim { stroke-dashoffset: 0; transition: stroke-dashoffset .55s var(--ease) .12s; }
.rs-ms.on .rs-ref, .rs-ms.on .rs-guide, .rs-ms.on .rs-ext { opacity: 1; transition: opacity .3s ease .05s; }
.rs-ms.on .rs-dim--ref { opacity: .92; transition: opacity .35s ease .18s; }
.rs-ms.on .rs-cap { opacity: 1; transition: opacity .2s ease .5s; }
.rs-ms.on .rs-p { opacity: 1; transition: opacity .25s ease; }
.rs-ms.on .rs-p .rs-ring { animation: rsPop .45s var(--spring, cubic-bezier(.34,1.56,.64,1)) both; }
.rs-ms.on .rs-t { opacity: 1; transition: opacity .25s ease .5s; }
.rs-ms.on .rs-region { opacity: 1; transition: opacity .35s ease; }
@keyframes rsPop { from { transform: scale(.2); opacity: 0; } }
/* erneutes Zeigen desselben Werts (z. B. nach einer Korrektur): ohne Neuaufbau-Animation */
.rs-ms.is-still, .rs-ms.is-still * { transition: none !important; animation: none !important; }

/* Ablesung unter den Fotos – wie die Live-Messung der Startseite */
.rs-read { position: relative; min-height: 96px; padding: 13px 16px 14px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, rgba(255,255,255,.018), transparent 60%), var(--bg-2); }
.rs-read.on { animation: rsIn .32s var(--ease); }
@keyframes rsIn { from { opacity: .35; transform: translateY(3px); } }
.rs-r-idle { display: flex; align-items: center; gap: 12px; min-height: 68px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.rs-r-idle p { margin: 0; }
.rs-r-ic { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line-3); border-radius: 50%; }
.rs-r-ic svg { width: 14px; height: 14px; fill: none; stroke: var(--plat); stroke-width: 1.3; }
.rs-r-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 22px; }
.rs-r-top .label-mono { font-size: 9.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-r-top .st { flex: none; padding: 3px 9px; font-size: 9px; }
.rs-r-main { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 6px 24px; margin: 8px 0 4px; }
.rs-r-t { min-width: 0; display: flex; flex-direction: column; gap: 3px; padding-bottom: 3px; }
.rs-r-t b { font-size: 16px; font-weight: 650; letter-spacing: -.01em; line-height: 1.25; hyphens: auto; overflow-wrap: anywhere; }
.rs-r-t small { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.rs-r-v { display: flex; align-items: baseline; gap: 6px; }
.rs-num { font: 400 34px/1 var(--mono); font-stretch: 88%; letter-spacing: -.05em; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 0 0 24px rgba(210,224,255,.28); }
.rs-r-v small { font: 500 12px var(--mono); color: var(--muted); }
.rs-r-sc { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; padding-bottom: 2px; }
.rs-r-sc .label-mono { font-size: 8.5px; color: var(--muted); }
.rs-r-sc b { font-size: 24px; font-weight: 700; font-stretch: 88%; line-height: 1; }
.rs-ruler { margin-top: 8px; }
.rs-ruler .band-head { color: var(--muted); }
.rs-ruler .band-head span:last-child { color: var(--ink); }
.rs-ruler .band { margin: 13px 0 2px; height: 18px; }
.rs-ruler .band-mark { height: 22px; }
.rs-ruler .band-scale { color: var(--faint); }
.rs-band-a { position: absolute; bottom: -3px; height: 18px; border-left: 2px solid #78a8ff; }
.rs-read .rs-r-idle + * { display: none; }
/* ---------- Detail: Bühne links (bleibt stehen), Werte rechts ---------- */
.rp-body { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 29vw, 420px); align-items: start; }
.rp-stagecol { position: sticky; top: 70px; padding: 16px 18px 18px; min-width: 0; }
.rp-list { min-height: 100%; padding: 0 0 18px; border-left: 1px solid var(--line); }
.rp-list-top { padding: 14px 14px 6px; }
.rp-search { position: relative; display: block; width: 100%; }
.rp-search svg { position: absolute; left: 12px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-linecap: round; pointer-events: none; }
.rp-search .field { min-height: 38px; padding: 8px 12px 8px 34px; border-radius: 10px; font-size: 13px; }
.rp-list-top .hint { margin: 8px 2px 0; font-size: 11.5px; line-height: 1.5; }
.rp-list .vgrp { padding: 4px 8px; }
.rp-list .vg-h { top: 58px; background: #0d1017; }
.rp-list .vg-h span:last-child { font: 500 10px var(--mono); color: var(--faint); letter-spacing: .08em; }
.rp-row { border-radius: 9px; transition: background-color .15s; }
.rp-vrow { grid-template-columns: minmax(0, 1fr) auto 34px 12px; align-items: center; gap: 10px; min-height: 38px; cursor: pointer; }
.rp-row--image .rp-vrow { grid-template-columns: minmax(0, 1fr) 46px 34px 12px; }
.rp-vrow .vr-n { display: flex; flex-direction: column; gap: 1px; }
.rp-vrow .vr-n small { font-size: 10.5px; color: var(--faint); }
.rp-vrow .vr-v { color: var(--ink-2); text-align: right; }
.rp-row--image .rp-vrow .vr-v { font: 700 13px var(--sans); }
.vr-sc { font: 700 13px var(--sans); text-align: right; font-variant-numeric: tabular-nums; }
.vr-bar { position: relative; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.vr-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; opacity: .85; }
.vr-ic { display: grid; place-items: center; color: var(--faint); transition: transform .25s var(--ease), color .2s; }
.rp-row.is-open .vr-ic { transform: rotate(90deg); color: var(--ink-2); }
.rp-vrow.is-shown, .rp-vrow:hover { background: var(--surface-2); color: #fff; }
.rp-row.is-open { background: var(--surface-3); }
.rp-row.is-open .rp-vrow { color: #fff; background: none; }
.rp-row.is-manual .rp-vrow .vr-n::after { content: ''; }
.rp-row.is-doc .rp-vrow { opacity: .78; }
.rp-row-x { padding: 2px 10px 14px; font-size: 12.5px; }
.rp-row-x > .muted { margin: 10px 0 0; font-size: 12px; line-height: 1.55; }
.rp-row-x .hint { margin: 8px 0 0; font-size: 11.5px; line-height: 1.5; }
.rp-measure-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin: 6px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.rp-measure-stats > div { min-width: 0; }
.rp-measure-stats dt { font: 500 8.5px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.rp-measure-stats dd { margin: 0; font: 500 14px/1.35 var(--sans); overflow-wrap: anywhere; }
.rp-measure-stats dd small { font: 500 9.5px var(--mono); color: var(--muted); }
.rp-range-status { display: flex; align-items: center; gap: 7px; margin: 10px 0 0; font: 500 9.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.rp-range-status::before { content: ''; width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; }
.rp-range-status.in-range { color: #93cfae; }
.rp-range-status.out-range { color: var(--ink-2); }
.rp-measure-chart { border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); padding: 10px 8px 9px; margin-top: 10px; }
.rp-measure-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.rp-chart-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.rp-chart-ideal { fill: #91cba91b; stroke: #91cba96b; stroke-width: 1; }
.rp-chart-curve { fill: none; stroke: #a8bddc; stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.rp-chart-measured { stroke: var(--plat); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.rp-chart-dot { fill: var(--plat); stroke: var(--bg-2); stroke-width: 1.5; }
.rp-chart-label { font: 9px var(--mono); fill: var(--muted); }
.rp-chart-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px 14px; color: var(--muted); font: 8px var(--mono); line-height: 1.7; }
.rp-chart-legend > span { display: flex; align-items: center; gap: 5px; }
.rp-chart-legend i { display: block; width: 9px; height: 9px; }
.rp-chart-legend .is-ideal { background: #91cba938; border: 1px solid #91cba9; }
.rp-chart-legend .is-measured { background: var(--plat); width: 3px; height: 9px; }
.rp-row-x .method { margin-top: 12px; padding-top: 0; }
.rp-row-x .method .field { min-height: 40px; margin: 6px 0 0; }
.rp-row-x .method p { margin: 8px 0 0; color: var(--muted); }
.rp-reset-one { margin-top: 10px; font-size: 12px; }
/* Text-Schaltflächen im Wertebereich ohne Browser-Rahmen */
.rp-row-x button.link { border: 0; border-radius: 0; padding: 0 0 2px; color: var(--ink-2); }
.rp-row-x button.link:hover { color: #fff; }
.rp-row-x button.link:disabled { opacity: .45; cursor: not-allowed; }
.rp-measure-photo { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.rp-measure-photo > summary { cursor: pointer; font: 500 10.5px var(--mono); letter-spacing: .04em; color: var(--plat); }
.rp-measure-photo svg { width: 100%; height: 260px; display: block; margin-top: 10px; border-radius: 8px; background: var(--bg-2); }
.rp-measure-photo-point circle { fill: #b0c7ee; stroke: #05080d; stroke-width: 2; vector-effect: non-scaling-stroke; }
.rp-measure-photo-point text { fill: #fff; stroke: #05080d; stroke-width: 3; paint-order: stroke; stroke-linejoin: round; font-family: var(--mono); }
.rp-point-key { font: 11px var(--sans); color: var(--muted); padding-left: 22px; line-height: 1.8; margin: 8px 0 0; }
.rp-point-key small { font-size: 10px; }
/* Regler für eigene Einschätzung (Bildnoten) */
.rp-slider-label { display: flex; align-items: baseline; justify-content: space-between; margin: 14px 0 2px; font: 500 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rp-slider-label b { font: 700 15px var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); }
.rp-slider-label b small { font-size: 11px; color: var(--faint); font-weight: 500; }
.rp-row-x .rp-slider-wrap { padding: 8px 0; }
.rp-row-x .rp-slider-wrap input[type=range] { accent-color: var(--plat); }
.rp-row-x .rp-auto-marker { top: 0; height: 26px; }
.rp-row-x .rp-scale { margin: 2px 0 6px; }
.rp-extra-measurements { margin: 10px 8px 0; padding: 12px 8px 0; border-top: 1px solid var(--line); }
.rp-extra-measurements > summary { cursor: pointer; font: 500 10.5px var(--mono); letter-spacing: .06em; color: var(--plat); }
.rp-extra-measurements > summary span { color: var(--faint); margin-left: 4px; }
.rp-extra-measurements .hint { margin: 8px 0 6px; font-size: 11.5px; }
.rp-nomatch { padding: 18px 16px; color: var(--muted); font-size: 13px; }
.rp-reset { padding: 14px 16px 0; }
.rp-lockwrap { padding: 18px; }
.rp-lockwrap .paybox { margin-top: 0; }

/* ---------- Übersicht ---------- */
.rp-ov.ov-body { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); }
.rp-ov .rs-svg { max-height: 420px; }
.rp-ov .ov-right { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.rp-comp { display: flex; flex-direction: column; }
.rp-comp .ovp-k, .rp-notable .ovp-k { display: flex; justify-content: space-between; padding: 0 2px 8px; }
.rp-comp-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(70px, 150px) 40px; align-items: center; gap: 14px; padding: 10px 10px; border-radius: 10px; transition: background-color .15s; }
.rp-comp-row:hover { background: var(--surface-2); }
.rp-comp-n { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rp-comp-n > span:last-child { display: flex; flex-direction: column; min-width: 0; font-size: 13.5px; font-weight: 600; }
.rp-comp-n small { font-size: 11px; font-weight: 400; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-comp-bar { position: relative; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.rp-comp-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; transition: width .45s var(--ease); }
.rp-comp-row .sc { font-size: 17px; font-weight: 700; font-stretch: 88%; text-align: right; }
.rp-notable { padding-top: 14px; border-top: 1px solid var(--line); }
.rp-note-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; text-decoration: none; }
.rp-note-row .vr-n small { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.rp-note-row.is-shown { background: var(--surface-3); color: #fff; }
@media (min-width: 1101px) { .rp-ov .ov-left { position: sticky; top: 70px; align-self: start; } }
.rp-plan-cta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); color: var(--ink); text-decoration: none; transition: border-color .2s, background-color .2s; }
.rp-plan-cta:hover { border-color: var(--line-3); background: var(--surface-2); }
.rp-plan-ic { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-3); border-radius: 50%; }
.rp-plan-ic svg { width: 15px; height: 15px; fill: none; stroke: var(--plat); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.rp-plan-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rp-plan-tx b { font-size: 14px; font-weight: 650; }
.rp-plan-tx small { font-size: 12px; color: var(--muted); }
.rp-plan-cta > svg { width: 14px; height: 14px; fill: none; stroke: var(--ink-2); stroke-width: 1.5; }
.rp-ov .paybox { margin-top: 0; padding: 20px; gap: 18px; }

/* ---------- Seitenleiste: kompakte Analyseliste ---------- */
.lrp-sidebar .lrp-history { gap: 4px; }
.lrp-sidebar .lrp-card { padding: 7px 8px; border-radius: 10px; }

/* ---------- Responsiv ---------- */
@media (max-width: 1100px) {
  .rp-body { display: block; }
  .rp-stagecol { position: sticky; top: 58px; z-index: 3; padding: 10px 14px 10px; border-bottom: 1px solid var(--line); background: #0d1017; }
  .rs-svg { max-height: 30vh; min-height: 150px; }
  .rp-stagecol .rs { gap: 8px; }
  .rp-stagecol .rs-read { min-height: 0; padding: 8px 11px 9px; }
  .rp-stagecol .rs-r-idle { min-height: 34px; font-size: 12px; }
  .rp-stagecol .rs-r-ic { width: 24px; height: 24px; }
  .rp-stagecol .rs-r-main { margin: 2px 0 6px; gap: 4px 14px; }
  .rp-stagecol .rs-r-t small { display: none; }
  /* Compact sticky stage: the readout keeps one height whether idle or showing a value, so hovering never resizes
     the stage over the row underneath the pointer (no hover flicker). Long names stay on one line here. */
  .rp-stagecol .rs-read { height: var(--rs-read-h, 122px); overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
  .rp-stagecol .rs-r-t b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .rp-stagecol .rs-num { font-size: 24px; }
  .rp-stagecol .rs-r-sc b { font-size: 17px; }
  .rp-stagecol .rs-face figcaption { padding: 5px 9px 6px; }
  .rp-list { border-left: 0; }
  .rp-list .vg-h { position: static; }
  .rp-ov.ov-body { grid-template-columns: minmax(0, 1fr); }
  /* Overview stacked: same fixed readout height, so the values below never jump while hovering. */
  .rp-ov .ov-left .rs-read { height: 146px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
  .rp-ov .ov-left .rs-r-t b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
}
@media (max-width: 760px) {
  .rp-top { align-items: flex-start; flex-direction: column; gap: 10px; margin-top: 0; }
  .rp-ptree .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .rp-ptree .pwire { display: none; }
  .rp-ptree { margin-bottom: 12px; }
  .rs-faces { gap: 8px; }
  .rs-svg { max-height: 26vh; min-height: 120px; }
  .rs-face figcaption small { display: none; }
  .rp-stagecol { --rs-read-h: 112px; }
  .rp-ov .ov-left .rs-read { height: 124px; padding: 10px 12px 11px; }
  .rp-ov .ov-left :is(.rs-r-k2, .rs-r-sc .label-mono, .rs-ruler .band-head, .rs-ruler .band-scale) { display: none; }
  .rp-ov .ov-left .rs-r-main { align-items: center; gap: 4px 12px; margin: 4px 0 6px; }
  .rp-ov .ov-left .rs-r-t b { font-size: 15px; }
  .rp-ov .ov-left .rs-r-t small { display: none; }
  .rp-stagecol .rs-r-k2, .rp-stagecol .rs-r-sc .label-mono { display: none; }
  .rp-stagecol .rs-r-main { align-items: center; gap: 4px 12px; }
  .rp-stagecol .rs-r-t b { font-size: 15px; }
  .rp-stagecol .rs-r-top .label-mono { font-size: 8.5px; }
  .rp-stagecol .rs-ruler .band-head, .rp-stagecol .rs-ruler .band-scale { display: none; }
  .rp-stagecol .rs-ruler { margin-top: 2px; }
  .rp-stagecol .rs-ruler .band { height: 12px; margin: 9px 0 0; }
  .rp-stagecol .rs-ruler .band-mark { height: 15px; bottom: -3px; }
  .rp-stagecol .rs-ruler .band-mark::after { top: -5px; border-width: 4px; left: -3px; }
  .rp-vrow { grid-template-columns: minmax(0, 1fr) auto 30px 12px; gap: 8px; }
  .rp-comp-row { grid-template-columns: minmax(0, 1fr) 70px 36px; gap: 10px; }
  .oc-hero .oc-pot { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .rs-line, .rs-arc, .rs-region--line, .rs-dim:not(.rs-dim--ref) { stroke-dashoffset: 0 !important; }
  .rs-p, .rs-t, .rs-ref, .rs-guide, .rs-region, .rs-ext, .rs-cap, .rs-dim--ref { opacity: 1 !important; }
}

/* ---------- Vergleich zweier Analysen ---------- */
.rpx--cmp { max-width: 1280px; }
.rp-cmp-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 620px; margin-top: 8px; padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.rp-cmp-empty p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.rp-cmp-ic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border: 1px solid var(--line-3); border-radius: 50%; color: var(--plat); }
.rp-cmp-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.rp-cmp { overflow: visible; }
.rp-cmp-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.rp-cmp-head .rp-cmp-ic { width: 38px; height: 38px; margin-bottom: 2px; }
.rp-cmp-pick { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rp-cmp-pick .label-mono { display: flex; align-items: center; gap: 8px; font-size: 9.5px; color: var(--muted); }
.rp-cmp-pick .label-mono b { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: var(--ink); color: var(--bg); font-weight: 700; letter-spacing: 0; }
.rp-cmp-pick .field { min-height: 42px; border-radius: 10px; font-size: 13.5px; }
.rp-cmp-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-bottom: 1px solid var(--line); }
.rp-cmp-score { display: flex; flex-direction: column; gap: 8px; padding: 16px 20px; border-right: 1px solid var(--line); }
.rp-cmp-score:last-child { border-right: 0; }
.rp-cmp-score .label-mono { font-size: 9.5px; color: var(--muted); }
.rp-cmp-ab { display: flex; align-items: baseline; gap: 8px; }
.rp-cmp-ab b { font-size: 22px; font-weight: 700; font-stretch: 88%; font-variant-numeric: tabular-nums; }
.rp-cmp-ab i { font-style: normal; color: var(--faint); font-size: 13px; }
.rp-cmp-d { font: 600 11.5px var(--mono); font-variant-numeric: tabular-nums; }
.rp-cmp-d.is-up { color: var(--ok, #6fd39a); }
.rp-cmp-d.is-down { color: #ef8a6a; }
.rp-cmp-d.is-flat, .rp-cmp-d.is-raw { color: var(--ink-2); }
.rp-cmp-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; }
.rp-cmp-photos { position: sticky; top: 70px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 18px; }
.rp-cmp-ph { position: relative; min-width: 0; }
.rp-cmp-ph .rp-photo { margin: 0; border-radius: 12px; overflow: hidden; }
.rp-cmp-ph .rp-photo svg { height: auto; max-height: calc(100dvh - 160px); }
.rp-cmp-ph .rp-photo-label { left: 8px; bottom: 8px; border-radius: 6px; padding: 6px 8px; }
.rp-cmp-tag { position: absolute; z-index: 2; left: 10px; top: 10px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: rgba(6, 7, 11, .72); backdrop-filter: blur(4px); font: 700 12px var(--sans); color: #fff; }
.rp-cmp-table { margin: 0; padding: 6px 12px 18px; border-left: 1px solid var(--line); }
.rp-cmp-table .rp-compare-row { grid-template-columns: minmax(0, 1fr) 72px 72px 72px; gap: 10px; padding: 9px 8px; border-bottom: 1px solid var(--line); font-size: 13px; align-items: baseline; }
.rp-cmp-table .rp-compare-row > span:not(:first-child) { text-align: right; font: 500 12.5px var(--mono); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.rp-cmp-table .rp-compare-row > span:first-child small { color: var(--faint); font-size: 11px; }
.rp-cmp-table .rp-compare-row > span.rp-cmp-d { font-weight: 600; }
.rp-cmp-table .rp-cmp-d.is-up { color: var(--ok, #6fd39a); }
.rp-cmp-table .rp-cmp-d.is-down { color: #ef8a6a; }
.rp-cmp-th { position: sticky; top: 58px; z-index: 1; background: var(--surface); }
.rp-cmp-th b { font: 500 9.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rp-cmp-th b:not(:first-child) { text-align: right; }
.rp-cmp-g { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 8px 6px; font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--plat); }
.rp-cmp-g .label-mono { color: var(--faint); }
.rp-cmp-note { margin-top: 16px; }
@media (max-width: 1100px) {
  .rp-cmp-body { grid-template-columns: minmax(0, 1fr); }
  .rp-cmp-photos { position: static; }
  .rp-cmp-table { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .rp-cmp-head { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .rp-cmp-head .rp-cmp-ic { display: none; }
  .rp-cmp-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-cmp-score { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .rp-cmp-table .rp-compare-row { grid-template-columns: minmax(0, 1fr) 54px 54px 58px; gap: 6px; font-size: 12.5px; }
  .rp-cmp-empty { padding: 22px 18px; }
}

.rp-point-definition-note{display:block}.rp-point-definition-note>strong{display:block;margin-bottom:.5rem}.rp-point-definition-note>p{margin:0;max-width:82ch}

/* Per-value explanations: use the existing expanded report cards. */
.rp-explanation{padding:0 0 14px;margin-bottom:14px;border-bottom:1px solid var(--line)}
.rp-explanation h4{font-size:12px;line-height:1.5;margin:0 0 8px;color:var(--ink);font-weight:650}
.rp-explanation p{font-size:12px;line-height:1.75;color:var(--ink-2);margin:7px 0}
.rp-explanation-reference{padding:10px 12px;margin-top:12px;border-radius:7px;background:var(--surface)}
.rp-explanation-reference>b,.rp-explanation-ends dt{font:10px/1.5 var(--mono);color:var(--muted)}
.rp-explanation-reference p{margin:5px 0 0}
.rp-explanation-ends{display:grid;gap:10px;margin:14px 0 0}.rp-explanation-ends dd{margin:4px 0 0;font-size:12px;line-height:1.65;color:var(--ink-2)}
.rp-part-explanation{display:block;font-weight:400;color:var(--muted);font-size:10px;line-height:1.6;margin-top:5px;min-width:150px;max-width:32ch}
.rp-dimo-measurements{margin:0 0 20px;padding:15px 18px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.rp-dimo-measurements>summary,.rp-dimo-measurement>summary{display:flex;align-items:center;justify-content:space-between;gap:15px;cursor:pointer;font-size:12px;line-height:1.5;color:var(--ink)}
.rp-dimo-measurements>summary{font-weight:650}.rp-dimo-measurements>summary>span,.rp-dimo-measurement>summary>b{font:10px var(--mono);white-space:nowrap;color:var(--muted)}
.rp-dimo-measurement{padding:13px 0;border-top:1px solid var(--line)}.rp-dimo-measurements>p{margin:14px 0}
.rp-dimo-measurement>div{padding:12px 0 0}.rp-dimo-measurement>div>p{font-size:12px;line-height:1.7;color:var(--ink-2);margin:6px 0}
.rp-dimo-measurement .rp-measure-stats{margin-top:14px}.rp-dimo-measurements summary:focus-visible{outline:2px solid var(--accent);outline-offset:5px}
@media(max-width:720px){.rp-dimo-measurements{padding:14px}.rp-dimo-measurement .rp-measure-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ---------- Harmony je Ansicht: Front und Profil mit eigener Teilnote ---------- */
.rp-hviews { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; padding: 14px 18px; border-top: 1px solid var(--line); }
.rp-hv-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; flex: 1 1 360px; max-width: 520px; padding: 4px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); }
.rp-hv { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: baseline; gap: 2px 10px; min-width: 0; padding: 9px 12px 8px; border: 1px solid transparent; border-radius: 9px; background: none; color: var(--muted); font: inherit; text-align: left; cursor: pointer; transition: background-color .18s, border-color .18s, color .18s; }
.rp-hv:hover { color: var(--ink-2); background: var(--surface-2); }
.rp-hv.on { color: var(--ink); background: var(--surface-3); border-color: var(--line-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.rp-hv:focus-visible { outline: 2px solid var(--plat); outline-offset: 2px; }
.rp-hv-n { font: 600 12.5px var(--sans); letter-spacing: .01em; }
.rp-hv-v { grid-row: span 2; display: inline-flex; align-items: baseline; gap: 3px; }
.rp-hv-v b { font: 700 22px/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.rp-hv:not(.on) .rp-hv-v b { opacity: .72; }
.rp-hv-v small { font: 500 10px var(--mono); color: var(--faint); }
.rp-hv-c { font: 500 9.5px var(--mono); letter-spacing: .06em; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-hv-note { margin: 0; font: 500 10px/1.5 var(--mono); letter-spacing: .04em; color: var(--muted); }
.rs--focus-front .rs-face[data-rs-face="profile"]:not(.is-active) .rs-svg image, .rs--focus-profile .rs-face[data-rs-face="front"]:not(.is-active) .rs-svg image { opacity: .5; }
.rs--focus-front .rs-face[data-rs-face="front"], .rs--focus-profile .rs-face[data-rs-face="profile"] { border-color: color-mix(in oklab, var(--plat) 32%, transparent); }

/* ---------- Beteiligte Messpunkte eines Werts ---------- */
.rp-points { margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); }
.rp-points-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.rp-points-h .label-mono { color: var(--muted); }
.rp-pt-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.rp-pt { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 42px; padding: 5px 6px 5px 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg-2); }
.rp-pt-i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); font: 600 10px var(--mono); color: var(--ink-2); }
.rp-pt.is-manual .rp-pt-i { border-color: color-mix(in oklab, #e6b35a 60%, transparent); color: #ecc57c; }
.rp-pt-n { display: flex; flex-direction: column; min-width: 0; }
.rp-pt-n b { font: 500 12.5px/1.35 var(--sans); color: var(--ink); overflow-wrap: anywhere; }
.rp-pt-n small { font: 500 9.5px/1.5 var(--mono); letter-spacing: .04em; color: var(--muted); }
.rp-pt.is-hidden .rp-pt-n b { color: var(--muted); }
.rp-pt-edit { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); font: 500 11.5px var(--sans); text-decoration: none; white-space: nowrap; transition: border-color .15s, color .15s, background-color .15s; }
.rp-pt-edit svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.rp-pt-edit:hover { color: #fff; border-color: var(--plat); background: var(--surface-3); }
.rp-pt-edit:focus-visible { outline: 2px solid var(--plat); outline-offset: 2px; }
.rp-points-hint { margin-top: 8px; }
.rp-points .rp-measure-photo { margin-top: 10px; }
@media (max-width: 600px) { .rp-hviews { padding: 12px 14px; } .rp-hv { padding: 8px 10px 7px; } .rp-hv-v b { font-size: 19px; } .rp-pt-edit span { display: none; } .rp-pt-edit { width: 36px; padding: 0; justify-content: center; } }

/* Older saved Harmony breakdown (weakness power 0.75): same card place as the current extra-deduction block. */
.rp-adj-host>.sc-under-photos{border:1px solid var(--line-2);border-radius:12px;overflow:hidden}
.sc-under-photos>.sc-breakdown-in{padding:10px 12px 12px}
.sc-under-photos .sc-breakdown-stats{margin:8px 0 10px;gap:8px 16px}
.sc-under-photos .sc-breakdown-stats dt{font-size:9px}
.sc-under-photos .sc-breakdown-stats dd{margin-top:2px;font-size:12px}
.sc-under-photos .sc-deduction-note{font-size:10px;line-height:1.55;margin:8px 0;color:var(--muted)}
.sc-under-photos .sc-deduction-table{max-height:180px;overflow:auto;scrollbar-gutter:stable}
.sc-deduction-table thead{position:sticky;top:0;z-index:1;background:var(--bg)}
.sc-deduction-table th,.sc-deduction-table td{padding:7px 9px}
.sc-deduction-table th:first-child{min-width:130px}
.sc-deduction-table a{color:var(--ink-2);text-decoration:none}
.sc-deduction-table a:hover{text-decoration:underline}
.sc-deduction-table small{font-size:9px;margin-top:2px}
.sc-deduction-table td:not(:first-child){white-space:nowrap}
.sc-deduction-table .sc-deduction{color:var(--warn)}
.sc-deduction-table .sc-offset{color:var(--s-good)}
.sc-deduction-table tfoot{position:sticky;bottom:0;z-index:1;background:var(--bg);font-weight:600}
.sc-deduction-views>summary{cursor:pointer;font-size:10px;color:var(--muted);padding:4px 0}


/* Gewicht eines Bereichs in der Gesamtnote: kleiner Kreisanteil rechts in der Notenzeile der Bereichskarte. */
.rp-ptree .pc-v { width: 100%; }
.pc-w { margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 6px; padding-left: 8px; white-space: nowrap; color: var(--ink-2); }
.pc-w b { font: 600 11.5px/1 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pc-w small { font: 500 8.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.pc-w-pie { flex: none; width: 14px; height: 14px; }
.pc-w-track { fill: none; stroke: var(--line-2); stroke-width: 3; }
.pc-w-fill { fill: none; stroke: var(--ink-2); stroke-width: 3; }
.pcard.on .pc-w-fill, .pcard:hover .pc-w-fill { stroke: var(--plat); }
@media (max-width: 760px) { .pc-w small { display: none; } .pc-w { gap: 5px; padding-left: 4px; } }

/* Referenzgruppe: Grundreferenz gestrichelt hinter dem verschobenen Idealbereich, kurzer Hinweis darunter. */
.rp-chart-base { fill: none; stroke: #a8bddc8c; stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.rp-chart-legend .is-base { border: 1px dashed #a8bddc; background: none; }
.rp-group-note { margin: 8px 0 0; font-size: 11.5px; line-height: 1.55; }

/* Formelanker, die nur Maßstab oder Richtung liefern (z. B. Haaransatz–Kinn): klein und zurückhaltend. */
.rs-aux { fill: rgba(6, 8, 12, .3); stroke: rgba(255, 255, 255, .62); stroke-width: 1; stroke-dasharray: 2 1.6; }

/* ==========================================================================
   Vergleich (runtime/report.js comparePicker/comparisonPage):
   Auswahl in zwei Schritten mit Foto, Datum, Score und Pillars; Ergebnis je Pillar gegliedert
   ========================================================================== */
/* Kopf der Analysenliste: Beschriftung oben, darunter Vergleichen und Plus in einer Reihe */
.lrp-sidebar .side-head { flex-wrap: wrap; row-gap: 10px; }
.lrp-sidebar .side-head > .label-mono { width: 100%; }
.side-acts { display: flex; align-items: center; gap: 6px; width: 100%; }
.side-acts .side-cmp { flex: 1; justify-content: center; height: 30px; }
.side-acts .side-new { width: 30px; height: 30px; }
.side-cmp { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px 0 7px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 11.5px; color: var(--ink-2); white-space: nowrap; transition: border-color .2s, color .2s, background-color .2s; }
.side-cmp svg { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.side-cmp:hover { border-color: var(--line-3); color: #fff; background: rgba(255, 255, 255, .03); }
.side-cmp:focus-visible { outline: 2px solid var(--plat); outline-offset: 2px; }
.side-m { display: contents; }
.side-cmp--m { display: none; }
@media (max-width: 1100px) {
  .lrp-sidebar .side-m { display: flex; align-items: stretch; gap: 8px; }
  .lrp-sidebar .side-m .lrp-mobile-selector { flex: 1; min-width: 0; }
  .lrp-sidebar .side-cmp--m { display: flex; flex-direction: column; justify-content: center; gap: 4px; height: auto; padding: 8px 12px; border-radius: 14px; font-size: 11px; text-align: center; }
  .lrp-sidebar .side-cmp--m svg { width: 16px; height: 16px; align-self: center; }
}

.cmp-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; }
.cmp-lead { margin: 8px 0 0; max-width: 62ch; color: var(--muted); font-size: 14px; line-height: 1.6; }
.cmp-steps { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cmp-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12px; color: var(--muted); }
.cmp-steps li span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); font: 600 11px var(--mono); color: var(--ink-2); }
.cmp-steps li.is-on { border-color: rgba(220, 226, 238, .45); color: #fff; background: rgba(220, 226, 238, .05); }
.cmp-steps li.is-on span { background: var(--plat); color: #07080c; }
.cmp-steps li.is-done span { background: rgba(95, 212, 164, .16); color: var(--ok); }
.cmp-chosen { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 14px; margin-top: 22px; padding: 14px 16px; border: 1px solid rgba(220, 226, 238, .2); border-radius: 16px; background: radial-gradient(120% 160% at 0% 0%, rgba(220, 226, 238, .06), transparent 60%), var(--bg-2); }
.cmp-chosen > .label-mono { grid-column: 1 / -1; font-size: 9.5px; color: var(--muted); }
.cmp-chosen .cmpk { border: 0; padding: 0; background: none; }
.cmp-list-head { display: flex; justify-content: space-between; gap: 12px; margin: 26px 0 10px; font-size: 9.5px; color: var(--faint); }
.cmp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }

.cmpk { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px 14px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, var(--surface), var(--bg-2)); color: inherit; text-decoration: none; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
a.cmpk:hover { border-color: var(--line-3); transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .9); }
a.cmpk:focus-visible { outline: 2px solid var(--plat); outline-offset: 2px; }
.cmpk-ph { position: relative; display: block; width: 96px; aspect-ratio: 3 / 4; border-radius: 11px; overflow: hidden; background: var(--surface-2); }
.cmpk-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cmpk-noph { display: grid; place-items: center; height: 100%; padding: 8px; font-size: 10.5px; line-height: 1.35; text-align: center; color: var(--faint); }
.cmpk-tag { position: absolute; left: 6px; top: 6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: rgba(6, 7, 11, .82); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); font: 700 11px var(--mono); color: #fff; }
.cmpk-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cmpk-title { min-width: 0; font-size: 15px; font-weight: 650; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cmpk-scores { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; }
.cmpk-score { flex: none; font-size: 26px; font-weight: 760; font-stretch: 88%; line-height: 1; font-variant-numeric: tabular-nums; }
.cmpk-score small { margin-left: 3px; font: 500 10px var(--mono); color: var(--faint); }
.cmpk-score-k { display: block; margin-bottom: 4px; font: 500 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cmpk-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font: 400 10px/1.4 var(--mono); color: var(--muted); }
.cmpk-rel { color: var(--plat); }
.cmpk-pills { display: flex; gap: 4px; }
.cmpk-p { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 34px; padding: 5px 6px; border-radius: 8px; background: rgba(255, 255, 255, .03); }
.cmpk-p small { font: 600 9px var(--mono); color: var(--faint); }
.cmpk-p b { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cmpk-go { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.cmpk-go i { font-style: normal; transition: transform .25s var(--ease); }
a.cmpk:hover .cmpk-go { color: #fff; }
a.cmpk:hover .cmpk-go i { transform: translateX(3px); }
.cmpk.is-disabled { opacity: .45; }
.cmpk.is-disabled .cmpk-go { font-weight: 500; color: var(--muted); }
.cmpk.is-compact { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; }
.cmpk.is-compact .cmpk-ph { width: 58px; border-radius: 9px; }
.cmpk.is-compact .cmpk-score { font-size: 22px; }

/* Ergebnis */
.rpx--cmp .rp-cmp-head { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; padding: 18px 20px; }
.cmp-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cmp-side > .label-mono { font-size: 9.5px; color: var(--muted); }
.cmp-side .cmpk { padding: 10px; }
.cmp-side > .link { align-self: flex-end; font-size: 12px; }
.cmp-mid { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.cmp-mid .label-mono { font-size: 9.5px; color: var(--muted); white-space: nowrap; }
.cmp-swap { font-size: 11.5px; white-space: nowrap; }
.rpx--cmp .rp-cmp-score .rp-cmp-d { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .04); }
.rpx--cmp .rp-cmp-score .rp-cmp-d.is-up { background: rgba(95, 212, 164, .12); }
.rpx--cmp .rp-cmp-score .rp-cmp-d.is-down { background: rgba(239, 138, 106, .12); }
.rpx--cmp .rp-cmp-d.is-up::before { content: '▲'; font-size: 8px; }
.rpx--cmp .rp-cmp-d.is-down::before { content: '▼'; font-size: 8px; }
.rp-cmp-sec { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rp-cmp-sec .rp-cmp-g { display: flex; align-items: center; gap: 10px; padding: 11px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.rp-cmp-sec .rp-cmp-g > span:first-child { font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.rp-cmp-sec .rp-cmp-g > .label-mono { padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, .05); font-size: 9.5px; color: var(--muted); }
.rp-cmp-gh { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 12px; font: 500 10px var(--mono); letter-spacing: .02em; text-transform: none; color: var(--muted); }
.rp-cmp-gh i { font-style: normal; }
.rp-cmp-gh .is-up { color: var(--ok, #6fd39a); }
.rp-cmp-gh .is-down { color: #ef8a6a; }
.rp-cmp-sec .rp-compare-row { margin: 0 4px; transition: background-color .15s; }
.rp-cmp-sec .rp-compare-row:last-child { border-bottom: 0; }
.rp-cmp-sec .rp-compare-row:hover { background: rgba(255, 255, 255, .025); }
.rpx--cmp .rp-cmp-table .rp-compare-row > span:nth-child(3)::before { content: '→'; margin-right: 6px; color: var(--faint); }
.rpx--cmp .rp-cmp-table .rp-compare-row > span.rp-cmp-d { justify-self: end; min-width: 54px; padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .035); text-align: right; }
.rpx--cmp .rp-cmp-table .rp-compare-row > span.rp-cmp-d.is-up { background: rgba(95, 212, 164, .1); }
.rpx--cmp .rp-cmp-table .rp-compare-row > span.rp-cmp-d.is-down { background: rgba(239, 138, 106, .1); }
.rpx--cmp .rp-cmp-table .rp-compare-row > span.rp-cmp-d.is-up::before, .rpx--cmp .rp-cmp-table .rp-compare-row > span.rp-cmp-d.is-down::before { margin-right: 4px; }
.rpx--cmp .rp-cmp-table .rp-cmp-th { margin: 0 4px; }
@media (max-width: 760px) {
  .rpx--cmp .rp-cmp-head { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; }
  .cmp-mid { flex-direction: row; justify-content: center; gap: 12px; }
  .cmp-mid .rp-cmp-ic { display: none; }
  .cmp-grid { grid-template-columns: minmax(0, 1fr); }
  .cmpk { grid-template-columns: 84px minmax(0, 1fr); }
  .cmpk-ph { width: 84px; }
  .cmp-steps { width: 100%; }
  .cmp-steps li { flex: 1; }
  .cmp-chosen { grid-template-columns: minmax(0, 1fr); }
  .cmp-chosen .btn { justify-self: start; }
  .rp-cmp-sec .rp-cmp-g { flex-wrap: wrap; }
  .rp-cmp-gh { margin-left: 0; width: 100%; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .cmpk, .cmpk-go i { transition: none; } }

/* Keep the existing comparison layout within narrow phone widths. */
@media (max-width: 760px) {
  .cmpk-scores, .cmpk-pills { flex-wrap: wrap; }
  .cmp-steps li { min-width: 0; overflow-wrap: anywhere; }
  .cmp-steps li > span { flex: none; }
  .cmp-mid { flex-wrap: wrap; }
}

/* On narrow phones keep the full trait name above the same A/B/delta columns. */
@media (max-width: 480px) {
  .rpx--cmp .rp-cmp-table .rp-compare-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 6px; }
  .rpx--cmp .rp-cmp-table .rp-compare-row > :first-child { grid-column: 1 / -1; min-width: 0; overflow-wrap: anywhere; }
  .rpx--cmp .rp-cmp-table .rp-compare-row > :nth-child(2) { grid-column: 1; }
  .rpx--cmp .rp-cmp-table .rp-compare-row > :nth-child(3) { grid-column: 2; }
  .rpx--cmp .rp-cmp-table .rp-compare-row > :nth-child(4) { grid-column: 3; }
}

.rp-cmp-reference-note { margin: 14px 18px; }
.rp-cmp-table .rp-cmp-empty-row > span { grid-column: 1 / -1; text-align: left; }

.rp-cmp-reference-note--warning { color: var(--warn, #f2b65a); font-size: 12px; line-height: 1.5; }
.rp-cmp-ref-wrap { display: inline-flex; align-items: center; vertical-align: middle; margin-inline-end: 5px; }
.rp-cmp-ref-info { display: inline-grid; place-items: center; width: 17px; height: 17px; flex: none; padding: 0; border: 1px solid currentColor; border-radius: 50%; background: transparent; color: var(--warn, #f2b65a); font: 700 11px/1 var(--sans); cursor: help; }
.rp-cmp-ref-info:focus-visible { outline: 2px solid var(--warn, #f2b65a); outline-offset: 3px; }
.rp-cmp-ref-tip { position: fixed; inset: auto; margin: 0; z-index: 120; width: 340px; max-width: calc(100vw - 24px); padding: 11px 13px; border: 1px solid var(--warn, #f2b65a); border-radius: 10px; background: #10131b; color: var(--ink, #edf0f5); box-shadow: 0 10px 35px rgba(0,0,0,.45); font: 400 12px/1.5 var(--sans); letter-spacing: normal; text-transform: none; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.rp-cmp-ref-tip[hidden] { display: none; }
.rp-cmp-score > .label-mono { display: inline-flex; align-items: center; }

.rpx--cmp > .rp-cmp-reference-note--warning { margin: 0 0 16px; }

.rp-cmp-ref-info { position: relative; }
.rp-cmp-ref-info::before { content: ""; position: absolute; inset: -5px; }
