/* Deliberately traditional CSS: no Grid, CSS variables, flex gap, clamp or viewport units. */
html.werkstatt-tv, html.werkstatt-tv body { margin: 0; padding: 0; background: #020617; color: #f1f5f9; }
#werkstatt-legacy { padding: 24px; font-family: Arial, Helvetica, sans-serif; color: #f1f5f9; background: #020617; line-height: 1.4; }
#werkstatt-legacy .table-box, #werkstatt-legacy .detail-box { color: #f1f5f9; }
#werkstatt-legacy * { box-sizing: border-box; }
#werkstatt-legacy h1 { margin: 5px 0 16px; font-size: 48px; line-height: 1.2; font-weight: bold; }
#werkstatt-legacy .eyebrow { color: #fbbf24; font-size: 14px; font-weight: bold; letter-spacing: 3px; text-transform: uppercase; margin: 0; }
#werkstatt-legacy .muted { color: #94a3b8; }
#werkstatt-legacy button, #werkstatt-legacy input { font: inherit; }
#werkstatt-legacy button { cursor: pointer; color: #e2e8f0; background: #020617; border: 1px solid #475569; border-radius: 8px; padding: 12px 20px; }
#werkstatt-legacy button:focus, #werkstatt-legacy input:focus { outline: 2px solid #fbbf24; }
#werkstatt-legacy button:disabled { opacity: 0.5; cursor: wait; }
#werkstatt-legacy .switch { float: right; margin-top: 16px; font-size: 18px; }
#werkstatt-legacy h1 .mode-toggle { margin: 0; padding: 1px 12px 2px; font-size: 18px; font-weight: 600; line-height: 1.3; color: #cbd5e1; background: transparent; border: 1px solid #475569; border-radius: 8px; }
#werkstatt-legacy .table-box { clear: both; border: 1px solid #334155; border-radius: 12px; background: #0f172a; overflow: hidden; }
#werkstatt-legacy .scroll { height: 470px; overflow: auto; }
#werkstatt-legacy table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 18px; }
#werkstatt-legacy th { background: #1e293b; color: #cbd5e1; font-size: 14px; text-align: left; font-weight: bold; }
#werkstatt-legacy th, #werkstatt-legacy td { padding: 10px 14px; border-bottom: 1px solid #1e293b; vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#werkstatt-legacy .half table { font-size: 13px; }
#werkstatt-legacy .half th, #werkstatt-legacy .half td { padding: 8px 4px; }
#werkstatt-legacy .half th { font-size: 12px; }
#werkstatt-legacy .half .pill { font-size: 11px; padding: 2px 6px; border-width: 1px; }
#werkstatt-legacy .approved { display: block; margin-top: 3px; color: #86efac; font-size: 10px; white-space: nowrap; }
#werkstatt-legacy th { border-color: #475569; }
#werkstatt-legacy td.status { color: #fcd34d; }
#werkstatt-legacy .half { float: left; width: 49.6%; }
#werkstatt-legacy .half.right { float: right; border-left: 3px solid #475569; }
#werkstatt-legacy .clear { clear: both; }
#werkstatt-legacy .pill { display: inline-block; padding: 4px 10px; border: 2px solid; border-radius: 999px; font-weight: bold; font-size: 16px; white-space: nowrap; }
#werkstatt-legacy .s00 { background: #ff1a1a; color: #ffffff; border-color: #ff6b6b; }
#werkstatt-legacy .s01 { background: #ffe600; color: #000000; border-color: #fff27a; }
#werkstatt-legacy .s02 { background: #00d84a; color: #000000; border-color: #6dff9c; }
#werkstatt-legacy .s03 { background: #ff7a00; color: #000000; border-color: #ffb066; }
#werkstatt-legacy .s04 { background: #1e6bff; color: #ffffff; border-color: #7aa8ff; }
#werkstatt-legacy .s05 { background: #ffffff; color: #000000; border-color: #ffffff; }
#werkstatt-legacy .s06 { background: #00e5d0; color: #000000; border-color: #7af5ea; }
#werkstatt-legacy .s07 { background: #ff1a1a; color: #ffffff; border-color: #ff6b6b; }
#werkstatt-legacy td.device { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#werkstatt-legacy td.number { font-weight: bold; color: #fff; }
#werkstatt-legacy .open-link { color: #fff; cursor: pointer; text-decoration: underline; }
#werkstatt-legacy .detail-box { border: 1px solid #334155; border-radius: 8px; padding: 16px; background: #0f172a; }
#werkstatt-legacy table.detail { width: 100%; border-collapse: collapse; font-size: 22px; }
#werkstatt-legacy table.detail th { width: 25%; text-align: left; color: #94a3b8; padding: 10px; vertical-align: top; }
#werkstatt-legacy table.detail td { padding: 10px; color: #fff; white-space: normal; }
#werkstatt-legacy .empty { text-align: center; padding: 40px; font-size: 24px; color: #94a3b8; }
#werkstatt-legacy header { position: relative; }
/* Übersicht: Titel links, Intern/Extern-Schalter ganz rechts (Tabellenlayout für alte TV-Browser) */
#werkstatt-legacy header.ov-header { display: table; width: 100%; table-layout: fixed; }
#werkstatt-legacy header.ov-header .ticker { display: table-cell; position: static; left: auto; right: auto; top: auto; width: auto; height: 64px; vertical-align: middle; overflow: hidden; white-space: nowrap; padding-right: 24px; }
#werkstatt-legacy header.ov-header .ov-mode { display: table-cell; position: static; width: 300px; margin: 0; text-align: right; vertical-align: middle; }
#werkstatt-legacy .ticker { position: absolute; left: 240px; right: 290px; top: 8px; height: 64px; overflow: hidden; white-space: nowrap; }
#werkstatt-legacy .ticker-line { display: inline-block; white-space: nowrap; font-size: 44px; line-height: 64px; font-weight: bold; color: #ffffff; }
#werkstatt-legacy .ticker-line.show { -webkit-animation: werkstatt-ticker-in 0.9s ease-out both; animation: werkstatt-ticker-in 0.9s ease-out both; }
@-webkit-keyframes werkstatt-ticker-in { from { opacity: 0; -webkit-transform: translateX(40px); } to { opacity: 1; -webkit-transform: translateX(0); } }
@keyframes werkstatt-ticker-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
#werkstatt-legacy .footer { text-align: center; color: #94a3b8; font-size: 14px; margin-top: 18px; line-height: 1.5; }
#werkstatt-legacy .login { max-width: 390px; margin: 10% auto 0; background: #0f172a; border: 1px solid #334155; border-radius: 12px; padding: 28px; }
#werkstatt-legacy .login h1 { font-size: 26px; }
#werkstatt-legacy .login p { color: #cbd5e1; line-height: 1.5; }
#werkstatt-legacy .login label { display: block; margin: 20px 0 8px; }
#werkstatt-legacy .login input { width: 100%; padding: 12px; border: 1px solid #475569; border-radius: 8px; background: #020617; color: #fff; }
#werkstatt-legacy .login button { display: block; width: 100%; margin-top: 20px; background: #fbbf24; color: #020617; font-weight: bold; }
#werkstatt-legacy .error { color: #fca5a5; }
#werkstatt-legacy .login .error { color: #fca5a5; }
#werkstatt-legacy .notice { color: #fcd34d; margin: 0 0 12px; }
@media (max-width: 800px) {
  #werkstatt-legacy { padding: 14px; }
  #werkstatt-legacy h1 { font-size: 36px; }
  #werkstatt-legacy table { font-size: 14px; }
  #werkstatt-legacy th, #werkstatt-legacy td { padding: 8px; }
  #werkstatt-legacy .switch { font-size: 14px; }
  #werkstatt-legacy h1 .mode-toggle { font-size: 16px; padding: 1px 10px 2px; }
  #werkstatt-legacy header.ov-header .ov-mode { width: 190px; }
  #werkstatt-legacy header.ov-header .ticker { padding-right: 12px; }
}
