/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0d1117;
  --bg2:       #161b22;
  --bg3:       #21262d;
  --border:    #30363d;
  --text:      #e6edf3;
  --muted:     #8b949e;
  --accent:    #f78166;
  --accent2:   #58a6ff;
  --green:     #3fb950;
  --yellow:    #d29922;
  --red:       #f85149;
  --orange:    #f0883e;
  --radius:    8px;
  --shadow:    0 2px 8px rgba(0,0,0,.4);
}

html { font-size: 15px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ────────────────────────────────────────────────────────────────── */
header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: .75rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: .5rem; color: var(--text); font-weight: 700; font-size: 1.1rem; }
.logo:hover { text-decoration: none; }
.logo-icon { font-size: 1.4rem; }
nav { display: flex; gap: 1.5rem; }
nav a { color: var(--muted); font-size: .9rem; }
nav a:hover { color: var(--text); }

/* ── Nav user / logout ─────────────────────────────────────────────────────── */
.nav-user { display: flex; align-items: center; gap: .6rem; margin-left: 1rem; }
.nav-user-link { color: var(--muted); font-size: .82rem; text-decoration: none; }
.nav-user-link:hover { color: var(--text); text-decoration: none; }
.btn-nav-logout {
  background: transparent; border: 1px solid var(--border); border-radius: 4px;
  color: var(--muted); cursor: pointer; font-size: .78rem; padding: .25rem .6rem;
  transition: border-color .15s, color .15s;
}
.btn-nav-logout:hover { border-color: var(--red); color: var(--red); }

/* ── Auth alerts ───────────────────────────────────────────────────────────── */
.alert-ok {
  background: rgba(63,185,80,.1); border: 1px solid rgba(63,185,80,.35);
  color: var(--green); border-radius: 6px; padding: .6rem .85rem; font-size: .88rem; margin-bottom: 1rem;
}
.alert-err {
  background: rgba(248,81,73,.1); border: 1px solid rgba(248,81,73,.3);
  color: var(--red); border-radius: 6px; padding: .6rem .85rem; font-size: .88rem; margin-bottom: 1rem;
}

/* ── Generic form helpers ──────────────────────────────────────────────────── */
.form-field { margin-bottom: 1rem; }
.input-full {
  width: 100%; background: var(--bg3); border: 1px solid var(--border); border-radius: 6px;
  color: var(--fg, var(--text)); padding: .55rem .75rem; font-size: .92rem;
}
.input-full:focus { outline: none; border-color: var(--accent2); }
.btn-ghost {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  padding: .45rem .9rem; border-radius: 6px; cursor: pointer; font-size: .88rem; text-decoration: none;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--accent2); color: var(--accent2); text-decoration: none; }

/* ── Main & Footer ─────────────────────────────────────────────────────────── */
main { flex: 1; max-width: 1200px; width: 100%; margin: 0 auto; padding: 2rem 1.5rem; }
footer {
  text-align: center; padding: 1rem; font-size: .8rem; color: var(--muted);
  border-top: 1px solid var(--border);
}

/* ── Hero / Scan Form ──────────────────────────────────────────────────────── */
.hero { text-align: center; padding: 3rem 1rem 2rem; }
.hero h1 { font-size: 2.2rem; margin-bottom: .5rem; }
.hero-sub { color: var(--muted); font-size: 1rem; margin-bottom: 2rem; line-height: 1.6; }

.scan-form { max-width: 700px; margin: 0 auto; }
.input-row {
  display: flex; gap: .5rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .4rem;
}
.input-row input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 1rem; padding: .5rem .75rem;
  font-family: "SFMono-Regular", Consolas, monospace;
}
.input-row input::placeholder { color: var(--muted); }
.input-row button {
  display: flex; align-items: center; gap: .4rem;
  background: var(--accent); color: #fff; border: none;
  border-radius: calc(var(--radius) - 2px);
  padding: .5rem 1.25rem; font-size: .95rem; font-weight: 600; cursor: pointer;
  transition: opacity .15s;
}
.input-row button:hover { opacity: .85; }
.input-row button:disabled { opacity: .5; cursor: not-allowed; }
.hint { color: var(--muted); font-size: .8rem; margin-top: .6rem; }

/* ── Loading ───────────────────────────────────────────────────────────────── */
.loading-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.7);
  z-index: 100; align-items: center; justify-content: center;
}
.loading-box {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem 3rem; text-align: center;
}
.spinner {
  width: 40px; height: 40px; border: 3px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%;
  margin: 0 auto 1rem; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Feature Cards (index) ─────────────────────────────────────────────────── */
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem; margin-top: 3rem;
}
.feature-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  text-align: center;
}
.feature-icon { font-size: 2rem; margin-bottom: .5rem; }
.feature-card h3 { font-size: .95rem; margin-bottom: .4rem; }
.feature-card p { font-size: .82rem; color: var(--muted); line-height: 1.5; }

/* ── Risk Banner ───────────────────────────────────────────────────────────── */
.risk-banner {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.5rem; border-radius: var(--radius);
  margin-bottom: .5rem; border: 1px solid;
}
.risk-score-pill {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 58px; height: 58px; border-radius: 10px;
  border: 2px solid currentColor; flex-shrink: 0;
}
.risk-score-pill.risk-low    { color: var(--green);  background: rgba(63,185,80,.12); }
.risk-score-pill.risk-medium { color: var(--yellow); background: rgba(210,153,34,.12); }
.risk-score-pill.risk-high   { color: var(--red);    background: rgba(248,81,73,.14); }
.risk-score-num  { font-size: 1.35rem; font-weight: 800; line-height: 1; }
.risk-score-max  { font-size: .62rem; opacity: .75; }
.risk-icon { font-size: 1.8rem; flex-shrink: 0; }
.risk-banner strong { display: block; font-size: 1.1rem; }
.risk-url { font-size: .82rem; color: var(--muted); word-break: break-all; }
.risk-id { margin-left: auto; font-size: .75rem; color: var(--muted); font-family: monospace; white-space: nowrap; }

.risk-low    { background: rgba(63,185,80,.08);  border-color: var(--green);  }
.risk-medium { background: rgba(210,153,34,.08); border-color: var(--yellow); }
.risk-high   { background: rgba(248,81,73,.1);   border-color: var(--red);    }

/* ── Recommendation bar ─────────────────────────────────────────────────────── */
.risk-recommendation {
  display: flex; align-items: center; gap: .6rem;
  padding: .65rem 1.25rem; border-radius: var(--radius);
  font-size: .9rem; margin-bottom: .4rem; border: 1px solid;
}
.risk-rec-critical { background: rgba(248,81,73,.1);   border-color: rgba(248,81,73,.4);   color: var(--red); }
.risk-rec-action   { background: rgba(247,129,102,.1); border-color: rgba(247,129,102,.4); color: var(--orange); }
.risk-rec-review   { background: rgba(210,153,34,.1);  border-color: rgba(210,153,34,.4);  color: var(--yellow); }
.risk-rec-archive  { background: rgba(63,185,80,.07);  border-color: rgba(63,185,80,.3);   color: var(--green); }

/* ── FP disclaimer ──────────────────────────────────────────────────────────── */
.fp-disclaimer {
  padding: .55rem 1.25rem; border-radius: var(--radius);
  font-size: .8rem; color: var(--muted); margin-bottom: 1.25rem;
  background: rgba(139,148,158,.07); border: 1px solid rgba(139,148,158,.2);
  line-height: 1.5;
}

/* ── Risk breakdown table ───────────────────────────────────────────────────── */
.breakdown-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.breakdown-table thead th {
  text-align: left; padding: .4rem .6rem;
  color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1px solid var(--border);
}
.breakdown-table .bd-pts { text-align: right; width: 60px; }
.bd-row { border-bottom: 1px solid var(--border); }
.bd-row:last-child { border-bottom: none; }
.bd-triggered td { background: rgba(248,81,73,.03); }
.bd-ok td { opacity: .55; }
.bd-row td { padding: .5rem .6rem; vertical-align: top; }
.bd-cat {
  display: inline-block; font-size: .68rem; padding: .1rem .4rem;
  border-radius: 3px; white-space: nowrap; text-transform: uppercase; letter-spacing: .04em;
}
.bd-cat-transparency { background: rgba(88,166,255,.12); color: var(--accent2); }
.bd-cat-content      { background: rgba(248,81,73,.12);  color: var(--red); }
.bd-cat-technical    { background: rgba(210,153,34,.12); color: var(--yellow); }
.bd-cat-network      { background: rgba(63,185,80,.12);  color: var(--green); }
.bd-label  { font-weight: 500; }
.bd-detail { font-size: .78rem; color: var(--muted); margin-top: .15rem; line-height: 1.4; }
.bd-fp-note { font-size: .72rem; color: var(--muted); font-style: italic; margin-top: .2rem; }
.bd-score-val  { font-weight: 700; color: var(--red); }
.bd-score-zero { color: var(--muted); }

/* ── Source list ────────────────────────────────────────────────────────────── */
.src-count-badge {
  display: inline-block; margin-left: .5rem; padding: .1rem .45rem;
  border-radius: 20px; font-size: .72rem; font-weight: 600; vertical-align: middle;
  border: 1px solid transparent;
}
.src-badge-missing { background: rgba(248,81,73,.12); border-color: rgba(248,81,73,.35); color: var(--red); }
.src-badge-few     { background: rgba(210,153,34,.12); border-color: rgba(210,153,34,.35); color: var(--yellow); }
.src-badge-ok      { background: rgba(63,185,80,.12); border-color: rgba(63,185,80,.35); color: var(--green); }
.src-list { list-style: none; display: flex; flex-direction: column; gap: .3rem; }
.src-item { padding: .25rem 0; border-bottom: 1px solid var(--border); font-size: .82rem; }
.src-item:last-child { border-bottom: none; }
.src-link { color: var(--accent2); word-break: break-all; }
.src-link:hover { text-decoration: underline; }

/* ── Alert ─────────────────────────────────────────────────────────────────── */
.alert { padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .9rem; }
.alert-error { background: rgba(248,81,73,.1); border: 1px solid var(--red); }

/* ── Report Grid ───────────────────────────────────────────────────────────── */
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 900px) { .report-grid { grid-template-columns: 1fr; } }

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem;
}
.card h2 { font-size: .95rem; margin-bottom: .9rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.card-full { grid-column: 1 / -1; }

/* ── Info Table ────────────────────────────────────────────────────────────── */
.info-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.info-table th {
  text-align: left; color: var(--muted); font-weight: 500;
  padding: .35rem .5rem .35rem 0; white-space: nowrap; width: 35%;
  vertical-align: top;
}
.info-table td { padding: .35rem 0; word-break: break-all; }
.info-table tr + tr th, .info-table tr + tr td {
  border-top: 1px solid var(--border);
}

.ok   { color: var(--green); }
.warn { color: var(--yellow); }
.err  { color: var(--red); }
.muted { color: var(--muted); }
.missing { color: var(--red); font-size: .85rem; }
.redirect-item { font-size: .8rem; color: var(--muted); }

/* ── Badges ────────────────────────────────────────────────────────────────── */
.ok-badge   { background: rgba(63,185,80,.15);  color: var(--green);  padding: .15rem .5rem; border-radius: 4px; font-size: .82rem; }
.warn-badge { background: rgba(248,81,73,.15);  color: var(--red);    padding: .15rem .5rem; border-radius: 4px; font-size: .82rem; }

/* ── Indicators ────────────────────────────────────────────────────────────── */
.indicator-list { list-style: none; }
.indicator-item { padding: .3rem 0; font-size: .88rem; border-bottom: 1px solid var(--border); color: var(--yellow); }
.indicator-item:last-child { border-bottom: none; }

/* ── Tag List ──────────────────────────────────────────────────────────────── */
.tag-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag-warning {
  background: rgba(248,81,73,.15); color: var(--red);
  border: 1px solid rgba(248,81,73,.3);
  padding: .2rem .6rem; border-radius: 20px; font-size: .78rem;
}

/* ── Text Excerpt ──────────────────────────────────────────────────────────── */
.text-excerpt {
  font-size: .82rem; line-height: 1.6; color: var(--muted);
  background: var(--bg3); padding: .75rem; border-radius: 4px;
  max-height: 120px; overflow-y: auto;
}

/* ── Evidence ──────────────────────────────────────────────────────────────── */
.evidence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1rem; }
.ev-btn {
  display: block; text-align: center; padding: .6rem;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: .85rem; color: var(--text);
  transition: border-color .15s;
}
.ev-btn:hover { border-color: var(--accent2); text-decoration: none; }
.ev-missing { opacity: .4; pointer-events: none; }
.screenshot-preview { margin-top: .75rem; }
.screenshot-preview img { width: 100%; border-radius: 4px; border: 1px solid var(--border); }

/* ── Action Buttons ────────────────────────────────────────────────────────── */
.action-stack { display: flex; flex-direction: column; gap: .6rem; }
.btn-action {
  display: inline-block; padding: .6rem 1rem;
  background: var(--accent2); color: #fff; border-radius: var(--radius);
  font-size: .88rem; font-weight: 500; text-align: center; cursor: pointer;
  border: none; transition: opacity .15s;
}
.btn-action:hover { opacity: .85; text-decoration: none; color: #fff; }
.btn-secondary { background: var(--bg3); border: 1px solid var(--border); color: var(--text); }
.btn-danger { background: var(--red); color: #fff; border: none; padding: .6rem 1rem; border-radius: var(--radius); font-size: .88rem; cursor: pointer; }

.cf-note {
  background: rgba(248,81,73,.08); border: 1px solid rgba(248,81,73,.3);
  border-radius: var(--radius); padding: .75rem;
}
.cf-note strong { display: block; color: var(--red); margin-bottom: .4rem; }
.cf-note small { display: block; color: var(--muted); font-size: .78rem; margin-top: .3rem; }
.btn-cf {
  display: block; margin-top: .4rem; padding: .5rem .75rem;
  background: var(--red); color: #fff; border-radius: 4px; font-size: .85rem;
  text-align: center;
}
.btn-cf:hover { opacity: .85; text-decoration: none; color: #fff; }

/* ── Report Textarea ───────────────────────────────────────────────────────── */
.tab-controls { display: flex; gap: .4rem; margin-bottom: .75rem; }
.tab-btn {
  padding: .35rem .9rem; background: var(--bg3); border: 1px solid var(--border);
  border-radius: 4px; color: var(--muted); cursor: pointer; font-size: .85rem;
}
.tab-btn.active { border-color: var(--accent2); color: var(--text); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.report-textarea {
  width: 100%; min-height: 280px; background: var(--bg3);
  border: 1px solid var(--border); border-radius: 4px;
  color: var(--text); font-family: "SFMono-Regular", Consolas, monospace;
  font-size: .82rem; padding: .75rem; resize: vertical; line-height: 1.6;
}
.btn-copy {
  margin-top: .5rem; padding: .4rem .9rem;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 4px; color: var(--text); cursor: pointer; font-size: .82rem;
}
.btn-copy:hover { border-color: var(--accent2); }

/* ── Bottom Actions ────────────────────────────────────────────────────────── */
.bottom-actions { display: flex; gap: .75rem; align-items: center; margin-top: 1.5rem; }

/* ── History Table ─────────────────────────────────────────────────────────── */
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.page-header h1 { font-size: 1.5rem; }

.history-table-wrap { overflow-x: auto; }
.history-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.history-table th {
  text-align: left; padding: .6rem .8rem;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  color: var(--muted); font-weight: 500; text-transform: uppercase;
  font-size: .75rem; letter-spacing: .05em;
}
.history-table td { padding: .6rem .8rem; border-bottom: 1px solid var(--border); }
.history-table tr:hover td { background: var(--bg2); }
.ts-cell { font-family: monospace; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.domain-cell { font-weight: 500; }

.risk-pill { padding: .2rem .6rem; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.risk-pill.risk-low    { background: rgba(63,185,80,.15);  color: var(--green); }
.risk-pill.risk-medium { background: rgba(210,153,34,.15); color: var(--yellow); }
.risk-pill.risk-high   { background: rgba(248,81,73,.15);  color: var(--red); }

.link-btn {
  padding: .25rem .6rem; border-radius: 4px; font-size: .8rem;
  border: 1px solid var(--border); color: var(--text); background: var(--bg3);
  cursor: pointer; text-decoration: none; margin-right: .3rem;
}
.link-btn:hover { border-color: var(--accent2); text-decoration: none; }
.link-btn.danger { border-color: rgba(248,81,73,.4); color: var(--red); }
.link-btn.danger:hover { background: rgba(248,81,73,.1); }

.empty-state { text-align: center; padding: 4rem; color: var(--muted); }
.empty-state a { margin-top: 1rem; display: inline-block; }

/* ── Risk banner layout fix ────────────────────────────────────────────────── */
.risk-banner-text { flex: 1; min-width: 0; }
.risk-meta { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }

/* ── Status pills ──────────────────────────────────────────────────────────── */
.status-pill {
  padding: .2rem .6rem; border-radius: 20px; font-size: .75rem; font-weight: 600;
  white-space: nowrap;
}
.status-pill.status-offen         { background: rgba(88,166,255,.15); color: var(--accent2); }
.status-pill.status-geprüft       { background: rgba(148,103,189,.15); color: #a78bfa; }
.status-pill.status-gemeldet      { background: rgba(63,185,80,.15);   color: var(--green); }
.status-pill.status-ignoriert     { background: rgba(139,148,158,.15); color: var(--muted); }
.status-pill.status-später-prüfen { background: rgba(210,153,34,.15);  color: var(--yellow); }

/* ── Mono / small helpers ──────────────────────────────────────────────────── */
.mono  { font-family: "SFMono-Regular", Consolas, monospace; }
.small { font-size: .8rem; }

/* ── Evidence file list ────────────────────────────────────────────────────── */
.file-list-details { margin: .75rem 0; font-size: .82rem; color: var(--muted); }
.file-list-details summary { cursor: pointer; color: var(--accent2); }
.file-list { list-style: none; padding: .5rem 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.file-list li {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 4px; padding: .15rem .5rem; font-family: monospace; font-size: .78rem;
}

/* ── ZIP button ────────────────────────────────────────────────────────────── */
.btn-zip {
  display: block; width: 100%; text-align: center; margin-top: .75rem;
  padding: .6rem; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: .88rem;
  transition: border-color .15s;
}
.btn-zip:hover { border-color: var(--accent2); text-decoration: none; }

/* ── Copy row ──────────────────────────────────────────────────────────────── */
.copy-row { display: flex; gap: .5rem; margin-top: .5rem; }

/* ── Meta form ─────────────────────────────────────────────────────────────── */
.meta-form { display: flex; flex-direction: column; gap: 1.25rem; }
.meta-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 700px) { .meta-row { grid-template-columns: 1fr; } }
.meta-group { display: flex; flex-direction: column; gap: .5rem; }
.meta-group > label { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

.status-radios { display: flex; flex-wrap: wrap; gap: .4rem; }
.radio-label {
  display: flex; align-items: center; gap: .35rem;
  padding: .35rem .75rem; border-radius: 20px; font-size: .85rem;
  border: 1px solid var(--border); cursor: pointer; transition: border-color .15s;
}
.radio-label:hover { border-color: var(--accent2); }
.radio-label.radio-active { border-color: var(--accent2); background: rgba(88,166,255,.1); }
.radio-label input { display: none; }

.abuse-targets { display: flex; flex-wrap: wrap; gap: .4rem; }
.check-label {
  display: flex; align-items: center; gap: .3rem;
  padding: .3rem .65rem; border-radius: 4px; font-size: .82rem;
  border: 1px solid var(--border); cursor: pointer; transition: border-color .15s;
}
.check-label:hover { border-color: var(--accent2); }
.check-label.check-active { border-color: var(--accent); background: rgba(247,129,102,.1); }
.check-label input { display: none; }

.notes-area {
  width: 100%; min-height: 90px; background: var(--bg3);
  border: 1px solid var(--border); border-radius: 4px;
  color: var(--text); font-family: inherit; font-size: .88rem;
  padding: .6rem; resize: vertical; line-height: 1.5;
}
.notes-area:focus { outline: none; border-color: var(--accent2); }

/* ── Archive page ──────────────────────────────────────────────────────────── */
.archive-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 1.25rem;
}
.archive-header h1 { font-size: 1.5rem; }

/* Stats bar */
.stats-bar {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  margin-bottom: 1.25rem;
}
.stat-chip {
  display: flex; flex-direction: column; align-items: center;
  padding: .5rem .9rem; background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); min-width: 60px; text-decoration: none;
  transition: border-color .15s;
}
.stat-chip:hover { border-color: var(--accent2); text-decoration: none; }
.stat-chip.stat-active { border-color: var(--accent2); background: rgba(88,166,255,.08); }
.stat-num  { font-size: 1.3rem; font-weight: 700; color: var(--text); }
.stat-label { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.stat-divider { width: 1px; height: 40px; background: var(--border); margin: 0 .25rem; }
.risk-high-chip   .stat-num { color: var(--red); }
.risk-medium-chip .stat-num { color: var(--yellow); }
.risk-low-chip    .stat-num { color: var(--green); }

/* Search form */
.search-form { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.search-row { display: flex; gap: .5rem; margin-bottom: .75rem; }
.search-input {
  flex: 1; background: var(--bg3); border: 1px solid var(--border);
  border-radius: 4px; color: var(--text); font-size: .9rem; padding: .5rem .75rem;
}
.search-input:focus { outline: none; border-color: var(--accent2); }
.filter-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.filter-group { display: flex; flex-direction: column; gap: .25rem; }
.filter-group label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.filter-input, .filter-select {
  background: var(--bg3); border: 1px solid var(--border); border-radius: 4px;
  color: var(--text); font-size: .82rem; padding: .35rem .6rem;
}
.filter-input:focus, .filter-select:focus { outline: none; border-color: var(--accent2); }
.filter-select option { background: var(--bg2); }

/* Results */
.results-header { margin-bottom: .5rem; }
.archive-table-wrap { overflow-x: auto; }
.archive-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.archive-table th {
  text-align: left; padding: .6rem .75rem;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  color: var(--muted); font-weight: 500; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
}
.archive-table td { padding: .6rem .75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.archive-table tr:hover td { background: rgba(255,255,255,.02); }
.domain-link { font-weight: 600; color: var(--text); }
.domain-link:hover { color: var(--accent2); }
.url-small { font-size: .75rem; margin-top: .15rem; font-family: monospace; }
.target-cell { max-width: 120px; }
.note-cell   { max-width: 160px; font-size: .8rem; }
.center      { text-align: center; }
.action-cell { white-space: nowrap; }
.warn-badge.small { font-size: .72rem; padding: .1rem .4rem; }

.tag-target {
  display: inline-block; background: rgba(88,166,255,.1); border: 1px solid rgba(88,166,255,.3);
  color: var(--accent2); padding: .1rem .4rem; border-radius: 3px; font-size: .72rem;
  margin: .1rem;
}

/* ── Lock banner ────────────────────────────────────────────────────────────── */
.lock-banner {
  display: flex; align-items: center; gap: .75rem;
  background: rgba(210,153,34,.1); border: 1px solid var(--yellow);
  border-radius: var(--radius); padding: .75rem 1rem;
  margin-bottom: 1rem; font-size: .9rem; color: var(--yellow);
}
.lock-pill {
  padding: .2rem .55rem; background: rgba(210,153,34,.15);
  color: var(--yellow); border-radius: 20px; font-size: .72rem; font-weight: 600;
}
.btn-unlock {
  padding: .25rem .7rem; background: transparent; border: 1px solid var(--yellow);
  color: var(--yellow); border-radius: 4px; cursor: pointer; font-size: .8rem;
}
.btn-unlock:hover { background: rgba(210,153,34,.15); }

/* ── New status pills ───────────────────────────────────────────────────────── */
.status-pill.status-follow-up-vorbereitet { background: rgba(247,129,102,.15); color: var(--orange); }
.status-pill.status-follow-up-gesendet    { background: rgba(63,185,80,.15);   color: var(--green); }

/* ── SHA256 hash table ──────────────────────────────────────────────────────── */
.hash-details { margin: .75rem 0; }
.hash-details summary { cursor: pointer; color: var(--accent2); font-size: .82rem; }
.hash-table { width: 100%; border-collapse: collapse; margin-top: .5rem; font-size: .78rem; }
.hash-table tr { border-bottom: 1px solid var(--border); }
.hash-table tr:last-child { border-bottom: none; }
.hash-fname { padding: .3rem .5rem .3rem 0; color: var(--muted); width: 35%; white-space: nowrap; }
.hash-val   { font-family: "SFMono-Regular", Consolas, monospace; padding: .3rem .4rem; word-break: break-all; }
.hash-copy-btn {
  background: none; border: 1px solid var(--border); border-radius: 3px;
  color: var(--muted); cursor: pointer; font-size: .72rem; padding: .1rem .35rem;
  vertical-align: middle;
}
.hash-copy-btn:hover { border-color: var(--accent2); color: var(--accent2); }

/* ── CF follow-up section ───────────────────────────────────────────────────── */
.cf-followup-grid {
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: start;
}
@media (max-width: 700px) { .cf-followup-grid { grid-template-columns: 1fr; } }
.inline-form { display: flex; flex-direction: column; gap: .4rem; }
.inline-row  { display: flex; gap: .5rem; }
.field-label { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.cf-id-box { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem 1rem; }
.cf-id-display {
  font-family: "SFMono-Regular", Consolas, monospace; font-size: 1rem; color: var(--accent2);
  margin-top: .3rem; padding: .4rem .6rem; background: var(--bg2); border-radius: 4px;
  word-break: break-all;
}
.btn-followup { background: var(--orange); }
.btn-followup:hover { opacity: .85; }

/* ── Verwaltung section header ──────────────────────────────────────────────── */
.verwaltung-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.verwaltung-header h2 { margin-bottom: 0; }
.btn-lock {
  padding: .35rem .8rem; background: transparent; border: 1px solid var(--border);
  color: var(--muted); border-radius: 4px; cursor: pointer; font-size: .82rem;
  transition: border-color .15s, color .15s;
}
.btn-lock:hover { border-color: var(--yellow); color: var(--yellow); }
.notes-readonly {
  background: var(--bg3); border: 1px solid var(--border); border-radius: 4px;
  padding: .6rem; font-size: .88rem; color: var(--muted); line-height: 1.5;
  min-height: 60px;
}

/* ── Timeline ───────────────────────────────────────────────────────────────── */
.timeline-list {
  display: flex; flex-direction: column; gap: 0;
  border-left: 2px solid var(--border); margin-left: .75rem; margin-bottom: 1rem;
}
.timeline-item {
  display: flex; gap: .75rem; padding: .6rem 0 .6rem 1rem; position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute; left: -6px; top: 50%;
  transform: translateY(-50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg3); border: 2px solid var(--border);
}
.tl-user::before { border-color: var(--accent2); background: rgba(88,166,255,.15); }
.tl-icon { font-size: 1rem; flex-shrink: 0; width: 1.4rem; text-align: center; }
.tl-body { flex: 1; min-width: 0; }
.tl-header { display: flex; gap: .75rem; align-items: baseline; flex-wrap: wrap; }
.tl-label  { font-size: .88rem; font-weight: 500; }
.tl-actor  { font-size: .72rem; color: var(--muted); padding: .1rem .4rem; background: var(--bg3); border-radius: 3px; }
.tl-actor-user { color: var(--accent2); background: rgba(88,166,255,.1); }
.tl-note   { font-size: .82rem; color: var(--muted); margin-top: .2rem; }
.tl-ts     { font-size: .72rem; color: var(--muted); margin-top: .15rem; }

/* ── Network fingerprint (report page) ──────────────────────────────────── */
.fp-grid {
  display: flex; flex-direction: column; gap: .75rem;
}
.fp-group { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; }
.fp-label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); width: 120px; flex-shrink: 0;
}
.fp-tag {
  display: inline-block; padding: .15rem .5rem; border-radius: 4px;
  font-size: .78rem; font-family: "SFMono-Regular", Consolas, monospace;
  border: 1px solid transparent;
}
.fp-high {
  background: rgba(63,185,80,.12); border-color: rgba(63,185,80,.35); color: var(--green);
}
.fp-med  {
  background: rgba(247,129,102,.1); border-color: rgba(247,129,102,.3); color: var(--orange);
}
.fp-low  {
  background: rgba(139,148,158,.1); border-color: rgba(139,148,158,.25); color: var(--muted);
}
.fp-hash {
  font-family: "SFMono-Regular", Consolas, monospace; font-size: .72rem;
  color: var(--muted); word-break: break-all;
}

/* ── Related reports (report page) ─────────────────────────────────────── */
.related-list { display: flex; flex-direction: column; gap: .6rem; }
.related-item {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .75rem 1rem;
}
.related-score {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 52px; height: 52px; border-radius: 8px; flex-shrink: 0;
  font-weight: 700; border: 2px solid transparent;
}
.related-score.score-high   { background: rgba(63,185,80,.12); border-color: rgba(63,185,80,.4); color: var(--green); }
.related-score.score-medium { background: rgba(247,129,102,.1); border-color: rgba(247,129,102,.35); color: var(--orange); }
.related-score.score-low    { background: rgba(139,148,158,.1); border-color: rgba(139,148,158,.25); color: var(--muted); }
.score-num  { font-size: 1.2rem; line-height: 1; }
.score-max  { font-size: .65rem; color: var(--muted); }
.related-body  { flex: 1; min-width: 0; }
.related-header { display: flex; gap: .75rem; align-items: baseline; flex-wrap: wrap; }
.related-domain { font-weight: 600; font-size: .95rem; color: var(--accent2); text-decoration: none; }
.related-domain:hover { text-decoration: underline; }
.score-label-text { font-size: .75rem; color: var(--muted); }
.related-reasons { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; }
.reason-chip {
  display: inline-block; font-size: .72rem; padding: .1rem .45rem;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 20px; color: var(--muted);
}

/* ── Networks page ──────────────────────────────────────────────────────── */
.page-header { margin-bottom: 1.5rem; }
.page-header h1 { margin-bottom: .25rem; }

.net-stats-bar {
  display: flex; gap: 1.5rem; margin-bottom: 1.5rem;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.5rem;
}
.net-stat { display: flex; flex-direction: column; align-items: center; min-width: 80px; }
.net-stat-num   { font-size: 1.8rem; font-weight: 700; line-height: 1; color: var(--accent2); }
.net-stat-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: .2rem; }

.net-controls {
  display: flex; gap: 1.5rem; align-items: flex-end; flex-wrap: wrap;
  padding: .75rem 1rem; margin-bottom: 1.5rem;
}
.filter-row { display: flex; gap: .5rem; align-items: flex-end; flex-wrap: wrap; }
.input-sm {
  background: var(--bg3); border: 1px solid var(--border); border-radius: 4px;
  color: var(--fg); padding: .35rem .6rem; font-size: .88rem; width: 80px;
}
.input-sm:focus { outline: none; border-color: var(--accent2); }
.btn-sm { padding: .35rem .75rem; font-size: .85rem; }
.btn-muted {
  background: var(--bg3); border: 1px solid var(--border); color: var(--muted);
}
.btn-muted:hover { border-color: var(--accent2); color: var(--accent2); }

.section-heading { font-size: 1rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 1.5rem 0 .75rem; }

.cluster-card {
  margin-bottom: 1rem; border-left: 3px solid var(--accent2);
}
.cluster-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: .75rem;
}
.cluster-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.cluster-badge {
  background: rgba(88,166,255,.12); border: 1px solid rgba(88,166,255,.3);
  color: var(--accent2); padding: .2rem .6rem; border-radius: 20px;
  font-size: .78rem; font-weight: 600;
}
.cluster-commons { display: flex; flex-wrap: wrap; gap: .3rem; }
.reason-chip-cluster {
  background: rgba(88,166,255,.08); border-color: rgba(88,166,255,.2); color: var(--accent2);
}

.cluster-members { display: flex; flex-direction: column; gap: .5rem; }
.cluster-member {
  display: flex; gap: .75rem; align-items: center;
  padding: .5rem .75rem; background: var(--bg2); border: 1px solid var(--border); border-radius: 6px;
}
.cluster-score {
  width: 40px; height: 40px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; flex-shrink: 0; border: 2px solid transparent;
}
.cluster-score.score-high   { background: rgba(63,185,80,.12); border-color: rgba(63,185,80,.4); color: var(--green); }
.cluster-score.score-medium { background: rgba(247,129,102,.1); border-color: rgba(247,129,102,.35); color: var(--orange); }
.cluster-score.score-low    { background: rgba(139,148,158,.1); border-color: rgba(139,148,158,.25); color: var(--muted); }
.cluster-member-info { flex: 1; min-width: 0; }
.cluster-domain { font-weight: 600; color: var(--accent2); text-decoration: none; }
.cluster-domain:hover { text-decoration: underline; }
.cluster-member-meta { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; margin-top: .2rem; }

/* Relations table */
.rel-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.rel-table th {
  text-align: left; padding: .6rem 1rem; background: var(--bg3);
  color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1px solid var(--border);
}
.rel-table td { padding: .55rem 1rem; border-bottom: 1px solid var(--border); }
.rel-table tr:last-child td { border-bottom: none; }
.rel-table tr:hover td { background: var(--bg2); }
.rel-table a { color: var(--accent2); text-decoration: none; }
.rel-table a:hover { text-decoration: underline; }

.score-badge {
  display: inline-block; padding: .15rem .55rem; border-radius: 4px;
  font-weight: 700; font-size: .85rem; border: 1px solid transparent;
}
.score-badge.score-high   { background: rgba(63,185,80,.12); border-color: rgba(63,185,80,.4); color: var(--green); }
.score-badge.score-medium { background: rgba(247,129,102,.1); border-color: rgba(247,129,102,.35); color: var(--orange); }
.score-badge.score-low    { background: rgba(139,148,158,.1); border-color: rgba(139,148,158,.25); color: var(--muted); }

.reason-chips-inline { display: flex; flex-wrap: wrap; gap: .25rem; }
.reason-chip-more { background: rgba(139,148,158,.15); }

.empty-state {
  text-align: center; padding: 3rem 2rem; color: var(--muted);
}
.empty-icon { font-size: 2.5rem; margin-bottom: .75rem; }

.safety-note {
  margin-top: 2rem; padding: .85rem 1.1rem;
  background: rgba(210,153,34,.07); border: 1px solid rgba(210,153,34,.3);
  border-radius: var(--radius); font-size: .85rem; color: var(--muted);
  line-height: 1.6;
}

/* ── AI Assessment ─────────────────────────────────────────────────────────── */
.ai-box {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem 1.25rem; margin-bottom: 1rem;
}
.ai-box-ai-cat-ok         { border-color: rgba(63,185,80,.4); background: rgba(63,185,80,.04); }
.ai-box-ai-cat-review     { border-color: rgba(88,166,255,.4); background: rgba(88,166,255,.04); }
.ai-box-ai-cat-suspicious { border-color: rgba(240,136,62,.4); background: rgba(240,136,62,.04); }
.ai-box-ai-cat-high       { border-color: rgba(248,81,73,.4);  background: rgba(248,81,73,.04); }

.ai-header {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .75rem;
}
.ai-cat-badge {
  display: inline-block; padding: .25rem .7rem; border-radius: 20px;
  font-size: .82rem; font-weight: 700; border: 1px solid transparent;
}
.ai-cat-ok         { background: rgba(63,185,80,.15); border-color: rgba(63,185,80,.4); color: var(--green); }
.ai-cat-review     { background: rgba(88,166,255,.12); border-color: rgba(88,166,255,.35); color: var(--accent2); }
.ai-cat-suspicious { background: rgba(240,136,62,.12); border-color: rgba(240,136,62,.4); color: var(--orange); }
.ai-cat-high       { background: rgba(248,81,73,.12); border-color: rgba(248,81,73,.4); color: var(--red); }

.ai-confidence { display: flex; align-items: center; gap: .4rem; }
.ai-conf-bar {
  width: 80px; height: 6px; background: var(--bg3); border-radius: 3px; overflow: hidden;
}
.ai-conf-fill { height: 100%; background: var(--accent2); border-radius: 3px; }
.ai-conf-label { font-size: .8rem; color: var(--muted); }
.ai-model-tag {
  margin-left: auto; font-size: .78rem; color: var(--muted);
  background: var(--bg3); border: 1px solid var(--border);
  padding: .15rem .5rem; border-radius: 4px; font-family: monospace;
}
.ai-summary { margin-bottom: .75rem; line-height: 1.6; }

.ai-details { margin-bottom: .75rem; }
.ai-details summary {
  cursor: pointer; color: var(--accent2); font-size: .88rem; margin-bottom: .5rem;
}
.ai-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: .5rem;
}
@media(max-width:700px) { .ai-detail-grid { grid-template-columns: 1fr; } }
.ai-detail-block {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 6px; padding: .6rem .8rem;
}
.ai-detail-label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); margin-bottom: .3rem;
}
.ai-detail-text { font-size: .9rem; line-height: 1.6; }
.ai-mitigating  { color: var(--green); }
.ai-risk-factors { color: var(--orange); }

.ai-disclaimer {
  margin-top: .6rem; padding: .5rem .75rem;
  background: rgba(210,153,34,.07); border-left: 3px solid rgba(210,153,34,.5);
  font-size: .82rem; color: var(--muted); border-radius: 0 4px 4px 0;
}
.ai-meta { margin-top: .4rem; }

.support-info {
  padding: .6rem .9rem; background: rgba(88,166,255,.08);
  border: 1px solid rgba(88,166,255,.25); border-radius: 6px;
  font-size: .9rem;
}

/* ── Alert variants ────────────────────────────────────────────────────────── */
.alert-warn {
  background: rgba(210,153,34,.1); border: 1px solid rgba(210,153,34,.4);
  border-radius: var(--radius); padding: .85rem 1.1rem; margin-bottom: 1.25rem;
  color: var(--yellow);
}
.alert-info {
  background: rgba(88,166,255,.08); border: 1px solid rgba(88,166,255,.3);
  border-radius: var(--radius); padding: .85rem 1.1rem; margin-bottom: 1.25rem;
  color: var(--accent2); display: flex; align-items: center; flex-wrap: wrap; gap: .75rem;
}
.alert-err {
  background: rgba(248,81,73,.1); border: 1px solid rgba(248,81,73,.35);
  border-radius: var(--radius); padding: .85rem 1.1rem; margin-bottom: 1.25rem;
  color: var(--red);
}

/* ── Support button ─────────────────────────────────────────────────────────  */
.btn-support {
  background: rgba(88,166,255,.15); border: 1px solid rgba(88,166,255,.4);
  color: var(--accent2); padding: .4rem .9rem; border-radius: 6px;
  cursor: pointer; font-size: .88rem; font-weight: 600;
}
.btn-support:hover { background: rgba(88,166,255,.25); }
.btn-link {
  color: var(--accent2); font-weight: 600; font-size: .9rem;
  padding: .25rem .6rem; border: 1px solid rgba(88,166,255,.3); border-radius: 4px;
}

/* ── Role badges / chips ────────────────────────────────────────────────────  */
.role-badge {
  display: inline-block; padding: .15rem .5rem; border-radius: 20px;
  font-size: .78rem; font-weight: 700; border: 1px solid transparent;
}
.role-badge.role-admin { background: rgba(247,129,102,.12); border-color: rgba(247,129,102,.4); color: var(--accent); }
.role-badge.role-user  { background: rgba(88,166,255,.1); border-color: rgba(88,166,255,.3); color: var(--accent2); }
.role-chip {
  font-size: .72rem; background: rgba(247,129,102,.15); color: var(--accent);
  padding: .1rem .4rem; border-radius: 4px; margin-left: .3rem;
}

/* ── Admin nav link ──────────────────────────────────────────────────────────  */
.nav-admin { color: var(--accent) !important; font-weight: 600; }

/* ── User management table ──────────────────────────────────────────────────  */
.user-inactive { opacity: .5; }
.btn-ok   { background: rgba(63,185,80,.1); border-color: rgba(63,185,80,.4); color: var(--green); }
.btn-ok:hover { background: rgba(63,185,80,.2); }
.btn-warn { background: rgba(248,81,73,.1); border-color: rgba(248,81,73,.35); color: var(--red); }
.btn-warn:hover { background: rgba(248,81,73,.2); }
.action-cell { display: flex; flex-direction: column; gap: .4rem; }

/* ── Vorprüfung Banner ──────────────────────────────────────────────────────── */
.precheck-banner {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .85rem 1.2rem; border-radius: var(--radius); margin-bottom: 1rem;
  border: 1px solid transparent;
}
.precheck-ok   { background: rgba(63,185,80,.07); border-color: rgba(63,185,80,.3); }
.precheck-warn { background: rgba(210,153,34,.07); border-color: rgba(210,153,34,.3); }
.precheck-ki   { background: rgba(88,166,255,.07); border-color: rgba(88,166,255,.3); }
.precheck-err  { background: rgba(248,81,73,.07);  border-color: rgba(248,81,73,.3); }
.precheck-icon { font-size: 1.4rem; flex-shrink: 0; }
.precheck-body { flex: 1; }
.precheck-body strong { display: block; }
.precheck-sub  { font-size: .85rem; color: var(--muted); }

/* ── AI status chips (in precheck banner) ───────────────────────────────────  */
.ai-status-chip {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .3rem .75rem; border-radius: 20px; font-size: .82rem; font-weight: 600;
  border: 1px solid transparent; white-space: nowrap;
}
.ai-queued  { background: rgba(210,153,34,.12); border-color: rgba(210,153,34,.4); color: var(--yellow); }
.ai-running { background: rgba(88,166,255,.12); border-color: rgba(88,166,255,.4); color: var(--accent2); }
.ai-done    { background: rgba(63,185,80,.12);  border-color: rgba(63,185,80,.4);  color: var(--green); }

/* ── Queue AI button ─────────────────────────────────────────────────────────  */
.btn-queue-ai {
  background: rgba(88,166,255,.15); border: 1px solid rgba(88,166,255,.4);
  color: var(--accent2); padding: .4rem .9rem; border-radius: 6px;
  cursor: pointer; font-size: .88rem; font-weight: 600; white-space: nowrap;
}
.btn-queue-ai:hover { background: rgba(88,166,255,.25); }

/* ── Job status badges ───────────────────────────────────────────────────────  */
.job-status {
  display: inline-block; padding: .2rem .55rem; border-radius: 20px;
  font-size: .78rem; font-weight: 700; border: 1px solid transparent;
}
.job-queued  { background: rgba(210,153,34,.12); border-color: rgba(210,153,34,.4); color: var(--yellow); }
.job-running { background: rgba(88,166,255,.12); border-color: rgba(88,166,255,.4); color: var(--accent2); }
.job-done    { background: rgba(63,185,80,.12);  border-color: rgba(63,185,80,.4);  color: var(--green); }
.job-failed  { background: rgba(248,81,73,.12);  border-color: rgba(248,81,73,.35); color: var(--red); }
.job-error-row td { background: rgba(248,81,73,.04); }

/* ── Queue size badge ────────────────────────────────────────────────────────  */
.queue-size-badge {
  display: inline-block; background: rgba(88,166,255,.12);
  border: 1px solid rgba(88,166,255,.3); color: var(--accent2);
  padding: .2rem .7rem; border-radius: 20px; font-size: .82rem; font-weight: 600;
}

/* ── Abuse confirmation gate ─────────────────────────────────────────────────  */
.abuse-gate {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; max-width: 700px;
}
.abuse-gate-text { margin-bottom: 1rem; line-height: 1.6; }
.abuse-confirm-form { display: flex; flex-direction: column; gap: .75rem; }
.abuse-confirm-label {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: .9rem; line-height: 1.5; cursor: pointer;
}
.abuse-confirm-label input { margin-top: .15rem; flex-shrink: 0; }

/* ── Factcheck stub grid ─────────────────────────────────────────────────────  */
.factcheck-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 1rem;
}
.factcheck-item {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem;
}
.fc-icon  { font-size: 1.6rem; margin-bottom: .4rem; }
.fc-label { font-weight: 600; margin-bottom: .3rem; }
.fc-desc  { line-height: 1.5; }

/* ── Soon badge ──────────────────────────────────────────────────────────────  */
.soon-badge {
  font-size: .7rem; background: rgba(240,136,62,.15); color: var(--orange);
  border: 1px solid rgba(240,136,62,.4); padding: .15rem .5rem; border-radius: 4px;
  vertical-align: middle; font-weight: 700;
}

/* ── Nav muted link ──────────────────────────────────────────────────────────  */
.nav-muted { color: var(--muted) !important; font-size: .82rem !important; }

/* ── Expandable inline blocks ────────────────────────────────────────────────  */
.expandable { display: none; margin-top: .4rem; }

/* ── Public page CSS variable aliases ───────────────────────────────────────  */
:root {
  --fg:      var(--text);
  --surface: var(--bg2);
  --mono:    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

/* ── Public page styles ──────────────────────────────────────────────── */
.public-body { background: var(--bg); color: var(--fg); }

/* Public header */
.public-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: .75rem 0; }
.pub-header-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pub-logo { display: flex; align-items: baseline; gap: .5rem; text-decoration: none; color: var(--fg); }
.pub-logo-icon { font-size: 1.4rem; }
.pub-logo-text { font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; }
.pub-logo-sub { font-size: .75rem; color: var(--muted); }
.pub-nav { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.pub-nav a { text-decoration: none; color: var(--fg); font-size: .9rem; }
.pub-nav a:hover { color: var(--accent); }
.pub-nav-login, .pub-nav-register { padding: .3rem .75rem; border-radius: 4px; font-size: .85rem; }
.pub-nav-login { border: 1px solid var(--border); }
.pub-nav-register { background: var(--accent); color: #fff !important; }
.pub-nav-user { color: var(--accent) !important; }

/* Public main + footer */
.pub-main { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }
.pub-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 3rem; padding: 1.5rem 0; }
.pub-footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.pub-disclaimer { font-size: .82rem; color: var(--muted); line-height: 1.6; }
.pub-footer-links { display: flex; gap: 1.5rem; }
.pub-footer-links a { font-size: .82rem; color: var(--muted); text-decoration: none; }
.pub-footer-links a:hover { color: var(--fg); }

/* Hero */
.pub-hero { padding: 3rem 0 2rem; text-align: center; }
.pub-hero-inner { max-width: 700px; margin: 0 auto; }
.pub-hero-title { font-size: 2.2rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: -.03em; }
.pub-hero-sub { font-size: 1rem; color: var(--muted); line-height: 1.7; margin-bottom: 2rem; }

/* Search */
.pub-search-form { margin-bottom: 1.5rem; }
.pub-search-row { display: flex; gap: .5rem; max-width: 600px; margin: 0 auto; }
.pub-search-input { flex: 1; padding: .65rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; color: var(--fg); font-size: 1rem; font-family: inherit; }
.pub-search-input:focus { outline: none; border-color: var(--accent); }
.pub-search-btn { padding: .65rem 1.5rem; background: var(--accent); color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: .95rem; white-space: nowrap; }
.pub-search-btn:hover { opacity: .9; }

/* CTA row */
.pub-cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.pub-cta-btn { display: inline-block; padding: .6rem 1.4rem; background: var(--accent); color: #fff; text-decoration: none; border-radius: 4px; font-size: .9rem; cursor: pointer; border: none; }
.pub-cta-btn:hover { opacity: .9; }
.pub-cta-secondary { display: inline-block; padding: .6rem 1.2rem; background: transparent; color: var(--fg); text-decoration: none; border: 1px solid var(--border); border-radius: 4px; font-size: .9rem; }
.pub-cta-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* Section */
.pub-section { margin: 2rem 0; }
.pub-page-header { margin-bottom: 1.5rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.pub-page-header h1 { margin: 0; font-size: 1.6rem; }

/* Result cards */
.pub-results-list { display: flex; flex-direction: column; gap: .75rem; }
.pub-result-card { display: block; padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--border); border-radius: 4px; text-decoration: none; color: var(--fg); transition: border-color .15s; }
.pub-result-card:hover { border-color: var(--accent); }
.pub-result-card.status-review_needed { border-left-color: #e74c3c; }
.pub-result-card.status-risk_signals { border-left-color: #e67e22; }
.pub-result-card.status-user_reports { border-left-color: #f39c12; }
.pub-result-card.status-no_findings { border-left-color: #27ae60; }
.pub-result-card.status-cleared { border-left-color: #27ae60; }
.pub-result-card.status-claim_pending { border-left-color: #3498db; }
.pub-result-card.status-claim_received { border-left-color: #9b59b6; }
.pub-result-domain { font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 1rem; font-weight: 600; }
.pub-result-meta { display: flex; gap: 1rem; align-items: center; margin-top: .4rem; flex-wrap: wrap; }
.pub-result-status { font-size: .82rem; color: var(--muted); }
.pub-score { font-size: .82rem; color: var(--muted); }

/* Status badges */
.pub-status-badge { display: inline-block; padding: .2rem .6rem; border-radius: 3px; font-size: .78rem; font-weight: 600; background: var(--surface); border: 1px solid var(--border); }
.pub-status-badge.status-review_needed { background: rgba(231,76,60,.15); border-color: #e74c3c; color: #e74c3c; }
.pub-status-badge.status-risk_signals { background: rgba(230,126,34,.15); border-color: #e67e22; color: #e67e22; }
.pub-status-badge.status-user_reports { background: rgba(243,156,18,.15); border-color: #f39c12; color: #f39c12; }
.pub-status-badge.status-no_findings { background: rgba(39,174,96,.15); border-color: #27ae60; color: #27ae60; }
.pub-status-badge.status-cleared { background: rgba(39,174,96,.15); border-color: #27ae60; color: #27ae60; }
.pub-status-badge.status-claim_pending { background: rgba(52,152,219,.15); border-color: #3498db; color: #3498db; }
.pub-status-badge.status-claim_received { background: rgba(155,89,182,.15); border-color: #9b59b6; color: #9b59b6; }
.pub-status-lg { font-size: .9rem; padding: .3rem .8rem; }

/* Domain detail grid */
.pub-domain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.pub-domain-card { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1.25rem; }
.pub-domain-card h2 { margin: 0 0 1rem; font-size: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.pub-stat-list { display: flex; flex-direction: column; gap: .6rem; }
.pub-stat { display: flex; justify-content: space-between; align-items: center; }
.pub-stat-label { font-size: .85rem; color: var(--muted); }
.pub-stat-val { font-size: .9rem; font-weight: 600; }
.score-badge { padding: .15rem .5rem; border-radius: 3px; }
.score-badge.score-high { background: rgba(231,76,60,.15); color: #e74c3c; }
.score-badge.score-mid { background: rgba(230,126,34,.15); color: #e67e22; }
.score-badge.score-low { background: rgba(39,174,96,.15); color: #27ae60; }
.pub-indicator-list { list-style: none; padding: 0; margin: 0; }
.pub-indicator { padding: .3rem 0; font-size: .85rem; border-bottom: 1px solid var(--border); }
.pub-indicator:last-child { border-bottom: none; }
.pub-term-cloud { display: flex; flex-wrap: wrap; gap: .4rem; }
.pub-term { background: rgba(230,126,34,.1); border: 1px solid #e67e22; color: #e67e22; padding: .15rem .5rem; border-radius: 3px; font-size: .78rem; }

/* Claim section */
.pub-claim-section { margin: 2rem 0; padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.pub-claim-section h2 { margin: 0 0 .5rem; font-size: 1rem; }
.pub-claim-notice { padding: .75rem 1rem; background: rgba(52,152,219,.1); border: 1px solid #3498db; border-radius: 4px; color: #3498db; margin: 1rem 0; font-size: .9rem; }
.pub-claim-accepted { padding: .75rem 1rem; background: rgba(39,174,96,.1); border: 1px solid #27ae60; border-radius: 4px; color: #27ae60; margin: 1rem 0; font-size: .9rem; }
.pub-claim-sent { text-align: center; padding: 2rem; }
.pub-domain-disclaimer { padding: .75rem 1rem; background: rgba(52,152,219,.07); border: 1px solid var(--border); border-radius: 4px; font-size: .85rem; color: var(--muted); margin: 1rem 0; }
.pub-liability-note { margin: 2rem 0; padding: 1rem; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--border); line-height: 1.6; }

/* Not known */
.pub-not-known { text-align: center; padding: 3rem 1rem; }
.pub-not-known-title { font-size: 1.2rem; font-weight: 600; margin-bottom: .5rem; }

/* How-it-works cards */
.pub-how-cards { margin: 3rem 0; }
.pub-how-cards h2 { text-align: center; margin-bottom: 1.5rem; }
.pub-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.pub-card { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1.25rem; text-align: center; }
.pub-card-icon { font-size: 2rem; margin-bottom: .5rem; }
.pub-card-title { font-weight: 600; margin-bottom: .25rem; }
.pub-card-text { font-size: .82rem; color: var(--muted); line-height: 1.5; }

/* Prose + forms */
.pub-prose { max-width: 750px; line-height: 1.8; }
.pub-prose h2 { margin-top: 2rem; font-size: 1.1rem; }
.pub-prose ul, .pub-prose ol { padding-left: 1.5rem; }
.pub-prose li { margin-bottom: .4rem; }
.pub-steps li { margin-bottom: .6rem; }
.pub-status-dl dt { margin-top: 1rem; margin-bottom: .25rem; }
.pub-status-dl dd { color: var(--muted); font-size: .9rem; margin-left: 0; }
.pub-form-card { max-width: 500px; padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }

/* Filter form */
.pub-filter-form { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }

/* Pagination */
.pub-pagination { margin-top: 1.5rem; display: flex; gap: 1rem; }

/* Publish control block in report.html */
.pub-control-block { margin-top: 1rem; padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; }
.pub-control-block h3 { margin: 0 0 .75rem; font-size: .9rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

/* Extra utility */
.alert-info { padding: .6rem 1rem; background: rgba(52,152,219,.1); border: 1px solid #3498db; border-radius: 4px; color: #3498db; font-size: .88rem; }
.btn-sm { padding: .3rem .7rem; font-size: .82rem; border-radius: 3px; border: 1px solid var(--border); background: var(--surface); color: var(--fg); cursor: pointer; text-decoration: none; display: inline-block; }
.btn-sm:hover { border-color: var(--accent); }
.btn-warn { background: rgba(231,76,60,.15); border-color: #e74c3c; color: #e74c3c; }
.btn-warn:hover { background: rgba(231,76,60,.25); }
.input-full { width: 100%; padding: .55rem .75rem; background: var(--bg2); border: 1px solid var(--border); border-radius: 4px; color: var(--text); font-size: .92rem; font-family: inherit; }
.input-full:focus { outline: none; border-color: var(--accent); }
.page-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-header h1 { margin: 0; font-size: 1.6rem; }

/* Legal pages */
.legal-notice-box { background: rgba(52,152,219,.08); border: 1px solid rgba(52,152,219,.3); border-radius: 4px; padding: 1rem 1.2rem; font-size: .9rem; margin-bottom: 1rem; }
.legal-notice-box ul { margin: .4rem 0 0 1.2rem; }
.legal-cookie-table { overflow-x: auto; margin: 1rem 0; }
.legal-cookie-table table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.legal-cookie-table th { background: var(--surface); padding: .5rem .75rem; text-align: left; border-bottom: 2px solid var(--border); }
.legal-cookie-table td { padding: .5rem .75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.pub-status-dl { display: flex; flex-direction: column; gap: .75rem; }
.pub-status-dl dt { margin-bottom: .25rem; }
.pub-status-dl dd { margin: 0 0 .25rem 0; font-size: .9rem; color: var(--muted); }

/* Cookie banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 1px solid var(--border); z-index: 9999; padding: .75rem 1rem; }
.cookie-banner-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }
.cookie-banner-inner a { color: var(--accent); }
.cookie-ok-btn { padding: .4rem 1.1rem; background: var(--accent); color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: .85rem; white-space: nowrap; }
.cookie-ok-btn:hover { opacity: .9; }

/* Footer wrapping on small screens */
@media (max-width: 700px) {
  .pub-footer-links { flex-wrap: wrap; gap: .75rem; }
}

/* ── Development Mode Banner ─────────────────────────────────── */
.dev-banner {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
    color: #fff;
    text-align: center;
    padding: .45rem 1rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .05em;
    z-index: 99999;
    box-shadow: 0 2px 8px rgba(220,38,38,.4);
}


/* ── Claim file upload ──────────────────────────────────────────────────────── */

.upload-section {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.25rem;
    background: var(--bg-card);
}
.upload-section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: .75rem;
}
.upload-row {
    margin-bottom: .65rem;
}
.upload-row-inner {
    display: flex;
    gap: .75rem;
    align-items: flex-end;
    flex-wrap: wrap;
}
.upload-remove-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-muted);
    cursor: pointer;
    padding: .25rem .5rem;
    font-size: .85rem;
    height: 2.1rem;
    align-self: flex-end;
    margin-bottom: .1rem;
}
.upload-remove-btn:hover { color: #dc2626; border-color: #dc2626; }
.input-file {
    display: block;
    width: 100%;
    padding: .35rem .5rem;
    font-size: .9rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
}

/* ── Admin claim detail ─────────────────────────────────────────────────────── */

.detail-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.detail-table th, .detail-table td {
    padding: .4rem .6rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}
.detail-table th { color: var(--text-muted); width: 120px; font-weight: 500; }

.claim-message {
    font-size: .9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text);
}

.doc-type-badge {
    display: inline-block;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: .1rem .4rem;
    font-size: .8rem;
    color: var(--text-muted);
}
.doc-count { color: var(--accent); font-weight: 600; }
.badge-count {
    display: inline-block;
    background: #dc2626;
    color: #fff;
    border-radius: 999px;
    padding: .05rem .5rem;
    font-size: .78rem;
    font-weight: 700;
    margin-left: .4rem;
    vertical-align: middle;
}

/* Status badges for claim statuses */
.badge { display: inline-block; border-radius: 4px; padding: .15rem .5rem; font-size: .8rem; font-weight: 600; }
.badge-offen                    { background: #fef3c7; color: #92400e; }
.badge-in_pruefung              { background: #dbeafe; color: #1e40af; }
.badge-nachweise_ausreichend    { background: #d1fae5; color: #065f46; }
.badge-nachweise_unvollstaendig { background: #fee2e2; color: #991b1b; }
.badge-korrigiert               { background: #d1fae5; color: #065f46; }
.badge-entschaerft              { background: #ede9fe; color: #4c1d95; }
.badge-depubliziert             { background: #f3f4f6; color: #374151; }
.badge-abgelehnt                { background: #fee2e2; color: #991b1b; }
.badge-pending                  { background: #fef3c7; color: #92400e; }
.badge-accepted                 { background: #d1fae5; color: #065f46; }
.badge-rejected                 { background: #fee2e2; color: #991b1b; }

/* Tab bar */
.tab-bar { display: flex; gap: .5rem; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: .5rem; }
.tab-link { padding: .35rem .8rem; border-radius: 6px 6px 0 0; font-size: .88rem; color: var(--text-muted); text-decoration: none; border: 1px solid transparent; }
.tab-link:hover { color: var(--text); background: var(--bg-hover); }
.tab-link.active { color: var(--accent); border-color: var(--border); border-bottom-color: var(--bg); background: var(--bg); font-weight: 600; }

/* Admin card */
.admin-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 1.1rem 1.25rem; }
.admin-card-title { margin: 0 0 .75rem 0; font-size: 1rem; font-weight: 600; color: var(--text); }

/* Empty state */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }

/* Review meta */
.review-meta { padding: .4rem .6rem; background: var(--bg-hover); border-radius: 4px; margin-bottom: .75rem; }


/* ── Report comments ────────────────────────────────────────────────────────── */
.comment-list { display: flex; flex-direction: column; gap: .75rem; }
.comment-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .75rem 1rem;
    background: var(--bg-card);
}
.comment-item.comment-pending { border-color: #f59e0b; background: #fffbeb; }
.comment-meta { display: flex; gap: .75rem; align-items: center; margin-bottom: .35rem; font-size: .85rem; }
.comment-text { font-size: .9rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.comment-form-wrap { margin-top: 1rem; }

/* ── Comment moderation list ────────────────────────────────────────────────── */
.comment-mod-list { display: flex; flex-direction: column; gap: .75rem; }
.comment-mod-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .85rem 1rem;
    background: var(--bg-card);
}
.comment-mod-item.status-pending_review { border-color: #f59e0b; }
.comment-mod-item.status-hidden { opacity: .65; }
.comment-mod-item.status-deleted { opacity: .45; text-decoration: line-through; }
.comment-mod-header { display: flex; gap: .75rem; align-items: center; margin-bottom: .4rem; flex-wrap: wrap; }
.comment-mod-text { font-size: .9rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.comment-mod-actions { display: flex; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; align-items: center; }
.input-sm { padding: .25rem .5rem; font-size: .82rem; border: 1px solid var(--border); border-radius: 4px; background: var(--bg); color: var(--text); width: 160px; }

/* Blocklist badges */
.badge-email        { background: #dbeafe; color: #1e40af; }
.badge-email_domain { background: #ede9fe; color: #4c1d95; }
.badge-ip           { background: #fef3c7; color: #92400e; }
.badge-username     { background: #fee2e2; color: #991b1b; }
.badge-ok           { background: #d1fae5; color: #065f46; border-radius: 4px; padding: .1rem .4rem; font-size: .8rem; font-weight: 600; }

/* User block indicator */
.user-blocked { background: #fee2e2; }
.badge-trust-0 { background: #f3f4f6; color: #6b7280; }
.badge-trust-1 { background: #dbeafe; color: #1e40af; }
.badge-trust-2 { background: #d1fae5; color: #065f46; }

/* form-group shorthand */
.form-group { margin-bottom: 0; }
.btn-success { background: #059669; color: #fff; border: none; }
.btn-success:hover { background: #047857; }
.btn-danger { background: #dc2626; color: #fff; border: none; }
.btn-danger:hover { background: #b91c1c; }

/* pending status badges */
.badge-pending_review { background: #fef3c7; color: #92400e; }
.badge-visible        { background: #d1fae5; color: #065f46; }
.badge-hidden         { background: #f3f4f6; color: #6b7280; }
.badge-deleted        { background: #fee2e2; color: #991b1b; }

/* ── Phase 2: Nav badge ──────────────────────────────────────────────────────── */
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: #ef4444; color: #fff;
  border-radius: 10px; font-size: .68rem; font-weight: 700;
  min-width: 1.1rem; height: 1.1rem; padding: 0 .3rem;
  margin-left: .2rem; vertical-align: middle;
  line-height: 1;
}

/* ── Emoji picker ────────────────────────────────────────────────────────────── */
.emoji-picker {
  display: flex; gap: .25rem; flex-wrap: wrap;
  margin-bottom: .5rem; padding: .35rem .5rem;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius,6px);
}
.emoji-btn {
  background: none; border: none; cursor: pointer;
  font-size: 1.15rem; padding: .15rem .2rem;
  border-radius: 4px; line-height: 1;
  transition: background .12s;
}
.emoji-btn:hover { background: var(--border); }

/* ── Comment preview ─────────────────────────────────────────────────────────── */
.comment-preview-label {
  font-size: .78rem; color: var(--muted); text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: .3rem;
}
.comment-preview {
  border: 1px dashed var(--border); border-radius: var(--radius,6px);
  padding: .6rem .75rem; min-height: 2.5rem;
  font-size: .9rem; line-height: 1.55;
  margin-bottom: .5rem;
  white-space: pre-wrap; word-break: break-word;
}

/* ── Comment reactions ───────────────────────────────────────────────────────── */
.comment-reactions {
  display: flex; gap: .3rem; flex-wrap: wrap;
  margin-top: .4rem;
}
.reaction-btn {
  display: inline-flex; align-items: center; gap: .2rem;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 20px; padding: .15rem .5rem;
  font-size: .85rem; cursor: pointer; color: var(--muted);
  transition: background .12s, border-color .12s;
}
.reaction-btn:hover { background: var(--border); color: var(--fg); }
.reaction-btn.reaction-active {
  background: #dbeafe; border-color: #93c5fd; color: #1e40af;
}
.reaction-count {
  font-size: .75rem; font-weight: 600;
}

/* ── Withdrawn comment ───────────────────────────────────────────────────────── */
.comment-item.comment-withdrawn {
  opacity: .5;
}
.badge-withdrawn {
  background: #f3f4f6; color: #6b7280;
  border-radius: 4px; padding: .1rem .4rem;
  font-size: .78rem; font-weight: 600;
}

/* ── Withdraw button (inline in comment-meta) ────────────────────────────────── */
.btn-withdraw {
  background: none; border: 1px solid var(--border);
  border-radius: 4px; padding: .05rem .3rem;
  font-size: .75rem; cursor: pointer; color: var(--muted);
  line-height: 1.4;
}
.btn-withdraw:hover { background: var(--border); color: var(--fg); }

/* ── Admin comment settings page ─────────────────────────────────────────────── */
.badge-ok { background: #d1fae5; color: #065f46; border-radius: 4px; padding: .15rem .5rem; font-size: .85rem; font-weight: 600; }

/* ── Phase 5: Fact-check + Image-check styles ─────────────────────────────── */
.fc-claim-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.fc-claim-table th {
  text-align: left;
  padding: .5rem .6rem;
  border-bottom: 2px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.fc-claim-table td {
  padding: .5rem .6rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.fc-claim-table tr:last-child td { border-bottom: none; }
.fc-claim-text { font-weight: 500; }
.fc-conf { text-align: right; font-weight: 600; white-space: nowrap; }
.fc-explanation { line-height: 1.5; }
.fc-vstatus { font-size: .72rem !important; }

.fc-type-badge {
  display: inline-block;
  padding: .15rem .4rem;
  border-radius: 3px;
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
  background: var(--border);
  color: var(--fg);
}
.fc-type-factual_claim   { background: #3b82f6; color: #fff; }
.fc-type-opinion         { background: #8b5cf6; color: #fff; }
.fc-type-speculation     { background: #f59e0b; color: #fff; }
.fc-type-clickbait_framing { background: #ef4444; color: #fff; }
.fc-type-unverifiable    { background: #6b7280; color: #fff; }

.file-upload-form .file-drop-area {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  padding: .75rem;
  border: 2px dashed var(--border);
  border-radius: 8px;
  background: var(--bg-alt, #f9f9f9);
}
.file-entry { transition: box-shadow .15s; }
.file-entry:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); }

/* ── Phase 6: Social / OG styles ─────────────────────────────────────────── */
.submit-social-form { max-width: 640px; margin: 0 auto; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .35rem; }
.input-full { width: 100%; box-sizing: border-box; padding: .5rem .75rem;
  border: 1px solid var(--border,#334); border-radius: 6px;
  background: var(--bg2,#1a1f2e); color: var(--text,#e2e8f0); font-size: .95rem; }
.input-file { width: 100%; }
.file-hint { font-size: .8rem; color: var(--muted,#94a3b8); margin-top: .25rem; }
.file-preview-list { margin-top: .5rem; }
.file-preview-item { font-size: .85rem; color: var(--muted,#94a3b8);
  padding: .2rem 0; border-bottom: 1px solid var(--border,#334); }
.platform-hint { margin-top: .4rem; min-height: 1.5rem; }
.detected-type { font-size: .85rem; margin-top: .3rem; }
.subtype-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .4rem; }
.subtype-chip { font-size: .8rem; padding: .2rem .6rem;
  border: 1px solid var(--border,#334); border-radius: 12px;
  color: var(--muted,#94a3b8); transition: all .2s; }
.subtype-chip.active { border-color: var(--primary,#3b82f6);
  color: var(--primary,#3b82f6); background: rgba(59,130,246,.1); }
.form-actions { display: flex; gap: 1rem; margin-top: 1.5rem; }

/* Platform badges */
.platform-badge { display: inline-block; font-size: .75rem; padding: .15rem .55rem;
  border-radius: 10px; font-weight: 600; letter-spacing: .03em; }
.platform-facebook  { background: #1877f215; color: #1877f2; border: 1px solid #1877f240; }
.platform-instagram { background: #e1306c15; color: #e1306c; border: 1px solid #e1306c40; }
.platform-youtube   { background: #ff000015; color: #ff0000; border: 1px solid #ff000040; }
.platform-tiktok    { background: #69c9d015; color: #69c9d0; border: 1px solid #69c9d040; }
.platform-twitter   { background: #1da1f215; color: #1da1f2; border: 1px solid #1da1f240; }
.platform-telegram  { background: #2ca5e015; color: #2ca5e0; border: 1px solid #2ca5e040; }
.platform-reddit    { background: #ff451215; color: #ff4512; border: 1px solid #ff451240; }
.platform-other     { background: var(--bg2,#1a1f2e); color: var(--muted,#94a3b8); border: 1px solid var(--border,#334); }

/* OG preview card */
.og-preview-card { }
.og-preview-img { width: 100%; max-height: 200px; object-fit: cover;
  border-radius: 6px; margin-bottom: .75rem; }
.og-meta { }
.og-site { font-size: .75rem; color: var(--muted,#94a3b8); text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: .2rem; }
.og-title { font-weight: 600; font-size: 1rem; margin-bottom: .35rem; }
.og-desc { font-size: .88rem; color: var(--muted,#94a3b8); line-height: 1.5; }
.og-submitted-text { margin-top: .75rem; padding-top: .75rem;
  border-top: 1px solid var(--border,#334); font-size: .9rem; }
.og-submitted-text p { margin: .35rem 0 0; color: var(--text,#e2e8f0); }

/* ── Phase 8: User-friendly report view ─────────────────────────────────── */
.user-report-view { }
.user-summary-card { border-left: 3px solid var(--primary,#3b82f6); }
.user-summary-list { margin: .5rem 0 1rem 0; padding-left: 1.4rem; }
.user-summary-list li { margin-bottom: .5rem; line-height: 1.5; font-size: .95rem; }
.user-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; align-items: center; }
.btn-warn { padding: .5rem 1.2rem; border-radius: 6px; border: none; cursor: pointer;
  background: var(--warn,#f59e0b); color: #fff; font-weight: 600; font-size: .9rem;
  transition: background .15s; }
.btn-warn:hover { background: #d97706; }
.badge-community { display: inline-block; padding: .3rem .75rem; border-radius: 12px;
  background: #10b98115; color: #10b981; border: 1px solid #10b98140;
  font-size: .85rem; font-weight: 600; }
.user-ai-summary { font-size: .9rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE / MOBILE  (Phase 8b)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Hamburger button (hidden on desktop) ──────────────────────────────── */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.3rem;
  padding: .3rem .6rem;
  line-height: 1;
  flex-shrink: 0;
}

/* ── Tablet (≤ 1024px): shrink nav gaps ───────────────────────────────── */
@media (max-width: 1024px) {
  .header-inner { padding: .65rem 1rem; gap: .75rem; }
  nav { gap: .9rem; }
  nav a { font-size: .82rem; }
  main { padding: 1.5rem 1rem; }
}

/* ── Mobile (≤ 768px): hamburger menu ─────────────────────────────────── */
@media (max-width: 768px) {
  html { font-size: 16px; }

  /* Header: logo + hamburger button, nav collapses */
  .header-inner {
    flex-wrap: wrap;
    padding: .6rem .9rem;
    gap: .5rem;
  }
  .logo { flex: 1; }
  .nav-toggle { display: flex; align-items: center; }
  .nav-user { order: 3; width: 100%; justify-content: flex-end; margin-left: 0;
    padding-top: .4rem; border-top: 1px solid var(--border); }

  /* Nav: hidden by default, shown when .nav-open added to header-inner */
  nav {
    order: 4;
    width: 100%;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  nav a {
    padding: .55rem .25rem;
    font-size: .92rem;
    border-bottom: 1px solid var(--border);
  }
  nav a:last-child { border-bottom: none; }

  /* Open state */
  .header-inner.nav-open nav { max-height: 80vh; overflow-y: auto; }
  .header-inner.nav-open .nav-toggle { color: var(--text); border-color: var(--accent2); }

  /* Main content */
  main { padding: 1.25rem .85rem; }

  /* Hero */
  .hero { padding: 1.5rem .5rem 1rem; }
  .hero h1 { font-size: 1.6rem; }
  .hero-sub { font-size: .9rem; }

  /* Cards */
  .card { padding: 1rem; }
  .card h2 { font-size: 1rem; }

  /* Risk banner */
  .risk-banner { flex-wrap: wrap; gap: .5rem; padding: .75rem; }
  .risk-score-pill { min-width: 52px; height: 52px; }
  .risk-score-num { font-size: 1.15rem; }
  .risk-meta { flex-wrap: wrap; gap: .35rem; }

  /* Report grid: already 1-col at 900px, fine */

  /* Tables: horizontal scroll */
  .info-table, .breakdown-table, .history-table, table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Form page */
  .form-page { padding: 0; }
  .submit-social-form { max-width: 100%; }
  .form-actions { flex-direction: column; }
  .form-actions .btn-primary,
  .form-actions .btn-secondary { width: 100%; text-align: center; }

  /* Input */
  .input-full { font-size: 16px; } /* prevent iOS zoom on focus */

  /* User actions */
  .user-actions { flex-direction: column; align-items: stretch; }
  .user-actions .btn-primary,
  .user-actions .btn-warn { width: 100%; text-align: center; }

  /* Scan form */
  .input-row { flex-direction: column; gap: .5rem; }
  .btn-scan { width: 100%; }

  /* Feature grid */
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Small mobile (≤ 480px) ───────────────────────────────────────────── */
@media (max-width: 480px) {
  html { font-size: 15px; }
  .header-inner { padding: .5rem .7rem; }
  .logo-text { font-size: 1rem; }
  main { padding: 1rem .7rem; }
  .hero h1 { font-size: 1.35rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .card { padding: .85rem .75rem; }
  .risk-banner { padding: .65rem .75rem; }
  .user-summary-list li { font-size: .9rem; }
}

/* ── Admin Nav-Dropdown ───────────────────────────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  background: transparent; border: none; cursor: pointer;
  color: var(--muted); font-size: .9rem; padding: 0;
  display: flex; align-items: center; gap: .3rem;
}
.nav-dropdown-btn:hover { color: var(--text); }
.nav-dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + .5rem); right: 0;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 8px;
  min-width: 160px; z-index: 200; padding: .4rem 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: .45rem 1rem;
  color: var(--muted); font-size: .88rem; white-space: nowrap;
}
.nav-dropdown-menu a:hover { color: var(--text); background: var(--bg3); text-decoration: none; }
.nav-sep { border: none; border-top: 1px solid var(--border); margin: .35rem 0; }

/* Mobile: dropdown Teil der vertikalen Nav */
@media (max-width: 768px) {
  .nav-dropdown-btn { font-size: .92rem; padding: .55rem .25rem;
    border-bottom: 1px solid var(--border); width: 100%; justify-content: flex-start; }
  .nav-dropdown-menu { position: static; box-shadow: none; border: none;
    border-radius: 0; background: var(--bg3); padding: 0; display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu a { padding: .45rem 1.5rem; border-bottom: 1px solid var(--border); }
  .nav-sep { display: none; }
}

/* -- KI-running badge + spinner ---------------------------------------- */
.badge-running { display:inline-flex; align-items:center; gap:.4rem;
  padding:.3rem .75rem; border-radius:12px;
  background:#f59e0b18; color:#f59e0b; border:1px solid #f59e0b40;
  font-size:.85rem; font-weight:600; }
.spinner { width:12px; height:12px; border:2px solid #f59e0b40;
  border-top-color:#f59e0b; border-radius:50%;
  animation:spin .8s linear infinite; display:inline-block; }
@keyframes spin { to { transform:rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════════════════
   PHASE 9 — MODERN / INTERACTIVE DESIGN REFRESH
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Extended design tokens ──────────────────────────────────────────────── */
:root {
  --gradient-primary:  linear-gradient(135deg, #58a6ff 0%, #7c3aed 100%);
  --gradient-danger:   linear-gradient(135deg, #f85149 0%, #f0883e 100%);
  --gradient-success:  linear-gradient(135deg, #3fb950 0%, #26a641 100%);
  --glow-blue:         0 0 24px rgba(88,166,255,.18);
  --glow-red:          0 0 24px rgba(248,81,73,.18);
  --card-hover-border: rgba(88,166,255,.35);
  --transition:        all .2s cubic-bezier(.4,0,.2,1);
  --blur:              blur(12px);
}

/* ── Smooth scrolling ─────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

/* ── Header glass effect ─────────────────────────────────────────────────── */
header {
  background: rgba(22,27,34,.85);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

/* ── Logo glow on hover ──────────────────────────────────────────────────── */
.logo { transition: var(--transition); }
.logo:hover { color: var(--accent2); text-shadow: 0 0 12px rgba(88,166,255,.4); }

/* ── Nav link underline animation ───────────────────────────────────────── */
nav a {
  position: relative;
  transition: color .2s;
}
nav a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient-primary);
  transition: width .25s ease;
  border-radius: 2px;
}
nav a:hover::after { width: 100%; }

/* ── Buttons — gradient + scale ──────────────────────────────────────────── */
.btn-primary, .pub-cta-btn, .btn-scan {
  background: var(--gradient-primary) !important;
  border: none !important;
  color: #fff !important;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(88,166,255,.25);
}
.btn-primary:hover, .pub-cta-btn:hover, .btn-scan:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 20px rgba(88,166,255,.4);
  text-decoration: none;
}
.btn-primary:active, .pub-cta-btn:active, .btn-scan:active {
  transform: scale(.98);
}
.btn-warn {
  background: linear-gradient(135deg,#f59e0b,#ef4444) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 2px 12px rgba(245,158,11,.25);
  transition: var(--transition);
}
.btn-warn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245,158,11,.4); }

/* ── Cards — hover lift + glow ───────────────────────────────────────────── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  transition: border-color .2s, box-shadow .25s, transform .2s;
}
.card:hover {
  border-color: var(--card-hover-border);
  box-shadow: var(--glow-blue), 0 4px 20px rgba(0,0,0,.3);
  transform: translateY(-2px);
}

/* ── Public hero section ──────────────────────────────────────────────────── */
.pub-hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(88,166,255,.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(124,58,237,.08) 0%, transparent 60%),
    var(--bg);
  position: relative;
  overflow: hidden;
}
.pub-hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(48,54,61,.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48,54,61,.4) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}
.pub-hero-title {
  background: linear-gradient(135deg, #e6edf3 30%, #58a6ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Search bar glow on focus ─────────────────────────────────────────────── */
.pub-search-input {
  transition: border-color .2s, box-shadow .2s;
}
.pub-search-input:focus {
  border-color: var(--accent2) !important;
  box-shadow: 0 0 0 3px rgba(88,166,255,.15), var(--glow-blue) !important;
  outline: none;
}
.pub-search-form .pub-search-row {
  transition: var(--transition);
}

/* ── Public cards grid ───────────────────────────────────────────────────── */
.pub-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color .2s, box-shadow .25s, transform .2s;
  position: relative;
  overflow: hidden;
}
.pub-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.pub-card:hover {
  border-color: var(--card-hover-border);
  box-shadow: var(--glow-blue), 0 8px 32px rgba(0,0,0,.3);
  transform: translateY(-4px);
}
.pub-card:hover::before { transform: scaleX(1); }

.pub-card-icon {
  font-size: 2rem;
  margin-bottom: .75rem;
  display: block;
  transition: transform .2s;
}
.pub-card:hover .pub-card-icon { transform: scale(1.15); }

/* ── Risk banner ─────────────────────────────────────────────────────────── */
.risk-banner {
  border-radius: 10px;
  transition: var(--transition);
}
.risk-high  { background: linear-gradient(135deg,rgba(248,81,73,.12),rgba(240,136,62,.06)) !important;
               border-left: 3px solid var(--red) !important; }
.risk-medium{ background: linear-gradient(135deg,rgba(210,153,34,.1),rgba(240,136,62,.05)) !important;
               border-left: 3px solid var(--yellow) !important; }
.risk-low   { background: linear-gradient(135deg,rgba(63,185,80,.08),rgba(38,166,65,.04)) !important;
               border-left: 3px solid var(--green) !important; }

/* ── Risk score pill ─────────────────────────────────────────────────────── */
.risk-score-pill {
  background: transparent !important;
  border: 2px solid currentColor !important;
  box-shadow: 0 0 16px currentColor;
  animation: pulse-score 2s ease infinite;
}
@keyframes pulse-score {
  0%,100% { box-shadow: 0 0 8px rgba(88,166,255,.3); }
  50%      { box-shadow: 0 0 20px rgba(88,166,255,.5); }
}
.risk-high .risk-score-pill   { box-shadow: 0 0 16px rgba(248,81,73,.5); }
.risk-medium .risk-score-pill { box-shadow: 0 0 16px rgba(210,153,34,.5); }
.risk-low .risk-score-pill    { box-shadow: 0 0 16px rgba(63,185,80,.5); }

/* ── User summary card ───────────────────────────────────────────────────── */
.user-summary-card {
  background: linear-gradient(135deg, rgba(88,166,255,.05) 0%, var(--bg2) 100%) !important;
  border: 1px solid rgba(88,166,255,.2) !important;
}
.user-summary-list li {
  padding: .45rem 0;
  border-bottom: 1px solid var(--border);
  transition: color .15s;
}
.user-summary-list li:last-child { border-bottom: none; }
.user-summary-list li::before {
  content: '⚠ ';
  color: var(--yellow);
}

/* ── Input fields ────────────────────────────────────────────────────────── */
.input-full, textarea, select {
  transition: border-color .2s, box-shadow .2s;
}
.input-full:focus, textarea:focus, select:focus {
  border-color: var(--accent2) !important;
  box-shadow: 0 0 0 3px rgba(88,166,255,.12) !important;
  outline: none;
}

/* ── Scroll fade-in animation ────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.fade-in {
  opacity: 0;
  animation: fadeInUp .55s ease forwards;
}
.fade-in-1 { animation-delay: .05s; }
.fade-in-2 { animation-delay: .12s; }
.fade-in-3 { animation-delay: .20s; }
.fade-in-4 { animation-delay: .28s; }

/* observed — triggered by JS IntersectionObserver */
.scroll-reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Badge improvements ──────────────────────────────────────────────────── */
.badge-ok {
  background: linear-gradient(135deg,rgba(63,185,80,.15),rgba(38,166,65,.08));
  color: var(--green);
  border: 1px solid rgba(63,185,80,.3);
  padding: .3rem .75rem; border-radius: 12px;
  font-size: .85rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: .3rem;
}

/* ── Table row hover ─────────────────────────────────────────────────────── */
tr { transition: background .15s; }
tr:hover { background: rgba(88,166,255,.04); }

/* ── Scrollbar styling ───────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ── Section headers ─────────────────────────────────────────────────────── */
.card h2 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text);
  padding-bottom: .6rem;
  margin-bottom: .8rem;
  border-bottom: 1px solid var(--border);
}

/* ── Result cards (search) ──────────────────────────────────────────────── */
.pub-result-card {
  transition: var(--transition);
}
.pub-result-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-blue);
  border-color: var(--card-hover-border) !important;
  text-decoration: none;
}

/* ── Typing cursor effect for hero ──────────────────────────────────────── */
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ── Page transitions ────────────────────────────────────────────────────── */
main { animation: fadeInUp .35s ease both; }

/* ── KI-Ergebnis-Karte (User-View) ────────────────────────────────────────── */
.ki-result-card {
  margin-top: 1.5rem;
  padding: 1.25rem 1.25rem 1rem;
  background: var(--bg2, #0f172a);
  border: 1px solid var(--border, #1e293b);
  border-radius: 12px;
  transition: border-color .2s;
}
.ki-result-card:hover { border-color: var(--accent-blue, #3b82f6); }

.ki-result-header {
  display: flex; align-items: flex-start; gap: 1rem; margin-bottom: .85rem;
}
.ki-result-icon { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }

.ki-result-title { font-size: .8rem; color: var(--muted, #64748b); margin-bottom: .25rem; }

/* category badges */
.ki-cat-badge {
  display: inline-block; padding: .2rem .65rem; border-radius: 20px;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
}
.ki-cat-ai-cat-ok       { background: #16a34a22; color: #4ade80; border: 1px solid #16a34a40; }
.ki-cat-ai-cat-review   { background: #f59e0b18; color: #fbbf24; border: 1px solid #f59e0b40; }
.ki-cat-ai-cat-suspicious { background: #f9731620; color: #fb923c; border: 1px solid #f9731640; }
.ki-cat-ai-cat-high     { background: #ef444420; color: #f87171; border: 1px solid #ef444440; }

/* confidence bar */
.ki-conf-block { margin-left: auto; text-align: right; min-width: 90px; }
.ki-conf-label { font-size: .72rem; color: var(--muted, #64748b); margin-bottom: .3rem; }
.ki-conf-bar-wrap {
  height: 6px; background: var(--border, #1e293b); border-radius: 3px; overflow: hidden;
}
.ki-conf-bar {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg,
    #ef4444 0%,
    #f59e0b 40%,
    #22c55e 80%);
  background-size: 120px 100%;
  background-position: calc((var(--conf,50) / 100) * -60px + 60px) 0;
  transition: width .8s ease;
}
.ki-conf-pct { font-size: .78rem; color: var(--muted,#64748b); margin-top: .2rem; }

/* summary */
.ki-summary {
  font-size: .92rem; color: var(--text, #e2e8f0);
  line-height: 1.55; margin: 0 0 .85rem;
}

/* sections */
.ki-section {
  border-radius: 8px; padding: .65rem .85rem .5rem;
  margin-bottom: .6rem;
}
.ki-section-risk { background: #ef444410; border: 1px solid #ef444430; }
.ki-section-ok   { background: #16a34a10; border: 1px solid #16a34a30; }
.ki-section-rec  { background: var(--bg3,#1e293b); border: 1px solid var(--border,#334155); }

.ki-section-head {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: .45rem;
}
.ki-section-risk .ki-section-head { color: #f87171; }
.ki-section-ok   .ki-section-head { color: #4ade80; }
.ki-section-rec  .ki-section-head { color: var(--accent-blue,#60a5fa); }

.ki-findings-list {
  margin: 0; padding: 0 0 0 1.1rem; list-style: none;
}
.ki-findings-list li {
  font-size: .88rem; color: var(--text,#e2e8f0);
  line-height: 1.5; padding: .15rem 0;
  position: relative;
}
.ki-section-risk .ki-findings-list li::before {
  content: "▸"; position: absolute; left: -1rem; color: #f87171;
}
.ki-section-ok .ki-findings-list li::before {
  content: "✓"; position: absolute; left: -1rem; color: #4ade80;
}

.ki-rec-text { font-size: .88rem; color: var(--text,#e2e8f0); margin: 0; line-height: 1.5; }

.ki-meta {
  font-size: .72rem; color: var(--muted,#64748b);
  margin-top: .75rem; padding-top: .6rem;
  border-top: 1px solid var(--border,#1e293b);
}

/* ki-fc extended verdicts + layout (Phase 12) */
.ki-fc-item { padding: .75rem 0 .6rem; border-bottom: 1px solid var(--border, #1e293b); }
.ki-fc-item:last-child { border-bottom: none; }
.ki-fc-item-supported    { border-left: 3px solid #4ade80; padding-left: .75rem; }
.ki-fc-item-contradicted { border-left: 3px solid #f87171; padding-left: .75rem; }
.ki-fc-item-misleading   { border-left: 3px solid #fb923c; padding-left: .75rem; }
.ki-fc-item-out_of_context { border-left: 3px solid #c084fc; padding-left: .75rem; }
.ki-fc-item-unverifiable { border-left: 3px solid #94a3b8; padding-left: .75rem; }
.ki-fc-top { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .4rem; flex-wrap: wrap; }
.ki-fc-misleading     { background: #f9731620; color: #fb923c; border: 1px solid #f9731640; }
.ki-fc-out_of_context { background: #7c3aed20; color: #c084fc; border: 1px solid #7c3aed40; }
.ki-fc-claim { font-size: .88rem; color: var(--text, #e2e8f0); font-style: italic; line-height: 1.4; flex: 1; }
.ki-fc-explanation { font-size: .85rem; color: var(--text, #cbd5e1); line-height: 1.6; margin: 0 0 .3rem; }
.ki-fc-source { display: inline-block; font-size: .72rem; color: var(--muted, #64748b); background: var(--bg2, #0f172a); border: 1px solid var(--border, #334155); border-radius: 4px; padding: .1rem .4rem; }

/* ── Duplicate Preview Card ────────────────────────────────────────────────── */
.dup-preview-card {
  background: var(--bg2, #0f172a);
  border: 1px solid var(--accent-blue, #3b82f6);
  border-radius: 14px;
  padding: 1.25rem 1.5rem 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 24px rgba(59,130,246,.12);
}

.dup-preview-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; margin-bottom: .9rem; flex-wrap: wrap;
}
.dup-preview-label {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--accent-blue, #60a5fa); margin-bottom: .2rem;
  display: block;
}
.dup-preview-domain {
  font-size: 1.05rem; font-weight: 700; color: var(--text, #e2e8f0);
}
.dup-risk-pill {
  font-size: .78rem; font-weight: 700; padding: .3rem .75rem;
  border-radius: 20px; white-space: nowrap;
}
.dup-risk-hoch, .dup-risk-sehr_hoch {
  background: #ef444420; color: #f87171; border: 1px solid #ef444440;
}
.dup-risk-mittel {
  background: #f59e0b18; color: #fbbf24; border: 1px solid #f59e0b40;
}
.dup-risk-niedrig {
  background: #16a34a18; color: #4ade80; border: 1px solid #16a34a40;
}

.dup-ai-section {
  background: var(--bg3, #1e293b);
  border: 1px solid var(--border, #334155);
  border-radius: 10px;
  padding: .85rem 1rem .75rem;
  margin-bottom: .85rem;
}
.dup-ai-top {
  display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; flex-wrap: wrap;
}
.dup-conf { font-size: .78rem; color: var(--muted, #64748b); }

.dup-ai-summary {
  font-size: .9rem; color: var(--text, #e2e8f0);
  line-height: 1.55; margin: 0 0 .6rem;
}

.dup-fc-list { list-style: none; margin: 0; padding: 0; }
.dup-fc-item {
  display: flex; align-items: flex-start; gap: .5rem;
  padding: .3rem 0; font-size: .84rem;
  border-top: 1px solid var(--border, #1e293b);
}
.dup-fc-claim {
  color: var(--muted, #94a3b8); font-style: italic; flex: 1;
}

.dup-no-ai { font-size: .88rem; margin: .5rem 0 .85rem; }

.dup-preview-actions {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  padding-top: .85rem; border-top: 1px solid var(--border, #334155);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PUBLIC CHECKER — Homepage + Progress/Result styles
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Hero section ─────────────────────────────────────────────────────────── */
.checker-hero {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59,130,246,.18) 0%, transparent 70%),
              linear-gradient(180deg, #0a0f1e 0%, #0f172a 100%);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border, #1e293b);
}
.checker-hero-inner { max-width: 760px; margin: 0 auto; }

.checker-badge {
  display: inline-block;
  background: rgba(59,130,246,.15);
  color: #60a5fa;
  border: 1px solid rgba(59,130,246,.3);
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: .25rem .85rem;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.checker-h1 {
  font-size: clamp(1.75rem, 5vw, 2.8rem);
  font-weight: 800;
  color: #f0f6ff;
  margin: 0 0 .85rem;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.checker-sub {
  font-size: 1.05rem;
  color: var(--muted, #64748b);
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto 2rem;
}

/* ── URL input form ───────────────────────────────────────────────────────── */
.checker-form { width: 100%; }

.checker-url-row {
  display: flex;
  gap: .75rem;
  align-items: stretch;
  margin-bottom: .85rem;
}
@media (max-width: 600px) {
  .checker-url-row { flex-direction: column; }
}

.checker-url-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.checker-url-icon {
  position: absolute;
  left: 1rem;
  font-size: 1rem;
  pointer-events: none;
  opacity: .6;
}
.checker-url-input {
  width: 100%;
  padding: .9rem 1rem .9rem 2.5rem;
  background: rgba(255,255,255,.05);
  border: 1.5px solid var(--border, #1e293b);
  border-radius: 10px;
  color: #f0f6ff;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .2s, background .2s, box-shadow .2s;
  outline: none;
}
.checker-url-input:focus {
  border-color: #3b82f6;
  background: rgba(59,130,246,.07);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.checker-url-input::placeholder { color: #475569; }

.checker-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.6rem;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
  text-decoration: none;
}
.checker-btn:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(99,102,241,.35); }
.checker-btn:active { transform: translateY(0); }
.checker-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.checker-btn-icon { font-size: 1.1rem; }

/* ── Upload row ───────────────────────────────────────────────────────────── */
.checker-upload-row { text-align: left; }
.checker-upload-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  color: #64748b;
  font-size: .88rem;
  padding: .5rem .75rem;
  border: 1px dashed #334155;
  border-radius: 8px;
  transition: border-color .2s, color .2s;
  width: 100%;
}
.checker-upload-label:hover { border-color: #3b82f6; color: #94a3b8; }
.checker-upload-icon { font-size: 1.1rem; }
.checker-upload-input { display: none; }

.checker-privacy-note {
  margin-top: 1.25rem;
  font-size: .8rem;
  color: #475569;
}

/* ── Error banner ─────────────────────────────────────────────────────────── */
.checker-error-banner {
  max-width: 760px;
  margin: 1rem auto;
  padding: .85rem 1.25rem;
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.3);
  border-radius: 8px;
  color: #f87171;
  font-size: .92rem;
}

/* ── Features grid ────────────────────────────────────────────────────────── */
.checker-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: .5rem auto 0;
  padding: 0;
}
.checker-feature-card {
  background: var(--bg2, #0f172a);
  border: 1px solid var(--border, #1e293b);
  border-radius: 12px;
  padding: 1.25rem;
  transition: border-color .2s, transform .2s;
}
.checker-feature-card:hover { border-color: #3b82f6; transform: translateY(-2px); }
.checker-feature-icon { font-size: 1.8rem; margin-bottom: .6rem; }
.checker-feature-card h3 { font-size: 1rem; color: #e2e8f0; margin: 0 0 .5rem; }
.checker-feature-card p { font-size: .85rem; color: #64748b; margin: 0; line-height: 1.55; }

/* ── Ampel preview ────────────────────────────────────────────────────────── */
.checker-section-title {
  text-align: center;
  font-size: 1.25rem;
  color: #e2e8f0;
  margin: 0 0 .75rem;
}
.checker-ampel-preview {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
}
.checker-ampel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .75rem;
}
.checker-ampel-item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .85rem;
  border-radius: 10px;
  border: 1px solid;
}
.checker-ampel-item strong { display: block; font-size: .9rem; margin-bottom: .2rem; }
.checker-ampel-item p { font-size: .8rem; margin: 0; color: #64748b; }
.checker-ampel-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; margin-top: 3px; }

.ampel-ok .checker-ampel-dot { background: #22c55e; box-shadow: 0 0 8px #22c55e88; }
.ampel-ok { border-color: #22c55e33; background: #22c55e08; }
.ampel-ok strong { color: #4ade80; }

.ampel-warning .checker-ampel-dot { background: #f59e0b; box-shadow: 0 0 8px #f59e0b88; }
.ampel-warning { border-color: #f59e0b33; background: #f59e0b08; }
.ampel-warning strong { color: #fbbf24; }

.ampel-suspicious .checker-ampel-dot { background: #f97316; box-shadow: 0 0 8px #f9731688; }
.ampel-suspicious { border-color: #f9731633; background: #f9731608; }
.ampel-suspicious strong { color: #fb923c; }

.ampel-high .checker-ampel-dot { background: #ef4444; box-shadow: 0 0 8px #ef444488; }
.ampel-high { border-color: #ef444433; background: #ef444408; }
.ampel-high strong { color: #f87171; }

/* ── Legal note / donate ──────────────────────────────────────────────────── */
.checker-legal-note {
  max-width: 700px;
  margin: 0 auto 2rem;
  padding: .85rem 1.25rem;
  background: var(--bg2, #0f172a);
  border: 1px solid var(--border, #1e293b);
  border-radius: 8px;
  font-size: .82rem;
  color: #64748b;
  line-height: 1.55;
}

.checker-donate-section {
  max-width: 700px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}
.checker-donate-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(59,130,246,.08), rgba(99,102,241,.08));
  border: 1px solid rgba(99,102,241,.25);
  border-radius: 12px;
  flex-wrap: wrap;
}
.checker-donate-icon { font-size: 1.5rem; flex-shrink: 0; }
.checker-donate-inner strong { display: block; color: #e2e8f0; font-size: .95rem; }
.checker-donate-inner p { margin: .2rem 0 0; font-size: .82rem; color: #64748b; }
.checker-donate-inner > div { flex: 1; min-width: 180px; }
.checker-donate-btn {
  display: inline-flex;
  align-items: center;
  padding: .6rem 1.25rem;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .2s;
}
.checker-donate-btn:hover { opacity: .85; }

/* ═══════════════════════════════════════════════════════════════════════════
   CHECK PAGE — Progress + Result
   ═══════════════════════════════════════════════════════════════════════════ */

.check-page-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

/* ── URL header ───────────────────────────────────────────────────────────── */
.check-url-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.check-back-btn {
  color: #64748b;
  text-decoration: none;
  font-size: .85rem;
  white-space: nowrap;
  transition: color .2s;
}
.check-back-btn:hover { color: #94a3b8; }
.check-url-display {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--bg2, #0f172a);
  border: 1px solid var(--border, #1e293b);
  border-radius: 8px;
  padding: .5rem .85rem;
  flex: 1;
  min-width: 0;
}
.check-url-icon { flex-shrink: 0; opacity: .5; }
.check-url-text {
  font-size: .85rem;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Progress section ─────────────────────────────────────────────────────── */
.check-progress-section {
  background: var(--bg2, #0f172a);
  border: 1px solid var(--border, #1e293b);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
}
.check-progress-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.check-progress-title {
  font-size: 1.15rem;
  color: #e2e8f0;
  margin: 0;
  flex: 1;
}
.check-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(59,130,246,.25);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.check-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.check-step {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9rem;
  color: #64748b;
  transition: color .3s;
}
.check-step.step-done { color: #94a3b8; }
.check-step.step-running { color: #e2e8f0; }
.step-icon { width: 18px; text-align: center; color: #22c55e; font-size: .85rem; }
.step-spinner {
  display: inline-block;
  width: 12px; height: 12px;
  border: 2px solid rgba(59,130,246,.3);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.check-progress-note {
  margin-top: 1.25rem;
  font-size: .8rem;
  color: #475569;
  border-top: 1px solid var(--border, #1e293b);
  padding-top: .85rem;
}

/* ── Ampel card ───────────────────────────────────────────────────────────── */
.check-ampel-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg2, #0f172a);
  border: 1px solid var(--border, #1e293b);
  border-radius: 14px;
  margin-bottom: 1.25rem;
}
.check-ampel-dot-wrap { flex-shrink: 0; }
.check-ampel-dot {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  transition: background .4s, box-shadow .4s;
}
.check-ampel-label {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .3rem;
}
.check-ampel-score {
  font-size: .85rem;
  color: #64748b;
  margin-bottom: .2rem;
}
.check-ampel-url {
  font-size: .78rem;
  color: #475569;
  word-break: break-all;
}

/* ── Result cards ─────────────────────────────────────────────────────────── */
.check-result-card {
  background: var(--bg2, #0f172a);
  border: 1px solid var(--border, #1e293b);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
}
.check-result-card-head {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .85rem;
  flex-wrap: wrap;
}
.check-result-card-head h3 {
  font-size: 1rem;
  color: #e2e8f0;
  margin: 0;
}
.check-result-card-icon { font-size: 1.15rem; flex-shrink: 0; }
.check-card-note {
  font-size: .82rem;
  color: #64748b;
  margin: .5rem 0 0;
}

/* AI badges */
.check-ai-badge {
  display: inline-block;
  padding: .18rem .65rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
}
.check-ai-badge.cat-ok { background: #22c55e18; color: #4ade80; border: 1px solid #22c55e30; }
.check-ai-badge.cat-review { background: #f59e0b18; color: #fbbf24; border: 1px solid #f59e0b30; }
.check-ai-badge.cat-suspicious { background: #f9731618; color: #fb923c; border: 1px solid #f9731630; }
.check-ai-badge.cat-high { background: #ef444418; color: #f87171; border: 1px solid #ef444430; }
.check-conf-badge {
  font-size: .78rem;
  color: #64748b;
  margin-left: auto;
}

.check-ai-summary {
  font-size: .92rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0 0 .85rem;
}

.check-ai-detail {
  border-radius: 8px;
  padding: .6rem .85rem;
  margin-bottom: .6rem;
}
.check-ai-detail-head {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .4rem;
}
.check-ai-detail.risk { background: #ef444410; border: 1px solid #ef444428; }
.check-ai-detail.risk .check-ai-detail-head { color: #f87171; }
.check-ai-detail.ok { background: #22c55e10; border: 1px solid #22c55e28; }
.check-ai-detail.ok .check-ai-detail-head { color: #4ade80; }
.check-ai-detail.rec { background: var(--bg3, #1e293b); border: 1px solid var(--border, #334155); }
.check-ai-detail.rec .check-ai-detail-head { color: #60a5fa; }

.check-ai-bullets {
  margin: 0; padding: 0 0 0 1rem;
  list-style: none;
}
.check-ai-bullets li {
  font-size: .87rem;
  color: #cbd5e1;
  padding: .15rem 0;
  position: relative;
}
.check-ai-detail.risk .check-ai-bullets li::before { content: "▸"; position: absolute; left: -1rem; color: #f87171; }
.check-ai-detail.ok .check-ai-bullets li::before { content: "✓"; position: absolute; left: -1rem; color: #4ade80; }
.check-ai-rec { font-size: .87rem; color: #cbd5e1; margin: 0; line-height: 1.55; }

/* Trust signals */
.check-trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.check-trust-list li { font-size: .88rem; color: #94a3b8; }
.check-trust-list li.trust-ok { color: #4ade80; }
.check-trust-missing li { color: #f87171; }

/* Warnings */
.check-warnings-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.check-warnings-list li {
  font-size: .88rem;
  color: #fbbf24;
  padding-left: 1.1rem;
  position: relative;
}
.check-warnings-list li::before { content: "⚠"; position: absolute; left: 0; font-size: .8rem; }

/* Clickbait chips */
.check-clickbait-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.check-clickbait-chip {
  display: inline-block;
  padding: .2rem .65rem;
  background: rgba(245,158,11,.1);
  border: 1px solid rgba(245,158,11,.3);
  border-radius: 20px;
  font-size: .78rem;
  color: #fbbf24;
}

/* Fact-check */
.check-fc-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.check-fc-item {
  border-left: 3px solid var(--border, #334155);
  padding-left: .85rem;
}
.check-fc-top {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: .3rem;
}
.check-fc-verdict {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  border: 1px solid;
  white-space: nowrap;
  flex-shrink: 0;
}
.check-fc-claim {
  font-size: .87rem;
  color: #94a3b8;
  font-style: italic;
}
.check-fc-explanation {
  font-size: .85rem;
  color: #cbd5e1;
  margin: .3rem 0;
  line-height: 1.5;
}
.check-fc-source {
  font-size: .75rem;
  color: #64748b;
  display: block;
}

/* Image analysis */
.check-img-verdict { font-size: .95rem; font-weight: 700; margin-bottom: .6rem; }
.check-img-hints {
  list-style: none;
  margin: 0 0 .6rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.check-img-hints li { font-size: .82rem; color: #fbbf24; }
.check-img-notes { font-size: .85rem; color: #94a3b8; margin: 0 0 .4rem; }
.check-img-meta { font-size: .78rem; color: #64748b; }

/* Recommendations */
.check-recommendations-card {
  background: linear-gradient(135deg, rgba(59,130,246,.06), rgba(99,102,241,.06));
  border-color: rgba(99,102,241,.25);
}
.check-rec-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.check-rec-list li {
  font-size: .9rem;
  color: #e2e8f0;
  padding-left: 1.5rem;
  position: relative;
}
.check-rec-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #60a5fa;
  font-weight: 700;
}

/* Action buttons */
.check-result-actions {
  display: flex;
  gap: .75rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}
.check-copy-btn {
  padding: .65rem 1.25rem;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border, #1e293b);
  border-radius: 8px;
  color: #94a3b8;
  font-size: .88rem;
  cursor: pointer;
  transition: background .2s;
}
.check-copy-btn:hover { background: rgba(255,255,255,.1); }
.check-new-btn {
  display: inline-flex;
  align-items: center;
  padding: .65rem 1.25rem;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .2s;
}
.check-new-btn:hover { opacity: .85; }

/* Legal disclaimer */
.check-legal-disclaimer {
  font-size: .78rem;
  color: #475569;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border, #1e293b);
  line-height: 1.6;
}

/* Error section */
.check-error-section {
  text-align: center;
  padding: 3rem 1rem;
}
.check-error-icon { font-size: 3rem; margin-bottom: 1rem; }
.check-error-section h2 { color: #f87171; margin-bottom: .75rem; }
.check-error-section p { color: #94a3b8; }

/* ── Nav update for new flow ──────────────────────────────────────────────── */
.pub-nav a[href="/check"]:not([class]) {
  color: var(--accent2, #f47362) !important;
}

/* ── Domain infrastructure card ─────────────────────────────────────────── */
.domain-flag-chip {
  background: #7c2d1220;
  border: 1px solid #7c2d1244;
  color: #fbbf24;
  font-size: .83rem;
  padding: .35rem .7rem;
  border-radius: 6px;
  margin-bottom: .4rem;
  display: flex;
  align-items: flex-start;
  gap: .4rem;
}
.check-domain-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: .75rem;
  font-size: .85rem;
}
.check-domain-table tr { border-bottom: 1px solid #1e293b; }
.check-domain-table tr:last-child { border-bottom: none; }
.domain-td-label {
  color: #64748b;
  padding: .4rem .5rem .4rem 0;
  width: 38%;
  vertical-align: top;
  white-space: nowrap;
}
.domain-td-val {
  color: #cbd5e1;
  padding: .4rem 0;
  word-break: break-all;
}

/* ── Reviews / experiences card ─────────────────────────────────────────── */
.check-reviews-list { list-style: none; padding: 0; margin: 0; }
.check-review-item {
  padding: .6rem 0;
  border-bottom: 1px solid #1e293b;
  font-size: .85rem;
}
.check-review-item:last-child { border-bottom: none; }
.check-review-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: .25rem;
}
.check-review-link {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.check-review-link:hover { text-decoration: underline; }
.check-review-host {
  color: #475569;
  font-size: .78rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.check-review-body {
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
  font-size: .82rem;
}

/* ── Vision analysis block ──────────────────────────────────────────────── */
.vision-block { margin-top: .75rem; font-size: .85rem; }
.vision-doctype { color: #94a3b8; margin-bottom: .4rem; }
.vision-doctype strong { color: #e2e8f0; }
.vision-summary { color: #cbd5e1; background: #1e293b; border-radius: 6px; padding: .5rem .75rem; margin-bottom: .5rem; font-style: italic; }
.vision-ai-prob { font-weight: 700; font-size: .9rem; margin-bottom: .15rem; }
.vision-ai-reason { color: #64748b; font-size: .8rem; margin-bottom: .5rem; }
.vision-section-head { color: #64748b; font-size: .78rem; text-transform: uppercase; letter-spacing: .5px; margin: .5rem 0 .2rem; }
.vision-list { list-style: none; padding: 0; margin: 0 0 .25rem; }
.vision-list li { padding: .2rem 0; color: #94a3b8; border-bottom: 1px solid #1e293b11; }
.vision-list li:last-child { border-bottom: none; }
.vision-list.vision-warn li { color: #fbbf24; }
.vision-domain-chip { display: inline-block; background: #1e3a5f22; border: 1px solid #1e3a5f; color: #60a5fa; border-radius: 4px; padding: .15rem .5rem; font-size: .8rem; margin: .15rem .25rem .15rem 0; }

/* Review source line */
.check-review-source { margin-top: 4px; font-size: 0.78rem; word-break: break-all; }
.check-review-source-label { color: #888; font-weight: 600; margin-right: 4px; }
.check-review-source-link { color: #5b9bd5; text-decoration: none; }
.check-review-source-link:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════
   Homepage — neue Sektionen
════════════════════════════════════════════════════ */

/* Features section */
.checker-features-section {
  padding: 1rem 1.5rem 0;
  max-width: 1100px;
  margin: 0 auto;
}

/* Steps */
.checker-steps-section {
  background: rgba(255,255,255,.03);
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: .75rem 1.5rem;
}
.checker-steps-grid {
  max-width: 860px;
  margin: .4rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.checker-step {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.checker-step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent, #3b82f6);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.checker-step strong { display: block; color: #e2e8f0; margin-bottom: .3rem; font-size: .95rem; }
.checker-step p { margin: 0; color: #94a3b8; font-size: .88rem; line-height: 1.6; }

.checker-section-sub {
  text-align: center;
  color: #64748b;
  font-size: .9rem;
  margin: -.5rem 0 1.5rem;
}

/* Why / Mission */
.checker-why-section {
  padding: 2.5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.checker-why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 700px) {
  .checker-why-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}
.checker-why-text h2 { color: #e2e8f0; font-size: 1.35rem; margin-bottom: 1rem; }
.checker-why-text p { color: #94a3b8; font-size: .9rem; line-height: 1.75; margin-bottom: 1rem; }
.checker-why-text strong { color: #cbd5e1; }
.checker-why-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.checker-stat {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: .9rem 1.1rem;
  display: flex;
  gap: .9rem;
  align-items: flex-start;
}
.checker-stat-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }
.checker-stat strong { display: block; color: #e2e8f0; font-size: .88rem; margin-bottom: .2rem; }
.checker-stat span { color: #64748b; font-size: .8rem; line-height: 1.5; }

/* Use cases */
.checker-usecases-section {
  background: rgba(255,255,255,.02);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 2.5rem 1.5rem;
}
.checker-usecases-grid {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
}
.checker-usecase-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 1.2rem 1.3rem;
  transition: border-color .2s;
}
.checker-usecase-card:hover { border-color: rgba(59,130,246,.35); }
.checker-usecase-icon { font-size: 1.6rem; margin-bottom: .5rem; }
.checker-usecase-card h3 { color: #e2e8f0; font-size: .95rem; margin-bottom: .5rem; }
.checker-usecase-card p { color: #64748b; font-size: .83rem; line-height: 1.65; margin: 0; }

/* FAQ */
.checker-faq-section {
  padding: 2.5rem 1.5rem;
  max-width: 780px;
  margin: 0 auto;
}
.checker-faq-list { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.2rem; }
.checker-faq-item {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  overflow: hidden;
}
.checker-faq-item summary {
  padding: .85rem 1.1rem;
  cursor: pointer;
  color: #e2e8f0;
  font-size: .9rem;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.checker-faq-item summary::-webkit-details-marker { display: none; }
.checker-faq-item summary::after { content: "+"; color: #64748b; font-size: 1.1rem; margin-left: .5rem; }
.checker-faq-item[open] summary::after { content: "−"; }
.checker-faq-item p {
  padding: 0 1.1rem 1rem;
  margin: 0;
  color: #94a3b8;
  font-size: .87rem;
  line-height: 1.7;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: .75rem;
}
.checker-faq-item p a { color: #60a5fa; }
.checker-faq-more { text-align: center; }
.checker-faq-link {
  color: #60a5fa;
  font-size: .9rem;
  text-decoration: none;
}
.checker-faq-link:hover { text-decoration: underline; }

/* SEO text */
.checker-seo-section {
  background: rgba(255,255,255,.02);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 2.5rem 1.5rem;
}
.checker-seo-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.checker-seo-inner h2 {
  color: #e2e8f0;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.checker-seo-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 640px) {
  .checker-seo-cols { grid-template-columns: 1fr; gap: 1.2rem; }
}
.checker-seo-cols h3 {
  color: #cbd5e1;
  font-size: .95rem;
  margin-bottom: .5rem;
  margin-top: 1.2rem;
}
.checker-seo-cols h3:first-child { margin-top: 0; }
.checker-seo-cols p {
  color: #64748b;
  font-size: .85rem;
  line-height: 1.75;
  margin: 0 0 .5rem;
}

.checker-feature-note {
  font-size: .78rem;
  color: #f59e0b;
  margin: .5rem 0 0;
  opacity: .85;
}

.pub-nav-donate {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1a1a1a !important;
  padding: .3rem .85rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: .82rem;
  white-space: nowrap;
  transition: opacity .2s;
}
.pub-nav-donate:hover { opacity: .85; }

/* ── Stats Bar ───────────────────────────────────────────────────────────── */
.checker-stats-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  background: rgba(15,23,42,.6);
  border-top: 1px solid rgba(99,102,241,.15);
  border-bottom: 1px solid rgba(99,102,241,.15);
  padding: .6rem 1rem;
  flex-wrap: wrap;
}
.checker-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .4rem 2rem;
  border-right: 1px solid rgba(99,102,241,.18);
}
.checker-stat-item:last-child { border-right: none; }
.checker-stat-value {
  font-size: 1.45rem;
  font-weight: 700;
  color: #6366f1;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.checker-stat-label {
  font-size: .7rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: .15rem;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .checker-stat-item { padding: .3rem .9rem; }
  .checker-stat-value { font-size: 1.15rem; }
  .checker-stat-label { font-size: .62rem; }
}

/* ── Recent Checks Feed ──────────────────────────────────────────────────── */
.checker-recent-section {
  padding: .75rem 1rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.checker-recent-grid {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-top: .5rem;
}
.checker-recent-placeholder {
  color: #64748b;
  font-size: .85rem;
  text-align: center;
  padding: 1rem 0;
}
.checker-recent-card {
  background: rgba(30,41,59,.5);
  border: 1px solid rgba(99,102,241,.12);
  border-radius: 8px;
  padding: .55rem .9rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.checker-recent-domain {
  font-size: .9rem;
  font-weight: 600;
  color: #e2e8f0;
  flex: 1;
  min-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.checker-recent-meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}
.checker-recent-badge {
  font-size: .7rem;
  font-weight: 700;
  padding: .15rem .55rem;
  border-radius: 20px;
  border: 1px solid;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.checker-recent-score {
  font-size: .75rem;
  color: #94a3b8;
}
.checker-recent-time {
  font-size: .72rem;
  color: #64748b;
}

/* ── Share Button ────────────────────────────────────────────────────────── */
.check-share-btn {
  background: rgba(99,102,241,.15);
  color: #a5b4fc;
  border: 1px solid rgba(99,102,241,.35);
  padding: .55rem 1.1rem;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.check-share-btn:hover {
  background: rgba(99,102,241,.28);
  color: #c7d2fe;
}
