/* ============================================================
   orandke ONE  |  Update-Server (Release-Verwaltung)
   M365-Look, exakt an der Haupt-App ausgerichtet. Kein CDN nötig.
   ============================================================ */
* { box-sizing: border-box; }
:root {
  --okred:#D70041; --okred-600:#B80036; --okred-50:#FFF0F3; --okred-100:#FFD6E0;
  --okblue:#0F6CBD; --okblue-dark:#0d5aa0;
  --ink:#1E293B; --muted:#64748B; --faint:#94A3B8; --line:#E2E8F0; --line-soft:#F1F5F9; --bg:#F1F5F9;
}
body { font-family:'Segoe UI',system-ui,-apple-system,BlinkMacSystemFont,Arial,sans-serif; margin:0; background:var(--bg); color:var(--ink); -webkit-font-smoothing:antialiased; font-size:14px; }
.hidden { display:none !important; }
svg.ic { width:1em; height:1em; vertical-align:-0.125em; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

/* Login */
.login-wrap { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:16px; }
.login-card { width:100%; max-width:380px; }

/* App-Layout */
.app { min-height:100vh; display:flex; }
.sidebar { width:240px; background:#fff; border-right:1px solid var(--line); display:flex; flex-direction:column; flex-shrink:0; }
.sidebar-brand { display:flex; align-items:center; gap:8px; padding:16px; border-bottom:1px solid var(--line-soft); }
.sidebar-nav { flex:1; padding:12px; }
.sidebar-foot { padding:12px; border-top:1px solid var(--line-soft); }
.nav-label { font-size:10px; font-weight:700; text-transform:uppercase; color:var(--faint); letter-spacing:.05em; padding:6px 12px 4px; }
.sidenav-item { display:flex; align-items:center; gap:11px; width:100%; text-align:left; font-size:14px; color:#475569; padding:9px 12px; border-radius:8px; transition:background .1s; cursor:pointer; border:none; background:transparent; margin-bottom:1px; }
.sidenav-item .ic { font-size:17px; width:20px; }
.sidenav-item:hover { background:var(--line-soft); }
.sidenav-item.active { background:#E6F1FB; color:#185FA5; font-weight:600; }
.main { flex:1; overflow-y:auto; }
.main-inner { max-width:900px; margin:0 auto; padding:28px 28px 64px; }

/* Branding */
.brand-logo { width:34px; height:34px; border-radius:9px; flex-shrink:0; }
.brand-logo-sm { width:32px; height:32px; border-radius:8px; }
.brand-word { font-weight:900; font-size:19px; letter-spacing:-.01em; }
.brand-word-sm { font-weight:900; font-size:16px; letter-spacing:-.01em; }
.brand-badge { font-size:10px; font-weight:800; color:var(--okred); background:var(--okred-50); border:1px solid var(--okred-100); border-radius:4px; padding:1px 6px; margin-left:4px; letter-spacing:.12em; }

/* Karten - exakt wie card-light + custom-shadow der App (flach, dezent) */
.card { background:#fff; border:1px solid var(--line); border-radius:12px; padding:24px; box-shadow:0 4px 15px -3px rgba(0,0,0,.05), 0 2px 6px -2px rgba(0,0,0,.03); margin-bottom:22px; }
.card-title { font-size:18px; font-weight:700; margin:0 0 4px; display:flex; align-items:center; gap:8px; color:#0f172a; }
.card-title .ic { color:var(--okred); font-size:19px; }
.card-desc { font-size:12px; color:var(--muted); margin:0 0 16px; }
.page-h1 { font-size:22px; font-weight:700; margin:0 0 3px; color:#0f172a; }
.page-sub { font-size:14px; color:var(--muted); margin:0 0 20px; }

/* Befehlsleiste (Command Bar, wie in der App über Listen) */
.cmdbar { display:flex; align-items:center; gap:6px; padding:0 0 14px; margin-bottom:14px; border-bottom:1px solid var(--line-soft); flex-wrap:wrap; }
.cmdbar-sep { width:1px; height:20px; background:var(--line); margin:0 4px; }
.cmd { display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:600; color:#444441; background:transparent; border:none; border-radius:6px; padding:7px 10px; cursor:pointer; transition:background .1s; }
.cmd .ic { font-size:15px; }
.cmd:hover { background:var(--line-soft); }
.cmd.primary { color:#fff; background:var(--okblue); }
.cmd.primary:hover { background:var(--okblue-dark); }
.cmd.danger { color:#993c1d; }
.cmd.danger:hover { background:#FAECE7; }

/* Formulare */
.lbl { display:block; font-size:11px; font-weight:700; color:#475569; margin-bottom:5px; text-transform:uppercase; letter-spacing:.02em; }
.inp { width:100%; border:1px solid #CBD5E1; border-radius:8px; padding:8px 11px; font-size:14px; background:#fff; font-family:inherit; }
.inp:focus { outline:none; border-color:var(--okblue); box-shadow:0 0 0 3px rgba(15,108,189,.12); }
.grid3 { display:grid; grid-template-columns:1fr 2fr; gap:16px; }
.row-end { display:flex; gap:12px; align-items:flex-end; flex-wrap:wrap; }
.field-grow { flex:1; min-width:200px; }

/* Buttons - exakt wie App: text-xs (12px), font-bold, px-3 py-2, rounded-lg */
.btn { font-family:inherit; font-weight:700; font-size:12px; padding:8px 14px; border-radius:8px; border:none; cursor:pointer; display:inline-flex; align-items:center; gap:6px; text-decoration:none; transition:background .1s; }
.btn .ic { font-size:14px; }
.btn-primary { background:var(--okblue); color:#fff; }
.btn-primary:hover { background:var(--okblue-dark); }
.btn-red { background:var(--okred); color:#fff; }
.btn-red:hover { background:var(--okred-600); }
.btn-ghost { background:#fff; color:#475569; border:1px solid #CBD5E1; }
.btn-ghost:hover { background:#F8FAFC; }
.btn-ghost.danger { color:var(--okred); border-color:var(--okred-100); }
.btn-ghost.danger:hover { background:var(--okred-50); }
.btn-sm { font-size:11px; padding:6px 11px; }
.btn-block { width:100%; justify-content:center; }
.msg { font-size:13px; font-weight:600; margin-top:8px; }

/* Drop-Zone */
.dropzone { border:2px dashed #CBD5E1; border-radius:10px; padding:30px; text-align:center; cursor:pointer; transition:border-color .15s, background .15s; }
.dropzone:hover { border-color:var(--okblue); background:#EFF6FF; }
.dropzone .ic { font-size:32px; color:#CBD5E1; }
.dropzone-hint { font-size:14px; color:var(--muted); margin-top:8px; }
.dropzone-note { font-size:12px; color:var(--faint); margin-top:4px; }

/* Sicherheits-Hinweis */
.sec-check { display:flex; align-items:center; gap:10px; cursor:pointer; background:#FFFBEB; border:1px solid #FDE68A; border-radius:8px; padding:10px 12px; }
.sec-check span { font-size:12px; font-weight:700; color:#92400E; }

/* Datei-Vorschau */
.file-row { display:flex; align-items:center; gap:10px; border:1px solid var(--line); border-radius:8px; padding:8px 12px; margin-bottom:6px; font-size:13px; }
.file-row .fname { flex:1; font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.file-target-ok { color:#16a34a; font-family:monospace; font-size:12px; }
.file-remove { color:var(--faint); cursor:pointer; background:none; border:none; font-size:15px; padding:0 2px; }
.file-remove:hover { color:var(--okred); }
.file-needs { border:1px solid #FDE68A; background:#FFFBEB; border-radius:10px; padding:12px; margin-bottom:6px; }
.file-needs-head { display:flex; align-items:center; gap:8px; margin-bottom:10px; font-size:13px; }
.file-choose { display:flex; gap:8px; }
.choose-btn { flex:1; text-align:left; border:1px solid var(--line); border-radius:8px; padding:8px 11px; cursor:pointer; background:#fff; transition:border-color .1s, background .1s; }
.choose-btn:hover { border-color:#CBD5E1; }
.choose-btn.sel { border-color:var(--okblue); background:#EFF6FF; }
.choose-btn .ct { font-size:12px; font-weight:700; color:#475569; }
.choose-btn.sel .ct { color:var(--okblue); }
.choose-btn .cd { font-size:10px; color:var(--faint); margin-top:2px; }

/* admin-list-table - 1:1 aus der Haupt-App übernommen */
.admin-list-table { width:100%; font-size:13px; border-collapse:collapse; }
.admin-list-table thead th { text-align:left; font-size:11px; font-weight:700; color:#64748B; text-transform:uppercase; letter-spacing:.03em; padding:10px 12px; border-bottom:1px solid #E2E8F0; white-space:nowrap; }
.admin-list-table tbody td { padding:13px 12px; border-bottom:1px solid #F1F5F9; vertical-align:middle; }
.admin-list-table tbody tr { transition:background .1s; }
.admin-list-table tbody tr:hover { background:#F8FAFC; }
.list-empty { font-size:14px; color:var(--faint); text-align:center; padding:24px 0; }

/* Badges + Text */
.badge { font-size:10px; font-weight:800; padding:2px 8px; border-radius:5px; display:inline-block; }
.badge-sec { background:#FEF3C7; color:#92400E; }
.badge-ok { background:#DCFCE7; color:#166534; }
.badge-warn { background:#FEE2E2; color:#991B1B; }
.badge-neutral { background:#F1F5F9; color:#475569; }
.mono { font-family:monospace; }
.text-muted { color:var(--muted); }
.text-faint { color:var(--faint); }
.small { font-size:12px; }
.dot { width:7px; height:7px; border-radius:50%; display:inline-block; margin-right:5px; vertical-align:middle; }
