/* Central – CrewLAN-Farbschema (Navy/Gold) */
:root {
  --navy: #1B3A6B; --navy-d: #142B50; --navy-dd: #0F2140; --navy-l: #26497F;
  --gold: #F5B333; --gold-d: #B9800F; --gold-l: #FDF1D6;
  --bg: #F3F5F9; --card: #fff; --line: #DFE4EC; --line-s: #C9D1DE;
  --text: #17233A; --text-2: #55627A; --text-3: #8592A8;
  --green: #1E8E52; --green-l: #E3F4EA; --red: #C0352B; --red-l: #FBE7E5; --amber: #C98A0C; --amber-l: #FDF1D6;
  --r: 10px; --r-s: 7px;
  --side: 248px; --mtop: 56px; --mbar: 64px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--sans); color: var(--text); background: var(--bg); }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; font-weight: 650; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 16px; font-weight: 650; margin: 0 0 12px; }
h3 { font-size: 14px; font-weight: 650; margin: 18px 0 6px; }
code, pre { font-family: var(--mono); font-size: 13px; background: #EEF1F6; border-radius: 5px; padding: 1px 5px; }
pre { padding: 10px 12px; white-space: pre-wrap; word-break: break-all; margin: 0; }
small { font-size: 12px; }
[hidden] { display: none !important; }
.i { width: 18px; height: 18px; flex-shrink: 0; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i.sm { width: 15px; height: 15px; vertical-align: -2px; }
.muted { color: var(--text-3); }
.t-red { color: var(--red); } .t-green { color: var(--green); } .t-gold { color: var(--gold-d); }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.hint { color: var(--text-3); font-size: 13px; margin: 8px 2px 16px; }

/* ---------- Grundlayout ---------- */
.app { min-height: 100vh; }
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--navy-d); color: #C6D2E6;
  display: flex; flex-direction: column; z-index: 40; overflow-y: auto;
}
.side .brand { display: flex; align-items: center; gap: 10px; padding: 20px 20px 18px; color: var(--gold); font-weight: 700; font-size: 18px; letter-spacing: .02em; }
.side .brand .i { width: 24px; height: 24px; }
.side .brand:hover { text-decoration: none; }
.side nav { display: flex; flex-direction: column; padding: 0 0 12px; flex: 1; }
.side nav a, .side-foot a, .side-foot .linkbtn {
  display: flex; align-items: center; gap: 10px; padding: 8px 20px; color: #C6D2E6; font-size: 14px; border-left: 3px solid transparent; position: relative;
}
.side nav a span:not(.cdot), .side-foot a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side nav a em { font-style: normal; font-size: 12px; color: #8EA0C0; }
.side nav a:hover, .side-foot a:hover, .side-foot .linkbtn:hover { background: rgba(255,255,255,.05); text-decoration: none; color: #fff; }
.side nav a.on, .side-foot a.on { background: var(--navy); color: #fff; border-left-color: var(--gold); }
.side nav a.on em { color: #C6D2E6; }
.side .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #7F92B4; padding: 18px 20px 6px; }
.cdot { position: absolute; left: 12px; top: 50%; width: 5px; height: 5px; border-radius: 50%; margin-top: -2.5px; display: none; }
.side-foot { border-top: 1px solid rgba(255,255,255,.08); padding: 10px 0 14px; }
.side-foot form { margin: 0; }
.side-foot .linkbtn { width: 100%; background: none; border: 0; border-left: 3px solid transparent; cursor: pointer; font: inherit; font-size: 14px; text-align: left; }
.side-foot .ver { padding: 8px 20px 0; font-size: 11px; color: #6F82A6; }
.badge-red { background: var(--red); color: #fff; font-size: 11px; font-weight: 700; border-radius: 9px; padding: 0 6px; line-height: 18px; min-width: 18px; text-align: center; }
.main { margin-left: var(--side); padding: 26px 32px 48px; max-width: calc(1280px + var(--side)); }
.mtop, .mbar, .scrim { display: none; }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 14px; margin-bottom: 12px; }

/* ---------- Bausteine ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin-bottom: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.card-head form { margin: 0; }
.card-accent { border-color: var(--gold); background: #FFFCF4; }
.table-card { padding: 0; overflow: hidden; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.grid2 > .card { margin-bottom: 0; }
.grid2 + * { margin-top: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.grid3 > .card { margin-bottom: 0; }
.grid3 h2 { display: flex; align-items: center; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 14px;
  border: 1px solid var(--line-s); border-radius: var(--r-s); background: #fff; color: var(--text); font: 500 14px var(--sans);
  cursor: pointer; white-space: nowrap; text-decoration: none !important; transition: background .12s, border-color .12s;
}
.btn:hover { background: #F4F6FA; border-color: #B6C0D0; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary .i { color: var(--gold); }
.btn-primary:hover { background: var(--navy-l); border-color: var(--navy-l); }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger:hover { background: #A52A21; border-color: #A52A21; }
.btn-ghost-danger { color: var(--red); border-color: transparent; background: transparent; }
.btn-ghost-danger:hover { background: var(--red-l); border-color: transparent; }
.btn-sm { height: 32px; padding: 0 10px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--r-s); border: 0; background: transparent; color: var(--text-2); cursor: pointer; }
.iconbtn:hover { background: #EEF1F6; color: var(--text); }
.iconbtn:disabled { opacity: .3; cursor: default; background: none; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--navy); cursor: pointer; font: inherit; display: inline-flex; align-items: center; gap: 4px; }
.linkbtn.danger { color: var(--red); }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.btnrow form { margin: 0; }
.spacer { flex: 1; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; color: var(--text); display: block; }
a.kpi:hover { border-color: var(--line-s); text-decoration: none; }
.kpi span { display: block; font-size: 12px; color: var(--text-2); }
.kpi b { display: block; font-size: 22px; font-weight: 650; margin-top: 2px; }

.toolbar { display: flex; gap: 10px; margin-bottom: 14px; }
.search, .sel { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line-s); border-radius: var(--r-s); padding: 0 12px; height: 40px; color: var(--text-3); }
.search { flex: 1; }
.search:focus-within, .sel:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,58,107,.12); }
.search input, .sel select { border: 0; outline: 0; background: transparent; font: 15px var(--sans); color: var(--text); flex: 1; min-width: 0; height: 100%; }
.search kbd { font: 11px var(--sans); color: var(--text-3); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }

/* Tabelle */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-2); padding: 10px 12px; border-bottom: 1px solid var(--line); background: #FAFBFD; white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid #EDF0F5; vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tr[data-href] { cursor: pointer; }
.tbl tr[data-href]:hover td { background: #F7F9FC; }
.tbl td small { display: block; color: var(--text-3); }
.tbl.compact td { padding: 6px 12px; font-size: 13px; }
.tbl tr.inactive td { opacity: .55; }
.card > .tbl.compact { margin: 0 -8px; width: calc(100% + 16px); }
.sites .c-fav { width: 44px; padding-right: 0; }
.sites .c-act, .tbl .c-act { width: 52px; text-align: right; }
.c-act form { display: inline; }
.sites .c-cat { width: 130px; } .sites .c-st { width: 170px; } .sites .c-ver { width: 130px; } .sites .c-ssl { width: 90px; }
.site-name { display: flex; align-items: center; gap: 12px; }
.site-name b { font-weight: 600; }

.sico { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0; background: #E6ECF6; color: var(--navy); }
.sico .i { width: 20px; height: 20px; }
.sico.sm { width: 28px; height: 28px; border-radius: 7px; } .sico.sm .i { width: 16px; height: 16px; }
.sico-lg { width: 52px; height: 52px; border-radius: 12px; } .sico-lg .i { width: 28px; height: 28px; }
.c-navy { background: #E6ECF6; color: #1B3A6B; } .c-gold { background: #FDF1D6; color: #8A5E07; }
.c-rose { background: #FBE6ED; color: #96284F; } .c-green { background: #E3F4EA; color: #19683E; }
.c-teal { background: #DFF3F1; color: #0F5F58; } .c-violet { background: #EDE8F8; color: #4D3A8E; }
.c-amber { background: #FCEFD9; color: #8A5106; } .c-gray { background: #ECEEF2; color: #4F5868; }
.cdot.c-navy { background: #7F9CCB; } .cdot.c-gold, .cdot.c-amber { background: var(--gold); } .cdot.c-rose { background: #E68AAA; }
.cdot.c-green { background: #5CC48C; } .cdot.c-teal { background: #4EC2B7; } .cdot.c-violet { background: #A896E0; } .cdot.c-gray { background: #9AA3B2; }
.side nav a .i { color: #8EA0C0; } .side nav a.on .i { color: var(--gold); }

.pill { display: inline-block; font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 20px; background: #EEF1F6; color: var(--text-2); white-space: nowrap; }
.pill.c-navy { background: #E6ECF6; color: #1B3A6B; } .pill.c-gold { background: #FDF1D6; color: #8A5E07; }
.pill.c-rose { background: #FBE6ED; color: #96284F; } .pill.c-green { background: #E3F4EA; color: #19683E; }
.pill.c-teal { background: #DFF3F1; color: #0F5F58; } .pill.c-violet { background: #EDE8F8; color: #4D3A8E; }
.pill.c-amber { background: #FCEFD9; color: #8A5106; } .pill.c-gray { background: #ECEEF2; color: #4F5868; }
.pill-state { background: var(--amber-l); color: #8A5106; font-size: 11px; vertical-align: 2px; }
.pill-admin { background: var(--navy); color: var(--gold); }

.st { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; white-space: nowrap; }
.st .dot { width: 9px; height: 9px; border-radius: 50%; background: #B9C1CE; display: inline-block; }
.st-up .dot { background: var(--green); } .st-slow .dot { background: var(--amber); } .st-down .dot { background: var(--red); }
.st-down { color: var(--red); font-weight: 600; } .st-off, .st-unknown { color: var(--text-3); }

.star { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; color: #BAC2D0; cursor: pointer; border-radius: 7px; }
.star:hover { background: #F3F0E4; color: var(--gold-d); }
.star.on { color: var(--gold); } .star.on .i { fill: var(--gold); }
.favform { margin: 0; display: inline; }

/* Steckbrief */
.site-head { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.site-img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); }
.site-title { flex: 1; min-width: 0; }
.site-title p { margin: 2px 0 0; color: var(--text-2); font-size: 14px; }
.site-actions { display: flex; gap: 8px; align-items: center; }
.site-desc { color: var(--text-2); margin: 0 0 16px; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 0; color: var(--text-2); font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { color: var(--navy); border-bottom-color: var(--gold); font-weight: 600; }
.kv { width: 100%; border-collapse: collapse; font-size: 14px; }
.kv th { text-align: left; font-weight: 400; color: var(--text-2); padding: 7px 12px 7px 0; width: 42%; vertical-align: top; }
.kv td { padding: 7px 0; word-break: break-word; }
.kv tr + tr th, .kv tr + tr td { border-top: 1px solid #EEF1F5; }
.bars { display: flex; gap: 3px; margin: 4px 0 2px; }
.bars i { flex: 1; height: 22px; border-radius: 3px; background: #E3E7EE; display: block; min-width: 3px; }
.bars i.b-up { background: #2FA866; } .bars i.b-slow { background: #E8AA2A; } .bars i.b-down { background: var(--red); }
.bars-legend { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); margin-bottom: 8px; }
.notes { white-space: normal; color: var(--text); }

/* Überwachung */
.mon-list { margin: -6px 0 0; }
.mon-row { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid #EEF1F5; color: var(--text); }
.mon-row:hover { text-decoration: none; background: #FAFBFD; }
.mon-row:last-child { border-bottom: 0; }
.mon-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mon-name > span:last-child { min-width: 0; } .mon-name b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mon-row .bars { margin: 0; } .mon-row .bars i { height: 18px; }
.mini { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid #EEF1F5; color: var(--text); font-size: 14px; }
.mini:hover { text-decoration: none; color: var(--navy); }
.mini b { font-weight: 500; }
details.card summary { cursor: pointer; font-weight: 600; }
details.card[open] summary { margin-bottom: 8px; }

/* Formulare */
.form .card h2 small { font-weight: 400; font-size: 12px; margin-left: 6px; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin-bottom: 12px; }
.f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.f > span:first-child { font-size: 13px; font-weight: 500; color: var(--text-2); }
.f small { color: var(--text-3); }
.f-full { grid-column: 1 / -1; }
.f-err { color: var(--red); font-size: 12px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], input[type=search], select, textarea {
  font: 15px var(--sans); color: var(--text); background: #fff; border: 1px solid var(--line-s); border-radius: var(--r-s);
  height: 40px; padding: 0 11px; width: 100%; min-width: 0; outline: 0; transition: border-color .12s, box-shadow .12s;
}
.search input, .sel select { border: 0; height: 100%; padding: 0; box-shadow: none; }
textarea { height: auto; padding: 10px 11px; resize: vertical; line-height: 1.5; }
select { appearance: none; -webkit-appearance: none; padding-right: 32px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2355627A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6-6'/%3E%3C/svg%3E") no-repeat right 11px center; }
.sel select { background-position: right 0 center; padding-right: 20px; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,58,107,.12); }
.has-err input, .has-err select { border-color: var(--red); }
input[type=file] { font: 14px var(--sans); padding: 8px 0; }
input::placeholder, textarea::placeholder { color: #A3ADBD; }
.form-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.form-row .f-grow { flex: 1; min-width: 220px; }
.form-row .f-date { width: 170px; } .form-row .f-ver { width: 120px; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 6px 0 24px; }
.iconpick { display: flex; gap: 8px; align-items: center; }
.iconpick select { flex: 1; }
.img-cur { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.img-cur img { width: 64px; height: 40px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; margin: 4px 0 12px; font-size: 14px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { width: 38px; height: 22px; border-radius: 11px; background: #C9D1DE; position: relative; flex-shrink: 0; transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--navy); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(27,58,107,.25); }
.checkline { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--text-2); }
.checks { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.checks.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 16px; }
.checks-grp { grid-column: 1 / -1; font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; margin: 10px 0 2px; }
.checkrow { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.checkrow:hover { background: #F5F7FA; }
.checkrow small { color: var(--text-3); }
.checkrow.disabled { cursor: default; opacity: .7; }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--navy); flex-shrink: 0; }
.note { display: flex; gap: 10px; background: #F3F6FB; border: 1px solid #DCE4F0; border-radius: var(--r-s); padding: 10px 12px; font-size: 13px; color: var(--text-2); margin-bottom: 14px; }
.note .i { color: var(--navy); margin-top: 1px; }

/* Listen, Verlauf, Ideen */
.list { padding: 4px 8px; }
.li { display: flex; align-items: center; gap: 8px; padding: 8px 4px; border-bottom: 1px solid #EEF1F5; }
.li:last-child { border-bottom: 0; }
.li form { margin: 0; }
.li-txt { flex: 1; min-width: 0; }
.li-txt small { display: block; color: var(--text-3); }
.li.done .li-txt { color: var(--text-3); text-decoration: line-through; }
.li.done .li-txt small { text-decoration: none; }
.check { border: 0; background: none; color: var(--text-3); cursor: pointer; padding: 4px; display: flex; }
.check.on { color: var(--green); }
.check .i { width: 21px; height: 21px; }
.cat-li { padding: 8px 4px; }
.cat-form { display: flex; align-items: center; gap: 10px; flex: 1; flex-wrap: wrap; margin: 0; }
.cat-form .iconpick { width: 230px; }
.cat-form input[type=text] { width: 200px; flex: 1; min-width: 140px; }
.cat-form select[name=color] { width: 130px; }
.timeline { position: relative; margin: 0 0 16px; }
.tl-item { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; gap: 14px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 8px; }
.tl-item.auto { background: #FAFBFD; }
.tl-date { color: var(--text-2); font-size: 13px; padding-top: 2px; }
.tl-body small { display: block; color: var(--text-3); }
.tl-item form { margin: 0; }

/* Benutzer-Kacheln */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tile { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .12s, transform .12s; }
.tile:hover { border-color: var(--line-s); transform: translateY(-1px); }
.tile-link { display: block; color: var(--text); }
.tile-link:hover { text-decoration: none; }
.tile-img { display: block; width: 100%; height: 120px; object-fit: cover; border-bottom: 1px solid var(--line); }
.tile-body { display: flex; align-items: center; gap: 12px; padding: 14px 52px 14px 14px; }
.tile-txt { min-width: 0; display: flex; flex-direction: column; }
.tile-txt b { font-weight: 600; } .tile-txt small { color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .favform { position: absolute; right: 10px; bottom: 15px; }

/* Meldungen, leere Zustände, Modal */
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: var(--r-s); margin-bottom: 14px; font-size: 14px; border: 1px solid; }
.flash > span { flex: 1; }
.flash .i { margin-top: 1px; }
.flash-ok { background: var(--green-l); border-color: #BFE3CD; color: #14572F; }
.flash-err { background: var(--red-l); border-color: #F2C3BE; color: #8C241C; }
.flash-warn { background: var(--amber-l); border-color: #F3D9A0; color: #774A05; }
.flash-x { border: 0; background: none; color: inherit; opacity: .6; cursor: pointer; padding: 0; display: flex; }
.flash a { color: inherit; text-decoration: underline; }
.empty { text-align: center; padding: 48px 20px; background: var(--card); border: 1px dashed var(--line-s); border-radius: var(--r); margin-bottom: 16px; }
.empty.small { padding: 22px; }
.empty p { color: var(--text-2); margin: 6px 0 16px; }
.empty.small p { margin: 0; }
.empty-ico { width: 52px; height: 52px; border-radius: 14px; background: #E6ECF6; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.empty-ico .i { width: 26px; height: 26px; }
.modal { position: fixed; inset: 0; background: rgba(15, 26, 48, .5); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal-box { background: #fff; border-radius: 14px; padding: 22px 24px 18px; width: 100%; max-width: 420px; box-shadow: 0 20px 50px rgba(0,0,0,.25); animation: pop .14s ease-out; }
.modal-box h2 { font-size: 18px; margin-bottom: 8px; }
.modal-box p { color: var(--text-2); margin: 0 0 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0 16px; }
.codes code { font-size: 15px; padding: 8px; text-align: center; letter-spacing: .05em; }
.copy { display: flex; align-items: center; gap: 10px; background: #F3F6FB; border: 1px solid #DCE4F0; border-radius: var(--r-s); padding: 8px 8px 8px 12px; margin: 6px 0 8px; }
.copy code, .copy pre { flex: 1; min-width: 0; background: none; padding: 0; word-break: break-all; }

/* Anmeldung, Installer */
body.plain { background: var(--navy-d); min-height: 100vh; }
.plain-wrap { max-width: 420px; margin: 0 auto; padding: 48px 18px 40px; }
.plain-wrap.wide { max-width: 720px; }
.plain-brand { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--gold); font-weight: 700; font-size: 22px; margin-bottom: 22px; letter-spacing: .02em; }
.plain-brand .i { width: 28px; height: 28px; }
.auth { padding: 26px 26px 22px; max-width: 420px; margin: 0 auto; }
.auth h1 { font-size: 21px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.auth .f { margin-bottom: 14px; }
.auth .btn-block { margin-top: 6px; }
.auth .btn-block + .btn-block { margin-top: 10px; }
.otp { font-size: 22px !important; letter-spacing: .3em; text-align: center; font-family: var(--mono) !important; height: 48px !important; }
.steps { padding-left: 20px; margin: 14px 0; }
.steps li { margin-bottom: 10px; }
.qr { background: #fff; border: 1px solid var(--line); border-radius: 10px; width: 196px; height: 196px; margin: 10px 0 6px; display: flex; align-items: center; justify-content: center; padding: 8px; }
.qr img, .qr svg { width: 100%; height: 100%; }
.secret { display: inline-block; margin-top: 6px; font-size: 14px; letter-spacing: .05em; }
.small-details { font-size: 13px; margin-top: 8px; }
.small-details summary { cursor: pointer; color: var(--navy); }
.install { padding: 26px 28px; }
.install h1 { font-size: 22px; margin-bottom: 6px; display: flex; gap: 8px; align-items: center; }
.install h2 { margin-top: 22px; }
.wizard { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 24px; font-size: 13px; color: var(--text-3); flex-wrap: wrap; }
.wizard li { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 120px; }
.wizard li span { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-s); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.wizard li.on { color: var(--navy); font-weight: 600; } .wizard li.on span { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.wizard li.done span { background: var(--green-l); color: var(--green); border-color: #BFE3CD; }
.wizard .i { width: 14px; height: 14px; }
.checks-tbl { margin: 14px 0 18px; }

/* ---------- Handy und Tablet ---------- */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid3 { grid-template-columns: minmax(0, 1fr); }
  .sites .c-ssl, .sites .c-cat { display: none; }
  .checks.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hide-m { display: none !important; }
  .side { transform: translateX(-100%); transition: transform .2s ease; width: min(300px, 86vw); padding-top: env(safe-area-inset-top); }
  body.side-open .side { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(10,20,40,.45); z-index: 35; opacity: 0; pointer-events: none; transition: opacity .2s; }
  body.side-open .scrim { opacity: 1; pointer-events: auto; }
  .mtop {
    display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 30;
    height: calc(var(--mtop) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 12px 0 16px; background: var(--navy-d);
  }
  .mtop .brand { display: flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 700; font-size: 18px; }
  .mtop .brand .i { width: 22px; height: 22px; }
  .mtop-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: #C6D2E6; border-radius: 10px; }
  .mtop-btn .i { width: 22px; height: 22px; }
  .mbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--navy-d);
    height: calc(var(--mbar) + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom); align-items: center; justify-content: space-around;
  }
  .mbar a, .mbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: #A9B8D2; font: 500 11px var(--sans); background: none; border: 0; padding: 6px 0; position: relative; cursor: pointer; }
  .mbar a:hover { text-decoration: none; }
  .mbar .i { width: 23px; height: 23px; }
  .mbar .on { color: var(--gold); }
  .mbar .badge-red { position: absolute; top: 2px; left: 50%; margin-left: 6px; font-size: 10px; line-height: 16px; min-width: 16px; padding: 0 4px; }
  .mbar .mbar-plus { flex: 0 0 auto; width: 50px; height: 50px; border-radius: 50%; background: var(--gold); color: var(--navy-dd); justify-content: center; margin: 0 8px; padding: 0; }
  .mbar .mbar-plus .i { width: 26px; height: 26px; }
  .main { margin-left: 0; padding: 18px 14px calc(var(--mbar) + env(safe-area-inset-bottom) + 24px); }
  h1 { font-size: 21px; }
  .fgrid, .grid2 { grid-template-columns: minmax(0, 1fr); }
  .checks.cols { grid-template-columns: minmax(0, 1fr); }
  .toolbar { flex-direction: column; }
  .toolbar .search { flex: none; height: 44px; }
  .sites .c-st .st-off { display: none; }
  .kpis { gap: 8px; }
  .kpi { padding: 10px 12px; }
  .kpi b { font-size: 18px; }
  .sel { align-self: flex-start; }
  .mon-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .site-head { flex-wrap: wrap; }
  .site-actions { width: 100%; }
  .site-actions .btn-primary { flex: 1; }
  .tl-item { grid-template-columns: minmax(0, 1fr) auto; }
  .tl-date { grid-column: 1 / -1; padding: 0; }
  .cat-form .iconpick { width: 100%; }
  /* Website-Tabelle als Karten */
  .sites thead { display: none; }
  .sites, .sites tbody { display: block; }
  .sites tr { display: grid; grid-template-columns: 40px minmax(0, 1fr) 36px; grid-template-areas: "fav name act" "fav st act"; align-items: center; padding: 10px 6px 10px 2px; border-bottom: 1px solid #EDF0F5; }
  .sites tr:last-child { border-bottom: 0; }
  .sites td { display: block; border: 0; padding: 0; }
  .sites .c-fav { grid-area: fav; width: auto; } .sites .c-name { grid-area: name; } .sites .c-act { grid-area: act; width: auto; }
  .sites .c-st { grid-area: st; width: auto; padding-left: 48px; margin-top: 2px; }
  .sites .c-ver, .sites .c-ssl, .sites .c-cat { display: none; }
  .users thead { display: none; }
  .users tr { display: block; padding: 10px 12px; border-bottom: 1px solid #EDF0F5; }
  .users td { display: inline-block; border: 0; padding: 2px 8px 2px 0; }
  .users td:first-child { display: block; }
  .users .c-act { display: none; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .codes { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Statistik und Diagramme (1.1) ---------- */
.seg { display: inline-flex; background: #E8ECF3; border-radius: 9px; padding: 3px; gap: 2px; }
.seg a { padding: 6px 12px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.seg a:hover { text-decoration: none; color: var(--text); }
.seg a.on { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(20,43,80,.12); }
.page-head.sub { justify-content: flex-start; gap: 12px; margin-bottom: 14px; }
.small { font-size: 13px; }
.kpis-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kpis-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi-d { display: flex; align-items: center; gap: 3px; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.kpi-d.up { color: var(--green); } .kpi-d.down { color: var(--red); }
.sec-title { font-size: 18px; margin: 26px 0 12px; }
.grid2.grid-wide { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.grid2 + .grid2 { margin-top: 16px; }
.table-after { margin: -4px 0 16px; }
.viz-wrap { position: relative; }
.viz { display: block; width: 100%; height: auto; overflow: visible; }
.viz-m { display: none; }
.viz .grid { stroke: #E7EBF1; stroke-width: 1; }
.viz .ax { font: 11px var(--sans); fill: var(--text-3); }
.viz .ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.viz .band { fill: #C9D6EC; opacity: .55; }
.viz .hit rect { fill: transparent; }
.viz .hit line { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.viz .hit:hover line { opacity: 1; }
.viz .hitbar { fill: transparent; }
.viz .hitbar:hover { fill: rgba(27,58,107,.06); }
.viz-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12px; color: var(--text-2); }
.viz-legend span { display: inline-flex; align-items: center; gap: 6px; }
.viz-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.viz-table { margin-top: 12px; font-size: 13px; }
.viz-table summary { cursor: pointer; color: var(--navy); }
.viz-table-in { max-height: 320px; overflow: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; }
.viz-table-in .tbl th { position: sticky; top: 0; }
.tbl .num { text-align: right; }
.hb { display: flex; flex-direction: column; gap: 4px; }
.hb-row { display: grid; grid-template-columns: minmax(90px, 34%) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; padding: 3px 4px; border-radius: 6px; }
.hb-row:hover { background: #F5F7FA; }
.hb-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-l a { color: var(--text); }
.hb-t { height: 14px; background: #EEF1F5; border-radius: 0 4px 4px 0; overflow: hidden; }
.hb-t i { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.hb-v { color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; min-width: 64px; }
.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.donut { width: 160px; height: 160px; flex-shrink: 0; }
.donut path:hover, .donut circle:hover { opacity: .85; }
.donut-n { font: 650 26px var(--sans); fill: var(--text); }
.donut-l { font: 12px var(--sans); fill: var(--text-3); }
.donut-leg { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.donut-leg li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 46px; gap: 8px; align-items: center; }
.donut-leg i { width: 12px; height: 12px; border-radius: 3px; }
.donut-leg b { font-weight: 600; font-variant-numeric: tabular-nums; }
.donut-leg small { color: var(--text-3); text-align: right; }
.u-100 { background: #2FA866; } .u-99 { background: #9BD3B1; } .u-95 { background: #E8AA2A; } .u-low { background: var(--red); } .u-none { background: #E6EAF0; } .u-out { visibility: hidden; }
.u-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--text-2); }
.u-legend span { display: inline-flex; align-items: center; gap: 5px; }
.u-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.hm { display: grid; grid-template-columns: minmax(110px, 190px) minmax(0, 1fr); gap: 3px 12px; align-items: center; }
.hm-l { font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-r { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 2px; }
.hm-r i { height: 18px; border-radius: 3px; display: block; }
.hm-r i:hover, .cal i:hover { outline: 2px solid var(--navy); outline-offset: 1px; }
.hm-x span { font-size: 10px; color: var(--text-3); white-space: nowrap; overflow: visible; }
.cal { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.cal-wd { display: grid; grid-template-rows: 14px repeat(7, 14px); gap: 3px; font-size: 10px; color: var(--text-3); line-height: 14px; }
.cal-main { display: flex; flex-direction: column; gap: 3px; }
.cal-m { display: flex; gap: 3px; height: 14px; }
.cal-m span { width: 14px; font-size: 10px; color: var(--text-3); white-space: nowrap; overflow: visible; }
.cal-g { display: flex; gap: 3px; }
.cal-w { display: grid; grid-template-rows: repeat(7, 14px); gap: 3px; }
.cal i { width: 14px; height: 14px; border-radius: 3px; display: block; }
.inc-list { display: flex; flex-direction: column; }
.inc { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #EEF1F5; color: var(--text); }
.inc:first-child { border-top: 0; }
.inc:hover { text-decoration: none; background: #FAFBFD; }
.inc-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.inc-t b { font-weight: 600; font-size: 14px; } .inc-t small { color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inc-d { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.viz-tip { position: fixed; z-index: 200; pointer-events: none; background: var(--navy-dd); color: #fff; font-size: 12px; line-height: 1.45; padding: 7px 10px; border-radius: 7px; max-width: 260px; box-shadow: 0 6px 18px rgba(0,0,0,.2); white-space: pre-line; }
.viz-tip b { color: var(--gold); font-weight: 600; }
@media (max-width: 1300px) { .kpis-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kpis-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .grid2.grid-wide { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .viz-d { display: none; } .viz-m { display: block; }
  .kpis-6, .kpis-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2.grid-wide { grid-template-columns: minmax(0, 1fr); }
  .hm { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .hm-l { margin-top: 6px; }
  .hm > span:empty { display: none; }
  .hm-r i { height: 14px; }
  .hb-row { grid-template-columns: minmax(80px, 38%) minmax(0, 1fr) auto; }
  .seg { width: 100%; } .seg a { flex: 1; text-align: center; padding: 6px 4px; }
  .page-head .seg { order: 2; }
}
