
:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #183438; background: #f2f5f5; font-size: 16px;
  --petrol: #123438; --green: #c5ed72; --muted: #60777b; --border: #dce5e5;
  --teal: #16827b; --blue: #6679cc; --orange: #ac6318;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
button { color: inherit; background: none; border: 0; touch-action: manipulation; }
a { color: inherit; }
h1,h2,h3,h4,p { margin: 0; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #268fbc; outline-offset: 3px; }
[hidden] { display: none !important; }
small { display: block; font-size: .75rem; line-height: 1.5; color: var(--muted); }
.muted { color: var(--muted); font-size: .875rem; }
.warning-text { color: #925518; }
.skip { position: fixed; top: -100px; left: 15px; z-index: 150; background: white; padding: 12px; }
.skip:focus-visible { top: 10px; }
.sidebar { width: 228px; position: fixed; inset: 0 auto 0 0; background: var(--petrol); color: #dce8e7; padding: 34px 18px 22px; z-index: 60; display: flex; flex-direction: column; overflow-y: auto; }
.brand { text-decoration: none; display: flex; align-items: center; gap: 11px; color: white; font-size: 1.8rem; font-weight: 650; letter-spacing: -.055em; padding: 0 12px; }
.brand-mark { color: var(--green); font-weight: 600; font-size: 2rem; font-style: italic; }
.brand-subtitle { margin: 11px 12px 40px; letter-spacing: .13em; font-size: .75rem; color: #90b0b1; }
.nav-label { font-size: .75rem; letter-spacing: .09em; padding: 0 13px; color: #90b0b1; margin-bottom: 13px; }
.nav-link { display: flex; gap: 13px; align-items: center; text-decoration: none; border-radius: 6px; padding: 14px 13px; margin: 5px 0; font-size: .95rem; }
.nav-link > span { font-size: 1.2rem; width: 20px; }
.nav-link:hover { background: #204347; }
.nav-link.active { background: #2b4e48; color: #dcf4b7; box-shadow: inset 3px 0 var(--green); font-weight: 650; }
.nav-tree { border-top: 1px solid #355356; margin-top: 24px; padding-top: 15px; font-size: .85rem; }
.nav-tree summary { padding: 10px 9px; line-height: 1.45; }
.nav-tree > details { padding-left: 8px; border-left: 1px solid #476263; margin: 4px 0 4px 10px; }
.nav-tree button { display: block; text-align: left; padding: 10px; color: #bcd2d1; font-size: .8rem; line-height: 1.5; border-radius: 4px; width: 100%; }
.nav-tree button:hover, .nav-tree .active-system { background: #29494b; color: #def4b4; }
.sidebar-foot { margin-top: auto; padding: 42px 12px 0; display: grid; gap: 6px; font-size: .75rem; color: #90b0b1; line-height: 1.5; }
.sidebar-foot strong { color: #dce8e7; font-size: .875rem; }
.workspace { margin-left: 228px; }
.topline { position: sticky; top: 0; min-height: 65px; background: #ffffffed; backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 34px; }
.workspace-name { color: var(--muted); font-size: .8rem; }
.demo-badge { border: 1px solid #d3e1ba; background: #eef5e4; color: #456131; border-radius: 4px; padding: 6px 9px; font-size: .75rem; font-weight: 650; letter-spacing: .02em; }
.quiet-button { color: #516b6e; font-size: .8rem; padding: 8px 0; text-decoration: underline; text-underline-offset: 4px; }
.menu-toggle, .nav-shade { display: none; }
main { padding: 30px 34px 24px; max-width: 1650px; margin: 0 auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.eyebrow { font-size: .75rem; color: var(--muted); letter-spacing: .05em; margin-bottom: 8px; line-height: 1.5; }
h1 { font-size: clamp(1.65rem,2.2vw,2rem); font-weight: 650; letter-spacing: -.04em; line-height: 1.2; }
#page-description { margin-top: 9px; color: var(--muted); font-size: .875rem; line-height: 1.55; max-width: 740px; }
.export-menu { position: relative; flex-shrink: 0; z-index: 45; }
.export-menu > summary { background: var(--petrol); color: white; padding: 12px 16px; border-radius: 6px; font-size: .875rem; font-weight: 550; list-style: none; }
.export-menu > summary::-webkit-details-marker { display: none; }
.export-menu summary > span { margin-left: 16px; }
.export-menu > div { position: absolute; right: 0; top: calc(100% + 8px); width: 285px; background: white; border: 1px solid var(--border); box-shadow: 0 12px 35px #1d454526; border-radius: 7px; padding: 8px; }
.export-menu button { display: block; padding: 12px; width: 100%; text-align: left; border-radius: 4px; font-size: .875rem; }
.export-menu button:hover { background: #ecf3f0; }
.export-menu p { font-size: .75rem; color: var(--muted); padding: 8px 12px; line-height: 1.6; }
#export-status:empty { display: none; }
#export-status { padding: 12px 15px; margin: 0 0 15px; background: #e6f0e3; border: 1px solid #cfdcc7; font-size: .875rem; line-height: 1.6; }
#last-download { font-weight: 600; margin-left: 8px; }
.filter-panel { padding: 16px 19px 12px; background: white; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 22px; }
.filters { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 15px; }
label { display: grid; gap: 7px; font-size: .875rem; color: #496366; font-weight: 550; }
select, input:not([type=range]) { border: 1px solid #cfdcdd; border-radius: 5px; min-width: 0; padding: 9px 10px; width: 100%; color: var(--petrol); background: white; font-size: .875rem; min-height: 40px; }
select:disabled { color: #708587; background: #f4f7f7; cursor: default; }
.range-caption { display: flex; justify-content: space-between; gap: 14px; margin-top: 12px; padding-top: 11px; border-top: 1px solid #eaf0ef; font-size: .75rem; line-height: 1.6; color: var(--muted); flex-wrap: wrap; }
.custom-range { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 15px; padding-top: 16px; }
.primary-button { padding: 12px 16px; background: var(--petrol); color: white; font-size: .875rem; font-weight: 600; border-radius: 5px; }
.form-error { font-size: .875rem; line-height: 1.5; padding: 12px; color: #a13535; background: #ffeded; border-radius: 5px; margin-top: 12px; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 16px; }
.metric { padding: 18px; border: 1px solid var(--border); border-radius: 8px; background: white; min-width: 0; }
.metric h2 { font-size: .85rem; font-weight: 600; line-height: 1.5; min-height: 40px; }
.metric-value { font-size: clamp(1.8rem,2.5vw,2.25rem); font-weight: 650; line-height: 1.3; letter-spacing: -.05em; font-variant-numeric: tabular-nums; margin: 9px 0; }
.metric-value > span { font-size: .9rem; font-weight: 450; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.metric > p { font-size: .75rem; color: var(--muted); line-height: 1.6; min-height: 37px; }
.metric > .chip { margin-top: 9px; }
.metric.warning { background: #fff8ed; border-color: #e6c99f; }
.metric.warning .metric-value { color: #9d5515; }
.metric.danger { background: #fff1ef; border-color: #e4b2ac; }
.chip { display: inline-block; border-radius: 4px; padding: 4px 6px; font-size: .75rem; line-height: 1.5; color: #546f70; background: #edf2f2; font-weight: 500; }
.chip.warning { color: #8b4d0b; background: #fbe8ca; }
.chip.danger { color: #a43232; background: #fce3e0; }
.alerts { display: grid; gap: 8px; margin: 15px 0; }
.alert { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; border: 1px solid #dccdab; border-radius: 7px; background: #fff8eb; }
.alert > span { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #ddbc8c; color: #9f601a; border-radius: 50%; flex-shrink: 0; font-size: .9rem; }
.alert strong { font-size: .875rem; }
.alert p { font-size: .8rem; line-height: 1.6; margin-top: 4px; color: #766448; }
.alert.data { background: #edf4f9; border-color: #d1e0e9; }
.alert.data p { color: #57717e; }
.alert.data > span { border-color: #b9cdd9; color: #577b8d; }
.alert.danger { background: #fff1ef; border-color: #efc8c1; }
.alert.danger p { color: #9d4d46; }
.scope-details { font-size: .8rem; color: var(--muted); margin: 9px 0 20px; }
summary { cursor: pointer; line-height: 1.5; }
.scope-details > summary { padding: 8px 0; color: #405e60; font-weight: 550; }
.scope-details summary > span { font-weight: 400; color: var(--muted); margin-left: 10px; }
.scope-content { background: #e9f0f0; border: 1px solid #d8e3e2; padding: 14px 18px; border-radius: 6px; margin-top: 8px; }
.scope-content p { font-size: .8rem; line-height: 1.7; margin: 5px 0; }
.panel { border: 1px solid var(--border); border-radius: 8px; background: white; margin-bottom: 22px; overflow: hidden; min-width: 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 21px 12px; }
.panel-heading h2 { font-size: 1rem; font-weight: 650; letter-spacing: -.01em; }
.panel-heading p { font-size: .8rem; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.count { font-size: .75rem; color: #6b8183; border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; margin-left: 7px; }
.toggle-button, .chart-toggles button { border: 1px solid #cfdbd9; border-radius: 5px; padding: 8px 10px; font-size: .8rem; white-space: nowrap; }
.toggle-button[aria-pressed=true], .chart-toggles button[aria-pressed=true] { background: #e7f1ec; border-color: #92b7a9; color: #26675c; }
.chart-toggles { display: flex; flex-wrap: wrap; gap: 7px; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: .8rem; color: var(--muted); padding: 4px 21px 8px; }
.legend > span { display: flex; align-items: center; gap: 7px; }
.legend i { width: 20px; height: 3px; display: inline-block; }
.legend-hidden { opacity: .45; text-decoration: line-through; }
.line-hvac { stroke: var(--teal); background: var(--teal); }
.line-it { stroke: var(--blue); background: var(--blue); }
.line-temp { stroke: #b47a3e; background: #b47a3e; }
.line-warning { stroke: #bf641d; background: #bf641d; }
.line-setpoint { stroke: #8c9d9c; background: #8c9d9c; stroke-dasharray: 5 4; }
.line-quarter { stroke: #899e46; background: #899e46; stroke-dasharray: 4 4; }
.chart-host { padding: 0 18px 14px; }
.chart { width: 100%; display: block; }
.chart text { font: 12px "Segoe UI",Arial,sans-serif; fill: #648086; }
.chart-grid { stroke: #e5eeee; stroke-width: 1; }
.chart-line { stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; vector-effect: non-scaling-stroke; }
.chart-dot { fill: white; stroke-width: 2; }
.threshold { stroke: #bf641d; stroke-dasharray: 5 6; stroke-width: 1.5; }
.chart .threshold-label { fill: #9d551c; font-size: 12px; }
.peak-band { fill: #a8bc5529; }
.peak-dot { fill: #ebf0d4; stroke: #789126; stroke-width: 2; }
.chart-inspector { border-top: 1px solid #edf1f1; padding-top: 10px; display: grid; grid-template-columns: 165px 1fr; align-items: center; gap: 8px 14px; }
.chart-inspector label { font-size: .75rem; color: var(--muted); font-weight: 400; }
.chart-inspector input { width: 100%; accent-color: var(--teal); }
.chart-readout { grid-column: 1/-1; color: #506f73; font-size: .75rem; line-height: 1.6; min-height: 38px; }
.chart-empty { min-height: 260px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; text-align: center; color: var(--muted); padding: 25px; font-size: .875rem; line-height: 1.6; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .8rem; text-align: left; }
th,td { border-bottom: 1px solid #e7eeee; padding: 13px 16px; vertical-align: top; line-height: 1.6; }
thead th { font-size: .75rem; font-weight: 600; color: #647c7f; background: #f7fafa; }
tbody th { font-weight: 500; }
td small { margin-top: 5px; }
.ranking table { min-width: 1020px; }
.ranking th:first-child { width: 25%; }
.energy-cell { min-width: 145px; }
.energy-cell strong { font-size: .95rem; font-variant-numeric: tabular-nums; }
.energy-cell strong span { font-size: .75rem; font-weight: 400; color: var(--muted); }
progress { display: block; margin-top: 8px; width: 100%; height: 5px; border: 0; border-radius: 3px; background: #e7efed; accent-color: var(--teal); }
progress::-webkit-progress-bar { background: #e7efed; border-radius: 3px; }
progress::-webkit-progress-value { background: #398d82; border-radius: 3px; }
.system-link { padding: 0; color: #196e68; font-weight: 650; text-align: left; font-size: .85rem; line-height: 1.6; }
.system-link:hover, .text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.system-link > span { margin-left: 5px; }
.text-button { padding: 3px 0; color: #23776f; font-size: .8rem; font-weight: 550; text-align: left; line-height: 1.6; }
.sort-label { font-size: .75rem; font-weight: 400; min-width: 185px; }
.sort-label select { min-height: 35px; padding: 6px 9px; font-size: .8rem; }
.table-hint { display: none; padding: 0 20px 12px; font-size: .75rem; color: var(--muted); }
.show-all { padding: 15px 20px; font-size: .85rem; color: #236c65; width: 100%; text-align: left; font-weight: 600; }
.show-all:hover { background: #f2f7f5; }
.inventory-caption { font-size: .875rem; color: var(--muted); margin-bottom: 18px; }
.room-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.room-card { margin-bottom: 0; }
.room-card-heading { display: flex; gap: 12px; align-items: center; padding: 18px; background: #f8fafa; border-bottom: 1px solid var(--border); }
.room-number { background: #e9f0ef; color: #385b5b; border: 1px solid #d9e4e2; border-radius: 5px; padding: 9px; font-size: .8rem; font-weight: 600; min-width: 48px; text-align: center; }
.room-card h2 { font-size: .95rem; font-weight: 650; }
.room-card-heading p { font-size: .75rem; color: var(--muted); margin-top: 5px; }
.system-card-link { padding: 18px; display: flex; align-items: center; gap: 20px; justify-content: space-between; text-align: left; width: 100%; border-bottom: 1px solid #e8efed; }
.system-card-link:hover { background: #f1f7f3; }
.system-card-link strong { font-size: .9rem; color: #256e65; }
.system-card-link small { margin-top: 5px; }
.system-card-link > span:last-child { color: #527b76; }
.system-summary { padding: 0 21px 20px; font-size: .875rem; color: #4c686b; line-height: 1.65; }
.system-summary p { margin: 8px 0; }
.system-summary summary { font-size: .8rem; font-weight: 600; }
.component { padding: 20px 21px; border-top: 1px solid var(--border); }
.component h3 { font-size: .95rem; }
.component-model { font-size: .875rem; margin: 6px 0 15px; color: var(--muted); }
.component > .muted { line-height: 1.7; }
.point-table { min-width: 740px; }
.point-table th:first-child { width: 30%; }
.point-table td details { min-width: 75px; }
.point-table details p { overflow-wrap: anywhere; font-size: .75rem; min-width: 140px; margin-top: 9px; }
.open-questions { margin: 24px 0; font-size: .85rem; color: var(--muted); }
.open-questions summary { font-weight: 550; }
.open-questions p { font-size: .85rem; line-height: 1.7; margin: 12px 0; max-width: 1100px; }
footer { display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid var(--border); padding-top: 18px; color: var(--muted); font-size: .75rem; line-height: 1.6; }
dialog { width: min(540px,calc(100% - 32px)); max-height: 90dvh; border: 1px solid var(--border); border-radius: 10px; padding: 0; color: var(--petrol); box-shadow: 0 22px 80px #102e3855; }
dialog::backdrop { background: #102e3999; backdrop-filter: blur(3px); }
.dialog-heading { background: var(--petrol); color: white; padding: 23px; display: flex; align-items: center; justify-content: space-between; }
.dialog-heading .eyebrow { color: #bfd2a4; }
.dialog-heading h2 { font-size: 1.2rem; }
.dialog-heading button { color: white; width: 40px; height: 40px; font-size: 1.6rem; }
.dialog-body { padding: 23px; }
.dialog-body p { font-size: .875rem; line-height: 1.7; color: var(--muted); }
.dialog-body label { margin: 18px 0 9px; }
.dialog-body > .primary-button { margin-top: 20px; }
@media (max-width:1250px) {
  main { padding-left: 24px; padding-right: 24px; }
  .topline { padding-left: 24px; padding-right: 24px; }
  .workspace-name { display: none; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric h2 { min-height: auto; }
  .metric > p { min-height: auto; }
  .table-hint { display: block; }
}
@media (max-width:900px) {
  .sidebar { transform: translateX(-100%); width: 265px; z-index: 100; }
  .sidebar.is-open { transform: translateX(0); }
  .nav-shade { display: block; position: fixed; inset: 0; background: #09292d80; z-index: 90; width: 100%; height: 100%; }
  .workspace { margin-left: 0; }
  .menu-toggle { display: block; padding: 6px; font-size: 1.25rem; }
  .topline { gap: 10px; padding: 8px 20px; }
  .demo-badge { font-size: .7rem; }
  main { padding: 25px 22px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .custom-range { grid-template-columns: 1fr 1fr; }
  .custom-range button { grid-column: 1/-1; justify-self: start; }
}
@media (max-width:600px) {
  .topline { min-height: 64px; padding: 8px 13px; flex-wrap: wrap; }
  .demo-badge { font-size: .65rem; padding: 5px 6px; max-width: 165px; text-align: center; line-height: 1.4; }
  .quiet-button { font-size: .75rem; max-width: 83px; line-height: 1.4; }
  main { padding: 24px 15px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 17px; }
  h1 { font-size: 1.7rem; }
  .export-menu { align-self: flex-end; }
  .export-menu > summary { padding: 10px 13px; font-size: .8rem; }
  .filter-panel { padding: 14px; }
  .filters { gap: 13px 10px; }
  .filters label, select { font-size: .8rem; }
  select { padding-left: 6px; }
  .custom-range { grid-template-columns: 1fr; }
  .range-caption { font-size: .75rem; gap: 7px; }
  .metrics { gap: 10px; }
  .metric { padding: 14px 12px; }
  .metric h2 { font-size: .8rem; min-height: 38px; }
  .metric-value { font-size: 1.8rem; }
  .metric-value > span { font-size: .8rem; margin-left: 4px; }
  .metric > p { min-height: 52px; font-size: .75rem; }
  .metric .chip { font-size: .7rem; }
  .scope-details summary > span { display: block; margin: 6px 0 0 15px; font-size: .75rem; }
  .panel-heading { padding: 17px 15px 12px; flex-direction: column; align-items: flex-start; }
  .panel-heading h2 { font-size: .95rem; }
  .panel-heading p { font-size: .8rem; }
  .legend { padding: 2px 15px 10px; gap: 12px; font-size: .75rem; }
  .chart-host { padding: 0 8px 12px; }
  .chart-inspector { padding: 10px 7px 0; grid-template-columns: 1fr; gap: 6px; }
  .chart-readout { min-height: 54px; }
  .chart-toggles button, .toggle-button { font-size: .75rem; padding: 8px; }
  .sort-label { width: 100%; }
  .sort-label select { font-size: .8rem; }
  .room-grid { grid-template-columns: 1fr; gap: 14px; }
  .system-summary { padding: 0 15px 15px; }
  .component { padding: 18px 15px; }
  .component h3 { line-height: 1.5; }
  .alert { padding: 12px; gap: 9px; }
  .alert strong { font-size: .8rem; }
  .alert p { font-size: .8rem; }
  footer { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion:reduce) { * { scroll-behavior: auto !important; } }


.temperature-warning { color: #a55516; font-weight: 650; }
/* Original-Wortmarke; die Bilddatei bleibt unverändert. */
.brand { display:block; width:100%; overflow:hidden; }
.brand img { display:block; width:145%; max-width:none; height:auto; margin-left:-7%; }
.brand-subtitle { margin-top:14px; }
.connection-badge { font-size:.75rem; color:var(--muted); padding:6px 10px; border:1px solid var(--border); border-radius:4px; background:#f5f8f8; text-align:center; line-height:1.4; }
.connection-badge.demo-badge { background:#edf5e3; color:#496936; border-color:#c5d9aa; }
.connection-badge.connection-error { color:#9d5515; background:#fff8ed; border-color:#e6c99f; }
.top-actions { display:flex; gap:15px; align-items:center; }
.mode-link { font-size:.8rem; margin-top:12px; display:inline-block; }
.weather-values { display:grid; grid-template-columns:1fr 1fr; gap:20px; padding:4px 22px 22px; }
.weather-values h3 { font-size:.85rem; font-weight:500; margin-bottom:12px; }
.weather-values > article > p { font-size:1.25rem; margin-bottom:10px; }
.weather-values small, .weather-values details { color:var(--muted); font-size:.75rem; line-height:1.7; }
.weather-values details { margin-top:10px; }
#sources-dialog { width:min(760px,calc(100% - 32px)); }
#source-inventory p { margin-bottom:12px; }
@media(max-width:600px) {
  .topline .connection-badge { order:3; width:100%; }
  .top-actions { margin-left:auto; }
  .top-actions .quiet-button { max-width:none; }
  .weather-values { padding:4px 15px 18px; gap:15px; }
  .weather-values > article > p { font-size:1rem; }
}
