/* stil.css - Temperaturwaechter temperatur.traurig.net, Grundlage wie die Statusseite, eigene Datei */
:root {
  --grund: #f6f5f2; --flaeche: #ffffff; --text: #1f2328; --leise: #6a6f77; --linie: #e2e0db;
  --gruen: #1a7f37; --gelb: #c98a00; --rot: #c62828; --grau: #b9bcc2; --offen: #e9e7e2;
  --gruen-hg: #e6f4ea; --gelb-hg: #fdf3d8; --rot-hg: #fbe6e6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --grund: #16181b; --flaeche: #1f2226; --text: #e6e6e6; --leise: #9aa0a8; --linie: #2e3237;
    --gruen: #3fb26a; --gelb: #e0a82e; --rot: #ef5350; --grau: #5a5f66; --offen: #2a2d32;
    --gruen-hg: #17301f; --gelb-hg: #33290f; --rot-hg: #3a1a1a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--grund); color: var(--text);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 720px; margin: 0 auto; padding: 16px 14px 8px; }
h1 { font-size: 1.35rem; margin: 0; line-height: 1.2; }
h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--leise); margin: 26px 0 8px; }
h3 { font-size: 1rem; margin: 0 0 2px; }
em { font-style: normal; font-size: .75rem; color: var(--leise); border: 1px solid var(--linie); border-radius: 4px; padding: 0 4px; margin-left: 4px; white-space: nowrap; }
a { color: inherit; }
.klein { font-size: .85rem; color: var(--leise); margin: 2px 0 0; }
.fehler { color: var(--rot); }

.punkt {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 1.3em; height: 1.3em; border-radius: 50%; font-size: .8em; font-weight: 700;
  color: #fff; background: var(--grau); vertical-align: -.15em;
}
.punkt.klein { width: 1.1em; height: 1.1em; font-size: .7em; }
.punkt.gross { width: 56px; height: 56px; font-size: 28px; }
.gruen.punkt { background: var(--gruen); } .gelb.punkt { background: var(--gelb); } .rot.punkt { background: var(--rot); }

.gesamt { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 12px; background: var(--flaeche); border: 1px solid var(--linie); }
.gesamt.gruen { background: var(--gruen-hg); border-color: transparent; }
.gesamt.gelb { background: var(--gelb-hg); border-color: transparent; }
.gesamt.rot { background: var(--rot-hg); border-color: transparent; }

.probleme { list-style: none; padding: 0; margin: 12px 0 0; }
.probleme li { padding: 8px 10px; margin-bottom: 6px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 8px; font-size: .92rem; }

.maschine, .sicherung, .lauf { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.kopien { list-style: none; padding: 0; margin: 8px 0 0; font-size: .9rem; }
.kopien li { padding: 3px 0; }

/* Raster: Spalte fuer die Kennung, dann 14 Tage, heute links */
.raster { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; margin-top: 10px; }
.raster.kopf { margin: 10px 0 -7px; font-size: .66rem; color: var(--leise); text-align: center; }
.raster.kopf .we { font-weight: 700; }
.raster.kopf .heute { color: var(--text); font-weight: 700; text-decoration: underline; }
.feld {
  aspect-ratio: 1; min-height: 18px; border-radius: 4px; display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700; color: #fff; text-decoration: none; background: var(--offen);
}
.feld.gruen { background: var(--gruen); } .feld.gelb { background: var(--gelb); } .feld.rot { background: var(--rot); }
.feld.grau { background: var(--grau); }
.feld.offen { background: transparent; border: 1.5px dashed var(--grau); }
.feld.leer { background: var(--offen); }
.feld.laeuft { background: var(--offen); color: var(--leise); }
a.feld:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }

.legende { list-style: none; padding: 0; margin: 22px 0 4px; font-size: .82rem; color: var(--leise); }
.legende li { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.legende .feld { width: 18px; height: 18px; display: inline-flex; flex: none; }

.status { padding: 10px 12px; border-radius: 8px; background: var(--flaeche); border: 1px solid var(--linie); }
.status.gruen { background: var(--gruen-hg); } .status.gelb { background: var(--gelb-hg); } .status.rot { background: var(--rot-hg); }
.lauf h2 { text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--text); margin: 0; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; font-size: .88rem; margin: 10px 0; }
dt { color: var(--leise); } dd { margin: 0; }
details summary { cursor: pointer; font-size: .88rem; color: var(--leise); }
pre { white-space: pre-wrap; word-break: break-word; font-size: .74rem; line-height: 1.35; background: var(--grund); padding: 10px; border-radius: 6px; margin: 8px 0 0; max-height: 70vh; overflow: auto; }
.zurueck { text-decoration: none; color: var(--leise); }

.anmeldung { max-width: 300px; padding-top: 30vh; }
.anmeldung form { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
input[type=password] { font-size: 1rem; padding: 10px 12px; border: 1px solid var(--linie); border-radius: 8px; background: var(--flaeche); color: var(--text); }
button { font: inherit; padding: 10px 14px; border-radius: 8px; border: 0; background: var(--text); color: var(--grund); cursor: pointer; }
button.leise { background: none; color: var(--leise); padding: 4px 0; text-decoration: underline; }

footer { max-width: 720px; margin: 0 auto; padding: 8px 14px 28px; display: flex; justify-content: space-between; align-items: center; font-size: .75rem; color: var(--leise); }
footer form { margin: 0; }

/* 1.1: Codes, Hinweise, Knoepfe, Diagnose */
code { font: .75rem ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--grund); border: 1px solid var(--linie); border-radius: 4px; padding: 0 4px; white-space: nowrap; }
.hinweis { padding: 8px 10px; border-radius: 8px; background: var(--gelb-hg); font-size: .9rem; }
.probleme a { text-decoration: none; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
button.zweit { background: var(--grund); color: var(--text); border: 1px solid var(--linie); padding: 7px 10px; font-size: .88rem; }
textarea { width: 100%; margin-top: 8px; font: .72rem/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--grund); color: var(--text); border: 1px solid var(--linie); border-radius: 6px; padding: 8px; }
details > summary { cursor: pointer; }
.anmeldung input[type=password] { width: 100%; }

/* 1.2: Karten, Quittieren, Einstellungen, Verlauf, Hilfe */
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.karte h2 { text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--text); margin: 0 0 4px; }
.karte > summary { font-weight: 600; }
.probleme li.quittiert { opacity: .65; }
.quittung { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
select, input[type=time], input[type=url], input[name=bestaetigung] {
  font: inherit; font-size: .9rem; padding: 6px 8px; border: 1px solid var(--linie); border-radius: 6px; background: var(--grund); color: var(--text);
}
button.klein { padding: 4px 8px; font-size: .8rem; }
.einstellungen { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.einstellungen label { display: flex; flex-direction: column; gap: 3px; font-size: .85rem; color: var(--leise); }
.einstellungen button { align-self: flex-start; }
.verlauf { display: block; width: 100%; height: 22px; margin-top: 2px; fill: var(--grau); }
.verlauf-titel { margin-top: 8px; font-size: .72rem; }
.hilfe li { margin-bottom: 6px; }
.hilfe .feld { width: 18px; height: 18px; display: inline-flex; vertical-align: -4px; }
dl.codes { grid-template-columns: 1fr; }
dl.codes dt { color: var(--text); font-weight: 600; margin-top: 8px; }
footer a { color: inherit; }
.wartung a { text-decoration: none; }
.wartung-zeile { padding: 6px 0; border-bottom: 1px solid var(--linie); }
.wartung-zeile:last-child { border-bottom: 0; }
input[type=date], input[name=notiz] { font: inherit; font-size: .9rem; padding: 6px 8px; border: 1px solid var(--linie); border-radius: 6px; background: var(--grund); color: var(--text); }
input[name=notiz] { flex: 1 1 140px; min-width: 0; }
.beweise { margin-top: 6px; }
.beweis { display: inline-block; margin: 2px 4px 0 0; padding: 1px 6px; border-radius: 4px; font-size: .75rem; }
.beweis.ja { background: var(--gruen-hg); color: var(--text); }
.beweis.nein { background: var(--offen); color: var(--leise); }

/* 1.4: Reiter, Orte, Ringe, Matrix, Platz, Verkehr, Auftraege */
:root { --sich: #2f6fb2; }
@media (prefers-color-scheme: dark) { :root { --sich: #5b9be0; } }
.reiter { display: flex; gap: 4px; overflow-x: auto; margin: 12px -14px 0; padding: 0 14px 2px; scrollbar-width: none; }
.reiter a { flex: none; text-decoration: none; font-size: .85rem; padding: 6px 10px; border-radius: 16px; color: var(--leise); border: 1px solid var(--linie); background: var(--flaeche); }
.reiter a.aktiv { color: var(--grund); background: var(--text); border-color: var(--text); }
.einleitung { margin-top: 12px; }
.orte { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 700px) { .orte { grid-template-columns: repeat(3, 1fr); } main { max-width: 1040px; } footer { max-width: 1040px; } }
.ort { background: var(--grund); border: 1px solid var(--linie); border-radius: 12px; padding: 10px; }
.ort > h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--leise); margin: 0 0 8px; }
.geraet { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; padding: 10px; margin-bottom: 8px; }
.geraet:last-child { margin-bottom: 0; }
.geraet.geplant { opacity: .7; border-style: dashed; }
.geraet h4 { margin: 0; font-size: .98rem; }
.platte, .ziel { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.ziel { align-items: flex-start; border-top: 1px solid var(--linie); padding-top: 10px; margin-top: 10px; }
.ziel > div { flex: 1; min-width: 0; }
.ziel h3 .klein { font-weight: 400; }
.ziel dl { margin: 6px 0 0; }
.ring { width: 76px; height: 76px; flex: none; transform: rotate(0deg); }
.ring circle { stroke: var(--grau); }
.ring .t-grund { stroke: var(--offen); }
.ring .t-sich { stroke: var(--sich); } .ring .t-sonst { stroke: var(--grau); } .ring .t-frei { stroke: var(--offen); }
.ring .t-gelb { stroke: var(--gelb); } .ring .t-rot { stroke: var(--rot); }
.ring-mitte { font-size: 7px; font-weight: 700; fill: var(--text); }
.ring-legende { list-style: none; padding: 0; margin: 0; font-size: .8rem; color: var(--leise); }
.ring-legende i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; background: var(--offen); }
.ring-legende i.t-sich { background: var(--sich); } .ring-legende i.t-sonst { background: var(--grau); }
.ring-legende i.t-frei { background: var(--offen); border: 1px solid var(--linie); }
.chips { line-height: 2; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; text-decoration: none; padding: 1px 7px; border-radius: 12px; border: 1px solid var(--linie); background: var(--grund); color: var(--text); white-space: nowrap; }
.chip.grau { color: var(--leise); }
.chip em { margin-left: 2px; }
.tabelle-rahmen { overflow-x: auto; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: .86rem; }
th, td { padding: 7px 8px; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: top; }
thead th { font-size: .78rem; color: var(--leise); font-weight: 600; white-space: nowrap; }
tbody th { font-weight: 400; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
td.zahl { text-align: right; white-space: nowrap; }
td.mitte, .matrix thead th:nth-child(n+3) { text-align: center; }
.matrix td.mitte a { text-decoration: none; }
tr.nebenzeile td { padding-top: 0; }
.matrix tr:has(+ tr.nebenzeile) th, .matrix tr:has(+ tr.nebenzeile) td { border-bottom: 0; }
.inhalte { list-style: none; padding: 0; margin: 0; }
.inhalte li { padding: 8px 0; border-bottom: 1px solid var(--linie); }
.inhalte li:last-child { border-bottom: 0; }
.monate { display: block; width: 100%; height: 50px; fill: var(--sich); margin-top: 4px; }
.monatsnamen { font-size: .72rem; }
.auswahl { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.auswahl select { flex: 1 1 200px; }
.erklaerung { margin-top: 12px; padding: 10px; border-radius: 8px; background: var(--grund); }
.erklaerung h3 { margin-bottom: 4px; }
.erklaerung dl { grid-template-columns: 1fr; gap: 0; }
.erklaerung dt { margin-top: 6px; font-size: .78rem; }
button.start { background: var(--sich); color: #fff; }
.zwischen { font-size: .85rem; color: var(--leise); margin: 14px 0 0; font-weight: 600; }
.fuss { margin-top: 24px; }
.weg { white-space: nowrap; }
@media (max-width: 520px) {
  .ziel { flex-wrap: wrap; }
  .ziel > div { flex-basis: 100%; }
  .ziel .ring { width: 64px; height: 64px; }
  .reiter a { padding: 6px 9px; }
  table { font-size: .8rem; }
  th, td { padding: 6px 6px; }
  .nur-breit { display: none; }
}

/* 1.5: Erklaerung erscheint sofort nach der Auswahl (CSS :has, kein JavaScript). Ohne :has: Knopf und ?auftrag= */
.erklaerungen > .erklaerung { display: none; }
@supports not selector(:has(*)) { .erklaerungen > .gewaehlt { display: block; } }
@supports selector(:has(*)) { .nur-ohne-has { display: none; } }
.auftraege:has(option:nth-child(2):checked) .erklaerungen > :nth-child(1),
.auftraege:has(option:nth-child(3):checked) .erklaerungen > :nth-child(2),
.auftraege:has(option:nth-child(4):checked) .erklaerungen > :nth-child(3),
.auftraege:has(option:nth-child(5):checked) .erklaerungen > :nth-child(4),
.auftraege:has(option:nth-child(6):checked) .erklaerungen > :nth-child(5),
.auftraege:has(option:nth-child(7):checked) .erklaerungen > :nth-child(6),
.auftraege:has(option:nth-child(8):checked) .erklaerungen > :nth-child(7),
.auftraege:has(option:nth-child(9):checked) .erklaerungen > :nth-child(8),
.auftraege:has(option:nth-child(10):checked) .erklaerungen > :nth-child(9),
.auftraege:has(option:nth-child(11):checked) .erklaerungen > :nth-child(10),
.auftraege:has(option:nth-child(12):checked) .erklaerungen > :nth-child(11),
.auftraege:has(option:nth-child(13):checked) .erklaerungen > :nth-child(12),
.auftraege:has(option:nth-child(14):checked) .erklaerungen > :nth-child(13),
.auftraege:has(option:nth-child(15):checked) .erklaerungen > :nth-child(14),
.auftraege:has(option:nth-child(16):checked) .erklaerungen > :nth-child(15) { display: block; }
.wartung-formular { align-items: flex-end; }
.beschriftet { display: flex; flex-direction: column; gap: 2px; font-size: .75rem; color: var(--leise); }
.beschriftet.notiz { flex: 1 1 140px; min-width: 0; }
.beschriftet.notiz input { width: 100%; }
.karte.geplant { border-style: dashed; opacity: .8; }
.beschriftet input, .beschriftet select { flex: none; }
.beschriftet.notiz { flex: 1 1 220px; }
.haken { display: flex; gap: 6px; align-items: center; font-size: .85rem; }
.auffaellig { color: var(--text); }
/* 1.8: Aufschluesselung je Lauf */
.analyse { margin: 10px 0; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--linie); background: var(--flaeche); }
.analyse h3 { margin: 0 0 6px; font-size: 1rem; } .analyse h4 { margin: 10px 0 4px; font-size: .9rem; }
.analyse .status { margin: 6px 0; }
ul.balken, ul.dateien { list-style: none; padding: 0; margin: 0; }
ul.balken li { margin: 3px 0; word-break: break-word; } ul.balken meter { width: 90px; vertical-align: middle; }
ul.dateien li { margin: 6px 0; } ul.dateien code { word-break: break-all; font-size: .85rem; }
form.knopfzeile { margin: 8px 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
form.knopfzeile label { display: flex; gap: 6px; align-items: center; flex: 1 1 220px; }
form.knopfzeile input[name="grund"] { flex: 1; min-width: 0; }
.status.grau { background: var(--flaeche); }

/* ab 2.3: Übertragen-Kacheln, Rücksicherung geprüft, Suche in Schritten */
h2.ohne-rand { margin-top: 0; }
.kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 480px) { .kacheln { grid-template-columns: 1fr; } }
.kachel { display: flex; flex-direction: column; gap: 1px; text-decoration: none; padding: 10px; border: 1px solid var(--linie); border-radius: 8px; background: var(--grund); }
.kachel:hover, .kachel:focus { border-color: var(--leise); }
.kachel-titel { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--leise); }
.kachel-zahl { font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.grau-text { opacity: .8; }
ul.bestaende { list-style: none; padding: 0; margin: 0; }
ul.bestaende > li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--linie); }
ul.bestaende > li:first-child { border-top: 0; padding-top: 0; }
.pillen { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.pille { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border: 1px solid var(--linie); border-radius: 999px; font-size: .85rem; text-decoration: none; background: var(--grund); }
.pille .klein { margin: 0; }
ol.schritte { margin: 6px 0 10px; padding-left: 20px; }
ol.schritte li { margin: 3px 0; }
ul.fassungen > li { padding: 8px 0; border-top: 1px solid var(--linie); }
details.zurueckholen { margin-top: 6px; }
details.zurueckholen > summary { display: inline-block; cursor: pointer; padding: 6px 10px; border: 1px solid var(--linie); border-radius: 8px; font-size: .88rem; background: var(--grund); list-style: none; }
details.zurueckholen > summary::-webkit-details-marker { display: none; }
details.zurueckholen[open] > summary { margin-bottom: 6px; }
.neu-marke { color: var(--gruen); font-size: .85rem; }
ul.spalten { columns: 2 220px; }
.reiter-klein { margin: 8px 0; }
.reiter-klein a, .reiter-klein b { margin-right: 10px; }
/* 2.4: Haeuser */
.haeuser-streifen { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.haus-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 16px; font-size: .88rem; text-decoration: none; color: var(--text); background: var(--flaeche); border: 1px solid var(--linie); }
.haus-chip.gelb { background: var(--gelb-hg); border-color: transparent; }
.haus-chip.rot { background: var(--rot-hg); border-color: transparent; }
.haus-chip b { font-variant-numeric: tabular-nums; }
.haus h3 { margin: 0 0 6px; font-size: 1rem; }
.fuehler { list-style: none; padding: 0; margin: 8px 0 4px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.fuehler li { padding: 6px 8px; border: 1px solid var(--linie); border-radius: 8px; font-size: .92rem; }
.fuehler li.aussen { color: var(--leise); }
.f-temp { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.kurve { display: block; width: 100%; height: 90px; margin-top: 10px; background: var(--grund); border-radius: 6px; }
.kurve line, .kurve polyline { fill: none; vector-effect: non-scaling-stroke; }
.kurve .k-tag { stroke: var(--linie); stroke-width: 1; }
.kurve .k-gelb { stroke: var(--gelb); stroke-width: 1; stroke-dasharray: 4 3; }
.kurve .k-rot { stroke: var(--rot); stroke-width: 1; stroke-dasharray: 4 3; }
.kurve .k-innen { stroke: var(--text); stroke-width: 2; }
.kurve .k-aussen { stroke: var(--leise); stroke-width: 1.2; stroke-dasharray: 2 3; }
.kurve-legende { font-size: .75rem; }
.haus-wartung { margin-top: 8px; }
.haus-wartung > summary { font-size: .85rem; color: var(--leise); cursor: pointer; }
.fuehler li .klein { white-space: nowrap; }

/* 1.1: vier quadratische Kacheln, am Handy 2 x 2, breit 4 nebeneinander */
.haus-kacheln { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0 6px; }
@media (min-width: 720px) { .haus-kacheln { grid-template-columns: repeat(4, 1fr); } }
.haus-kachel { aspect-ratio: 1 / 1; display: flex; flex-direction: column; justify-content: space-between; padding: 12px; border-radius: 14px;
  text-decoration: none; color: var(--text); background: var(--flaeche); border: 1px solid var(--linie); min-width: 0; }
.haus-kachel.gruen { background: var(--gruen-hg); border-color: transparent; }
.haus-kachel.gelb { background: var(--gelb-hg); border-color: transparent; }
.haus-kachel.rot { background: var(--rot-hg); border-color: var(--rot); }
.hk-name { font-weight: 600; font-size: .95rem; }
.hk-temp { font-size: 2.1rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.hk-info { font-size: .78rem; color: var(--leise); overflow: hidden; text-overflow: ellipsis; }

/* 1.2: frischer, satte Farben (Peter, 10.11.2026: stechend gelb, sattes Gruen) */
:root { --w-gruen: #00c853; --w-gruen-dunkel: #00873a; --w-gelb: #ffc400; --w-rot: #ff1744; --w-text-hell: #ffffff; --w-text-dunkel: #1a1300; }
body { font-feature-settings: "tnum" 1; }
.gesamt { border-radius: 18px; padding: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.gesamt.gruen { background: var(--w-gruen); color: var(--w-text-hell); }
.gesamt.gelb { background: var(--w-gelb); color: var(--w-text-dunkel); }
.gesamt.rot { background: var(--w-rot); color: var(--w-text-hell); }
.gesamt.gruen .klein, .gesamt.rot .klein { color: rgba(255,255,255,.85); }
.gesamt.gelb .klein { color: rgba(26,19,0,.75); }
.gesamt .punkt { background: rgba(255,255,255,.25); }
.gesamt.gelb .punkt { background: rgba(26,19,0,.15); color: var(--w-text-dunkel); }
.punkt.gruen, .gruen.punkt { background: var(--w-gruen); }
.punkt.gelb, .gelb.punkt { background: var(--w-gelb); color: var(--w-text-dunkel); }
.punkt.rot, .rot.punkt { background: var(--w-rot); }
.haus-kachel { border-radius: 20px; padding: 14px; box-shadow: 0 3px 14px rgba(0,0,0,.08); transition: transform .12s ease; }
.haus-kachel:active { transform: scale(.98); }
.haus-kachel.gruen { background: linear-gradient(145deg, #00e676, var(--w-gruen) 55%, var(--w-gruen-dunkel)); color: var(--w-text-hell); border: 0; }
.haus-kachel.gelb { background: linear-gradient(145deg, #ffe000, var(--w-gelb)); color: var(--w-text-dunkel); border: 0; }
.haus-kachel.rot { background: linear-gradient(145deg, #ff5252, var(--w-rot)); color: var(--w-text-hell); border: 0; }
.haus-kachel.gruen .hk-info, .haus-kachel.rot .hk-info { color: rgba(255,255,255,.9); }
.haus-kachel.gelb .hk-info { color: rgba(26,19,0,.8); }
.haus-kachel .punkt { display: none; }
.hk-temp { font-size: 2.6rem; letter-spacing: -.02em; }
.probleme li { border-radius: 14px; }

/* Wetter */
.wetter-reihe { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 900px) { .wetter-reihe { grid-template-columns: 1fr 1fr; } }
.wetter-karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 20px; padding: 14px; box-shadow: 0 3px 14px rgba(0,0,0,.05); }
.wk-kopf { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.wk-emoji { font-size: 3rem; line-height: 1; }
.wk-temp { font-size: 3rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.wk-text { font-size: .9rem; line-height: 1.35; }
.wk-stunden { margin-top: 10px; }
.stunden-linie { display: block; width: 100%; height: 60px; overflow: visible; }
.stunden-linie polyline { fill: none; stroke: #ffab00; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.stunden-linie text { font-size: 4.2px; fill: var(--text); text-anchor: middle; }
.wk-std-reihe { display: flex; justify-content: space-between; font-size: .78rem; }
.wk-std-reihe span { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.wk-std-reihe i { font-style: normal; color: #1e88e5; font-size: .7rem; min-height: .9em; }
.wk-tage { list-style: none; padding: 0; margin: 12px 0 0; }
.wk-tage li { display: grid; grid-template-columns: 3.2em 2em 2.8em 2.6em 1fr 2.6em; align-items: center; gap: 6px; padding: 5px 0; border-top: 1px solid var(--linie); font-size: .92rem; }
.wt-emo { font-size: 1.25rem; text-align: center; }
.wt-regen { color: #1e88e5; font-size: .75rem; }
.wt-min { color: var(--leise); text-align: right; }
.wt-max { font-weight: 600; }
.spanne { width: 100%; height: 8px; }
.spanne .sp-bahn { fill: var(--linie); }
.spanne .sp-wert { fill: #ffab00; }
.tabelle { width: 100%; border-collapse: collapse; font-size: .85rem; }
.tabelle th, .tabelle td { padding: 5px 4px; border-bottom: 1px solid var(--linie); text-align: right; }
.tabelle th:first-child, .tabelle td:first-child { text-align: left; }
.tabelle tr.laufend td { font-weight: 700; }
.winter-urteil { font-size: 1.05rem; margin: 4px 0 10px; }
h4 { margin: 14px 0 4px; font-size: .9rem; }
.tabelle td, .tabelle th { white-space: nowrap; }

/* 1.3: Grafiken der Winter-Auswertung */
.grafik { display: block; width: 100%; height: auto; margin: 6px 0 2px; }
.grafik .g-raster { stroke: var(--linie); stroke-width: .6; }
.grafik .g-achse { font-size: 8px; fill: var(--leise); }
.grafik .g-wert { font-size: 7px; fill: var(--text); }
.grafik .g-name { font-size: 8px; font-weight: 700; }
.grafik polyline { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.g-lauf { stroke: #ff6d00; stroke-width: 3; }
.g-lauf-t { fill: #ff6d00; }
.g-schnitt-l { stroke: var(--text); stroke-width: 1.8; stroke-dasharray: 5 3; }
.g-schnitt-l-t { fill: var(--text); }
.g-alt { stroke: var(--grau); stroke-width: .8; opacity: .55; }
.g-schnitt { stroke: var(--text); stroke-width: 1.2; stroke-dasharray: 5 3; }
.g-b-lauf { fill: #ff6d00; } .g-b-schnitt { fill: #b0bec5; } .g-b-heiz { fill: #ff1744; }
.g-b-kalt { fill: #2979ff; } .g-b-mild { fill: #00c853; } .g-b-normal { fill: #90a4ae; }
.g-legende { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .75rem; color: var(--leise); margin: 0 0 8px; }
.g-legende span { display: inline-flex; align-items: center; gap: 4px; }
.g-legende i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; }
.g-lauf-l { background: #ff6d00; } .g-schnitt-l-l, .g-schnitt-l { background: transparent; }
.g-legende .g-schnitt-l-l, .g-legende .g-schnitt-l { border-top: 2px dashed var(--text); height: 0; }
.g-alt-l { background: var(--grau); } .g-b-lauf-l { background: #ff6d00; } .g-b-schnitt-l { background: #b0bec5; }
.g-b-heiz-l { background: #ff1744; } .g-b-kalt-l { background: #2979ff; } .g-b-mild-l { background: #00c853; } .g-b-normal-l { background: #90a4ae; }
.winter-urteil { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: baseline; padding: 12px 14px; border-radius: 16px; margin: 6px 0 10px; color: #fff; }
.winter-urteil .klein { grid-column: 1 / -1; color: rgba(255,255,255,.9); }
.winter-urteil.kalt { background: linear-gradient(135deg, #448aff, #2962ff); }
.winter-urteil.mild { background: linear-gradient(135deg, #00e676, #00a844); }
.winter-urteil.normal { background: linear-gradient(135deg, #90a4ae, #607d8b); }
.winter-urteil.grau { background: #90a4ae; }
.wu-wort { font-size: 1.3rem; font-weight: 700; }
.wu-zahl { font-size: 1.6rem; font-weight: 800; }
.winter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.winter-chip { padding: 7px 12px; border-radius: 16px; text-decoration: none; color: #fff; font-size: .88rem; }
.winter-chip.kalt { background: #2962ff; } .winter-chip.mild { background: #00a844; } .winter-chip.normal { background: #607d8b; } .winter-chip.grau { background: #90a4ae; }
.winter-chip span { font-weight: 800; margin-left: 4px; }
.winter h4 { margin-top: 18px; }

/* 1.4: Kachel mit außen, Nacht, Soll und Flamme */
.hk-mitte { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.hk-wetter { display: flex; flex-direction: column; align-items: flex-end; font-size: .78rem; line-height: 1.35; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hk-heiz { font-size: .8rem; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flamme { display: inline-block; }
.flamme.aus { filter: grayscale(1); opacity: .45; }
@media (max-width: 420px) { .hk-temp { font-size: 2rem; } .hk-wetter, .hk-heiz { font-size: .72rem; } .haus-kachel { padding: 11px; } }

/* 1.4: Verlauf eines Hauses */
.zr-wahl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 6px; }
.zr-wahl a { padding: 5px 11px; border-radius: 14px; background: var(--linie); color: var(--text); text-decoration: none; font-size: .85rem; }
.zr-wahl a.aktiv { background: #ff6d00; color: #fff; font-weight: 600; }
.zr-blaettern { margin-left: auto; display: flex; gap: 6px; }
.zeitgrafik { display: block; width: 100%; max-width: 760px; height: auto; }
.zeitgrafik polyline, .zeitgrafik path { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.zg-nacht { fill: #3949ab; opacity: .09; }
.zg-raster { stroke: var(--linie); stroke-width: .6; }
.zg-tag { stroke: var(--leise); stroke-width: .7; opacity: .6; }
.zg-achse { font-size: 10px; fill: var(--leise); }
.zg-datum { font-size: 10px; fill: var(--text); font-weight: 600; }
.zg-gelb { stroke: #ffc400; stroke-width: 1; stroke-dasharray: 4 3; }
.zg-rot { stroke: #ff1744; stroke-width: 1; stroke-dasharray: 4 3; }
.zg-streif-bahn { fill: var(--linie); opacity: .6; }
.zg-heiz { fill: #ff1744; } .zg-heiz.s1 { opacity: .35; } .zg-heiz.s2 { opacity: .65; } .zg-heiz.s3 { opacity: 1; }
.zg-soll { stroke: #d50000; stroke-width: 1.4; stroke-dasharray: 5 3; }
.zg-aussen { stroke: #2979ff; stroke-width: 1.4; }
.zg-raum { stroke: #ff6d00; stroke-width: 2.2; }
.zg-raum.r2 { stroke: #8e24aa; } .zg-raum.r3 { stroke: #00897b; } .zg-raum.r0 { stroke: #6d4c41; }
.zg-raum-l { background: #ff6d00; } .zg-aussen-l { background: #2979ff; } .zg-heiz-l { background: #ff1744; }
.g-legende .zg-soll-l { border-top: 2px dashed #d50000; height: 0; background: transparent; }
.g-legende .zg-nacht-l { background: #3949ab; opacity: .25; height: 10px; }
.zg-zahlen { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; margin: 4px 0 12px; }
.zg-zahlen div { background: var(--linie); border-radius: 10px; padding: 6px 9px; }
.zg-zahlen dt { font-size: .72rem; color: var(--leise); }
.zg-zahlen dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.alle-werte { margin: 6px 0 12px; }
.alle-werte summary { cursor: pointer; font-size: .9rem; }
.mond { font-size: 1.05em; font-weight: 700; }

/* 1.5: Steuern, Doku */
.doku-link { display: inline-flex; align-items: center; justify-content: center; min-width: 1.2em; height: 1.2em; padding: 0 .3em; border-radius: .6em; background: var(--linie); color: var(--leise); font-size: .72rem; font-weight: 700; text-decoration: none; vertical-align: middle; }
.rechts { text-align: right; }
.rechts .doku-link { font-weight: 500; }
.steuer-reihe { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.steuer-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px; padding: 8px 10px; border: 1px solid var(--linie); border-radius: 12px; background: var(--flaeche); }
.steuer-form .beschriftet.breit { flex: 1 1 260px; }
.steuer-form .beschriftet.breit input { width: 100%; }
.steuer-form input[type=number] { width: 5.5em; }
.haupt { background: #ff6d00; color: #fff; border: 0; }
.haken { display: inline-flex; align-items: center; gap: 5px; font-size: .88rem; }
.einstellungen-raum { margin: 8px 0; padding: 6px 10px; border: 1px solid var(--linie); border-radius: 12px; }
.einstellungen-raum summary { cursor: pointer; font-weight: 600; }
.geraet { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 10px; background: var(--offen); }
.zeitplan { display: block; width: 100%; max-width: 760px; height: auto; margin-top: 6px; }
.zp-aus { fill: #cfd8dc; } .zp-t0 { fill: #4fc3f7; } .zp-t1 { fill: #4dd0e1; } .zp-t2 { fill: #aed581; } .zp-t3 { fill: #ffd54f; } .zp-t4 { fill: #ffb74d; } .zp-t5, .zp-t6 { fill: #ff7043; }
.g-legende .zp-aus { background: #cfd8dc; } .g-legende .zp-t0 { background: #4fc3f7; } .g-legende .zp-t1 { background: #4dd0e1; } .g-legende .zp-t2 { background: #aed581; } .g-legende .zp-t3 { background: #ffd54f; } .g-legende .zp-t4 { background: #ffb74d; } .g-legende .zp-t5 { background: #ff7043; }
.zp-wert { font-size: 9px; fill: #263238; }
.befehle .b-fehler td { color: var(--rot); } .befehle .b-offen td, .befehle .b-gesendet td { color: var(--leise); }
.doku-inhalt ol { columns: 2; font-size: .9rem; }
.doku h3 { margin-top: 0; } .doku-anker { color: var(--grau); text-decoration: none; font-weight: 400; }
.doku code { font-size: .85em; word-break: break-word; }
.code-link { text-decoration: none; }

/* 1.6: Kachel mit Knopf "jetzt neu abholen" */
.haus-kachel { position: relative; padding: 0; }
.hk-link { display: flex; flex-direction: column; justify-content: space-between; height: 100%; padding: 14px; color: inherit; text-decoration: none; box-sizing: border-box; }
@media (max-width: 420px) { .hk-link { padding: 11px; } }
.hk-neu-form { position: absolute; top: 8px; right: 8px; margin: 0; z-index: 1; }
.hk-neu { width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.28); color: inherit; font-size: 1.15rem; line-height: 32px; cursor: pointer; }
.haus-kachel.gelb .hk-neu { background: rgba(0,0,0,.08); }
.hk-neu:active { transform: scale(.92); }
.hk-neu.laeuft { animation: hk-dreh 1.4s linear infinite; }
@keyframes hk-dreh { to { transform: rotate(360deg); } }
.hk-name { padding-right: 34px; }
.hk-temp { white-space: nowrap; }
