/* easy2 Prototyp v2 · Warten als Gespräch: KI-Team, Szenen, Fortschritt, Entwürfe */

/* Live-Karte im Verlauf */
.live{background:var(--surface);border:1px solid var(--line);border-radius:24px;box-shadow:var(--sh-2);overflow:hidden;margin-top:4px}
.live-top{display:grid;grid-template-columns:148px 1fr;gap:20px;align-items:center;padding:18px 22px 16px 18px}
.scene{width:148px;height:112px;border-radius:18px;background:radial-gradient(120% 100% at 50% 0%,#FFFBEA 0,#F7F1E2 70%);position:relative;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(0,0,0,.04)}
.scene svg{position:absolute;inset:0;width:100%;height:100%}
.scene .sc{position:absolute;inset:0;opacity:0;transition:opacity .6s var(--ease)}
.scene .sc.on{opacity:1}
.live-txt{min-width:0}
.live-role{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--text-3);margin-bottom:4px}
.live-role .kb{font-size:10px;font-weight:700;letter-spacing:.04em;background:var(--surface-2);color:var(--text-2);border-radius:5px;padding:1px 5px}
.live-st{font-size:18px;font-weight:700;letter-spacing:-.018em;line-height:1.3;min-height:1.3em}
.live-sub{font-size:14px;color:var(--text-2);margin-top:4px;min-height:1.4em}
.fadeswap{animation:swap .5s var(--ease)}
@keyframes swap{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
.live-prog{display:flex;align-items:center;gap:12px;padding:0 22px 16px}
.bar{flex:1;height:6px;border-radius:6px;background:var(--surface-3);overflow:hidden;position:relative}
.bar i{position:absolute;left:0;top:0;bottom:0;width:0;border-radius:6px;background:linear-gradient(90deg,#FFD23F,#F5BE00);transition:width 1.2s var(--ease)}
.bar i::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.55),rgba(255,255,255,0));animation:sheen 2.4s ease-in-out infinite}
@keyframes sheen{from{transform:translateX(-100%)}to{transform:translateX(100%)}}
.rest{font-size:13px;font-weight:600;color:var(--ink-3);white-space:nowrap;font-variant-numeric:tabular-nums}
.team{display:flex;align-items:center;gap:14px;padding:12px 22px;border-top:1px solid var(--line);background:var(--surface-2);flex-wrap:wrap}
.team > span{font-size:12px;font-weight:600;color:var(--text-3)}
.mates{display:flex;gap:6px}
.mate{position:relative;width:34px;height:34px;border-radius:50%;transition:transform .3s var(--ease),box-shadow .3s}
.mate > svg{width:34px;height:34px;border-radius:50%;display:block}
.mate .bd svg{width:10px;height:10px}
.mate .bd{position:absolute;right:-3px;bottom:-3px;width:16px;height:16px;border-radius:50%;background:var(--surface);display:grid;place-items:center;box-shadow:0 0 0 2px var(--surface-2);color:var(--ink-3)}
.mate.on{box-shadow:0 0 0 2px var(--surface-2),0 0 0 4px var(--yellow);animation:bob 2.6s ease-in-out infinite}
.mate.done .bd{background:var(--yellow);color:var(--ink)}
.mate.idle{opacity:.45;filter:grayscale(.3)}
@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
.mate .tip{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);white-space:nowrap;font-size:11.5px;font-weight:600;background:var(--ink-2);color:#fff;border-radius:7px;padding:3px 8px;opacity:0;pointer-events:none;transition:opacity .15s}
.mate:hover .tip{opacity:1}
.team .bubble{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--ink-3);background:var(--surface);border:1px solid var(--line);border-radius:12px 12px 12px 4px;padding:6px 10px}
.team .bubble .typing{height:12px}.team .bubble .typing i{width:5px;height:5px}
.tracks{padding:6px 22px 4px;border-top:1px solid var(--line)}
.track{display:grid;grid-template-columns:30px 1fr auto;gap:12px;align-items:center;padding:9px 0;border-bottom:1px dashed var(--line)}
.track:last-child{border-bottom:0}
.track .ti{width:30px;height:30px;border-radius:10px;background:var(--surface-2);display:grid;place-items:center;color:var(--ink-3)}
.track b{display:block;font-size:14px;font-weight:600;line-height:1.3}
.track small{display:block;font-size:12.5px;color:var(--text-3);line-height:1.35}
.track .stt{font-size:12.5px;font-weight:600;color:var(--text-2);display:flex;align-items:center;gap:6px;white-space:nowrap}
.track .stt .spin{width:12px;height:12px;border-radius:50%;border:2px solid var(--line-2);border-top-color:var(--yellow-strong);animation:spin .9s linear infinite}
.track.done .ti{background:var(--yellow);color:var(--ink)}
.track.done .stt{color:var(--green)}
.track.wait{opacity:.55}
@keyframes spin{to{transform:rotate(360deg)}}
.donelist{display:flex;flex-wrap:wrap;gap:6px 14px;padding:12px 22px 14px;border-top:1px solid var(--line);font-size:13px;color:var(--text-2)}
.donelist span{display:inline-flex;align-items:center;gap:6px;animation:swap .4s var(--ease)}
.donelist span svg{color:var(--green)}
.live-note{display:flex;align-items:center;gap:10px;padding:12px 22px;border-top:1px solid var(--line);font-size:13px;color:var(--text-2)}
.live-note .grow{flex:1}
.live.finished .live-top{opacity:.85}

/* Angedockter Status über dem Eingabefeld */
.status{display:flex;align-items:center;gap:12px;margin:0 0 10px;padding:8px 12px 8px 8px;border-radius:16px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--sh-1);animation:swap .4s var(--ease)}
.status .mini{width:40px;height:32px;border-radius:10px;background:#FBF4DF;position:relative;overflow:hidden;flex:none}
.status .mini svg{position:absolute;inset:0;width:100%;height:100%}
.status .tx{flex:1;min-width:0}
.status .tx b{display:block;font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3}
.status .tx .bar{height:4px;margin-top:5px}
.status .rest{font-size:12.5px}
.status.ok .mini{background:var(--green-soft)}

/* Szenen: ruhige Schleifen, je 3–5 s, kleine Wege */
.s-stroke{fill:none;stroke:#26282D;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.s-soft{fill:#fff;stroke:#26282D;stroke-width:1.6}
.s-y{fill:#FFD23F}
.s-line{stroke:#D8D1C3;stroke-width:3;stroke-linecap:round}
.s-ink{fill:#26282D}
.glide{animation:glide 4.2s ease-in-out infinite alternate}
@keyframes glide{from{transform:translateX(-28px)}to{transform:translateX(28px)}}
.draw{stroke-dasharray:120;stroke-dashoffset:120;animation:draw 4.5s var(--ease) infinite}
.draw.d2{animation-delay:.6s}.draw.d3{animation-delay:1.2s}.draw.d4{animation-delay:1.8s}
@keyframes draw{0%{stroke-dashoffset:120}40%,85%{stroke-dashoffset:0}100%{stroke-dashoffset:0;opacity:0}}
.tick{stroke-dasharray:20;stroke-dashoffset:20;animation:tick 4.5s var(--ease) infinite}
.tick.d2{animation-delay:.7s}.tick.d3{animation-delay:1.4s}
@keyframes tick{0%,15%{stroke-dashoffset:20}35%,88%{stroke-dashoffset:0;opacity:1}100%{opacity:0}}
.flash{animation:flash 3.6s ease-in-out infinite;transform-origin:center;transform-box:fill-box}
@keyframes flash{0%,78%,100%{opacity:0}82%{opacity:1}90%{opacity:0}}
.develop{opacity:0;animation:develop 5.4s ease-in-out infinite}
.develop.d2{animation-delay:1.2s}.develop.d3{animation-delay:2.4s}
@keyframes develop{0%{opacity:0;transform:translateY(6px)}15%,80%{opacity:1;transform:none}100%{opacity:0}}
.grow-w{transform-box:fill-box;transform-origin:left center;animation:growW 4s var(--ease) infinite}
.grow-w.d2{animation-delay:.5s}.grow-w.d3{animation-delay:1s}
@keyframes growW{0%{transform:scaleX(0)}35%,85%{transform:scaleX(1)}100%{transform:scaleX(1);opacity:0}}
.scan{animation:scan 3.2s ease-in-out infinite}
@keyframes scan{0%{transform:translateY(0);opacity:0}10%{opacity:1}90%{opacity:1}100%{transform:translateY(54px);opacity:0}}
.stack{transform-box:fill-box;animation:stack 4.8s var(--ease) infinite;opacity:0}
.stack.d2{animation-delay:.5s}.stack.d3{animation-delay:1s}.stack.d4{animation-delay:1.5s}
@keyframes stack{0%{opacity:0;transform:translateY(-10px)}15%,85%{opacity:1;transform:none}100%{opacity:0}}
.popin{transform-box:fill-box;transform-origin:center;animation:popin 4.2s var(--ease) infinite;opacity:0}
.popin.d2{animation-delay:.6s}.popin.d3{animation-delay:1.2s}
@keyframes popin{0%{opacity:0;transform:scale(.6)}14%,84%{opacity:1;transform:none}100%{opacity:0}}
.cursor{animation:cursor 5s ease-in-out infinite}
@keyframes cursor{0%,100%{transform:translate(0,0)}30%{transform:translate(18px,10px)}60%{transform:translate(6px,22px)}}
.talk{animation:talk 3.6s ease-in-out infinite;opacity:0}
.talk.d2{animation-delay:1.2s}.talk.d3{animation-delay:2.4s}
@keyframes talk{0%{opacity:0;transform:translateY(3px)}10%,30%{opacity:1;transform:none}40%,100%{opacity:0}}
.ring{transform-box:fill-box;transform-origin:center;animation:ring 2.6s var(--ease) 1 forwards}
@keyframes ring{from{transform:scale(.6);opacity:.9}to{transform:scale(1.5);opacity:0}}
.spinslow{transform-box:fill-box;transform-origin:center;animation:spin 8s linear infinite}

/* Entwurfskarten im Verlauf */
.draft{background:var(--surface);border:1px solid var(--line);border-radius:24px;box-shadow:var(--sh-2);overflow:hidden;margin-top:8px;animation:msgIn .5s var(--ease) both}
.draft.rec{border-color:#F1D77A;box-shadow:0 0 0 3px rgba(255,210,63,.25),var(--sh-2)}
.draft-h{display:flex;align-items:center;gap:10px;padding:16px 18px 12px 20px}
.draft-h h4{margin:0;font-size:17px;letter-spacing:-.015em}
.draft-h .grow{flex:1}
.seg{display:inline-flex;align-items:center;background:var(--surface-2);border-radius:11px;padding:3px;gap:2px}
.seg button{height:28px;padding:0 10px;border-radius:8px;font-size:12.5px;font-weight:600;color:var(--text-2);display:inline-flex;align-items:center;gap:6px}
.seg button.on{background:var(--surface);color:var(--ink);box-shadow:var(--sh-1)}
.frame{margin:0 14px;border-radius:16px;overflow:hidden;background:#EEEAE2;box-shadow:inset 0 0 0 1px rgba(0,0,0,.06);position:relative}
.frame .chrome{height:30px;display:flex;align-items:center;gap:6px;padding:0 12px;background:#F5F2EC;border-bottom:1px solid rgba(0,0,0,.05)}
.frame .chrome i{width:9px;height:9px;border-radius:50%;background:#DDD7CB}
.frame .chrome span{margin-left:10px;font-size:11.5px;color:var(--text-3);background:#fff;border-radius:6px;padding:2px 10px;flex:1;max-width:260px}
.frame .chrome .lv{margin-left:auto;display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:600;color:var(--green)}
.frame .chrome .lv::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--green);animation:breathe 2.4s infinite}
.shot{position:relative;aspect-ratio:16/10;overflow:hidden;cursor:zoom-in}
.shot img{position:absolute;left:0;top:0;width:100%;transition:transform 3.2s ease-in-out}
.shot:hover img{transform:translateY(var(--pan,0))}
.shot.paint img{animation:paint 1.1s var(--ease) both}
@keyframes paint{from{clip-path:inset(0 0 100% 0);filter:blur(6px)}to{clip-path:inset(0 0 0 0);filter:none}}
.shot.mob{aspect-ratio:auto;height:380px;background:#E7E2D8;display:flex;justify-content:center;align-items:flex-start;padding-top:18px}
.shot.mob .ph{width:196px;height:400px;border-radius:30px;background:#16171A;padding:7px;box-shadow:0 18px 40px -16px rgba(0,0,0,.4)}
.shot.mob .ph div{width:100%;height:100%;border-radius:24px;overflow:hidden;position:relative}
.shot.mob .ph img{position:static;width:100%}
.draft-b{display:flex;align-items:center;gap:12px;padding:14px 18px 18px 20px;flex-wrap:wrap}
.draft-b p{margin:0;flex:1;min-width:220px;font-size:14.5px;color:var(--ink-2);line-height:1.5}
.draft-b p small{display:block;color:var(--yellow-ink);font-weight:600;font-size:13px;margin-top:4px}
.why{display:flex;gap:8px;align-items:flex-start;margin:0 18px 0 20px;padding:10px 12px;border-radius:12px;background:var(--yellow-wash);font-size:13.5px;color:var(--ink-2)}
.why svg{color:var(--yellow-strong);margin-top:2px}
.skel{height:240px;margin:0 14px;border-radius:16px;background:linear-gradient(100deg,#F3EFE7 30%,#FBF8F2 50%,#F3EFE7 70%);background-size:200% 100%;animation:shim 1.4s linear infinite}
@keyframes shim{from{background-position:200% 0}to{background-position:-0% 0}}

/* Vergleich und Großansicht */
.scrim{position:fixed;inset:0;z-index:120;background:rgba(23,24,27,.42);backdrop-filter:blur(3px);display:grid;place-items:center;padding:24px;animation:fade .2s}
.dlg{background:var(--surface);border-radius:28px;box-shadow:var(--sh-3);width:min(640px,100%);max-height:calc(100dvh - 48px);overflow:auto;animation:pop .25s var(--ease)}
.dlg-h{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:12px;padding:18px 20px 14px 24px;background:rgba(255,255,255,.94);backdrop-filter:blur(8px)}
.dlg-h h3{margin:0;font-size:19px;letter-spacing:-.02em}
.dlg-h .grow{flex:1}
.cmp{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;padding:4px 24px 24px}
.cmp .c{border:1px solid var(--line);border-radius:20px;overflow:hidden;display:flex;flex-direction:column}
.cmp .c.rec{border-color:#F1D77A;box-shadow:0 0 0 3px rgba(255,210,63,.25)}
.cmp .c .im{aspect-ratio:16/11;overflow:hidden;background:#EEE}
.cmp .c .im img{width:100%}
.cmp.mob .c .im{aspect-ratio:9/16}
.cmp .c .tx{padding:14px 16px 16px;display:flex;flex-direction:column;gap:10px;flex:1}
.cmp .c h4{margin:0;font-size:16px}
.cmp .c p{margin:0;font-size:13.5px;color:var(--text-2);flex:1}
.big{display:grid;grid-template-columns:1fr 260px;gap:20px;padding:4px 24px 24px;align-items:start}
.big .dimg{border-radius:16px;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(0,0,0,.06)}
.big .dimg img{width:100%;display:block}
.big .mimg{border-radius:24px;overflow:hidden;border:7px solid #16171A;max-height:520px;overflow-y:auto}
.big .mimg img{width:100%;display:block}

@media (max-width:760px){
  .live-top{grid-template-columns:96px 1fr;gap:14px;padding:14px 14px 12px}
  .scene{width:96px;height:84px;border-radius:14px}
  .live-st{font-size:16px}
  .live-sub{font-size:13px}
  .live-prog,.team,.tracks,.donelist,.live-note{padding-left:14px;padding-right:14px}
  .draft-h{padding:14px 14px 10px 16px}
  .frame{margin:0 10px}
  .draft-b{padding:12px 14px 16px 16px}
  .why{margin:0 14px 0 16px}
  .cmp{grid-template-columns:1fr;padding:4px 16px 16px}
  .big{grid-template-columns:1fr;padding:4px 16px 16px}
  .scrim{padding:0;align-items:end}
  .dlg{border-radius:24px 24px 0 0;max-height:92dvh}
}
.status .mini.face{width:34px;height:34px;border-radius:50%;background:none;margin-left:2px;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--yellow);animation:bob 2.6s ease-in-out infinite}
.status .mini.face svg{border-radius:50%}
.track .ti.f{border-radius:50%;overflow:hidden;background:none}
.track .ti.f svg{width:30px;height:30px}
.track.done .ti.f{box-shadow:0 0 0 2px var(--surface),0 0 0 3.5px var(--yellow);background:none}
.track:not(.wait):not(.done) .ti.f{box-shadow:0 0 0 2px var(--surface),0 0 0 3.5px #F3E3A8}
.live.finished .tracks,.live.finished .team,.live.finished .live-note,.live.finished .live-prog{display:none}
.live.finished .live-top{padding-bottom:14px}
.live.finished .scene{height:64px;width:64px}
.app.mode-work .live.finished .scene{width:56px;height:56px}
.live.finished .live-top{grid-template-columns:64px 1fr}
.app.mode-work .live.finished .live-top{grid-template-columns:56px 1fr}
.live .tracks:not([hidden]) + .team{display:none}
.live .tracks:not([hidden]){border-top:1px solid var(--line)}
.status.ok .mini{width:30px;height:30px;border-radius:50%;margin-left:4px}
.status.ok .mini svg{width:16px;height:16px}
.status.ok .mini svg{position:static;width:16px;height:16px}
@media (max-width:760px){.frame .chrome span{display:none}.shot.mob{height:430px}.shot.mob .ph{width:210px;height:430px}}
