/* v60: Wartungsplan und Störungsprotokoll (eigene Datei, damit app.css unberührt bleibt) */
.wt-card, .st-card { padding: 1rem 1.2rem; display: grid; gap: .6rem; border-left: 4px solid var(--c, var(--line)); }
.wt-card[data-k="ueber"] { --c: var(--err); }
.wt-card[data-k="bald"] { --c: #e8a317; }
.wt-card[data-k="ok"] { --c: var(--ok); }
.wt-card[data-k="storniert"], .st-card[data-k="storno"] { opacity: .65; }
.wt-card[data-k="storniert"] .mhead b, .st-card[data-k="storno"] .mhead b { text-decoration: line-through; text-decoration-thickness: 1px; }
.wt-card .mhead .pstat { margin-left: auto; }
.wt-verlauf summary { cursor: pointer; color: var(--ink-2); font-weight: 500; }
.wt-verlauf[open] summary { margin-bottom: .5rem; }
.wt-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.wt-liste li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .8rem; align-items: start; padding: .55rem .7rem; border-radius: var(--r-sm); background: var(--surface-2); }
.wt-liste li:not(:has(.wt-thumb)) { grid-template-columns: minmax(0, 1fr) auto; }
.wt-liste li.storno { opacity: .7; }
.wt-liste li.storno .wt-e > b { text-decoration: line-through; }
.wt-e { display: grid; gap: .15rem; min-width: 0; }
.wt-e b { font-weight: 600; }
.wt-erg { font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 99px; width: max-content; --c: var(--ok);
  background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.wt-erg[data-k="mangel"] { --c: var(--err); }
.wt-thumb { width: 64px; height: 64px; border-radius: var(--r-sm); overflow: hidden; display: grid; place-items: center; background: var(--surface-3);
  color: var(--ink-2); text-decoration: none; flex: none; }
.wt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wt-pdf { gap: 0; font-size: .7rem; font-weight: 700; align-content: center; }
.wt-eact { white-space: nowrap; }
.st-st { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; white-space: nowrap;
  background: color-mix(in srgb, var(--c, var(--ink-3)) 14%, transparent); color: var(--c, var(--ink-3)); }
.st-st[data-k="offen"] { --c: var(--err); }
.st-st[data-k="zu"] { --c: var(--ok); }
.st-card[data-k="offen"] { --c: var(--err); }
.st-card[data-k="zu"] { --c: var(--ok); }
.st-card .mhead .mstat { margin-left: auto; }
.st-mass { margin: 0; }
.st-fotos { gap: .4rem; flex-wrap: wrap; }
.wt-sel { width: auto; min-width: 170px; border-radius: 99px; height: 34px; font-size: .86rem; }
.wt-seg { width: max-content; max-width: 100%; flex-wrap: wrap; }
.wt-zeitraum { gap: .5rem; align-items: center; }
.wt-zeitraum .input { width: auto; height: 34px; }
.wt-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.2rem; align-items: start; }
.st-vt { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .8rem; align-items: center; padding: .65rem 1.1rem;
  border-bottom: 1px solid var(--line-soft); color: inherit; text-decoration: none; }
.st-vt > b { font-size: 1.25rem; text-align: right; }
.st-vt span { display: grid; min-width: 0; }
.st-vt span b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.st-vt:hover, .st-zeile:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.st-zeile { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .8rem; align-items: center; padding: .65rem 1.1rem;
  border-bottom: 1px solid var(--line-soft); color: inherit; text-decoration: none; }
.st-z { display: grid; min-width: 0; }
.st-z b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 860px) { .wt-cols { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .wt-card .mhead .pstat, .st-card .mhead .mstat { margin-left: 0; flex-basis: 100%; }
  .wt-liste li { grid-template-columns: auto minmax(0, 1fr); }
  .wt-liste li .wt-eact { grid-column: 1 / -1; }
  .wt-sel { min-width: 0; flex: 1 1 140px; }
}
.wartung-menu { display: none; text-decoration: none; }
@media (max-width: 600px) { .hbtn.wartung-nav { display: none; } .wartung-menu { display: flex; } }
