/* easy2 Prototyp v2 · Oberfläche (Chat, Seitenleiste, Eingabe) */
:root{
  --bg:#F7F5F0; --bg-2:#EFECE5; --surface:#FFFFFF; --surface-2:#F4F1EA; --surface-3:#EAE6DC;
  --line:#E7E2D7; --line-2:#D8D1C3;
  --ink:#17181B; --ink-2:#26282D; --ink-3:#3A3D44; --text-2:#5C5B56; --text-3:#8E8B83;
  --yellow:#FFD23F; --yellow-strong:#F5BE00; --yellow-ink:#5F4600; --yellow-soft:#FFF3C4; --yellow-wash:#FFFAE8;
  --green:#2E8456; --green-soft:#E2F2E8; --red:#B8382B; --red-soft:#FBE9E6;
  --r-xs:8px; --r-sm:12px; --r:16px; --r-lg:22px; --r-xl:28px;
  --sh-1:0 1px 2px rgba(23,24,27,.05),0 1px 1px rgba(23,24,27,.03);
  --sh-2:0 1px 2px rgba(23,24,27,.04),0 8px 24px -6px rgba(23,24,27,.10);
  --sh-3:0 2px 6px rgba(23,24,27,.05),0 24px 60px -16px rgba(23,24,27,.22);
  --ui:"Plus Jakarta Sans",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --ease:cubic-bezier(.2,.7,.2,1);
  --side-w:268px; --chat-w:408px;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{background:var(--bg);color:var(--ink);font:15px/1.55 var(--ui);-webkit-font-smoothing:antialiased;overflow:hidden}
button{font:inherit;color:inherit;cursor:pointer;background:none;border:0;padding:0}
input,textarea,select{font:inherit;color:inherit}
[hidden]{display:none!important}
svg{display:block;flex:none}
::selection{background:var(--yellow-soft)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* Wortmarke */
.mark{display:inline-flex;align-items:baseline;font-weight:800;letter-spacing:-.045em;font-size:21px;line-height:1;color:var(--ink);user-select:none}
.mark b{color:var(--yellow-strong);font-weight:800;-webkit-text-stroke:.6px rgba(23,24,27,.18)}
img.mark{display:block;height:22px;width:auto}
.chat-head .ttl img.mark{height:18px}
.mark-sq{width:34px;height:34px;border-radius:11px;background:var(--yellow);display:grid;place-items:center;font-weight:800;font-size:18px;letter-spacing:-.04em;color:var(--ink);box-shadow:inset 0 -2px 0 rgba(0,0,0,.08)}

/* Knöpfe */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 16px;border-radius:var(--r-sm);font-weight:600;font-size:14px;letter-spacing:-.005em;border:1px solid var(--line);background:var(--surface);transition:background .15s,border-color .15s,box-shadow .15s,transform .1s;white-space:nowrap}
.btn:hover{border-color:var(--line-2);background:#FCFBF8}
.btn:active{transform:translateY(1px)}
.btn.y{background:var(--yellow);border-color:var(--yellow);color:var(--ink);box-shadow:inset 0 -2px 0 rgba(0,0,0,.07),0 6px 16px -8px rgba(245,190,0,.9)}
.btn.y:hover{background:#FFCB1F;border-color:#FFCB1F}
.btn.k{background:var(--ink-2);border-color:var(--ink-2);color:#fff}
.btn.k:hover{background:var(--ink-3)}
.btn.ghost{border-color:transparent;background:transparent}
.btn.ghost:hover{background:var(--surface-3)}
.btn.sm{height:32px;padding:0 12px;font-size:13px;border-radius:10px}
.btn.lg{height:48px;padding:0 22px;font-size:15px;border-radius:14px}
.btn:disabled{opacity:.45;cursor:default;box-shadow:none}
.ibtn{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;color:var(--ink-3);transition:background .15s,color .15s}
.ibtn:hover{background:var(--surface-3);color:var(--ink)}
.ibtn:disabled{opacity:.35;cursor:default;background:none}
.ibtn.on{background:var(--surface-3);color:var(--ink)}
.link{color:var(--ink);font-weight:600;text-decoration:underline;text-decoration-color:var(--yellow-strong);text-decoration-thickness:2px;text-underline-offset:3px}

/* Chips */
.chip{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:var(--surface);font-size:14px;font-weight:500;color:var(--ink-2);transition:all .15s var(--ease);box-shadow:var(--sh-1)}
.chip:hover{border-color:var(--line-2);background:#FFFDF6;transform:translateY(-1px)}
.chip .ci{color:var(--text-3)}
.chip.on{background:var(--ink-2);border-color:var(--ink-2);color:#fff}
.chip.on .ci{color:var(--yellow)}
.chip .sw{width:14px;height:14px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
.chip .sw2{display:inline-flex}.chip .sw2 i{width:12px;height:12px;border-radius:50%;margin-left:-4px;box-shadow:0 0 0 2px #fff}.chip .sw2 i:first-child{margin-left:0}

/* App-Rahmen */
.app{display:grid;grid-template-rows:minmax(0,1fr);grid-template-columns:var(--side-w) 1fr;height:100vh;height:100dvh;transition:grid-template-columns .35s var(--ease)}
.app.side-off{grid-template-columns:68px 1fr}
.app.mode-work{grid-template-columns:0 1fr}
.main{position:relative;min-width:0;min-height:0;height:100%;overflow:hidden;display:flex;flex-direction:column}

/* Seitenleiste mit Verlauf */
.side{position:relative;overflow:hidden;background:var(--bg-2);border-right:1px solid var(--line);display:flex;flex-direction:column;min-width:0}
.side-in{width:var(--side-w);height:100%;display:flex;flex-direction:column;padding:16px 14px 14px}
.side-top{display:flex;align-items:center;justify-content:space-between;padding:4px 4px 18px 8px}
.side .new{width:100%;height:44px;border-radius:14px;justify-content:flex-start;padding:0 14px;font-size:14px}
.side .new kbd{margin-left:auto;font:600 11px var(--ui);color:#9a9ca3;background:rgba(255,255,255,.08);border-radius:6px;padding:2px 6px}
.side-h{font-size:12px;font-weight:600;color:var(--text-3);padding:22px 10px 8px}
.proj{display:flex;align-items:center;gap:11px;width:100%;padding:8px 10px;border-radius:12px;text-align:left;transition:background .15s}
.proj:hover{background:rgba(255,255,255,.6)}
.proj.on{background:var(--surface);box-shadow:var(--sh-1)}
.proj .th{width:38px;height:28px;border-radius:7px;flex:none;position:relative;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(0,0,0,.06)}
.proj .th img{width:100%;height:100%;object-fit:cover;object-position:top left}
.proj .nm{display:block;font-size:14px;font-weight:600;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.proj .mt{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--text-3);line-height:1.3}
.proj .dot{width:6px;height:6px;border-radius:50%;background:var(--text-3)}
.proj .dot.live{background:var(--green)}
.proj .dot.work{background:var(--yellow-strong);box-shadow:0 0 0 3px rgba(245,190,0,.18)}
.side-foot{margin-top:auto;display:flex;flex-direction:column;gap:6px}
.side-link{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;font-size:14px;color:var(--text-2)}
.side-link:hover{background:rgba(255,255,255,.6);color:var(--ink)}
.acct{display:flex;align-items:center;gap:10px;padding:10px;border-radius:14px;background:var(--surface);box-shadow:var(--sh-1)}
.av{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#3A3D44,#17181B);color:#fff;display:grid;place-items:center;font-weight:700;font-size:13px;flex:none}
.acct b{display:block;font-size:13.5px;line-height:1.2}
.acct span{font-size:12px;color:var(--text-3)}
.side-scrim{display:none}

/* Eingeklappt: schmale Leiste mit Symbolen, damit der Fokus beim Gespräch liegt */
.rail{display:none;width:68px;height:100%;flex-direction:column;align-items:center;gap:6px;padding:16px 0 14px}
.app.side-off .rail{display:flex}
.app.side-off .side-in{display:none}
.r-btn{position:relative;width:42px;height:42px;border-radius:13px;display:grid;place-items:center;color:var(--text-2);transition:background .15s,color .15s,transform .15s}
.r-btn:hover{background:rgba(255,255,255,.75);color:var(--ink)}
.r-btn.r-new{background:var(--ink);color:#fff;margin:10px 0 6px;box-shadow:0 8px 18px -10px rgba(23,24,27,.8)}
.r-btn.r-new:hover{background:var(--ink-2);transform:translateY(-1px)}
.r-btn.r-logo{padding:0;width:40px;height:40px}
.r-btn.r-logo .mark-sq{width:36px;height:36px;font-size:19px}
.r-btn[data-tip]:hover::after{content:attr(data-tip);position:absolute;left:52px;top:50%;transform:translateY(-50%);white-space:nowrap;background:var(--ink);color:#fff;font:600 12.5px var(--ui);padding:6px 10px;border-radius:9px;z-index:60;pointer-events:none;box-shadow:var(--sh-2)}
.rail .r-grow{flex:1}
.rail .av{width:36px;height:36px;font-size:12.5px;cursor:pointer}

/* Chat-Spalte */
.stage{flex:1;min-height:0;display:grid;grid-template-rows:minmax(0,1fr);grid-template-columns:1fr 0;transition:grid-template-columns .5s var(--ease)}
.chatcol{position:relative;min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--bg)}
.chat-head{height:60px;flex:none;display:flex;align-items:center;gap:8px;padding:0 16px 0 14px}
.chat-head .ttl{font-weight:600;font-size:14.5px;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-head .grow{flex:1}
.qdots{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--text-3);font-weight:500}
.qdots i{width:18px;height:4px;border-radius:4px;background:var(--line-2);transition:background .3s}
.qdots i.on{background:var(--ink-2)}
.chat-head .only-m{display:none}
.scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;scroll-behavior:smooth;scrollbar-width:thin;scrollbar-color:var(--line-2) transparent}
.thread{max-width:760px;margin:0 auto;padding:12px 24px 28px;display:flex;flex-direction:column;gap:22px}

/* Leerer Start */
.hello{position:relative;isolation:isolate;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:safe center;padding:40px 32px 5vh;text-align:center;overflow-y:auto;scrollbar-width:none;transition:opacity .35s,transform .35s var(--ease)}
/* Warmes Licht hinter Kugel und Frage, darunter ein feines Raster, das zu den Rändern ausläuft */
.hello::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(ellipse 52% 38% at 50% 14%,rgba(255,210,63,.20),rgba(255,210,63,0) 70%),radial-gradient(ellipse 40% 30% at 50% 62%,rgba(255,255,255,.75),rgba(255,255,255,0) 70%)}
.hello::after{content:"";position:absolute;inset:0;z-index:-2;pointer-events:none;background-image:radial-gradient(rgba(23,24,27,.075) 1px,transparent 1.2px);background-size:22px 22px;
  -webkit-mask-image:radial-gradient(ellipse 60% 55% at 50% 40%,#000 0,transparent 75%);mask-image:radial-gradient(ellipse 60% 55% at 50% 40%,#000 0,transparent 75%)}
.hello .orb{width:68px;height:68px;margin-bottom:22px;animation:float 6s ease-in-out infinite}
.hello .orb::before{content:"";position:absolute;left:14%;right:14%;bottom:-26%;height:14%;border-radius:50%;background:radial-gradient(ellipse,rgba(160,110,0,.28),rgba(160,110,0,0) 70%);animation:shadow 6s ease-in-out infinite}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes shadow{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(.82);opacity:.7}}
.greet{font-size:clamp(19px,1.7vw,23px);font-weight:600;letter-spacing:-.02em;margin:0 0 6px;background:linear-gradient(90deg,#B98A00,#8E8B83 70%);-webkit-background-clip:text;background-clip:text;color:transparent}
.eyebrow{font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--text-3);margin-bottom:14px}
.hello h1{font-size:clamp(34px,4.4vw,62px);line-height:1.04;letter-spacing:-.045em;font-weight:800;margin:0;max-width:22ch;text-wrap:balance}
.hello h1 em{font-style:normal;position:relative;white-space:nowrap;z-index:0}
.hello h1 em::after{content:"";position:absolute;left:-.06em;right:-.08em;bottom:.04em;height:.36em;background:var(--yellow);border-radius:.12em;z-index:-1;transform:skewX(-8deg) rotate(-1deg)}
.hello .sub{font-size:17px;color:var(--text-2);margin:16px 0 30px;max-width:52ch;text-wrap:balance}
.hello .wrapc{width:min(780px,100%)}
/* Beispiele: echte Seiten, die easy2 gebaut hat */
.ex-head{width:min(880px,100%);display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:34px 0 12px;padding:0 4px;font-size:13px;color:var(--text-3)}
.ex-head b{font-weight:600;color:var(--text-2)}
.starters{width:min(880px,100%);display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.scard{display:flex;flex-direction:column;text-align:left;background:rgba(255,255,255,.72);border:1px solid var(--line);border-radius:18px;padding:6px 6px 12px;transition:transform .25s var(--ease),box-shadow .25s,border-color .25s,background .25s;backdrop-filter:blur(6px)}
.scard:hover{transform:translateY(-3px);background:#fff;border-color:#EBD27C;box-shadow:0 18px 40px -22px rgba(23,24,27,.35),0 0 0 4px rgba(255,210,63,.14)}
.scard .thumb{position:relative;display:block;aspect-ratio:16/10;border-radius:13px;overflow:hidden;background:var(--surface-2);box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}
.scard .thumb img{width:100%;height:100%;object-fit:cover;object-position:top left;transition:transform .6s var(--ease)}
.scard:hover .thumb img{transform:scale(1.04)}
.scard .made{position:absolute;left:8px;bottom:8px;display:inline-flex;align-items:center;gap:5px;font-size:10.5px;font-weight:700;letter-spacing:.01em;color:var(--ink);background:rgba(255,255,255,.92);border-radius:999px;padding:3px 8px 3px 6px;box-shadow:0 2px 8px -2px rgba(0,0,0,.18)}
.scard .made i{width:8px;height:8px;border-radius:50%;background:var(--yellow-strong)}
.scard .st{display:block;padding:10px 8px 0}
.scard .st b{display:block;font-size:14px;font-weight:700;letter-spacing:-.01em;color:var(--ink)}
.scard .st span{display:block;font-size:12.5px;line-height:1.35;color:var(--text-3);margin-top:2px}
.scard .thumb.url{display:grid;place-items:center;background:radial-gradient(circle at 70% 20%,rgba(255,210,63,.35),rgba(255,210,63,0) 55%),var(--yellow-wash)}
.scard .urlbar{display:flex;align-items:center;gap:6px;width:78%;height:30px;padding:0 10px;border-radius:9px;background:#fff;font-size:11.5px;font-weight:600;color:var(--text-2);box-shadow:0 6px 16px -10px rgba(23,24,27,.5)}
.scard .urlbar svg{color:var(--text-3);flex:none}
.scard .urlgo{position:absolute;right:12px;bottom:10px;width:30px;height:30px;border-radius:50%;background:var(--yellow);display:grid;place-items:center;color:var(--ink);box-shadow:0 6px 14px -8px rgba(245,190,0,.9)}
.foot-note{font-size:12.5px;color:var(--text-3);margin-top:22px}
.chatcol.is-empty .scroll,.chatcol.is-empty .dock{display:none}
.chatcol:not(.is-empty) .hello{display:none}

/* Orb: die KI als warme Glaskugel */
.orb{position:relative;border-radius:50%;flex:none;background:
  radial-gradient(circle at 34% 28%,rgba(255,255,255,.95) 0 8%,rgba(255,255,255,0) 22%),
  radial-gradient(circle at 70% 78%,rgba(255,170,0,.55),rgba(255,170,0,0) 46%),
  radial-gradient(circle at 50% 50%,#FFE27A 0,#FFD23F 46%,#F2B400 78%,#D99A00 100%);
  box-shadow:inset 0 -6px 14px rgba(170,110,0,.28),inset 0 4px 10px rgba(255,255,255,.55),0 10px 30px -8px rgba(245,180,0,.65)}
.orb::after{content:"";position:absolute;inset:-14%;border-radius:50%;background:radial-gradient(circle,rgba(255,210,63,.35),rgba(255,210,63,0) 65%);z-index:-1}
.orb.breathe{animation:breathe 4.8s ease-in-out infinite}
.orb.think{animation:breathe 1.8s ease-in-out infinite}
@keyframes breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.045)}}
.orb.s{width:28px;height:28px;box-shadow:inset 0 -3px 6px rgba(170,110,0,.25),inset 0 2px 4px rgba(255,255,255,.6),0 4px 10px -4px rgba(245,180,0,.6)}
.orb.s::after{display:none}

/* Eingabefeld */
.composer{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-xl);box-shadow:0 1px 0 rgba(255,255,255,.9) inset,var(--sh-2);transition:border-color .2s,box-shadow .2s;text-align:left}
.composer:focus-within{border-color:#EBD27C;box-shadow:0 0 0 4px rgba(255,210,63,.22),var(--sh-2)}
.composer.start{border-radius:28px;border-color:rgba(23,24,27,.07);box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 24px 60px -28px rgba(120,90,0,.35),0 2px 6px -2px rgba(23,24,27,.06)}
/* Leuchtender Rand in Gelbtönen, langsam wandernd */
.composer.start:before{content:"";position:absolute;inset:-7px;border-radius:35px;z-index:-1;background:conic-gradient(from var(--ang,0deg),rgba(255,210,63,.55),rgba(255,236,170,.15),rgba(245,190,0,.45),rgba(255,248,220,.1),rgba(255,210,63,.55));filter:blur(10px);opacity:.85;animation:glow 9s linear infinite}
@property --ang{syntax:"<angle>";inherits:false;initial-value:0deg}
@keyframes glow{to{--ang:360deg}}
.composer.start:focus-within{border-color:#EBD27C;box-shadow:0 0 0 4px rgba(255,210,63,.18),0 24px 60px -28px rgba(120,90,0,.4)}
.composer.start .comp-row{padding:8px 12px 12px 14px;gap:6px}
.composer .lbl{display:none}
.composer.start [data-att],.composer.start [data-mic]{width:auto;display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 13px 0 11px;border:1px solid var(--line);border-radius:999px;font-size:13px;font-weight:600;color:var(--text-2);background:rgba(255,255,255,.8)}
.composer.start [data-att]:hover,.composer.start [data-mic]:hover{border-color:var(--line-2);color:var(--ink);background:#fff}
.composer.start .lbl{display:inline}
.composer.start .send{width:44px;height:44px}
.composer textarea{display:block;width:100%;border:0;outline:0;resize:none;background:none;padding:18px 20px 6px;font-size:16px;line-height:1.5;max-height:200px;min-height:58px}
.composer.start textarea{min-height:92px;padding:22px 24px 6px;font-size:17px}
.composer textarea::placeholder{color:#A19E96}
.comp-row{display:flex;align-items:center;gap:4px;padding:8px 10px 10px 12px}
.comp-row .grow{flex:1}
.comp-hint{font-size:12px;color:var(--text-3);margin-right:8px;white-space:nowrap}
.send{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--surface-3);color:var(--text-3);transition:all .2s var(--ease)}
.send.ready{background:var(--yellow);color:var(--ink);box-shadow:inset 0 -2px 0 rgba(0,0,0,.08),0 6px 16px -6px rgba(245,190,0,.9)}
.send.ready:hover{transform:scale(1.05)}
.att{display:flex;flex-wrap:wrap;gap:6px;padding:12px 14px 0}
.att:empty{display:none}
.att .a{display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 6px 0 6px;border-radius:10px;background:var(--surface-2);font-size:13px;font-weight:500;border:1px solid var(--line)}
.att .a .tn{width:24px;height:24px;border-radius:6px;background:var(--surface-3) center/cover;display:grid;place-items:center;color:var(--text-2)}
.att .a button{width:22px;height:22px;border-radius:6px;display:grid;place-items:center;color:var(--text-3)}
.att .a button:hover{background:var(--surface-3);color:var(--ink)}
.ctx{display:flex;align-items:center;gap:8px;padding:12px 14px 0;font-size:12.5px;color:var(--text-2)}
.ctx .tag{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 6px 0 10px;border-radius:8px;background:var(--yellow-soft);color:var(--yellow-ink);font-weight:600}
.ctx .tag button{width:20px;height:20px;border-radius:5px;display:grid;place-items:center}
.ctx .tag button:hover{background:rgba(0,0,0,.06)}
.recrow{display:flex;align-items:center;gap:10px;padding:16px 20px 4px;font-size:15px;color:var(--ink-2)}
.wave{display:flex;align-items:center;gap:3px;height:22px}
.wave i{width:3px;border-radius:3px;background:var(--yellow-strong);animation:wave 1s ease-in-out infinite}
.wave i:nth-child(2){animation-delay:.12s}.wave i:nth-child(3){animation-delay:.24s}.wave i:nth-child(4){animation-delay:.36s}.wave i:nth-child(5){animation-delay:.48s}
@keyframes wave{0%,100%{height:5px}50%{height:20px}}
.dock{flex:none;padding:0 24px 18px;position:relative}
.dock-in{max-width:712px;margin:0 auto;position:relative}
.dock .sugg{display:flex;gap:6px;overflow-x:auto;padding:2px 2px 10px;scrollbar-width:none}
.dock .sugg::-webkit-scrollbar{display:none}
.dock .sugg .chip{height:32px;font-size:13px;flex:none;box-shadow:none}
.dock .legal{text-align:center;font-size:11.5px;color:var(--text-3);margin-top:8px}

/* Menü am Büroklammer-Knopf */
.menu-pop{position:absolute;bottom:calc(100% + 8px);left:8px;z-index:30;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--sh-3);padding:6px;width:290px;animation:pop .18s var(--ease)}
.menu-pop button.it{display:flex;align-items:center;gap:12px;width:100%;padding:10px;border-radius:10px;text-align:left}
.menu-pop button.it:hover{background:var(--surface-2)}
.menu-pop .it .ic{width:34px;height:34px;border-radius:10px;background:var(--surface-2);display:grid;place-items:center;color:var(--ink-3)}
.menu-pop .it b{display:block;font-size:14px;font-weight:600;line-height:1.25}
.menu-pop .it small{display:block;font-size:12px;color:var(--text-3);line-height:1.3}
.menu-pop .urlrow{display:flex;gap:6px;padding:6px}
.field{width:100%;height:42px;border:1px solid var(--line-2);border-radius:12px;padding:0 13px;background:var(--surface);outline:none;font-size:14px;transition:border-color .15s,box-shadow .15s}
.field:focus{border-color:#E5C65A;box-shadow:0 0 0 3px rgba(255,210,63,.25)}
textarea.field{height:auto;padding:10px 13px;line-height:1.45;resize:vertical}
@keyframes pop{from{opacity:0;transform:translateY(4px) scale(.98)}to{opacity:1;transform:none}}

/* Nachrichten */
.msg{display:flex;gap:14px;animation:msgIn .45s var(--ease) both}
@keyframes msgIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.msg.ai .body{flex:1;min-width:0;padding-top:2px}
.msg.ai .body > p{margin:0 0 10px;font-size:15.5px;line-height:1.6;color:var(--ink-2)}
.msg.ai .body > p:last-child{margin-bottom:0}
.msg.ai .body > p.q{font-size:17px;font-weight:600;color:var(--ink);letter-spacing:-.01em;line-height:1.45}
.msg.me{justify-content:flex-end}
.msg.me .bub{max-width:min(560px,85%);background:var(--surface-3);border-radius:20px 20px 6px 20px;padding:11px 16px;font-size:15px;line-height:1.5;color:var(--ink)}
.msg.me .bub .ctxt{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:600;color:var(--yellow-ink);background:var(--yellow-soft);border-radius:6px;padding:1px 7px;margin:0 0 6px}
.msg.me .bub .atts{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}
.msg.me .bub .atts span{font-size:12px;background:rgba(255,255,255,.6);border-radius:8px;padding:3px 8px}
.typing{display:flex;gap:5px;align-items:center;height:28px}
.typing i{width:7px;height:7px;border-radius:50%;background:#C8C2B4;animation:typ 1.2s infinite ease-in-out}
.typing i:nth-child(2){animation-delay:.15s}.typing i:nth-child(3){animation-delay:.3s}
@keyframes typ{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-4px);opacity:1}}
.qr{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.qr .chip{height:38px}
.qr-hint{font-size:13px;color:var(--text-3);margin-top:10px}
.qr-go{margin-top:12px;display:flex;gap:8px;align-items:center}
.recap{display:flex;gap:12px;align-items:flex-start;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:12px 14px;margin:2px 0 12px;box-shadow:var(--sh-1)}
.recap .ck{width:22px;height:22px;border-radius:50%;background:var(--yellow);display:grid;place-items:center;flex:none;margin-top:1px}
.recap .rl{font-weight:600;font-size:13px;display:block;color:var(--text-3);margin-bottom:2px}
.recap span{font-size:14.5px;color:var(--ink)}
.quote-card{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:22px 24px 20px 26px;margin:6px 0 4px;box-shadow:var(--sh-1);overflow:hidden}
.quote-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--yellow)}
.quote-card .qt{font-family:"Fraunces",Georgia,serif;font-weight:600;font-size:25px;line-height:1.18;letter-spacing:-.015em}
.quote-card small{display:block;margin-top:10px;font-size:12.5px;color:var(--text-3)}

/* Karte mit Kontaktfeldern im Chat */
.ccard{background:var(--surface);border:1px solid var(--line);border-radius:20px;box-shadow:var(--sh-2);margin-top:14px;overflow:hidden;max-width:560px}
.ccard .rows{display:grid;grid-template-columns:1fr 1fr}
.ccard label{display:block;padding:12px 16px 10px;border-bottom:1px solid var(--line);border-right:1px solid var(--line)}
.ccard label:nth-child(2n){border-right:0}
.ccard label span{display:flex;align-items:center;gap:6px;font-size:11.5px;font-weight:600;color:var(--text-3);letter-spacing:.02em}
.ccard label span em{font-style:normal;font-weight:500;color:var(--green);background:var(--green-soft);border-radius:5px;padding:0 5px;font-size:10.5px}
.ccard input{width:100%;border:0;outline:0;background:none;padding:3px 0 0;font-size:15px;font-weight:500}
.ccard input::placeholder{color:#B7B2A7;font-weight:400}
.ccard label:focus-within{background:var(--yellow-wash)}
.ccard .ft{display:flex;align-items:center;gap:10px;padding:12px 14px 12px 16px;background:var(--surface-2)}
.ccard .ft p{margin:0;flex:1;font-size:12.5px;color:var(--text-2);line-height:1.4}

/* Zusammenfassung */
.sum{background:var(--surface);border:1px solid var(--line);border-radius:24px;box-shadow:var(--sh-2);overflow:hidden;margin-top:6px}
.sum-h{display:flex;align-items:center;gap:12px;padding:20px 22px 0}
.sum-h h3{margin:0;font-size:18px;letter-spacing:-.015em}
.sum-h .pill{margin-left:auto}
.sum > p{margin:10px 22px 16px;font-size:15.5px;line-height:1.6;color:var(--ink-2)}
.sum dl{margin:0 22px;border-top:1px solid var(--line)}
.sum dl div{display:grid;grid-template-columns:170px 1fr auto;gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid var(--line)}
.sum dt{font-size:13px;color:var(--text-3);font-weight:500}
.sum dd{margin:0;font-size:14.5px;font-weight:500}
.sum dd small{display:block;font-size:12.5px;color:var(--text-3);font-weight:400}
.sum dl button{font-size:12.5px;font-weight:600;color:var(--text-3);padding:4px 8px;border-radius:7px;opacity:0;transition:opacity .15s}
.sum dl div:hover button{opacity:1}
.sum dl button:hover{background:var(--surface-2);color:var(--ink)}
.assume{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 22px 0;padding:12px 14px;border-radius:14px;background:var(--yellow-wash);border:1px solid #F4E2A6;font-size:14px}
.assume .grow{flex:1;min-width:200px}
.assume.done{background:var(--surface-2);border-color:var(--line);color:var(--text-2)}
.sum-f{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:18px 22px 20px;margin-top:16px;background:linear-gradient(180deg,rgba(255,250,232,0),var(--yellow-wash))}
.sum-f .meta{font-size:13px;color:var(--text-2);flex:1;min-width:220px}
.pill{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:600;background:var(--surface-2);color:var(--text-2)}
.pill.y{background:var(--yellow-soft);color:var(--yellow-ink)}
.pill.g{background:var(--green-soft);color:var(--green)}
.pill i{width:6px;height:6px;border-radius:50%;background:currentColor}

/* Toast */
.toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);z-index:200;display:flex;align-items:center;gap:14px;background:var(--ink-2);color:#fff;border-radius:14px;padding:11px 12px 11px 16px;font-size:14px;box-shadow:var(--sh-3);animation:toastIn .3s var(--ease);max-width:calc(100vw - 32px)}
.toast button{color:var(--yellow);font-weight:700;padding:4px 8px;border-radius:8px}
.toast button:hover{background:rgba(255,255,255,.08)}
@keyframes toastIn{from{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%,0)}}

/* Demo-Schalter des Prototyps (unauffällig) */
.demo{position:fixed;right:14px;bottom:14px;z-index:300;font-size:12px}
.demo > button{height:30px;padding:0 12px;border-radius:999px;background:rgba(38,40,45,.82);color:#fff;font-weight:600;backdrop-filter:blur(6px);opacity:.55;transition:opacity .2s}
.demo > button:hover{opacity:1}
.demo .dm{position:absolute;right:0;bottom:38px;width:250px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--sh-3);padding:6px}
.demo .dm b{display:block;padding:8px 10px 4px;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--text-3)}
.demo .dm button{display:block;width:100%;text-align:left;padding:7px 10px;border-radius:8px;font-size:13px}
.demo .dm button:hover{background:var(--surface-2)}
.demo .dm p{margin:6px 10px 6px;color:var(--text-3);font-size:11.5px;line-height:1.4}
body.clean .demo{display:none}

/* Mobil */
@media (max-width:760px){
  :root{--side-w:300px}
  .app,.app.side-off,.app.mode-work{grid-template-columns:0 1fr}
  .side{position:fixed;left:0;top:0;bottom:0;z-index:150;width:var(--side-w);transform:translateX(-102%);transition:transform .35s var(--ease);box-shadow:var(--sh-3)}
  .app.side-m .side{transform:none}
  .app.side-m .side-scrim{display:block;position:fixed;inset:0;background:rgba(23,24,27,.32);z-index:140;animation:fade .2s}
  .chat-head{padding:0 10px}
  .chat-head .only-m{display:grid}
  .chat-head .ttl{flex:1;text-align:center}
  .thread{padding:8px 16px 20px;gap:18px}
  .hello{padding:0 16px 4vh;justify-content:flex-start;padding-top:7vh}
  .hello .orb{width:56px;height:56px;margin-bottom:18px}
  .hello h1{font-size:38px}
  .hello .sub{font-size:15.5px;margin:12px 0 22px}
  .app.side-off .side-in{display:flex}
  .app.side-off .rail{display:none}
  .ex-head{margin:26px 0 10px}
  .ex-head span:last-child{display:none}
  .composer.start textarea{min-height:84px;font-size:16px;padding:18px 18px 4px}
  .starters{display:flex;overflow-x:auto;justify-content:flex-start;margin:0 -16px;padding:0 16px 6px;width:auto;align-self:stretch;scrollbar-width:none;scroll-snap-type:x mandatory}
  .starters::-webkit-scrollbar{display:none}
  .starters .scard{flex:none;width:72%;scroll-snap-align:start}
  .dock{padding:0 12px 12px}
  .comp-hint{display:none}
  .msg{gap:10px}
  .msg.ai .body > p.q{font-size:16px}
  .ccard .rows{grid-template-columns:1fr}
  .ccard label{border-right:0}
  .sum dl div{grid-template-columns:1fr auto}
  .sum dt{grid-column:1/-1;margin-bottom:-8px}
  .quote-card .qt{font-size:21px}
}
@keyframes fade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Feinschliff nach der ersten Sichtprüfung */
.acct b{color:var(--ink)}
.starters .chip{height:34px;font-size:13.5px;padding:0 13px;box-shadow:none;background:rgba(255,255,255,.7)}

.ccard input:disabled{color:var(--ink-2);-webkit-text-fill-color:var(--ink-2);opacity:1}
.ccard:has(input:disabled){box-shadow:var(--sh-1);background:#FDFCFA}
.scroll{-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 28px);mask-image:linear-gradient(to bottom,transparent 0,#000 28px)}
.sum.collapsed dl,.sum.collapsed .assume,.sum.collapsed .sum-f{display:none}
.sum.collapsed > p{margin-bottom:18px;color:var(--text-2);font-size:14.5px}
.sum.collapsed .sum-h h3{font-size:16px}
.tobottom{position:absolute;left:50%;top:-46px;transform:translateX(-50%);z-index:5;display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 14px 0 10px;border-radius:999px;background:var(--ink-2);color:#fff;font-size:13px;font-weight:600;box-shadow:var(--sh-2);animation:swap .3s var(--ease)}
.side{grid-column:1;grid-row:1}
.main{grid-column:2;grid-row:1}
@media (max-width:760px){
  .side{box-shadow:none}
  .app.side-m .side{box-shadow:var(--sh-3)}
  .hello .starters{align-self:stretch;margin:16px -16px 0;padding:0 16px 4px}
  .app .chat-head .ttl .mark{display:inline-flex;font-size:19px}
}
.chat-head .ttl .mark{display:none}
@media (max-width:760px){.chat-head .grow{display:none}}
@media (max-width:760px){
  .ccard .ft{flex-wrap:wrap;justify-content:flex-end}
  .ccard .ft p{flex-basis:100%;margin-bottom:2px}
  .composer textarea{font-size:16px}
}
@media (max-width:760px){
  .app:not(.mode-work) .msg.ai .body > .live,.app:not(.mode-work) .msg.ai .body > .draft,.app:not(.mode-work) .msg.ai .body > .sum,.app:not(.mode-work) .msg.ai .body > .ccard{margin-left:-38px}
}
/* Zeichen der Leiste: der gelbe „2“-Block aus dem easy2-Logo */
.r-mark{display:block;width:36px;height:36px;overflow:hidden;border-radius:7px}
.r-mark img{width:36px;height:36px;object-fit:cover;object-position:right center;display:block}
.scard .made{left:auto;right:8px}
.hello .sub{max-width:62ch}
/* Niedrigere Bildschirme (Laptops): alles bleibt ohne Scrollen sichtbar */
@media (min-width:761px) and (max-height:860px){
  .hello{padding-top:20px}
  .hello .orb{width:46px;height:46px;margin-bottom:12px}
  .greet{margin-bottom:2px}
  .hello h1{font-size:clamp(32px,3.9vw,52px)}
  .hello .sub{margin:10px 0 22px;font-size:16px}
  .composer.start textarea{min-height:62px;padding-top:18px}
  .ex-head{margin:22px 0 10px}
  .foot-note{margin-top:14px}
}
