:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#17253b;background:#f5f7fb;font-synthesis:none;--blue:#2668d9;--blue-dark:#1555bf;--green:#26ab72;--red:#e34c62;--amber:#efad31;--muted:#8793a5;--line:#e6eaf0}
*{box-sizing:border-box}
body{margin:0;display:flex;min-height:100vh}
#sidebar{width:250px;background:#111f35;color:#d8e3f2;display:flex;flex-direction:column;padding:25px 16px;flex-shrink:0}
.brand{font-weight:750;font-size:19px;letter-spacing:-.4px;color:white;padding:5px 10px 28px}
.nav{display:grid;gap:6px}
.nav button{border:0;background:transparent;color:#aab9cf;padding:12px;border-radius:9px;text-align:left;font-size:14px;cursor:pointer}
.nav button.active,.nav button:hover{background:#203450;color:#fff}
.nav button span{margin-left:10px}
.profile{margin-top:auto;padding:14px 10px 0;border-top:1px solid #293a52;display:flex;justify-content:space-between;align-items:center;gap:8px}
.profile .plain{background:none;color:#d8e3f2;text-align:left;padding:0;display:grid;cursor:pointer}
.profile small{color:#8aa0bd;font-size:11px}
main{flex:1;min-width:0;padding:0 36px 50px}
header{height:98px;display:flex;align-items:center;gap:15px;border-bottom:1px solid #e2e7ee;margin-bottom:24px}
header small,.eyebrow{font-size:10px;letter-spacing:1.2px;color:#8996a9;font-weight:700}
h1{font-size:24px;margin:4px 0}
h2{margin:0;font-size:18px}
h3{margin:0;font-size:14px}
header #menu{display:none}
.topright{margin-left:auto;display:flex;gap:10px;align-items:center}
.pill,.tag{border-radius:99px;padding:5px 10px;background:#eaf2ff;color:#2765aa;font-size:11px;font-weight:650;white-space:nowrap}
.pill.demo{background:#fff3d9;color:#845716}
.grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:15px}
.grid.cols-3{grid-template-columns:repeat(3,minmax(200px,1fr))}
.grid.cols-2{grid-template-columns:repeat(2,minmax(200px,1fr))}
.card,.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:20px;box-shadow:0 2px 8px #1a2a4006}
.card.clickable{cursor:pointer}
.card.clickable:hover{border-color:#b9c8e2}
.stat{font-size:30px;font-weight:700;margin:8px 0 4px}
.stat.bad{color:var(--red)}.stat.good{color:var(--green)}
.muted{color:var(--muted);font-size:13px}
.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.between{justify-content:space-between}
.section{margin:24px 0 12px}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 18px;flex-wrap:wrap}
.toolbar input,.toolbar select{max-width:280px;width:auto}
button{font:inherit;cursor:pointer;border:0}
button:disabled{opacity:.5;cursor:default}
.primary{background:var(--blue);color:white;border-radius:8px;padding:10px 15px;font-weight:650}
.primary:hover{background:var(--blue-dark)}
.danger{background:#fdebed;color:#b63545;border-radius:8px;padding:10px 15px;font-weight:650}
.secondary,.icon,#refresh,#menu,#logout{background:white;border:1px solid #e0e5ed;border-radius:8px;padding:9px 12px;color:#41536b}
.secondary.small,.small{padding:5px 9px;font-size:12px}
.secondary:hover{background:#f5f7fb}
.icon{font-size:20px;line-height:1}
.table{width:100%;border-collapse:collapse;background:white}
.table th,.table td{text-align:left;padding:12px 10px;border-bottom:1px solid #edf0f4;font-size:13px;vertical-align:top}
.table th{color:#8190a4;font-size:11px;text-transform:uppercase;letter-spacing:.5px;white-space:nowrap}
.table tr:last-child td{border-bottom:0}
.table td.actions{white-space:nowrap;text-align:right}
.table td.actions button{margin-left:4px}
.scroll{overflow:auto}
.dot{display:inline-block;width:8px;height:8px;border-radius:99px;background:#95a1b2;margin-right:7px}
.dot.up{background:var(--green)}.dot.down{background:var(--red)}.dot.warning{background:var(--amber)}
.empty{text-align:center;padding:40px 15px;color:#718096}
.notice{padding:12px 15px;border-radius:8px;background:#fff3d9;color:#845716;margin-bottom:15px}
.notice.info{background:#eaf2ff;color:#2765aa}
.notice.ok{background:#e5f7ed;color:#218654}
.notice.fail{background:#fdebed;color:#b63545}
.hidden{display:none!important}
.login{position:fixed;inset:0;background:#f5f7fb;z-index:4;display:grid;place-items:center}
.login form{background:white;width:min(390px,92vw);padding:32px;border-radius:16px;box-shadow:0 10px 50px #10233a15}
.login label,.field{display:grid;gap:6px;margin:12px 0;font-size:13px;font-weight:600}
.field.inline{display:flex;align-items:center;gap:8px;font-weight:500}
.field.inline input{width:auto}
input,select,textarea{width:100%;font:inherit;border:1px solid #dce2ea;border-radius:7px;padding:9px 10px;color:#23334b;background:white}
textarea{min-height:90px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}
.field small{font-weight:400;color:#8290a1}
.error{color:#b3263e;font-size:13px;min-height:1em}
.modalhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
dialog{border:0;border-radius:14px;width:min(760px,94vw);max-height:92vh;padding:24px;box-shadow:0 24px 100px #12243d40}
dialog.wide{width:min(1000px,96vw)}
dialog::backdrop{background:#101e32a6}
#modalbody{max-height:70vh;overflow:auto;padding-right:5px}
.actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}
.checkcard{border:1px solid var(--line);padding:13px;border-radius:9px;margin:10px 0;background:#fafbfd}
.checkcard .row.head{justify-content:space-between;margin-bottom:6px}
.cols{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.cols-3{grid-template-columns:1fr 1fr 1fr}
.json{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;min-height:320px;font-size:12px}
pre.log{background:#0f1a2b;color:#d8e3f2;padding:14px;border-radius:9px;font-size:12px;max-height:50vh;overflow:auto;white-space:pre-wrap}
pre.code{background:#f3f5f9;padding:12px;border-radius:8px;font-size:12px;max-height:40vh;overflow:auto}
.res-ok{color:#1f8a57;font-weight:650}.res-bad{color:#b63545;font-weight:650}
.badge{font-size:11px;padding:4px 8px;border-radius:99px;background:#f0f2f5;white-space:nowrap}
.badge.ok{background:#e5f7ed;color:#218654}
.badge.fail{background:#fdebed;color:#b63545}
.badge.run{background:#eaf2ff;color:#2765aa}
.badge.wait{background:#fff3d9;color:#845716}
.tabs{display:flex;gap:6px;border-bottom:1px solid var(--line);margin-bottom:16px}
.tabs button{background:none;padding:10px 14px;color:#64748b;border-bottom:2px solid transparent;border-radius:0}
.tabs button.active{color:var(--blue);border-bottom-color:var(--blue);font-weight:650}
.steps{display:flex;gap:8px;flex-wrap:wrap}
.step{padding:6px 10px;border-radius:8px;background:#f0f2f5;font-size:12px}
.step.erfolgreich{background:#e5f7ed;color:#218654}
.step.läuft{background:#eaf2ff;color:#2765aa}
.step.fehlgeschlagen{background:#fdebed;color:#b63545}
.kv{display:grid;grid-template-columns:max-content 1fr;gap:4px 16px;font-size:13px}
.kv b{color:#64748b;font-weight:600}
.bars{display:flex;align-items:flex-end;gap:2px;height:60px;margin:8px 0}
.bars i{flex:1;background:var(--green);min-width:3px;border-radius:2px 2px 0 0}
.bars i.down{background:var(--red)}
#toasts{position:fixed;inset:auto 20px 20px auto;margin:0;padding:0;border:0;background:transparent;overflow:visible;display:grid;gap:8px;z-index:9}
#toasts:not(:popover-open){display:grid}
#toasts:popover-open{display:grid}
.toast{background:#17253b;color:white;padding:12px 16px;border-radius:9px;box-shadow:0 6px 30px #0003;font-size:13px;max-width:460px;cursor:pointer;word-break:break-word}
.toast.ok{background:#1f8a57}.toast.fail{background:#b63545}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}
.tree{margin-left:16px;border-left:2px solid #edf0f4;padding-left:12px}
.appgroup{border:1px solid var(--line);border-radius:9px;padding:10px 12px;margin:6px 0;background:#fafbfd}.appgroup .field.inline{margin:6px 0}
details summary{cursor:pointer;font-weight:600;font-size:13px;color:#41536b}
@media(max-width:900px){#sidebar{width:65px;padding:18px 8px}.brand span,.nav button span,.profile span,.profile small{display:none}.nav button{text-align:center}main{padding:0 18px}.grid{grid-template-columns:repeat(2,1fr)}.cols,.cols-3{grid-template-columns:1fr}}
@media(max-width:570px){#sidebar{position:fixed;z-index:3;inset:0 auto 0 0;width:250px;transform:translateX(-100%);transition:.2s}#sidebar.open{transform:none}#sidebar .brand span,#sidebar .nav button span,#sidebar .profile span{display:inline}header #menu{display:block}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.card{padding:14px}.stat{font-size:24px}main{padding:0 13px}.table th,.table td{padding:10px 8px;font-size:12px}}

/* Kostenabschätzung (Hetzner) */
.estimate{margin:12px 0}
.estimate .table.compact td,.estimate .table.compact th{padding:6px 8px;font-size:13px}
.estimate .table tfoot th{border-top:2px solid var(--border, #d9dee7);background:#f6f8fb}
.table .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.estimate ul.small{margin:6px 0 0 18px;font-size:12px;line-height:1.5}

.badge.clickable{cursor:pointer;text-decoration:none}
.badge.clickable:hover{filter:brightness(.95)}

.field.inline.locked input[type=checkbox]{accent-color:#218654}
