.bp-umsatz-module{
  --bp-primary:#2d3161;
  --bp-secondary:#70768d;
  --bp-accent:#308AC9;
  --bp-bg:#ffffff;
  color: var(--bp-primary);
}

/* Controls (wie bon) */
.bp-umsatz-module .bp-controls{
  max-width:1100px;
  margin: 0 auto;
  padding: 12px 0 18px;
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:flex-start;
  box-sizing:border-box;
}

.bp-umsatz-module .seg-switch-wrap{
  display:flex;
  justify-content:flex-start;
  width:100%;
}

.bp-umsatz-module .seg-switch{
  display:inline-flex;
  gap:10px;
  align-items:center;
}

.bp-umsatz-module .bp-seg-btn{
  font: inherit;
  padding: 0.6em 1.2em;
  border-radius: 10px;
  border: 1px solid rgba(48,138,201,0.25);
  background: rgba(255,255,255,0.65);
  color: var(--bp-primary);
  cursor:pointer;
  line-height: 1.2;
  font-weight:400;
  text-decoration:none !important;
}
.bp-umsatz-module .bp-seg-btn.is-active{
  background: var(--bp-accent);
  border-color: var(--bp-accent);
  color:#ffffff;
}
.bp-umsatz-module .bp-seg-btn:focus{
  outline:2px solid rgba(48,138,201,0.25);
  outline-offset:2px;
}

.bp-umsatz-module .bp-team-wrap{
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:wrap;
}

.bp-umsatz-module .bp-team-btn{
  display:flex;
  gap:8px;
  align-items:center;
  padding:8px 10px;
  border-radius:12px;
  background: rgba(255,255,255,0.45);
  box-shadow: inset 0 0 0 1px rgba(48,138,201,.10);
  cursor:pointer;
  user-select:none;
  font: inherit;
  font-weight:400;
  color: var(--bp-primary);
  border: 0;
}
.bp-umsatz-module .bp-team-btn:focus{
  outline:2px solid rgba(48,138,201,0.25);
  outline-offset:2px;
}

.bp-umsatz-module .bp-dot{
  width:14px;
  height:14px;
  border-radius:999px;
  box-shadow: inset 0 0 0 2px rgba(48,138,201,.45);
  background: transparent;
  flex: 0 0 14px;
}
.bp-umsatz-module .bp-team-btn.is-active .bp-dot{
  box-shadow: inset 0 0 0 2px rgba(48,138,201,.45);
  background: var(--bp-accent);
}

/* Stand */
.bp-umsatz-module .bp-stand{
  max-width:1100px;
  margin: 28px auto 0;
  padding: 0;
  text-align:left;
  color: var(--bp-primary);
  font-weight:400;
  opacity:.92;
  box-sizing:border-box;
}
.bp-umsatz-module .bp-stand strong{ font-weight:700 !important; }

/* Grid */
.bp-umsatz-module .bp-grid{
  max-width:1100px;
  margin:0 auto;
  padding:18px 0 12px;
  display:grid;
  gap:24px;
  box-sizing:border-box;
}
.bp-umsatz-module .bp-grid-4{ grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); }

/* Cards */
.bp-umsatz-module .bp-card{
  background: var(--bp-bg);
  border-radius:12px;
  padding:22px 20px 20px;
  min-height: 170px;
  border:1px solid #E1E3EA;
  box-shadow:0 1px 2px rgba(102,109,143,.10), 0 6px 18px rgba(102,109,143,.08);
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}

.bp-umsatz-module .bp-title{
  font-size:18px;
  font-weight:400;
  color: var(--bp-primary);
  line-height:1.2;
  margin-bottom:14px;
}

.bp-umsatz-module .bp-value{
  font-size:34px;
  font-weight:500;
  letter-spacing:-0.02em;
  color: var(--bp-primary);
  line-height:1.1;
  margin-bottom:10px;
}

.bp-umsatz-module .bp-sub{
  font-size:12px;
  font-weight:400;
  color: var(--bp-secondary);
  opacity:.95;
  margin-top:4px;
}

.bp-umsatz-module .bp-up{ color:#A5B061; }
.bp-umsatz-module .bp-down{ color:#E14D4D; }

/* Insight */
.bp-umsatz-module .bp-insight{
  max-width:1100px;
  margin: 8px auto 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.65);
  box-shadow: inset 0 0 0 1px rgba(48,138,201,.12);
  color: var(--bp-secondary);
  font-size:1rem;
  display:flex;
  gap:10px;
  align-items:flex-start;
  box-sizing:border-box;
}

/* Chart Card */
.bp-umsatz-module .bp-chart-card{
  max-width:1100px;
  margin: 0 auto 16px;
  padding: 18px 16px 26px;
  background: #fff;
  border-radius:12px;
  border:1px solid #E1E3EA;
  box-shadow:0 1px 2px rgba(102,109,143,.10), 0 6px 18px rgba(102,109,143,.08);
  box-sizing:border-box;
}

.bp-umsatz-module .bp-chart-head{
  display:flex;
  flex-direction:column;
  align-items:flex-start;   /* links */
  justify-content:flex-start;
  gap:10px;
  padding: 4px 4px 14px;
}

.bp-umsatz-module .bp-chart-title{
  color: var(--bp-primary);
  font-size:16px;
  font-weight:400;
}

.bp-umsatz-module .bp-chart-controls{
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  gap:16px;
  flex-wrap:nowrap;          /* ✅ nebeneinander erzwingen */
}

/* Wrapper für jedes Feld (Kennzahl / Endmonat) */
.bp-umsatz-module .bp-chart-controls .bp-control{
  display:flex;
  flex-direction:column;
  gap:6px;
}

/* Label */
.bp-umsatz-module .bp-chart-label{
  color: var(--bp-secondary);
  font-size:12px;
  font-weight:400;
}

/* Select: nicht 100% breit, damit 2 Felder nebeneinander passen */
.bp-umsatz-module .bp-select{
  font: inherit;
  padding: 0.55em 0.8em;
  border-radius: 10px;
  border: 1px solid rgba(45,49,97,0.18);
  background: #fff;
  color: var(--bp-primary);
  width: 240px;              /* ✅ fixe sinnvolle Breite */
  max-width: 100%;
  box-sizing:border-box;
}

.bp-umsatz-module .bp-chart-wrap{ padding: 0 4px 6px; }

/* Responsive: auf schmalen Screens dürfen sie wieder untereinander */
@media (max-width: 640px){
  .bp-umsatz-module .bp-chart-controls{
    flex-wrap:wrap;
  }
  .bp-umsatz-module .bp-select{
    width: 100%;
  }
}


/* SEO: Kartentitel/Chart-Titel als <h2>, Theme-Heading-Styles neutralisieren (Optik unveraendert) */
.bp-umsatz-module h2.bp-title,
.bp-umsatz-module h2.bp-chart-title{
  font-family:inherit;
  margin-top:0;
  line-height:1.2;
  letter-spacing:normal;
  text-transform:none;
}
