/* ===== DNSBL Check – Stylesheet ===== */
:root {
  --bg: #0b1120; --bg2: #111a2e; --card: #131d33; --line: #22304d; --line2: #2c3d61;
  --txt: #e5ecf6; --muted: #8b9bb8; --accent: #38bdf8; --accent2: #6366f1;
  --ok: #22c55e; --bad: #ef4444; --warn: #f59e0b;
  --g-aplus: #16a34a; --g-a: #22c55e; --g-b: #84cc16; --g-c: #eab308; --g-d: #f97316; --g-f: #dc2626;
  --r: 14px; --shadow: 0 10px 30px rgba(0,0,0,.25);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--txt);
  background: radial-gradient(1200px 600px at 80% -10%, rgba(99,102,241,.18), transparent 60%),
              radial-gradient(900px 500px at -10% 10%, rgba(56,189,248,.12), transparent 60%), var(--bg); min-height: 100vh; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 1.9rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.08rem; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code { background: var(--bg2); padding: 1px 6px; border-radius: 5px; font-size: .9em; }
pre { background: #070c18; border: 1px solid var(--line); padding: 12px 14px; border-radius: 10px; overflow-x: auto; font-size: 13px; }
pre.wrap { white-space: pre-wrap; word-break: break-all; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 640px; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; } .right { text-align: right; }
.hidden { display: none !important; } .nowrap { white-space: nowrap; } .dim { opacity: .5; }
.txt-ok { color: var(--ok); } .txt-bad { color: var(--bad); }

/* --- Kopf / Fuß --- */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(11,17,32,.8); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 20px; }
.logo { font-weight: 800; font-size: 1.15rem; color: var(--txt); letter-spacing: -.01em; }
.logo:hover { text-decoration: none; }
.topbar nav { display: flex; gap: 4px; flex-wrap: wrap; }
.topbar nav a { color: var(--muted); padding: 7px 13px; border-radius: 9px; font-weight: 500; }
.topbar nav a:hover, .topbar nav a.active { color: var(--txt); background: var(--card); text-decoration: none; }
main.container { padding-top: 26px; padding-bottom: 40px; }
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; padding: 22px 0; }
.footer-in { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* --- Buttons & Formulare --- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; font: inherit; font-weight: 600;
  padding: 9px 16px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, var(--accent2), var(--accent));
  box-shadow: 0 4px 14px rgba(56,189,248,.25); transition: transform .1s, filter .15s; }
.btn:hover { filter: brightness(1.1); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.big { padding: 14px 26px; font-size: 1.05rem; }
.btn.small { padding: 5px 11px; font-size: .82rem; border-radius: 8px; }
.btn.ghost { background: transparent; border: 1px solid var(--line2); color: var(--txt); box-shadow: none; }
.btn.danger { background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.4); color: #fca5a5; box-shadow: none; }
input, select, textarea { font: inherit; color: var(--txt); background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
select { width: auto; }
.form label { display: block; margin-bottom: 12px; font-size: .88rem; color: var(--muted); }
.form label input, .form label textarea, .form label select { margin-top: 4px; width: 100%; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.inline { display: inline; }
.alert { padding: 11px 15px; border-radius: 10px; border: 1px solid; margin: 0 0 14px; }
.alert.ok { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.4); color: #86efac; }
.alert.warn { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.4); color: #fcd34d; }
.alert.bad { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.4); color: #fca5a5; }

/* --- Karten --- */
.card { background: linear-gradient(180deg, rgba(255,255,255,.02), transparent), var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 22px; box-shadow: var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head h1, .card-head h2 { margin: 0; }

/* --- Hero --- */
.hero { text-align: center; padding: 34px 0 26px; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.02em; }
.hl { background: linear-gradient(90deg, #f87171, #fb923c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 680px; margin: 0 auto 24px; }
.checkform { display: flex; gap: 10px; max-width: 640px; margin: 0 auto; background: var(--card); padding: 8px; border-radius: 16px; border: 1px solid var(--line2); box-shadow: var(--shadow); }
.checkform input { border: 0; background: transparent; font-size: 1.1rem; padding: 12px 14px; }
.checkform input:focus { outline: none; }
.formmsg { min-height: 1.4em; margin-top: 12px; }
.formmsg.bad { color: #fca5a5; } .formmsg.info { color: #93c5fd; }

/* --- Live-Check --- */
.live { scroll-margin-top: 80px; }
.live-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.live-head h2 { font-size: 1.6rem; margin: 0 0 6px; word-break: break-all; }
.ips { display: flex; gap: 6px; flex-wrap: wrap; }
.ipchip { font-size: .8rem; background: var(--bg2); border: 1px solid var(--line2); padding: 3px 9px; border-radius: 20px; color: var(--muted); }
.ipchip b { color: var(--txt); font-family: ui-monospace, monospace; font-weight: 600; }
.ipchip.warn { color: #fcd34d; border-color: rgba(245,158,11,.4); }
.live-counters { display: flex; gap: 10px; }
.cnt { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; text-align: center; min-width: 78px; }
.cnt b { display: block; font-size: 1.4rem; } .cnt span { font-size: .75rem; color: var(--muted); }
.cnt.ok b { color: var(--ok); } .cnt.bad b { color: var(--bad); } .cnt.warn b { color: var(--warn); }
.progress { position: relative; height: 14px; background: var(--bg2); border-radius: 10px; overflow: hidden; margin: 18px 0 10px; border: 1px solid var(--line); }
.progress > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent2), var(--accent)); transition: width .25s; }
.progress span { position: absolute; right: 8px; top: -2px; font-size: .72rem; font-weight: 700; }
.livestatus { color: var(--muted); font-size: .9rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.spinner { width: 14px; height: 14px; border: 2px solid var(--line2); border-top-color: var(--accent); border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; }
.spinner.sm { width: 11px; height: 11px; }
@keyframes spin { to { transform: rotate(360deg); } }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.tile { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 9px; background: var(--bg2); border: 1px solid var(--line); font-size: .82rem; transition: background .25s, border-color .25s; }
.tile .ico { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .75rem; flex: none; background: var(--line); color: var(--muted); }
.tile .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .tp { font-size: .68rem; color: var(--muted); }
.tile.run { border-color: var(--accent); }
.tile.clean { border-color: rgba(34,197,94,.35); } .tile.clean .ico { background: var(--ok); color: #fff; }
.tile.listed { border-color: rgba(239,68,68,.6); background: rgba(239,68,68,.12); } .tile.listed .ico { background: var(--bad); color: #fff; }
.tile.error .ico { background: var(--warn); color: #111; }
.tile.skipped { opacity: .55; }
.resultbox { display: flex; gap: 22px; align-items: center; margin-top: 20px; padding: 20px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line2); animation: pop .4s ease; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.result-grade { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-size: 2.4rem; font-weight: 900; color: #fff; flex: none; }
.result-txt h3 { margin: 0 0 4px; font-size: 1.25rem; }
.result-txt p { margin: 0 0 8px; }

/* --- Noten-Farben --- */
.g-aplus { --g: var(--g-aplus); } .g-a { --g: var(--g-a); } .g-b { --g: var(--g-b); }
.g-c { --g: var(--g-c); } .g-d { --g: var(--g-d); } .g-f { --g: var(--g-f); } .g-none { --g: #475569; }
.result-grade, .badge, .scorebar > div, .hbar-track > div { background: var(--g); }
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 38px; padding: 3px 8px; border-radius: 8px; color: #fff; font-weight: 800; font-size: .85rem; }
.badge small { font-weight: 600; opacity: .85; font-size: .72rem; }
.g-c.badge, .g-b.badge { color: #1a1a1a; }

/* --- Stats / Domains --- */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stats-strip > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; text-align: center; }
.stats-strip b { display: block; font-size: 1.6rem; }
.stats-strip span { color: var(--muted); font-size: .85rem; }
.domgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.domcard { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; color: var(--txt); transition: border-color .15s, transform .15s; }
.domcard:hover { border-color: var(--accent); transform: translateY(-1px); text-decoration: none; }
.domcard .badge { min-width: 46px; height: 40px; font-size: 1.05rem; }
.domcard-txt { display: flex; flex-direction: column; min-width: 0; }
.domcard-txt strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.teaser .grid3 h3 { font-size: 1rem; }
.teaser .grid3 p { color: var(--muted); margin: 0; }

/* --- Tabellen --- */
.filterbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.filterbar input { max-width: 300px; }
.tablewrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--line2); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table.compact td { padding: 7px 10px; }
.rowlink { cursor: pointer; } .rowlink:hover td { background: rgba(56,189,248,.05); }
tr.st-listed td { background: rgba(239,68,68,.06); }
.scorebar { width: 70px; height: 6px; background: var(--bg2); border-radius: 4px; overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 8px; }
.scorebar > div { height: 100%; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: .76rem; font-weight: 600; background: var(--line); color: var(--muted); white-space: nowrap; }
.pill.ok { background: rgba(34,197,94,.15); color: #86efac; }
.pill.bad { background: rgba(239,68,68,.18); color: #fca5a5; }
.pill.warn { background: rgba(245,158,11,.15); color: #fcd34d; }
.pager { display: flex; gap: 4px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.pager a, .pager span { padding: 5px 11px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); }
.pager a.active { background: var(--accent); color: #0b1120; border-color: var(--accent); font-weight: 700; }

/* --- Zertifikat --- */
.crumbs { margin: 0 0 12px; }
.cert { padding: 8px; border-radius: 20px; background: linear-gradient(135deg, var(--g), #1e293b 60%); margin-bottom: 18px; box-shadow: var(--shadow); }
.cert-border { background: linear-gradient(180deg, #111a2e, #0d1526); border-radius: 15px; padding: 28px; border: 1px dashed rgba(255,255,255,.15); }
.cert-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.cert-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--muted); }
.cert-domain { font-size: clamp(1.6rem, 4vw, 2.5rem); margin: 6px 0; word-break: break-all; }
.cert-sub { color: var(--g); font-weight: 700; font-size: 1.05rem; }
.seal { width: 130px; height: 130px; border-radius: 50%; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.35), transparent 45%), var(--g);
  box-shadow: 0 0 0 6px rgba(255,255,255,.06), 0 0 0 12px color-mix(in srgb, var(--g) 25%, transparent), 0 10px 30px rgba(0,0,0,.4); }
.seal-grade { font-size: 3rem; font-weight: 900; line-height: 1; }
.seal-score { font-size: .85rem; font-weight: 700; opacity: .9; }
.cert-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0 18px; }
.cert-facts > div { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.cert-facts span { display: block; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.cert-facts b { word-break: break-word; }
.cert-summary { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs button { font: inherit; font-size: .82rem; background: var(--bg2); color: var(--muted); border: 1px solid var(--line); padding: 5px 11px; border-radius: 8px; cursor: pointer; }
.tabs button.active { background: var(--accent); color: #0b1120; border-color: var(--accent); font-weight: 700; }
.steps li { margin-bottom: 6px; }
.history { display: flex; gap: 8px; flex-wrap: wrap; }
.hist { display: flex; gap: 8px; align-items: center; background: var(--bg2); border: 1px solid var(--line); padding: 8px 12px; border-radius: 10px; color: var(--txt); font-size: .85rem; line-height: 1.3; }
.hist.active { border-color: var(--accent); }
.hist:hover { text-decoration: none; border-color: var(--line2); }
textarea[readonly] { font-family: ui-monospace, monospace; font-size: 12px; }

/* --- Info-Seite --- */
.prose { max-width: 900px; margin-left: auto; margin-right: auto; }
.prose h2 { margin-top: 1.8em; padding-top: .4em; scroll-margin-top: 80px; }
.prose p, .prose li { color: #cbd5e1; }
.toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 6px; }
.toc a { background: var(--bg2); border: 1px solid var(--line); padding: 5px 11px; border-radius: 20px; font-size: .85rem; }
.infobox { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.infobox h4 { margin-bottom: 4px; } .infobox p { margin: 0; font-size: .92rem; }
.procon ul { list-style: none; padding: 0; }
.procon li { padding: 10px 14px 10px 42px; position: relative; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
.procon li::before { position: absolute; left: 14px; top: 9px; font-weight: 900; }
.procon .pro li::before { content: "✓"; color: var(--ok); }
.procon .con li::before { content: "!"; color: var(--warn); }
.gradescale { margin: 14px 0; line-height: 2.4; }
details { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 0; }

/* --- Installer / Login --- */
body.install { display: flex; align-items: flex-start; }
body.install main { padding-top: 50px; width: 100%; }
.reqs { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.reqs li { padding: 4px 10px; border-radius: 8px; font-size: .85rem; }
.reqs .ok { background: rgba(34,197,94,.12); color: #86efac; } .reqs .bad { background: rgba(239,68,68,.15); color: #fca5a5; }
.login { max-width: 420px; margin: 40px auto; }

/* --- Admin --- */
body.admin { display: flex; min-height: 100vh; }
.sidebar { width: 230px; flex: none; background: #0a1020; border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sidebar .logo { margin: 0 8px 22px; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a { color: var(--muted); padding: 9px 12px; border-radius: 9px; }
.sidebar nav a:hover, .sidebar nav a.active { background: var(--card); color: var(--txt); text-decoration: none; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding: 0 8px; font-size: .88rem; }
.admin-main { flex: 1; padding: 26px 30px; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.kpi span { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.kpi b { display: block; font-size: 1.5rem; margin: 2px 0; }
.kpi b.smallb { font-size: 1rem; }
.kpi small { color: var(--muted); font-size: .78rem; }
.kpi.warn { border-color: rgba(245,158,11,.5); }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.span2 { grid-column: span 2; }
.chart { display: flex; align-items: flex-end; gap: 3px; height: 180px; padding-bottom: 18px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column-reverse; position: relative; }
.bar span { position: absolute; bottom: -18px; left: 0; right: 0; text-align: center; font-size: .62rem; color: var(--muted); }
.seg { width: 100%; }
.seg.web, .lg.web { background: var(--accent); } .seg.cron, .lg.cron { background: var(--accent2); } .seg.admin, .lg.admin { background: var(--warn); }
.bar .seg:last-child { border-radius: 3px 3px 0 0; }
.legend { font-size: .8rem; color: var(--muted); margin-top: 8px; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 10px; }
.hbar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.hbar-track { flex: 1; height: 10px; background: var(--bg2); border-radius: 6px; overflow: hidden; }
.hbar-track > div { height: 100%; }
.bulkbar { display: flex; gap: 6px; align-items: center; margin-top: 12px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.switch { width: 38px; height: 22px; border-radius: 20px; border: 0; background: var(--line2); position: relative; cursor: pointer; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch.on { background: var(--ok); } .switch.on::after { left: 19px; }
.grid-add { display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 10px; align-items: end; }
.grid-add label { margin: 0; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .grid3, .stats-strip, .kpis { grid-template-columns: 1fr 1fr; }
  .cert-facts { grid-template-columns: 1fr 1fr; }
  .admin-grid { grid-template-columns: 1fr; } .span2 { grid-column: auto; }
  .grid-add { grid-template-columns: 1fr 1fr; }
  body.admin { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; }
  .sidebar nav { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .checkform { flex-direction: column; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .cert-top { flex-direction: column-reverse; align-items: flex-start; }
  .cert-facts { grid-template-columns: 1fr; }
  .resultbox { flex-direction: column; text-align: center; }
  .topbar-in { height: auto; padding: 10px 20px; flex-direction: column; gap: 6px; }
  .admin-main { padding: 18px; }
}

/* --- Druck (Zertifikat als PDF) --- */
@media print {
  body { background: #fff; color: #000; }
  .topbar, .footer, .noprint, .crumbs { display: none !important; }
  .card, .cert-border { background: #fff; color: #000; box-shadow: none; border-color: #ccc; }
  .cert { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cert-facts > div { background: #f8fafc; }
  .muted, .cert-facts span, .cert-kicker { color: #555; }
  .table td, .table th { border-color: #ddd; color: #000; }
  .seal, .badge, .pill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* --- Animation: Panel aufklappen & Kacheln einblenden --- */
.live.opening { animation: unfold .55s cubic-bezier(.2,.8,.2,1) both; transform-origin: top center; }
.live.closing { animation: fold .35s ease both; transform-origin: top center; }
@keyframes unfold {
  0%   { opacity: 0; transform: translateY(-14px) scaleY(.6); clip-path: inset(0 0 100% 0 round 14px); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 14px); }
}
@keyframes fold { to { opacity: 0; transform: translateY(-10px) scaleY(.85); clip-path: inset(0 0 100% 0 round 14px); } }
.tile.appear { opacity: 0; animation: tileIn .38s cubic-bezier(.2,.9,.3,1.3) forwards; }
@keyframes tileIn {
  from { opacity: 0; transform: translateY(10px) scale(.85); }
  to   { opacity: 1; transform: none; }
}
.tile.wait { position: relative; overflow: hidden; }
.tile.wait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(56,189,248,.08), transparent);
  transform: translateX(-100%); animation: shimmer 1.6s ease-in-out infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.tile.run { box-shadow: 0 0 0 1px var(--accent), 0 0 14px rgba(56,189,248,.25); }
.tile.done .ico { animation: icoPop .3s ease; }
@keyframes icoPop { 0% { transform: scale(.4); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
.tile.listed.done { animation: shake .4s ease; }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.ipchip.pop { animation: tileIn .35s ease both; }
.ipchip.scan { display: inline-flex; align-items: center; gap: 6px; }
@media (prefers-reduced-motion: reduce) {
  .live.opening, .live.closing, .tile.appear, .tile.wait::after, .tile.done .ico, .tile.listed.done, .ipchip.pop { animation: none !important; opacity: 1; }
}

/* =====================================================================
 *  DnsblMonitor.com – Branding & Effekte (v1.1)
 * ===================================================================== */

/* --- Logo --- */
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo-radar { width: 28px; height: 28px; color: var(--accent); flex: none; filter: drop-shadow(0 0 6px rgba(56,189,248,.5)); }
.logo-sweep { transform-origin: 16px 16px; animation: spin 3s linear infinite; }
.logo-txt { font-weight: 700; letter-spacing: -.01em; }
.logo-txt b { font-weight: 900; background: linear-gradient(90deg, var(--accent), #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-txt .tld { color: var(--muted); font-weight: 600; }
.admin-tag { margin: -16px 8px 18px 45px; }

/* --- Hero mit Netzwerk-Hintergrund --- */
.hero { position: relative; overflow: hidden; border-radius: 22px; margin: -6px 0 22px; padding: 56px 20px 40px; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% 0%, rgba(99,102,241,.22), transparent 70%); pointer-events: none; }
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero-in { position: relative; z-index: 1; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: #bae6fd; background: rgba(56,189,248,.08);
  border: 1px solid rgba(56,189,248,.3); padding: 5px 13px; border-radius: 30px; margin-bottom: 18px; animation: fadeDown .7s ease both; }
.hero h1 { animation: fadeDown .7s .1s ease both; }
.hero .lead { animation: fadeDown .7s .2s ease both; }
.hero .checkform { animation: fadeDown .7s .3s ease both; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-14px); } }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: livePulse 1.6s infinite; display: inline-block; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

/* Glitch-Effekt auf „Blacklist“ */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; background: inherit; -webkit-background-clip: text; background-clip: text; color: transparent; }
.glitch::before { animation: glitchA 3.2s infinite steps(1); text-shadow: -2px 0 rgba(56,189,248,.7); }
.glitch::after  { animation: glitchB 3.2s infinite steps(1); text-shadow: 2px 0 rgba(239,68,68,.7); }
@keyframes glitchA { 0%, 88%, 100% { clip-path: inset(0 0 100% 0); transform: none; } 89% { clip-path: inset(10% 0 55% 0); transform: translate(-3px, -1px); } 92% { clip-path: inset(60% 0 8% 0); transform: translate(3px, 1px); } 95% { clip-path: inset(30% 0 40% 0); transform: translate(-2px, 0); } }
@keyframes glitchB { 0%, 88%, 100% { clip-path: inset(0 0 100% 0); transform: none; } 90% { clip-path: inset(50% 0 20% 0); transform: translate(3px, 1px); } 93% { clip-path: inset(5% 0 70% 0); transform: translate(-3px, -1px); } 96% { clip-path: inset(70% 0 5% 0); transform: translate(2px, 0); } }

/* Eingabefeld mit umlaufendem Leuchtrand */
.checkform { position: relative; isolation: isolate; align-items: center; }
.checkform::before { content: ""; position: absolute; inset: -2px; border-radius: 18px; z-index: -1;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 60%, #38bdf8 75%, #a78bfa 85%, transparent 95%); animation: rotAng 4s linear infinite; }
.checkform::after { content: ""; position: absolute; inset: 0; border-radius: 16px; background: var(--card); z-index: -1; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes rotAng { to { --ang: 360deg; } }
.cf-icon { font-size: 1.5rem; color: var(--muted); padding-left: 10px; }
.checkform.shake { animation: shake .4s ease; }
.btn { position: relative; overflow: hidden; }
.btn-shine { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); animation: shine 3.5s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.domcard.tilt { transition: transform .15s ease, border-color .15s; transform-style: preserve-3d; }
.stats-strip > div { position: relative; overflow: hidden; }
.stats-strip > div::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: shimmer 3s linear infinite; }

/* --- Live-Panel: Radar + Infos --- */
.live { position: relative; overflow: hidden; }
.live.scanning { border-color: rgba(56,189,248,.45); box-shadow: 0 0 0 1px rgba(56,189,248,.15), 0 0 40px rgba(56,189,248,.12), var(--shadow); }
.live.scanning::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 120px; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, transparent, rgba(56,189,248,.06), transparent); animation: scanline 2.8s linear infinite; }
@keyframes scanline { from { transform: translateY(-120px); } to { transform: translateY(1400px); } }
.live > * { position: relative; z-index: 1; }
.live-grid { display: grid; grid-template-columns: 230px 1fr; gap: 28px; align-items: center; }
.live-kicker { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.live-info h2 { font-size: 1.8rem; margin: 4px 0 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.live-info .live-counters { margin: 14px 0 0; }

.radar-wrap { position: relative; width: 220px; height: 220px; margin: 0 auto; }
.ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 6; }
.ring-fg { fill: none; stroke: url(#ringGrad); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 641; stroke-dashoffset: 641;
  transition: stroke-dashoffset .35s ease; filter: drop-shadow(0 0 6px rgba(56,189,248,.6)); }
.radar { position: absolute; inset: 16px; border-radius: 50%; overflow: hidden;
  background:
    linear-gradient(transparent calc(50% - .5px), rgba(56,189,248,.18) 50%, transparent calc(50% + .5px)),
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(56,189,248,.18) 50%, transparent calc(50% + .5px)),
    repeating-radial-gradient(circle, transparent 0 27px, rgba(56,189,248,.16) 28px 29px),
    radial-gradient(circle, #0c1a33 0%, #070f20 75%);
  box-shadow: inset 0 0 30px rgba(56,189,248,.18); }
.radar-sweep { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(56,189,248,0) 0deg, rgba(56,189,248,0) 290deg, rgba(56,189,248,.45) 355deg, rgba(186,230,253,.9) 360deg);
  animation: spin 6s linear infinite; }
.live.scanning .radar-sweep { animation-duration: 1.6s; }
.live.alarm .radar-sweep { background: conic-gradient(from 0deg, transparent 0 290deg, rgba(239,68,68,.5) 355deg, rgba(254,202,202,.9) 360deg); }
.live.won .radar-sweep { background: conic-gradient(from 0deg, transparent 0 290deg, rgba(34,197,94,.5) 355deg, rgba(187,247,208,.9) 360deg); }
.blip { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; animation: blipIn .5s ease-out both; }
.blip::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid currentColor; animation: ping 1.4s ease-out 1 forwards; }
.blip.clean { background: #4ade80; color: #4ade80; box-shadow: 0 0 6px #22c55e; opacity: .85; }
.blip.error { background: #fbbf24; color: #fbbf24; box-shadow: 0 0 6px #f59e0b; }
.blip.listed { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; background: #f87171; color: #f87171; box-shadow: 0 0 12px #ef4444; z-index: 2; }
.blip.listed::after { animation: ping 1.2s ease-out infinite; }
@keyframes blipIn { from { transform: scale(0); opacity: 0; } 60% { transform: scale(1.8); } }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
.radar-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; text-shadow: 0 2px 10px #000; }
.radar-center b { font-size: 1.9rem; font-weight: 900; }
.radar-center span { font-size: .75rem; color: #bae6fd; text-transform: uppercase; letter-spacing: .1em; }

/* Fortschrittsbalken mit laufenden Streifen */
.live.scanning .progress > div { background-image: linear-gradient(90deg, var(--accent2), var(--accent)),
  repeating-linear-gradient(45deg, rgba(255,255,255,.18) 0 10px, transparent 10px 20px); background-blend-mode: overlay;
  background-size: 100% 100%, 28px 28px; animation: stripes .6s linear infinite; box-shadow: 0 0 14px rgba(56,189,248,.6); }
@keyframes stripes { to { background-position: 0 0, 28px 0; } }

/* Treffer-Blitz / Alarm / Gewonnen */
.live.hitflash { animation: hitflash .5s ease; }
@keyframes hitflash { 0% { box-shadow: 0 0 0 2px rgba(239,68,68,.9), 0 0 60px rgba(239,68,68,.45); } 100% { box-shadow: 0 0 0 1px rgba(56,189,248,.15), 0 0 40px rgba(56,189,248,.12); } }
.live.alarm { border-color: rgba(239,68,68,.6); animation: alarm 1.4s ease-in-out 3; }
@keyframes alarm { 50% { box-shadow: 0 0 0 2px rgba(239,68,68,.7), 0 0 70px rgba(239,68,68,.35); } }
.live.won { border-color: rgba(34,197,94,.6); box-shadow: 0 0 0 1px rgba(34,197,94,.3), 0 0 60px rgba(34,197,94,.22), var(--shadow); }

/* --- Terminal --- */
.terminal { margin: 18px 0 16px; border-radius: 12px; background: #050a14; border: 1px solid var(--line2); overflow: hidden; box-shadow: inset 0 0 30px rgba(0,0,0,.6); }
.term-head { display: flex; align-items: center; gap: 6px; padding: 7px 12px; background: #0b1324; border-bottom: 1px solid var(--line); font-size: .75rem; color: var(--muted); font-family: ui-monospace, monospace; }
.term-head i { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; }
.term-head i:nth-child(2) { background: #f59e0b; } .term-head i:nth-child(3) { background: #22c55e; margin-right: 8px; }
.term-rate { margin-left: auto; color: var(--accent); }
.term-body { height: 168px; overflow-y: auto; padding: 8px 12px; font: 12.5px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #a5b4c8; scroll-behavior: smooth; }
.term-body::-webkit-scrollbar { width: 6px; } .term-body::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 3px; }
.tl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: tlIn .25s ease both; }
@keyframes tlIn { from { opacity: 0; transform: translateX(-8px); } }
.tl .tt { color: #475569; } .tl .ok { color: #4ade80; } .tl .bad { color: #f87171; font-weight: 700; } .tl .warn { color: #fbbf24; }
.tl .dim { color: #64748b; } .tl .hlw { color: #7dd3fc; } .tl.cmd { color: #e2e8f0; } .tl.cmd::before { content: "$ "; color: var(--accent); }
.tl.hit { background: rgba(239,68,68,.1); border-left: 2px solid #ef4444; padding-left: 6px; }
.tl.err { color: #fca5a5; }

/* --- Kacheln: 3D-Flip beim Ergebnis --- */
.tiles { perspective: 900px; }
.tile.flip { animation: flipIn .45s cubic-bezier(.3,.7,.3,1.2) both; }
@keyframes flipIn { 0% { transform: rotateX(0); } 45% { transform: rotateX(90deg); filter: brightness(1.8); } 100% { transform: rotateX(0); } }
.tile.flip .ico { animation: icoPop .35s .15s ease both; }
.tile.flip.listed { animation: flipIn .45s cubic-bezier(.3,.7,.3,1.2) both, shake .4s .45s ease, hotPulse 1.6s .9s ease-in-out infinite; }
@keyframes hotPulse { 50% { box-shadow: 0 0 16px rgba(239,68,68,.45); } }
.tile.run { animation: runGlow .8s ease-in-out infinite alternate; }
@keyframes runGlow { to { box-shadow: 0 0 0 1px var(--accent), 0 0 18px rgba(56,189,248,.45); } }

/* --- Ergebnis: Stempel & Zähler --- */
.resultbox { position: relative; overflow: hidden; border-color: var(--g, var(--line2)); box-shadow: 0 0 40px color-mix(in srgb, var(--g, #38bdf8) 25%, transparent); }
.resultbox::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 160px at 60px 50%, color-mix(in srgb, var(--g, #38bdf8) 22%, transparent), transparent 70%); pointer-events: none; }
.result-grade { position: relative; width: 120px; height: 120px; font-size: 3rem;
  box-shadow: 0 0 0 6px rgba(255,255,255,.06), 0 0 0 12px color-mix(in srgb, var(--g) 25%, transparent), 0 0 40px var(--g); }
.result-grade.stamp { animation: stamp .6s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes stamp { 0% { transform: scale(3.2) rotate(-25deg); opacity: 0; filter: blur(6px); } 60% { transform: scale(.88) rotate(4deg); opacity: 1; filter: blur(0); } 80% { transform: scale(1.06) rotate(-1deg); } 100% { transform: scale(1) rotate(0); } }
.result-score { display: flex; align-items: baseline; gap: 6px; margin: 2px 0 6px; }
.result-score b { font-size: 2.6rem; font-weight: 900; line-height: 1; color: var(--g); text-shadow: 0 0 20px color-mix(in srgb, var(--g) 50%, transparent); }
.result-score span { color: var(--muted); }

/* --- Zertifikatsseite --- */
.cert-anim { animation: certIn .8s cubic-bezier(.2,.8,.2,1) both; background-size: 200% 200%; }
.cert-anim { background-image: linear-gradient(135deg, var(--g), #1e293b 40%, color-mix(in srgb, var(--g) 50%, #1e293b) 60%, #1e293b 80%, var(--g)); animation: certIn .8s cubic-bezier(.2,.8,.2,1) both, borderFlow 6s linear infinite; }
@keyframes certIn { from { opacity: 0; transform: translateY(20px) scale(.98); } }
@keyframes borderFlow { to { background-position: 200% 200%; } }
.seal.stamp { animation: stamp .7s .35s cubic-bezier(.2,1.4,.4,1) both; }
.seal { position: relative; }
.seal::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.25); animation: spin 18s linear infinite; }
.cert-anim .cert-facts > div { animation: fadeDown .5s ease both; }
.cert-anim .cert-facts > div:nth-child(1) { animation-delay: .5s; } .cert-anim .cert-facts > div:nth-child(2) { animation-delay: .58s; }
.cert-anim .cert-facts > div:nth-child(3) { animation-delay: .66s; } .cert-anim .cert-facts > div:nth-child(4) { animation-delay: .74s; }
.cert-anim .cert-facts > div:nth-child(5) { animation-delay: .82s; } .cert-anim .cert-facts > div:nth-child(6) { animation-delay: .9s; }

/* Konfetti-Ebene */
.fx { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 999; }

@media (max-width: 760px) {
  .live-grid { grid-template-columns: 1fr; }
  .radar-wrap { width: 190px; height: 190px; }
  .hero { padding: 36px 12px 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print { .fx, .seal::after { display: none; } .cert-anim { animation: none; background: none; } }
.stats-strip b span { font-size: inherit; color: inherit; }

/* --- Siegel-Galerie --- */
.badge-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 14px 0 18px; }
.bg-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px 12px; border-radius: 12px; cursor: pointer; font: inherit; color: var(--txt);
  background: var(--bg2); border: 1px solid var(--line); transition: transform .15s, border-color .15s, box-shadow .15s; }
.bg-item:hover { transform: translateY(-3px); border-color: var(--line2); }
.bg-item.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(56,189,248,.35), 0 8px 24px rgba(56,189,248,.15); }
.bg-img { min-height: 140px; width: 100%; display: flex; align-items: center; justify-content: center; border-radius: 8px; padding: 8px;
  background-image: linear-gradient(45deg, rgba(255,255,255,.03) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.03) 75%), linear-gradient(45deg, rgba(255,255,255,.03) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.03) 75%);
  background-size: 16px 16px; background-position: 0 0, 8px 8px; }
.bg-item.on-light .bg-img { background: #f8fafc; }
.bg-img img { max-width: 100%; height: auto; }
.bg-name { font-weight: 700; margin-top: 4px; }
.bg-desc { font-size: .75rem; color: var(--muted); }
.code-tabs { margin-bottom: 8px; }
.codebox { display: flex; gap: 8px; align-items: stretch; }
.codebox textarea { flex: 1; font-family: ui-monospace, monospace; font-size: 12px; resize: vertical; }
.codebox .btn { align-self: flex-start; }
@media (max-width: 600px) { .codebox { flex-direction: column; } }

/* --- Rechtstexte & Footer --- */
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); } .footer-links a:hover { color: var(--txt); }
.legal-note { font-size: .78rem; color: var(--muted); margin: 6px auto 0; max-width: 640px; animation: fadeDown .7s .4s ease both; }
.legal h2 { font-size: 1.12rem; margin-top: 1.6em; }
.legal p, .legal li { line-height: 1.7; }
mark.missing { background: rgba(245,158,11,.18); color: #fcd34d; border: 1px dashed rgba(245,158,11,.6); border-radius: 5px; padding: 0 5px; }

/* --- Fehlerbericht & Brotkrümel --- */
.crumbs { color: var(--muted); font-size: .88rem; }
.crumbs span { color: var(--txt); }
.tablink { font-size: .82rem; padding: 5px 11px; border-radius: 8px; border: 1px solid rgba(245,158,11,.45); color: #fcd34d; background: rgba(245,158,11,.08); }
.tablink:hover { text-decoration: none; background: rgba(245,158,11,.16); }
.errreport { border-color: rgba(245,158,11,.35); scroll-margin-top: 80px; }
.errreport h3 { margin-top: 18px; font-size: 1rem; }
.errgroups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 12px 0; }
.errgroup { background: rgba(245,158,11,.07); border: 1px solid rgba(245,158,11,.3); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.errgroup b { color: #fcd34d; } .errgroup span { color: var(--muted); font-size: .85rem; }
.errreport tr.st-error td { background: rgba(245,158,11,.04); }
