:root {
  --bg: #0f1420;
  --panel: #171d2b;
  --panel2: #1e2637;
  --line: #2a3448;
  --text: #e8edf6;
  --muted: #93a0b8;
  --accent: #4c8dff;
  --ok: #2fbf71;
  --warn: #f0a23c;
  --err: #ef5f5f;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 26px; background: var(--panel); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.brand { color: var(--text); font-weight: 700; font-size: 18px; text-decoration: none; }
.topbar nav a { color: var(--muted); text-decoration: none; margin-left: 18px; }
.topbar nav a:hover { color: var(--text); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 24px 20px 60px; }
.foot { max-width: 1080px; margin: 0 auto; padding: 0 20px 40px; color: var(--muted); font-size: 13px; }

h1 { font-size: 26px; margin: 6px 0 18px; }
h2 { font-size: 19px; margin: 0 0 14px; }
h3 { font-size: 15px; margin: 18px 0 8px; color: var(--muted); }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 18px;
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.grid.two { grid-template-columns: 1fr 1fr; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
label.chk { flex-direction: row; align-items: center; gap: 8px; }
input, select {
  background: var(--panel2); border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 9px 11px; font: inherit; width: 100%;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.cats { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 16px 0; }
.cats legend { color: var(--muted); font-size: 13px; padding: 0 6px; }
.cat { flex-direction: row; align-items: center; gap: 7px; display: inline-flex; margin-right: 20px; color: var(--text); }
.cat input { width: auto; }

.more summary { cursor: pointer; color: var(--muted); margin-bottom: 12px; }
.hint { color: var(--muted); font-size: 13px; margin-left: 12px; }

button.primary, .primary.btn {
  background: var(--accent); color: #fff; border: 0; border-radius: 8px;
  padding: 11px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  display: inline-block;
}
button.primary:hover, .primary.btn:hover { filter: brightness(1.1); }

.best {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  background: var(--panel2); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 8px; padding: 14px 16px; margin-bottom: 14px;
}
.best .label { color: var(--muted); font-size: 12px; display: block; text-transform: uppercase; letter-spacing: .04em; }
.price { font-size: 24px; font-weight: 700; }
.price.big { font-size: 30px; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.table tr.win td { background: rgba(76, 141, 255, .10); }
.table.kv th { width: 210px; text-transform: none; letter-spacing: 0; font-size: 13px; }

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.warn { color: var(--warn); }
.alert { padding: 11px 14px; border-radius: 8px; margin: 10px 0; font-size: 14px; }
.alert.error { background: rgba(239, 95, 95, .12); border: 1px solid rgba(239, 95, 95, .4); color: #ffb3b3; }
.alert.warn { background: rgba(240, 162, 60, .12); border: 1px solid rgba(240, 162, 60, .4); color: #ffd9a6; }

.tag { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); margin-left: 8px; }
.tag.ok { color: #9ff0c4; border-color: rgba(47, 191, 113, .5); }
.tag.warn { color: #ffd9a6; border-color: rgba(240, 162, 60, .5); }
.tag.off { color: var(--muted); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: var(--muted); }
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--warn); }
.dot.off { background: #4a5568; }

.sources { list-style: none; padding: 0; margin: 0; }
.sources li { padding: 6px 0; border-bottom: 1px solid rgba(42, 52, 72, .5); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.notes { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; }
.notes li { margin-bottom: 5px; }

.live { color: var(--muted); font-size: 14px; }
.live table { margin-top: 10px; }
code { background: var(--panel2); padding: 1px 6px; border-radius: 5px; font-size: 12.5px; }
a { color: var(--accent); }

/* Affiliate-Kennzeichnung (§ 5a UWG / § 6 DDG): sichtbar vor dem Klick */
.aff-banner {
  background: rgba(76, 141, 255, .10);
  border: 1px solid rgba(76, 141, 255, .35);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 13.5px;
  color: var(--text);
}
.aff-disclosure {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #ffd9a6;
  background: rgba(240, 162, 60, .14);
  border: 1px solid rgba(240, 162, 60, .45);
  border-radius: 999px;
  padding: 3px 10px;
  margin: 0 0 8px;
}
.card.legal { border-left: 3px solid var(--muted); }
.legal-inline { margin: 4px 0 10px; }
.foot p { margin: 6px 0; }

/* --- SEO/Struktur --- */
.skip { position: absolute; left: -9999px; top: 0; background: var(--panel);
  color: var(--text); padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100; }
.skip:focus { left: 0; }
.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.lead { font-size: 16px; color: var(--text); max-width: 820px; margin: 0 0 18px; }
.linklist { list-style: none; padding: 0; margin: 0; }
.linklist li { padding: 8px 0; border-bottom: 1px solid rgba(42, 52, 72, .5); }
.steps { margin: 0; padding-left: 20px; color: var(--muted); }
.steps li { margin-bottom: 8px; }
.faq { border-bottom: 1px solid rgba(42, 52, 72, .5); padding: 10px 0; }
.faq summary { cursor: pointer; color: var(--text); font-weight: 600; }
.faq p { color: var(--muted); margin: 8px 0 0; }

/* --- Agenten-Netzwerk (Fortschritt) + stabiler Live-Bereich --- */
.agent-graph {
  height: 300px;                 /* feste Höhe: kein Layout-Springen */
  margin: 0 0 6px;
  background: radial-gradient(circle at 50% 50%, rgba(76,141,255,.07), transparent 65%);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.agent-graph svg { width: 100%; height: 100%; display: block; }
.progress-label { font-size: 13px; color: var(--muted); margin: 6px 0 10px; }

/* Kanten: Statusfarbe + fließende Striche */
.edge {
  stroke: #33405a; stroke-width: 1.6;
  transition: stroke .35s ease, stroke-width .35s ease;
}
.edge.waiting {
  stroke: #4a5568; stroke-dasharray: 5 7;
  animation: flow 1.2s linear infinite;
}
.edge.ok { stroke: var(--ok); stroke-width: 2; }
.edge.error { stroke: #ef5f5f; stroke-width: 2; }
.edge.skipped { stroke: #f0a23c; stroke-width: 2; stroke-dasharray: 2 4; }
.edge.pulse {
  stroke: #7cc4ff; stroke-width: 2.8; stroke-dasharray: 4 6;
  animation: flow .45s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -24; } }

/* „Datenpakete": kleiner Punkt wandert entlang der Verbindung */
.packet { fill: #7cc4ff; opacity: 0; }
.edge.waiting + .packet {
  animation: packet 2.6s linear infinite;
}
@keyframes packet {
  0%   { offset-distance: 0%;   opacity: 0; }
  8%   { opacity: .95; }
  92%  { opacity: .95; }
  100% { offset-distance: 100%; opacity: 0; }
}
@supports not (offset-path: path("M0 0 L1 1")) {
  .edge.waiting + .packet { display: none; }
}

/* Knoten */
.node rect { fill: #171d2b; stroke: #2a3448; stroke-width: 1; }
.node .node-label { fill: #e8edf6; font-size: 12px; }
.node .node-dot { fill: #4a5568; }
.node.waiting { opacity: .78; }
.node.waiting .node-dot { animation: pulse 1.4s ease-in-out infinite; }
.node.ok rect { stroke: var(--ok); }
.node.ok .node-dot { fill: var(--ok); }
.node.error rect { stroke: #ef5f5f; }
.node.error .node-dot { fill: #ef5f5f; }
.node.skipped rect { stroke: #f0a23c; }
.node.skipped .node-dot { fill: #f0a23c; }

/* Zentrum */
.agent-ring { stroke: rgba(76,141,255,.65); stroke-width: 1.5; }
.agent-title { fill: #e8edf6; font-size: 15px; font-weight: 700; }
.agent-count {
  fill: #9ff0c4; font-size: 17px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.halo {
  fill: none; stroke: #4c8dff; stroke-width: 1;
  transform-box: fill-box; transform-origin: center;
  animation: halo 2.2s ease-out infinite;
}
.halo.done { animation: none; opacity: .3; stroke: var(--ok); }
@keyframes halo {
  0%   { transform: scale(.86); opacity: .55; }
  70%  { transform: scale(1.14); opacity: 0; }
  100% { transform: scale(1.14); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .edge.waiting, .edge.pulse, .node.waiting .node-dot, .halo { animation: none; }
  .edge.waiting + .packet { display: none; }
}

.live-scroll { max-height: 260px; overflow-y: auto; height: 240px; }  /* feste Höhe: Inhalt darunter bleibt stehen */
#live-hint { min-height: 18px; margin: 6px 0 0; }              /* Platz reserviert: kein Sprung am Ende */
.live-table td, .live-table th { padding: 6px 8px; font-size: 13px; }
.live-table tr { height: 30px; }                        /* konstante Zeilenhöhe */
.live-table td.er { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st.ok { color: #9ff0c4; }
.st.err { color: #ffb3b3; }
.st.warn { color: #ffd9a6; }
.st { font-variant-numeric: tabular-nums; }
.dot.wait { background: #4a5568; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .dot.wait { animation: none; }
}
