/* Zusätze für Teil 2: das Hüttenbuch. Grundstil kommt aus ../css/style.css. */
.hb-stock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 6px 0 8px; }
.hb-tile { display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border: 1.5px solid var(--ink-faint); border-radius: 4px; background: rgba(255, 250, 235, 0.45); text-align: center; line-height: 1.1; }
.hb-tile b { font-size: 22px; }
.hb-tile span:last-child { font-size: 11px; color: var(--ink-soft); }
.hb-icon { display: inline-flex; width: 26px; height: 26px; color: var(--ink); flex: none; }
.hb-icon svg { width: 100%; height: 100%; }
.hb-wald { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 6px; }
.hb-wald-icon { width: 20px; height: 20px; display: inline-flex; color: #3f6b36; }
.hb-wald .bar { flex: 1; height: 10px; border: 1px solid var(--ink-soft); border-radius: 2px; background: rgba(58, 42, 24, 0.08); overflow: hidden; }
.hb-wald .bar i { display: block; height: 100%; background: #5f8a3a; transition: width 0.6s; }
.hb-event { font-style: italic; font-size: 15px; margin: 4px 0 8px !important; }
.hb-rows { display: flex; flex-direction: column; gap: 6px; }
.hb-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 4px; border: 1.5px solid transparent; background: rgba(255, 250, 235, 0.35); transition: opacity 0.2s, border-color 0.2s; }
.hb-row.dim { opacity: 0.45; }
.hb-row.focus { border-color: var(--copper); background: rgba(210, 134, 63, 0.14); animation: hb-pulse 1.6s ease-in-out infinite; }
.hb-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.hb-text small { font-size: 12px; color: var(--ink-soft); }
.hb-stepper { display: flex; align-items: center; gap: 4px; flex: none; }
.hb-stepper b { min-width: 28px; text-align: center; font-size: 20px; }
.hb-stepper button { width: 44px; height: 44px; min-height: 44px; padding: 0; font-size: 24px; line-height: 1; touch-action: manipulation; }
.hb-toggle { min-height: 44px; min-width: 96px; padding: 0 10px; }
.hb-toggle.on { background: var(--copper); color: var(--parch); border-color: var(--ink); }
.hb-status { font-size: 13px; color: var(--ink-soft); max-width: 110px; text-align: right; }
.hb-sum { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: space-between; margin: 10px 0 4px; padding: 8px 10px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); font-size: 15px; }
.hb-after { flex-basis: 100%; font-size: 18px; }
.hb-sum.warn { border-color: var(--blood); }
.hb-warn { flex-basis: 100%; color: var(--blood); font-weight: bold; }
.hb-goal { list-style: none; padding: 0; margin: 6px 0; font-size: 14px; }
.hb-goal li.ok { color: #3f6b36; font-weight: bold; }
.hb-hint { display: flex; gap: 8px; align-items: flex-start; padding: 8px; border: 1.5px dashed var(--copper); border-radius: 4px; font-size: 15px; }
.hb-note { font-size: 12px !important; margin-top: 4px !important; }
.hb-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 6px 0; }
.hb-table td { padding: 4px 2px; border-bottom: 1px solid var(--ink-faint); }
.hb-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hb-table tfoot td { border-top: 2px solid var(--ink); border-bottom: 0; font-size: 17px; }
.hb-list { padding-left: 20px; margin: 6px 0; font-size: 15px; }
.hb-list li { margin: 3px 0; }
@keyframes hb-pulse { 50% { box-shadow: 0 0 0 3px rgba(210, 134, 63, 0.35); } }
@media (max-width: 380px) {
  .hb-tile b { font-size: 18px; }
  .hb-row { gap: 6px; padding: 5px; }
  .hb-icon { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .hb-row.focus { animation: none; }
}

/* Minispiel Schütz am Wasserrad (Kapitel 3), nutzt die Bausteine des Schmelzofens */
.rad-buttons { grid-template-columns: 1fr 1fr; }
.rad-svg #rad-gate { transition: y 0.2s; }
.rad-svg .paddle { fill: #6b4a2a; }
