/* IT-Support · App im Kopf, 5 Fassungen (Dirk 04.11.). Klassen ita-. Fenster/Leiste aus dem bisherigen Kopf (.wb-site .wb-bar). */
body[data-v="1"] .ita:not([data-v="1"]), body[data-v="2"] .ita:not([data-v="2"]), body[data-v="3"] .ita:not([data-v="3"]),
body[data-v="4"] .ita:not([data-v="4"]), body[data-v="5"] .ita:not([data-v="5"]) { display: none !important; }

.ita-page { padding: 18px 22px 20px; color: #0b0f06; }
.ita-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.ita-top b { display: block; font: 900 22px/1 var(--display); font-stretch: 75%; text-transform: uppercase; }
.ita-top small { display: block; margin-top: 5px; font: 500 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(11,15,6,.55); }
.ita-all { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 99px; background: rgba(11,15,6,.08); font: 700 12px/1 var(--display); font-style: normal; transition: background .4s, color .4s; }
.ita-all i { width: 7px; height: 7px; border-radius: 50%; background: #9aa1aa; transition: background .4s; }
.ita-all.ok { background: #0b0f06; color: #c5f74f; } .ita-all.ok i { background: #c5f74f; }

/* Listen */
.ita-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.ita-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid rgba(11,15,6,.1); }
.ita-list li > img, .ita-list li > .av, .ita-list li > time { grid-row: 1 / 3; }
.ita-list li > img { width: 34px; height: 34px; object-fit: contain; }
.ita-list b { font: 700 14px/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ita-list small { grid-column: 2; font: 500 11px/1.3 var(--mono); color: rgba(11,15,6,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ita-list .ita-p { grid-column: 3; grid-row: 1 / 3; }
.ita-list.ita-tbl .av { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #0b0f06; color: #c5f74f; font: 700 11px/1 var(--display); font-style: normal; }
.ita-list.ita-log li { grid-template-columns: 46px minmax(0, 1fr) auto; }
.ita-list.ita-log time { font: 600 12px/1 var(--mono); color: rgba(11,15,6,.6); }

/* Status-Pillen: grau, bis der Eintrag abgehakt ist */
.ita-p { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 99px; background: rgba(11,15,6,.07); color: rgba(11,15,6,.45); font: 700 10.5px/1 var(--mono); font-style: normal; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; transition: background .35s, color .35s; }
.ita-i.ok .ita-p.ok { background: #c5f74f; color: #0b0f06; }
.ita-i.ok .ita-p.wait { background: #ffe9b8; color: #7a5200; }
.ita-p.dot { width: 22px; height: 22px; justify-content: center; padding: 0; }
.ita-i { opacity: .45; transition: opacity .35s; } .ita-i.ok { opacity: 1; }

/* Sicherheit: drei Kennzahlen */
.ita-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.ita-tiles > div { display: grid; gap: 3px; padding: 11px 12px; border-radius: 12px; background: rgba(11,15,6,.05); }
.ita-tiles b { font: 900 26px/1 var(--display); font-stretch: 75%; }
.ita-tiles span { font: 700 12px/1.2 var(--display); }
.ita-tiles small { font: 500 10px/1.3 var(--mono); color: rgba(11,15,6,.55); }
.ita-tiles .ita-i.ok { background: #0b0f06; color: #f4f5f2; } .ita-tiles .ita-i.ok b { color: #c5f74f; } .ita-tiles .ita-i.ok small { color: rgba(244,245,242,.6); }

@media (max-width: 600px) {
  .ita-page { padding: 14px 14px 16px; } .ita-list b { font-size: 13px; } .ita-tiles b { font-size: 22px; }
}

/* Umschalter (nur Vergleich) */
.ita-sw { position: fixed; z-index: 9999; left: 50%; bottom: 16px; translate: -50% 0; display: flex; gap: 6px; padding: 6px; border-radius: 99px; background: #0b0f06; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.ita-sw button { position: relative; width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: #fff; font: 700 15px/1 system-ui; cursor: pointer; }
.ita-sw button[aria-pressed="true"] { background: #c5f74f; color: #0b0f06; }
.ita-sw button span { position: absolute; bottom: calc(100% + 10px); left: 50%; translate: -50% 0; padding: 5px 9px; border-radius: 6px; background: #0b0f06; color: #fff; font: 500 12px/1 system-ui; white-space: nowrap; opacity: 0; pointer-events: none; }
.ita-sw button:hover span, .ita-sw button[aria-pressed="true"] span { opacity: 1; }
/* Handy: Unterzeilen dürfen umbrechen statt abgeschnitten zu werden */
@media (max-width: 600px) { .ita-list small { white-space: normal; } .ita-list b { white-space: normal; } }
/* Zeiten in Fassung 5 nie von Seiten-Stilen überschrieben */
.ita-list.ita-log li { display: grid !important; position: static !important; } .ita-list.ita-log li::before, .ita-list.ita-log li::after { display: none !important; }
