/* /benchmark, aus benchmark.php ausgelagert (2026-11). Praefix bm- */
/* ─── Benchmark page styles ─────────────────────────── bm- prefix ──── */
.bm-tool-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}
.bm-tool-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 36px 40px 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  position: relative;
  top: -40px;
  margin-bottom: -20px;
}
.bm-tool-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.bm-tool-title-icon {
  width: 32px;
  height: 32px;
  background: rgba(16,185,129,.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
  flex-shrink: 0;
}
.bm-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.bm-form-grid .bm-field--full { grid-column: 1 / -1; }
.bm-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.bm-field label span {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
}
.bm-input,
.bm-select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: #0f172a;
  background: #f8fafc;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}
.bm-input:focus-visible,
.bm-select:focus-visible,
.bm-input:focus,
.bm-select:focus {
  outline: 2px solid #047857;   /* 5,5:1 auf Weiss, WCAG 1.4.11 */
  outline-offset: 1px;
  border-color: #047857;
  background: #fff;
}
.bm-autocomplete-wrap { position: relative; }
.bm-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 100;
  max-height: 220px;
  overflow-y: auto;
  display: none;
}
.bm-suggestions.visible { display: block; }
.bm-suggestion-item {
  padding: 10px 14px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  transition: background .1s;
}
.bm-suggestion-item:hover,
.bm-suggestion-item.highlighted { background: #f0fdf4; color: #065f46; }
.bm-submit-btn {
  width: 100%;
  padding: 13px 24px;
  background: linear-gradient(135deg, #047857, #065f46);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity .15s, transform .15s;
  font-family: inherit;
}
.bm-submit-btn:hover { opacity: .92; transform: translateY(-1px); }
.bm-submit-btn:active { transform: none; }
.bm-results {
  display: none;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid #e2e8f0;
}
.bm-results.visible { display: block; }
.bm-results-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.bm-results-role { font-size: 20px; font-weight: 800; color: #0f172a; line-height: 1.2; }
.bm-results-meta { font-size: 13px; color: #6b7280; margin-top: 4px; }
.bm-results-badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  background: #d1fae5;
  color: #065f46;
}
.bm-band-wrap {
  background: #f8fafc;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}
.bm-band-values {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}
.bm-band-value-card {
  text-align: center;
  padding: 12px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.bm-band-value-card.center { border-color: #10b981; }
.bm-value-amount { display: block; font-size: 20px; font-weight: 800; color: #0f172a; letter-spacing: -0.02em; }
.bm-band-value-card.center .bm-value-amount { color: #047857; }
.bm-value-label { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; font-weight: 500; }
.bm-cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}
.bm-cost-row:last-child { border-bottom: none; }
.bm-cost-label { color: #374151; }
.bm-cost-value { font-weight: 600; color: #0f172a; }
.bm-cost-value--accent { color: #047857; }
.bm-cost-value--muted { color: #6b7280; font-weight: 400; }
.bm-disclaimer {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 16px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.bm-cta-row { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.bm-cta-btn {
  flex: 1;
  min-width: 160px;
  padding: 11px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  display: block;
}
.bm-cta-btn--primary { background: #10b981; color: #fff; }
.bm-cta-btn--primary:hover { background: #059669; }
.bm-cta-btn--outline { background: transparent; border: 1.5px solid #10b981; color: #059669; }
.bm-cta-btn--outline:hover { background: #f0fdf4; }
.bm-about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bm-team-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding: 20px 24px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-left: 4px solid #10b981;
  border-radius: 16px;
}
.bm-team-hint-text { flex: 1 1 320px; }
.bm-team-hint-title { display: block; font-size: 16px; font-weight: 800; color: #0f172a; margin-bottom: 4px; }
.bm-team-hint-text p { margin: 0; font-size: 14px; color: #064e3b; line-height: 1.55; }
.bm-team-hint-btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 50px;
  background: #047857;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.bm-team-hint-btn:hover { background: #065f46; color: #fff; }

@media (max-width: 700px) {
  .bm-tool-card { padding: 24px 20px 28px; top: -20px; }
  .bm-form-grid { grid-template-columns: 1fr; }
  .bm-form-grid .bm-field--full { grid-column: 1; }
  .bm-band-values { grid-template-columns: 1fr; }
  .bm-band-value-card.center { order: -1; }
  .bm-about-grid { grid-template-columns: 1fr; }
  .bm-results-header { flex-direction: column; }
}

/* ─── Seit 2026-11: Perzentil-Skala, Zusatzangaben, Ergebnisboxen ───── */
.bm-feldfehler {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1.5px solid #fca5a5;
  border-radius: 10px;
  background: #fef2f2;
  color: #7f1d1d;
  font-size: 14px;
}
.bm-feldfehler p { margin: 0 0 8px; }
.bm-input[aria-invalid="true"] { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.12); }
.bm-alternativen { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.bm-alternative,
.bm-knopf {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 50px;
  border: 1.5px solid #047857;
  background: #fff;
  color: #065f46;
  cursor: pointer;
}
.bm-alternative:hover, .bm-knopf:hover { background: #ecfdf5; }
.bm-katalog-label { display: block; font-size: 13px; font-weight: 600; margin: 4px 0 6px; color: #7f1d1d; }

.bm-mehr { margin-top: 18px; border: 1px solid #e2e8f0; border-radius: 12px; padding: 0 16px; }
.bm-mehr[open] { padding-bottom: 16px; }
.bm-mehr summary {
  cursor: pointer;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.bm-mehr summary span { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 6px; }
.bm-field-hilfe { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.bm-field-hilfe--fehler { color: #b91c1c; }
.bm-input[aria-invalid] { border-color: #dc2626; }
.bm-select[disabled] { opacity: .55; }

.bm-results:focus { outline: none; }
.bm-results-badge--unter { background: #fee2e2; color: #991b1b; }
.bm-results-badge--ueber { background: #dbeafe; color: #1e3a8a; }

.bm-skala { position: relative; height: 56px; margin: 4px 0 8px; }
.bm-skala-spur { position: absolute; top: 14px; left: 0; right: 0; height: 12px; border-radius: 6px; background: #e2e8f0; }
.bm-skala-rand { position: absolute; top: 14px; height: 12px; border-radius: 6px; background: #a7f3d0; }
.bm-skala-band { position: absolute; top: 14px; height: 12px; border-radius: 6px; background: #10b981; }
.bm-marke { position: absolute; top: 8px; width: 4px; height: 24px; margin-left: -2px; border-radius: 2px; background: #064e3b; }
.bm-marke--eigen { background: #1d4ed8; height: 30px; top: 5px; }
.bm-marke-text {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  color: #064e3b;
}
.bm-marke--eigen .bm-marke-text { top: -18px; color: #1d4ed8; }
.bm-p-rand { margin: 10px 0 0; font-size: 12px; color: var(--muted); text-align: center; }

.bm-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.bm-box p { margin: 0 0 8px; font-size: 14px; line-height: 1.55; color: #1f2937; }
.bm-box p:last-child { margin-bottom: 0; }
.bm-box-titel { margin: 0 0 10px; font-size: 14px; font-weight: 800; color: #0f172a; }
.bm-box-unter { font-size: 12px !important; font-weight: 700; color: var(--muted) !important; text-transform: uppercase; letter-spacing: .04em; margin-top: 12px !important; }
.bm-klein { font-size: 12px !important; color: var(--muted) !important; }
.bm-hinweis { font-size: 13px !important; color: #78350f !important; background: #fffbeb; border-radius: 8px; padding: 8px 10px; }
.bm-cost-row--summe { border-top: 2px solid #e2e8f0; padding-top: 12px; margin-top: 4px; font-weight: 700; }
.bm-cost-row--summe .bm-cost-value { color: #047857; }

.bm-balken { display: grid; gap: 6px; }
.bm-balken-zeile { display: grid; grid-template-columns: 120px 1fr 92px; gap: 10px; align-items: center; font-size: 13px; color: #1f2937; }
.bm-balken-zeile--aktiv { font-weight: 800; }
.bm-balken-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-balken-spur { height: 10px; border-radius: 5px; background: #e2e8f0; overflow: hidden; }
.bm-balken-fill { display: block; height: 100%; background: #10b981; border-radius: 5px; }
.bm-balken-zeile--aktiv .bm-balken-fill { background: #047857; }
.bm-balken-wert { text-align: right; font-variant-numeric: tabular-nums; }

.bm-faktoren { list-style: none; margin: 0 0 10px; padding: 0; }
.bm-faktoren li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #e2e8f0; font-size: 13px; color: #1f2937; }
.bm-faktoren li:last-child { border-bottom: none; }
.bm-faktor-wert { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

.bm-anzeige-text {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  resize: vertical;
}
.bm-anzeige-aktionen { display: flex; gap: 8px; margin: 8px 0; }
.bm-cta-row button.bm-cta-btn { font: inherit; font-size: 14px; font-weight: 700; }

.bm-methodik-liste { margin: 0; padding-left: 20px; line-height: 1.7; color: #1f2937; }

@media (max-width: 700px) {
  .bm-balken-zeile { grid-template-columns: 90px 1fr 80px; }
}

/* PDF: nur das Ergebnis drucken */
@media print {
  .global-header, .lp-hero-wrap--dark, #bm-form, .bm-team-hint, .lp-statsbar, .lp-section, .lp-also,
  footer, .bm-cta-row, .bm-anzeige-aktionen, .gk-cal-bar, .gk-top { display: none !important; }
  .bm-tool-card { box-shadow: none; border: none; top: 0; padding: 0; }
  .bm-results { display: block !important; border-top: none; margin-top: 0; }
  .bm-box, .bm-band-wrap { break-inside: avoid; }
  body { background: #fff; }
}
