:root{
 --bg:#091419;--panel:#102127;--panel2:#0d1b20;--line:#294048;--text:#edf4f4;--muted:#91a6ab;--gold:#d3b15f;
 --danger:#b84e4e;--shadow:0 18px 50px rgba(0,0,0,.22)
}
*{box-sizing:border-box} body{margin:0;background:var(--bg);color:var(--text);font:15px/1.5 Arial,sans-serif}
a{color:inherit;text-decoration:none}.topbar{height:64px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 24px;background:#0b181d;position:sticky;top:0;z-index:5}
.brand{color:var(--gold);font-weight:800;letter-spacing:.08em}.subbrand{margin-left:12px;color:#c9d7da}.top-actions{display:flex;gap:18px;align-items:center;color:var(--muted)}.version{font-size:12px;border:1px solid var(--line);padding:4px 8px;border-radius:20px}
.layout{display:grid;grid-template-columns:280px 1fr;min-height:calc(100vh - 64px)}.sidebar{border-right:1px solid var(--line);padding:18px;background:#0b181d}
.side-head,.section-title,.profile-head,.actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.side-head h2,.section-title h2{font-size:15px;margin:0}.small{padding:6px 9px}
.profile-item{display:flex;gap:10px;padding:12px;border-radius:10px;margin-top:8px}.profile-item:hover,.profile-item.active{background:#142a31}.avatar{width:38px;height:38px;border-radius:50%;background:#203b43;display:grid;place-items:center;font-weight:700;color:var(--gold)}.profile-item small{display:block;color:var(--muted);margin-top:2px}
.main{padding:24px;max-width:1400px;width:100%;margin:0 auto}.card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:18px;box-shadow:var(--shadow)}.profile-head{margin-bottom:22px}.profile-head h1{margin:.15rem 0}.eyebrow{font-size:11px;letter-spacing:.12em;color:var(--gold)}
.columns{display:grid;grid-template-columns:1fr 1fr;gap:22px}.section-title{margin:4px 2px 10px}.section-title span{color:var(--muted)}
.post{margin-bottom:14px}.post-meta{font-size:12px;color:var(--muted);margin-bottom:10px}.post-image{display:block;width:100%;max-height:520px;object-fit:cover;border-radius:10px;margin-bottom:12px;background:#061014}.post-text{font-size:16px}
.messenger{padding:0;overflow:hidden}.thread{min-height:360px;max-height:580px;overflow:auto;padding:18px;background:var(--panel2)}.msg{max-width:82%;margin:0 0 12px;padding:11px 13px;border-radius:13px;background:#1a3138}.msg.sales{margin-left:auto;background:#293621}.msg small,.msg time{display:block;font-size:11px;color:var(--muted)}.msg small{margin-bottom:4px}.msg time{text-align:right;margin-top:5px}.reply{border-top:1px solid var(--line);padding:12px}.reply textarea{min-height:80px;margin-bottom:8px}
button,.primary{border:1px solid #496169;background:#172b31;color:var(--text);padding:9px 13px;border-radius:9px;cursor:pointer;font-weight:700}.primary{background:var(--gold);border-color:var(--gold);color:#182024}.danger{border-color:#713d3d;color:#f0b5b5;background:#28191a}
button:hover{filter:brightness(1.08)}.stack{display:grid;gap:13px}label{display:grid;gap:6px;color:#c9d7da}input,textarea,select{width:100%;border:1px solid var(--line);border-radius:9px;background:#08151a;color:var(--text);padding:10px;font:inherit}textarea{resize:vertical}
.empty{color:var(--muted);padding:18px}.center-card{width:min(460px,calc(100% - 32px));margin:12vh auto;background:var(--panel);border:1px solid var(--line);padding:28px;border-radius:16px;box-shadow:var(--shadow)}.alert{padding:10px 12px;border-radius:8px;margin:12px 0}.error{background:#321b1d;color:#ffc7c7}
.modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.66);z-index:20;align-items:center;justify-content:center;padding:18px}.modal.open{display:flex}.modal-box{width:min(560px,100%);background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:22px;position:relative}.modal-x{position:absolute;right:12px;top:10px;border:0;background:transparent;font-size:25px;color:var(--muted)}
@media(max-width:900px){.layout{grid-template-columns:1fr}.sidebar{border-right:0;border-bottom:1px solid var(--line)}.columns{grid-template-columns:1fr}.profile-head{align-items:flex-start;flex-direction:column}.actions{flex-wrap:wrap}}
.post-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.post-actions{display:flex;gap:6px;align-items:center}.post-actions form{margin:0}.checkbox{display:flex;grid-template-columns:auto 1fr;align-items:center;gap:8px}.checkbox input{width:auto}.center-wide{width:min(760px,calc(100% - 32px));margin:8vh auto}.copy-row{display:grid;grid-template-columns:1fr auto;gap:8px}.connection-fields input{font-family:monospace}.top-gap{margin-top:18px}.button-link{display:inline-block;text-align:center}


/* V0.3 · externe Tester */
.muted{color:var(--muted)}.notice{padding:12px 14px;border:1px solid #465e66;background:#0b1a20;border-radius:10px;color:#cbd8da}.tester-shell{width:min(1180px,calc(100% - 32px));margin:28px auto 60px}.tester-columns{display:grid;grid-template-columns:1fr 1fr;gap:22px}.profile-photo{width:96px;height:96px;border-radius:50%;object-fit:cover;border:2px solid var(--line);background:#08151a}.admin-profile-photo{margin:8px 0 12px}.avatar-img{width:38px;height:38px;border-radius:50%;object-fit:cover;background:#203b43}.tester-list{display:grid;gap:10px}.tester-row{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:12px 0;border-top:1px solid var(--line)}.tester-row:first-child{border-top:0}.tester-row small{display:block;color:var(--muted);margin-top:3px}.tester-admin .card h1,.invite-card h1{margin-top:.3rem}@media(max-width:800px){.tester-columns{grid-template-columns:1fr}.tester-row{align-items:flex-start;flex-direction:column}.top-actions{gap:10px;font-size:13px}.topbar{padding:0 14px}}

/* V0.4 · freundlicher, responsiver Testerbereich + Live-Chat */
.tester-public{
 --t-bg:#f4f7f8;--t-card:#ffffff;--t-card-soft:#f8fafb;--t-line:#d8e2e5;--t-text:#18323b;--t-muted:#667e86;--t-navy:#0e2a3b;--t-gold:#c99d36;--t-gold-dark:#a87d1c;--t-green:#2f8f67;
 background:linear-gradient(180deg,#f7fafb 0,#eef3f5 100%);color:var(--t-text);min-height:100vh
}
.tester-public .tester-topbar{height:auto;min-height:66px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--t-line);box-shadow:0 4px 18px rgba(14,42,59,.06);backdrop-filter:blur(10px)}
.tester-public .brand{color:var(--t-navy)}
.tester-public .subbrand{color:var(--t-muted)}
.tester-public .top-actions{color:var(--t-muted)}
.tester-public .top-actions a{color:var(--t-navy);font-weight:700}
.tester-public .tester-shell{width:min(1160px,calc(100% - 32px));margin:26px auto 56px}
.tester-public .card{background:var(--t-card);border-color:var(--t-line);box-shadow:0 10px 30px rgba(14,42,59,.07)}
.tester-public .tester-intro{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,.8fr);gap:24px;align-items:center;background:linear-gradient(135deg,#fff 0,#fffaf0 100%);border-color:#e6d6ae;padding:26px}
.tester-public .tester-intro h1{font-size:clamp(26px,4vw,38px);line-height:1.08;margin:.25rem 0 .65rem;color:var(--t-navy)}
.tester-public .tester-intro p{font-size:16px;color:#405b64;max-width:760px;margin:0}
.tester-public .eyebrow{color:var(--t-gold-dark);font-weight:800}
.tester-public .notice{background:#fff8e9;border-color:#ead9ac;color:#5e522f}
.tester-public .tester-steps{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
.tester-public .tester-steps a{padding:8px 11px;border-radius:999px;background:#eef4f6;border:1px solid #d8e4e7;color:var(--t-navy);font-weight:700;font-size:13px}
.tester-public .section-title h2{font-size:17px;color:var(--t-navy)}
.tester-public .section-title span,.tester-public .muted{color:var(--t-muted)}
.tester-public label{color:#37515a;font-weight:700}
.tester-public .label-note{font-weight:400;color:var(--t-muted);font-size:12px}
.tester-public input,.tester-public textarea,.tester-public select{background:#fff;color:var(--t-text);border-color:#cbd8dc;box-shadow:inset 0 1px 2px rgba(14,42,59,.03)}
.tester-public input:focus,.tester-public textarea:focus,.tester-public select:focus{outline:3px solid rgba(201,157,54,.16);border-color:#c6a253}
.tester-public .primary{background:linear-gradient(180deg,#e0b84f,#c99d36);border-color:#c99d36;color:#182024;box-shadow:0 5px 14px rgba(168,125,28,.16)}
.tester-public .primary:disabled{opacity:.58;cursor:wait}
.tester-public .tester-form-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}
.tester-public .tester-upload-row{display:flex;gap:16px;align-items:end;justify-content:space-between}
.tester-public .profile-photo{border-color:#d8e2e5;box-shadow:0 5px 18px rgba(14,42,59,.1)}
.tester-public .tester-columns{grid-template-columns:minmax(0,.9fr) minmax(400px,1.1fr);align-items:start}
.tester-public .post-text{color:var(--t-text)}
.tester-public .post-meta{color:var(--t-muted)}
.tester-public .tester-messenger{overflow:hidden;border-color:#cfdce0}
.tester-public .chat-head{display:flex;align-items:center;justify-content:space-between;padding:13px 16px;background:#f8fafb;border-bottom:1px solid var(--t-line);color:var(--t-navy)}
.tester-public .chat-head small{display:block;color:var(--t-muted);font-weight:400;margin-top:2px}
.tester-public .thread{min-height:430px;max-height:610px;background:#f6f9fa;padding:16px;scroll-behavior:smooth}
.tester-public .msg{background:#e8f0f3;color:var(--t-text);box-shadow:0 2px 7px rgba(14,42,59,.04)}
.tester-public .msg.sales{background:#fff3cf;border:1px solid #ead9a0;color:#3e3828}
.tester-public .msg small,.tester-public .msg time{color:#71848a}
.tester-public .msg.new-message{animation:newMsgPulse 1.5s ease}
@keyframes newMsgPulse{0%{transform:translateY(5px);box-shadow:0 0 0 0 rgba(201,157,54,.35)}45%{box-shadow:0 0 0 7px rgba(201,157,54,.08)}100%{transform:none;box-shadow:0 2px 7px rgba(14,42,59,.04)}}
.tester-public .reply{background:#fff;border-top-color:var(--t-line);padding:12px 14px 14px}
.tester-public .reply textarea{min-height:78px;background:#fff}
.tester-public .reply-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px}
.tester-public .reply-status{font-size:12px;color:var(--t-muted);min-height:18px}
.tester-public .empty{color:var(--t-muted);text-align:center;padding:44px 18px}
.tester-public .live-status,.tester-public .chat-live{display:inline-flex;align-items:center;gap:7px;border:1px solid #b8dfcf;background:#edf9f4;color:#277453;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:800}
.tester-public .live-status.offline{border-color:#ecdba9;background:#fff8e9;color:#8a6d1c}
.tester-public .live-dot{width:8px;height:8px;border-radius:50%;background:#31a372;box-shadow:0 0 0 3px rgba(49,163,114,.12)}
.tester-public .offline .live-dot{background:#d2a329;box-shadow:0 0 0 3px rgba(210,163,41,.12)}
.tester-public.tester-auth .center-card{background:#fff;color:var(--t-text);border-color:var(--t-line);box-shadow:0 18px 48px rgba(14,42,59,.1)}
.tester-public.tester-auth .center-card h1{color:var(--t-navy)}
.tester-public.tester-auth .center-card p{color:#506a72}
.tester-public.tester-auth .center-card a{color:var(--t-navy);font-weight:700}

@media(max-width:900px){
 .tester-public .tester-intro{grid-template-columns:1fr}
 .tester-public .tester-form-grid{grid-template-columns:1fr 1fr}
 .tester-public .tester-columns{grid-template-columns:1fr}
 .tester-public .tester-chat-column{order:-1}
 .tester-public .thread{min-height:380px;max-height:62vh}
}
@media(max-width:620px){
 .tester-public .tester-topbar{padding:10px 14px;align-items:flex-start;gap:10px}
 .tester-public .tester-brand-wrap{display:grid;gap:1px}
 .tester-public .subbrand{margin-left:0;font-size:12px}
 .tester-public .top-actions{gap:8px;flex-wrap:wrap;justify-content:flex-end}
 .tester-public .tester-name{display:none}
 .tester-public .tester-shell{width:min(100% - 20px,1160px);margin:14px auto 34px}
 .tester-public .card{border-radius:13px;padding:14px}
 .tester-public .tester-intro{padding:18px}
 .tester-public .tester-intro h1{font-size:28px}
 .tester-public .tester-form-grid{grid-template-columns:1fr}
 .tester-public .tester-upload-row{align-items:flex-start;flex-direction:column}
 .tester-public .tester-columns{gap:14px}
 .tester-public .thread{min-height:330px;max-height:58vh;padding:12px}
 .tester-public .msg{max-width:92%;font-size:15px}
 .tester-public .reply{padding:10px}
 .tester-public .reply textarea{min-height:72px}
 .tester-public .reply-actions{align-items:stretch;flex-direction:column}
 .tester-public .reply-actions .primary{width:100%;min-height:46px}
 .tester-public .tester-steps a{flex:1;text-align:center;min-width:94px}
}
.tester-public .msg-text a{color:#8a6411;text-decoration:underline;font-weight:800;overflow-wrap:anywhere}.tester-public .msg.customer .msg-text a{color:#1c667f}


/* V0.5 · heller, freundlicher Admin-Bereich */
body.admin-light{
 --bg:#f3f6f8;--panel:#ffffff;--panel2:#f7fafb;--line:#d6e0e4;--text:#17323b;--muted:#667e86;--gold:#c89a2c;
 --danger:#b84e4e;--shadow:0 10px 28px rgba(18,49,60,.08);
 background:linear-gradient(180deg,#f7f9fa 0,#eef3f5 100%);color:var(--text);min-height:100vh
}
.admin-light .topbar{background:rgba(255,255,255,.97);border-bottom-color:var(--line);box-shadow:0 4px 18px rgba(18,49,60,.06);backdrop-filter:blur(10px)}
.admin-light .brand{color:#b88616}.admin-light .subbrand{color:#526a72}.admin-light .top-actions{color:#607983}.admin-light .top-actions a{color:#173b4a;font-weight:700}
.admin-light .version{background:#f6f9fa;border-color:#d4dfe3;color:#4f6871}
.admin-light .layout{background:transparent}.admin-light .sidebar{background:#ffffff;border-right-color:var(--line);box-shadow:4px 0 18px rgba(18,49,60,.035)}
.admin-light .profile-item{color:#24424c}.admin-light .profile-item:hover{background:#f2f6f7}.admin-light .profile-item.active{background:#fff5d9;box-shadow:inset 3px 0 0 #c89a2c}
.admin-light .avatar{background:#edf3f5;color:#9a7114}.admin-light .profile-item small{color:var(--muted)}
.admin-light .main{color:var(--text)}.admin-light .card{background:#fff;border-color:var(--line);box-shadow:var(--shadow)}
.admin-light .eyebrow{color:#a6750e;font-weight:800}.admin-light h1,.admin-light h2,.admin-light h3{color:#143340}.admin-light .section-title span,.admin-light .muted{color:var(--muted)}
.admin-light label{color:#35515b}.admin-light input,.admin-light textarea,.admin-light select{background:#fff;color:#17323b;border-color:#cbd7db;box-shadow:inset 0 1px 2px rgba(18,49,60,.025)}
.admin-light input:focus,.admin-light textarea:focus,.admin-light select:focus{outline:3px solid rgba(200,154,44,.14);border-color:#c7a44d}
.admin-light button,.admin-light .button-link{background:#f8fafb;color:#23434e;border-color:#c8d5da}.admin-light button:hover,.admin-light .button-link:hover{background:#eef4f6}
.admin-light .primary{background:linear-gradient(180deg,#e3ba52,#c99b2d);border-color:#c99b2d;color:#1d2a2f;box-shadow:0 5px 14px rgba(169,126,28,.14)}
.admin-light .primary:hover{filter:brightness(1.03)}.admin-light .danger{background:#fff5f5;border-color:#e5baba;color:#a23e3e}
.admin-light .thread{background:#f6f9fa}.admin-light .msg{background:#e7eff2;color:#18323b}.admin-light .msg.sales{background:#fff2cb;border:1px solid #ead89c;color:#3e3828}
.admin-light .msg small,.admin-light .msg time{color:#71848a}.admin-light .reply{background:#fff;border-top-color:var(--line)}
.admin-light .post-meta{color:var(--muted)}.admin-light .post-image{background:#edf2f4}.admin-light .empty{color:var(--muted)}
.admin-light .modal{background:rgba(27,47,56,.36);backdrop-filter:blur(3px)}.admin-light .modal-box{background:#fff;border-color:var(--line);box-shadow:0 18px 54px rgba(18,49,60,.18)}.admin-light .modal-x{color:#667e86}
.admin-light .center-card,.admin-light .center-wide .card{background:#fff;color:var(--text);border-color:var(--line);box-shadow:var(--shadow)}
.admin-light .notice{background:#fff8e9;border-color:#ead9ac;color:#5e522f}.admin-light .alert:not(.error){background:#eef8f3;color:#2d6f53;border:1px solid #c4e4d5}.admin-light .error{background:#fff1f1;color:#9d3f3f;border:1px solid #edc0c0}
.admin-light .tester-row{border-top-color:#e0e7ea}.admin-light .copy-row button{background:#f5f8f9}
@media(max-width:900px){.admin-light .sidebar{box-shadow:none;border-bottom:1px solid var(--line)}}

.tester-public .reply textarea:disabled{background:#f2f5f6;color:#82949a;cursor:not-allowed}.tester-public .reply .primary:disabled{opacity:.5;cursor:not-allowed}

.side-head-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.side-head-actions form{margin:0}.side-head-actions .danger{white-space:nowrap}

/* Login: Passwort sichtbar/unsichtbar */
.password-field{position:relative;display:block}.password-field input{padding-right:48px}.password-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:38px;height:38px;border:0;border-radius:8px;background:transparent;color:#40566b;cursor:pointer;font-size:18px;display:grid;place-items:center}.password-toggle:hover,.password-toggle:focus{background:#eef5fb;outline:none}.password-toggle:focus-visible{box-shadow:0 0 0 3px rgba(23,105,170,.14)}

.tester-public .alert.success{background:#eef8f3;color:#2d6f53;border:1px solid #c4e4d5}
