
/* heizlast-workbench.css — Heizlast-Rechner Workbench */

.hl-workbench {
  --hl-border: color-mix(in srgb, var(--brand) 28%, var(--fg) 12%);
  --hl-bg: color-mix(in srgb, var(--brand) 6%, var(--surface));
  --hl-head: var(--brand-600, #1b5e20);
  --hl-head-text: #f1f8e9;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid var(--hl-border);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(26, 46, 59, .1);
}

.dark .hl-workbench {
  --hl-head: color-mix(in srgb, var(--brand-600) 70%, #0a120a);
  --hl-bg: color-mix(in srgb, var(--brand) 8%, var(--surface));
}

.hl-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--hl-head);
  color: var(--hl-head-text);
  border-bottom: 1px solid color-mix(in srgb, #000 20%, transparent);
}
.hl-toolbar__brand { display: flex; align-items: center; gap: 12px; }
.hl-toolbar__icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, #fff 12%, transparent);
  border: 1px solid color-mix(in srgb, #fff 20%, transparent);
  border-radius: 8px;
  font-size: 1.15rem;
}
.hl-toolbar__title { display: block; font-size: 1rem; font-weight: 700; }
.hl-toolbar__sub { display: block; font-size: .72rem; opacity: .78; margin-top: 2px; }
.hl-toolbar__badge {
  font-size: .78rem; font-weight: 600;
  padding: 6px 12px;
  background: color-mix(in srgb, #000 18%, transparent);
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, #fff 12%, transparent);
}

.hl-main {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 0;
  align-items: start;
}
@media (max-width: 900px) {
  .hl-main { grid-template-columns: 1fr; }
}

.hl-panel {
  padding: 14px 16px 18px;
  border-right: 1px solid var(--hl-border);
  background: var(--hl-bg);
}
.hl-panel:last-child { border-right: none; background: var(--surface); }
@media (max-width: 900px) {
  .hl-panel { border-right: none; border-bottom: 1px solid var(--hl-border); }
  .hl-panel:last-child { border-bottom: none; }
}

.hl-panel__title {
  margin: 0 0 12px;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--brand, #2e7d32);
}

.hl-field { margin-bottom: 14px; }
.hl-field:last-child { margin-bottom: 0; }

.hl-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 6px;
}
.hl-label__val {
  font-weight: 800;
  color: var(--brand-600, #1b5e20);
  font-variant-numeric: tabular-nums;
}

.hl-range {
  width: 100%;
  accent-color: var(--brand, #2e7d32);
  cursor: pointer;
}
.hl-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.hl-input-row input[type="number"] {
  width: 88px;
  flex-shrink: 0;
  padding: 8px 10px;
  border: 1px solid var(--hl-border);
  border-radius: 6px;
  font-size: .9rem;
  background: var(--bg);
  color: var(--fg);
}
.hl-select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--hl-border);
  border-radius: 6px;
  font-size: .88rem;
  background: var(--bg);
  color: var(--fg);
  box-sizing: border-box;
}

.hl-san-grid { display: grid; gap: 10px; }

.hl-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  cursor: pointer;
  margin-top: 8px;
}
.hl-check-row input { width: 18px; height: 18px; accent-color: var(--brand); }

.hl-persons { margin-top: 8px; }
.hl-persons[hidden] { display: none !important; }

.hl-readout {
  text-align: center;
  padding: 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
  border: 2px solid color-mix(in srgb, var(--brand) 35%, transparent);
  margin-bottom: 14px;
}
.dark .hl-readout {
  background: linear-gradient(135deg, #1a2e1c 0%, #152218 100%);
}
.hl-readout__label {
  margin: 0;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.hl-readout__kw {
  font-size: clamp(2.2rem, 6vw, 3rem);
  font-weight: 800;
  color: var(--brand-600, #1b5e20);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.hl-readout__unit { font-size: .95rem; font-weight: 600; color: var(--muted); }
.hl-readout__sub {
  margin: 6px 0 0;
  font-size: .85rem;
  color: var(--muted);
}

.hl-verdict {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  border-left: 4px solid var(--brand);
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
}
.hl-verdict--good { border-left-color: #43a047; background: color-mix(in srgb, #43a047 8%, var(--surface)); }
.hl-verdict--mid { border-left-color: #fb8c00; background: color-mix(in srgb, #fb8c00 8%, var(--surface)); }
.hl-verdict--high { border-left-color: #e53935; background: color-mix(in srgb, #e53935 8%, var(--surface)); }
.hl-verdict h4 { margin: 0 0 4px; font-size: .92rem; }
.hl-verdict p { margin: 0; font-size: .84rem; line-height: 1.45; color: var(--muted); }

.hl-wp-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
@media (max-width: 480px) {
  .hl-wp-box { grid-template-columns: 1fr; }
}
.hl-wp-item {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--hl-border);
  background: var(--bg);
  text-align: center;
}
.hl-wp-item strong {
  display: block;
  font-size: 1.35rem;
  color: var(--brand-600);
  font-variant-numeric: tabular-nums;
}
.hl-wp-item span { font-size: .75rem; color: var(--muted); }

.hl-compare { margin-bottom: 14px; }
.hl-compare__title {
  margin: 0 0 10px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
}
.hl-bar-row { margin-bottom: 10px; }
.hl-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  margin-bottom: 4px;
}
.hl-bar-label strong { font-variant-numeric: tabular-nums; }
.hl-bar-track {
  height: 22px;
  background: color-mix(in srgb, var(--fg) 8%, var(--surface));
  border-radius: 6px;
  overflow: hidden;
}
.hl-bar-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #fff));
  transition: width .35s ease;
  min-width: 4px;
}
.hl-bar-fill--san { background: linear-gradient(90deg, #66bb6a, #43a047); }
.hl-bar-fill--neu { background: linear-gradient(90deg, #29b6f6, #0288d1); }

.hl-breakdown {
  font-size: .8rem;
  border: 1px solid var(--hl-border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
}
.hl-breakdown summary {
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 700;
  background: color-mix(in srgb, var(--brand) 5%, var(--surface));
}
.hl-breakdown table { width: 100%; border-collapse: collapse; }
.hl-breakdown td {
  padding: 6px 12px;
  border-top: 1px solid var(--hl-border);
  font-size: .78rem;
}
.hl-breakdown td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.hl-breakdown tr.hl-row-strong td { font-weight: 800; color: var(--brand-600); background: color-mix(in srgb, var(--brand) 5%, transparent); }

.hl-note {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.45;
  padding: 10px 12px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--fg) 4%, var(--surface));
  border: 1px dashed var(--hl-border);
  margin-bottom: 14px;
}

.hl-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.hl-lead {
  margin-top: 16px;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  background: var(--surface);
}
.hl-lead h3 { margin: 0 0 6px; font-size: 1.05rem; }
.hl-lead .cta { width: 100%; margin-top: 10px; }
.hl-lead-status { font-size: .85rem; margin-top: 8px; }
.hl-lead-status.is-ok { color: var(--brand-600); font-weight: 600; }
.hl-lead-status.is-err { color: #c62828; }

.hl-faq { margin-top: 2rem; }
.hl-faq details {
  border: 1px solid var(--hl-border);
  border-radius: 8px;
  margin-bottom: 8px;
  padding: 0;
}
.hl-faq summary {
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 600;
}
.hl-faq .muted { padding: 0 14px 12px; }
