/* Argus — gallery-classy, ruhig, viel Weißraum, klare Hierarchie. Dark, souverän. */
:root {
  --bg: #0d0d0f;
  --surface: #151518;
  --surface-2: #1c1c21;
  --border: #26262c;
  --border-soft: #1e1e23;
  --text: #ececef;
  --text-dim: #9b9ba3;
  --text-faint: #6a6a72;
  --gold: #c9a14a;
  --gold-dim: #8a7333;
  --verstoss: #e5484d;
  --unsicher: #f0a92a;
  --hinweis: #7f8189;
  --ok: #46a758;
  --radius: 14px;
  --maxw: 1080px;
  font-synthesis: none;
}

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

/* Typografie-Klassen (nie inline) */
.heading-xl { font-size: 1.9rem; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.heading-lg { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.heading-md { font-size: 1.02rem; font-weight: 600; margin: 0; }
.body-text { font-size: 0.95rem; color: var(--text-dim); }
.body-small { font-size: 0.85rem; color: var(--text-dim); }
.hint-text { font-size: 0.78rem; color: var(--text-faint); letter-spacing: 0.02em; }
.label-text { font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Topbar */
.topbar {
  border-bottom: 1px solid var(--border-soft);
  position: sticky; top: 0; background: rgba(13,13,15,0.82);
  backdrop-filter: blur(10px); z-index: 10;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .eye {
  width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--gold);
  display: grid; place-items: center;
}
.brand .eye::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.brand b { font-weight: 600; letter-spacing: -0.01em; }
.brand span { color: var(--text-faint); }

/* Buttons */
.btn {
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  padding: 8px 14px; border-radius: 9px; font-size: 0.88rem; transition: border-color .15s, background .15s;
}
.btn:hover { border-color: #3a3a42; }
.btn-primary { background: var(--gold); color: #1a1407; border-color: var(--gold); font-weight: 600; }
.btn-primary:hover { background: #d8af57; }
.btn-ghost { background: transparent; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-sm { padding: 5px 10px; font-size: 0.8rem; }

/* Layout */
main { padding: 40px 0 80px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 6px; }
.muted { color: var(--text-faint); }

/* Cards / grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin-top: 28px; }
.card {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 20px; transition: border-color .15s, transform .15s;
}
.card.clickable:hover { border-color: #34343c; transform: translateY(-1px); }
.card .card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot.verstoss { background: var(--verstoss); }
.dot.unsicher { background: var(--unsicher); }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 4px rgba(70,167,88,.12); }
.dot.none { background: var(--text-faint); }

/* Severity counts */
.counts { display: flex; gap: 14px; margin-top: 16px; }
.count { display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; font-size: 0.92rem; }
.count.verstoss { color: var(--verstoss); }
.count.unsicher { color: var(--unsicher); }
.count.hinweis { color: var(--hinweis); }
.count.ok { color: var(--ok); }
.count .n { font-weight: 600; }

/* Findings */
.finding { border: 1px solid var(--border-soft); border-left-width: 3px; border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; background: var(--surface); }
.finding.verstoss { border-left-color: var(--verstoss); }
.finding.unsicher { border-left-color: var(--unsicher); }
.finding.hinweis { border-left-color: var(--hinweis); }
.finding.ok { border-left-color: var(--ok); }
.finding .ft { display: flex; align-items: center; gap: 10px; }
.badge { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.badge.verstoss { background: rgba(229,72,77,.14); color: #ff8a8d; }
.badge.unsicher { background: rgba(240,169,42,.14); color: #ffc870; }
.badge.hinweis { background: rgba(127,129,137,.14); color: #b7b9c1; }
.badge.ok { background: rgba(70,167,88,.14); color: #7ed496; }
.finding .detail { color: var(--text-dim); font-size: 0.9rem; margin-top: 8px; }
.finding .meta { color: var(--text-faint); font-size: 0.78rem; margin-top: 8px; }
.finding .evidence { color: var(--text-faint); font-size: 0.8rem; margin-top: 6px; font-style: italic; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
input, select {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  padding: 10px 12px; border-radius: 9px; font-size: 0.92rem; font-family: inherit;
}
input:focus, select:focus { outline: none; border-color: var(--gold-dim); }

/* Login */
.login-shell { min-height: 100vh; display: grid; place-items: center; }
.login-card { width: 360px; max-width: 90vw; }
.login-card .brand { justify-content: center; margin-bottom: 24px; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; z-index: 50; }
.modal { width: 460px; max-width: 92vw; }

/* Misc */
.empty { text-align: center; padding: 80px 20px; color: var(--text-faint); }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--border); border-top-color: var(--gold); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--surface-2); border: 1px solid var(--border); padding: 12px 18px; border-radius: 10px; z-index: 100; }
.sig { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 0.86rem; }
.sig dt { color: var(--text-faint); }
.sig dd { margin: 0; color: var(--text-dim); }
hr.sep { border: none; border-top: 1px solid var(--border-soft); margin: 28px 0; }
