.bp-wurzel { display: flex; flex-direction: column; gap: 16px; --bpF: #2eaa50; --bpRGB: 46,170,80; }
.bp-wurzel h3 { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-muted, #9aa4b2); }
.bp-abschnitt { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bp-abschnitt > h3 { margin-bottom: 0; }
.bp-abschnitt-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bp-abschnitt-kopf h3 { margin: 0; }

.bp-karte {
  position: relative; overflow: hidden; min-width: 0;
  border-radius: 14px; padding: 14px 14px 14px 18px;
  background: linear-gradient(160deg, rgba(var(--bpRGB), .10) 0%, rgba(255, 255, 255, .025) 55%, rgba(0, 0, 0, .08) 100%);
  border: 1px solid rgba(var(--bpRGB), .30);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.bp-karte::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--bpF); box-shadow: 0 0 14px rgba(var(--bpRGB), .55); }

.bp-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.bp-raster-4 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

.bp-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bp-kopf-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 240px; }
.bp-kopf-text > span { font-size: 12.5px; color: var(--text-muted, #9aa4b2); overflow-wrap: anywhere; }
.bp-kopf-zeile { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }

.bp-chip {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  font-size: 10px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; line-height: 1.5;
  padding: 1px 8px; border-radius: 999px;
  color: var(--bpF); background: rgba(var(--bpRGB), .14); border: 1px solid rgba(var(--bpRGB), .38);
}

.bp-fach { display: flex; flex-direction: column; gap: 8px; }
.bp-fach-kopf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.bp-fach-kopf .bp-chip { margin-left: auto; }
.bp-ico { font-size: 16px; line-height: 1; }
.bp-gross {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-size: 28px; font-weight: 900; line-height: 1.1; color: var(--bpF); font-variant-numeric: tabular-nums;
}
.bp-gross small { font-size: 12px; font-weight: 700; color: var(--text-muted, #9aa4b2); }
.bp-balken-zeile { display: grid; grid-template-columns: 64px 1fr 54px; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-muted, #9aa4b2); }
.bp-balken-zeile b { text-align: right; color: var(--text, #e6edf3); font-variant-numeric: tabular-nums; }
.bp-balken { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bp-balken i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, rgba(var(--bpRGB), .55), var(--bpF)); transition: width .4s ease; }
.bp-fuss { font-size: 12px; color: var(--text-muted, #9aa4b2); }

.bp-kachel {
  border-radius: 12px; padding: 10px 12px; min-width: 0;
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(var(--bpRGB), .26);
}
.bp-kachel-titel { font-size: 10.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted, #9aa4b2); }
.bp-kachel-wert { font-size: 22px; font-weight: 900; color: var(--bpF); font-variant-numeric: tabular-nums; margin: 2px 0; }
.bp-kachel-unter { font-size: 11.5px; color: var(--text-muted, #9aa4b2); }
.bp-quote-kopf { display: flex; align-items: center; }

.bp-pillen { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--border, #30363d); }
.bp-pille {
  border: none; cursor: pointer; border-radius: 999px; padding: 5px 12px;
  font-size: 12px; font-weight: 800; color: var(--text-muted, #9aa4b2); background: transparent;
  transition: background .15s ease, color .15s ease;
}
.bp-pille.an { color: #0d1117; background: linear-gradient(135deg, #fff0c0, #f5c451); box-shadow: 0 4px 12px rgba(245, 196, 81, .3); }

.bp-knopf {
  border: 1px solid transparent; cursor: pointer; border-radius: 10px; padding: 9px 14px;
  font-size: 13px; font-weight: 800; white-space: nowrap; line-height: 1.2;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.bp-knopf:hover { transform: translateY(-1px); }
.bp-knopf.gold {
  color: #231a04; background: linear-gradient(135deg, #fff0c0, #f5c451 55%, rgba(245, 196, 81, .8));
  box-shadow: 0 6px 18px rgba(245, 196, 81, .32), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.bp-knopf.gold:hover { box-shadow: 0 10px 24px rgba(245, 196, 81, .42); }
.bp-knopf.zweit { color: var(--bpF); background: rgba(var(--bpRGB), .12); border-color: rgba(var(--bpRGB), .38); }
.bp-knopf.klein { padding: 6px 10px; font-size: 12px; }
.bp-fach > .bp-knopf { align-self: flex-start; }

.bp-luecke { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bp-luecke-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 220px; }
.bp-luecke-text span { font-size: 12px; color: var(--text-muted, #9aa4b2); overflow-wrap: anywhere; }
.bp-luecke-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }

.bp-bericht-zeile { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .06); flex-wrap: wrap; }
.bp-bericht-zeile:first-of-type { border-top: none; }
.bp-bericht-zeile > div { min-width: 0; flex: 1 1 220px; }
.bp-bericht-vorschlag { font-size: 12px; color: var(--text-muted, #9aa4b2); margin-top: 2px; overflow-wrap: anywhere; }
.bp-leer, .bp-fehler { margin: 0; font-size: 13px; color: var(--text-muted, #9aa4b2); }
.bp-fehler { color: var(--accent, #e63946); }

.bp-filter { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border, #30363d); }
.bp-filter-zeile {
  display: flex; align-items: center; gap: 10px; width: 100%; cursor: pointer; text-align: left;
  padding: 7px 9px; border-radius: 8px; border: 1px solid var(--border, #30363d); background: var(--bg-input, #161b22); color: var(--text, #e6edf3);
}
.bp-filter-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.bp-filter-text b { font-size: 11px; }
.bp-filter-text small { font-size: 10px; color: var(--text-muted, #9aa4b2); }
.bp-schalter {
  position: relative; flex-shrink: 0; width: 34px; height: 19px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .14); transition: background .2s ease;
}
.bp-schalter i {
  position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #c9d1d9;
  transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), background .2s ease;
}
.bp-schalter.an { background: linear-gradient(135deg, #2eaa50, #46d36b); box-shadow: 0 0 10px rgba(46, 170, 80, .55); }
.bp-schalter.an i { transform: translateX(15px); background: #fff; }
.bp-filter-fach { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.bp-filter-fach button, .bp-leg-fach button {
  flex: 1 1 auto; cursor: pointer; border-radius: 999px; padding: 3px 8px; font-size: 10px; font-weight: 800;
  color: var(--text-muted, #9aa4b2); background: transparent; border: 1px solid var(--border, #30363d); white-space: nowrap;
}
.bp-filter-fach button.an, .bp-leg-fach button.an { color: var(--bpF); background: rgba(var(--bpRGB), .16); border-color: rgba(var(--bpRGB), .55); }

.bp-schicht { position: absolute; left: 0; top: 0; pointer-events: none; }

.bp-legende {
  --bpF: #2eaa50; --bpRGB: 46,170,80;
  max-width: 236px; padding: 9px 10px 9px 13px; border-radius: 12px; position: relative; overflow: hidden;
  background: rgba(13, 17, 26, .92); border: 1px solid rgba(var(--bpRGB), .35); color: #e6edf3;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45); font-size: 11px; line-height: 1.35;
  backdrop-filter: none;
}
.bp-legende::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--bpF); }
body:has(#elSchicht) .bp-legende { display: none; }
.bp-leg-kopf { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.bp-leg-kopf b { font-size: 11.5px; letter-spacing: .4px; }
.bp-leg-x { margin-left: auto; cursor: pointer; border: none; background: transparent; color: #9aa4b2; font-size: 13px; line-height: 1; padding: 2px 4px; }
.bp-leg-fach { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 7px; }
.bp-leg-fach button { flex: 0 1 auto; padding: 3px 7px; }
.bp-leg-farben { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; }
.bp-leg-farben span { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.bp-leg-farben i { width: 11px; height: 11px; border-radius: 3px; opacity: .85; flex-shrink: 0; }
.bp-leg-hinweis { margin-top: 6px; color: #f5b83d; font-weight: 700; }
.bp-leg-plan {
  margin-top: 7px; width: 100%; cursor: pointer; border-radius: 8px; padding: 5px 8px; font-size: 11px; font-weight: 800;
  color: #231a04; border: none; background: linear-gradient(135deg, #fff0c0, #f5c451);
}

@media (max-width: 600px) {
  .bp-karte { padding: 12px 12px 12px 15px; }
  .bp-gross { font-size: 24px; }
  .bp-raster { grid-template-columns: 1fr; }
  .bp-raster-4 { grid-template-columns: 1fr 1fr; }
  .bp-kopf .bp-knopf, .bp-luecke-knoepfe .bp-knopf { flex: 1 1 auto; }
  .bp-luecke-knoepfe { width: 100%; }
  .bp-legende { max-width: 190px; font-size: 10px; padding: 7px 8px 7px 11px; }
  .bp-leg-farben { grid-template-columns: 1fr 1fr; gap: 2px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .bp-balken i, .bp-schalter, .bp-schalter i, .bp-knopf, .bp-pille { transition: none !important; }
  .bp-knopf:hover { transform: none; }
}
