/* Analysis side panels: headline strip, collapsible sections, method notes, empty states (web/js/panel-ui.js). */

.pn-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; margin-top: 10px; }
.pn-kpi { border: 1px solid var(--line); border-left: 3px solid var(--kpi-accent, var(--accent)); border-radius: 10px; padding: 8px 10px; background: #fbfdfb; min-width: 0; }
.pn-kpi-v { font-size: 19px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pn-kpi-u { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.pn-kpi-from { font-size: 13px; font-weight: 600; color: var(--muted); }
.pn-kpi-arrow { font-size: 13px; color: var(--muted); margin: 0 4px; }
.pn-kpi-l { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.3; }
.pn-kpi-s { font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.3; }
.pn-delta { display: inline-block; font-size: 12px; font-weight: 600; margin-top: 3px; font-variant-numeric: tabular-nums; }
.pn-delta.good { color: #1f6b3a; }
.pn-delta.bad { color: var(--danger); }
.pn-delta.neutral { color: var(--ink-2); }
.pn-delta-l { font-weight: 400; color: var(--muted); }

.pn-card { padding: 2px 14px; }
.pn-section { border-bottom: 1px solid var(--line); }
.pn-section:last-child { border-bottom: 0; }
.pn-section > summary { display: flex; align-items: center; gap: 8px; padding: 12px 2px; list-style: none; cursor: pointer; border-radius: 8px; }
.pn-section > summary::-webkit-details-marker { display: none; }
.pn-section > summary::before { content: '›'; flex: 0 0 auto; width: 14px; font-size: 18px; line-height: 1; color: var(--accent); transition: transform .15s; }
.pn-section[open] > summary::before { transform: rotate(90deg); }
.pn-section > summary:hover .pn-h { color: var(--accent); }
.pn-section > summary:focus-visible, .pn-method > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.card .pn-h, .pn-h { flex: 1; display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 650; }
.pn-h.accent::before { content: ''; flex: 0 0 auto; width: 10px; height: 10px; border-radius: 3px; background: var(--sec-accent, var(--accent)); }
.pn-badge { flex: 0 0 auto; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #eef3f0; color: var(--ink-2); white-space: nowrap; max-width: 45%; overflow: hidden; text-overflow: ellipsis; }
.pn-body { padding: 0 2px 14px; }
.pn-body > :first-child { margin-top: 0; }
.pn-body .pn-section { border-bottom: 0; border-top: 1px solid var(--line); }
.pn-body .pn-section > summary { padding: 9px 2px; }
.pn-body .pn-h { font-size: 13px; }

/* info link beside a section title: it sits next to the <details>, never inside <summary> (nested interactive) */
.pn-section-row { display: flex; align-items: flex-start; gap: 4px; }
.pn-section-row > :first-child { flex: 1; min-width: 0; }
.pn-section-info { display: inline-flex; align-items: center; min-height: 40px; }
.pn-section-info .wz-info { width: 24px; height: 24px; font-size: 13px; }

/* staged loading list of the status quo (status.js renderLoading) */
.load-stages { list-style: none; padding-left: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 5px; font-size: 12px; }
.load-stages li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.load-stages .chip { flex: 0 0 auto; }

.pn-method { margin-top: 10px; }
.pn-method > summary { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); list-style: none; cursor: pointer; border-radius: 6px; }
.pn-method > summary::-webkit-details-marker { display: none; }
.pn-method > summary::before { content: 'i'; display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; border: 1px solid currentColor; font-size: 10px; font-style: italic; font-family: Georgia, serif; }
.pn-method > summary:hover { color: var(--accent); }
.pn-method-body { margin-top: 6px; padding: 8px 10px; border-left: 3px solid var(--line); background: #f8fbf9; border-radius: 0 8px 8px 0; font-size: 12px; color: var(--ink-2); }
.pn-method-body p { margin: 0 0 6px; }
.pn-method-body p:last-child { margin-bottom: 0; }

.pn-empty { text-align: center; padding: 18px 10px; color: var(--ink-2); }
.pn-empty h2 { color: var(--ink); }
.pn-empty p { margin: 0 0 12px; font-size: 13px; }
.pn-empty p:last-child { margin-bottom: 0; }

.pn-tools { display: flex; justify-content: flex-end; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); padding-top: 8px; }
/* "Alle aufklappen / zuklappen" stays a target of at least 24 px (WCAG 2.5.8) */
.pn-link { border: 0; background: none; display: inline-flex; align-items: center; min-height: 24px; padding: 4px 2px; color: var(--accent); font-size: 12px; font-weight: 600; }
.pn-link:hover { text-decoration: underline; }
.pn-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; margin-top: 8px; }
.pn-status.ok { background: #e2f2e6; color: #1f5a33; }
.pn-status.warn { background: #fbe9dd; color: #7d3b10; }
.pn-label { font-size: 12px; color: var(--muted); margin: 12px 0 4px; }

.cx-dist { margin-top: 12px; }
.cx-cell { margin: 0 0 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #f8fbf9; }
.cx-cell .row { margin-top: 10px; }

/* hazard pair rows of the area profile: long labels (Grünausstattungsdefizit) must not run into the bars */
.pair-row2 { grid-template-columns: 124px 1fr 40px; }
.pair-row2 > span:first-child { overflow-wrap: anywhere; line-height: 1.25; }

/* three figures per perspective in the economics section fit one row */
.pn-body > .kpis { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
