/* raumklima.css — Aussehen „Messgerät“ für die Raumklima-Auswertung (nur diese Seite).
   Kühler, sehr heller Grund, Petrol als Hausfarbe, Bernstein nur für „über dem Richtwert“ und immer mit Wort.
   Die Seite ist bewusst auf hell festgelegt: der Teppich liest sich nur so richtig (dunkel = viel). */

@font-face { font-family: "IBM Plex Sans"; src: url("../../schrift/muster/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../../schrift/muster/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../../schrift/muster/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../../schrift/muster/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../../schrift/muster/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../../schrift/muster/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: light;
  --flaeche-0: #eef4f5;
  --flaeche-1: #ffffff;
  --flaeche-2: #e0ebed;
  --linie: #c5d6d9;
  --raster: #e2ecee;
  --text-1: #0b1f24;
  --text-2: #3b5258;
  --text-3: #536c72;
  --akzent: #0b7078;
  --akzent-text: #075860;
  --s1: #1d5fbf; --s2: #c2338a; --s3: #2a9a66; --s4: #45a3dc; --s5: #3a3f4b; --s6: #8f5a3c; --s7: #6b4fd0; --s8: #0f7f86;
  --gut: #0b7078; --gut-text: #075860;
  --q1: #e3f1f1; --q2: #bee2e2; --q3: #82c5c7; --q4: #42a0a6; --q5: #0e747d; --q6: #074e58; --q7: #042f38;
  --rk-ueber: #d98a00;
  --rk-ueber-text: #8a5200;
  --rk-ueber-flaeche: #fcefd2;
  --rk-mitte: #8cc9cc;
  --rk-wahl: #e4f2f3;
  --schatten: 0 1px 0 rgb(11 31 36 / .05);
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

html { overflow-x: clip; }
body { font-family: "IBM Plex Sans", system-ui, sans-serif; font-size: 16px; overflow-x: clip; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; border-radius: 3px; }

/* ---------- Kopf und Titel ---------- */
.a-kopf { background: color-mix(in srgb, var(--flaeche-0) 94%, transparent); }
.a-kopf .a-name { font-weight: 600; }
.rk-kopfwahl { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); }
.rk-kopfwahl select { min-height: 40px; max-width: 46vw; border-radius: 4px; font-family: inherit; }
@media (max-width: 560px) { .a-kopf .a-name, .rk-kopfwahl span { display: none; } }

.a-titel { padding: 40px 0 20px; }
.a-titel h1 { font-weight: 600; font-stretch: 100%; letter-spacing: -.025em; font-size: clamp(32px, 4.6vw, 56px); max-width: 16ch; }
.a-titel p { font-size: 17px; max-width: 66ch; }
.a-schild { border-radius: 3px; font-family: var(--mono); font-size: 12px; font-weight: 500; background: var(--flaeche-1); border: 1px solid var(--linie); padding: 5px 10px; }
.a-schild i { background: var(--rk-ueber); border-radius: 1px; }
.a-schild.eigen i { background: var(--akzent); }

.ablage { border-radius: 6px; border-width: 1px; }
.knopf { border-radius: 4px; }
.ablage .vorlage-satz { display: block; margin-top: 6px; color: var(--text-1); }
.ablage .knoepfe { max-width: 330px; }
.ablage .vorlage-knopf { flex: 1 1 100%; font-family: var(--mono); font-size: 13px; }
.rk-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 720px) { .ablage .knoepfe { max-width: none; } .ablage .vorlage-knopf { flex: 0 1 auto; } }
.rk-hinweis { margin: -14px 0 24px; font-size: 14px; color: var(--text-2); max-width: 96ch; }

/* ---------- Einstellungen ---------- */
.rk-einstellung { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 18px; }
.rk-einstellung fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-width: 0; }
.rk-einstellung legend { padding: 0; margin-bottom: 6px; font-size: 13px; color: var(--text-3); }
.rk-einstellung label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.rk-einstellung input[type="text"], .rk-einstellung input[type="time"] {
  min-height: 42px; padding: 0 10px; border: 1px solid var(--linie); border-radius: 4px; background: var(--flaeche-1);
  color: var(--text-1); font: 500 14px var(--mono);
}
.rk-einstellung input[type="text"] { width: 68px; text-align: right; }
.rk-einstellung input[type="time"] { width: 104px; }
.rk-haken { min-height: 42px; cursor: pointer; }
.rk-haken input { width: 18px; height: 18px; accent-color: var(--akzent); }

/* ---------- Raum-Leiste ---------- */
.rk-leiste {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(156px, 1fr)); gap: 1px;
  background: var(--linie); border: 1px solid var(--linie); border-radius: 6px; overflow: hidden;
}
.rk-raum {
  display: flex; flex-direction: column; align-items: stretch; gap: 3px; min-height: 236px; min-width: 0;
  padding: 14px 14px 12px; border: 0; background: var(--flaeche-1); color: var(--text-1);
  font: inherit; text-align: left; cursor: pointer; position: relative; transition: background-color .15s;
}
.rk-raum:hover { background: #f5fafa; }
.rk-raum[aria-pressed="true"] { background: var(--rk-wahl); box-shadow: inset 0 4px 0 var(--akzent); }
.rk-raum:focus-visible { outline-offset: -3px; }
.rk-rname { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.rk-rname i { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.rk-rzusatz { font-size: 12px; color: var(--text-3); min-height: 17px; }
.rk-rwas { margin-top: 14px; font: 400 11px var(--mono); color: var(--text-3); }
.rk-urteil { font-size: 23px; font-weight: 600; line-height: 1.12; letter-spacing: -.015em; min-height: 52px; }
.rk-urteil.ueber { color: var(--rk-ueber-text); }
.rk-urteil.gut { color: var(--akzent-text); }
.rk-rzahl { font: 400 12px/1.4 var(--mono); color: var(--text-2); }
.rk-raum svg { display: block; width: 100%; height: 46px; margin-top: auto; overflow: visible; }
.rk-rneben { font-size: 12px; color: var(--text-3); min-height: 17px; }
@media (max-width: 560px) {
  .rk-leiste { grid-template-columns: 1fr 1fr; }
  .rk-raum { min-height: 214px; padding: 12px 10px 10px; }
  .rk-urteil { font-size: 19px; min-height: 44px; }
}

/* ---------- Anzeige (Kennzahlen des gewählten Raums) ---------- */
.rk-anzeige {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; margin-top: 12px;
  background: var(--flaeche-1); border: 1px solid var(--linie); border-radius: 6px;
}
.rk-anzeige > div { padding: 18px 20px; min-width: 0; }
.rk-anzeige > div + div { border-left: 1px solid var(--linie); }
.rk-anzeige h2 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.rk-anzeige h2 span { font-weight: 400; color: var(--text-3); }
.rk-anteil { margin: 0 0 14px; }
.rk-anteil:last-child { margin-bottom: 0; }
.rk-anteil p { margin: 0 0 5px; font-size: 13px; color: var(--text-2); }
.rk-stapel { display: flex; height: 22px; border-radius: 2px; overflow: hidden; background: var(--flaeche-2); gap: 2px; }
.rk-stapel i { display: block; min-width: 0; }
.rk-stapel .u { background: var(--q5); }
.rk-stapel .m { background: var(--rk-mitte); }
.rk-stapel .o { background: var(--rk-ueber); }
.rk-schluessel { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--text-2); }
.rk-schluessel li { display: inline-flex; align-items: center; gap: 6px; }
.rk-schluessel i { width: 10px; height: 10px; border-radius: 2px; }
.rk-schluessel b { font: 500 12px var(--mono); color: var(--text-1); }
.rk-messwerte { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px 20px; margin: 0; }
.rk-messwerte div { min-width: 0; border-top: 2px solid var(--text-1); padding-top: 8px; }
.rk-messwerte div.ueber { border-top-color: var(--rk-ueber); }
.rk-messwerte dt { font-size: 12px; color: var(--text-2); }
.rk-messwerte dd { margin: 4px 0 0; font: 500 clamp(22px, 2.2vw, 30px)/1.1 var(--mono); letter-spacing: -.03em; }
.rk-messwerte dd small { font-size: 13px; font-weight: 400; color: var(--text-3); margin-left: 5px; letter-spacing: 0; }
.rk-messwerte p { margin: 4px 0 0; font-size: 12px; color: var(--text-3); }
.rk-wort { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--rk-ueber-text); }
.rk-wort::before { content: ""; width: 8px; height: 8px; background: var(--rk-ueber); border-radius: 1px; }
.rk-wort.gut { color: var(--akzent-text); }
.rk-wort.gut::before { background: var(--akzent); }
.rk-wort.neutral { color: var(--text-2); }
.rk-wort.neutral::before { background: var(--text-3); }
@media (max-width: 900px) {
  .rk-anzeige { grid-template-columns: minmax(0, 1fr); }
  .rk-anzeige > div + div { border-left: 0; border-top: 1px solid var(--linie); }
  .rk-anzeige > div { padding: 16px 14px; }
}

/* ---------- Karten und Abschnitte ---------- */
.abschnitt { margin-top: 48px; }
.abschnitt > h2 { font-weight: 600; font-size: 23px; letter-spacing: -.02em; padding-left: 12px; border-left: 4px solid var(--akzent); line-height: 1.15; margin-bottom: 8px; }
.abschnitt > p.unter { max-width: 78ch; font-size: 15px; }
.karte { border-radius: 6px; padding: 16px 18px 14px; }
.karte-kopf h2 { font-size: 15px; font-weight: 600; }
.karte-kopf .tabelle-knopf { border-radius: 3px; font-family: var(--mono); font-size: 11px; min-height: 34px; }
.karte.rk-ohne-rand { padding: 0; overflow: hidden; }
.karte.rk-ohne-rand .tabelle-huelle { border: 0; border-radius: 0; max-height: none; }
.wahl { border-radius: 4px; }
.wahl button { border-radius: 3px; min-height: 40px; }
.wahl button[aria-pressed="true"] { background: var(--akzent); color: #fff; box-shadow: none; }
.wahl button:disabled { opacity: .4; cursor: not-allowed; }
select.feld { border-radius: 4px; min-height: 44px; font-family: inherit; }
.rk-paar { gap: 10px 20px; }
.rk-paar label { display: inline-flex; align-items: center; gap: 8px; }
.einsicht { font-size: 14px; }
.einsicht b { font-weight: 600; }
.legende { font-size: 12px; }
@media (max-width: 560px) { .karte { padding: 14px 12px 12px; } }

/* Zahlen in der Messgeräte-Schrift */
.dia text, table.daten td.z, .tipp b { font-family: var(--mono); }
.dia .achse text, .dia text.achse { font-size: 10.5px; fill: var(--text-3); }
.dia .wert-label { font-size: 10.5px; }
.tipp { border-radius: 4px; }
.tipp .t-zeile i { border-radius: 1px; }
table.daten { font-size: 13px; }
table.daten th { background: var(--flaeche-2); font-weight: 600; }
table.daten td .rk-chip, .rk-chip { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 7px; vertical-align: baseline; }
table.daten tr.gewaehlt td { background: var(--rk-wahl); }
table.daten tr.summe td { border-top: 2px solid var(--text-1); font-weight: 600; }
.tabelle-huelle { border-radius: 4px; }

/* ---------- Teppich ---------- */
.rk-teppich canvas { display: block; width: 100%; cursor: crosshair; touch-action: pan-y; }
.rk-skala { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 22px; margin: 0 0 10px; font-size: 12px; color: var(--text-2); }
.rk-skala .rk-leiter { width: min(100%, 300px); }
.rk-skala .rk-verlauf { height: 10px; border-radius: 2px; }
.rk-skala .rk-ticks { display: flex; justify-content: space-between; margin-top: 3px; font: 400 11px var(--mono); color: var(--text-3); }
.rk-skala .rk-zeichen { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; }
.rk-skala .rk-zeichen i { width: 18px; height: 12px; border-radius: 1px; }
.rk-skala .rk-zeichen i.rahmen { border: 1.5px solid var(--text-1); }
.rk-skala .rk-zeichen i.leer { background: repeating-linear-gradient(135deg, #dfe8ea 0 3px, #f5f8f9 3px 6px); border: 1px solid var(--linie); }
.rk-minis { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--raster); }
.rk-mini { display: grid; gap: 4px; padding: 6px; margin: 0; border: 1px solid transparent; border-radius: 4px; background: transparent; font: inherit; color: var(--text-2); font-size: 12px; text-align: left; cursor: pointer; min-width: 0; }
.rk-mini:hover { border-color: var(--linie); }
.rk-mini[aria-pressed="true"] { border-color: var(--akzent); background: var(--rk-wahl); color: var(--text-1); }
.rk-mini canvas { display: block; width: 100%; height: 48px; image-rendering: pixelated; border-radius: 1px; background: repeating-linear-gradient(135deg, #dfe8ea 0 3px, #f5f8f9 3px 6px); }

/* ---------- eigene Diagramme ---------- */
.dia .rk-fenster { fill: var(--akzent); opacity: .06; }
.dia .rk-stunde { stroke: var(--raster); stroke-width: 1; }
.dia .rk-stunde.voll { stroke: var(--linie); }
.dia .rk-marke { stroke: var(--rk-ueber); stroke-width: 1.25; stroke-dasharray: 5 4; }
.dia .rk-marke-text { fill: var(--rk-ueber-text); font-size: 10.5px; font-weight: 500; }
.dia .rk-zone { fill: var(--akzent); fill-opacity: .08; stroke: var(--akzent); stroke-width: 1.25; stroke-dasharray: 4 3; }
.dia .rk-zone-text { fill: var(--akzent-text); font-size: 10.5px; font-weight: 500; }
.dia .rk-leer { fill: var(--text-3); font-size: 13px; font-family: "IBM Plex Sans", system-ui, sans-serif; }
.rk-keine { margin: 0; padding: 26px 8px; color: var(--text-3); font-size: 14px; text-align: center; }

/* Balkenpaare „Wird gelüftet?“ */
.rk-paare { display: grid; gap: 12px; }
.rk-paarzeile { display: grid; gap: 3px; min-width: 0; }
.rk-paarzeile .kopf { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.rk-paarzeile .kopf b { font-weight: 600; }
.rk-paarzeile .kopf span { color: var(--text-3); font-size: 12px; text-align: right; }
.rk-bz { display: grid; grid-template-columns: 56px minmax(0, 1fr) 74px; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); }
.rk-bz .spur { height: 12px; background: var(--flaeche-2); border-radius: 1px; overflow: hidden; }
.rk-bz .spur i { display: block; height: 100%; }
.rk-bz .spur i.ab { background-image: repeating-linear-gradient(135deg, rgb(255 255 255 / .55) 0 2px, transparent 2px 5px); }
.rk-bz b { font: 500 12px var(--mono); color: var(--text-1); text-align: right; white-space: nowrap; }

/* kleine Wertelisten */
.rk-werte { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px 16px; margin: 12px 0 0; }
.rk-werte div { border-top: 1px solid var(--linie); padding-top: 6px; min-width: 0; }
.rk-werte dt { font-size: 12px; color: var(--text-2); }
.rk-werte dd { margin: 2px 0 0; font: 500 18px var(--mono); letter-spacing: -.02em; }
.rk-werte dd small { font-size: 12px; font-weight: 400; color: var(--text-3); margin-left: 4px; }

/* Listen: Befunde, Datenqualität */
.rk-liste { list-style: none; margin: 0; padding: 0; }
.rk-liste li { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 4px 18px; padding: 14px 2px; border-top: 1px solid var(--raster); align-items: start; }
.rk-liste li:first-child { border-top: 0; padding-top: 4px; }
.rk-liste b { display: block; font-weight: 600; }
.rk-liste p { margin: 3px 0 0; color: var(--text-2); font-size: 14px; max-width: 86ch; }
.rk-liste.klein { padding: 4px 16px 8px; border-top: 1px solid var(--linie); }
.rk-liste.klein li { padding: 10px 2px; }
.rk-liste.klein li:first-child { padding-top: 10px; }
.rk-liste.klein:empty { display: none; }
@media (max-width: 640px) { .rk-liste li { grid-template-columns: minmax(0, 1fr); } }

.a-fuss { margin-top: 72px; }
@media (prefers-reduced-motion: reduce) { .rk-raum { transition: none; } }

.karte.drittel table.daten th, .karte.drittel table.daten td { padding: 7px 8px; }
.karte.drittel table.daten td:first-child { white-space: normal; }

.a-titel h1, .abschnitt > h2, .karte-kopf h2 { text-wrap: balance; }
.knopf { white-space: nowrap; }
.knopf:active, .rk-raum:active, .rk-mini:active, .wahl button:active { transform: translateY(1px); }

/* Druck: Raumkarten in drei Spalten mit eigenem Rahmen, ohne graue Fläche bei einem Seitenumbruch */
html.druckt .rk-leiste { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 6px !important; background: none !important; border: 0 !important; }
html.druckt .rk-raum { min-height: 0 !important; border: 1px solid var(--linie) !important; border-radius: 6px; }
html.druckt .rk-urteil { min-height: 0 !important; font-size: 19px !important; }
html.druckt .rk-anzeige { grid-template-columns: 1fr !important; }
html.druckt .rk-anzeige > div + div { border-left: 0 !important; border-top: 1px solid var(--linie); }

/* Verweis auf „Datei erkennen lassen“ */
.erkennen-satz { display: block; margin-top: 6px; font-size: 14px; color: var(--text-2); }
.erkennen-satz a { color: var(--akzent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
