/*! Brutto-Netto-Rechner Pro – Styles (alle Regeln unter .bnrp gekapselt) */
.bnrp {
  --bnrp-accent: #1f5eff;
  --bnrp-accent-2: #0ea5e9;
  --bnrp-ink: #0b1220;
  --bnrp-text: #1e293b;
  --bnrp-muted: #64748b;
  --bnrp-line: #dbe3ee;
  --bnrp-soft: #f4f7fb;
  --bnrp-card: #ffffff;
  --bnrp-bg: #f8fbff;
  --bnrp-pos: #047857;
  --bnrp-neg: #b91c1c;
  --bnrp-warn-bg: #fff7ed;
  --bnrp-warn-line: #fed7aa;
  --bnrp-warn-ink: #9a3412;
  --bnrp-c-net: #059669;
  --bnrp-c-tax: #ea580c;
  --bnrp-c-kv: #7c3aed;
  --bnrp-c-rv: #2563eb;
  --bnrp-c-bav: #0891b2;
  --bnrp-radius: 22px;
  --bnrp-sticky-top: 24px;
  --bnrp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bnrp-shadow: 0 18px 45px rgba(15, 23, 42, .09);
  --bnrp-shadow-sm: 0 6px 18px rgba(15, 23, 42, .06);
  display: block;
  max-width: 1280px;
  margin: 0 auto 32px;
  color: var(--bnrp-text);
  font-family: var(--bnrp-font);
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
  -webkit-text-size-adjust: 100%;
}
.bnrp *, .bnrp *::before, .bnrp *::after { box-sizing: border-box; min-width: 0; }
.bnrp [hidden] { display: none !important; }
.bnrp p, .bnrp ul, .bnrp h2, .bnrp h1, .bnrp h3, .bnrp h4, .bnrp fieldset, .bnrp legend { margin: 0; padding: 0; }
.bnrp ul { list-style: none; }
.bnrp a { text-decoration: none; box-shadow: none; }
.bnrp button { font: inherit; margin: 0; text-transform: none; letter-spacing: normal; }

/* ---------- Karte & Kopf ---------- */
.bnrp .bnrp-card {
  position: relative;
  background: linear-gradient(160deg, #ffffff 0%, var(--bnrp-bg) 60%, #eef5ff 100%);
  border: 1px solid #dbe7f8;
  border-radius: 28px;
  box-shadow: var(--bnrp-shadow);
}
.bnrp .bnrp-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 6px;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(90deg, var(--bnrp-accent), var(--bnrp-accent-2), var(--bnrp-c-net));
}
.bnrp .bnrp-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--bnrp-line);
  background: radial-gradient(circle at 0 0, rgba(31, 94, 255, .10), transparent 40%), radial-gradient(circle at 100% 0, rgba(5, 150, 105, .10), transparent 36%);
  border-radius: 28px 28px 0 0;
}
.bnrp .bnrp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #1d4ed8;
  background: #eef5ff;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  padding: 6px 11px;
  margin-bottom: 10px;
}
.bnrp .bnrp-eyebrow::before { content: "✓"; font-size: 11px; }
.bnrp .bnrp-title {
  font-family: inherit;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.035em;
  color: var(--bnrp-ink);
  margin: 0;
  border: 0;
  text-transform: none;
}
.bnrp .bnrp-sub { margin-top: 8px; color: #475569; font-size: 15px; max-width: 760px; }

/* ---------- Layout ---------- */
.bnrp .bnrp-main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(330px, 1fr);
  gap: 20px;
  padding: 20px;
  align-items: start;
}
.bnrp .bnrp-form { display: grid; gap: 16px; }
.bnrp .bnrp-box {
  border: 1px solid var(--bnrp-line);
  border-radius: var(--bnrp-radius);
  background: var(--bnrp-card);
  box-shadow: var(--bnrp-shadow-sm);
  padding: 18px;
  min-width: 0;
}
.bnrp .bnrp-box-title {
  float: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--bnrp-ink);
  margin-bottom: 14px;
}
.bnrp .bnrp-box-title + * { clear: both; }
.bnrp .bnrp-num {
  width: 28px; height: 28px;
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #eaf2ff; color: #1d4ed8;
  font-size: 13px; font-weight: 800;
}
.bnrp .bnrp-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.bnrp .bnrp-row:last-child { margin-bottom: 0; }
.bnrp .bnrp-row-gross { grid-template-columns: minmax(0, 1.6fr) minmax(150px, 1fr); }
.bnrp .bnrp-field-period .bnrp-seg { height: 54px; }
.bnrp .bnrp-row > [hidden] { display: none !important; }

/* ---------- Felder ---------- */
.bnrp .bnrp-field { display: flex; flex-direction: column; justify-content: flex-end; }
.bnrp .bnrp-label-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; min-height: 22px; }
.bnrp .bnrp-label { font-size: 13px; font-weight: 700; color: #334155; line-height: 1.25; margin: 0; cursor: pointer; }
.bnrp .bnrp-control { position: relative; }
.bnrp .bnrp-input,
.bnrp .bnrp-select {
  display: block;
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #cdd8e6;
  border-radius: 12px;
  background: #fff;
  color: var(--bnrp-ink);
  font: 600 15px/1.2 var(--bnrp-font);
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
.bnrp .bnrp-select {
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
.bnrp .has-suffix .bnrp-input { padding-right: 46px; }
.bnrp .bnrp-input:hover, .bnrp .bnrp-select:hover { border-color: #aebdd1; }
.bnrp .bnrp-input:focus, .bnrp .bnrp-select:focus { border-color: var(--bnrp-accent); box-shadow: 0 0 0 4px rgba(31, 94, 255, .14); }
.bnrp .bnrp-field-gross .bnrp-input { height: 54px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.bnrp .bnrp-input-lg { height: 54px; font-size: 20px; font-weight: 800; }
.bnrp .bnrp-suffix {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--bnrp-muted); font-size: 13px; font-weight: 700; pointer-events: none;
}
.bnrp .bnrp-hint { margin-top: 5px; font-size: 12px; color: var(--bnrp-muted); }
.bnrp .bnrp-hint:empty { display: none; }

.bnrp .bnrp-help {
  width: 20px; height: 20px; flex: 0 0 20px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  background: #eef5ff;
  color: #1d4ed8;
  font-size: 11px; font-weight: 800; line-height: 1;
  cursor: pointer;
  box-shadow: none;
}
.bnrp .bnrp-help:hover, .bnrp .bnrp-help[aria-expanded="true"] { background: var(--bnrp-accent); color: #fff; border-color: var(--bnrp-accent); }
.bnrp .bnrp-help:focus-visible, .bnrp .bnrp-btn:focus-visible, .bnrp .bnrp-tab:focus-visible, .bnrp .bnrp-more summary:focus-visible {
  outline: 3px solid rgba(31, 94, 255, .45); outline-offset: 2px;
}

/* Segment-Schalter */
.bnrp .bnrp-seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #eef2f7;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  height: 46px;
}
.bnrp .bnrp-seg-opt { flex: 1 1 0; position: relative; display: flex; margin: 0; cursor: pointer; }
.bnrp .bnrp-seg-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.bnrp .bnrp-seg-opt span {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px; font-weight: 700; color: #475569; white-space: nowrap;
  transition: background .15s, color .15s, box-shadow .15s;
}
.bnrp .bnrp-seg-opt:hover span { color: var(--bnrp-ink); }
.bnrp .bnrp-seg-opt input:checked + span { background: #fff; color: var(--bnrp-ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .12), 0 0 0 1px rgba(15, 23, 42, .04); }
.bnrp .bnrp-seg-opt input:focus-visible + span { outline: 3px solid rgba(31, 94, 255, .45); outline-offset: 1px; }
.bnrp .bnrp-seg-sm { height: 34px; padding: 3px; border-radius: 10px; }
.bnrp .bnrp-seg-sm .bnrp-seg-opt span { font-size: 12.5px; padding: 0 10px; border-radius: 8px; }
.bnrp .bnrp-head-side .bnrp-seg { min-width: 170px; background: #fff; }
.bnrp .bnrp-head-side .bnrp-seg-opt input:checked + span { background: var(--bnrp-accent); color: #fff; }

/* Schalter (Checkbox) */
.bnrp .bnrp-field-toggle { flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; margin-bottom: 12px; }
.bnrp .bnrp-field-inline { align-self: end; min-height: 46px; margin-bottom: 0; }
.bnrp .bnrp-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; margin: 0; font-size: 14px; font-weight: 700; color: #334155; }
.bnrp .bnrp-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.bnrp .bnrp-switch {
  position: relative; flex: 0 0 42px; width: 42px; height: 24px;
  border-radius: 999px; background: #cbd5e1; transition: background .15s;
}
.bnrp .bnrp-switch::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .25); transition: transform .15s;
}
.bnrp .bnrp-toggle input:checked + .bnrp-switch { background: var(--bnrp-accent); }
.bnrp .bnrp-toggle input:checked + .bnrp-switch::after { transform: translateX(18px); }
.bnrp .bnrp-toggle input:focus-visible + .bnrp-switch { outline: 3px solid rgba(31, 94, 255, .45); outline-offset: 2px; }

/* Aufklappbereiche */
.bnrp .bnrp-more { margin-top: 14px; border: 1px solid #e3e9f2; border-radius: 16px; background: #fbfcfe; }
.bnrp .bnrp-more summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; font-size: 14px; font-weight: 700; color: #1e293b; border-radius: 16px;
}
.bnrp .bnrp-more summary::-webkit-details-marker { display: none; }
.bnrp .bnrp-more summary::after {
  content: "+"; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #eaf2ff; color: #1d4ed8; font-weight: 800;
}
.bnrp .bnrp-more[open] summary::after { content: "−"; }
.bnrp .bnrp-more-body { padding: 4px 14px 14px; }

/* ---------- Ergebnis ---------- */
.bnrp .bnrp-summary { position: sticky; top: var(--bnrp-sticky-top); }
.bnrp .bnrp-sum-card {
  border: 1px solid #bfe8d6;
  border-radius: var(--bnrp-radius);
  background: radial-gradient(circle at 100% 0, rgba(16, 185, 129, .14), transparent 42%), #fff;
  box-shadow: var(--bnrp-shadow-sm);
  padding: 20px;
  scroll-margin-top: 16px;
}
.bnrp .bnrp-sum-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bnrp .bnrp-sum-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #047857; }
.bnrp .bnrp-net {
  margin-top: 8px;
  font-size: clamp(38px, 4.4vw, 54px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.045em;
  color: var(--bnrp-ink);
  font-variant-numeric: tabular-nums;
}
.bnrp .bnrp-net-sub { margin-top: 8px; font-size: 13.5px; color: #475569; }
.bnrp .bnrp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.bnrp .bnrp-chip { font-size: 11.5px; font-weight: 700; color: #1e3a8a; background: #eff6ff; border: 1px solid #dbeafe; border-radius: 999px; padding: 3px 9px; }
.bnrp .bnrp-split { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 16px; }
.bnrp .bnrp-donut { position: relative; width: 132px; height: 132px; border-radius: 50%; background: var(--bnrp-line); }
.bnrp .bnrp-donut-hole {
  position: absolute; inset: 22px; border-radius: 50%; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  box-shadow: inset 0 0 0 1px var(--bnrp-line);
}
.bnrp .bnrp-donut-hole b { font-size: 19px; letter-spacing: -.03em; color: var(--bnrp-ink); }
.bnrp .bnrp-donut-hole span { font-size: 11px; color: var(--bnrp-muted); font-weight: 700; }
.bnrp .bnrp-legend { display: grid; gap: 7px; }
.bnrp .bnrp-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; column-gap: 8px; align-items: baseline; font-size: 13px; }
.bnrp .bnrp-legend i { width: 10px; height: 10px; border-radius: 3px; align-self: center; }
.bnrp .bnrp-legend span { color: #334155; }
.bnrp .bnrp-legend b { font-variant-numeric: tabular-nums; color: var(--bnrp-ink); }
.bnrp .bnrp-legend em { grid-column: 2 / 4; font-style: normal; font-size: 11.5px; color: var(--bnrp-muted); margin-top: -3px; }
.bnrp .bnrp-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.bnrp .bnrp-kpi { border: 1px solid var(--bnrp-line); border-radius: 14px; background: #fff; padding: 10px 11px; }
.bnrp .bnrp-kpi small { display: block; font-size: 10.5px; font-weight: 800; color: var(--bnrp-muted); text-transform: uppercase; letter-spacing: .04em; line-height: 1.25; }
.bnrp .bnrp-kpi b { display: block; margin-top: 5px; font-size: 15px; color: var(--bnrp-ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.bnrp .bnrp-special {
  margin-top: 12px; padding: 11px 12px; border-radius: 14px;
  background: #eff6ff; border: 1px solid #cfe0ff; color: #1e3a8a; font-size: 13px;
}
.bnrp .bnrp-special span { display: block; margin-top: 4px; color: #334155; }
.bnrp .bnrp-notes { margin-top: 12px; display: grid; gap: 6px; }
.bnrp .bnrp-notes li { font-size: 12.5px; color: #334155; padding: 8px 10px; border-radius: 12px; background: var(--bnrp-soft); border: 1px solid #e6ecf4; }
.bnrp .bnrp-notes li.is-warn { background: var(--bnrp-warn-bg); border-color: var(--bnrp-warn-line); color: var(--bnrp-warn-ink); }
.bnrp .bnrp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }

/* Buttons */
.bnrp .bnrp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 14px;
  border: 1px solid #d6dfeb; border-radius: 12px;
  background: #fff; color: var(--bnrp-ink);
  font-size: 13.5px; font-weight: 700; line-height: 1.1;
  cursor: pointer; box-shadow: none; text-decoration: none;
  transition: background .15s, border-color .15s, transform .15s;
}
.bnrp .bnrp-btn:hover { background: #f1f5f9; border-color: #c3cfdd; color: var(--bnrp-ink); }
.bnrp .bnrp-btn-dark { background: var(--bnrp-ink); border-color: var(--bnrp-ink); color: #fff; }
.bnrp .bnrp-btn-dark:hover { background: #1e293b; border-color: #1e293b; color: #fff; }
.bnrp .bnrp-btn-ghost { background: transparent; border-color: transparent; color: var(--bnrp-muted); }
.bnrp .bnrp-btn-ghost:hover { background: #f1f5f9; border-color: transparent; }

/* ---------- Details / Tabs ---------- */
.bnrp .bnrp-details { padding: 0 20px 20px; }
.bnrp .bnrp-tabs {
  position: relative;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin;
  padding: 6px; margin-bottom: 14px;
  border: 1px solid var(--bnrp-line); border-radius: 16px; background: #fff;
}
.bnrp .bnrp-tab {
  flex: 0 0 auto; padding: 9px 14px; border: 0; border-radius: 11px;
  background: transparent; color: #475569; font-size: 14px; font-weight: 700; white-space: nowrap;
  cursor: pointer; box-shadow: none; line-height: 1.2;
}
.bnrp .bnrp-tab:hover { background: #f1f5f9; color: var(--bnrp-ink); }
.bnrp .bnrp-tab[aria-selected="true"] { background: var(--bnrp-accent); color: #fff; }
.bnrp .bnrp-panel {
  border: 1px solid var(--bnrp-line); border-radius: var(--bnrp-radius); background: #fff;
  box-shadow: var(--bnrp-shadow-sm); padding: 18px;
}
.bnrp .bnrp-print-title { display: none; }
.bnrp .bnrp-table-wrap { overflow-x: auto; border: 1px solid var(--bnrp-line); border-radius: 16px; }
.bnrp .bnrp-table { width: 100%; border-collapse: collapse; border: 0; margin: 0; font-size: 14px; background: #fff; }
.bnrp .bnrp-table caption { text-align: left; padding: 10px 12px; font-weight: 700; }
.bnrp .bnrp-table th,
.bnrp .bnrp-table td {
  padding: 10px 14px; border: 0; border-bottom: 1px solid #e8edf4; background: transparent;
  text-align: left; vertical-align: middle; color: var(--bnrp-text); font-weight: 500;
}
.bnrp .bnrp-table thead th {
  background: #f8fafc; color: var(--bnrp-muted); font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
}
.bnrp .bnrp-table tbody th { font-weight: 600; }
.bnrp .bnrp-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bnrp .bnrp-table tbody tr:last-child th, .bnrp .bnrp-table tbody tr:last-child td { border-bottom: 0; }
.bnrp .bnrp-table tr.is-total th, .bnrp .bnrp-table tr.is-total td { font-weight: 800; color: var(--bnrp-ink); background: #f3faf6; border-top: 1px solid #cfe9dc; }
.bnrp .bnrp-table tr.is-section th {
  background: #fbfcfe; color: var(--bnrp-muted); font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em; padding-top: 12px; padding-bottom: 8px;
}
.bnrp .bnrp-table tr.is-sub th, .bnrp .bnrp-table tr.is-sub td { color: var(--bnrp-muted); font-size: 13px; }
.bnrp .bnrp-table tr.is-current th, .bnrp .bnrp-table tr.is-current td { background: #eff6ff; }
.bnrp .bnrp-table .is-neg { color: var(--bnrp-neg); }
.bnrp .bnrp-table .is-pos { color: var(--bnrp-pos); font-weight: 700; }
.bnrp .bnrp-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--bnrp-accent); color: #fff; font-size: 10.5px; font-weight: 800; vertical-align: 1px; }
.bnrp .bnrp-note { margin-top: 12px; font-size: 13px; color: var(--bnrp-muted); }
.bnrp .bnrp-h4 { margin-top: 18px; margin-bottom: 8px; font-size: 16px; font-weight: 800; color: var(--bnrp-ink); }
.bnrp .bnrp-list { display: grid; gap: 6px; }
.bnrp .bnrp-list li { position: relative; padding-left: 18px; font-size: 14px; }
.bnrp .bnrp-list li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--bnrp-accent); }
.bnrp .bnrp-callout {
  display: flex; gap: 14px; align-items: center; margin-top: 14px; padding: 14px 16px;
  border-radius: 16px; background: #ecfdf5; border: 1px solid #bbf7d0;
}
.bnrp .bnrp-callout > b { font-size: 26px; letter-spacing: -.03em; color: #065f46; white-space: nowrap; }
.bnrp .bnrp-callout span { font-size: 14px; color: #14532d; }
.bnrp .bnrp-reverse { max-width: 560px; }
.bnrp .bnrp-reverse .bnrp-btn { margin-top: 12px; }

/* Diagramm */
.bnrp .bnrp-chart { position: relative; margin-bottom: 8px; }
.bnrp .bnrp-chart svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.bnrp .bnrp-grid { stroke: #e6ebf2; stroke-width: 1; }
.bnrp .bnrp-axis { fill: #64748b; font-size: 11px; font-family: var(--bnrp-font); }
.bnrp .bnrp-axis-title { font-weight: 700; }
.bnrp .bnrp-area { fill: rgba(234, 88, 12, .10); }
.bnrp .bnrp-line-net { fill: none; stroke: var(--bnrp-c-net); stroke-width: 3; stroke-linejoin: round; }
.bnrp .bnrp-line-gross { fill: none; stroke: #94a3b8; stroke-width: 2; stroke-dasharray: 5 5; }
.bnrp .bnrp-line-emp { fill: none; stroke: var(--bnrp-c-rv); stroke-width: 2; stroke-dasharray: 2 4; }
.bnrp .bnrp-cur { stroke: var(--bnrp-ink); stroke-width: 1; stroke-dasharray: 3 3; opacity: .45; }
.bnrp .bnrp-dot { fill: #fff; stroke: var(--bnrp-c-net); stroke-width: 3; }
.bnrp .bnrp-hover-line { stroke: #0f172a; stroke-width: 1; opacity: .25; }
.bnrp .bnrp-hover-dot { fill: var(--bnrp-c-net); }
.bnrp .bnrp-chart-tip {
  position: absolute; pointer-events: none; min-width: 150px; padding: 8px 10px; border-radius: 10px;
  background: #0f172a; color: #fff; font-size: 12px; box-shadow: 0 10px 25px rgba(15, 23, 42, .3);
}
.bnrp .bnrp-chart-tip b, .bnrp .bnrp-chart-tip span { display: block; }
.bnrp .bnrp-chart-tip span { color: #cbd5e1; }
.bnrp .bnrp-chart-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 4px 0 16px; font-size: 12.5px; color: #475569; }
.bnrp .bnrp-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bnrp .bnrp-chart-legend i { display: inline-block; width: 18px; height: 0; border-top: 3px solid var(--bnrp-c-net); }
.bnrp .bnrp-chart-legend .lg-gross { border-top: 2px dashed #94a3b8; }
.bnrp .bnrp-chart-legend .lg-emp { border-top: 2px dotted var(--bnrp-c-rv); }
.bnrp .bnrp-chart-legend .lg-area { height: 10px; border: 0; background: rgba(234, 88, 12, .18); border-radius: 2px; }

/* Links & Fuß */
.bnrp .bnrp-links { padding: 0 20px 20px; }
.bnrp .bnrp-links-title { font-size: 17px; font-weight: 800; color: var(--bnrp-ink); margin-bottom: 10px; }
.bnrp .bnrp-link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bnrp .bnrp-link {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 13px 14px; border: 1px solid var(--bnrp-line); border-radius: 16px; background: #fff;
  color: var(--bnrp-ink); transition: transform .15s, border-color .15s, background .15s;
}
.bnrp .bnrp-link:hover { transform: translateY(-2px); border-color: #9fc0ff; background: #f5f9ff; color: var(--bnrp-ink); }
.bnrp .bnrp-link b { display: block; font-size: 14px; }
.bnrp .bnrp-link small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--bnrp-muted); }
.bnrp .bnrp-link em { font-style: normal; color: var(--bnrp-accent); font-weight: 800; font-size: 18px; line-height: 1; }
.bnrp .bnrp-foot { padding: 14px 24px 22px; border-top: 1px solid var(--bnrp-line); font-size: 12px; color: var(--bnrp-muted); display: grid; gap: 4px; }

/* Mobile-Leiste, Toast, Tooltip */
.bnrp .bnrp-mobilebar { display: none; }
.bnrp .bnrp-toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 100000;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  padding: 10px 16px; border-radius: 999px; background: #0f172a; color: #fff;
  font: 700 13px/1.3 var(--bnrp-font); transition: opacity .18s, transform .18s;
}
.bnrp .bnrp-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.bnrp-pop {
  position: fixed; z-index: 2147483000;
  padding: 11px 13px; border-radius: 12px;
  background: #0f172a; color: #fff;
  font: 500 13px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .35);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .bnrp .bnrp-main { grid-template-columns: minmax(0, 1fr); }
  .bnrp .bnrp-summary { position: static; }
  .bnrp .bnrp-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bnrp .bnrp-mobilebar {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 9990;
    align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 10px 10px 16px; border-radius: 16px;
    background: rgba(255, 255, 255, .97); border: 1px solid var(--bnrp-line);
    box-shadow: 0 12px 34px rgba(15, 23, 42, .18);
    transform: translateY(140%); transition: transform .2s;
    font-size: 14px; color: #334155;
  }
  .bnrp .bnrp-mobilebar b { font-size: 18px; color: var(--bnrp-ink); margin-left: 4px; font-variant-numeric: tabular-nums; }
  .bnrp .bnrp-mobilebar.is-on { transform: translateY(0); }
}
@media (max-width: 640px) {
  .bnrp { font-size: 15px; }
  .bnrp .bnrp-card { border-radius: 20px; }
  .bnrp .bnrp-card::before { border-radius: 20px 20px 0 0; }
  .bnrp .bnrp-head { grid-template-columns: minmax(0, 1fr); padding: 22px 16px 16px; border-radius: 20px 20px 0 0; }
  .bnrp .bnrp-head-side .bnrp-seg { min-width: 0; }
  .bnrp .bnrp-main { padding: 12px; gap: 14px; }
  .bnrp .bnrp-box { padding: 14px; border-radius: 18px; }
  .bnrp .bnrp-row, .bnrp .bnrp-row-gross { grid-template-columns: minmax(0, 1fr); }
  .bnrp .bnrp-input, .bnrp .bnrp-select { height: 48px; font-size: 16px; }
  .bnrp .bnrp-split { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .bnrp .bnrp-legend { width: 100%; }
  .bnrp .bnrp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bnrp .bnrp-details, .bnrp .bnrp-links { padding: 0 12px 14px; }
  .bnrp .bnrp-panel { padding: 12px; border-radius: 18px; }
  .bnrp .bnrp-table th, .bnrp .bnrp-table td { padding: 9px 10px; font-size: 13px; }
  .bnrp .bnrp-link-grid { grid-template-columns: minmax(0, 1fr); }
  .bnrp .bnrp-callout { flex-direction: column; align-items: flex-start; }
  .bnrp .bnrp-foot { padding: 12px 16px 18px; }
}

/* ---------- Druck ---------- */
@media print {
  html.bnrp-printing body * { visibility: hidden !important; }
  html.bnrp-printing .bnrp-print-target, html.bnrp-printing .bnrp-print-target * { visibility: visible !important; }
  html.bnrp-printing .bnrp-print-target { position: absolute; left: 0; top: 0; width: 100%; max-width: none; margin: 0; }
  .bnrp .bnrp-card { box-shadow: none; border: 0; background: #fff; }
  .bnrp .bnrp-card::before, .bnrp .bnrp-form, .bnrp .bnrp-actions, .bnrp .bnrp-tabs, .bnrp .bnrp-links,
  .bnrp .bnrp-mobilebar, .bnrp .bnrp-toast, .bnrp .bnrp-head-side, .bnrp .bnrp-sum-head .bnrp-seg, .bnrp .bnrp-reverse,
  .bnrp [data-panel="reverse"] { display: none !important; }
  .bnrp .bnrp-main { display: block; padding: 0; }
  .bnrp .bnrp-summary { position: static; }
  .bnrp .bnrp-panel { box-shadow: none; break-inside: avoid; margin-bottom: 14px; }
  .bnrp .bnrp-print-title { display: block; font-size: 16px; margin-bottom: 8px; }
  .bnrp .bnrp-donut { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (prefers-reduced-motion: reduce) {
  .bnrp *, .bnrp *::before, .bnrp *::after { transition: none !important; }
}
