/* Multistream-Panel, bewusst schlicht. */
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #14161a;
    color: #e6e6e6;
}
header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    background: #1d2026;
    border-bottom: 1px solid #2c313a;
}
h1 { font-size: 18px; margin: 0; }
h2 { font-size: 15px; margin: 24px 0 10px; color: #aab2c0; }
.logout { margin-left: auto; color: #8fa3c0; font-size: 13px; }
main { max-width: 960px; margin: 0 auto; padding: 16px 24px 48px; }

.status {
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 12px;
    background: #2c313a;
}
.status.live { background: #1e4620; color: #7fe08a; }
.status.offline { color: #9aa3b2; }
.status.fehler-status { background: #4a1f1f; color: #f0a0a0; }

.hinweis {
    background: #23282f;
    border-left: 3px solid #5b7db1;
    padding: 8px 12px;
    font-size: 13px;
    color: #b8c2d0;
}
.hinweis.klein { font-size: 12px; margin: 4px 0 12px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #2c313a; vertical-align: middle; }
th { color: #8792a3; font-weight: 500; font-size: 12px; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; word-break: break-all; }
.leer { color: #78818f; text-align: center; padding: 20px; }
.aktionen { white-space: nowrap; text-align: right; }

.badge {
    display: inline-block;
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 9px;
    margin-left: 6px;
    vertical-align: 1px;
}
.live-badge { background: #1e4620; color: #7fe08a; }
.rtmps-badge { background: #4a3a1f; color: #e0c07f; }

button {
    background: #3b6ea5;
    border: 0;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}
button:hover { filter: brightness(1.12); }
button.sekundaer { background: #3a404b; }
button.mini {
    padding: 3px 9px;
    font-size: 12px;
    background: #3a404b;
    color: #c6cdd8;
}
button.mini.danger { background: #5a2626; color: #f0b0b0; }

form#dest-form { max-width: 520px; display: flex; flex-direction: column; gap: 10px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #aab2c0; }
input[type=text], input[type=password], input[type=number] {
    background: #1d2026;
    border: 1px solid #343b46;
    color: #e6e6e6;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 14px;
}
input:focus { outline: 1px solid #5b7db1; }
.form-buttons { display: flex; gap: 10px; margin-top: 4px; }

.key-cell { white-space: nowrap; }
.key-value { margin-right: 6px; }

.switch { position: relative; display: inline-block; width: 40px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; inset: 0;
    background: #3a404b;
    border-radius: 22px;
    transition: background .15s;
}
.slider::before {
    content: "";
    position: absolute;
    width: 16px; height: 16px;
    left: 3px; top: 3px;
    background: #cfd6e0;
    border-radius: 50%;
    transition: transform .15s;
}
.switch input:checked + .slider { background: #2e7d32; }
.switch input:checked + .slider::before { transform: translateX(18px); }
.switch input:disabled + .slider { opacity: .4; cursor: not-allowed; }

/* Login */
.login-body { display: grid; place-items: center; min-height: 100vh; }
.login-box {
    background: #1d2026;
    border: 1px solid #2c313a;
    border-radius: 10px;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 320px;
}
.login-box h1 { font-size: 17px; margin-bottom: 8px; }
.fehler { color: #f0a0a0; font-size: 13px; margin: 0; }
