/* BotGuard Zentrale – Design nach dem MM-Helpdesk (helles Theme) */
@font-face { font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 300 900; src: url("figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 300 900; src: url("figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #f1f6fc; --bg-sunken: #e8f0f9; --surface: #ffffff; --surface-2: #f7faff; --surface-hover: #f0f6fd;
  --border: #e6edf6; --border-strong: #d2deec;
  --text: #1f2a44; --text-2: #5d6b89; --text-3: #97a5c0;
  --accent: #2b8cff; --accent-soft: #e5f1ff; --accent-text: #1a7ef2;
  --success: #22c58b; --success-soft: #dff8ee; --warning: #f5a623; --warning-soft: #fff4dc;
  --danger: #ff3b7f; --danger-soft: #ffe7f0; --purple: #a66cf5; --purple-soft: #f2e9ff;
  --shadow-sm: 0 1px 3px rgba(31, 60, 120, .05), 0 1px 1px rgba(31, 60, 120, .03);
  --shadow: 0 6px 22px rgba(31, 60, 120, .07), 0 1px 3px rgba(31, 60, 120, .05);
  --shadow-lg: 0 24px 60px rgba(31, 50, 100, .18), 0 4px 12px rgba(31, 50, 100, .08);
  --radius: 10px; --radius-lg: 18px; --side-w: 248px;
  --font: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* Tokens der gemeinsamen Bausteine auf die Marke abbilden */
.bgx {
  --bg: #f1f6fc; --card: #ffffff; --fg: #1f2a44; --fg2: #5d6b89; --mute: #97a5c0; --line: #e6edf6; --axis: #d2deec;
  --accent: #2b8cff; --accent-fg: #fff; --input: #fff; --hover: #f0f6fd;
  --s1: #2b8cff; --s2: #ff4d8d; --s3: #e0a100;
  --good: #2fd391; --warning: #fdc33a; --serious: #f5a623; --critical: #ff4d8d;
  --ok-bg: #dff8ee; --err-bg: #ffe7f0; --warn-bg: #fff4dc;
  font: 15px/1.5 var(--font); color: var(--text); -webkit-font-smoothing: antialiased;
}
html, body { margin: 0; }
body.bgx { background: var(--bg); min-height: 100vh; }
.bgx a { color: var(--accent-text); text-decoration: none; }
.bgx a:hover { text-decoration: underline; }
.bgx h1 { font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.bgx h2 { font-size: 16px; font-weight: 700; margin: 30px 0 12px; }
.bgx h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); margin: 22px 0 10px; }
.bgx-sub { color: var(--text-2); font-size: 15px; margin-top: 6px; }
.bgx-muted { color: var(--text-2); }
.bgx-mono { font-family: var(--mono); font-size: 12.5px; }

/* Rahmen: Seitenleiste + Inhalt */
.cz-shell { display: flex; min-height: 100vh; }
.cz-side { position: sticky; top: 0; height: 100vh; width: var(--side-w); flex: none; display: flex; flex-direction: column; gap: 20px;
  padding: 24px 16px 16px; background: var(--surface); border-right: 1px solid var(--border); overflow-y: auto; }
.cz-logo { display: block; padding: 0 8px; } .cz-logo img { display: block; max-width: 170px; max-height: 46px; }
.cz-product { display: block; padding: 6px 8px 0; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.cz-nav { display: flex; flex-direction: column; gap: 4px; }
.cz-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; color: var(--text-2); font-weight: 600; }
.cz-nav a:hover { background: var(--surface-hover); color: var(--text); text-decoration: none; }
.cz-nav a.on { background: var(--accent-soft); color: var(--accent-text); }
.cz-nav .cz-count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--warning); color: #3d2a00;
  font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; }
.cz-ic { flex: none; width: 18px; height: 18px; }
.cz-label { padding: 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); margin-bottom: -12px; }
.cz-sites { display: flex; flex-direction: column; gap: 2px; }
.cz-sites a { display: flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 10px; color: var(--text-2); font-size: 14px; font-weight: 500; }
.cz-sites a:hover { background: var(--surface-hover); color: var(--text); text-decoration: none; }
.cz-sites a.on { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.cz-sites span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cz-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--st-todo, #c3d0e2); }
.cz-dot.ok { background: #2fd391; } .cz-dot.warn { background: #fdc33a; } .cz-dot.bad { background: #ff4d8d; }
.cz-me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--border); font-size: 13.5px; line-height: 1.3; }
.cz-me b { display: block; color: var(--text); }
.cz-me a.cz-out { margin-left: auto; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--text-3); }
.cz-me a.cz-out:hover { background: var(--surface-hover); color: var(--text); }
.cz-avatar { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--purple); color: #fff; font-weight: 750; font-size: 13px; }
.cz-main { flex: 1; min-width: 0; }
.cz-page { max-width: 1320px; margin: 0 auto; padding: 36px 40px 80px; }
.cz-page > .bgx-flash:first-child { margin-top: 0; }

/* Hero der Übersicht */
.cz-hero { position: relative; display: flex; align-items: center; gap: 24px; min-height: 210px; padding: 34px 40px; margin-bottom: 22px; border-radius: 26px;
  background: linear-gradient(120deg, #e5f1ff 0%, #f2e9ff 55%, #fff4dc 100%); box-shadow: var(--shadow); }
.cz-hero.dp-morgen { background: linear-gradient(120deg, #fff4dc 0%, #ffe7f0 50%, #e5f1ff 100%); }
.cz-hero.dp-tag { background: linear-gradient(120deg, #e5f1ff 0%, #dff8ee 60%, #fff4dc 100%); }
.cz-hero.dp-abend { background: linear-gradient(120deg, #f2e9ff 0%, #ffe7f0 55%, #fff1e2 100%); }
.cz-hero.dp-nacht { background: linear-gradient(120deg, #1f2a44 0%, #2e2a5c 60%, #46306e 100%); color: #fff; }
.cz-hero.dp-nacht p { color: rgba(255, 255, 255, .78); }
.cz-hero.dp-nacht .bgx-btn:not(.primary) { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #fff; }
.cz-hero-text { flex: 1; min-width: 0; }
.cz-hero h1 { font-size: 34px; line-height: 1.15; margin: 0 0 10px; animation: cz-rise .6s var(--ease) both; }
.cz-hero p { font-size: 17px; color: var(--text-2); margin: 0 0 22px; animation: cz-rise .6s .08s var(--ease) both; }
.cz-hero .bgx-row { animation: cz-rise .6s .16s var(--ease) both; }
.cz-hero-art { flex: none; width: 190px; height: 160px; display: grid; place-items: center; animation: cz-pop .7s .1s var(--ease) both; }
@keyframes cz-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes cz-pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }

/* Kennzahlen */
.bgx-kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 22px; }
.bgx-kpi { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border: 0; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.bgx-kpi-l { font-size: 13px; font-weight: 700; color: var(--accent-text); }
.bgx-kpi-v { font-size: 40px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; margin: 0; color: var(--text); }
.bgx-kpi-s { font-size: 12.5px; color: var(--text-3); margin: 0; }
.bgx-kpi.t-blue .bgx-kpi-l { color: #1a7ef2; } .bgx-kpi.t-red .bgx-kpi-l { color: #e0336f; } .bgx-kpi.t-orange .bgx-kpi-l { color: #d97706; }
.bgx-kpi.t-gold .bgx-kpi-l { color: #9a6a00; } .bgx-kpi.t-green .bgx-kpi-l { color: #0f8f61; } .bgx-kpi.t-purple .bgx-kpi-l { color: #8a4fe0; }

/* Karten, Diagramme, Tabellen */
.bgx-card, .bgx-figure { border: 0; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); padding: 22px 24px; margin-bottom: 18px; }
.bgx-card.flush { padding: 0; }
.bgx-grid2 { gap: 18px; margin-bottom: 4px; }
.bgx-figure figcaption { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.bgx-legend { color: var(--text-2); font-size: 13px; }
.bgx-legend i { border-radius: 4px; }
.bgx-tick { fill: var(--text-3); font-family: var(--font); }
.bgx-details summary { color: var(--text-2); font-weight: 600; font-size: 13px; }
.bgx-table th, .bgx-table td { padding: 12px 18px; border-bottom: 1px solid var(--border); }
.bgx-table tr:first-child th { background: var(--surface-2); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); padding-top: 13px; padding-bottom: 13px; }
.bgx-table tr:hover td { background: var(--surface-hover); }
.bgx-small { color: var(--text-2); font-size: 13px; }
.bgx-empty { color: var(--text-2); padding: 34px 20px; }
.bgx-kv dt { color: var(--text-2); }

/* Status als Pille */
.bgx-status { gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--bg-sunken); color: var(--text-2); }
.bgx-status i { width: 8px; height: 8px; background: #c3d0e2; }
.bgx-status.bgx-good { background: #dff8ee; color: #0f8f61; } .bgx-status.bgx-good i { background: #2fd391; }
.bgx-status.bgx-warning { background: #fff6dc; color: #9a6a00; } .bgx-status.bgx-warning i { background: #fdc33a; }
.bgx-status.bgx-serious { background: #fff1e2; color: #b45309; } .bgx-status.bgx-serious i { background: #f5a623; }
.bgx-status.bgx-critical { background: #ffe7f0; color: #c2185b; } .bgx-status.bgx-critical i { background: #ff4d8d; }
td .bgx-status + br + .bgx-status, td br + .bgx-status { margin-top: 4px; }

/* Buttons und Formulare */
.bgx-btn { gap: 7px; height: 40px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: 600 14.5px/1 var(--font); transition: background .15s, box-shadow .15s, transform .1s; }
.bgx-btn:hover { background: var(--surface-hover); text-decoration: none; }
.bgx-btn:active { transform: translateY(1px); }
.bgx-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(43, 140, 255, .25); }
.bgx-btn.primary:hover { background: #1f7fef; filter: none; }
.bgx-btn.dark { background: #1f2a44; border-color: #1f2a44; color: #fff; width: 100%; justify-content: center; }
.bgx-btn.dark:hover { background: #2b3958; }
.bgx-btn.small { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.bgx-btn.danger { color: #e0336f; }
.bgx-btn.danger:hover { background: var(--danger-soft); }
.bgx a.bgx-btn { color: var(--text); } .bgx a.bgx-btn.primary { color: #fff; }
.bgx-field label, .bgx-label { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.bgx-field small { color: var(--text-3); font-size: 12.5px; margin-top: 5px; }
.bgx input[type=text], .bgx input[type=password], .bgx input[type=number], .bgx select, .bgx textarea {
  min-height: 42px; padding: 9px 13px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-size: 14.5px; }
.bgx textarea { font-family: var(--mono); font-size: 12.5px; }
.bgx input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }
.bgx input:focus, .bgx select:focus, .bgx textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.bgx-filter input[type=text], .bgx-filter select { box-shadow: var(--shadow-sm); }
.bgx-pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; }

/* Meldungen */
.bgx-flash { padding: 14px 18px; border: 0; border-radius: 14px; margin-bottom: 18px; border-left: 5px solid transparent; box-shadow: var(--shadow-sm); }
.bgx-flash.ok { background: #dff8ee; color: #0b6b49; border-left-color: #2fd391; }
.bgx-flash.warn { background: #fff4dc; color: #7a5300; border-left-color: #fdc33a; }
.bgx-flash.err { background: #ffe7f0; color: #b0174d; border-left-color: #ff4d8d; }
.cz-pending { border-left: 5px solid var(--purple); }
.cz-pending h2 { margin-top: 0; }

/* Anmeldung (wie CRM-Login) */
.cz-top { background: var(--surface); border-bottom: 1px solid var(--border); }
.cz-top-in { max-width: 1000px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; }
.cz-top img { display: block; height: 32px; width: auto; }
.cz-top span { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.cz-auth { max-width: 304px; margin: 72px auto 40px; padding: 0 16px; box-sizing: content-box; }
.cz-auth h1 { text-align: center; font-size: 22px; font-weight: 700; color: #334155; margin: 0 0 18px; }
.cz-auth .bgx-card { padding: 20px 20px 22px; border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: 8px; }
.cz-auth .bgx-form { gap: 12px; }
.cz-auth input[type=text], .cz-auth input[type=password] { border-radius: 8px; min-height: 36px; }
.cz-auth .bgx-btn.dark { border-radius: 8px; height: 36px; font-size: 14px; margin-top: 8px; }
.cz-auth .bgx-sub { text-align: center; }
.cz-foot { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px; text-align: center; font-size: 13.5px; color: var(--text); background: #f1f5f9; border-top: 1px solid var(--border); }

@media (max-width: 900px) {
  .cz-shell { flex-direction: column; }
  .cz-side { position: static; height: auto; width: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--border); }
  .cz-nav { flex-direction: row; flex-wrap: wrap; } .cz-nav a { padding: 8px 10px; }
  .cz-label, .cz-sites, .cz-product, .cz-side > .bgx-btn { display: none; }
  .cz-me { margin: 0 0 0 auto; border: 0; padding: 0; }
  .cz-page { padding: 22px 16px 60px; }
  .cz-hero { padding: 24px; min-height: 0; } .cz-hero h1 { font-size: 26px; } .cz-hero-art { display: none; }
}
