/* === CSS extrahiert aus index.html (extrahiert 2026-04-26) === */
  @import url('/shared/fonts/inter.css');
  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0f1117;
    color: #e0e0e0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
  }

  /* NAV */
  nav {
    position: sticky; top: 0; z-index: 200;
    background: rgba(15,17,23,0.9);
    backdrop-filter: blur(32px) saturate(160%);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0 20px; height: 52px;
    display: flex; align-items: center; gap: 10px;
    overflow: hidden;
  }
  .nav-logo { height: 24px; width: auto; filter: brightness(2.2) contrast(0.85); flex-shrink: 0; }
  .nav-brand { font-size: 15px; font-weight: 700; color: #f5f5f7; letter-spacing: -0.3px; }
  .nav-sep { width: 1px; height: 16px; background: rgba(255,255,255,0.12); margin: 0 2px; }
  .nav-title { font-size: 13px; color: #30d158; font-weight: 500; flex: 1; }
  .nav-link {
    display: flex; align-items: center; gap: 5px;
    padding: 6px 12px; border-radius: 8px;
    font-size: 13px; font-weight: 500;
    color: #a0a0a8; text-decoration: none;
    transition: all 0.15s; white-space: nowrap;
  }
  .nav-link:hover { background: rgba(255,255,255,0.08); color: #f5f5f7; }
  .nav-back {
    display: flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 8px;
    font-size: 13px; font-weight: 500; color: #a0a0a8; text-decoration: none;
    border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.04);
    transition: all 0.15s; white-space: nowrap; margin-left: auto;
  }
  .nav-back:hover { background: rgba(255,255,255,0.08); color: #f5f5f7; }

  /* MAIN */
  .main { max-width: 1100px; margin: 0 auto; padding: 24px 20px 60px; }

  /* HEADER */
  .header { margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
  .header h1 { font-size: 22px; font-weight: 700; color: #f5f5f7; letter-spacing: -0.4px; }
  .header-actions { display: flex; gap: 8px; }
  .refresh-btn {
    padding: 8px 16px; border-radius: 10px;
    border: 1px solid rgba(48,209,88,0.25);
    background: rgba(48,209,88,0.08);
    color: #30d158; font-size: 13px; font-weight: 500;
    font-family: inherit; cursor: pointer;
    transition: all 0.15s;
    display: inline-flex; align-items: center; gap: 6px;
  }
  .refresh-btn:hover { background: rgba(48,209,88,0.15); border-color: rgba(48,209,88,0.4); }
  .chat-fab {
    padding: 8px 16px; border-radius: 10px;
    border: 1px solid rgba(79,195,247,0.25);
    background: rgba(79,195,247,0.08);
    color: #4fc3f7; font-size: 13px; font-weight: 500;
    font-family: inherit; cursor: pointer;
    transition: all 0.15s;
    display: inline-flex; align-items: center; gap: 6px;
  }
  .chat-fab:hover { background: rgba(79,195,247,0.15); border-color: rgba(79,195,247,0.4); }

  /* STATUS-ROW */
  .status-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px; margin-bottom: 24px;
  }
  .status-card {
    padding: 18px 20px; border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    text-align: center;
  }
  .status-card .icon { font-size: 24px; margin-bottom: 8px; }
  .status-card .value { font-size: 26px; font-weight: 700; line-height: 1.2; color: #f5f5f7; }
  .status-card .label { font-size: 11px; color: #888; margin-top: 4px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
  .status-card .sub { font-size: 11px; color: #666; margin-top: 2px; }

  /* SECTIONS */
  .section {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    margin-bottom: 16px;
    overflow: hidden;
  }
  .section-header {
    padding: 16px 20px;
    display: flex; align-items: center; gap: 12px;
    cursor: pointer; user-select: none;
  }
  .section-header:hover { background: rgba(255,255,255,0.03); }
  .section-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
  }
  .section-info { flex: 1; min-width: 0; }
  .section-name { font-size: 14px; font-weight: 600; color: #f5f5f7; }
  .section-sub { font-size: 12px; color: #888; margin-top: 2px; }
  .section-arrow { color: #555; font-size: 10px; transition: transform 0.2s; flex-shrink: 0; }
  .section.open .section-arrow { transform: rotate(90deg); }
  .section-body { display: none; border-top: 1px solid rgba(255,255,255,0.06); padding: 16px 20px; }
  .section.open .section-body { display: block; }

  /* SERVICE LIST */
  .service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
  .service-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
  }
  .service-dot {
    width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  }
  .service-dot.active { background: #30d158; box-shadow: 0 0 8px rgba(48,209,88,0.4); }
  .service-dot.inactive { background: #ff453a; box-shadow: 0 0 8px rgba(255,69,58,0.4); }
  .service-dot.unknown { background: #636366; }
  .service-name { font-size: 13px; font-weight: 500; flex: 1; }
  .service-status { font-size: 11px; font-weight: 600; }
  .service-status.active { color: #30d158; }
  .service-status.inactive { color: #ff453a; }
  .service-status.unknown { color: #636366; }

  /* INFO TABLE */
  .info-table { width: 100%; }
  .info-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 13px;
  }
  .info-row:last-child { border-bottom: none; }
  .info-key { color: #888; font-weight: 500; }
  .info-val { color: #e0e0e0; font-weight: 600; text-align: right; }

  /* PROGRESS BAR */
  .usage-bar-wrap { margin-top: 8px; }
  .usage-label { display: flex; justify-content: space-between; font-size: 11px; color: #888; margin-bottom: 4px; }
  .usage-bar {
    height: 8px; border-radius: 4px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
  }
  .usage-bar-fill {
    height: 100%; border-radius: 4px;
    transition: width 0.6s ease;
  }
  .usage-bar-fill.green { background: linear-gradient(90deg, #30d158, #28a745); }
  .usage-bar-fill.yellow { background: linear-gradient(90deg, #ff9f0a, #ff6b00); }
  .usage-bar-fill.red { background: linear-gradient(90deg, #ff453a, #d32f2f); }

  /* LOADING */
  .loading {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; min-height: 300px; gap: 14px; color: #555;
  }
  .spinner {
    width: 32px; height: 32px;
    border: 3px solid rgba(48,209,88,0.15);
    border-top-color: #30d158;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  .last-update { font-size: 11px; color: #555; text-align: right; margin-top: 8px; }

  /* AUDIT */
  .audit-score-big {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 0 12px;
  }
  .audit-score-circle {
    width: 64px; height: 64px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 700; color: #fff; flex-shrink: 0;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
  }
  .audit-score-meta { flex: 1; }
  .audit-score-label { font-size: 18px; font-weight: 700; color: #f5f5f7; }
  .audit-score-sub { font-size: 12px; color: #888; margin-top: 3px; }
  .audit-trend { font-size: 13px; font-weight: 600; }
  .audit-trend.up { color: #30d158; }
  .audit-trend.down { color: #ff453a; }
  .audit-trend.flat { color: #888; }
  .audit-areas { width: 100%; margin: 12px 0; border-collapse: collapse; }
  .audit-areas td { padding: 8px 6px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,0.04); }
  .audit-areas td:first-child { color: #aaa; width: 55%; }
  .audit-areas td:nth-child(2) { font-weight: 700; width: 18%; white-space: nowrap; }
  .audit-areas td:last-child { color: #888; font-size: 12px; }
  .audit-areas tr:last-child td { border-bottom: none; }
  .audit-findings { margin-top: 12px; }
  .audit-findings-title { font-size: 12px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
  .audit-finding {
    display: flex; align-items: flex-start; gap: 8px;
    padding: 8px 10px; border-radius: 8px; margin-bottom: 6px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
    font-size: 12px;
  }
  .audit-finding-badge {
    font-size: 10px; font-weight: 700; padding: 2px 6px;
    border-radius: 4px; flex-shrink: 0; margin-top: 1px;
  }
  .badge-kritisch { background: rgba(255,69,58,0.2); color: #ff453a; }
  .badge-warnung { background: rgba(255,159,10,0.2); color: #ff9f0a; }
  .badge-hinweis { background: rgba(100,100,100,0.2); color: #888; }
  .audit-finding-text { color: #ccc; line-height: 1.4; }
  .audit-history { margin-top: 16px; }
  .audit-history-title { font-size: 12px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
  .audit-history-row {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 13px;
  }
  .audit-history-row:last-child { border-bottom: none; }
  .audit-history-date { color: #888; width: 90px; flex-shrink: 0; }
  .audit-history-score { font-weight: 700; width: 50px; }
  .audit-history-trend { width: 50px; font-size: 13px; font-weight: 600; }
  .audit-history-bar { flex: 1; height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
  .audit-history-bar-fill { height: 100%; border-radius: 3px; }
  .audit-empty { color: #555; font-size: 13px; padding: 16px 0; text-align: center; }

  .badge-fresh {
    position: fixed; bottom: 18px; right: 18px;
    width: 96px; height: auto; opacity: 0.45; z-index: 50;
    pointer-events: none; filter: brightness(1.8);
  }

  @media (max-width: 600px) {
    nav { padding: 0 10px; gap: 6px; }
    .nav-title { display: none; }
    .nav-link { padding: 5px 8px; font-size: 11px; }
    .nav-back span { display: none; }
    .nav-back { padding: 6px 8px; margin-left: auto; }
    .main { padding: 16px 12px 60px; }
    .header h1 { font-size: 18px; }
    .status-row { grid-template-columns: repeat(2, 1fr); }
    .service-grid { grid-template-columns: 1fr; }
  }


/* === Auto-Klassen aus inline style="..." in index.js (35 unique) === */
.s-c76dad { color:#f44336; }
.s-8d32ab { text-decoration:none;border-color:rgba(255,152,0,0.25);background:rgba(255,152,0,0.08);color:#ff9800; }
.s-58aba5 { cursor:pointer; }
.s-128d02 { background:linear-gradient(135deg, #30d158, #28a745); }
.s-dc5f5a { background:linear-gradient(135deg, #5e5ce6, #3634a3); }
.s-847b13 { background:linear-gradient(135deg, #ff9f0a, #ff6b00); }
.s-bc6f31 { background:linear-gradient(135deg, #bf5af2, #8e44ad); }
.s-5e2844 { background:linear-gradient(135deg, #04b3d6, #0a84ff); }
.s-740397 { background:linear-gradient(135deg, #64d2ff, #0a84ff); }
.s-fed2d2 { background:linear-gradient(135deg,#ff453a,#d32f2f); }
.s-fc57fe { background:linear-gradient(135deg,#636366,#3a3a3c); }
.s-7e0d6a { display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin-bottom:16px; }
.s-c5750f { text-align:center;padding:14px;border-radius:10px;border:1px solid rgba(255,255,255,0.06);background:rgba(255,255,255,0.02); }
.s-58d280 { font-size:11px;color:#888;margin-top:4px; }
.s-632c2a { color:#30d158; }
.s-1d1650 { margin-bottom:12px;font-size:13px;color:#888; }
.s-19e699 { color:' + statusColor + '; }
.s-d53510 { color:#64d2ff; }
.s-e811f6 { color:#8e8e93; }
.s-529cb3 { margin-bottom:10px;padding:10px 12px;border-radius:8px;background:rgba(255,69,58,0.08);border:1px solid rgba(255,69,58,0.2);font-size:12px;color:#ff9f0a; }
.s-07036c { margin-bottom:10px;display:flex;gap:6px;flex-wrap:wrap; }
.s-dfb875 { color:#ff453a;font-size:10px;font-weight:700;background:rgba(255,69,58,0.15);padding:2px 6px;border-radius:4px;margin-right:4px; }
.s-d629cd { color:#8e8e93;font-size:10px;font-weight:700;background:rgba(142,142,147,0.15);padding:2px 6px;border-radius:4px;margin-right:4px; }
.s-ed6c72 { color:#64d2ff;font-size:10px;font-weight:700;background:rgba(100,210,255,0.15);padding:2px 6px;border-radius:4px;margin-right:4px; }
.s-e7be5e { color:#4fc3f7;text-decoration:none; }
.s-57aa1a { color:#888;font-size:11px;font-style:italic; }
.s-aab6c6 { color:#666;font-size:11px;display:block;margin-top:2px; }
.s-b5979c { margin-top:16px;padding-top:12px;border-top:1px solid rgba(255,255,255,0.06); }
.s-ebc681 { font-size:12px;font-weight:600;color:#888;text-transform:uppercase;letter-spacing:0.5px;margin-bottom:8px; }
.s-ccadcb { display:flex;align-items:center;gap:10px;padding:4px 0;font-size:12px; }
.s-1103b4 { color:#888;width:80px; }
.s-aa1d41 { color:' + foundColor + ';font-weight:600;width:30px; }
.s-023c9b { color:#555; }
.s-ee1198 { margin-top:14px;padding:8px 18px;border-radius:10px;border:1px solid rgba(99,99,102,0.35);background:rgba(99,99,102,0.1);color:#aaa;font-size:13px;font-weight:500;font-family:inherit;cursor:pointer;transition:all 0.15s; }
.s-3ae4da { color:#ff453a; }

/* CSP-Helper */
.hidden { display: none; }
