:root{--bg:#0b0d12;--panel:#131720;--panel2:#181d27;--line:#292f3b;--text:#f3f5f8;--muted:#929bab;--blue:#5c86ff;--blue2:#345eda;--green:#40d293;--red:#f16f78}
*{box-sizing:border-box}
html{background:var(--bg)}
body{margin:0;background:radial-gradient(circle at 80% 0%,#17203a 0,transparent 27%),var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;min-height:100vh}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
.topbar{height:82px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 4vw;background:rgba(11,13,18,.9);backdrop-filter:blur(16px);position:sticky;top:0;z-index:10}
.brand{display:flex;align-items:center;gap:13px}
.brand-mark{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(145deg,#6b94ff,#3158c7);font-size:13px;font-weight:900;letter-spacing:.5px;box-shadow:0 8px 28px #345eda44}
.brand strong,.brand small{display:block}
.brand strong{font-size:17px}
.brand small{margin-top:2px;color:var(--muted);font-size:12px;letter-spacing:.06em;text-transform:uppercase}
.header-actions{display:flex;align-items:center;gap:12px}
.server-pill{border:1px solid #285744;color:#a4ebce;border-radius:99px;padding:10px 14px;font-size:13px}
.server-pill i{display:inline-block;width:7px;height:7px;background:var(--green);border-radius:50%;margin-right:7px;box-shadow:0 0 12px var(--green)}
.server-pill.offline{border-color:#65353a;color:#ffc1c5}
.server-pill.offline i{background:var(--red);box-shadow:none}
.connect-button,.join-large{background:linear-gradient(135deg,var(--blue),var(--blue2));border-radius:10px;padding:13px 18px;font-weight:700;box-shadow:0 10px 30px #345eda35}
.connect-button b{margin-left:8px}
.hero{max-width:1440px;margin:0 auto;padding:52px 4vw 30px;display:flex;justify-content:space-between;align-items:end}
.eyebrow{color:#81a1ff!important;font-size:12px!important;font-weight:800;letter-spacing:.18em}
.hero h1{margin:8px 0 10px;font-size:clamp(32px,4vw,54px);letter-spacing:-.04em}
.hero p{color:var(--muted);margin:0;font-size:17px}
.hero-stat{text-align:right}
.hero-stat span{font-size:44px;font-weight:800;line-height:1}
.hero-stat small{display:block;color:var(--muted);margin-top:6px}
.error-notice{max-width:calc(1440px - 8vw);margin:0 auto 18px;border:1px solid #6f353b;background:#2c171a;padding:13px 16px;border-radius:12px;display:flex;align-items:center;gap:12px;color:#ffc4c8}
.error-notice[hidden]{display:none}
.error-notice>span{width:25px;height:25px;display:grid;place-items:center;border-radius:50%;background:#71363b;font-weight:900}
.error-notice p{margin:2px 0 0;color:#d99ca1;font-size:13px}
.dashboard{max-width:1440px;margin:0 auto;padding:0 4vw 45px;display:grid;grid-template-columns:minmax(0,1.7fr) minmax(320px,.8fr);gap:20px}
.channel-panel,.server-card,.refresh-card{border:1px solid var(--line);background:linear-gradient(160deg,var(--panel2),var(--panel));border-radius:16px;box-shadow:0 20px 55px #0004}
.channel-panel{min-height:650px;overflow:hidden}
.panel-head{min-height:88px;display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid var(--line)}
.panel-head h2{margin:0 0 4px;font-size:20px}
.panel-head p{margin:0;font-size:13px;color:var(--muted)}
.search{display:flex;align-items:center;gap:8px;background:#0e1118;border:1px solid var(--line);border-radius:9px;padding:0 12px;height:40px;width:min(280px,45%);color:var(--muted)}
.search input{min-width:0;width:100%;background:none;border:0;outline:0;color:var(--text);font-size:13px}
.server-root{display:flex;align-items:center;gap:11px;padding:18px 21px 12px}
.server-symbol{width:28px;height:28px;border-radius:7px;display:grid;place-items:center;color:#a8bfff;background:#263151}
.root-count,.channel-count{margin-left:auto;color:var(--muted);font-size:12px}
.channel-tree{padding:0 10px 24px}
.channel-row{width:100%;min-height:37px;border:0;color:#dfe3ea;background:none;display:flex;align-items:center;gap:9px;border-radius:8px;cursor:pointer;text-align:left;padding-left:calc(12px + var(--depth)*22px)}
.channel-row:hover{background:#222937}
.chevron{width:10px;color:#727c8c;font-size:18px}
.channel-icon{color:#8792a4;font-size:11px;transform:rotate(90deg)}
.channel-name{font-size:14px}
.lock{color:#dcb86a;font-size:12px}
.player-row{min-height:34px;display:flex;align-items:center;gap:10px;color:#bfc6d1;padding-left:calc(50px + var(--depth)*22px)}
.presence{width:9px;height:9px;border-radius:50%;background:var(--green);box-shadow:0 0 9px #40d29388}
.presence.away{background:#f5bd58;box-shadow:none}
.player-name{font-size:13px}
.player-flags{margin-left:auto;margin-right:13px;color:#8daaff;display:flex;gap:8px}
.spacer{color:#5f6877;font-size:11px;letter-spacing:.08em;padding:15px 12px 8px calc(12px + var(--depth)*22px);overflow:hidden;white-space:nowrap}
.spacer-group>.spacer{display:block;width:100%}
.empty{padding:60px 20px;text-align:center;color:var(--muted)}
.loading{padding:70px 20px;text-align:center;color:var(--muted)}
.loading[hidden]{display:none}
.loading span{display:inline-block;width:28px;height:28px;border:3px solid #2b3342;border-top-color:#6f94ff;border-radius:50%;animation:spin .8s linear infinite}
.loading p{font-size:13px}
@keyframes spin{to{transform:rotate(360deg)}
}
.info-panel{display:flex;flex-direction:column;gap:16px}
.server-card{overflow:hidden}
.server-art{height:180px;background:radial-gradient(circle at 50% 50%,#21396d,#0c101b 60%);position:relative;display:grid;place-items:center;overflow:hidden}
.orb{width:104px;height:104px;border-radius:50%;border:1px solid #7198ff88;background:radial-gradient(circle at 38% 30%,#7098ff,#293f7d 40%,#0d1427 75%);display:grid;place-items:center;box-shadow:0 0 55px #4f79f077;z-index:2}
.orb span{font-weight:900;font-size:26px;letter-spacing:.08em;text-shadow:0 2px 8px #000}
.signal{position:absolute;border:1px solid #5073c944;border-radius:50%}
.s1{width:160px;height:160px}
.s2{width:230px;height:230px}
.s3{width:310px;height:310px}
.server-title{padding:20px 22px 12px}
.server-title>div{display:flex;align-items:center;gap:9px}
.server-title h2{font-size:19px;margin:0}
.server-title p{color:var(--muted);font-size:13px;margin:5px 0 0 17px}
.status-dot{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 10px var(--green)}
.server-card dl{margin:0;padding:6px 22px}
.server-card dl div{display:flex;justify-content:space-between;padding:12px 0;border-top:1px solid #272d38}
.server-card dt{color:var(--muted);font-size:13px}
.server-card dd{margin:0;font-size:13px;font-weight:650}
.server-card dd a{color:#84a4ff}
.server-card dd span{color:var(--muted);font-weight:400}
.online-text{color:var(--green)}
.offline-text{color:var(--red)}
.join-large{margin:17px 22px 22px;display:flex;justify-content:space-between;padding:14px 17px}
.refresh-card{padding:16px;display:flex;gap:12px;align-items:center}
.refresh-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:#252e42;color:#88a5f7;font-size:20px}
.refresh-card div{flex:1}
.refresh-card strong{font-size:13px}
.refresh-card p{margin:3px 0 0;color:var(--muted);font-size:11px}
.refresh-card button{border:1px solid var(--line);color:#cbd2de;background:#1d232e;border-radius:7px;padding:7px 9px;font-size:11px;cursor:pointer}
.refresh-card button:disabled{opacity:.5}
.privacy{color:#666f7e;text-align:center;font-size:11px;margin:0}
footer{border-top:1px solid var(--line);color:#667080;display:flex;justify-content:space-between;padding:24px 4vw;font-size:12px}
@media(max-width:900px){.dashboard{grid-template-columns:1fr}
.hero-stat{display:none}
.channel-panel{min-height:500px}
.info-panel{display:grid;grid-template-columns:1fr 1fr}
.privacy{grid-column:1/-1}
.refresh-card{align-self:start}
.server-pill{display:none}
}

/* Kompakte Einbettungsseite: nur Viewer, ohne Kopfbereich und Footer. */
html:has(body.embed-page){background:transparent}
.embed-page{background:transparent;min-height:100vh}
.embed-page .dashboard{max-width:none;margin:0;padding:22px;grid-template-columns:minmax(0,1.9fr) minmax(310px,.85fr);align-items:start}
.embed-page .error-notice{max-width:none;margin:22px 22px 0}
.embed-page .channel-panel{min-height:calc(100vh - 44px)}
@media(max-width:900px){.embed-page .dashboard{grid-template-columns:1fr;padding:12px}.embed-page .error-notice{margin:12px 12px 0}.embed-page .channel-panel{min-height:520px}}

/* In der Homepage-Einbettung keine sichtbaren Rahmen oder Trennlinien. */
.embed-page .channel-panel,
.embed-page .server-card,
.embed-page .refresh-card,
.embed-page .search{border:none}
.embed-page .panel-head{border-bottom:none}
.embed-page .server-card dl div{border-top:none}
.embed-page .server-art{display:none}
@media(max-width:620px){.topbar{height:70px;padding:0 16px}
.brand strong{font-size:14px}
.brand small{font-size:10px}
.connect-button{font-size:0;padding:12px}
.connect-button:before{content:"Verbinden";font-size:13px}
.connect-button b{font-size:13px}
.hero{padding:34px 18px 22px}
.hero p{font-size:14px}
.dashboard{padding:0 12px 30px}
.error-notice{margin:0 12px 14px}
.panel-head{align-items:flex-start;gap:12px;flex-direction:column}
.search{width:100%}
.info-panel{display:flex}
.channel-panel{min-height:460px}
footer{padding:20px 16px}
.server-pill{display:none}
}
