/* ============================================================
   Brotbaukasten Plugin CSS
   Neutral gehalten — passt sich ans jeweilige Theme an.
   Eigene Farben nur für UI-Elemente die Theme-unabhängig sind.
   ============================================================ */

.bb-wrap {
  margin: 2em 0;
  font-size: 1rem;
  line-height: 1.5;
}

/* Grid */
.bb-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 2em;
  align-items: start;
}
@media (max-width: 780px) {
  .bb-grid { grid-template-columns: 1fr; }
}

/* Formular-Spalte */
.bb-form-col {
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 1.5em;
}

/* Ergebnis-Spalte */
.bb-result-col {
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 1.5em;
  min-height: 200px;
}

/* Abschnitte */
.bb-section {
  margin-bottom: 1.4em;
}
.bb-section:last-of-type {
  margin-bottom: 1.8em;
}

.bb-section-label {
  font-weight: 700;
  font-size: 0.95em;
  margin-bottom: 0.6em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78em;
  opacity: 0.6;
}

/* Labels */
.bb-label {
  display: block;
  font-size: 0.875em;
  font-weight: 600;
  margin-bottom: 0.35em;
  opacity: 0.75;
}

/* Inputs */
.bb-select,
.bb-input {
  display: block;
  width: 100%;
  padding: 0.55em 0.75em;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 6px;
  background: rgba(255,255,255,0.7);
  font-size: 0.95em;
  font-family: inherit;
  color: inherit;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}
.bb-select:focus,
.bb-input:focus {
  outline: 2px solid currentColor;
  outline-offset: 1px;
  border-color: transparent;
}

/* Toggle-Gruppe (Radio-Buttons) */
.bb-toggle-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 0.5em;
}
.bb-toggle {
  flex: 1 1 auto;
  position: relative;
  cursor: pointer;
}
.bb-toggle input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  margin: 0;
  cursor: pointer;
}
.bb-toggle span {
  display: block;
  text-align: center;
  padding: 0.5em 0.75em;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 6px;
  font-size: 0.875em;
  font-weight: 500;
  background: rgba(255,255,255,0.5);
  transition: background 0.15s, border-color 0.15s;
}
.bb-toggle input:checked + span {
  background: currentColor;
  border-color: currentColor;
  color: #fff;
  /* Fallback für currentColor-Problematik: */
  background: #2B1D14;
  color: #fff;
}

/* Shortcut-Buttons */
.bb-shortcuts {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 0.5em;
}
.bb-sc {
  font-size: 0.75em;
  padding: 0.4em 0.8em;
  border-radius: 100px;
  border: 1px solid rgba(0,0,0,0.2);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  opacity: 0.65;
  transition: opacity 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}
.bb-sc:hover { opacity: 1; }
.bb-sc--active {
  opacity: 1;
  border-color: currentColor;
  font-weight: 600;
}

/* Checkbox */
.bb-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
  font-size: 0.9em;
  margin-bottom: 0.75em;
}
.bb-checkbox-label input {
  width: auto;
  height: auto;
  cursor: pointer;
  flex-shrink: 0;
}

/* Hint */
.bb-hint {
  font-size: 0.8em;
  opacity: 0.55;
  margin: 0.3em 0 0;
}

/* Submit */
.bb-btn-submit {
  display: block;
  width: 100%;
  padding: 0.75em 1em;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  background: #2B1D14;
  color: #fff;
  transition: opacity 0.15s, transform 0.1s;
}
.bb-btn-submit:hover { opacity: 0.85; }
.bb-btn-submit:active { transform: scale(0.99); }

/* Leer-Zustand */
.bb-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3em 1em;
  opacity: 0.4;
  gap: 0.75em;
}
.bb-empty p { margin: 0; font-size: 0.9em; }

/* Hilfklassen */
.bb-hidden { display: none !important; }

/* ── Rezept-Ausgabe ── */
.bb-recipe-title {
  font-size: 1.25em;
  font-weight: 700;
  margin: 0 0 0.25em;
}
.bb-recipe-meta {
  font-size: 0.85em;
  opacity: 0.6;
  margin-bottom: 1.25em;
}

/* Zutaten-Kacheln */
.bb-ratios {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75em;
  margin-bottom: 1.5em;
}
@media (max-width: 560px) { .bb-ratios { grid-template-columns: repeat(2, 1fr); } }

.bb-ratio {
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 0.85em 0.75em;
  background: rgba(0,0,0,0.02);
}
.bb-ratio-amt {
  display: block;
  font-size: 1.3em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.bb-ratio-lbl {
  font-size: 0.75em;
  opacity: 0.6;
  margin-top: 0.2em;
}
.bb-ratio-pct {
  font-size: 0.7em;
  opacity: 0.35;
}

/* Zeitplan */
.bb-timeline-label {
  font-weight: 700;
  font-size: 0.9em;
  margin: 1.25em 0 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.6;
  font-size: 0.78em;
}

.bb-steps {
  border-left: 2px solid rgba(0,0,0,0.12);
  padding-left: 1.25em;
  margin-left: 0.25em;
}

.bb-step {
  position: relative;
  padding-bottom: 1.4em;
}
.bb-step:last-child { padding-bottom: 0; }

.bb-step::before {
  content: '';
  position: absolute;
  left: -1.4em;
  top: 0.35em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  border: 2px solid;
  box-sizing: border-box;
  background: #fff;
}

.bb-step-time {
  font-size: 0.78em;
  font-weight: 700;
  opacity: 0.5;
  font-variant-numeric: tabular-nums;
}
.bb-step-title {
  font-weight: 600;
  font-size: 0.95em;
  margin: 0.1em 0 0.25em;
}
.bb-step-desc {
  font-size: 0.85em;
  opacity: 0.65;
  max-width: 55ch;
}
