/* „Verbindung finden“ – Farben und Schrift wie die Startseite */
@font-face{font-family:"Geologica";font-style:normal;font-weight:100 900;font-display:swap;src:url(/static/fonts/geologica-cyrillic-ext.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:"Geologica";font-style:normal;font-weight:100 900;font-display:swap;src:url(/static/fonts/geologica-cyrillic.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Geologica";font-style:normal;font-weight:100 900;font-display:swap;src:url(/static/fonts/geologica-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
body.connect{--night:#10222e;--navy:#193040;--quill:#faa100;--mist:#9db3c2;--display:"Geologica",system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans",sans-serif}

/* ── Kopf mit Auswahl ── */
.cx-hero{background:var(--night);color:#eef3f6;padding:36px 0 30px}
.cx-hero h1{font-family:var(--display);font-weight:640;font-size:clamp(1.6rem,3vw,2.3rem);line-height:1.12;letter-spacing:-.02em;margin:0 0 8px}
.cx-hero .lead{margin:0 0 22px;color:var(--mist);max-width:62ch;line-height:1.5}
.cx-picker{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.cx-chip{display:inline-flex;align-items:center;gap:9px;padding:5px 6px 5px 5px;background:#1b3445;border-radius:999px;box-shadow:inset 0 0 0 2px var(--pc)}
.cx-chip img,.cx-chip .avatar{width:38px;height:38px;border-radius:50%;object-fit:cover;font-size:.95rem}
.cx-chip a{color:#fff;font-weight:600;text-decoration:none}
.cx-chip a:hover{text-decoration:underline}
.cx-chip .cx-x{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;font-size:1.25rem;font-weight:400;line-height:1;color:var(--mist)}
.cx-chip .cx-x:hover{background:#2a4a60;color:#fff;text-decoration:none}
.cx-add{position:relative;display:flex;gap:8px;flex:1 1 300px;max-width:440px;min-width:0}
.cx-add input[type=text]{flex:1;min-width:0;padding:12px 15px;font:inherit;color:#12222d;background:#fff;border:2px solid transparent;border-radius:11px}
.cx-add input[type=text]:focus-visible{outline:none;border-color:var(--quill)}
.cx-add button{padding:0 20px;font:inherit;font-weight:650;color:#12222d;background:var(--quill);border:0;border-radius:11px;cursor:pointer}
.cx-add button:hover{background:#ffb52e}
.cx-add button:focus-visible,.cx-chip a:focus-visible{outline:2px solid #fff;outline-offset:2px}
.cx-suggest{position:absolute;left:0;right:0;top:100%;margin-top:5px;background:#fff;border-radius:11px;box-shadow:0 14px 34px rgba(8,20,28,.35);overflow:hidden;z-index:30}
.cx-suggest a{display:flex;align-items:center;gap:10px;padding:8px 12px;color:#1a1d23;text-decoration:none}
.cx-suggest a:hover,.cx-suggest a.on{background:#eef3f8}
.cx-suggest img,.cx-suggest .avatar{width:32px;height:32px;border-radius:50%;object-fit:cover;font-size:.85rem;flex:none}
.cx-suggest small{color:var(--muted);margin-left:auto;font-size:.78rem}
.cx-notice{margin:12px 0 0;color:#ffcf7a}

/* ── Abschnitte ── */
.cx-sec{margin-top:46px}
.cx-sec.cx-first{margin-top:34px}
.cx-sec h2{font-family:var(--display);font-weight:600;font-size:1.4rem;letter-spacing:-.012em;color:var(--navy);margin:0 0 6px}
.cx-sub{margin-top:34px!important}
.cx-hint{margin:0 0 16px;color:var(--muted);font-size:.9rem}
.cx-need{font-family:var(--display);font-size:1.25rem;color:var(--navy);margin:8px 0 18px}
.cx-empty{margin:22px 0 0;color:var(--muted)}
.cx-quick{display:flex;flex-wrap:wrap;gap:10px}
.cx-quick a{display:inline-flex;align-items:center;gap:9px;padding:5px 14px 5px 5px;background:var(--panel);border:1px solid var(--line);border-radius:999px;color:var(--text);text-decoration:none;font-weight:500}
.cx-quick a:hover{border-color:var(--navy)}
.cx-quick img,.cx-quick .avatar{width:36px;height:36px;border-radius:50%;object-fit:cover;font-size:.9rem}
.cx-quick.small a{font-size:.88rem;padding:4px 12px 4px 4px}.cx-quick.small img,.cx-quick.small .avatar{width:28px;height:28px}

/* gemeinsame Bausteine des Bildes */
.cx-person{display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--text);text-decoration:none;text-align:center}
.cx-person img,.cx-person .avatar{width:104px;height:104px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 4px var(--panel),0 0 0 7px var(--pc);font-size:2rem}
.cx-person b{font-family:var(--display);font-weight:600;font-size:1.12rem;line-height:1.2}
.cx-person:hover b{color:var(--accent)}
.cx-node{display:inline-flex;align-items:center;gap:10px;padding:7px 16px 7px 7px;background:var(--panel);border:1px solid var(--line);border-radius:999px;color:var(--text);text-decoration:none;max-width:100%}
.cx-node:hover{border-color:var(--navy);text-decoration:none}
.cx-node img,.cx-node .avatar{width:38px;height:38px;border-radius:50%;object-fit:cover;flex:none;font-size:.95rem}
.cx-node>span:last-child{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.cx-node b{font-weight:600;line-height:1.2}
.cx-node .tag{font-size:.66rem}
.cx-yrs{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.cx-src{font-size:.8rem;text-decoration:none}
.cx-side ul,.cx-cell ul{list-style:none;margin:0;padding:0;font-size:.92rem;line-height:1.4}
.cx-side li.unverified,.cx-cell li.unverified{color:var(--muted)}

/* zwei Profile: Brücke */
.cx-bridge{display:grid;gap:0}
.cx-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:0 0;padding:11px 0}
.cx-row.cx-heads{align-items:start;padding-bottom:22px}
.cx-row.cx-heads .cx-person:first-child{justify-self:start}.cx-row.cx-heads .cx-person:last-child{justify-self:end}
.cx-row.cx-heads .cx-mid{min-width:120px}
.cx-side{position:relative;display:flex;align-items:center;min-height:38px}
.cx-side.l{justify-content:flex-end;text-align:right;padding-right:16px}
.cx-side.r{justify-content:flex-start;text-align:left;padding-left:16px}
/* Verbindungslinie: von der Mitte der Zelle bis zum Knoten */
.cx-side::before{content:"";position:absolute;top:50%;height:2px;background:var(--line);z-index:0}
.cx-side.l::before{left:52px;right:0}.cx-side.r::before{left:0;right:52px}
.cx-side ul{position:relative;z-index:1;background:var(--bg);padding:0 10px}
.cx-side:empty::before{background:repeating-linear-gradient(90deg,var(--line) 0 6px,transparent 6px 12px)}
.cx-direct .cx-side::before{background:var(--quill);height:3px}
.cx-link{display:inline-flex;align-items:center;gap:8px;padding:8px 18px;background:#fff7e6;border:2px solid var(--quill);border-radius:999px}
.cx-link b{font-weight:650}
.cx-dir{width:0;height:0;border:6px solid transparent}
.cx-dir.ab{border-left-color:var(--quill);margin-right:-8px}.cx-dir.ba{border-right-color:var(--quill);order:-1;margin-left:-8px}

/* drei oder vier Profile: Tabelle mit Punkten */
.cx-matrix{display:grid;gap:0}
.cx-mrow{position:relative;display:grid;grid-template-columns:minmax(190px,1.25fr) repeat(var(--n),minmax(0,1fr));align-items:center;gap:0 8px;padding:13px 0;border-top:1px solid var(--line)}
.cx-mrow.cx-heads{border-top:0;align-items:start;padding-bottom:20px}
.cx-mrow.cx-heads .cx-person img,.cx-mrow.cx-heads .cx-person .avatar{width:84px;height:84px}
.cx-label{min-width:0}
.cx-cell{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;min-width:0;grid-row:1}
.cx-dot{width:16px;height:16px;border-radius:50%;background:var(--pc);box-shadow:0 0 0 4px var(--bg)}
.cx-line{grid-row:1;align-self:start;height:3px;margin:17px var(--pad) 0;background:#c9d2da;border-radius:2px}
.cx-mrow .cx-label{grid-row:1;grid-column:1}
.cx-mrow.cx-direct .cx-line{background:var(--quill)}
.cx-mrow.cx-direct .cx-cell{align-self:start;padding-top:11px}
.cx-mrow.cx-shared .cx-cell{align-self:start;padding-top:11px}

/* Weg über Dritte */
.cx-path{display:flex;flex-wrap:wrap;align-items:center;gap:8px 0;margin:14px 0}
.cx-pnode{display:inline-flex;align-items:center;gap:9px;padding:5px 14px 5px 5px;background:var(--panel);border:1px solid var(--line);border-radius:999px;color:var(--text);text-decoration:none}
.cx-pnode.sel{box-shadow:inset 0 0 0 2px var(--pc);border-color:transparent}
.cx-pnode img,.cx-pnode .avatar{width:34px;height:34px;border-radius:50%;object-fit:cover;font-size:.9rem}
.cx-edge{position:relative;padding:0 14px;font-size:.84rem;color:var(--muted)}
.cx-edge::before,.cx-edge::after{content:"";display:inline-block;vertical-align:middle;width:18px;height:2px;background:#c9d2da;margin:0 8px}

/* Zeitstrahl */
.cx-time{display:grid;gap:0}
.cx-trow{display:grid;grid-template-columns:minmax(150px,240px) minmax(0,1fr);gap:0 18px;align-items:center;padding:9px 0;border-top:1px solid var(--line)}
.cx-trow.cx-axis{border-top:0;padding:0 0 4px}
.cx-tlabel{font-size:.93rem;line-height:1.3}
.cx-tlabel a{color:var(--text)}
.cx-track{position:relative;height:calc(var(--rows,1) * 12px + 8px)}
.cx-axis .cx-track{height:20px;border-bottom:1px solid var(--line)}
.cx-axis i{position:absolute;bottom:3px;transform:translateX(-50%);font-style:normal;font-size:.74rem;color:var(--muted);font-variant-numeric:tabular-nums}
.cx-axis i:first-child{transform:none}.cx-axis i:last-child{transform:translateX(-100%)}
.cx-bar{position:absolute;top:calc(4px + var(--k) * 12px);height:8px;border-radius:4px;background:var(--pc)}
.cx-common{position:absolute;top:0;bottom:0;background:rgba(250,161,0,.16);border-left:2px solid var(--quill);border-right:2px solid var(--quill)}
.cx-legend{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:12px;font-size:.88rem}
.cx-legend span{display:inline-flex;align-items:center;gap:7px}
.cx-legend i{width:18px;height:8px;border-radius:4px;background:var(--pc)}

/* Aussagen und Artikel */
.cx-words{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 44px;margin-top:14px}
.cx-words h3{font-size:1rem;margin:0 0 6px}
.cx-who{box-shadow:inset 0 -3px 0 var(--pc)}
.cx-stance.positive{color:var(--ok)}.cx-stance.negative{color:var(--bad)}
.cx-arts{list-style:none;margin:8px 0 0;padding:0}
.cx-arts li{display:grid;grid-template-columns:86px minmax(0,1fr) auto;gap:12px;align-items:baseline;padding:9px 0;border-top:1px solid var(--line)}
.cx-arts li:first-child{border-top:0}
.cx-arts time{color:var(--muted);font-size:.82rem;font-variant-numeric:tabular-nums}
.cx-dots{display:inline-flex;gap:4px}
.cx-dots i{width:10px;height:10px;border-radius:50%;background:var(--pc)}

@media (max-width:820px){
  .cx-hero{padding:26px 0 22px}
  .cx-person img,.cx-person .avatar{width:76px;height:76px}
  .cx-person b{font-size:.98rem}
  .cx-row{grid-template-columns:minmax(0,1fr);gap:6px;padding:14px 0;border-top:1px solid var(--line)}
  .cx-row.cx-heads{grid-template-columns:minmax(0,1fr) minmax(0,1fr);border-top:0}
  .cx-row.cx-heads .cx-mid{display:none}
  .cx-row.cx-heads .cx-person:first-child,.cx-row.cx-heads .cx-person:last-child{justify-self:center}
  .cx-row.cx-shared .cx-node,.cx-row.cx-direct .cx-link{order:-1;justify-self:start}
  .cx-side,.cx-side.l,.cx-side.r{justify-content:flex-start;text-align:left;padding:0 0 0 14px;min-height:0;border-left:4px solid var(--pc,var(--line))}
  .cx-side::before{display:none}
  .cx-side ul{padding:0}
  .cx-side:empty{display:none}
  .cx-bridge .cx-side.l{--pc:#e08a00}.cx-bridge .cx-side.r{--pc:#2f7de1}
  .cx-mrow{grid-template-columns:minmax(0,1fr) repeat(var(--n),34px);gap:0 4px}
  .cx-mrow.cx-heads{grid-template-columns:repeat(var(--n),minmax(0,1fr))}
  .cx-mrow.cx-heads>span:first-child{display:none}
  .cx-mrow.cx-heads .cx-person img,.cx-mrow.cx-heads .cx-person .avatar{width:58px;height:58px}
  .cx-mrow.cx-heads .cx-person b{font-size:.82rem}
  .cx-cell ul{display:none}
  .cx-node{padding-right:12px}.cx-node img,.cx-node .avatar{width:30px;height:30px}
  .cx-trow{grid-template-columns:minmax(0,1fr);gap:4px}
  .cx-words{grid-template-columns:minmax(0,1fr)}
  .cx-arts li{grid-template-columns:minmax(0,1fr) auto}.cx-arts time{grid-column:1/-1}
}
