/* Hub - Startseite (home.js, DESIGN.md Abschnitt 5, FEATURES2.md Abschnitt C). Nur ansichtsspezifisches CSS:
   Tokens und h-Bausteine (h-panel, h-head, h-ring, h-chip, h-dot, h-meter, h-skel, h-empty, h-app) kommen aus theme.css,
   das Raster (.g-grid, .g-item, Griffe, Platzhalter, Bearbeitungsrahmen) aus theme.css Abschnitt 13.
   Aufbau: .hb (Brett, Profilklasse p-desktop|p-tablet|p-phone, .editing) > .hb-bar (Knopf "Anpassen" bzw. klebende
   Bearbeiten-Leiste) + .hb-grid (SD.grid) > .g-item > .g-body > section.hw.h-panel (Rahmen = Glas-Paneel)
   > .hw-edit (Kopfleiste im Bearbeitungsmodus) + .hw-box (Inhalt des Widgets: Flex-Spalte, scrollt bei Bedarf).
   Groessenklassen am Rahmen (aus home.js): w-lt240 … w-lt1000 (schmaler als), h-lt160 … h-lt400 (niedriger als) -
   die kompakten Varianten haengen an der Groesse des Widgets, nicht an der Fensterbreite. Weitere Klassen aus home.js:
   .hb.hb-w1/.hb-w2 (Startseite schmaler als 1240/900 px: kurze Leiste), html.hb-resizing (Fenstergroesse aendert sich
   gerade: nichts gleitet).
   iOS 12: kein gap in Flexbox (Abstaende per margin), Grid-gap doppelt (grid-gap + gap),
   kein inset/clamp/min()/max()/aspect-ratio/:is; Animationen bei prefers-reduced-motion aus. */

/* ================================================================ Brett == */
.hb { position: relative; }
.hb-bar { position: relative; z-index: 28; margin: -8px 0 12px; }
.hb-in { display: flex; align-items: center; justify-content: flex-end; min-height: 44px; }
.hb:not(.editing) .hb-ed { display: none; }
.hb.editing .hb-edit { display: none; }

/* "Anpassen": ruhiger Glas-Knopf oben rechts */
.hb-edit { color: var(--t2); background: rgba(255,255,255,.04); }
.hb-edit > svg { color: #5eead4; }
.hb-btn > svg { width: 18px; height: 18px; margin-right: 8px; }
.hb-s { display: none; }

/* Bearbeitungsmodus: klebende Leiste unter der Kopfzeile */
.hb.editing .hb-bar {
  position: -webkit-sticky; position: sticky;
  top: 74px; top: calc(var(--topbar-h) + env(safe-area-inset-top) + 10px);
  margin: -8px 0 18px;
}
.hb.editing .hb-in {
  padding: 8px 8px 8px 12px; border-radius: 20px;
  background: rgba(9,13,24,.95);
  border: 1px solid rgba(94,234,212,.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 20px 44px -18px rgba(0,0,0,.95), 0 0 34px -12px rgba(94,234,212,.45);
  animation: h-pop .32s cubic-bezier(.2,.8,.2,1) both;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .hb.editing .hb-in { background: rgba(9,13,24,.76); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); }
}
.hb-info { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; }
.hb-info-ico {
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 40px; height: 40px; margin-right: 12px; border-radius: 13px;
  color: #5eead4; background: rgba(94,234,212,.1);
  box-shadow: inset 0 0 0 1px rgba(94,234,212,.36), 0 0 20px -6px rgba(94,234,212,.65);
}
.hb-info-txt { display: flex; flex-direction: column; flex: 0 1 auto; min-width: 0; }
.hb-info-txt b { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--t1); white-space: nowrap; }
.hb-info-txt span { font-size: 13px; line-height: 1.35; color: var(--t2); }
.hb-hint-t { display: none; }
@media (hover: none), (pointer: coarse) {
  .hb-hint-m { display: none; }
  .hb-hint-t { display: inline; }
}
.hb-prof { flex: 0 0 auto; margin-left: 14px; color: #99f6e4; background: rgba(94,234,212,.08); border-color: rgba(94,234,212,.3); cursor: help; }

/* "Gespeichert"-Anzeige */
.hb-save {
  display: inline-flex; align-items: center; flex: 0 0 auto; margin: 0 12px;
  font-size: 13px; font-weight: 600; color: var(--t3); white-space: nowrap; transition: opacity .5s;
}
.hb-save:empty { display: none; }
.hb-save > svg { flex: 0 0 auto; margin-right: 6px; }
.hb-save.saved { color: #6ee7b7; }
.hb-save.saved.out { opacity: 0; }
.hb-save.error { color: #fcd34d; }
.hb-spin {
  display: block; flex: 0 0 auto; width: 13px; height: 13px; margin-right: 7px; border-radius: 50%;
  border: 2px solid rgba(94,234,212,.25); border-top-color: #5eead4; animation: h-spin .8s linear infinite;
}

.hb-acts { display: flex; align-items: center; flex: 0 0 auto; }
.hb-acts > .h-btn + .h-btn { margin-left: 8px; }
.hb-add { position: relative; }
.hb-count {
  display: inline-block; min-width: 20px; height: 20px; margin-left: 8px; padding: 0 6px; border-radius: 10px;
  background: #5eead4; color: #05070d; font-size: 12px; font-weight: 800; line-height: 20px; text-align: center;
  box-shadow: 0 0 12px rgba(94,234,212,.6);
}
.hb-reset:disabled { opacity: .4; }

/* Menue "Widget hinzufuegen" (ausgeblendete Widgets) */
.hb-menu {
  position: absolute; top: 100%; right: 8px; z-index: 31;
  width: 300px; max-width: 92vw; margin-top: 8px; padding: 8px;
  border-radius: 18px; background: rgba(12,17,30,.98); border: 1px solid var(--edge-2);
  box-shadow: 0 26px 60px -18px rgba(0,0,0,.95), 0 0 30px -14px rgba(94,234,212,.4);
  animation: h-pop .22s cubic-bezier(.2,.8,.2,1) both;
}
.hb-menu-h { padding: 6px 10px 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--t3); }
.hb-mi {
  -webkit-appearance: none; appearance: none; display: flex; align-items: center; width: 100%; min-height: 50px; margin: 0;
  padding: 6px 12px 6px 7px; border: 0; border-radius: 12px; background: transparent;
  color: var(--t1); font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; touch-action: manipulation;
  transition: background-color .14s;
}
.hb-mi + .hb-mi { margin-top: 2px; }
.hb-mi-ico {
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 36px; height: 36px; margin-right: 12px;
  border-radius: 11px; color: #99f6e4; background: rgba(94,234,212,.1); box-shadow: inset 0 0 0 1px rgba(94,234,212,.3);
}
.hb-mi-txt { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-mi > svg:last-child { flex: 0 0 auto; margin-left: 10px; color: var(--t3); }
.hb-mi:focus { background: rgba(94,234,212,.1); }
.hb-mi:active { background: rgba(94,234,212,.16); }
.hb-menu-empty { display: flex; align-items: flex-start; margin: 0; padding: 10px; font-size: 14px; line-height: 1.5; color: var(--t2); }
.hb-menu-empty > svg { flex: 0 0 auto; margin: 2px 10px 0 0; color: #34d399; }

/* Alles ausgeblendet */
.hb-empty {
  display: flex; flex-direction: column; align-items: center; margin-bottom: 18px; padding: 44px 20px 40px;
  border-radius: 24px; border: 1.5px dashed rgba(255,255,255,.16); background: rgba(255,255,255,.02);
  text-align: center; color: var(--t2); font-size: 14.5px; line-height: 1.5;
}
.hb-empty-ico {
  display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 16px; border-radius: 50%;
  color: #5eead4; background: rgba(94,234,212,.08); box-shadow: inset 0 0 0 1px rgba(94,234,212,.3), 0 0 34px -8px rgba(94,234,212,.5);
}
.hb-empty b { font-size: 17px; color: var(--t1); }
.hb-empty .h-btn { margin-top: 18px; }
/* leeres Raster: die Ablagezeile aus grid.js braucht es hier nicht - der Hinweis oben erklaert alles */
.hb .hb-grid.g-empty { visibility: hidden; }

/* =============================================================== Rahmen == */
.hb-grid { --g-radius: 24px; }
/* waehrend sich die Fenstergroesse aendert (Klasse aus home.js, nur solange die Startseite steht): Widgets und
   Seiteninhalt folgen sofort - kein Gleiten wie beim Umsortieren bzw. Einklappen der Seitenleiste */
html.hb-resizing .hb-grid > .g-item, html.hb-resizing .shell-main { -webkit-transition: none !important; transition: none !important; }
.hw { position: relative; display: block; width: 100%; height: 100%; padding: 0; }
.hw-box {
  position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0;
  padding: 20px; border-radius: 23px; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.16) transparent;
}
.hw-box::-webkit-scrollbar { width: 6px; height: 6px; }
.hw-box::-webkit-scrollbar-track { background: transparent; }
.hw-box::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 6px; }
.hw-box > * { flex-shrink: 0; }
.w-lt240 > .hw-box { padding: 14px 12px; }
/* Widget mit eigenem Glas-Paneel: Rahmen nur noch Halter */
.hw.hw-bare { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hw-bare > .hw-box { padding: 0; overflow: visible; border-radius: 0; }
.hw-bare > .hw-box > .h-panel { flex: 1 1 auto; height: 100%; min-height: 0; overflow-x: hidden; overflow-y: auto; }
.hw-broken { flex: 1 1 auto; }

/* Einlauf beim Aufbau, Aufleuchten nach "Widget hinzufuegen" */
.hw-enter { animation: hm-in .7s cubic-bezier(.2,.8,.2,1) both; }
.hw.hw-new { animation: hw-new 1.8s cubic-bezier(.2,.8,.2,1); }

/* Bearbeitungsmodus: Kopfleiste (Ziehgriff, Titel, Ausblenden) ueber dem Kopf des Widgets, Inhalt abgedunkelt */
.hw-edit { display: none; }
.hb.editing .hw-edit {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; align-items: center; height: 50px; padding: 0 7px 0 3px;
  border-radius: 23px 23px 0 0; color: var(--t1);
  background: #0d1426;
  background: linear-gradient(180deg, #10182c, #0b111f);
  border-bottom: 1px solid rgba(94,234,212,.26);
  box-shadow: 0 12px 26px -16px rgba(0,0,0,.9);
}
.hb.editing .hw::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 2; pointer-events: none;
  border-radius: 23px; background: rgba(4,7,14,.36);
}
/* die eigene Titelzeile des Widgets liegt unter der Kopfleiste - ausblenden, damit nichts durchscheint; der Inhalt
   ist nur Vorschau: keine Scrollbalken */
.hb.editing .hw-box > .h-head:first-child, .hb.editing .hw-box > .h-panel:first-child > .h-head:first-child { visibility: hidden; }
.hb.editing .hw-box { overflow: hidden; }
/* gezogenes / in der Groesse veraendertes Widget: fast deckendes Glas - sonst schimmern Platzhalter und
   Spalten-Hilfslinien durch */
.hb-grid > .g-item.g-dragging .hw.h-panel, .hb-grid > .g-item.g-resizing .hw.h-panel { background: rgba(12,17,30,.94); }
/* Hero ohne Titelzeile: Inhalt unter die Kopfleiste ruecken (sonst laege der Gruss halb darunter). Die Hoehe bleibt
   im Bearbeitungsmodus gleich - darum ohne Gruss (die Kopfleiste nennt das Widget), und was dann noch nicht passt,
   laeuft unten weich aus statt hart abgeschnitten zu wirken */
.hb.editing .hm-hero > .hw-box {
  padding-top: 58px; padding-bottom: 12px;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 18px), rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 18px), rgba(0,0,0,0) 100%);
}
.hb.editing .hm-hero .hm-greet { display: none; }
/* Griff: 44 px Trefferflaeche - auf Touch beginnt nur hier das Ziehen sofort (sonst Festhalten, siehe grid.js) */
.hw-grip {
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; height: 44px; margin-right: 1px;
  border-radius: 12px; transition: background-color .16s;
}
.hw-grip:active { background: rgba(94,234,212,.14); }
.hw-ico { display: flex; flex: 0 0 auto; margin-right: 8px; color: #5eead4; }
.hw-name {
  flex: 1 1 auto; min-width: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hw-hide {
  -webkit-appearance: none; appearance: none; position: relative;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  height: 36px; margin: 0 0 0 8px; padding: 0 12px 0 10px; border-radius: 11px;
  border: 1px solid var(--edge-2); background: rgba(255,255,255,.06); color: var(--t2);
  font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; touch-action: manipulation;
  transition: color .16s, background-color .16s, border-color .16s;
}
.hw-hide::before { content: ""; position: absolute; top: -4px; bottom: -4px; left: -4px; right: -4px; }   /* 44 px Trefferflaeche */
.hw-hide > svg { flex: 0 0 auto; margin-right: 6px; }
.hw-hide:active { color: #fecdd3; background: rgba(251,113,133,.16); border-color: rgba(251,113,133,.5); }
.w-lt360 .hw-hide { width: 36px; padding: 0; }
.w-lt360 .hw-hide > span { display: none; }
.w-lt360 .hw-hide > svg { margin: 0; }
.w-lt240.hw .hw-ico { display: none; }
.h-lt160 .hw-edit { height: 44px; }

/* ========================================================= Gemeinsames == */
/* Titelpunkte je Kachel in eigener Akzentfarbe */
.hm-sys .h-title::before { background: #60a5fa; box-shadow: 0 0 8px rgba(96,165,250,.9), 0 0 2px #60a5fa; }
.hm-quick .h-title::before { background: #fbbf24; box-shadow: 0 0 8px rgba(251,191,36,.9), 0 0 2px #fbbf24; }
.hm-energy .h-title::before { background: #34d399; box-shadow: 0 0 8px rgba(52,211,153,.9), 0 0 2px #34d399; }
.hm-shop .h-title::before { background: #f472b6; box-shadow: 0 0 8px rgba(244,114,182,.9), 0 0 2px #f472b6; }
.hm-apps .h-title::before { background: #a78bfa; box-shadow: 0 0 8px rgba(167,139,250,.9), 0 0 2px #a78bfa; }
.hw .h-link > span + svg { margin-left: 4px; }
.hw .h-head > .h-link { min-height: 44px; margin-top: -7px; margin-bottom: -7px; }
.hw .h-head > .h-title { flex: 0 1 auto; min-width: 0; }
.hw .h-head > .h-title { flex-wrap: nowrap; white-space: nowrap; }   /* Titelpunkt nie allein in einer Zeile */
.w-lt240 .h-head > .h-link > span { display: none; }     /* schmal: nur der Pfeil */
.hm-claude.w-lt360 .h-head > .h-link > span { display: none; }   /* "Claude Hub öffnen" passt nicht neben den Titel */
.hm-more { min-height: 44px; line-height: 44px; }

.hm-sub-h, .hm-runs-head {
  display: flex; align-items: center; margin: 20px 0 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--t2);
}
.hm-skel-short { width: 46%; }
.hm-skel-mid { width: 72%; }

/* ================================================================= Hero === */
/* Zeile: Gruss/Uhr | Tagesbogen (ab 1000 px) | 2x2 Lage-Chips; gestapelt unter 680 px.
   Senkrecht mittig ueber auto-Raender (nicht align-items: center - sonst waere ein Ueberstand oben nicht scrollbar). */
.hm-hero > .hw-box { flex-direction: row; padding: 22px 30px; }
.hm-hero > .hw-box > .hm-hero-main, .hm-hero > .hw-box > .hm-arc, .hm-hero > .hw-box > .hm-stats { margin-top: auto; margin-bottom: auto; }
.hm-hero-bg {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; overflow: hidden;
  border-radius: 23px; pointer-events: none;
}
.hm-glow { position: absolute; display: block; border-radius: 50%; }
.hm-glow.g1 { width: 560px; height: 380px; left: -160px; top: -200px;
  background: radial-gradient(closest-side, rgba(94,234,212,.17), rgba(94,234,212,0)); }
.hm-glow.g2 { width: 620px; height: 400px; right: -180px; bottom: -250px;
  background: radial-gradient(closest-side, rgba(167,139,250,.18), rgba(167,139,250,0)); }
.hm-sheen {          /* langsamer Lichtstreif ueber das Glas */
  position: absolute; top: -20%; bottom: -20%; left: 0; width: 34%; display: block;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.05) 50%, rgba(255,255,255,0) 100%);
  transform: translate3d(-130%,0,0) skewX(-14deg);
  animation: hm-sheen 16s ease-in-out 1.5s infinite;
}
.hm-hero-main, .hm-arc, .hm-stats { position: relative; z-index: 1; }
.hm-hero-main { flex: 0 0 auto; }

.hm-greet { display: flex; align-items: baseline; flex-wrap: wrap; margin: 0; }
.hm-greet-txt { margin-right: 12px; font-size: 20px; font-weight: 650; letter-spacing: -.01em; color: var(--t1); }
.hm-device { min-width: 0; font-size: 13px; color: var(--t3); overflow-wrap: break-word; word-wrap: break-word; word-break: break-word; }
.hb.p-phone .hm-device { display: none; }       /* steht auf dem Handy schon in der Kopfzeile */

.hm-clock { display: flex; align-items: flex-start; margin: 8px 0 4px; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Leuchten auf einer Huelle um die Ziffern: nicht auf dem Verlaufstext selbst (alte WebKit verlieren sonst den Text)
   und nicht auf dem blinkenden Doppelpunkt (sonst Neuzeichnen je Bild) */
.hm-dig { display: block; -webkit-filter: drop-shadow(0 0 22px rgba(94,234,212,.26)); filter: drop-shadow(0 0 22px rgba(94,234,212,.26)); }
.hm-hh, .hm-mm, .hm-colon { font-size: 72px; font-weight: 200; letter-spacing: -.03em; color: var(--t1); }
.hm-hh { color: #f4fffd; }
.hm-mm { color: #b8f5ea; }
.hm-colon { position: relative; top: -.05em; margin: 0 .02em; color: #5eead4; animation: hm-colon 2s ease-in-out infinite; }
.hm-ss { min-width: 30px; margin: 9px 0 0 10px; font-size: 21px; font-weight: 500; color: #5eead4; letter-spacing: 0; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hm-hh {
    background: linear-gradient(120deg, #ffffff 15%, #c8fbf2 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  }
  .hm-mm {
    background: linear-gradient(120deg, #9ff3e3 0%, #5eead4 30%, #a78bfa 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  }
}
.hm-date { margin: 8px 0 0; font-size: 17px; color: var(--t2); }

/* Tagesbogen 0-24 Uhr (nur breite Hero-Kachel) */
.hm-arc { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; min-width: 0; margin: 0 20px; }
.hm-arc-svg { display: block; width: 100%; max-width: 340px; height: auto; overflow: visible; }
.hm-arc-done { filter: drop-shadow(0 0 4px rgba(94,234,212,.55)); }
.hm-arc-tick { fill: rgba(255,255,255,.35); }
.hm-arc-lab { fill: #8d97b3; font-size: 10.5px; font-weight: 600; }
.hm-arc-sun { fill: #ffffff; }
.hm-arc-svg.night .hm-arc-sun { fill: #e9e3ff; }

/* Lage-Chips rechts */
.hm-stats {
  flex: 0 1 auto; min-width: 0; display: grid; grid-template-columns: repeat(2, 212px);
  grid-gap: 12px; gap: 12px; margin-left: auto;
}
.hm-stat {
  position: relative; display: flex; align-items: center; min-width: 0; min-height: 66px; padding: 10px 14px 10px 12px;
  border-radius: 18px; border: 1px solid var(--edge); background: rgba(255,255,255,.045);
  box-shadow: inset 0 1px 0 var(--edge-hi); color: var(--t1); text-decoration: none;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), border-color .2s, background-color .2s, box-shadow .2s;
}
.hm-stat-ico {
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 40px; height: 40px; margin-right: 12px; border-radius: 13px;
  color: #c3cbe0; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--edge);
}
.hm-stat-txt { display: flex; flex-direction: column; min-width: 0; }
.hm-stat-txt b { font-size: 19px; font-weight: 650; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hm-stat-txt span { font-size: 12.5px; line-height: 1.35; color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-stat.ok .hm-stat-ico { color: #6ee7b7; background: rgba(52,211,153,.12); box-shadow: inset 0 0 0 1px rgba(52,211,153,.36), 0 0 20px -5px rgba(52,211,153,.6); }
.hm-stat.warn .hm-stat-ico { color: #fcd34d; background: rgba(251,191,36,.12); box-shadow: inset 0 0 0 1px rgba(251,191,36,.4), 0 0 20px -5px rgba(251,191,36,.6); }
.hm-stat.crit .hm-stat-ico { color: #fda4af; background: rgba(251,113,133,.12); box-shadow: inset 0 0 0 1px rgba(251,113,133,.42), 0 0 20px -5px rgba(251,113,133,.65); }
.hm-stat.warn { border-color: rgba(251,191,36,.28); }
.hm-stat.crit { border-color: rgba(251,113,133,.32); }
.hm-stat.lamp.on .hm-stat-ico { color: #fde68a; background: rgba(251,191,36,.14); box-shadow: inset 0 0 0 1px rgba(251,191,36,.42), 0 0 22px -4px rgba(251,191,36,.65); }
.hm-stat.power .hm-stat-ico { color: #67e8f9; background: rgba(34,211,238,.12); box-shadow: inset 0 0 0 1px rgba(34,211,238,.38), 0 0 20px -5px rgba(34,211,238,.6); }
.hm-stat:active { transform: scale(.98); }

/* schmalere Hero-Kachel: ohne Tagesbogen, Chips duerfen schrumpfen */
.hm-hero.w-lt1000 .hm-arc { display: none; }
.hm-hero.w-lt1000 .hm-hero-main { flex-shrink: 1; margin-right: 24px; }   /* darf bis auf die Uhr schrumpfen (Geraetename bricht um) - die Chips behalten ihre Texte */
.hm-hero.w-lt1000 .hm-stats { grid-template-columns: repeat(2, minmax(0, 200px)); }
/* knapp (z. B. iPad hochkant): Chips etwas schlanker, damit "Systeme online" ganz bleibt */
.hm-hero.w-lt800 .hm-stat { padding: 10px 10px 10px 10px; }
.hm-hero.w-lt800 .hm-stat-ico { width: 36px; height: 36px; margin-right: 10px; border-radius: 12px; }
/* gestapelt: Uhr oben, 2x2-Chips ueber die volle Breite */
.hm-hero.w-lt680 > .hw-box { flex-direction: column; padding: 20px 22px; }
.hm-hero.w-lt680 > .hw-box > .hm-hero-main { margin: auto 0 0; }
.hm-hero.w-lt680 > .hw-box > .hm-stats { margin: 18px 0 auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Handy-Groesse */
.hm-hero.w-lt480 > .hw-box { padding: 18px 16px 16px; }
.hm-hero.w-lt480 .hm-greet-txt { font-size: 18px; }
.hm-hero.w-lt480 .hm-hh, .hm-hero.w-lt480 .hm-mm, .hm-hero.w-lt480 .hm-colon { font-size: 62px; }
.hm-hero.w-lt480 .hm-ss { margin-top: 7px; font-size: 18px; }
.hm-hero.w-lt480 .hm-date { font-size: 15.5px; }
.hm-hero.w-lt480 > .hw-box > .hm-stats { grid-gap: 10px; gap: 10px; }
.hm-hero.w-lt480 .hm-stat { min-height: 58px; padding: 8px 10px; border-radius: 16px; }
.hm-hero.w-lt480 .hm-stat-ico { width: 34px; height: 34px; margin-right: 10px; border-radius: 11px; }
.hm-hero.w-lt480 .hm-stat-ico > svg { width: 18px; height: 18px; }
.hm-hero.w-lt480 .hm-stat-txt b { font-size: 16.5px; }
.hm-hero.w-lt480 .hm-stat-txt span { font-size: 12px; }
/* sehr schmal (kleines Handy, halbe Breite) */
.hm-hero.w-lt360 .hm-stat { padding: 8px; }
.hm-hero.w-lt360 .hm-stat-ico { width: 30px; height: 30px; margin-right: 8px; border-radius: 10px; }
.hm-hero.w-lt360 .hm-stat-ico > svg { width: 16px; height: 16px; }
.hm-hero.w-lt360 .hm-stat-txt b { font-size: 15.5px; }
.hm-hero.w-lt360 .hm-stat-txt span { font-size: 11.5px; white-space: normal; }     /* lieber zweizeilig als "Systeme …" */
.hm-hero.w-lt360 .hm-hh, .hm-hero.w-lt360 .hm-mm, .hm-hero.w-lt360 .hm-colon { font-size: 54px; }
.hm-hero.w-lt240 > .hw-box > .hm-stats { grid-template-columns: minmax(0, 1fr); }
.hm-hero.w-lt240 .hm-hh, .hm-hero.w-lt240 .hm-mm, .hm-hero.w-lt240 .hm-colon { font-size: 44px; }
.hm-hero.w-lt240 .hm-ss { display: none; }
/* niedrige Hero-Kachel: Uhr kleiner, Gruss weg */
.hm-hero.h-lt200 > .hw-box { padding-top: 14px; padding-bottom: 14px; }
.hm-hero.h-lt200 .hm-hh, .hm-hero.h-lt200 .hm-mm, .hm-hero.h-lt200 .hm-colon { font-size: 56px; }
.hm-hero.h-lt200 .hm-date { margin-top: 4px; font-size: 15px; }
.hm-hero.h-lt160 .hm-greet { display: none; }
/* niedriges Widget in Spaltenform (Lage-Chips unter der Uhr): erst nur eine Reihe Chips, ganz niedrig keine -
   sonst ragt die untere Reihe halb aus dem Widget (kleinste Groesse 3 x 3) */
.hm-hero.w-lt680.h-lt320 .hm-stat:nth-child(n+3) { display: none; }
.hm-hero.w-lt680.h-lt240 > .hw-box > .hm-stats { display: none; }
.hm-hero.h-lt160 .hm-stat { min-height: 52px; padding-top: 6px; padding-bottom: 6px; }

/* =============================================================== Claude === */
.hm-accs { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); grid-gap: 14px; gap: 14px; }
.hm-acc {
  position: relative; overflow: hidden; min-width: 0; padding: 16px 16px 14px; border-radius: 20px;
  background: rgba(255,255,255,.035); border: 1px solid var(--edge); box-shadow: inset 0 1px 0 var(--edge-hi);
}
.hm-acc::before {      /* Lichthof in der Kontofarbe */
  content: ""; position: absolute; top: -80px; left: -60px; width: 240px; height: 160px; border-radius: 50%;
  background: #ff8f6b; background: var(--acc, #ff8f6b); opacity: .14; pointer-events: none;
  -webkit-filter: blur(36px); filter: blur(36px);
}
.hm-acc::after {       /* Leuchtkante in der Kontofarbe */
  content: ""; position: absolute; top: 0; left: 18px; width: 38%; height: 1px; pointer-events: none;
  background: #ff8f6b; background: var(--acc, #ff8f6b); opacity: .75;
  box-shadow: 0 0 8px var(--acc, #ff8f6b);
}
.hm-acc > * { position: relative; }
.hm-acc.skel::before, .hm-acc.skel::after { display: none; }
.hm-acc-head { display: flex; align-items: center; min-height: 24px; }
.hm-acc-dot {
  flex: 0 0 auto; width: 10px; height: 10px; margin-right: 10px; border-radius: 50%;
  background: #ff8f6b; background: var(--acc, #ff8f6b);
  box-shadow: 0 0 0 3px rgba(255,255,255,.06), 0 0 12px var(--acc, #ff8f6b);
}
.hm-acc-name { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-plan { margin-left: 8px; }

.hm-rings { display: flex; justify-content: space-around; margin: 16px -4px 0; }
.hm-ringbox { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 0 4px; text-align: center; }
.hm-ring, .hm-ring-skel { width: 108px; height: 108px; }
/* Komet: Kopf des Ringbogens (Mittelpunkt der Spur r=52 im 120er-Raster = 6,67 % vom oberen Rand) */
.hm-comet {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none;
  -webkit-transform: rotate(0deg); transform: rotate(0deg);
  transition: transform 1.2s cubic-bezier(.2,.8,.2,1);
}
.hm-comet i {
  position: absolute; left: 50%; top: 6.67%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%;
  background: #ffffff; box-shadow: 0 0 5px 2px rgba(167,139,250,.85), 0 0 14px 4px rgba(94,234,212,.4);
}
.hm-comet.warning i { box-shadow: 0 0 5px 2px rgba(251,191,36,.9), 0 0 14px 4px rgba(251,191,36,.4); }
.hm-comet.critical i { box-shadow: 0 0 5px 2px rgba(251,113,133,.9), 0 0 14px 4px rgba(251,113,133,.4); }
.hm-comet.off { display: none; }
.hm-ring-skel { display: block; }
.hm-ring-pct { font-size: 26px; font-weight: 650; letter-spacing: -.02em; color: var(--t1); font-variant-numeric: tabular-nums; }
.hm-ring-pct small { margin-left: 1px; font-size: 13px; font-weight: 600; color: var(--t3); -webkit-text-fill-color: #8d97b3; }
.hm-ring-pct.none { font-weight: 400; color: var(--t3); }      /* noch keine Werte (Hub sammelt) */
.hm-ring-pct.warning { color: #fcd34d; }
.hm-ring-pct.critical { color: #fda4af; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hm-ring-pct.normal {
    background: linear-gradient(120deg, #ffffff 0%, #b6f6ea 55%, #c9b8ff 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  }
}
.hm-ring-lab { margin-top: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--t2); }
.hm-ring-reset { min-height: 18px; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: var(--t3); }
.hm-ringbox .h-skel.line { width: 70%; margin: 7px auto 0; }

.hm-models { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.hm-model { display: flex; align-items: center; min-height: 28px; font-size: 13px; }
.hm-model-name { flex: 0 0 auto; width: 70px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-model .h-meter { flex: 1 1 auto; margin: 0 10px; }
.hm-model-pct { flex: 0 0 auto; min-width: 42px; text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.hm-model.warning .hm-model-pct { color: #fcd34d; }
.hm-model.critical .hm-model-pct { color: #fda4af; }

.hm-acc-note {
  display: flex; align-items: center; margin-top: 12px; padding: 8px 11px; border-radius: 12px;
  font-size: 13px; line-height: 1.35; color: var(--t2); background: rgba(255,255,255,.04);
}
.hm-acc-note > svg, .hm-acc-note > .h-dot { flex: 0 0 auto; margin-right: 9px; }
.hm-acc-note.crit { color: #fecdd3; background: rgba(251,113,133,.1); box-shadow: inset 0 0 0 1px rgba(251,113,133,.3); }
.hm-acc-note.crit > svg { color: #fb7185; }
.hm-acc-note.warn { color: #fde68a; background: rgba(251,191,36,.08); box-shadow: inset 0 0 0 1px rgba(251,191,36,.26); }
.hm-acc-note.load { justify-content: center; margin-top: 10px; background: transparent; color: var(--t3); }
.hm-acc-empty { padding: 26px 10px 18px; font-size: 13.5px; }

/* Gerade aktiv */
.hm-runs-head { margin-top: 22px; }
.hm-runs-head .h-badge { margin-left: 10px; letter-spacing: .04em; }
/* Die Laufliste nimmt die freie Hoehe des Widgets - leer ein ruhiger, mittiger Zustand */
.hm-runs { flex: 1 0 auto; display: flex; flex-direction: column; margin-bottom: 18px; }
.hm-runs:empty { flex: 0 0 auto; }
.hm-run {
  position: relative; display: flex; align-items: center; padding: 12px 14px 12px 22px; border-radius: 16px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
}
.hm-run + .hm-run { margin-top: 8px; }
.hm-run::before {      /* Kontofarb-Streifen */
  content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px;
  background: #8d97b3; background: var(--acc, #8d97b3); box-shadow: 0 0 10px var(--acc, rgba(0,0,0,0));
}
.hm-run.skel::before { background: rgba(255,255,255,.1); box-shadow: none; }
.hm-run.skel .h-skel.line { margin: 6px 0; }
.hm-run.wait { background: rgba(251,191,36,.045); border-color: rgba(251,191,36,.22); }
.hm-run.pause { background: rgba(96,165,250,.04); border-color: rgba(96,165,250,.16); }
.hm-run-l { flex: 1 1 auto; min-width: 0; }
.hm-run-r { display: flex; flex-direction: column; align-items: flex-end; flex: 0 0 auto; min-width: 0; max-width: 44%; margin-left: 14px; text-align: right; }
.hm-run-title { font-size: 15px; font-weight: 600; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Unterzeile: wird es eng, kuerzt zuerst der Ordner, dann das Konto - Modell und "seit …" bleiben stehen */
.hm-run-sub { display: flex; margin-top: 2px; font-size: 12.5px; color: var(--t3); white-space: nowrap; overflow: hidden; }
.hm-run-sub > span { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hm-run-sub > .hm-run-dir { flex-shrink: 8; }
.hm-run-sub > .hm-run-model, .hm-run-sub > .hm-run-when { flex-shrink: 0; }
.hm-run-time { color: var(--t2); font-variant-numeric: tabular-nums; }
.hm-st { flex: 0 0 auto; max-width: 100%; height: 28px; padding: 0 11px; font-size: 12.5px; }
.hm-st > span:not(.hm-typing):not(.h-dot) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-st > svg { width: 15px; height: 15px; margin-right: 6px; }
.hm-st.work, .hm-st.write { color: #99f6e4; background: rgba(94,234,212,.1); border-color: rgba(94,234,212,.4); box-shadow: 0 0 18px -8px rgba(94,234,212,.8); }
.hm-st.think { color: #ddd6fe; background: rgba(167,139,250,.12); border-color: rgba(167,139,250,.44); box-shadow: 0 0 18px -8px rgba(167,139,250,.8); }
.hm-st.wait { position: relative; color: #fde68a; background: rgba(251,191,36,.11); border-color: rgba(251,191,36,.46); }
.hm-st.wait::after {   /* pulsierender Schein: nur Deckkraft (laeuft im Compositor) */
  content: ""; position: absolute; top: -1px; left: -1px; right: -1px; bottom: -1px; border-radius: 999px; pointer-events: none;
  box-shadow: 0 0 18px -2px rgba(251,191,36,.6); opacity: 0;
  animation: hm-wait 2.2s ease-in-out infinite;
}
.hm-st.idle { color: var(--t2); }
.hm-st.pause { color: #bfdbfe; background: rgba(96,165,250,.1); border-color: rgba(96,165,250,.4); }
.h-dot.think { background: #a78bfa; color: #a78bfa; box-shadow: 0 0 8px rgba(167,139,250,.75); }
/* Freigabe-Titel u. a.: hoechstens zwei Zeilen (statt einer langen, die der linken Seite den Platz nimmt) */
.hm-run-detail {
  display: block; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-width: 100%; margin-top: 5px;
  font-size: 12.5px; line-height: 1.35; color: var(--t2); overflow: hidden; overflow-wrap: break-word; word-wrap: break-word;
}
.hm-runs-more { margin: 10px 0 0; font-size: 12.5px; color: var(--t3); text-align: center; }
.hm-typing { display: inline-flex; align-items: center; margin-left: 5px; }
.hm-typing i { display: block; width: 4px; height: 4px; margin-left: 2px; border-radius: 50%; background: currentColor; animation: hm-typing 1.2s ease-in-out infinite; }
.hm-typing i:nth-child(2) { animation-delay: .15s; }
.hm-typing i:nth-child(3) { animation-delay: .3s; }

.hm-calm {
  display: flex; align-items: center; padding: 14px 16px; border-radius: 16px;
  background: rgba(52,211,153,.06); border: 1px dashed rgba(52,211,153,.32); color: #a7f3d0; font-size: 14px;
}
.hm-calm > svg, .hm-calm-ico { flex: 0 0 auto; margin-right: 11px; color: #34d399; }
.hm-calm-ico { display: flex; align-items: center; justify-content: center; }
/* "Gerade laeuft nichts" fuellt die freie Hoehe als ruhiger Entwarnungs-Zustand (Kreis mit langsamer Umlaufbahn) */
.hm-runs > .hm-calm {
  flex: 1 0 auto; flex-direction: column; justify-content: center; min-height: 116px; padding: 24px 16px;
  text-align: center; line-height: 1.45; border-style: solid; border-color: rgba(52,211,153,.14);
  background: rgba(52,211,153,.03);
  background: radial-gradient(ellipse at 50% 40%, rgba(52,211,153,.1), rgba(52,211,153,0) 62%), rgba(255,255,255,.012);
}
.hm-runs > .hm-calm .hm-calm-ico {
  position: relative; width: 64px; height: 64px; margin: 0 0 18px; border-radius: 50%;
  background: rgba(52,211,153,.08); box-shadow: inset 0 0 0 1px rgba(52,211,153,.32), 0 0 36px -8px rgba(52,211,153,.55);
}
.hm-runs > .hm-calm .hm-calm-ico::after {
  content: ""; position: absolute; top: -10px; left: -10px; right: -10px; bottom: -10px; border-radius: 50%;
  border: 1px dashed rgba(52,211,153,.28); animation: h-spin 60s linear infinite;
}
.hm-runs > .hm-calm .hm-calm-ico > svg { width: 28px; height: 28px; -webkit-filter: drop-shadow(0 0 6px rgba(52,211,153,.6)); filter: drop-shadow(0 0 6px rgba(52,211,153,.6)); }
.hm-cl-body.is-err { display: flex; flex: 1 0 auto; align-items: center; justify-content: center; margin-bottom: 18px; }
.hm-cl-err {
  display: flex; flex-direction: column; align-items: center; max-width: 420px; padding: 28px 20px; text-align: center;
}
.hm-cl-err-ico {
  position: relative; display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 76px; height: 76px; margin-bottom: 18px; border-radius: 50%;
  color: #ffb59c; background: rgba(255,143,107,.08); box-shadow: inset 0 0 0 1px rgba(255,143,107,.3), 0 0 40px -10px rgba(255,143,107,.55);
}
.hm-cl-err-ico::after {     /* gestrichelte Umlaufbahn */
  content: ""; position: absolute; top: -12px; left: -12px; right: -12px; bottom: -12px; border-radius: 50%;
  border: 1px dashed rgba(255,143,107,.35);
  animation: h-spin 40s linear infinite;
}
.hm-cl-err b { display: block; font-size: 16px; font-weight: 650; color: var(--t1); }
.hm-cl-err-txt { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--t3); }

.hm-foot {
  display: flex; align-items: flex-start; margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line-soft);
  font-size: 12.5px; line-height: 1.5; color: var(--t3);
}
.hm-foot > svg { flex: 0 0 auto; margin: 2px 9px 0 0; }

/* mittelbreit (z. B. 7 von 12 Spalten neben der Seitenleiste): Konten weiter nebeneinander, Ringe etwas kleiner */
.hm-claude.w-lt680 .hm-accs { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hm-claude.w-lt680 .hm-acc { padding: 14px 14px 12px; }
.hm-claude.w-lt680 .hm-ring, .hm-claude.w-lt680 .hm-ring-skel { width: 94px; height: 94px; }
.hm-claude.w-lt680 .hm-ring-pct { font-size: 22px; }
.hm-claude.w-lt680 .hm-ring-reset { font-size: 12px; line-height: 1.35; }
.hm-claude.w-lt480 .hm-accs { grid-template-columns: minmax(0, 1fr); }
/* schmales Claude-Widget (Handy): kompaktere Karten, Laeufe untereinander (Titel einzeilig, Status mit Detail
   in einer Zeile darunter) - zwei Konten und vier Chats passen so in die groesste Hoehe (24 Zeilen) */
.hm-claude.w-lt480 .hm-acc { padding: 12px 12px 8px; }
.hm-claude.w-lt480 .hm-rings { margin-top: 10px; }
.hm-claude.w-lt480 .hm-ring, .hm-claude.w-lt480 .hm-ring-skel { width: 82px; height: 82px; }
.hm-claude.w-lt480 .hm-ring-pct { font-size: 20px; }
.hm-claude.w-lt480 .hm-ring-pct small { font-size: 12px; }
.hm-claude.w-lt480 .hm-ring-lab { margin-top: 7px; font-size: 11px; }
.hm-claude.w-lt480 .hm-ring-reset { margin-top: 2px; font-size: 12px; line-height: 1.35; }
/* Modell-Balken paarweise nebeneinander */
.hm-claude.w-lt480 .hm-models { display: flex; flex-wrap: wrap; margin: 6px -6px 0; padding-top: 4px; }
.hm-claude.w-lt480 .hm-model { flex: 1 1 130px; min-width: 0; min-height: 26px; margin: 0 6px; font-size: 12.5px; }
.hm-claude.w-lt480 .hm-model-name { width: auto; max-width: 64px; }
.hm-claude.w-lt480 .hm-model .h-meter { min-width: 24px; margin: 0 7px; }
.hm-claude.w-lt480 .hm-model-pct { min-width: 34px; }
.hm-claude.w-lt480 .hm-acc-note { margin-top: 8px; padding: 6px 10px; }
.hm-claude.w-lt480 .hm-runs-head { margin-top: 14px; }
.hm-claude.w-lt480 .hm-runs { margin-bottom: 12px; }
.hm-claude.w-lt480 .hm-run { display: block; padding: 9px 12px 9px 20px; }
.hm-claude.w-lt480 .hm-run + .hm-run { margin-top: 6px; }
.hm-claude.w-lt480 .hm-run::before { top: 9px; bottom: 9px; }
.hm-claude.w-lt480 .hm-run-sub { display: block; white-space: normal; overflow-wrap: break-word; word-wrap: break-word; }
.hm-claude.w-lt480 .hm-run-sub > span { overflow: visible; }
.hm-claude.w-lt480 .hm-run-dir:not(:first-child) { display: none; }      /* Ordner: Nebensache, kostet eine Zeile */
.hm-claude.w-lt480 .hm-run-r {
  flex-direction: row; flex-wrap: wrap; align-items: center; max-width: none; margin: 7px 0 0; text-align: left;
}
.hm-claude.w-lt480 .hm-run-r > .hm-st { margin-right: 10px; }
.hm-claude.w-lt480 .hm-run-detail {
  flex: 1 1 auto; min-width: 0; margin: 3px 0; white-space: normal; overflow-wrap: break-word; word-wrap: break-word;
}
.hm-claude.w-lt480 .hm-foot { padding-top: 10px; font-size: 11.5px; line-height: 1.45; }
.hm-claude.w-lt480 .hm-cl-err { padding: 16px; }
.hm-claude.w-lt480 .hm-runs > .hm-calm { min-height: 0; padding: 20px 14px; }
.hm-claude.w-lt480 .hm-runs > .hm-calm .hm-calm-ico { width: 52px; height: 52px; margin-bottom: 15px; }
.hm-claude.w-lt480 .hm-runs > .hm-calm .hm-calm-ico::after { top: -7px; left: -7px; right: -7px; bottom: -7px; }
.hm-claude.w-lt480 .hm-runs > .hm-calm .hm-calm-ico > svg { width: 24px; height: 24px; }
.hm-claude.w-lt480 .hm-cl-err-ico { width: 62px; height: 62px; margin-bottom: 16px; }
.hm-claude.w-lt360 .hm-ring, .hm-claude.w-lt360 .hm-ring-skel { width: 78px; height: 78px; }
.hm-claude.w-lt360 .hm-ring-pct { font-size: 19px; }
.hm-claude.w-lt360 .hm-ring-reset { font-size: 11.5px; }
.hm-claude.w-lt360 .hm-sub-h, .hm-claude.w-lt360 .hm-runs-head { font-size: 11.5px; letter-spacing: .07em; }
.hm-claude.w-lt240 .hm-rings { display: block; }
.hm-claude.w-lt240 .hm-ringbox + .hm-ringbox { margin-top: 12px; }

/* =============================================================== System === */
.hm-sys-top { display: flex; align-items: center; min-height: 140px; }
.hm-sys-ring { width: 140px; height: 140px; margin-right: 24px; }
.hm-sys-skel { display: block; flex: 0 0 auto; width: 140px; height: 140px; margin-right: 24px; }
.hm-sys-big { font-size: 34px; font-weight: 300; letter-spacing: -.02em; color: var(--t1); font-variant-numeric: tabular-nums; }
.hm-sys-big small { font-size: 17px; font-weight: 500; color: var(--t3); }
.hm-sys-lab { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--t3); }
.hm-sys-nums { flex: 1 1 auto; min-width: 0; }
.hm-sys-nums .h-skel.line { margin: 14px 0; }
.hm-sys-n { display: flex; align-items: center; min-height: 31px; font-size: 14px; color: var(--t2); }
.hm-sys-n b { min-width: 28px; margin: 0 9px 0 12px; font-size: 21px; font-weight: 650; text-align: right; color: var(--t1); font-variant-numeric: tabular-nums; }
.hm-sys-n.zero b { color: var(--t3); }
.hm-sys-n.zero .h-dot { background: #64708c; color: #64708c; box-shadow: none; }
.hm-sys-src { margin-top: 6px; font-size: 12px; color: var(--t3); }
.hm-sys-err { flex: 1 1 auto; }
.hm-avail { display: flex; align-items: flex-end; height: 34px; }
.hm-avail i {
  display: block; flex: 1 1 0; min-width: 0; margin-left: 3px; border-radius: 2px;
  background: #5eead4; background: linear-gradient(180deg, #5eead4, rgba(94,234,212,.3)); box-shadow: 0 0 8px -2px rgba(94,234,212,.55);
}
.hm-avail i:first-child { margin-left: 0; }
.hm-avail i.warn { background: #fbbf24; background: linear-gradient(180deg, #fbbf24, rgba(251,191,36,.3)); box-shadow: 0 0 8px -2px rgba(251,191,36,.6); }
.hm-avail i.crit { background: #fb7185; background: linear-gradient(180deg, #fb7185, rgba(251,113,133,.3)); box-shadow: 0 0 8px -2px rgba(251,113,133,.65); }
.hm-avail i.none { background: rgba(255,255,255,.1); box-shadow: none; }
.hm-avail-axis { display: flex; justify-content: space-between; margin-top: 5px; font-size: 11px; color: var(--t3); }
.hm-sub-note { margin-left: auto; padding-left: 10px; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--t3); }
.hm-hosts { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); grid-gap: 6px; gap: 6px; }
.hm-host {
  position: relative; display: flex; align-items: center; justify-content: center; height: 32px; border-radius: 9px;
  background: rgba(255,255,255,.04); border: 1px solid var(--edge); box-shadow: inset 0 1px 0 var(--edge-hi);
  font-size: 12px; font-weight: 650; color: var(--t2); font-variant-numeric: tabular-nums; cursor: default;
}
.hm-host::after {      /* Statuslampe */
  content: ""; position: absolute; top: 4px; right: 4px; width: 5px; height: 5px; border-radius: 50%; background: #64708c;
}
.hm-host.ok { color: var(--t1); }
.hm-host.ok::after { background: #34d399; box-shadow: 0 0 6px rgba(52,211,153,.95); }
.hm-host.crit { color: #fecdd3; background: rgba(251,113,133,.1); border-color: rgba(251,113,133,.42); }
.hm-host.crit::after { background: #fb7185; box-shadow: 0 0 6px rgba(251,113,133,.95); }
.hm-host.off { color: var(--t3); background: rgba(255,255,255,.02); }
/* Jede Zelle fuehrt zu Admin › System (Name und Zustand im aria-label) */
a.hm-host { text-decoration: none; cursor: pointer; transition: border-color .16s, color .16s, box-shadow .16s, transform .16s; }
a.hm-host:active { transform: scale(.95); }
.hm-attn { margin: 0; padding: 0; list-style: none; }
.hm-attn li { display: flex; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.hm-attn li:first-child { border-top: 0; padding-top: 2px; }
.hm-attn li > svg { flex: 0 0 auto; margin: 1px 11px 0 0; color: var(--t3); }
.hm-attn li.crit > svg { color: #fb7185; filter: drop-shadow(0 0 5px rgba(251,113,133,.6)); }
.hm-attn li.warn > svg { color: #fbbf24; filter: drop-shadow(0 0 5px rgba(251,191,36,.5)); }
.hm-attn li.calm > svg { color: #34d399; }
.hm-attn li.calm b { color: #a7f3d0; }
.hm-attn li.skel { display: block; }
/* lange Woerter aus den Daten (Adressen, Pfade) brechen um statt ueber den Rand zu laufen */
.hm-attn-txt { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; word-wrap: break-word; word-break: break-word; }
.hm-attn-txt b { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--t1); }
.hm-attn-txt span { display: block; font-size: 12.5px; line-height: 1.4; color: var(--t3); }
.hm-meters { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.hm-meter { min-width: 0; }
.hm-meter + .hm-meter { margin-top: 12px; }
.hm-meter-top { display: flex; align-items: baseline; margin-bottom: 7px; font-size: 13px; color: var(--t2); }
.hm-meter-lab { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-meter-sub { flex: 0 0 auto; margin-left: 10px; font-size: 12px; color: var(--t3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hm-meter-top b { flex: 0 0 auto; min-width: 42px; margin-left: 10px; text-align: right; color: var(--t1); font-variant-numeric: tabular-nums; }
.hm-sys-foot { display: flex; justify-content: flex-end; margin-top: auto; padding-top: 12px; }
.hm-sys-foot .h-link { margin-left: 0; }

/* breites System-Widget (ab 680 px): zwei Spalten - links Ring, Container, Verfuegbarkeit; rechts Hinweise, Balken */
.hm-sys:not(.w-lt680) .hm-sys-body {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); grid-template-rows: auto auto 1fr;
  grid-column-gap: 32px; column-gap: 32px; align-items: start;
}
.hm-sys:not(.w-lt680) .hm-sys-top { grid-column: 1; grid-row: 1; }
.hm-sys:not(.w-lt680) .hm-hosts-box { grid-column: 1; grid-row: 2; }
.hm-sys:not(.w-lt680) .hm-avail-box { grid-column: 1; grid-row: 3; }
.hm-sys:not(.w-lt680) .hm-sys-attn { grid-column: 2; grid-row: 1 / span 2; }
.hm-sys:not(.w-lt680) .hm-sys-attn > .hm-sub-h { margin-top: 0; }
.hm-sys:not(.w-lt680) .hm-meters { grid-column: 2; grid-row: 3; }
/* 680-899 px (iPad hochkant): linke Spalte breiter, Ring kleiner - sonst brechen "1 mit Warnung" und die Ueberschriften */
.hm-sys.w-lt900:not(.w-lt680) .hm-sys-body { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-column-gap: 24px; column-gap: 24px; }
.hm-sys.w-lt900:not(.w-lt680) .hm-sys-ring, .hm-sys.w-lt900:not(.w-lt680) .hm-sys-skel { width: 112px; height: 112px; margin-right: 16px; }
.hm-sys.w-lt900:not(.w-lt680) .hm-sys-big { font-size: 28px; }
.hm-sys.w-lt900:not(.w-lt680) .hm-sys-big small { font-size: 15px; }
.hm-sys.w-lt900:not(.w-lt680) .hm-sys-n > span { white-space: nowrap; }
.hm-sys.w-lt900:not(.w-lt680) .hm-sub-h { letter-spacing: .1em; }
/* Handy-Groesse */
.hm-sys.w-lt480 .hm-sys-top { min-height: 0; }
.hm-sys.w-lt480 .hm-sys-attn > .hm-sub-h { margin-top: 24px; }
.hm-sys.w-lt480 .hm-sys-ring, .hm-sys.w-lt480 .hm-sys-skel { width: 118px; height: 118px; margin-right: 18px; }
.hm-sys.w-lt480 .hm-sys-big { font-size: 29px; }
.hm-sys.w-lt360 .hm-sys-ring, .hm-sys.w-lt360 .hm-sys-skel { width: 100px; height: 100px; margin-right: 14px; }
.hm-sys.w-lt360 .hm-sys-big { font-size: 25px; }
.hm-sys.w-lt360 .hm-sys-n { font-size: 13px; }
.hm-sys.w-lt360 .hm-sys-n b { min-width: 22px; margin: 0 7px 0 9px; font-size: 18px; }
.hm-sys.w-lt360 .hm-sub-h { font-size: 11.5px; letter-spacing: .07em; }
.hm-sys.w-lt360 .hm-sub-note { white-space: nowrap; }
.hm-sys.w-lt240 .hm-sys-top { display: block; }
.hm-sys.w-lt240 .hm-sys-ring, .hm-sys.w-lt240 .hm-sys-skel { margin: 0 auto 12px; }

/* =============================================================== Schnell == */
/* Spalten setzt home.js aus der Breite (--hm-qc: gleichmaessig gefuellte Reihen, 4 Knoepfe nie 3 + 1) */
.hm-qgrid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-columns: repeat(var(--hm-qc, 2), minmax(0, 1fr));
  grid-gap: 10px; gap: 10px;
}
.hm-q {
  -webkit-appearance: none; appearance: none; position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  min-width: 0; min-height: 96px; margin: 0; padding: 14px; border-radius: 18px;
  border: 1px solid var(--edge); background: rgba(255,255,255,.05); box-shadow: inset 0 1px 0 var(--edge-hi);
  color: var(--t1); font: inherit; text-align: left; cursor: pointer; touch-action: manipulation;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), border-color .18s, background-color .18s, box-shadow .18s, opacity .18s;
}
.hm-q-ico {
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: 13px;
  color: #c7d2fe; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--edge);
}
.hm-q-lab { margin-top: 12px; font-size: 14.5px; font-weight: 650; line-height: 1.25; }
.hm-q.q-lights-off .hm-q-ico { color: #c4b5fd; background: rgba(167,139,250,.14); box-shadow: inset 0 0 0 1px rgba(167,139,250,.4), 0 0 20px -6px rgba(167,139,250,.65); }
.hm-q.q-party {
  border-color: rgba(244,114,182,.34);
  background: rgba(167,139,250,.12);
  background: linear-gradient(140deg, rgba(167,139,250,.18) 0%, rgba(244,114,182,.12) 55%, rgba(255,143,107,.1) 100%);
}
.hm-q.q-party .hm-q-ico { color: #fff; background: #c084fc; background: linear-gradient(140deg, #a78bfa, #f472b6 60%, #ff8f6b); box-shadow: 0 8px 22px -8px rgba(244,114,182,.8); }
.hm-q.q-tv_on .hm-q-ico { color: #a7f3d0; background: rgba(52,211,153,.12); box-shadow: inset 0 0 0 1px rgba(52,211,153,.38), 0 0 20px -6px rgba(52,211,153,.55); }
.hm-q.q-tv_off .hm-q-ico { color: #fecdd3; background: rgba(251,113,133,.1); box-shadow: inset 0 0 0 1px rgba(251,113,133,.38), 0 0 20px -6px rgba(251,113,133,.5); }
.hm-q.q-pc .hm-q-ico { color: #bfdbfe; background: rgba(96,165,250,.12); box-shadow: inset 0 0 0 1px rgba(96,165,250,.4), 0 0 20px -6px rgba(96,165,250,.6); }
.hm-q.q-pc.is-on .hm-q-ico { color: #061a33; background: #60a5fa; box-shadow: 0 0 18px -2px rgba(96,165,250,.8); }
.hm-q.q-pc.is-starting .hm-q-ico { -webkit-animation: fp-pulse 0.9s ease-in-out infinite; animation: fp-pulse 0.9s ease-in-out infinite; }
.hm-q.is-on { border-color: var(--edge-2); }
.hm-q.is-on::after {    /* aktueller Zustand */
  content: ""; position: absolute; top: 14px; right: 14px; width: 8px; height: 8px; border-radius: 50%;
  background: #34d399; box-shadow: 0 0 10px rgba(52,211,153,.9);
}
.hm-q.q-tv_off.is-on::after { display: none; }
.hm-q:active { transform: scale(.98); }
.hm-q:disabled { opacity: .5; cursor: default; transform: none; }
.hm-qline { margin: 14px 0 0; font-size: 13px; line-height: 1.55; color: var(--t3); }
.hm-qline b { font-weight: 650; color: var(--t1); }
.hm-qline .sep { margin: 0 3px; }
.hm-quick.w-lt480 .hm-q { min-height: 88px; padding: 12px; }
/* schmal oder niedrig: Knoepfe als Zeilen (Symbol links) */
.hm-quick.w-lt240 .hm-qgrid, .hm-quick.h-lt320 .hm-qgrid {
  grid-template-columns: minmax(0, 1fr); grid-template-columns: repeat(var(--hm-qr, 1), minmax(0, 1fr)); grid-gap: 8px; gap: 8px;
}
.hm-quick.w-lt240 .hm-q, .hm-quick.h-lt320 .hm-q { flex-direction: row; align-items: center; justify-content: flex-start; min-height: 52px; padding: 7px 10px 7px 8px; border-radius: 14px; }
.hm-quick.w-lt240 .hm-q-ico, .hm-quick.h-lt320 .hm-q-ico { width: 34px; height: 34px; border-radius: 11px; }
.hm-quick.w-lt240 .hm-q-ico > svg, .hm-quick.h-lt320 .hm-q-ico > svg { width: 19px; height: 19px; }
.hm-quick.w-lt240 .hm-q-lab, .hm-quick.h-lt320 .hm-q-lab { min-width: 0; margin: 0 0 0 10px; font-size: 14px; }
.hm-quick.w-lt240 .hm-q.is-on::after, .hm-quick.h-lt320 .hm-q.is-on::after { top: 8px; right: 8px; }

/* =============================================================== Energie == */
.hm-en-now { display: flex; align-items: flex-end; justify-content: space-between; }
.hm-en-cur { min-width: 0; }
.hm-en-lab { display: block; margin-bottom: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--t3); }
.hm-en-val { display: block; white-space: nowrap; }
.hm-en-avg { flex: 0 0 auto; margin-left: 12px; padding-bottom: 3px; text-align: right; }
.hm-en-avg b { display: block; font-size: 19px; font-weight: 600; color: var(--t2); font-variant-numeric: tabular-nums; }
.hm-en-val b { font-size: 46px; font-weight: 300; letter-spacing: -.02em; line-height: 1; }
.hm-en-val small { margin-left: 5px; font-size: 17px; font-weight: 500; color: var(--t3); }
/* der Verlauf waechst mit dem Widget */
.hm-spark { position: relative; flex: 1 1 auto; min-height: 60px; margin: 14px -4px 0; }
.hm-spark-svg { position: absolute; top: 0; left: 0; display: block; overflow: visible; }
.hm-spark-skel { display: block; height: 100%; min-height: 60px; }
.hm-spark-line { filter: drop-shadow(0 0 5px rgba(94,234,212,.55)); }
.hm-spark-grid { stroke: rgba(255,255,255,.07); stroke-dasharray: 3 5; }
.hm-spark-peakline { stroke: rgba(251,191,36,.38); stroke-dasharray: 2 4; }
.hm-spark-peak { fill: #fcd34d; font-size: 11px; font-weight: 650; }
.hm-spark-halo { opacity: .3; }
.hm-spark-now {        /* Jetzt-Punkt als HTML ueber dem SVG, Position per CSSOM */
  position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; pointer-events: none;
  background: #fff; box-shadow: 0 0 0 3px rgba(167,139,250,.35), 0 0 12px rgba(167,139,250,.9);
}
.hm-spark-now::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%;
  background: #a78bfa; opacity: 0; animation: h-ping 2.4s cubic-bezier(.2,.8,.2,1) infinite;
}
.hm-spark-empty { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 60px; font-size: 13px; color: var(--t3); }
.hm-spark-empty > svg { margin-right: 8px; }
.hm-spark-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--t3); }
.hm-en-foot { margin: 0; padding-top: 12px; font-size: 13px; line-height: 1.5; color: var(--t3); }
.hm-en-foot b { font-weight: 650; color: var(--t1); }
.hm-energy.w-lt360 .hm-en-val b { font-size: 40px; }
.hm-energy.w-lt240 .hm-en-now { display: block; }
.hm-energy.w-lt240 .hm-en-avg { display: flex; align-items: baseline; margin: 8px 0 0; padding: 0; text-align: left; }
.hm-energy.w-lt240 .hm-en-avg .hm-en-lab { margin: 0 8px 0 0; }
.hm-energy.w-lt240 .hm-en-avg b { font-size: 15px; }
.hm-energy.w-lt240 .hm-en-val b { font-size: 34px; }

/* =============================================================== Einkauf == */
.hm-shop-n { margin-left: 10px; }
.hm-shop-body .h-skel.line { margin: 14px 0; }
.hm-shop-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); grid-gap: 0 20px; gap: 0 20px;
  margin: 0; padding: 0; list-style: none;
}
.hm-shop-list li { display: flex; align-items: center; min-width: 0; min-height: 42px; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.hm-shop-list li > span:last-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-shop-box {
  flex: 0 0 auto; width: 16px; height: 16px; margin-right: 12px; border-radius: 5px;
  border: 1.5px solid rgba(244,114,182,.65); box-shadow: 0 0 10px -2px rgba(244,114,182,.55);
}
.hm-more { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--t2); text-decoration: none; }
.hm-shop-empty { padding: 20px 8px 10px; }
.hm-shop-foot { display: flex; align-items: flex-start; margin: auto 0 0; padding-top: 14px; font-size: 12.5px; line-height: 1.45; color: var(--t3); }
.hm-shop-foot > svg { flex: 0 0 auto; margin: 1px 8px 0 0; }
.hm-shop-body { margin-bottom: 4px; }
.hm-shop.w-lt360 .hm-shop-n { display: none; }          /* kein Platz neben Titel und "Öffnen" - die Liste zeigt die Zahl */
.hm-shop.w-lt240 .hm-shop-list { grid-template-columns: minmax(0, 1fr); }
.hm-shop.w-lt240 .hm-shop-box { margin-right: 9px; }
.hm-shop.w-lt240 .hm-shop-list li { font-size: 14px; }

/* =============================================================== Dienste == */
.hm-apps-sub { margin-left: 12px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Spalten und Spannweite der Kachel "Alle Dienste" setzt home.js je nach Breite des Widgets (--hm-c, --hm-s) */
.hm-app-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-columns: repeat(var(--hm-c, 5), minmax(0, 1fr));
  grid-gap: 14px; gap: 14px;
}
.hm-app-grid > .hm-app-all { grid-column: span 1; grid-column: span var(--hm-s, 1); }
.hm-app { padding: 14px 12px; }
.hm-app .h-app-ico { width: 52px; height: 52px; border-radius: 16px; }
.hm-app .h-app-ico > svg { width: 26px; height: 26px; }
.hm-app-txt { display: block; min-width: 0; max-width: 100%; }
.hm-app .h-app-name {
  display: block; margin-top: 12px; font-size: 13px; line-height: 1.3;
  overflow-wrap: break-word; word-wrap: break-word; -webkit-hyphens: auto; -ms-hyphens: auto; hyphens: auto;
}
.hm-app .h-app-meta { margin-top: 5px; font-size: 12px; }
/* Abstand zum Abzeichen am Status (nicht am Abzeichen): bricht es in die naechste Zeile, steht es buendig unter dem Punkt */
.hm-app .h-app-meta .h-badge { height: 18px; margin: 2px 0; padding: 0 5px; font-size: 10px; }
.hm-app .h-app-meta .hm-app-st:not(:last-child) { margin-right: 7px; }
/* Status: Punkt und Text in einer Huelle - bricht der Text um, bleibt der Punkt an der ersten Zeile; Woerter
   brechen nur, wenn sie allein nicht in die Zeile passen (dann mit Trennstrich, wo die Sprache es kennt) */
.hm-app-st { display: inline-flex; align-items: flex-start; min-width: 0; max-width: 100%; line-height: 1.35; }
.hm-app-st > .h-dot { margin: 4px 6px 0 0; }
.hm-app-st > span:last-child {
  min-width: 0; overflow-wrap: break-word; word-wrap: break-word; -webkit-hyphens: auto; -ms-hyphens: auto; hyphens: auto;
}
/* Nicht erreichbar: nur das Symbol gedimmt - der Hinweistext behaelt vollen Kontrast */
.hm-app.off .h-app-ico { opacity: .7; }
.hm-app-lan { display: inline-block; line-height: 1.35; color: var(--t3); }
.hm-app-lan > svg { width: 13px; height: 13px; margin-right: 5px; vertical-align: -2px; }
.hm-app-all { border-style: dashed; border-color: var(--edge-2); background: rgba(255,255,255,.02); }
.hm-app-all .h-app-ico { color: var(--t1); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--edge-2); }
.hm-app-all .h-app-ico::after { display: none; }
.hm-app-all .h-app-meta svg { width: 15px; height: 15px; margin-left: 6px; color: #5eead4; }
.hm-app.skel { display: block; border: 1px solid var(--edge); border-radius: 18px; background: rgba(255,255,255,.025); }
.hm-app-skel { display: block; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 16px; }
.hm-apps-err { grid-column: 1 / -1; padding: 14px 8px; }
.hm-apps.w-lt560 .hm-apps-sub { display: none; }
/* schmal (Handy): kleine, mittige Kacheln */
.hm-apps.w-lt480 .hm-app-grid { grid-gap: 10px; gap: 10px; }
.hm-apps.w-lt480 .hm-app { align-items: center; padding: 12px 3px 10px; text-align: center; }
.hm-apps.w-lt480 .hm-app .h-app-ico { width: 44px; height: 44px; border-radius: 14px; }
.hm-apps.w-lt480 .hm-app .h-app-ico > svg { width: 22px; height: 22px; }
.hm-apps.w-lt480 .hm-app-txt { width: 100%; }
.hm-apps.w-lt480 .hm-app .h-app-name { margin-top: 9px; font-size: 12.5px; }
.hm-apps.w-lt480 .hm-app .h-app-meta { justify-content: center; margin-top: 3px; font-size: 11.5px; }
.hm-apps.w-lt480 .hm-app-st > .h-dot { margin: 3.5px 5px 0 0; }
.hm-apps.w-lt480 .hm-app .h-app-meta .hm-app-st { margin-right: 0; }   /* mittig, Abzeichen ist hier ausgeblendet */
.hm-apps.w-lt480 .hm-app:not(.off) .h-app-meta .h-badge { display: none; }
.hm-apps.w-lt480 .hm-app.off .h-app-meta .h-badge { margin: 4px 0 0; }
.hm-apps.w-lt480 .hm-app.skel { display: flex; flex-direction: column; align-items: center; }
.hm-apps.w-lt480 .hm-app-skel { width: 44px; height: 44px; margin: 0 0 10px; }

/* ============================================================ Hover/Fokus = */
@media (hover: hover) {
  .hm-stat:hover { transform: translateY(-2px); border-color: var(--edge-2); background: rgba(255,255,255,.075);
    box-shadow: inset 0 1px 0 var(--edge-hi), 0 14px 30px -18px rgba(94,234,212,.6); }
  .hm-q:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--edge-2); background-color: rgba(255,255,255,.08);
    box-shadow: inset 0 1px 0 var(--edge-hi), 0 16px 32px -18px rgba(94,234,212,.6); }
  .hm-q.q-party:hover:not(:disabled) { box-shadow: inset 0 1px 0 var(--edge-hi), 0 16px 34px -16px rgba(244,114,182,.7); }
  .hm-more:hover { color: var(--t1); }
  a.hm-host:hover { color: #ffffff; border-color: rgba(94,234,212,.5); box-shadow: inset 0 1px 0 var(--edge-hi), 0 0 14px -4px rgba(94,234,212,.6); }
  .hb-edit:hover { color: var(--t1); border-color: rgba(94,234,212,.45); background: rgba(94,234,212,.08); }
  .hb-mi:hover { background: rgba(94,234,212,.1); }
  .hw-hide:hover { color: #fecdd3; border-color: rgba(251,113,133,.5); background: rgba(251,113,133,.12); }
}

/* Touch (Handy, Wand-iPad): Container-Zellen etwas hoeher, Trefferflaeche 44 px ueber den Zwischenraum */
@media (max-width: 699.98px), (pointer: coarse) {
  .hm-host { height: 38px; }
  a.hm-host::before { content: ""; position: absolute; top: -4px; bottom: -4px; left: -3px; right: -3px; }
}

/* ======================================================= Leiste responsiv == */
/* schmale Startseite (hb-w1 < 1240 px, hb-w2 < 900 px - aus home.js, beruecksichtigt die Seitenleiste; die
   Medienabfragen gelten zusaetzlich): kurze Beschriftungen ("Hinzufügen", "Standard"), ohne Profil-Abzeichen */
.hb.hb-w1 .hb-l { display: none; }
.hb.hb-w1 .hb-s { display: inline; }
.hb.hb-w2 .hb-prof { display: none; }
.hb.hb-w2 .hb-info-txt b { font-size: 14px; }
.hb.hb-w2 .hb-info-txt span { font-size: 12.5px; }
@media (max-width: 1279.98px) {
  .hb-l { display: none; }
  .hb-s { display: inline; }
}
/* Tablet: Hinweis in kleiner Schrift, Ansichts-Abzeichen bleibt */
@media (max-width: 1099.98px) {
  .hb-info-txt b { font-size: 14px; }
  .hb-info-txt span { font-size: 12.5px; }
  .hb-prof { margin-left: 10px; }
}
@media (max-width: 859.98px) {
  .hb-prof { display: none; }
}
/* Handy: Leiste zweizeilig - oben Hinweis + Speicherstand, unten drei gleich breite Knoepfe */
@media (max-width: 699.98px) {
  .hb-grid { --g-radius: 20px; }
  .hw-box { padding: 16px; border-radius: 19px; }
  .w-lt240 > .hw-box { padding: 14px 12px; }
  .hm-hero-bg { border-radius: 19px; }
  .hb.editing .hw-edit { height: 46px; border-radius: 19px 19px 0 0; }
  .hw-name { letter-spacing: .08em; }       /* "Uhr & Überblick" passt neben Griff und "Ausblenden" */
  .hb.editing .hw::after { border-radius: 19px; }
  .hb-bar { margin: -4px 0 12px; }
  .hb.editing .hb-bar { margin: -4px 0 14px; top: 64px; top: calc(var(--topbar-h) + env(safe-area-inset-top) + 8px); }
  .hb.editing .hb-in { flex-wrap: wrap; padding: 8px; border-radius: 18px; }
  .hb-info { flex: 1 1 60%; }              /* Zeile 1: Hinweis (+ Speicherstand), Zeile 2: Knoepfe (100 %) */
  .hb-info-ico { display: none; }
  .hb-info-txt { padding: 0 4px; }
  .hb-info-txt b { display: none; }
  .hb-info-txt span { font-size: 12.5px; }
  .hb-save { margin: 0 4px 0 8px; font-size: 12.5px; }
  .hb.editing .hb-acts { flex: 1 1 100%; margin-top: 8px; }
  .hb.editing .hb-acts > .h-btn { flex: 1 1 auto; min-width: 0; padding: 8px 10px; font-size: 14px; }
  .hb.editing .hb-acts > .h-btn > svg { width: 16px; height: 16px; margin-right: 6px; }
  .hb-count { margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; line-height: 18px; }
  .hb-menu { left: 8px; right: 8px; width: auto; max-width: none; }
}
/* schmale Handys: Symbole nur noch an "Fertig", dann gar nicht - die drei Knoepfe passen in eine Zeile */
@media (max-width: 429.98px) {
  .hb.editing .hb-add > svg, .hb.editing .hb-reset > svg { display: none; }
  .hb.editing .hb-acts > .h-btn { padding: 8px 6px; }
}
@media (max-width: 359.98px) {
  .hb.editing .hb-acts > .h-btn { padding: 8px 5px; font-size: 13px; }
  .hb.editing .hb-acts > .h-btn > svg { display: none; }
  .hb.editing .hb-acts > .h-btn + .h-btn { margin-left: 6px; }
  .hb-count { margin-left: 5px; }
}

/* ============================================================ Animationen = */
@keyframes hm-in { 0% { opacity: 0; transform: translate3d(0,16px,0); } }
@keyframes hw-new {
  0%, 35% { box-shadow: 0 0 0 2px rgba(94,234,212,.95), 0 0 48px -4px rgba(94,234,212,.7); }
  100% { box-shadow: 0 0 0 2px rgba(94,234,212,0), 0 0 48px -4px rgba(94,234,212,0); }
}
@keyframes hm-sheen { 0% { transform: translate3d(-130%,0,0) skewX(-14deg); } 32%, 100% { transform: translate3d(420%,0,0) skewX(-14deg); } }
@keyframes hm-colon { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes hm-wait { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes hm-typing { 0%, 60%, 100% { opacity: .25; transform: translate3d(0,0,0); } 30% { opacity: 1; transform: translate3d(0,-2px,0); } }

@media (prefers-reduced-motion: reduce) {
  .hw-enter, .hw.hw-new, .hb.editing .hb-in, .hb-menu, .hb-spin { animation: none !important; }
  .hm-colon, .hm-st.wait::after, .hm-spark-now::after, .hm-typing i { animation: none !important; }
  .hm-sheen { display: none; animation: none !important; }
  .hm-cl-err-ico::after, .hm-calm-ico::after { animation: none !important; }
  .hb-save { transition: none; }
}
