/* Projekt-Cockpit — Gestaltung nach Olivers viertem Mockup (01.10.2026, KI-Assistent „Travel planning“):
   hellgrauer App-Rahmen, Reiter wie im Browser, schmale Symbolleiste, Himmels-Kopf mit großem Titel und Glas-Reitern,
   gelbe Assistent-Karte, weiße Widgets mit schwarzem Symbolpunkt, Grün für „gut“, Bildkarten. */
:root{
  --rahmen:#E6E6E4; --rahmen-2:#DCDCDA; --weiss:#fff; --flaeche:#F4F4F2;
  --text:#141414; --muted:#7A7A76; --leise:#ABABA6; --schwarz:#111;
  --gruen:#0FA968; --gruen-zart:#DDF3E8; --gelb-d:#F5F46B; --gelb-zart:#F6F6C9; --rot:#C4382B; --rot-zart:#F8E1DE; --amber:#9A6A12; --amber-zart:#FBEFD2;
  --linie:rgba(20,20,20,.08); --punkte:rgba(20,20,20,.18);
  --r-gross:30px; --r-karte:22px; --r-mittel:16px; --r-klein:12px;
  --schatten:0 1px 2px rgba(20,20,20,.04),0 6px 18px rgba(20,20,20,.05); --schatten-gross:0 24px 60px rgba(20,20,20,.18);
  --himmel:linear-gradient(170deg,#5E8D9B 0%,#7FA4AE 38%,#A6C1C6 72%,#C9D8D9 100%);
  --schrift:'Outfit',system-ui,sans-serif;
  /* feste Farbwerte aus den Regeln, ohne Änderung des Aussehens */
  --bild-oben:rgba(0,0,0,0);
  --bild-unten:rgba(0,0,0,.55);
  --gelb-1:#EDF0CF;
  --gelb-2:#F1F3A6;
  --gelb-3:#F6F56B;
  --glas-0:rgba(255,255,255,0);
  --glas-12:rgba(255,255,255,.12);
  --glas-22:rgba(255,255,255,.22);
  --glas-25:rgba(255,255,255,.25);
  --glas-34:rgba(255,255,255,.34);
  --glas-35:rgba(255,255,255,.35);
  --glas-40:rgba(255,255,255,.4);
  --glas-45:rgba(255,255,255,.45);
  --glas-55:rgba(255,255,255,.55);
  --glas-70:rgba(255,255,255,.7);
  --glas-85:rgba(255,255,255,.85);
  --himmel-tab:rgba(40,60,66,.28);
  --himmel-tab-an:rgba(40,60,66,.42);
  --leise-2:#B5B5B0;
  --rahmen-3:#D2D2D0;
  --rot-d:#B5392C;
  --sonne-kern:rgba(246,200,40,.75);
  --sonne-rand:rgba(246,220,90,.25);
  --text-schatten:rgba(0,0,0,.25);
  --tiefschwarz:#000;
}
*{box-sizing:border-box}
html{min-height:100%;background:var(--rahmen)}
body{margin:0;min-height:100vh;font-family:var(--schrift);color:var(--text);font-size:15px;line-height:1.45;display:grid;grid-template-columns:84px minmax(0,1fr);grid-template-rows:auto 1fr}
[hidden]{display:none!important}
button,input,textarea,select{font-family:inherit;color:inherit}
:focus-visible{outline:2px solid var(--schwarz);outline-offset:2px}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* ---------- Rahmen: gelber Punkt · Browser-Reiter · Auswahl + Konto ---------- */
.kopf{grid-column:1/-1;display:flex;align-items:flex-end;gap:10px;padding:16px 24px 0 18px;min-height:76px}
.marke{width:52px;height:52px;border-radius:14px;background:var(--weiss);display:grid;place-items:center;flex:none;margin-right:14px;text-decoration:none;align-self:center;box-shadow:var(--schatten)}
.marke-punkt{width:22px;height:22px;border-radius:50%;background:var(--gelb-d);display:block}
.marke .version,.marke b{display:none}
.reiter{display:flex;align-items:flex-end;gap:6px;flex:1;min-width:0;overflow-x:auto}
.tab{display:inline-flex;align-items:center;gap:12px;height:48px;padding:0 16px 0 22px;border-radius:16px 16px 0 0;color:var(--text);text-decoration:none;font-size:15px;white-space:nowrap;max-width:240px}
.tab span{overflow:hidden;text-overflow:ellipsis}
.tab:hover{background:var(--glas-35)}
.tab.an{background:var(--flaeche)}
.tab .zu{border:0;background:transparent;font-size:18px;line-height:1;cursor:pointer;color:var(--muted);padding:2px 4px;border-radius:6px}
.tab .zu:hover{color:var(--text);background:rgba(20,20,20,.06)}
.neuer-chat{display:inline-flex;align-items:center;gap:10px;height:42px;margin:0 0 4px 8px;padding:0 16px;border:0;border-radius:14px;background:var(--rahmen-2);cursor:pointer;font-size:15px;white-space:nowrap}
.neuer-chat svg{width:16px;height:16px}
.neuer-chat kbd{font-family:inherit;font-size:12px;color:var(--muted)}
.neuer-chat:hover{background:var(--rahmen-3)}
.rund{width:42px;height:42px;border:0;border-radius:14px;background:var(--rahmen-2);cursor:pointer;font-size:14px;display:grid;place-items:center;color:var(--text);text-decoration:none;flex:none}
.rund:hover{background:var(--rahmen-3)}
.wer{position:relative;align-self:center;display:flex;align-items:center}
.rund svg{width:18px;height:18px}
.rund.klein{width:36px;height:36px;border-radius:12px}
.rund.dunkel{background:var(--schwarz);color:var(--weiss)}
.konto-menue{position:absolute;right:0;top:52px;background:var(--weiss);border-radius:var(--r-mittel);box-shadow:var(--schatten-gross);padding:14px 16px;min-width:200px;z-index:10;display:flex;flex-direction:column;gap:8px}
.konto-menue b{font-weight:500}
.leiste{grid-column:1;grid-row:2;position:sticky;top:0;height:calc(100vh - 76px);display:flex;align-items:center;justify-content:center}
.leiste:empty{display:none}
.schiene{display:flex;flex-direction:column;gap:8px;padding:10px 8px;border-radius:22px;background:var(--glas-45)}
.schiene-knopf{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;color:var(--text);text-decoration:none}
.schiene-knopf svg{width:19px;height:19px}
.schiene-knopf:hover{background:var(--glas-70)}
.schiene-knopf.an{background:var(--rahmen-2)}
.schiene-knopf{position:relative}
.schiene-zahl{position:absolute;right:3px;top:3px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--gelb-d);color:var(--text);font-size:11px;line-height:18px;text-align:center}
#wurzel{grid-column:2;grid-row:2;min-width:0}
body:has(.leiste:empty) #wurzel{grid-column:1/-1}

/* ---------- Bausteine ---------- */
.karte,.d-karte{background:var(--weiss);border-radius:var(--r-karte);box-shadow:var(--schatten);padding:20px 22px;position:relative}
.karte-kopf{display:flex;align-items:center;gap:12px;margin-bottom:12px;min-height:40px}
.karte-kopf h2,.karte-kopf h3{margin:0;font-size:18px;font-weight:500}
.karte-kopf .rechts{margin-left:auto;display:flex;align-items:center;gap:8px}
.leer{color:var(--muted);font-size:14px;padding:6px 0}
.knopf{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 20px;border-radius:14px;font-size:15px;cursor:pointer;border:0;white-space:nowrap;text-decoration:none;color:var(--text);background:var(--rahmen-2)}
.knopf:hover{background:var(--rahmen-3)}
.knopf.haupt{background:var(--schwarz);color:var(--weiss)}.knopf.haupt:hover{background:var(--tiefschwarz)}
.knopf.weiss{background:var(--weiss);box-shadow:var(--schatten)}
.knopf.geist{background:transparent}.knopf.geist:hover{background:rgba(20,20,20,.05)}
.knopf.gefahr{background:var(--rot);color:var(--weiss)}
.knopf.klein{height:38px;font-size:14px;padding:0 14px;border-radius:12px}
.knopf[disabled]{opacity:.45;cursor:not-allowed}
.link{font-size:13px;color:var(--text);text-decoration:underline;text-decoration-color:var(--punkte);text-underline-offset:3px;cursor:pointer}
button.link{background:none;border:0;padding:0;margin:0;text-align:left;line-height:inherit}
.eingabe-feld{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted)}
.eingabe{font-size:15px;height:46px;padding:0 16px;border:0;border-radius:var(--r-klein);background:var(--flaeche);box-shadow:inset 0 0 0 1px var(--linie);outline:none;width:100%}
textarea.eingabe{height:auto;padding:12px 16px;resize:vertical;line-height:1.55}
.eingabe:focus{background:var(--weiss);box-shadow:inset 0 0 0 1.5px var(--schwarz)}
.eingabe::placeholder{color:var(--leise)}
select.eingabe{appearance:none;padding-right:36px;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23141414' stroke-width='1.4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}
.meldung{border-radius:var(--r-klein);padding:12px 16px;font-size:14px}
.meldung.fehler{background:var(--rot-zart);color:var(--rot)}
.meldung.warn{background:var(--amber-zart);color:var(--amber)}
.stand{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;border-radius:999px;padding:3px 10px;white-space:nowrap}
.stand::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.stand.laeuft{background:var(--gruen-zart);color:var(--gruen)}
.stand.teilweise{background:var(--amber-zart);color:var(--amber)}
.stand.aus{background:var(--rot-zart);color:var(--rot)}
.stand.idee{background:var(--flaeche);color:var(--muted)}
.stand.fehlt{background:var(--rot-zart);color:var(--rot)}
.commits{list-style:none;margin:8px 0 20px;padding:0;display:grid;gap:4px}.commits small{color:var(--muted);margin-right:8px}
.zahl{font-size:12px;color:var(--muted)}
.chip,.filter span{display:inline-flex;align-items:center;height:38px;padding:0 16px;border:0;border-radius:12px;background:var(--rahmen-2);font-size:14px;cursor:pointer}
.chip.an,.filter span.an{background:var(--schwarz);color:var(--weiss)}
.filter{display:flex;gap:6px}
.d-punkt{width:30px;height:30px;border-radius:50%;background:var(--schwarz);color:var(--weiss);display:grid;place-items:center;flex:none}
.d-punkt svg{width:15px;height:15px}
.d-punkt b{font-size:11px;font-weight:500}
.seite{padding:20px 28px 48px 6px}
.panel-kopf,.ports-kopf{display:flex;align-items:center;gap:14px;margin:4px 0 18px;flex-wrap:wrap}
.panel-kopf h1,.ports-kopf h2,.projekt-kopf h2{margin:0;font-size:40px;font-weight:400;letter-spacing:-.02em}
.stand-zeit{font-size:13px;color:var(--muted)}

/* ---------- Anmelden ---------- */

/* ---------- Übersicht ---------- */
.d-start{display:grid;grid-template-columns:330px minmax(0,1fr);gap:16px;padding:0 24px 30px 0;align-items:start}
.d-kopf{grid-column:1/-1;position:relative;min-height:430px;border-radius:var(--r-gross);background:var(--himmel);color:var(--weiss);overflow:hidden}
.d-kopf::after{content:"";position:absolute;right:-120px;top:-140px;width:520px;height:520px;border-radius:50%;background:radial-gradient(circle,var(--glas-35),var(--glas-0) 65%);pointer-events:none}
.d-ort{position:absolute;left:26px;top:24px;display:inline-flex;align-items:center;gap:10px;font-size:15px;z-index:1}
.d-ort svg{width:34px;height:34px;padding:8px;border-radius:50%;background:var(--weiss);color:var(--schwarz)}
.d-vorschauen{position:absolute;right:24px;top:22px;display:flex;gap:6px;z-index:1}
.d-vorschau{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;font-size:12px;color:var(--weiss);text-decoration:none;background:linear-gradient(150deg,hsl(var(--ton) 55% 72%),hsl(calc(var(--ton) + 40) 45% 42%));box-shadow:0 0 0 2px var(--glas-55)}
.d-vorschau.mehr{background:rgba(20,20,20,.28);box-shadow:none;backdrop-filter:blur(8px)}
.d-titel{position:absolute;left:30%;top:118px;right:24px;z-index:1}
.d-titel h1{margin:0;font-size:88px;font-weight:400;letter-spacing:-.02em;line-height:1}
.d-titel p{margin:16px 0 0;max-width:470px;font-size:14px;line-height:1.5;opacity:.88}
.d-glas-knoepfe{position:absolute;left:26px;top:132px;display:flex;gap:8px;z-index:1}
.d-glas{width:46px;height:46px;border-radius:14px;border:0;background:var(--glas-22);backdrop-filter:blur(10px);color:var(--weiss);display:grid;place-items:center;cursor:pointer;text-decoration:none}
.d-glas:hover{background:var(--glas-34)}
.d-glas svg{width:18px;height:18px}
.d-tabs{position:absolute;left:calc(330px + 16px);bottom:22px;display:flex;gap:2px;padding:4px;border-radius:16px;background:var(--himmel-tab);backdrop-filter:blur(12px);z-index:1}
.d-tabs button{height:44px;padding:0 22px;border:0;border-radius:12px;background:transparent;color:var(--weiss);font-size:15px;cursor:pointer}
.d-tabs button:hover{background:var(--glas-12)}
.d-tabs button.an{background:var(--himmel-tab-an)}
.d-motiv{color:var(--weiss);position:absolute;right:6%;bottom:-30px;width:340px;opacity:.55}
.d-assistent{grid-column:1;grid-row:2;margin-top:-220px;position:relative;z-index:2;min-height:470px;display:flex;flex-direction:column;gap:14px;padding:20px 20px 18px;border-radius:var(--r-karte);background:linear-gradient(180deg,var(--gelb-1) 0%,var(--gelb-2) 45%,var(--gelb-3) 100%);box-shadow:var(--schatten)}
.d-assistent-kopf{display:flex;align-items:center;gap:10px}
.d-assistent-kopf b{font-weight:500;font-size:15px}
.d-erweitern{margin-left:auto;width:42px;height:42px;border-radius:12px;background:var(--glas-40);display:grid;place-items:center;color:var(--text)}
.d-erweitern svg{width:17px;height:17px}
.d-frage{margin:auto 0 0;font-size:25px;line-height:1.3;font-weight:300}
.d-frage b{font-weight:500}
.d-chips{display:flex;flex-wrap:wrap;gap:8px}
.d-chips button{height:42px;padding:0 16px;border:0;border-radius:12px;background:var(--glas-40);font-size:14px;cursor:pointer}
.d-chips button:hover{background:var(--glas-70)}
.d-eingabe textarea{width:100%;border:0;border-radius:14px;background:var(--glas-55);padding:12px 14px;font-size:15px;line-height:1.45;resize:none;outline:none}
.d-eingabe textarea:focus{background:var(--glas-85)}
.d-eingabe textarea::placeholder{color:rgba(20,20,20,.45)}
.d-assistent-fuss{display:flex;align-items:center;justify-content:space-between}
.d-rund{width:46px;height:46px;border-radius:14px;background:var(--glas-40);display:grid;place-items:center;color:var(--text)}
.d-rund svg{width:18px;height:18px}
.d-senden{width:58px;height:58px;border-radius:16px;border:0;background:var(--schwarz);color:var(--weiss);display:grid;place-items:center;cursor:pointer}
.d-senden svg{width:20px;height:20px}
.d-senden:hover{background:var(--tiefschwarz)}
.d-inhalt{grid-column:2;grid-row:2;min-width:0;display:flex;flex-direction:column;gap:16px}
.d-inhalt.breit{grid-column:1/-1}
.d-widgets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.d-widgets.vier{grid-template-columns:repeat(4,minmax(0,1fr))}
.d-stand{white-space:nowrap}
.d-stand.veraltet{color:var(--gelb-d);font-weight:500}
.d-offen{font-style:normal;color:var(--amber)}
.d-hinweise{margin-bottom:16px;padding:18px 18px 8px;display:flex;flex-direction:column}
.d-hinweise .d-punkt{position:absolute;left:18px;top:18px;background:var(--amber-zart);color:var(--amber)}
.d-hinweis{display:flex;align-items:baseline;gap:12px;padding:10px 4px;border-top:1px solid var(--linie);color:var(--text);text-decoration:none}
.d-hinweis b{font-weight:500}
.d-hinweis small{margin-left:auto;font-size:13px;color:var(--muted);text-align:right}
a.d-hinweis:hover b{text-decoration:underline;text-underline-offset:3px}
.d-widget{min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px;overflow:hidden}
.d-widget .d-punkt{position:absolute;left:16px;top:16px}
.d-glut{position:absolute;top:22px;left:50%;width:170px;height:110px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(ellipse at 50% 70%,var(--sonne-kern),var(--sonne-rand) 50%,var(--glas-0) 72%)}
.d-gross{position:relative;font-size:56px;font-weight:400;line-height:1;letter-spacing:-.02em}
.d-gross small{font-size:14px;color:var(--muted);margin-left:6px;letter-spacing:0}
.d-gross.klein{font-size:40px}
.d-unter{position:relative;font-size:13.5px;color:var(--muted)}
.d-striche{display:flex;gap:3px;height:30px;align-items:stretch;flex-wrap:wrap;justify-content:center;max-width:100%}
.d-striche i{width:6px;border-radius:2px;background:var(--flaeche);box-shadow:inset 0 0 0 1px var(--linie)}
.d-striche i.an{background:var(--gruen);box-shadow:none}
.d-lage{font-size:24px;font-weight:400;margin-bottom:auto;margin-top:22px}
.d-wochen{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;width:100%;height:84px;align-items:end}
.d-wochen div{display:flex;flex-direction:column;align-items:center;gap:4px;height:100%;justify-content:flex-end}
.d-wochen i{width:100%;border-radius:4px 4px 0 0;background:var(--flaeche);box-shadow:inset 0 0 0 1px var(--linie)}
.d-wochen .heute i{background:var(--gruen);box-shadow:none}
.d-wochen small{font-size:11px;color:var(--muted)}
.d-liste{padding:18px 18px 10px}
.d-liste .d-punkt{position:absolute;left:18px;top:18px}
.d-karte-titel{display:block;margin:4px 0 10px 44px;font-size:17px;font-weight:500}
.d-liste-kopf{display:flex;align-items:center;gap:12px;margin-bottom:6px}
.d-liste-kopf .d-karte-titel{margin-bottom:4px}
.d-suche{margin-left:auto;display:flex;align-items:center;gap:8px;height:38px;width:min(260px,100%);padding:0 12px;border-radius:12px;background:var(--flaeche);color:var(--muted)}
.d-suche:focus-within{box-shadow:inset 0 0 0 1.5px var(--text);color:var(--text)}
.d-suche svg{width:16px;height:16px;flex:none}
.d-suche input{flex:1;min-width:0;border:0;background:transparent;outline:none;font-size:14px;color:var(--text)}
.d-suche input::placeholder{color:var(--leise)}
.d-bilder-kopf{display:flex;justify-content:flex-end;margin-bottom:14px}
.d-bilder-kopf .d-suche{background:var(--weiss);box-shadow:var(--schatten)}
.d-zeile{display:grid;grid-template-columns:44px minmax(0,1fr) auto 86px;gap:12px;align-items:center;padding:9px 6px;border-radius:14px;color:var(--text);text-decoration:none}
.d-zeile:hover{background:var(--flaeche)}
.d-kachel{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;font-size:12px;color:var(--weiss);background:linear-gradient(150deg,hsl(var(--ton) 55% 70%),hsl(calc(var(--ton) + 40) 45% 42%))}
.d-name{min-width:0;color:var(--text);text-decoration:none}
.d-name b{display:block;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.d-name small{display:block;font-size:13px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.d-pfeil{width:34px;height:34px;border-radius:10px;background:var(--flaeche);display:grid;place-items:center}
.d-pfeil svg{width:15px;height:15px}
.d-zeile .werkzeug{justify-self:end;display:inline-flex;align-items:center;gap:4px;height:34px;padding:0 10px 0 14px;border-radius:10px;background:var(--flaeche);font-size:13px;color:var(--text);cursor:pointer;transition:background .15s,color .15s}
.d-zeile .werkzeug svg{width:15px;height:15px}
.d-zeile .werkzeug:hover,.d-zeile .werkzeug:focus-visible{background:var(--schwarz);color:var(--weiss);outline:none}
.d-bild .werkzeug-bild{cursor:pointer}
.d-bild .werkzeug-bild:hover,.d-bild .werkzeug-bild:focus-visible{background:var(--weiss);color:var(--text);outline:none}
.knopf.werkzeug svg{width:17px;height:17px}
.aufgabe-d{grid-template-columns:34px minmax(0,1fr)}
.d-haken{width:30px;height:30px;border-radius:50%;border:1.5px solid var(--schwarz);background:transparent;display:grid;place-items:center;cursor:pointer;padding:0;color:var(--weiss)}
.d-haken svg{width:15px;height:15px;opacity:0}
.d-haken:hover{background:var(--gruen-zart)}
.aufgabe-d.fertig .d-haken{background:var(--gruen);border-color:var(--gruen)}
.aufgabe-d.fertig .d-haken svg{opacity:1}
.aufgabe-d.fertig .d-name b{text-decoration:line-through;color:var(--muted)}
.d-bilder{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}
.d-bild{position:relative;height:250px;border-radius:var(--r-karte);overflow:hidden;color:var(--weiss);text-decoration:none;background:radial-gradient(120% 80% at 80% 10%,var(--glas-45),var(--glas-0) 55%),linear-gradient(160deg,hsl(var(--ton) 50% 72%) 0%,hsl(calc(var(--ton) + 30) 42% 52%) 55%,hsl(calc(var(--ton) + 60) 38% 32%) 100%);box-shadow:var(--schatten)}
.d-bild .d-punkt{position:absolute;left:16px;top:16px}
.d-bild .d-erweitern{position:absolute;right:16px;top:16px;background:var(--glas-25);color:var(--weiss);backdrop-filter:blur(8px)}
.d-bild-text{position:absolute;left:18px;right:18px;bottom:16px;text-shadow:0 1px 8px var(--text-schatten)}
.d-bild-text b{display:block;font-size:22px;font-weight:500;line-height:1.2}
.d-bild-text span{font-size:13px;opacity:.9}
.d-bild:hover .d-erweitern{background:var(--glas-40)}

/* ---------- Projektseite ---------- */
.zurueck{display:inline-flex;align-items:center;gap:6px;font-size:14px;color:var(--text);text-decoration:none;height:38px;padding:0 16px 0 12px;border-radius:12px;background:var(--rahmen-2)}
.projekt-kopf{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:18px 0 4px}
.projekt-kopf .rechts{margin-left:auto}
.projekt-daten{display:flex;flex-wrap:wrap;gap:6px 20px;font-size:14px;color:var(--muted);margin:6px 0 14px}
.projekt-daten b{color:var(--text);font-weight:500}
.dienste{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}
.dienst{display:inline-flex;align-items:center;gap:7px;font-size:13px;background:var(--weiss);border-radius:999px;padding:6px 14px 6px 12px;box-shadow:var(--schatten)}
.dienst::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--leise)}
.dienst.an::before{background:var(--gruen)}.dienst.aus::before{background:var(--rot)}
.dienst small{color:var(--muted)}
.balken-beschriftung{display:flex;gap:6px;font-size:13px;color:var(--muted);margin-bottom:8px}
.balken-beschriftung span,.balken span{flex:var(--anteil) 1 0;min-width:72px}
.balken{display:flex;gap:4px}
.balken span{height:30px;border-radius:6px;display:flex;align-items:center;padding:0 12px;font-size:13px;white-space:nowrap}
.verteilung{margin-bottom:20px}
.balken .backlog{background:var(--weiss);box-shadow:inset 0 0 0 1px var(--linie)}
.balken .naechstes{background:var(--gelb-d)}
.balken .arbeit{background:var(--schwarz);color:var(--weiss)}
.balken .erledigt{background:var(--gruen);color:var(--weiss)}
.brett{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:start}
.bahn{background:var(--glas-55);border-radius:var(--r-karte);padding:14px 12px 12px;display:flex;flex-direction:column;gap:8px;min-height:200px}
.bahn.ueber{background:var(--weiss);box-shadow:inset 0 0 0 2px var(--schwarz)}
.bahn-kopf{display:flex;align-items:baseline;gap:8px;padding:2px 6px 6px;font-size:16px;font-weight:500}
.bahn-kopf .zahl-gross{margin-left:auto;font-size:26px;font-weight:300;line-height:1}
.bahn-liste{display:flex;flex-direction:column;gap:8px;min-height:24px}
.zettel{background:var(--weiss);border-radius:var(--r-mittel);padding:12px 14px;font-size:15px;line-height:1.4;cursor:grab;overflow-wrap:anywhere;box-shadow:var(--schatten)}
.zettel:hover{box-shadow:0 0 0 1.5px var(--schwarz)}
.zettel.zieht{opacity:.35}
.zettel .mehr{display:-webkit-box;color:var(--muted);font-size:13px;margin-top:4px;white-space:pre-line;overflow:hidden;-webkit-line-clamp:3;-webkit-box-orient:vertical}
.bahn[data-spalte=naechstes] .zettel{background:var(--gelb-zart)}
.bahn[data-spalte=arbeit] .zettel{background:var(--schwarz);color:var(--weiss)}
.bahn[data-spalte=arbeit] .zettel .mehr{color:var(--leise-2)}
.bahn[data-spalte=erledigt] .zettel{background:transparent;color:var(--muted);text-decoration:line-through;box-shadow:none}
.marker{height:3px;border-radius:2px;background:var(--schwarz);margin:-2px 0}
.schnell{font-size:14px;height:42px;border:0;border-radius:var(--r-mittel);padding:0 14px;background:transparent;box-shadow:inset 0 0 0 1.5px var(--punkte);outline:none;width:100%}
.schnell::placeholder{color:var(--muted)}
.schnell:focus{background:var(--weiss);box-shadow:inset 0 0 0 1.5px var(--schwarz)}
.notiz-karte{margin-top:14px}
.notiz-karte small{color:var(--muted);font-size:13px}
textarea.notiz{min-height:200px}

/* ---------- Chat ---------- */
.chat{display:flex;flex-direction:column;height:calc(100vh - 190px);min-height:500px;padding:0;overflow:hidden}
.chat.voll{display:grid;grid-template-columns:280px minmax(0,1fr)}
.chat-haupt{display:flex;flex-direction:column;min-width:0;min-height:0}
.chat-kopf{display:flex;align-items:center;gap:10px;padding:16px 20px 10px;flex-wrap:wrap}
.chat-kopf h2{margin:0 6px 0 0;font-size:18px;font-weight:500}
.chat.voll .chat-kopf h2{display:none}
.chat-kopf select.eingabe{width:auto;max-width:260px;height:40px;font-size:14px}
.chat-kopf .rechts{margin-left:auto;display:flex;gap:6px;position:relative}
.schalter{display:inline-flex;align-items:center;gap:8px;font-size:14px;cursor:pointer;user-select:none;height:40px;padding:0 14px;border-radius:12px;background:var(--flaeche)}
.schalter input{accent-color:var(--schwarz);margin:0}
.verlauf-liste{position:absolute;right:0;top:48px;width:340px;max-height:440px;overflow:auto;background:var(--weiss);border-radius:var(--r-mittel);box-shadow:var(--schatten-gross);z-index:8;padding:8px}
.chat.voll .verlauf-liste{position:static;width:auto;max-height:none;background:var(--flaeche);border-radius:0;box-shadow:inset -1px 0 0 var(--linie);padding:16px 10px}
.chat.voll .verlauf-liste::before{content:"Verlauf";display:block;font-size:13px;color:var(--muted);padding:2px 10px 10px}
.verlauf-liste .eintrag{display:flex;align-items:center;gap:8px;padding:9px 12px;border-radius:12px;cursor:pointer;font-size:14px}
.verlauf-liste .eintrag:hover{background:rgba(20,20,20,.04)}
.verlauf-liste .eintrag.an{background:var(--weiss);box-shadow:var(--schatten);font-weight:500}
.verlauf-liste .eintrag .t{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.verlauf-liste .eintrag small{color:var(--muted);font-size:12px;white-space:nowrap}
.verlauf-liste .weg{border:0;background:transparent;color:var(--leise);cursor:pointer;font-size:16px;line-height:1;padding:2px 6px;border-radius:8px}
.verlauf-liste .weg:hover{color:var(--rot);background:var(--rot-zart)}
.verlauf-liste .leer{padding:10px}
.chat-titel{display:flex;align-items:center;gap:12px;margin:0 20px;padding:9px 0;font-size:14px;color:var(--muted);border-top:1px solid var(--linie);border-bottom:1px solid var(--linie)}
.chat-titel b{color:var(--text);font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-titel .link:first-of-type{margin-left:auto}
.nachrichten{flex:1;overflow-y:auto;padding:16px 20px;display:flex;flex-direction:column;gap:14px;min-height:0}
.nachrichten .leer{margin:auto;color:var(--leise);text-align:center}
.blase{max-width:80%;font-size:15px;line-height:1.6;overflow-wrap:anywhere}
.blase.user{align-self:flex-end;background:var(--schwarz);color:var(--weiss);border-radius:18px 18px 6px 18px;padding:10px 16px;white-space:pre-wrap}
.blase.assistant{align-self:flex-start;max-width:100%;background:var(--flaeche);border-radius:18px 18px 18px 6px;padding:13px 17px}
.blase.assistant .inhalt> :first-child{margin-top:0}
.blase.assistant .inhalt> :last-child{margin-bottom:0}
.blase.assistant p{margin:0 0 .7em}
.blase.assistant ul,.blase.assistant ol{margin:0 0 .7em;padding-left:1.3em}
.blase.assistant h4{margin:.9em 0 .4em;font-size:16px;font-weight:600}
.blase.assistant b{font-weight:600}
.blase.assistant code{background:rgba(20,20,20,.06);border-radius:6px;padding:1px 6px;font-size:13.5px}
.blase.assistant pre{background:var(--weiss);border-radius:var(--r-klein);padding:12px 14px;overflow-x:auto;margin:0 0 .7em}
.blase.assistant pre code{background:none;padding:0}
.blase.assistant table{border-collapse:collapse;margin:0 0 .7em;font-size:14px}
.blase.assistant td,.blase.assistant th{border-bottom:1px solid var(--linie);padding:5px 10px 5px 0;text-align:left;font-weight:400}
.blase.assistant th{color:var(--muted)}
.blase .fuss{display:flex;gap:12px;align-items:center;margin-top:8px;font-size:12px;color:var(--muted)}
.blase .fuss .link{font-size:12px}
.blase.fehler{align-self:flex-start;background:var(--rot-zart);color:var(--rot);border-radius:var(--r-klein);padding:10px 16px;font-size:14px}
.anhang-zeile{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.anhang{display:inline-flex;align-items:center;gap:7px;font-size:13px;background:var(--weiss);border-radius:12px;padding:5px 8px 5px 12px;max-width:280px;box-shadow:var(--schatten)}
.anhang .n{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.anhang small{color:var(--muted)}
.anhang.warn{background:var(--gelb-zart)}
.anhang button{border:0;background:transparent;cursor:pointer;color:var(--leise);font-size:16px;line-height:1;padding:0 3px}
.anhang button:hover{color:var(--rot)}
.denkt{align-self:flex-start;font-size:14px;color:var(--muted);display:flex;align-items:center;gap:10px}
.denkt::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--gruen);animation:puls-d 1s ease-in-out infinite}
@keyframes puls-d{50%{opacity:.25}}
.eingabe-bereich{padding:10px 16px 16px}
.eingabe-bereich .anhang-zeile{justify-content:flex-start;margin-bottom:8px}
.eingabe-bereich .reihe{display:flex;gap:10px;align-items:flex-end;background:var(--flaeche);border-radius:18px;padding:6px}
.eingabe-bereich textarea{flex:1;font-size:15px;line-height:1.5;border:0;background:transparent;padding:10px 6px;resize:none;min-height:44px;max-height:220px;outline:none}
.eingabe-bereich .rund{background:var(--weiss)}
.eingabe-bereich .rund.dunkel{background:var(--schwarz);color:var(--weiss)}
.eingabe-bereich .rund[disabled]{opacity:.4;cursor:not-allowed}
.chat-meldung{margin:0 20px 6px}

.pille-link{font-size:12.5px;border:0;border-radius:10px;background:var(--schwarz);color:var(--weiss);padding:6px 12px;cursor:pointer}

/* ---------- Dialog ---------- */
.schleier{position:fixed;inset:0;background:rgba(20,20,20,.3);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:20}
.dialog{background:var(--weiss);border-radius:var(--r-karte);box-shadow:var(--schatten-gross);width:520px;max-width:calc(100vw - 32px);padding:24px 26px;display:flex;flex-direction:column;gap:14px}
.dialog h3{margin:0;font-size:24px;font-weight:400}
.dialog .knoepfe{display:flex;gap:10px;margin-top:6px}
.dialog .knoepfe .links{margin-right:auto}

/* ---------- schmalere Bildschirme ---------- */
@media (max-width:1180px){
  .d-titel{left:26px;top:250px}
  .d-titel h1{font-size:64px}
  .d-kopf{min-height:500px}
  .d-tabs{left:26px;right:26px;overflow-x:auto}
  .d-start{grid-template-columns:1fr}
  .d-assistent{grid-column:1;grid-row:2;margin-top:0;min-height:0}
  .d-inhalt{grid-column:1;grid-row:3}
  .d-widgets,.d-widgets.vier{grid-template-columns:1fr 1fr}
  .brett{grid-template-columns:repeat(2,minmax(0,1fr))}
  .chat.voll{grid-template-columns:1fr}.chat.voll .verlauf-liste{max-height:170px;box-shadow:inset 0 -1px 0 var(--linie)}
}
@media (max-width:700px){
  body{grid-template-columns:minmax(0,1fr)}
  .leiste{display:none}
  #wurzel{grid-column:1}
  .kopf{flex-wrap:wrap;padding:12px 12px 0}
  .reiter{order:3;width:100%;flex-basis:100%}
  .neuer-chat kbd,.d-motiv{display:none}
  .d-start,.seite{padding:0 12px 24px}
  .d-widgets,.d-widgets.vier{grid-template-columns:1fr}
  .d-titel h1{font-size:48px}
  .brett{grid-template-columns:1fr}
}
.projekt-daten .fehlt{color:var(--rot-d)}

/* Ideenspeicher */
.ideen-seite{max-width:1080px}
.ideen-eingabe{display:flex;gap:12px;align-items:flex-end;margin-bottom:18px}
.ideen-eingabe textarea{flex:1;resize:vertical}
.ideen-liste{display:flex;flex-direction:column;gap:10px}
.idee{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;padding:16px 20px}
.idee-text{min-width:0}
.idee-text b{display:block;font-size:17px;font-weight:500}
.idee-text p{margin:4px 0 2px;font-size:14px;white-space:pre-line;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;color:var(--muted)}
.idee-text small{font-size:12.5px;color:var(--muted)}
.idee-knoepfe{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;align-items:center}
.idee.ist-projekt .idee-text{opacity:.7}
.idee-projekt{display:inline-flex;align-items:center;gap:6px;font-size:14px;color:inherit;text-decoration:none;padding:0 12px;height:38px;border-radius:14px;background:var(--flaeche)}
.idee-projekt svg{width:15px;height:15px}
.idee-weg,.projekt-weg{color:var(--rot)!important}
.ideen-abschnitt{font-size:15px;font-weight:400;color:var(--muted);margin:18px 4px 2px}
.kurzmeldung{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);z-index:30;padding:12px 22px;border-radius:14px;font-size:15px;background:var(--schwarz);color:var(--weiss);box-shadow:var(--schatten-gross);animation:kurz 2.6s ease forwards}
@keyframes kurz{0%{opacity:0;transform:translate(-50%,8px)}10%,85%{opacity:1;transform:translate(-50%,0)}100%{opacity:0}}
@media (max-width:700px){.idee{grid-template-columns:1fr}.idee-knoepfe{justify-content:flex-start}.ideen-eingabe{flex-direction:column;align-items:stretch}}
.idee{background:var(--weiss);border-radius:var(--r-mittel);box-shadow:var(--schatten)}

@media (max-width:700px){.d-liste-kopf{flex-wrap:wrap}.d-liste-kopf .d-suche{margin-left:0;width:100%}.d-bilder-kopf .d-suche{width:100%}}

/* ---- Bilder: Profil, Projekt ---- */
.rund.mit-bild{background-size:cover;background-position:center;background-color:var(--rahmen-2)}
.d-kachel.mit-bild,.d-vorschau.mit-bild{background:var(--bild) center/contain no-repeat,var(--weiss);box-shadow:inset 0 0 0 1px var(--linie)}
.d-vorschau.mit-bild{box-shadow:0 0 0 2px var(--glas-55)}
.d-bild.mit-bild{background:linear-gradient(180deg,var(--bild-oben) 45%,var(--bild-unten) 100%),var(--bild) center/cover,var(--rahmen-2)}
.projekt-bild{width:56px;height:56px;border-radius:14px;border:1.5px dashed var(--punkte);background:transparent;color:var(--muted);display:grid;place-items:center;cursor:pointer;flex:none;padding:0}
.projekt-bild svg{width:20px;height:20px}
.projekt-bild:hover{border-color:var(--text);color:var(--text)}
.projekt-bild.mit-bild{border:0;background-color:var(--weiss);background-size:contain;background-repeat:no-repeat;background-position:center;box-shadow:var(--schatten)}
.projekt-bild.mit-bild:hover{box-shadow:0 0 0 2px var(--text)}
.projekt-kopf > .link{font-size:13px;color:var(--muted)}

/* ---------- Anmeldung, Passkey-Fenster ---------- */
.anmelde-seite{grid-column:1/-1;display:grid;place-items:center;min-height:70vh;padding:24px}
.karte.anmelden{width:min(420px,100%);display:grid;gap:14px;padding:28px;background:var(--weiss);border-radius:var(--r-karte);box-shadow:var(--schatten)}
.fenster-hinter{position:fixed;inset:0;background:rgba(20,20,20,.35);display:grid;place-items:center;z-index:50;padding:16px}
.fenster{width:min(480px,100%);display:grid;gap:12px;padding:24px;background:var(--weiss);border-radius:var(--r-karte);box-shadow:var(--schatten-gross)}
.passkey-zeile{display:grid;grid-template-columns:1fr auto;gap:2px 12px;padding:10px 0;border-bottom:1px solid var(--linie)}
.passkey-zeile small{grid-column:1;color:var(--muted)}
.passkey-zeile .link{grid-row:1/3;grid-column:2;align-self:center}
.fenster-knoepfe{display:flex;gap:10px;justify-content:flex-end}

a.d-widget{color:inherit;text-decoration:none}
