/* Lucas' screenshot, 08.11.2026: black space, one quiet pill, scroll-driven examples. */
.beratung-szene{position:relative;width:100%;height:340svh;margin:0;padding:0;background:#000;isolation:isolate;scroll-margin-top:0;color:#eee}
.beratung-buehne{position:sticky;top:0;height:100svh;min-height:500px;background:#000;overflow:clip}
#beratung-inline{position:absolute;top:52%;left:50%;width:min(760px,calc(100% - 48px));transform:translate(-50%,-34px);z-index:3}
.berater{display:flex;flex-direction:column;min-width:0;color:#eee;color-scheme:dark}
.berater [hidden],.berater[hidden],.beratung-launcher[hidden],#beratung-morph[hidden]{display:none!important}
.berater button,.berater textarea,.beratung-idee,.beratung-orbit{font-family:inherit}.berater button,.berater a,.beratung-idee,.beratung-orbit{touch-action:manipulation}.berater button{cursor:pointer}
.berater button:focus-visible,.berater a:focus-visible,.beratung-launcher:focus-visible,.beratung-idee:focus-visible,.beratung-orbit:focus-visible,.beratung-weiter:focus-visible{outline:2px solid #eee;outline-offset:5px}
#beratung-inline .berater-top,#beratung-inline .berater-inhalt{display:none}
.berater-top{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:20px 24px;flex:none}
.berater-name{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:500}.berater-name img{width:28px;height:28px;object-fit:cover}.berater-name>span{font-size:12px;font-weight:400;color:#999}
.berater-controls{display:flex;gap:4px;align-items:center}.berater-controls button{display:grid;place-items:center;min-width:44px;min-height:44px;border:0;background:transparent;color:#bbb;border-radius:50%;padding:8px;font-size:12px}
.berater-form{padding:0;flex:none;position:relative}.berater-eingabe{display:flex;gap:6px;align-items:center;min-height:68px;box-sizing:border-box;border:1px solid #303030;background:#222;border-radius:36px;padding:10px 12px 10px 25px}
.berater-eingabe:focus-within{border-color:#737373;outline:1px solid #737373;outline-offset:2px}
.berater-eingabe textarea{display:block;flex:1;min-width:0;resize:none;max-height:130px;border:0;outline:0;background:none;color:#eee;font-size:18px;line-height:28px;padding:6px 0;margin:0;scrollbar-width:thin}
.berater-eingabe textarea::placeholder{color:#b4b4b4}.berater-eingabe button{display:grid;place-items:center;flex:none;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:50%;color:#111;background:#ececec}
.berater-eingabe #beratung-mikro{color:#d2d2d2;background:transparent}.berater-eingabe #beratung-mikro[aria-pressed=true]{background:#3b2525;color:#ffb4b4}.berater button:disabled{opacity:.4;cursor:wait}
.berater .berater-hinweis{font-size:11px;line-height:1.6;color:#a5a5a5;margin:16px 12px 0;max-width:700px}.berater-hinweis a{color:inherit;text-decoration:underline;text-underline-offset:3px}.berater .berater-meta{font-size:11px;line-height:1.6;color:#9b9b9b;margin:8px 12px 0}
#beratung-inline .berater-hinweis,#beratung-inline .berater-meta{display:none}#beratung-inline .berater.engaged .berater-hinweis,#beratung-inline .berater.engaged .berater-meta{display:block}
.berater-falle{position:absolute;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none}#beratung-fehler{font-size:14px;color:#f0c7ae;line-height:1.6;margin:12px}
.beratung-flug{position:absolute;inset:0;pointer-events:none;z-index:2}.beratung-idee{position:absolute;top:calc(52% - 172px);left:50%;width:min(700px,calc(100vw - 44px));margin-left:calc(min(700px,100vw - 44px) / -2);padding:8px 0;background:none;border:0;color:#eee;font-size:clamp(28px,3.1vw,44px);font-weight:400;letter-spacing:-.035em;line-height:1.22;text-align:center;opacity:0;pointer-events:none;transform-origin:center;cursor:pointer}
.beratung-orbits{position:absolute;top:calc(52% + 60px);left:50%;display:flex;gap:12px;transform:translateX(-50%);z-index:2}
.beratung-orbit{display:flex;align-items:center;justify-content:center;gap:8px;min-width:88px;min-height:44px;padding:0 12px;background:none;color:#bcbcbc;border:0;position:relative;font-size:12px;white-space:nowrap;cursor:pointer;opacity:0}
.beratung-orbit::before{content:"";position:absolute;inset:5px 0;border:1px solid #303030;border-radius:30px;background:#0a0a0a;z-index:-1}.orbit-dot{width:4px;height:4px;border-radius:50%;background:#8d8d8d}
.beratung-weiter{position:absolute;left:calc(50% - 22px);bottom:24px;display:grid;place-items:center;width:44px;height:44px;font-size:23px;color:#727272;text-decoration:none;z-index:2}
.beratung-szene.is-engaged .beratung-flug,.beratung-szene.is-engaged .beratung-orbits{visibility:hidden}
.beratung-launcher{position:fixed;right:24px;bottom:24px;z-index:65;display:grid;place-items:center;width:54px;height:54px;min-height:44px;padding:0;border:1px solid #424242;border-radius:50%;background:#222;color:#ededed;cursor:pointer;font-size:0;box-shadow:0 4px 22px #0003}
.beratung-launcher svg{width:23px;height:23px;flex:none}.beratung-hero{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--muted);font-size:14px;text-decoration:none}
#beratung-morph{position:fixed;inset:0;z-index:66;pointer-events:none;overflow:hidden;contain:strict}#beratung-morph i{position:absolute;left:0;top:0;display:block;background:#222;transform-origin:0 0}#beratung-morph .morph-cap{width:68px;height:68px;border-radius:50%}#beratung-morph .morph-middle{width:1px;height:68px}#beratung-morph .morph-mark{position:absolute;width:24px;height:24px;left:0;top:0;color:#eee}
.beratung-dialog{width:min(900px,calc(100% - 64px));height:min(800px,calc(100dvh - 80px));max-width:none;max-height:none;padding:0;border:1px solid #2c2c2c;border-radius:24px;background:#101010;color:#eee;margin:auto;overflow:hidden}
.beratung-dialog::backdrop{background:rgba(0,0,0,.88)}.beratung-dialog .berater{height:100%;background:#101010}.beratung-dialog .berater-inhalt{min-height:0;flex:1;padding:16px 36px 24px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#555 transparent}
.beratung-dialog .berater-form{padding:0 32px 24px}.beratung-dialog .berater-start{display:grid;place-items:center;height:100%;min-height:150px}.berater-start>p{font-size:clamp(24px,3vw,32px);line-height:1.3;letter-spacing:-.035em;text-align:center;margin:0}
.berater-msg{margin:0 0 24px;overflow-wrap:anywhere;font-size:15px;line-height:1.75;white-space:pre-wrap}.berater-msg>span{display:block;font-size:11px;line-height:1.4;color:#a7a7a7;margin-bottom:7px}.berater-msg p{margin:0}.berater-msg.user{max-width:85%;width:fit-content;margin-left:auto;padding:12px 18px;background:#252525;border-radius:22px}.berater-msg.assistant{padding:0 2px}
#beratung-status{font-size:14px;color:#b3b3b3;margin:12px 0}#beratung-status::before{content:"";display:inline-block;background:#bcbcbc;width:5px;height:5px;border-radius:50%;margin-right:10px}
.berater-uebergabe{display:flex;flex-wrap:wrap;gap:8px 20px;padding-top:8px;border-top:1px solid #333;align-items:center}.berater-uebergabe button,.berater-uebergabe a{border:0;background:none;color:#d4d4d4;padding:10px 0;min-height:44px;display:inline-flex;align-items:center;gap:8px;font-size:13px;line-height:1.5;text-decoration:none;text-align:left}
.berater-vorschau{padding-top:20px}.berater-vorschau label{display:block;font-size:14px;margin-bottom:10px}.berater-vorschau textarea{width:100%;box-sizing:border-box;border:1px solid #666;border-radius:12px;background:#151515;color:#eee;padding:12px;font:inherit;font-size:14px;line-height:1.6;resize:vertical}.berater-vorschau p{font-size:12px;color:#aaa;line-height:1.6}.berater-vorschau button,.berater-sprache button{border:1px solid #666;background:transparent;border-radius:30px;color:#eee;padding:10px 16px;min-height:44px;font-size:13px}
.berater-sprache{position:relative;padding:16px 18px;margin-top:12px;border:1px solid #333;border-radius:16px;background:#161616}.berater-sprache p{font-size:12px;line-height:1.6;color:#bdbdbd;margin:0 0 12px}#beratung-sprache-status:empty{display:none}#beratung-sprache-status{margin:10px 0 0}
body.beratung-offen{overflow:hidden}
@media(hover:hover) and (pointer:fine){.berater button:hover:not(:disabled){filter:brightness(1.16)}.beratung-hero:hover,.beratung-orbit:hover{color:#fff}.beratung-orbit:hover::before{border-color:#686868}.beratung-idee:hover{color:#fff}}
.berater button:active:not(:disabled){transform:scale(.97)}
@media(max-width:800px){.beratung-szene{height:310svh}.beratung-buehne{min-height:480px}#beratung-inline{width:calc(100% - 40px)}.beratung-launcher{right:18px;bottom:18px}.beratung-hero{flex-basis:100%}.berater-eingabe{min-height:60px;padding:7px 8px 7px 20px;border-radius:32px;gap:2px}.berater-eingabe textarea{font-size:16px;line-height:26px}.beratung-idee{top:calc(52% - 150px);font-size:clamp(27px,6.5vw,38px)}.beratung-orbits{gap:6px;top:calc(52% + 52px)}.beratung-orbit{min-width:82px;padding:0 10px;font-size:11px}.beratung-dialog{width:100%;height:100dvh;max-height:100dvh;max-width:100%;border:0;border-radius:0;margin:0}.beratung-dialog .berater{padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);box-sizing:border-box}.berater-top{padding:12px 16px}.berater-name>span{display:none}.beratung-dialog .berater-inhalt{padding:16px 20px}.beratung-dialog .berater-form{padding:0 16px 16px}.beratung-dialog .berater-hinweis{font-size:10px;margin:12px 4px 0}.beratung-dialog .berater-meta{font-size:10px;margin:6px 4px 0}.berater-controls button{font-size:11px}}
.beratung-szene.is-static{height:100svh;min-height:580px}.is-static .beratung-buehne{position:relative;height:100%;min-height:580px}.is-static .beratung-flug{display:none}.is-static .beratung-orbit{opacity:1}.is-static #beratung-inline{opacity:1!important}
@media(prefers-reduced-motion:no-preference){.berater button{transition:transform 140ms cubic-bezier(.23,1,.32,1)}.beratung-dialog[open]{animation:beratung-enter 180ms cubic-bezier(.23,1,.32,1)}@keyframes beratung-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}}

/* One identity from arrival to dock to composer. */
.berater-eingabe{padding-left:14px;gap:10px}.berater-avatar{display:block;width:34px;height:34px;flex:none;border-radius:50%;object-fit:cover}
.beratung-launcher img{display:block;width:38px;height:38px;border-radius:50%;object-fit:cover}
#beratung-morph .morph-mark{width:34px;height:34px;border-radius:50%;object-fit:cover}
.cipher-introducing .beratung-launcher{visibility:hidden}
#cipher-welcome-veil{position:fixed;inset:0;z-index:200;background:#08090a;pointer-events:none}
#cipher-welcome{position:fixed;left:0;top:0;width:148px;height:148px;border:1px solid #3c3c3c;border-radius:50%;background:#222;box-sizing:border-box;display:grid;place-items:center;z-index:201;pointer-events:none;transform-origin:0 0;will-change:transform,opacity}
#cipher-welcome img{width:104px;height:104px;object-fit:cover;border-radius:50%}
@media(max-width:800px){.berater-eingabe{padding-left:10px;gap:6px}.berater-avatar{width:28px;height:28px}}

/* Lucas: an elegant white ring at every size. */
.berater-avatar{box-sizing:border-box;border:1px solid rgba(255,255,255,.85);box-shadow:none}
.beratung-launcher{border-color:rgba(255,255,255,.85)}.beratung-launcher img{border:0;box-sizing:border-box}
#beratung-morph .morph-mark{border:1px solid #ffffffd9;box-sizing:border-box}

/* One visible ring per portrait; a quieter panel and one continuous legal note. */
.berater-name img{border:1px solid #ffffffd9;border-radius:50%;box-sizing:border-box}
.beratung-dialog,.beratung-dialog .berater{background:#08090a}
.beratung-dialog .berater-eingabe{background:#191a1b}
.beratung-dialog .berater-msg.user{background:#1b1c1d}
.berater .berater-meta{display:inline!important;margin:0;color:inherit;font:inherit}
.berater .berater-policy-tail{white-space:nowrap}
.berater .berater-hinweis{max-width:none}
@media(max-width:800px){.berater .berater-policy-tail{white-space:normal}}
/* Organic working indicator: actual pending request only, no simulated progress. */
#beratung-status{display:flex;align-items:center;gap:12px;min-height:32px}
#beratung-status::before{content:none}
.cipher-working{position:relative;display:inline-block;flex:none;width:28px;height:28px}
.cipher-working i{position:absolute;inset:4px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#fff,#aeb5b7 60%,#50585c);opacity:.65;animation:cipher-orbit 2.4s cubic-bezier(.77,0,.175,1) infinite}
.cipher-working i:nth-child(2){animation-delay:-.8s;opacity:.4}
.cipher-working i:nth-child(3){animation-delay:-1.6s;opacity:.3}
@keyframes cipher-orbit{0%,100%{transform:translate(-3px,0) scale(.65)}33%{transform:translate(3px,-3px) scale(.8)}66%{transform:translate(1px,3px) scale(.65)}}
@media(prefers-reduced-motion:reduce){.cipher-working i{animation:none;transform:scale(.75)}.cipher-working i:not(:first-child){display:none}}
.motion-paused .cipher-working i{animation:none;transform:scale(.75)}

/* Black glass with a fine, restrained white edge across dock, scene and dialog. */
.berater-eingabe,.beratung-dialog .berater-eingabe{background:#000;border-color:#ffffffd9;box-shadow:0 0 0 1px #ffffff08,0 0 18px #ffffff0a}
.berater-eingabe:focus-within{border-color:#fff;outline:0;box-shadow:0 0 0 1px #ffffff24,0 0 22px #ffffff12}
.beratung-launcher{background:#000}
#beratung-morph i{background:#000}
.beratung-dialog .berater-start{display:flex;flex-direction:column;justify-content:center;gap:28px;min-height:240px;padding:24px 0;box-sizing:border-box}
.berater-suggestions{display:grid;gap:10px;width:min(100%,480px)}
.berater-suggestions button{min-height:48px;padding:14px 18px;border:1px solid #ffffff2e;border-radius:16px;color:#ccc;background:#0d0e0f;font-size:14px;line-height:1.5;text-align:left}
@media(hover:hover) and (pointer:fine){.berater-suggestions button:hover{border-color:#ffffff80;color:#fff;background:#161718}}
/* Chat-specific information is shown before sending, separate from cookie consent. */
.berater-privacy-note{position:relative;max-width:600px;margin:0 0 14px;padding:14px 48px 14px 16px;background:#101112;border:1px solid #ffffff26;border-radius:16px}
.berater-privacy-note .berater-hinweis,.beratung-dialog .berater-privacy-note .berater-hinweis{margin:0;font-size:12px;line-height:1.55;color:#bdbdbd}
#beratung-privacy-close{position:absolute;top:2px;right:2px;width:44px;height:44px;border:0;border-radius:50%;background:none;color:#ddd;font-size:24px;line-height:1}
.berater .berater-legal-line{margin:8px 12px 0;font-size:11px;line-height:1.6;color:#a5a5a5;white-space:nowrap}
#beratung-datenschutz{display:inline;padding:0;border:0;background:none;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:3px}
#beratung-inline .berater-privacy-note,#beratung-inline .berater-legal-line{display:none}
#beratung-inline .engaged .berater-privacy-note{display:block}
#beratung-inline .engaged .berater-legal-line{display:block}
@media(max-width:800px){.beratung-dialog .berater-start{gap:20px;min-height:300px}.berater-start>p{font-size:26px}.berater-suggestions{gap:8px}.berater-suggestions button{font-size:13px;padding:12px 14px}.berater-privacy-note{margin-bottom:10px;padding:12px 42px 12px 12px}.beratung-dialog .berater-privacy-note .berater-hinweis{font-size:11px}.berater .berater-legal-line{white-space:normal;margin:6px 4px 0;font-size:10px}}

#beratung-datenschutz{display:inline-flex;align-items:center;min-height:44px;vertical-align:baseline}

#beratung-morph i{box-sizing:border-box;border:1px solid #ffffffd9}
#beratung-morph .morph-left{clip-path:inset(0 50% 0 0)}
#beratung-morph .morph-right{clip-path:inset(0 0 0 50%)}
#beratung-morph .morph-middle{border-left:0;border-right:0}

#beratung-datenschutz{margin-right:6px}

#beratung-morph .morph-middle{width:68px;clip-path:inset(0)}
