/* ── Bodyweight Calculators – Stylesheet ──────────────────────────────────
   Minimales Design, passt sich dem aktiven WordPress-Theme an.
   Keine Farben für Text/Hintergrund überschrieben – nur Layout & Struktur.
─────────────────────────────────────────────────────────────────────────── */

.bw-calc {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  max-width: 640px;
  margin: 1.5rem 0;
}

/* ── Formular ────────────────────────────────────────────────────────────── */

.bw-calc__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bw-calc__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  .bw-calc__row { grid-template-columns: 1fr; }
}

.bw-calc__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.bw-calc__field label {
  font-weight: 600;
  font-size: 0.9em;
}

.bw-calc__field small {
  font-weight: 400;
  opacity: 0.7;
}

.bw-calc__field input,
.bw-calc__field select {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1em;
  background: #fff;
  color: #111;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.bw-calc__field input:focus,
.bw-calc__field select:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 2px rgba(0,115,170,0.15);
}

.bw-calc__hint {
  font-size: 0.82em;
  opacity: 0.65;
  margin: 0;
}

/* ── Button ──────────────────────────────────────────────────────────────── */

.bw-calc__btn {
  align-self: flex-start;
  padding: 0.55rem 1.6rem;
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.bw-calc__btn:hover {
  background: #005a87;
}

/* ── Ergebnis-Box ────────────────────────────────────────────────────────── */

.bw-calc__result {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid #0073aa;
  background: #f7fbfe;
  border-radius: 0 4px 4px 0;
}

/* ── Kennzahlen-Grid (z.B. Makros, Trainingszonen) ───────────────────────── */

.bwc-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 0.5rem;
}

.bwc-metric {
  text-align: center;
  padding: 0.75rem 0.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
}

.bwc-metric__value {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
  color: #0073aa;
}

.bwc-metric__label {
  display: block;
  font-size: 0.78em;
  opacity: 0.7;
  margin-top: 0.2rem;
}

/* ── Tabelle (1RM %-Tabelle, Trainingszonen) ─────────────────────────────── */

.bwc-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.9em;
}

.bwc-table th,
.bwc-table td {
  padding: 0.45rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid #e8e8e8;
}

.bwc-table th {
  font-weight: 600;
  background: #eef5fa;
}

.bwc-table tr:last-child td {
  border-bottom: none;
}

/* ── Highlight-Zeile (z.B. BMI-Kategorie) ───────────────────────────────── */

.bwc-highlight {
  display: inline-block;
  padding: 0.2em 0.6em;
  border-radius: 3px;
  font-weight: 700;
}

.bwc-highlight--green  { background: #d4edda; color: #155724; }
.bwc-highlight--yellow { background: #fff3cd; color: #856404; }
.bwc-highlight--orange { background: #ffe5d0; color: #7d3c00; }
.bwc-highlight--red    { background: #f8d7da; color: #721c24; }
.bwc-highlight--blue   { background: #d1ecf1; color: #0c5460; }

.bw-calc__result h4 {
  margin: 0 0 0.5rem;
  font-size: 1em;
}

.bw-calc__result p {
  margin: 0.25rem 0;
}

/* ── Trainingsplan-Generator ─────────────────────────────────────────────── */

.bwc-plan-day {
  margin-top: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
}

.bwc-plan-day__title {
  margin: 0;
  padding: 0.55rem 0.9rem;
  font-size: 0.88em;
  font-weight: 700;
  background: #eef5fa;
  border-bottom: 1px solid #e0e0e0;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.bwc-plan-exercise {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9em;
}

.bwc-plan-exercise:last-child {
  border-bottom: none;
}

.bwc-plan-exercise__name {
  flex: 1;
  font-weight: 600;
}

.bwc-plan-exercise__detail {
  white-space: nowrap;
  opacity: 0.65;
  font-size: 0.85em;
}

.bwc-plan-exercise__pause {
  width: 100%;
  padding: 0.3rem 0.9rem;
  font-size: 0.78em;
  opacity: 0.55;
  font-style: italic;
}

/* ── Challenge-Generator ─────────────────────────────────────────────────── */

.bwc-challenge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 0.4rem;
  margin-top: 1rem;
}

.bwc-challenge-day {
  text-align: center;
  padding: 0.45rem 0.2rem;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  background: #fff;
  font-size: 0.78em;
}

.bwc-challenge-day--rest {
  background: #f5f5f5;
  color: #999;
  font-style: italic;
}

.bwc-challenge-day__num {
  display: block;
  font-weight: 700;
  font-size: 0.85em;
  opacity: 0.5;
  margin-bottom: 0.15rem;
}

.bwc-challenge-day__val {
  display: block;
  font-weight: 700;
  font-size: 1.05em;
  color: #0073aa;
}

.bwc-challenge-day--rest .bwc-challenge-day__val {
  color: inherit;
  font-size: 0.9em;
}

/* ── Muskelgruppen-Navigator ─────────────────────────────────────────────── */

.bwc-muscles__tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.bwc-muscles__tab {
  padding: 0.35rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f5f5f5;
  font-family: inherit;
  font-size: 0.88em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

.bwc-muscles__tab--active {
  background: #0073aa;
  border-color: #0073aa;
  color: #fff;
}

.bwc-muscles__layout {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 480px) {
  .bwc-muscles__layout { grid-template-columns: 1fr; }
}

.bwc-muscles__body {
  position: relative;
  line-height: 0;
}

.bwc-body-svg {
  width: 100%;
  height: auto;
}

.bwc-zone {
  fill: rgba(0, 115, 170, 0.12);
  stroke: rgba(0, 115, 170, 0.3);
  stroke-width: 1;
  cursor: pointer;
  transition: fill 0.15s;
}

.bwc-zone:hover {
  fill: rgba(0, 115, 170, 0.28);
}

.bwc-zone--active {
  fill: rgba(0, 115, 170, 0.5);
  stroke: #0073aa;
  stroke-width: 1.5;
}

.bwc-muscles__info {
  padding-top: 0.25rem;
}

.bwc-muscles__hint {
  font-size: 0.85em;
  opacity: 0.6;
  font-style: italic;
  margin: 0;
}

.bwc-muscle-name {
  font-size: 1.05em;
  font-weight: 700;
  margin: 0 0 0.6rem;
}

.bwc-muscle-ex {
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-left: 3px solid #0073aa;
  background: #f7fbfe;
  border-radius: 0 4px 4px 0;
  font-size: 0.88em;
}

.bwc-muscle-ex strong {
  display: block;
  margin-bottom: 0.2rem;
}

.bwc-muscle-ex span {
  opacity: 0.7;
  font-size: 0.95em;
  line-height: 1.5;
}
