/* Heizung – ergänzt style.css (gleiche Farben und Bausteine wie der PV-Bereich) */
.hz-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 14px}
.hz-section-title{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:780;letter-spacing:-.02em}
.hz-mark{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;font-size:18px;background:linear-gradient(135deg,#b34a1c,#ff9f5a);box-shadow:0 8px 25px rgba(255,140,70,.18)}
.hz-mark-pv{background:linear-gradient(135deg,#1c8c59,#54d98b);box-shadow:0 8px 25px rgba(40,190,110,.2)}
.hz-pv-head{margin-top:38px;padding-top:26px;border-top:1px solid var(--line)}
.hz-error{margin-bottom:14px;font-size:12px}
.hz .hero-card:after{background:rgba(255,159,90,.07)}

/* Kopfkarte */
.hz-hero-top{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;position:relative;z-index:1}
.hz-state{text-align:right;max-width:55%}
.hz-state-text{display:inline-flex;align-items:center;gap:8px;font-size:20px;font-weight:800;padding:8px 13px;border-radius:12px;border:1px solid currentColor;background:rgba(255,255,255,.03)}
.hz-state-text .status-dot{width:9px;height:9px;box-shadow:0 0 12px currentColor}
.hz-state-note{font-size:11px;color:var(--muted);margin-top:8px;line-height:1.45}
.hz-ok{color:var(--green)}.hz-pause{color:var(--blue)}.hz-warn{color:var(--gold)}.hz-bad{color:var(--danger)}.hz-off{color:var(--muted)}
.hz-stale .hero-power,.hz-stale{opacity:.6}
.hz-stale-fill{background:linear-gradient(90deg,#3b4d47,#62766e)!important}
.hz-stand{font-size:10px;color:var(--gold);margin-top:2px;font-weight:600}
.hz .inv-power small{font-size:11px;color:var(--muted);font-weight:600}
.hz .inv-card{position:relative;z-index:1}
.hz .hero-foot span:empty{display:none}
.hz-txt-bad{color:var(--danger);font-weight:800}

/* Überwachung (Ampel) */
.hz-mon{display:flex;align-items:center;gap:10px;font-size:21px!important;line-height:1.2}
.hz-mon-dot{width:12px;height:12px;border-radius:50%;background:currentColor;box-shadow:0 0 14px currentColor;flex:0 0 auto}
.hz-mon-good{color:var(--green)}.hz-mon-warn{color:var(--gold)}.hz-mon-bad{color:var(--danger)}

/* Diagramme */
.hz-chart-box{position:relative}
.hz-svg{width:100%;height:auto;display:block;overflow:visible}
.hz .content-grid{align-items:start}
.hz-path{fill:none;stroke-width:2;vector-effect:non-scaling-stroke;stroke-linejoin:round}
.hz-cursor{stroke:rgba(255,255,255,.35);stroke-width:1;vector-effect:non-scaling-stroke}
.hz-hit{cursor:crosshair}
.hz-tip{position:absolute;top:8px;min-width:150px;background:rgba(7,17,15,.94);border:1px solid var(--line);border-radius:10px;padding:8px 10px;font-size:11px;line-height:1.5;color:var(--text);pointer-events:none;box-shadow:var(--shadow)}
.hz-legend{margin:0 0 6px}
.hz-legend-sep{color:var(--muted);margin-left:8px}
.hz-bars-wrap .bar-group{position:relative}
.hz-fault-mark{position:absolute;top:-2px;left:50%;transform:translate(-50%,-100%);color:var(--danger);font-weight:900;font-size:12px}
.hz #hzNav .nav-btn{width:auto;min-width:0;padding:0 10px;font-size:11px;white-space:nowrap}
.hz-trend{font-size:10px;color:var(--muted)}.hz-trend.good{color:var(--green)}.hz-trend.warn{color:var(--gold)}
.hz-ev-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px}
.hz-muted{color:var(--muted)}
.hz .error-table td:nth-child(3),.hz .error-table th:nth-child(3),.hz .error-table td:nth-child(4),.hz .error-table th:nth-child(4){text-align:left}

@media(max-width:720px){
  .hz-section-title{font-size:18px}
  .hz-section-head .top-meta span:not(.live-dot):not(.updated){display:none}
  .hz-state{max-width:60%}
  .hz-state-text{font-size:15px;padding:6px 10px}
  .hz-mon{font-size:18px!important}
  .hz-tip{font-size:10px;min-width:130px}
  .hz #hzNav{flex-wrap:wrap;justify-content:flex-end}
}
