/* ── Heute bei dir ── (Ampelfarben aus strom.css, Legende aus luft.css) */

/* Kacheln: Raster aus .hub (main.css), Frage oben, Uhrzeit groß (Farbe = wie gut), zwei Fakten darunter */
.hx-tile {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    padding: 0.65rem 0.8rem 0.75rem;
    border: 1px solid var(--border);
    color: inherit;
    transition: border-color 0.15s;
}
a.hx-tile:hover { border-color: var(--accent); text-decoration: none; }

.hx-q {
    display: flex;
    align-items: baseline;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--muted);
}
.hx-q .sym { width: 1.5em; flex: none; }
.hx-on { margin-left: auto; padding-left: 0.4rem; color: var(--fg); }   /* „morgen“ */

.hx-when {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--fg);
    white-space: nowrap;
}
.hx-tile.good .hx-when { color: #34d399; }
.hx-tile.warn .hx-when { color: #f59e0b; }
.hx-tile.bad:not(.no) .hx-when { color: var(--muted); }

/* Klappt heute nicht: blass, Grund statt Uhrzeit */
.hx-tile.no .hx-when {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    white-space: normal;
}
.hx-tile.no .hx-when .sym { margin-right: 0.4em; }
.hx-tile.no.bad .hx-when .sym { color: #ef4444; }
.hx-tile.no .hx-sub { opacity: 0.8; }

.hx-sub {
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--muted);
}

/* Warnungen: Rand und Text gelb, je Art eine Zeile */
.hx-warn.alert { border-color: #5c4310; }
.hx-warn.wide { grid-column: 1 / -1; }
.hx-warn ul { list-style: none; }
.hx-warn.wide ul { columns: 2 13rem; column-gap: 1.5rem; }
.hx-warn li {
    break-inside: avoid;
    padding: 0.1rem 0 0.1rem 1.5em;
    text-indent: -1.5em;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #f59e0b;
}
.hx-warn li .sym { display: inline-block; width: 1.5em; text-indent: 0; }
.hx-t { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--muted); white-space: nowrap; }

/* Stunde für Stunde: aufklappbar über den Kacheln */
.hx-hours { margin-bottom: 0.75rem; }
.hx-hours summary { margin-top: 0; }
.hx-hours .hx-strip { margin-top: 0.75rem; }

/* Leiste: Beschriftung + eine Spalte je Stunde */
.hx-strip {
    display: grid;
    grid-template-columns: 5.5rem repeat(var(--n), minmax(0, 1fr));
    gap: 2px;
    align-items: center;
    margin: 0.25rem 0 0.75rem;
}
.hx-strip i { display: block; height: 16px; background: #181a20; }
.hx-strip i.good { background: #34d399; }
.hx-strip i.warn { background: #f59e0b; }
.hx-strip i.bad  { background: #4b5060; }
.hx-l {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--muted);
    white-space: nowrap;
}
.hx-strip .hx-t { overflow: visible; padding-top: 0.15rem; }
.sw.none { background: #181a20; border: 1px solid var(--border); border-radius: 2px; }

@media (max-width: 480px) {
    .hx-tile { padding: 0.55rem 0.65rem 0.65rem; }
    .hx-when { font-size: 1.05rem; }
    .hx-strip { grid-template-columns: 4.6rem repeat(var(--n), minmax(0, 1fr)); gap: 1px; }
}
