.zr { --zr-accent: #1f6f8b; --zr-line: rgba(0,0,0,0.1); --zr-soft: rgba(31,111,139,0.07); }
.zr-table-wrap { overflow-x: auto; margin: 0 0 1.5em; }
.zr-table { width: 100%; border-collapse: collapse; font-size: 0.95em; }
.zr-table caption { text-align: left; font-size: 0.85em; opacity: 0.75; padding-bottom: 0.4em; caption-side: top; }
.zr-table th, .zr-table td { padding: 0.45em 0.6em; border-bottom: 1px solid var(--zr-line, rgba(0,0,0,0.1)); text-align: right; white-space: nowrap; }
.zr-table th[scope="row"], .zr-table thead th:first-child { text-align: left; white-space: normal; font-weight: normal; }
.zr-table thead th { font-weight: 600; border-bottom: 2px solid rgba(0,0,0,0.2); vertical-align: bottom; white-space: normal; }
.zr-table tr.zr-grp th { text-align: left; font-weight: 600; background: rgba(31,111,139,0.07); padding-top: 0.6em; }
.zr-table-small { font-size: 0.85em; }
.zr-chart { margin: 0 0 2em; }
.zr-canvas { position: relative; height: 360px; }
.zr-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 0.85em; opacity: 0.5; }
@media (max-width: 600px) { .zr-canvas { height: 280px; } }
.zr-range { display: flex; flex-wrap: wrap; gap: 0.4em; margin-bottom: 0.6em; }
.zr-range button { font: inherit; font-size: 0.85em; padding: 0.3em 0.8em; border: 1px solid rgba(0,0,0,0.2); border-radius: 999px; background: transparent; cursor: pointer; color: inherit; }
.zr-range button[aria-pressed="true"] { background: #1f6f8b; border-color: #1f6f8b; color: #fff; }
.zr-metric button[aria-pressed="true"] { background: #2b2b2b; border-color: #2b2b2b; }
.zr-chart figcaption { font-size: 0.8em; opacity: 0.7; margin-top: 0.4em; }
.zr-data { margin-top: 0.6em; font-size: 0.9em; }
.zr-data summary { cursor: pointer; color: #1f6f8b; }
.zr-text p { margin: 0 0 0.8em; }
.zr-small { font-size: 0.82em; opacity: 0.75; }
.zr-facts li { margin-bottom: 0.35em; }
.zr-sources { font-size: 0.9em; }
.zr-hinweis { padding: 0.6em 0.8em; border-left: 3px solid #d9822b; background: rgba(217,130,43,0.08); }

/* Zinslücke */
.zr-gap { margin: 0 0 1em; display: grid; gap: 0.8em; }
.zr-gap-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6em; }
@media (max-width: 600px) { .zr-gap-row { grid-template-columns: 1fr; } }
.zr-gap-item { border: 1px solid rgba(0,0,0,0.12); border-radius: 8px; padding: 0.7em 0.9em; display: flex; flex-direction: column; gap: 0.2em; }
.zr-gap-label { font-size: 0.82em; opacity: 0.75; }
.zr-gap-value { font-size: 1.35em; font-variant-numeric: tabular-nums; }
.zr-gap-top { border-color: #16a085; }
.zr-gap-diff { background: rgba(31,111,139,0.07); border-color: transparent; }

/* Rechner */
.zr-calc { border: 1px solid rgba(0,0,0,0.12); border-radius: 10px; padding: 1em 1.1em; margin: 0 0 2em; }
.zr-calc-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.8em; margin: 0 0 1em; }
.zr-field { display: flex; flex-direction: column; gap: 0.25em; font-size: 0.88em; }
.zr-field input { font: inherit; font-size: 1.05em; padding: 0.45em 0.55em; border: 1px solid rgba(0,0,0,0.25); border-radius: 6px; width: 100%; box-sizing: border-box; }
.zr-field input:focus { outline: 2px solid #1f6f8b; outline-offset: 1px; }
.zr-calc-big { font-size: 1.1em; }
.zr-bar { display: grid; grid-template-columns: 9em 1fr 7.5em; align-items: center; gap: 0.6em; margin: 0.35em 0; font-size: 0.9em; }
@media (max-width: 600px) { .zr-bar { grid-template-columns: 1fr 6.5em; } .zr-bar-track { grid-column: 1 / -1; grid-row: 2; } }
.zr-bar-track { height: 0.8em; background: rgba(0,0,0,0.06); border-radius: 99px; overflow: hidden; }
.zr-bar-fill { display: block; height: 100%; border-radius: 99px; background: #7f8c8d; }
.zr-bar-own .zr-bar-fill { background: #c0392b; }
.zr-bar-cmp .zr-bar-fill { background: #16a085; }
.zr-bar-value { text-align: right; font-variant-numeric: tabular-nums; }
.zr-sources code { overflow-wrap: anywhere; word-break: break-all; font-size: 0.85em; }
.zr-gap-link { font-size: 0.82em; margin-top: 0.2em; }
