/* AUDITRA — Corporate-Clean, aus mockups/*-corporate-clean.html übernommen (LOCKED 2026-08-04) */

:root{
  --bg: #f6f7f9;
  --surface: #ffffff;
  --border: #e2e5ea;
  --text: #1a1d24;
  --text-muted: #626873;
  --text-faint: #9aa0ac;
  --accent: #2b3ea3;
  --accent-hover: #23327f;
  --accent-soft: #eef0fb;
  --sidebar-bg: #12162a;
  --sidebar-text: #c6cade;
  --sidebar-text-dim: #7d84a3;
  --sidebar-active: #232a4d;
  --green: #1a7f4b;
  --green-bg: #e7f6ee;
  --green-border: #b9e4cc;
  --amber: #9a6a00;
  --amber-bg: #fdf3dd;
  --amber-border: #f1dd9f;
  --red: #b3261e;
  --red-bg: #fdeceb;
  --red-border: #f4c6c2;
  --shadow-sm: 0 1px 2px rgba(16,20,30,0.05);
  --shadow-md: 0 2px 10px rgba(16,20,30,0.07);
  --radius: 10px;
}

*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; height:100%; }
body{
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a{ color: inherit; text-decoration: none; }

.wrap{ max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Public header */
header.site{
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner{
  display:flex; align-items:center; justify-content: space-between;
  padding: 16px 24px; max-width: 1120px; margin: 0 auto;
}
.brand{ display:flex; align-items:center; gap:10px; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand-mark{
  width: 30px; height: 30px; border-radius: 7px; background: var(--accent); color: #fff;
  display:flex; align-items:center; justify-content:center; font-size: 14px; font-weight: 800; flex-shrink:0;
}
.brand-tag{
  font-size: 11px; font-weight: 600; color: var(--text-faint); text-transform: uppercase;
  letter-spacing: 0.06em; margin-left: 6px; padding-left: 10px; border-left: 1px solid var(--border);
}
.login-link{
  display:inline-flex; align-items:center; gap:6px; padding: 9px 16px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text); background: var(--surface);
  transition: border-color .15s, background .15s; cursor: pointer;
}
.login-link:hover{ border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* Hero */
.hero{ padding: 56px 0 40px; }
.hero h1{ font-size: 32px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 12px; max-width: 720px; }
.hero p{ font-size: 16px; color: var(--text-muted); max-width: 640px; margin: 0; }
.hero .meta-row{ margin-top: 24px; display:flex; gap: 28px; flex-wrap: wrap; }
.meta-stat{ display:flex; flex-direction: column; gap:2px; }
.meta-stat .num{ font-size: 22px; font-weight: 700; color: var(--accent); }
.meta-stat .lbl{ font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; }

.section-head{ display:flex; align-items: baseline; justify-content: space-between; margin: 0 0 18px; }
.section-head h2{ font-size: 18px; font-weight: 700; margin: 0; }
.section-head .sub{ font-size: 13px; color: var(--text-faint); }

/* Site cards grid (public) */
.site-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding-bottom: 64px; }
.site-card{
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow-sm); transition: box-shadow .15s, border-color .15s;
}
.site-card:hover{ box-shadow: var(--shadow-md); border-color: #d3d7de; }
.site-card-top{ display:flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.site-domain{ font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.site-scan-date{ font-size: 12.5px; color: var(--text-faint); margin-top: 4px; }

.score-badge{
  display:flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 68px; height: 68px; border-radius: 10px; flex-shrink: 0;
}
.score-badge .val{ font-size: 26px; font-weight: 800; line-height: 1; }
.score-badge .cap{ font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 3px; opacity: 0.75; }
.score-good{ background: var(--green-bg); color: var(--green); }
.score-warn{ background: var(--amber-bg); color: var(--amber); }
.score-bad{ background: var(--red-bg); color: var(--red); }

.subscores{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.subscore{ background: var(--bg); border: 1px solid var(--border); border-radius: 7px; padding: 8px 10px; }
.subscore.locked{ opacity: 0.55; }
.subscore .lbl{ font-size: 10.5px; font-weight: 600; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.subscore .bar-row{ display:flex; align-items:center; gap: 6px; }
.subscore .val{ font-size: 13px; font-weight: 700; min-width: 22px; }
.bar-track{ flex:1; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.bar-fill{ height: 100%; border-radius: 3px; }
.fill-good{ background: var(--green); }
.fill-warn{ background: var(--amber); }
.fill-bad{ background: var(--red); }

footer.site{ border-top: 1px solid var(--border); padding: 24px 0 40px; }
footer.site .wrap{ display:flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--text-faint); flex-wrap: wrap; gap: 8px; }

/* Admin layout */
.layout{ display:flex; min-height: 100vh; }
.sidebar{ width: 232px; flex-shrink: 0; background: var(--sidebar-bg); color: var(--sidebar-text); padding: 20px 14px; display:flex; flex-direction: column; }
.sidebar-brand{ display:flex; align-items:center; gap:10px; font-weight: 700; font-size: 16px; color: #fff; padding: 4px 10px 20px; }
.sidebar-brand .brand-mark{ width: 26px; height: 26px; border-radius: 6px; font-size: 12px; }
.sidebar-site{ padding: 10px 10px 16px; margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.sidebar-site .lbl{ font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sidebar-text-dim); margin-bottom: 4px; }
.sidebar-site .domain{ font-size: 14px; font-weight: 700; color: #fff; }

.nav{ display:flex; flex-direction: column; gap: 2px; }
.nav-item{ display:flex; align-items:center; gap: 10px; padding: 10px 12px; border-radius: 7px; font-size: 14px; font-weight: 500; color: var(--sidebar-text); cursor: pointer; border: none; background: none; width: 100%; text-align: left; font-family: inherit; }
.nav-item .ico{ width: 16px; text-align:center; font-size: 14px; opacity: 0.85; }
.nav-item:hover{ background: rgba(255,255,255,0.05); color: #fff; }
.nav-item.active{ background: var(--sidebar-active); color: #fff; }
.nav-item.active .ico{ opacity: 1; }
.nav-spacer{ flex: 1; }
.nav-bottom{ border-top: 1px solid rgba(255,255,255,0.08); padding-top: 10px; margin-top: 10px; }

.main{ flex: 1; min-width: 0; padding: 28px 32px 60px; }
.topbar{ display:flex; justify-content: space-between; align-items: flex-start; margin-bottom: 26px; flex-wrap: wrap; gap: 16px; }
.topbar h1{ font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 4px; }
.topbar .sub{ font-size: 13.5px; color: var(--text-muted); }

.overall-pill{ display:flex; align-items:center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 18px; box-shadow: var(--shadow-sm); }
.overall-pill .num{ font-size: 28px; font-weight: 800; color: var(--green); }
.overall-pill .lbl{ font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; }
.overall-pill .divider{ width: 1px; height: 30px; background: var(--border); }

.cat-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.cat-card{ background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; display:flex; flex-direction: column; }
.cat-head{ display:flex; justify-content: space-between; align-items: flex-start; padding: 18px 20px 14px; border-bottom: 1px solid var(--border); }
.cat-title-block{ display:flex; align-items: center; gap: 14px; }
.cat-score{ display:flex; flex-direction: column; align-items:center; justify-content:center; width: 52px; height: 52px; border-radius: 9px; font-weight: 800; font-size: 19px; flex-shrink:0; }
.cat-score.good{ background: var(--green-bg); color: var(--green); }
.cat-score.warn{ background: var(--amber-bg); color: var(--amber); }
.cat-score.bad{ background: var(--red-bg); color: var(--red); }
.cat-name{ font-size: 15px; font-weight: 700; }
.cat-name .n{ display:block; font-size: 11.5px; font-weight: 500; color: var(--text-faint); margin-top: 2px; }

.toggle-wrap{ display:flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.toggle-label{ font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); }
.switch{ width: 40px; height: 22px; border-radius: 12px; position: relative; flex-shrink:0; border: 1px solid var(--border); background: #e4e6eb; transition: background .15s; cursor: pointer; padding:0; }
.switch .knob{ position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.25); transition: left .15s; }
.switch.on{ background: var(--accent); border-color: var(--accent); }
.switch.on .knob{ left: 20px; }
.toggle-state{ font-size: 11px; font-weight: 700; }
.toggle-state.on{ color: var(--accent); }
.toggle-state.off{ color: var(--text-faint); }

.findings{ list-style:none; margin:0; padding: 8px 10px 14px; }
.finding{ display:flex; align-items: flex-start; gap: 10px; padding: 9px 10px; border-radius: 7px; font-size: 13.5px; }
.finding + .finding{ margin-top: 1px; }
.finding .icon{ width: 20px; height: 20px; border-radius: 50%; display:flex; align-items:center; justify-content:center; font-size: 11px; font-weight: 800; flex-shrink:0; margin-top: 1px; }
.finding.pass .icon{ background: var(--green-bg); color: var(--green); }
.finding.warn .icon{ background: var(--amber-bg); color: var(--amber); }
.finding.fail .icon{ background: var(--red-bg); color: var(--red); }
.finding .txt{ color: var(--text); flex:1; }
.finding.warn .txt{ color: #6b5000; }
.finding.fail .txt{ color: #7f1a14; }
.finding-tag{ font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 1px 6px; border-radius: 4px; flex-shrink:0; margin-top: 1px; }
.finding.pass .finding-tag{ background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.finding.warn .finding-tag{ background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber-border); }
.finding.fail .finding-tag{ background: var(--red-bg); color: var(--red); border: 1px solid var(--red-border); }
.findings-empty{ padding: 14px 20px; color: var(--text-faint); font-size: 13.5px; }

/* Login / Auth forms */
.auth-wrap{ min-height: 100vh; display:flex; align-items:center; justify-content:center; padding: 24px; }
.auth-card{ background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 36px 34px; width: 100%; max-width: 380px; }
.auth-card h1{ font-size: 20px; margin: 0 0 6px; }
.auth-card p.sub{ font-size: 13.5px; color: var(--text-muted); margin: 0 0 24px; }
.field{ margin-bottom: 16px; }
.field label{ display:block; font-size: 12.5px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.field input{ width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; }
.field input:focus{ outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.btn-primary{ width: 100%; padding: 11px; border: none; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
.btn-primary:hover{ background: var(--accent-hover); }
.btn-secondary{ display:inline-block; padding: 9px 16px; border: 1px solid var(--border); border-radius: 8px; font-size: 13.5px; font-weight: 600; background: var(--surface); cursor: pointer; }
.form-error{ background: var(--red-bg); color: var(--red); border: 1px solid var(--red-border); border-radius: 8px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 16px; }
.form-notice{ background: var(--accent-soft); color: var(--accent); border-radius: 8px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 16px; }

/* Tables (Websites/API-Keys verwalten) */
.table-card{ background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 24px; }
table.data-table{ width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data-table th{ text-align:left; padding: 12px 16px; background: var(--bg); border-bottom: 1px solid var(--border); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); }
table.data-table td{ padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data-table tr:last-child td{ border-bottom: none; }
.pill{ display:inline-block; padding: 2px 9px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.pill-public{ background: var(--green-bg); color: var(--green); }
.pill-private{ background: var(--bg); color: var(--text-faint); border: 1px solid var(--border); }
.inline-form{ display:inline; }
.link-danger{ color: var(--red); font-weight: 600; cursor: pointer; background:none; border:none; font-size: 13.5px; font-family: inherit; padding:0; }
.panel-head{ display:flex; justify-content: space-between; align-items:center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.panel-head h2{ font-size: 15px; margin:0; }
code.key-value{ background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; font-size: 12.5px; }

@media (max-width: 900px){ .cat-grid{ grid-template-columns: 1fr; } }

@media (max-width: 768px){
  .header-inner{ padding: 14px 16px; }
  .wrap{ padding: 0 16px; }
  .hero{ padding: 36px 0 28px; }
  .hero h1{ font-size: 25px; }
  .hero .meta-row{ gap: 20px; }
  .site-grid{ grid-template-columns: 1fr; }
  .subscores{ grid-template-columns: repeat(2, 1fr); }

  .layout{ flex-direction: column; }
  .sidebar{ width: 100%; flex-direction: row; align-items: center; padding: 12px 16px; gap: 16px; overflow-x: auto; }
  .sidebar-brand{ padding: 0; flex-shrink:0; }
  .sidebar-site{ display:none; }
  .nav{ flex-direction: row; }
  .nav-spacer{ display:none; }
  .nav-bottom{ border-top:none; margin-top:0; padding-top:0; display:flex; }
  .main{ padding: 20px 16px 40px; }
  .topbar{ flex-direction: column; }
  .overall-pill{ align-self: flex-start; }
}

@media (max-width: 420px){
  .brand-tag{ display:none; }
  .login-link span.txt{ display:none; }
}
