/* verwaltung-indexierung-prognose.css — Inflationsprognose-Panel */

.ixp { margin-top: 18px; }
.ixp-controls { display: flex; flex-wrap: wrap; gap: 18px; padding: 0 0 16px; border-bottom: 1px solid var(--line-2); margin-bottom: 16px; }
.ip-ctl { display: flex; flex-direction: column; gap: 6px; }
.ip-ctl-label { font-size: 11px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.02em; }
.ixp .ix-seg { display: inline-flex; background: var(--line-2); border-radius: 9px; padding: 3px; gap: 2px; }
.ixp .ix-seg button { font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2); background: none; border: 0; border-radius: 7px; padding: 5px 12px; cursor: pointer; }
.ixp .ix-seg button.on { background: #fff; color: var(--accent); box-shadow: 0 1px 3px rgba(15,23,42,.1); }

/* Slider-Steuerungen */
.ip-ctl-slider { min-width: 210px; flex: 1 1 210px; max-width: 280px; }
.ip-ctl-slider .ip-ctl-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ip-ctl-val { color: var(--accent); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.ip-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--line-2); outline: none; cursor: pointer; margin: 2px 0; }
.ip-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 1px 3px rgba(15,23,42,.22); cursor: pointer; transition: transform .1s; }
.ip-range::-webkit-slider-thumb:hover { transform: scale(1.12); }
.ip-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 1px 3px rgba(15,23,42,.22); cursor: pointer; }
.ip-range::-moz-range-track { height: 6px; border-radius: 999px; background: var(--line-2); }
.ip-range:focus-visible { box-shadow: 0 0 0 3px var(--accent-soft, #F78E111A); }

.ixp-body { display: grid; grid-template-columns: 1.55fr 1fr; gap: 22px; align-items: start; }
.ixp-chart-cap { font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.ixp-chart-cap b { color: var(--accent); }

/* Fan-Chart */
.ip-plot { display: flex; gap: 8px; }
.ip-yaxis { position: relative; width: 48px; flex-shrink: 0; height: 180px; }
.ip-yaxis span { position: absolute; right: 0; transform: translateY(-50%); font-size: 10px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ip-plot-main { flex: 1; min-width: 0; }
.ip-chart { width: 100%; height: 180px; display: block; }
.ip-xaxis { position: relative; height: 16px; margin-top: 2px; }
.ip-xaxis span { position: absolute; transform: translateX(-50%); font-size: 10px; color: var(--ink-3); }

/* Szenarien-Tabelle */
.ixp-scencol { min-width: 0; }
.ixp-scen-h { font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; letter-spacing: 0.02em; }
.ixp-scen { width: 100%; border-collapse: collapse; }
.ixp-scen th { text-align: right; font-size: 11px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; padding: 4px 6px; border-bottom: 1px solid var(--line-2); }
.ixp-scen th:first-child { text-align: left; }
.ixp-scen td { padding: 7px 6px; font-size: 13px; border-bottom: 1px solid var(--line-2); text-align: right; color: var(--ink); }
.ixp-scen td:first-child { text-align: left; color: var(--ink-2); font-weight: 600; display: flex; align-items: baseline; gap: 6px; }
.ixp-scen td:first-child small { color: var(--ink-3); font-weight: 500; font-size: 11px; }
.ixp-scen-dot { width: 8px; height: 8px; border-radius: 3px; display: inline-block; flex-shrink: 0; }
.ixp-scen-low .ixp-scen-dot { background: #94A3B8; }
.ixp-scen-exp .ixp-scen-dot { background: var(--accent); }
.ixp-scen-high .ixp-scen-dot { background: #B5710F; }

.ixp-summary { display: flex; gap: 10px; margin-top: 16px; }
.ixp-sum-item { flex: 1; background: var(--line-2); border-radius: 11px; padding: 11px 12px; text-align: center; }
.ixp-sum-item b { display: block; font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.ixp-sum-item span { font-size: 11px; color: var(--ink-3); line-height: 1.3; display: block; margin-top: 2px; }

/* Prognose-Tabelle je Vertrag */
.ixp-table { margin-top: 20px; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.ixp-thead, .ixp-row { display: grid; grid-template-columns: 1.7fr 1.1fr 1fr 1.2fr 1.5fr 0.9fr 1fr; gap: 12px; align-items: center; padding: 11px 16px; }
.ixp-thead { background: #FAFBFC; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.ixp-row { border-bottom: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); }
.ixp-row:last-child { border-bottom: 0; }
.ip-num { text-align: right; font-variant-numeric: tabular-nums; }
.ixp-mieter { font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ixp-sub { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.ipx-when { font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.ixp-now { font-size: 10px; font-weight: 700; color: #B5710F; background: #FBEAD2; border-radius: 999px; padding: 2px 7px; }
.ipx-span { color: var(--ink-3); font-size: 12px; }
.ixp-tag { font-size: 11px; font-weight: 600; color: #6B7686; background: #EEF1F5; border-radius: 999px; padding: 3px 9px; }
.ixp-prob { font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.ixp-prob.is-hi { color: #1F8A4D; background: #E4F5EA; }
.ixp-prob.is-mid { color: #B5710F; background: #FBEAD2; }
.ixp-prob.is-lo { color: #6B7686; background: #EEF1F5; }
.ixp-empty { padding: 22px; text-align: center; color: var(--ink-3); font-size: 13px; }

.ixp-note { display: flex; gap: 8px; margin-top: 14px; font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.ixp-note svg { color: var(--ink-3); flex-shrink: 0; margin-top: 1px; }

@media (max-width: 1080px) {
  .ixp-body { grid-template-columns: 1fr; }
  .ixp-thead { display: none; }
  .ixp-row { grid-template-columns: 1fr 1fr; gap: 8px 14px; }
  .ixp-c-main { grid-column: 1 / -1; }
  .ip-num { text-align: left; }
}
