*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--bg: #0a0a0a;--surface: #141414;--surface-2: #1e1e1e;--border: rgba(255,255,255,.07);--border-2: rgba(255,255,255,.12);--gold: #d4af37;--gold-dim: rgba(212,175,55,.12);--gold-glow: rgba(212,175,55,.25);--text: #f2f2f2;--text-2: rgba(242,242,242,.55);--text-3: rgba(242,242,242,.3);--red: #ef4444;--orange: #f97316;--green: #22c55e;--blue: #60a5fa;--purple: #a5b4fc;--r: 14px;--r-lg: 20px;--safe-top: env(safe-area-inset-top, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px);--safe-left: env(safe-area-inset-left, 0px);--safe-right: env(safe-area-inset-right, 0px)}html,body,#root{height:100%;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif;-webkit-font-smoothing:antialiased;overscroll-behavior:none}.splash{height:100dvh;display:flex;align-items:center;justify-content:center;background:var(--bg)}.splash-logo{width:100px;height:100px;border-radius:24px;animation:pulse 1.4s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(.95)}}.login-screen{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:calc(var(--safe-top) + 2rem) 1.25rem calc(var(--safe-bottom) + 2rem);background:radial-gradient(ellipse at top,#1a1400 0%,var(--bg) 60%)}.login-box{width:100%;max-width:380px;display:flex;flex-direction:column;gap:1rem}.login-logo{width:80px;height:80px;border-radius:20px;margin:0 auto .5rem;display:block;box-shadow:0 8px 32px #d4af3740}.login-title{font-size:1.6rem;font-weight:800;text-align:center;color:var(--gold);letter-spacing:-.02em}.login-sub{font-size:.85rem;color:var(--text-2);text-align:center;margin-top:-.5rem}.login-error{background:#ef44441f;border:1px solid rgba(239,68,68,.3);color:var(--red);border-radius:var(--r);padding:.75rem 1rem;font-size:.85rem}.btn-login{width:100%;background:var(--gold);color:#000;border:none;border-radius:var(--r);padding:.95rem;font-size:1rem;font-weight:800;font-family:inherit;cursor:pointer;margin-top:.25rem;transition:opacity .15s,transform .1s;letter-spacing:.01em}.btn-login:hover{opacity:.9}.btn-login:active{transform:scale(.98)}.btn-login:disabled{opacity:.5;cursor:not-allowed}.app{display:flex;flex-direction:column;height:100dvh;overflow:hidden}.app-header{display:flex;align-items:center;justify-content:space-between;padding:calc(var(--safe-top) + .75rem) calc(var(--safe-right) + 1rem) .75rem calc(var(--safe-left) + 1rem);background:var(--bg);border-bottom:1px solid var(--border);flex-shrink:0;gap:.5rem}.header-left{display:flex;align-items:center;gap:.65rem;min-width:0}.header-logo{width:36px;height:36px;border-radius:10px;flex-shrink:0}.header-title{font-size:1.05rem;font-weight:800;color:var(--gold);letter-spacing:-.01em;line-height:1.2}.header-sub{font-size:.72rem;color:var(--text-2);line-height:1}.header-actions{display:flex;align-items:center;gap:.25rem;flex-shrink:0}.icon-btn{width:36px;height:36px;border:none;background:transparent;color:var(--text);border-radius:10px;font-size:1rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s}.icon-btn:hover{background:var(--surface-2)}.icon-btn--dim{opacity:.5}.tab-bar{display:flex;background:var(--bg);border-bottom:1px solid var(--border);padding:0 calc(var(--safe-left) + .5rem) 0 calc(var(--safe-left) + .5rem);gap:0;flex-shrink:0}.tab{flex:1;border:none;background:transparent;color:var(--text-2);font-size:.8rem;font-weight:600;font-family:inherit;padding:.65rem .25rem;cursor:pointer;position:relative;display:flex;align-items:center;justify-content:center;gap:.3rem;transition:color .15s;white-space:nowrap}.tab--active{color:var(--gold)}.tab--active:after{content:"";position:absolute;bottom:-1px;left:10%;right:10%;height:2px;background:var(--gold);border-radius:2px 2px 0 0}.tab-badge{background:var(--gold);color:#000;font-size:.6rem;font-weight:800;border-radius:10px;padding:1px 5px;min-width:16px;text-align:center}.todo-list{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:.75rem calc(var(--safe-right) + .75rem) 0 calc(var(--safe-left) + .75rem)}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;padding:4rem 1rem;text-align:center}.empty-icon{font-size:3rem}.empty-text{font-size:.95rem;color:var(--text-2)}.empty-btn{background:var(--gold-dim);border:1px solid var(--gold-glow);color:var(--gold);border-radius:var(--r);padding:.6rem 1.2rem;font-size:.9rem;font-weight:700;font-family:inherit;cursor:pointer;margin-top:.25rem}.spinner{width:32px;height:32px;border:3px solid var(--border-2);border-top-color:var(--gold);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.swipe-wrapper{position:relative;margin-bottom:.5rem;border-radius:var(--r);overflow:hidden}.swipe-bg{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;padding:0 1.25rem;font-size:.82rem;font-weight:700;pointer-events:none;transition:opacity .1s}.swipe-bg--left{background:var(--green);color:#fff;justify-content:flex-start}.swipe-bg--right{background:var(--red);color:#fff;justify-content:flex-end}.todo-card{display:flex;align-items:flex-start;gap:.75rem;padding:.9rem .9rem .9rem .8rem;background:var(--surface);border:1px solid var(--border);border-left:3px solid transparent;border-radius:var(--r);cursor:pointer;user-select:none;-webkit-user-select:none;position:relative;z-index:1;will-change:transform}.todo-card:active{background:var(--surface-2)}.todo-card.prio-dringend{border-left-color:var(--red)}.todo-card.prio-hoch{border-left-color:var(--orange)}.todo-card.prio-normal{border-left-color:#ffffff26}.todo-card.prio-niedrig{border-left-color:#ffffff0d}.todo-card.done{opacity:.45}.status-dot{width:22px;height:22px;border-radius:50%;border:2px solid rgba(255,255,255,.2);background:transparent;cursor:pointer;flex-shrink:0;margin-top:2px;transition:all .15s;display:flex;align-items:center;justify-content:center;font-size:0}.status-dot:after{content:"";display:block;width:8px;height:8px;border-radius:50%;transition:background .15s}.status-dot--offen:after{background:transparent}.status-dot--in_bearbeitung{border-color:var(--orange)}.status-dot--in_bearbeitung:after{background:var(--orange)}.status-dot--erledigt{border-color:var(--green);background:#22c55e26}.status-dot--erledigt:after{background:var(--green)}.status-dot:active{transform:scale(1.2)}.card-body{flex:1;min-width:0}.card-title{font-size:.92rem;font-weight:600;color:var(--text);line-height:1.4;margin-bottom:.25rem}.done .card-title{text-decoration:line-through;color:var(--text-2)}.card-desc{font-size:.75rem;color:var(--text-2);line-height:1.45;margin-bottom:.35rem;white-space:pre-wrap}.card-meta{display:flex;flex-wrap:wrap;gap:.3rem}.card-status-label{font-size:.62rem;color:var(--text-3);flex-shrink:0;margin-top:3px;writing-mode:vertical-rl;letter-spacing:.06em;text-transform:uppercase}.badge{font-size:.64rem;font-weight:700;padding:2px 6px;border-radius:5px;border:1px solid;white-space:nowrap}.badge--dringend{color:var(--red);border-color:#ef44444d;background:#ef444414}.badge--hoch{color:var(--orange);border-color:#f973164d;background:#f9731614}.badge--kontext{color:var(--purple);border-color:#a5b4fc40;background:#a5b4fc12;font-weight:600;text-transform:none}.badge--due{color:#fbbf24;border-color:#fbbf244d;background:#fbbf2414}.badge--overdue{color:var(--red);border-color:#ef44444d;background:#ef444414}.badge--user{color:var(--green);border-color:#22c55e40;background:#22c55e0f;font-weight:600;text-transform:none}.quick-add{position:relative;flex-shrink:0;background:linear-gradient(to top,var(--bg) 60%,transparent);padding:.75rem calc(var(--safe-right) + .75rem) calc(var(--safe-bottom) + .75rem) calc(var(--safe-left) + .75rem);border-top:1px solid var(--border)}.quick-add-bar{display:flex;gap:.5rem;align-items:center;background:var(--surface);border:1px solid var(--border-2);border-radius:50px;padding:.4rem .4rem .4rem 1rem}.quick-input{flex:1;background:transparent;border:none;outline:none;color:var(--text);font-size:.92rem;font-family:inherit;min-width:0}.quick-input::placeholder{color:var(--text-3)}.quick-send,.quick-expand{width:36px;height:36px;border-radius:50%;border:none;display:flex;align-items:center;justify-content:center;font-size:1.1rem;font-family:inherit;cursor:pointer;flex-shrink:0;transition:transform .1s}.quick-send{background:var(--gold);color:#000;font-weight:900}.quick-expand{background:var(--surface-2);color:var(--text-2)}.quick-send:active,.quick-expand:active{transform:scale(.92)}.sheet-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0000;z-index:1000;pointer-events:none;transition:background .3s}.sheet-overlay.visible{background:#000000a6;pointer-events:all}.sheet{position:fixed;bottom:0;left:0;right:0;background:var(--surface-2);border-radius:24px 24px 0 0;border-top:1px solid var(--border-2);padding:.5rem 1.25rem calc(var(--safe-bottom) + 1.5rem);max-height:92dvh;overflow-y:auto;-webkit-overflow-scrolling:touch;transform:translateY(100%);transition:transform .35s cubic-bezier(.32,.72,0,1);display:flex;flex-direction:column;gap:.9rem}.sheet--open{transform:translateY(0)}.sheet-handle{width:40px;height:4px;border-radius:2px;background:#ffffff26;margin:.5rem auto .25rem;flex-shrink:0}.sheet-title{font-size:1rem;font-weight:700;color:var(--text)}.form-field{display:flex;flex-direction:column;gap:.4rem}.form-field label{font-size:.75rem;font-weight:600;color:var(--text-2);text-transform:uppercase;letter-spacing:.05em}.form-input{background:#ffffff0f;border:1px solid var(--border-2);border-radius:var(--r);padding:.7rem .85rem;color:var(--text);font-size:.92rem;font-family:inherit;width:100%;transition:border-color .15s}.form-input:focus{outline:none;border-color:#d4af3780}.form-textarea{resize:none;min-height:75px}.form-select{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}.chips{display:flex;gap:.4rem;flex-wrap:wrap}.chip{border:1px solid var(--border-2);background:transparent;color:var(--text-2);border-radius:50px;padding:.35rem .8rem;font-size:.78rem;font-weight:600;font-family:inherit;cursor:pointer;transition:all .15s;white-space:nowrap}.chip:active{transform:scale(.96)}.chip--active{background:var(--gold-dim);border-color:var(--gold-glow);color:var(--gold)}.form-actions{display:flex;gap:.6rem;justify-content:flex-end;padding-top:.25rem}.btn-cancel{border:1px solid var(--border-2);background:transparent;color:var(--text-2);border-radius:var(--r);padding:.7rem 1.2rem;font-size:.88rem;font-family:inherit;cursor:pointer;transition:all .15s}.btn-cancel:hover{border-color:var(--border-2);color:var(--text)}.btn-save{background:var(--gold);color:#000;border:none;border-radius:var(--r);padding:.7rem 1.5rem;font-size:.88rem;font-weight:800;font-family:inherit;cursor:pointer;transition:opacity .15s}.btn-save:hover{opacity:.88}.btn-save:disabled{opacity:.4;cursor:not-allowed}.filter-content{display:flex;flex-direction:column;gap:1rem}.notes-guide{display:flex;flex-direction:column;gap:1.25rem}.notes-section{display:flex;flex-direction:column;gap:.6rem}.notes-section h4{font-size:.92rem;font-weight:700;color:var(--text)}.notes-section p{font-size:.82rem;color:var(--text-2);line-height:1.5}.notes-section ol{padding-left:1.25rem;display:flex;flex-direction:column;gap:.3rem}.notes-section li{font-size:.82rem;color:var(--text-2);line-height:1.5}.notes-section li strong{color:var(--text)}.code-block{background:#ffffff0a;border:1px solid var(--border-2);border-radius:var(--r);padding:.75rem;display:flex;flex-direction:column;gap:.3rem}.code-url{font-size:.72rem;font-family:monospace;color:var(--gold);word-break:break-all}.code-header{font-size:.68rem;font-family:monospace;color:var(--text-2);word-break:break-all}.code-body{font-size:.68rem;font-family:monospace;color:var(--purple);word-break:break-all}.btn-copy-token{background:var(--gold-dim);border:1px solid var(--gold-glow);color:var(--gold);border-radius:var(--r);padding:.6rem 1rem;font-size:.85rem;font-weight:700;font-family:inherit;cursor:pointer;width:100%;transition:opacity .15s}.btn-copy-token:hover{opacity:.85}.notes-hint{font-size:.72rem!important;color:var(--text-3)!important}@media (min-width: 600px){.sheet{max-width:500px;left:50%;right:auto;transform:translate(-50%,100%);border-radius:24px;border:1px solid var(--border-2);bottom:2rem}.sheet--open{transform:translate(-50%)}.app{max-width:600px;margin:0 auto}}
