/* Eigenständige Projektion: der Inhalt nutzt die gesamte verfügbare Höhe. */
.status-window-page{height:100vh;height:100dvh;overflow:hidden}
.status-window-page #site-theme-control{display:none}
.status-window-page #status-overview{display:flex;flex-direction:column;gap:inherit;flex:1;min-height:0}
.status-window-page #streamdeck-focus-note{margin:3px 0 0;color:#b45309;font-size:12px}
.status-window-page main{display:flex;flex-direction:column;gap:12px;width:100%;max-width:none;height:100%;min-height:0;padding:18px 22px;margin:0;overflow:auto}
.status-projection-heading{display:flex;align-items:center;gap:13px;flex:none;min-width:0}
.status-projection-heading img{width:46px;height:46px;object-fit:contain;flex:none}
.status-projection-heading h1{font-size:clamp(22px,2.6vw,34px);margin:0;letter-spacing:-.025em}
.status-projection-heading h1{flex:1;min-width:0}
.status-strength-summary{flex:none;min-width:225px;max-width:38%;padding:8px 16px;border:1px solid var(--line);border-radius:10px;background:var(--theme-surface,#fff)}
.status-strength-label{display:block;font-size:13px;font-weight:750;color:var(--muted)}
.status-strength-number{display:flex;align-items:baseline;gap:10px;line-height:1.05;flex-wrap:wrap}
.status-strength-number strong{min-width:0;max-width:100%;overflow-wrap:anywhere;font-size:clamp(36px,4vw,58px);font-variant-numeric:tabular-nums;color:var(--blue)}
.status-strength-number>span{font-size:17px;font-weight:650}
.status-strength-summary small{display:block;font-size:11px;line-height:1.3;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}
.status-window-page .status-projection-panel{display:flex;flex:1;min-height:0;padding:0;margin:0;overflow:hidden}
.status-window-page #leader-table{width:100%;height:100%;min-height:0;overflow:hidden}
.status-window-page #leader-table[data-oversized="true"]{overflow-y:auto}
.status-window-page .status-table{width:100%;min-width:0;table-layout:fixed;font-size:clamp(16px,1.45vw,23px);line-height:1.3}
.status-window-page .status-table th{font-size:.82em;font-weight:750;padding:12px 14px;vertical-align:middle}
.status-window-page .status-table td{padding:11px 14px;overflow-wrap:anywhere;vertical-align:middle}
.status-window-page .status-table th:nth-child(1){width:23%}
.status-window-page .status-table th:nth-child(2){width:22%}
.status-window-page .status-table th:nth-child(3),.status-window-page .status-table th:nth-child(4){width:23%}
.status-window-page .status-table th:nth-child(5){width:9%}
.status-window-page .status-table small{max-width:none;font-size:.74em;line-height:1.3;margin-top:4px}
.status-window-page .status-table .status-value{display:flex;align-items:center;gap:9px}
.status-window-page .status-pill{min-width:34px;height:34px;flex:none;font-size:1.05em}
.status-window-page .status-table .position-source{font-size:inherit}
.status-projection-footer{display:flex;flex:none;align-items:center;justify-content:space-between;gap:10px 24px;min-width:0;font-size:12px;line-height:1.35;color:var(--muted)}
.status-window-page #leader-connection{padding:0;margin:0;background:none;border-radius:0;font-size:inherit}
.status-projection-footer #status-page-info{margin:0;text-align:right;flex:none}
.status-window-page .login-panel,.status-window-page .maintenance{flex:none;width:100%;margin:auto}
@media(max-height:760px){.status-window-page main{padding:12px 16px;gap:9px}.status-projection-heading img{width:36px;height:36px}.status-projection-heading h1{font-size:27px}.status-window-page .status-table th{padding:9px 12px}.status-window-page .status-table td{padding:8px 12px}}
@media(max-width:700px){
 .status-projection-heading{flex-wrap:wrap}
 .status-strength-summary{flex-basis:100%;max-width:100%;min-width:0;padding:7px 12px}
 .status-strength-number strong{font-size:38px}
 .status-window-page main{padding:12px;gap:10px}
 .status-projection-heading{gap:9px}.status-projection-heading h1{font-size:22px}.status-projection-heading img{width:34px;height:34px}
 .status-window-page .status-table,.status-window-page .status-table tbody{display:block;width:100%;font-size:16px}
 .status-window-page .status-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .status-window-page .status-table tr{display:grid;grid-template-columns:1fr 1fr;padding:10px;gap:12px 15px;border-bottom:1px solid var(--line)}
 .status-window-page .status-table td{padding:0;border:0;min-width:0}
 .status-window-page .status-table td::before{content:attr(data-column);display:block;font-size:11px;font-weight:700;color:var(--muted);margin-bottom:4px}
 .status-window-page .status-table td:first-child::before,.status-window-page .status-table td:nth-child(2)::before{display:none}
 .status-window-page .status-table td:last-child{grid-column:1/-1}
 .status-window-page .status-table td:last-child::before{display:inline;margin-right:8px}
 .status-window-page .status-table small{font-size:12px}
 .status-window-page .status-table .status-value{gap:7px;font-size:14px}
 .status-projection-footer{align-items:flex-start;flex-direction:column;gap:4px;font-size:11px}
 .status-projection-footer #status-page-info{text-align:left}
}

/* Die Detailansicht belegt denselben Projektionsbereich; Listen dürfen bei
   außergewöhnlich langen Daten einzeln scrollen, die Seite bleibt stehen. */
.status-detail-view{display:flex;flex:1;min-height:0;flex-direction:column;gap:14px;overflow:hidden}
.status-detail-heading{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,34%) minmax(0,1fr);flex:none;align-items:center;gap:16px;min-width:0}
.status-detail-strength{grid-column:2;min-width:0;text-align:center;padding:0 6px}
.status-detail-strength>span{display:block;font-size:15px;font-weight:700;color:var(--muted);margin-bottom:3px}
.status-detail-strength>strong{display:block;max-width:100%;font-size:clamp(52px,5.8vw,88px);line-height:1.1;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;color:var(--blue)}
.status-detail-strength.is-long>strong{font-size:clamp(28px,3.4vw,48px)}
.status-detail-strength>small{display:block;font-size:13px;color:var(--muted);margin-top:4px}
.status-detail-identity{display:flex;align-items:center;gap:15px;min-width:0}
.status-detail-identity>div:last-child{min-width:0}
.status-detail-identity h1{font-size:clamp(26px,3vw,40px);margin:0;overflow-wrap:anywhere}
.status-detail-identity p{margin:3px 0 0;font-size:15px;color:var(--muted)}
.status-detail-symbol{flex:none;width:76px;height:58px;display:grid;place-items:center;padding:4px;background:#fff;border:1px solid #dce3ed;border-radius:7px}
.status-detail-symbol svg{width:100%;height:100%}
.status-detail-current{min-width:0;text-align:right}
.status-detail-current .status-value{display:flex;align-items:center;justify-content:flex-end;gap:10px;font-size:20px;line-height:1.25}
.status-detail-current small{display:block;margin-top:5px;font-size:13px;color:var(--muted)}
.status-detail-stations{display:grid;grid-template-columns:1fr 1fr .65fr;gap:12px;flex:none}
.status-detail-card{border:1px solid var(--line);border-radius:9px;padding:12px 15px;background:#fff;min-width:0;overflow-wrap:anywhere}
.status-detail-card h2{font-size:13px;color:var(--muted);margin:0 0 5px;font-weight:650}
.status-detail-card>strong{display:block;font-size:20px;line-height:1.25}
.status-detail-card p{font-size:14px;line-height:1.35;margin:5px 0 0}
.status-detail-eta>strong{font-size:25px}
.status-detail-eta.is-overdue{border-color:#c2410c;background:#fff7ed;color:#9a3412}
.status-detail-content{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.55fr);gap:18px;flex:1;min-height:0}
.status-detail-route,.status-detail-history{min-height:0;min-width:0;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:9px;background:#fff;padding:14px 16px;overflow:hidden}
.status-detail-route h2,.status-history-heading h2{font-size:19px;margin:0 0 10px}
.status-detail-route h2 span{font-size:13px;color:var(--muted);font-weight:500}
.status-detail-route ol{list-style:none;padding:0;margin:0;min-height:0;overflow-y:auto}
.status-detail-route li{display:flex;align-items:center;gap:9px;min-height:32px;line-height:1.3;padding:4px 7px;border-radius:5px;overflow-wrap:anywhere}
.status-detail-route li strong{font-size:15px;font-weight:550;min-width:0}
.status-detail-route li small{margin-left:auto;font-size:11px;color:var(--muted);flex:none}
.status-route-index{display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;width:21px;height:21px;flex:none;font-size:11px;color:var(--muted)}
.status-detail-route li.current{background:#e8f1ff;color:#0757cd}
.status-detail-route li.current strong{font-weight:750}
.status-detail-route li.visited{color:var(--muted)}
.status-detail-location{flex:none;border-top:1px solid var(--line);margin-top:10px;padding-top:10px;font-size:12px;line-height:1.35}
.status-detail-location h3{font-size:13px;margin:0 0 4px}
.status-detail-location small{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.status-detail-location p{font-size:11px;color:var(--muted);margin:5px 0 0}
.status-history-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex:none}
.status-history-heading>span{font-size:12px;color:var(--muted)}
.status-history-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
.status-history-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:14px;line-height:1.3}
.status-history-table th{padding:7px 8px;text-align:left;font-size:11px;background:#f0f5fb;color:var(--muted);position:sticky;top:0;z-index:1}
.status-history-table th:nth-child(1){width:24%}.status-history-table th:nth-child(2){width:34%}.status-history-table th:nth-child(3){width:42%}
.status-history-table td{padding:7px 8px;border-bottom:1px solid var(--line);vertical-align:middle;overflow-wrap:anywhere}
.status-history-table time>*{display:block;font-size:12px;font-weight:500}
.status-history-table time>strong{font-size:14px;font-variant-numeric:tabular-nums;font-weight:650}
.status-history-table td:nth-child(2){position:relative;padding-left:40px}
.status-history-table .status-pill{position:absolute;left:7px;top:50%;transform:translateY(-50%);min-width:25px;height:25px;border-radius:6px;font-size:14px}
.status-history-table td>strong{font-size:13px;font-weight:600;display:block}
.status-history-table small{display:block;font-size:12px;color:var(--muted);margin-top:3px}
.status-history-pages{display:flex;justify-content:space-between;align-items:center;gap:10px;flex:none;margin-top:8px}
.status-history-pages>span{font-size:12px;color:var(--muted)}
.status-detail-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;flex:none;font-size:14px;color:var(--muted)}
.status-detail-footer .button{min-height:36px;padding:6px 13px}
.status-detail-loading{padding:18px 8px;margin:0}
html[data-theme="dark"] .status-detail-card,html[data-theme="dark"] .status-detail-route,html[data-theme="dark"] .status-detail-history{background:var(--theme-surface,#19283b)}
html[data-theme="dark"] .status-detail-route li.current,html[data-theme="dark"] .status-history-table th{background:var(--theme-raised,#22354c);color:#a8ccff}
html[data-theme="dark"] .status-detail-eta.is-overdue{background:#3a2b1e;color:#fdba74}
html[data-theme="dark"] .status-window-page #streamdeck-focus-note{color:#fbbf24}
@media(max-height:760px) and (min-width:701px){
 .status-detail-view{gap:10px}.status-detail-symbol{width:64px;height:46px}.status-detail-identity h1{font-size:30px}.status-detail-identity p{font-size:13px}
 .status-detail-card{padding:9px 13px}.status-detail-card>strong{font-size:19px}.status-detail-card p{font-size:13px}
 .status-detail-route,.status-detail-history{padding:11px 13px}.status-detail-route li{min-height:29px;padding:3px 6px}.status-detail-route li strong{font-size:14px}
 .status-history-table td{padding-top:6px;padding-bottom:6px}.status-detail-location{margin-top:7px;padding-top:7px}
}
@media(max-width:700px){
 .status-detail-view{overflow-y:auto;gap:12px;padding-bottom:3px;overscroll-behavior:contain}
 .status-detail-heading{grid-template-columns:minmax(0,1fr);align-items:start;gap:12px}.status-detail-identity{gap:10px}.status-detail-symbol{width:58px;height:44px}.status-detail-identity h1{font-size:27px}
 .status-detail-strength{grid-column:1}.status-detail-strength>strong{font-size:clamp(48px,12vw,70px)}.status-detail-strength.is-long>strong{font-size:30px}
 .status-detail-current{max-width:none;width:100%;text-align:left}.status-detail-current .status-value{justify-content:flex-start;font-size:17px}
 .status-detail-stations{grid-template-columns:1fr;gap:8px}.status-detail-card{padding:10px 12px}.status-detail-card>strong{font-size:18px}.status-detail-card p{font-size:13px}
 .status-detail-content{display:flex;flex-direction:column;flex:none;gap:12px}.status-detail-route,.status-detail-history{min-height:0;padding:12px}
 .status-detail-route ol{max-height:none;overflow:visible}.status-detail-location{font-size:13px}.status-detail-location small,.status-detail-location p{font-size:12px}
 .status-history-scroll{flex:none;max-height:420px}.status-history-table{font-size:12px}.status-history-table th{padding:6px 4px;font-size:10px}.status-history-table td{padding:7px 4px}
 .status-history-table th:nth-child(1){width:25%}.status-history-table th:nth-child(2){width:34%}.status-history-table th:nth-child(3){width:41%}
 .status-history-table td:nth-child(2){padding-left:30px}.status-history-table .status-pill{left:3px;min-width:22px;height:23px;font-size:12px}
 .status-history-table time>strong{font-size:12px}.status-history-table time>span{font-size:10px}.status-history-table td>strong,.status-history-table small{font-size:11px}
 .status-detail-footer{position:sticky;bottom:0;padding:9px 0;background:#f1f4f8;font-size:12px}
 html[data-theme="dark"] .status-detail-footer{background:var(--theme-background,#0f1b2b)}
}
