/* ============================================================================
 * GES · Projeler — Panel-Styles v2 (Leiste + Meilenstein-Ansicht)
 * Nur geteilte Tokens (--surface/--surface2/--line/--text/--muted/--gold/--green/
 * --blue/--red/--orange) → hell+dunkel automatisch.
 * ==========================================================================*/
#pvProjectsPage { flex-direction: column !important; }
/* Section-Chrome nullen → keine Padding-Kopplung, kein äußerer Doppel-Scroll. */
#pvProjectsPage.section-shell { padding: 0 !important; min-height: 0 !important; }
/* #gesProjeler füllt exakt eine Schirmhöhe mit eigenem Innenabstand; beide Spalten scrollen intern. */
#gesProjeler {
  align-self: stretch; width: 100%; min-width: 0;
  height: 100dvh; max-height: 100dvh; min-height: 0;
  box-sizing: border-box; padding: 16px 18px;
  display: flex; overflow: hidden;
}
.ges-proj { display: flex; flex-direction: column; min-height: 0; width: 100%; color: var(--text); }
.ges-proj2 { flex: 1 1 auto; flex-direction: row; gap: 14px; min-height: 0; min-width: 0; overflow: hidden; }
.ges-proj .pj-ic { width: 16px; height: 16px; flex: 0 0 auto; }

.pj-loading, .pj-error, .pj-empty { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 48px 16px; color: var(--muted); text-align: center; }
.pj-loading .pj-ic, .pj-empty .pj-ic { width: 30px; height: 30px; opacity: .6; }
.pj-error { color: var(--red); }

/* ── Leiste (links) ── */
.pj-leiste { flex: 0 0 460px; display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.pj-leiste-top { display: flex; gap: 6px; align-items: center; padding: 10px; border-bottom: 1px solid var(--line); }
.pj-search { flex: 1; }
.pj-search input { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface2); color: var(--text); font-size: 13px; }
/* „Yeni proje" — bewusst hervorgehoben (Gold-Pille wie .pj-btn-primary/„+ Görev", User-Wunsch 18.07.). */
.pj-newproj { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--gold); background: var(--gold); color: #201800; font-weight: 800; font-size: 12.5px; cursor: pointer; box-shadow: 0 2px 8px color-mix(in srgb, var(--gold) 40%, transparent); }
.pj-newproj:hover { filter: brightness(1.06); }
.pj-newproj .pj-ic { width: 14px; height: 14px; }
.pj-newproj span { white-space: nowrap; }
.pj-phases { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 10px; }
.pj-phase { display: flex; flex-direction: column; }
.pj-phase-head { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border: 0; border-left: 3px solid var(--pj-ph, var(--line)); background: var(--surface2); border-radius: 7px; cursor: pointer; color: var(--text); }
.pj-phase-head .pj-ic { color: var(--pj-ph, var(--text)); }
.pj-phase-title { flex: 1; text-align: left; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .3px; color: var(--pj-ph, var(--text)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-phase-count { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--surface); border-radius: 999px; padding: 1px 8px; }
.pj-p { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 8px 7px 14px; border: 0; background: transparent; cursor: pointer; border-radius: 8px; text-align: left; color: var(--text); }
.pj-p:hover { background: var(--surface2); }
.pj-p-sel { background: color-mix(in srgb, var(--gold) 16%, transparent); box-shadow: inset 0 0 0 1px var(--gold); }
.pj-p-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pj-p-nm { font-size: 13px; font-weight: 600; line-height: 1.28; white-space: normal; overflow-wrap: anywhere; color: var(--text); }
.pj-p-date { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.pj-p-date .pj-ic { width: 11px; height: 11px; }
.pj-sortrow { display: flex; align-items: center; gap: 6px; padding: 6px 10px 0; color: var(--muted); }
.pj-sortrow > .pj-ic { width: 15px; height: 15px; flex: 0 0 auto; }
.pj-sortsel { flex: 1; min-width: 0; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 12px; font-weight: 600; font-family: inherit; cursor: pointer; }
.pj-created { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.pj-created .pj-ic { width: 13px; height: 13px; }
.pj-leiste-h { flex: 1; display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 13px; color: var(--text); }
.pj-leiste-h .pj-ic { width: 15px; height: 15px; color: var(--muted); }
.pj-phase-search { display: flex; align-items: center; gap: 6px; margin: 2px 4px 7px; padding: 5px 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }
.pj-phase-search .pj-ic { width: 13px; height: 13px; color: var(--muted); flex: 0 0 auto; }
.pj-phase-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font-size: 12px; font-family: inherit; outline: none; }
.pj-actlist { display: flex; flex-direction: column; gap: 4px; }
.pj-act-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); cursor: pointer; color: var(--text); }
.pj-act-row:hover { border-color: var(--gold); background: var(--surface2); }
.pj-act-user { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; min-width: 118px; font-size: 12px; font-weight: 700; color: var(--muted); }
.pj-act-user .pj-ic { width: 13px; height: 13px; }
.pj-act-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pj-act-main b { font-size: 13px; font-weight: 700; color: var(--text); }
.pj-act-main small { font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; }
.pj-act-time { flex: 0 0 auto; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pj-rap-head { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; margin-bottom: .5rem; }
.pj-rap-head b { font-size: 15px; font-weight: 800; color: var(--text); }
.pj-rap-head span { font-size: 12px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.pj-rap-desc { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-bottom: .8rem; }
.pj-rap-hint { font-size: 12px; color: var(--muted); font-style: italic; }
.pj-rap-linkrow { display: flex; gap: 6px; }
.pj-rap-linkrow input { flex: 1; min-width: 0; }
.pj-rap-phones { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; color: var(--text); font-weight: 600; }
.pj-rap-phones .pj-ic { width: 14px; height: 14px; color: var(--muted); }
.pj-phrow { display: flex; gap: 6px; margin-bottom: 6px; }
.pj-phrow input { flex: 1; min-width: 0; }
.pj-addrow-sm { margin-top: 2px; padding: 5px 10px; font-size: 12px; }
.pj-files { padding: 6px 12px 2px; }
.pj-files-h { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.pj-files-h .pj-ic { width: 14px; height: 14px; }
.pj-files-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.pj-file-img { display: block; width: 84px; height: 84px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.pj-file-img img { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--surface2); }
.pj-file-doc { display: inline-flex; align-items: center; gap: 6px; max-width: 220px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-size: 12px; font-weight: 600; }
.pj-file-doc .pj-ic { width: 15px; height: 15px; flex: 0 0 auto; color: var(--red); }
.pj-file-doc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-file:hover { border-color: var(--gold); }
/* Beleg + Loeschknopf: der Knopf liegt in der Ecke der Kachel und erscheint beim
   Ueberfahren — sonst wuerde er die Vorschau ueberdecken. Auf Touch (kein Hover)
   bleibt er dauerhaft sichtbar, sonst waere er dort nicht erreichbar. */
.pj-file-wrap { position: relative; display: inline-flex }
.pj-file-del { position: absolute; top: 3px; right: 3px; padding: 3px; border-radius: 7px;
  background: var(--surface); border: 1px solid var(--line); opacity: 0; transition: opacity .12s ease }
.pj-file-wrap:hover .pj-file-del, .pj-file-del:focus-visible { opacity: 1 }
@media (hover: none) { .pj-file-del { opacity: 1 } }
/* Hinweiszeile unter der Dateiauswahl im Notiz-Dialog */
.pj-hint { margin-top: 5px; font-size: 11.5px; color: var(--muted); line-height: 1.4 }
.pj-p-prog { position: relative; flex: 0 0 44px; height: 6px; border-radius: 4px; background: var(--surface2); overflow: hidden; }
.pj-p-prog i { position: absolute; inset: 0 auto 0 0; background: var(--green); border-radius: 4px; }
.pj-p-pct { flex: 0 0 auto; font-size: 11px; font-weight: 700; color: var(--muted); min-width: 34px; text-align: right; }
.pj-p-empty { padding: 8px 14px; color: var(--muted); font-size: 12px; }

/* ── Detail (rechts) ── */
.pj-detail { flex: 1; min-width: 0; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
.pj-dhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 4px 4px 14px; border-bottom: 1px solid var(--line); }
.pj-dhead-l { min-width: 0; }
.pj-dhead-l h2 { margin: 0 0 8px; font-size: 20px; font-weight: 800; color: var(--text); }
.pj-dmeta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.pj-dmeta b { color: var(--text); font-weight: 800; }
.pj-phasesel { padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 12px; font-weight: 600; }
.pj-phase-badge { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pj-cust { display: inline-flex; align-items: center; gap: 5px; }
.pj-cust .pj-ic { width: 14px; height: 14px; }
.pj-kpi { white-space: nowrap; }
.pj-kpi-bar { position: relative; display: inline-block; width: 120px; height: 8px; border-radius: 5px; background: var(--surface2); overflow: hidden; }
.pj-kpi-bar i { position: absolute; inset: 0 auto 0 0; background: var(--green); border-radius: 5px; }
.pj-dhead-r { display: flex; gap: 8px; align-items: center; }

/* ── Buttons ── */
.pj-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 600; font-size: 13px; cursor: pointer; }
.pj-btn:hover { background: var(--surface2); }
.pj-btn-primary { background: var(--gold); border-color: var(--gold); color: #201800; }
.pj-btn-primary:hover { filter: brightness(1.05); }
.pj-btn.pj-danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, var(--line)); background: transparent; }
.pj-btn.pj-danger:hover { background: color-mix(in srgb, var(--red) 12%, transparent); }
.pj-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; }
.pj-iconbtn:hover { background: var(--surface2); color: var(--text); }
.pj-iconbtn.pj-danger:hover { color: var(--red); }

/* ── Meilenstein-Liste ── */
.pj-mslist { display: flex; flex-direction: column; padding-top: 6px; }
/* Letzte Spalte breit genug fuer ALLE Aktionsknoepfe (4 x 30px + Abstaende). Vorher standen
   52px fuer drei Knoepfe da — der Rest lief nach links ins Datumsfeld hinein. */
.pj-ms { display: grid; grid-template-columns: 28px minmax(200px, 1fr) 160px 120px 128px; align-items: center; gap: 12px; padding: 9px 6px; border-top: 1px solid var(--line); }
.pj-ms-head { border-top: 0; }
.pj-ms-head .pj-ms-num, .pj-ms-head > div { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 700; }
.pj-mslist > .pj-ms:not(.pj-ms-head) { cursor: pointer; }
.pj-mslist > .pj-ms:not(.pj-ms-head):hover { background: var(--surface2); }
.pj-ms-num { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.pj-ms-name { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
/* Titelzeile: Büroklammer (nur bei Anhängen) links vor dem Titel. Vorher sass sie rechts
   bei den Aktionen und ueberlappte dort das Datumsfeld. */
.pj-ms-nrow { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pj-ms-title { font-weight: 600; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pj-clip-lead, .pj-hist-lead { flex: 0 0 auto; padding: 1px 5px; gap: 3px; }
.pj-clip-lead .pj-ic { width: 13px; height: 13px; color: var(--gold); }
.pj-clip-lead b, .pj-hist-lead b { font-size: 10.5px; font-weight: 800; }
/* Verlauf: bei jedem Schritt vorhanden, deshalb zurueckhaltend — er soll den Titel nicht
   ueberstrahlen, aber beim Ueberfahren klar als Schaltflaeche erkennbar sein. */
.pj-hist-lead .pj-ic { width: 13px; height: 13px; color: var(--muted); opacity: .6; }
.pj-hist-lead:hover .pj-ic { opacity: 1; color: var(--gold); }
.pj-hist-lead b { color: var(--muted); }
/* Inline-Datepicker in der Tarih-Spalte — klickbar, öffnet den nativen Kalender */
.pj-ms-dateinp { width: 100%; max-width: 130px; border: 1px solid transparent; background: transparent; color: var(--text); font: inherit; font-size: 12px; padding: 4px 6px; border-radius: 8px; cursor: pointer; }
.pj-ms-dateinp:hover { border-color: var(--line); background: var(--surface); }
.pj-ms-dateinp:focus { outline: none; border-color: var(--gold); background: var(--surface); }
.pj-ms-dateinp::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .55; }
.pj-ms-dateinp:hover::-webkit-calendar-picker-indicator { opacity: .9; }
@media (prefers-color-scheme: dark) { .pj-ms-dateinp::-webkit-calendar-picker-indicator { filter: invert(1); } }
/* Eingetragener Termin hebt sich ab. Ohne Wert zeigt das Feld nur die Maske „gg.aa.yyyy",
   die sich vom echten Datum kaum unterschied — genau darum ging es. */
.pj-ms-date.pj-has-date .pj-ms-dateinp { font-weight: 800; color: var(--text); background: rgba(56,189,248,.10); border-color: rgba(56,189,248,.35); }
.pj-ms-date.pj-has-date .pj-ms-dateinp::-webkit-calendar-picker-indicator { opacity: .85; }
.pj-ms-date:not(.pj-has-date) .pj-ms-dateinp { color: var(--muted); opacity: .5; font-weight: 500; }
.pj-ms-date:not(.pj-has-date) .pj-ms-dateinp:hover { opacity: 1; }
/* Frist ueberschritten, Schritt noch offen → rot. Ein erledigter Schritt bleibt neutral. */
.pj-ms-date.pj-date-late .pj-ms-dateinp { color: #b91c1c; background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.4); }
@media (prefers-color-scheme: dark) { .pj-ms-date.pj-date-late .pj-ms-dateinp { color: #fca5a5; } }
.pj-ms-date .pj-datev { font-weight: 800; }
/* Değişiklik geçmişi */
.pj-histbtn .pj-ic { color: var(--muted); }
.pj-histlist { display: flex; flex-direction: column; gap: 2px; }
.pj-hist-row { display: grid; grid-template-columns: 122px 1fr auto; gap: 10px; align-items: start; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.pj-hist-row:last-child { border-bottom: 0; }
.pj-hist-when { font-size: 11.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pj-hist-line { font-size: 13px; }
.pj-hist-arrow { color: var(--muted); margin: 0 2px; }
.pj-hist-note { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.pj-hist-who { font-size: 11.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.pj-hist-foot { font-size: 11.5px; color: var(--muted); }
.pj-hist-hint { font-size: 12px; color: var(--muted); padding: 10px 12px; background: var(--surface-2, rgba(148,163,184,.08)); border-radius: 10px; margin-bottom: 8px; line-height: 1.5; }
.pj-hist-row.pj-hist-first { background: rgba(45,212,191,.07); }
.pj-hist-row.pj-hist-first .pj-hist-line b { color: #0d9488; }
@media (prefers-color-scheme: dark) { .pj-hist-row.pj-hist-first .pj-hist-line b { color: #5eead4; } }
@media (max-width: 640px) { .pj-hist-row { grid-template-columns: 1fr; gap: 3px; } .pj-hist-who { text-align: right; } }
.pj-ms-note { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; background: transparent; border: 0; padding: 0; cursor: pointer; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.pj-ms-note .pj-ic { width: 12px; height: 12px; flex: 0 0 auto; color: var(--gold); }
.pj-ms-note > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-ms-note:hover { color: var(--text); }
.pj-notebtn { position: relative; }
.pj-notebtn > b { position: absolute; top: -2px; right: -2px; font-size: 9px; font-weight: 800; background: var(--gold); color: #201800; border-radius: 999px; min-width: 13px; height: 13px; line-height: 13px; text-align: center; padding: 0 2px; }
.pj-notebtn.pj-on { color: var(--text); background: var(--surface2); }
/* Notiz-Verlauf (Güncellemeler) */
.pj-ms-thread { background: var(--surface2); border-top: 1px solid var(--line); padding: 8px 12px 10px 44px; display: flex; flex-direction: column; gap: 8px; }
.pj-up { border-left: 2px solid var(--gold); padding: 2px 0 2px 10px; }
.pj-up-head { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.pj-up-head b { color: var(--text); font-weight: 700; }
.pj-up-del { width: 22px; height: 22px; margin-left: auto; }
.pj-up-del .pj-ic { width: 13px; height: 13px; }
.pj-up-text { font-size: 12.5px; color: var(--text); line-height: 1.4; white-space: pre-wrap; margin-top: 1px; }
.pj-up-empty { font-size: 12px; color: var(--muted); }
.pj-addnote { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 6px 10px; border-radius: 8px; border: 1px dashed var(--line); background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; }
.pj-addnote:hover { color: var(--text); border-color: var(--gold); }
.pj-modal-sub { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.pj-pill { display: inline-block; max-width: 100%; padding: 4px 10px; border-radius: 999px; border: 0; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj-pill:hover { filter: brightness(1.06); }
.pj-pill-empty { background: var(--surface2); color: var(--muted); font-weight: 600; }
.pj-ms-prog .pj-bar { position: relative; height: 7px; border-radius: 5px; background: var(--surface2); overflow: hidden; }
.pj-ms-prog .pj-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 5px; }
.pj-datev { display: inline-flex; align-items: center; gap: 4px; color: var(--text); font-size: 12px; }
.pj-datev .pj-ic { width: 13px; height: 13px; color: var(--muted); }
.pj-muted { color: var(--muted); }
.pj-ms-act { display: flex; justify-content: flex-end; gap: 2px; }
.pj-addrow { display: inline-flex; align-items: center; gap: 6px; margin: 10px 6px; align-self: flex-start; padding: 7px 12px; border-radius: 8px; border: 1px dashed var(--line); background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; }
.pj-addrow:hover { color: var(--text); border-color: var(--gold); }

/* ── „Gerekli değil": Schritte, die diese Anlage nicht braucht (z.B. SCADA ohne Fernüberwachung) ──
   Sie sind standardmaessig ausgeblendet und zaehlen nirgends mit. Eingeblendet stehen sie blass
   an ihrem Platz in der Reihenfolge — sichtbar vorhanden, aber klar nicht Teil des Ablaufs. */
.pj-ms-pasif { opacity: .55; background: repeating-linear-gradient(135deg, transparent 0 9px, color-mix(in srgb, var(--muted) 7%, transparent) 9px 18px); }
.pj-ms-pasif:hover { opacity: .8; }
.pj-ms-pasif .pj-ms-title { color: var(--muted); font-weight: 500; }
.pj-ms-pasif-tag { flex: 0 0 auto; font-size: 10px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface2); color: var(--muted); white-space: nowrap; }
.pj-pasifbar { display: inline-flex; align-items: center; gap: 7px; margin: 8px 6px 0; align-self: flex-start; padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface2); color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; }
.pj-pasifbar:hover { color: var(--text); border-color: var(--gold); }
.pj-pasifbar .pj-ic { width: 14px; height: 14px; }
.pj-pasifbar.pj-on { color: var(--text); }

/* ── Popover ── */
.pj-pop { position: fixed; z-index: 9600; width: 200px; max-height: 260px; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px; box-shadow: 0 12px 30px rgba(0,0,0,.28); display: flex; flex-direction: column; gap: 4px; }
.pj-pop-opt { display: block; width: 100%; text-align: left; padding: 6px 10px; border-radius: 7px; border: 0; font-size: 12px; font-weight: 700; cursor: pointer; }
.pj-pop-opt:hover { filter: brightness(1.06); }
.pj-pop-durum { width: 216px; max-height: 320px; }
.pj-pop-new { display: flex; align-items: center; gap: 6px; width: 100%; text-align: left; padding: 7px 10px; margin-top: 2px; border-radius: 7px; border: 1px dashed var(--line); background: var(--surface2); color: var(--text); font-size: 12px; font-weight: 700; cursor: pointer; }
.pj-pop-new:hover { border-color: var(--gold); }
.pj-pop-new .pj-ic { width: 13px; height: 13px; color: var(--gold); }
/* klickbare GÜNCEL-DURUM-Pills + leere Platzhalter + Farb-Auswahl */
button.pj-dcard-pill { border: 0; cursor: pointer; font-family: inherit; }
button.pj-dcard-pill:hover { filter: brightness(1.06); }
.pj-dcard-pill-empty { background: var(--surface2); color: var(--muted); border: 1px dashed var(--line); }
.pj-dcard-pill-empty:hover { border-color: var(--gold); color: var(--text); filter: none; }
.pj-clrrow { display: flex; flex-wrap: wrap; gap: 6px; }
.pj-clr { cursor: pointer; }
.pj-clr input { position: absolute; opacity: 0; width: 0; height: 0; }
.pj-clr span { display: block; width: 24px; height: 24px; border-radius: 7px; border: 2px solid transparent; box-sizing: border-box; }
.pj-clr input:checked + span { border-color: var(--text); box-shadow: 0 0 0 2px var(--gold); }

/* ── Modal ── */
.pj-modal-bg { position: fixed; inset: 0; z-index: 9700; background: rgba(4,8,16,.55); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow: auto; }
.pj-modal { width: 100%; max-width: 520px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.4); overflow: hidden; }
.pj-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pj-modal-head h3 { margin: 0; font-size: 16px; font-weight: 800; color: var(--text); }
.pj-modal-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.pj-modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--surface2); }
.pj-foot-r { display: flex; gap: 8px; }
.pj-field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; }
.pj-field > span { color: var(--muted); font-weight: 700; }
.pj-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pj-input { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 13px; font-family: inherit; }
.pj-input:focus { outline: none; border-color: var(--gold); }
textarea.pj-input { resize: vertical; }
.pj-pill-sm { font-size: 11px; padding: 2px 8px; cursor: default; }

/* ── Dashboard (Kontrol Paneli) ── */
.pj-dashbtn { display: flex; align-items: center; gap: 8px; margin: 0 10px 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface2); color: var(--text); font-weight: 700; font-size: 13px; cursor: pointer; }
.pj-dashbtn:hover { border-color: var(--gold); }
.pj-dashbtn-on { background: color-mix(in srgb, var(--gold) 18%, transparent); border-color: var(--gold); }
.pj-dashbtn span { text-transform: uppercase; letter-spacing: .4px; }
.pj-dashbtn .pj-ic { width: 16px; height: 16px; flex: 0 0 auto; color: var(--gold); }

/* Drag & Drop: Grip in der #-Spalte + Drop-Marken */
.pj-ms-grip { position: relative; cursor: grab; display: flex; align-items: center; justify-content: center; }
.pj-ms-grip:active { cursor: grabbing; }
.pj-ms-grip .pj-numn { transition: opacity .12s; }
.pj-ms-grip .pj-ic { position: absolute; width: 16px; height: 16px; color: var(--muted); opacity: 0; transition: opacity .12s; pointer-events: none; }
.pj-mslist > .pj-ms:hover .pj-ms-grip .pj-numn { opacity: 0; }
.pj-mslist > .pj-ms:hover .pj-ms-grip .pj-ic { opacity: .85; }
.pj-dragging { opacity: .45; }
.pj-drop-before { box-shadow: inset 0 2px 0 0 var(--gold); }
.pj-drop-after { box-shadow: inset 0 -2px 0 0 var(--gold); }
/* Ganze Phase als Ablageziel (Projekt in eine ANDERE Phase ziehen) — auch zugeklappt oder leer */
.pj-phase-body { display: flex; flex-direction: column; }
.pj-phase.pj-phase-drop { border-radius: 9px; box-shadow: inset 0 0 0 2px var(--pj-ph, var(--gold)); background: color-mix(in srgb, var(--pj-ph, var(--gold)) 7%, transparent); }
/* Durum-Karte im Drag: leicht angehoben/gekippt → „ich hänge am Cursor" */
.pj-dcard.pj-dragging { opacity: .5; transform: scale(.97) rotate(-1deg); box-shadow: 0 8px 20px rgba(15,23,42,.18); }
/* Präzise Einfüge-Marke zwischen Durum-Karten (kräftiger Balken statt nur Gruppen-Rahmen) */
.pj-dcard.pj-drop-before { box-shadow: -6px 0 0 -2px var(--gold); }
.pj-dcard.pj-drop-after { box-shadow: 6px 0 0 -2px var(--gold); }
/* Projekt-Grip in der Leiste */
.pj-p-grip { flex: 0 0 auto; display: inline-flex; align-items: center; cursor: grab; color: var(--muted); opacity: 0; margin-left: -6px; transition: opacity .12s; }
.pj-p-grip:active { cursor: grabbing; }
.pj-p-grip .pj-ic { width: 14px; height: 14px; }
.pj-p:hover .pj-p-grip { opacity: .7; }

/* Güncel Durum — Kanban 1:1 aus monday */
.pj-durum { gap: 0; }
.pj-durum-head { padding: 2px 2px 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pj-durum-headbtns { display: flex; gap: 8px; flex: 0 0 auto; align-self: center; }
.pj-durum-toggleall { flex: 0 0 auto; }
.pj-durum-toggleall .pj-ic { width: 14px; height: 14px; }
.pj-durum-head h2 { margin: 0 0 4px; display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 800; color: var(--text); }
.pj-durum-head h2 .pj-ic { width: 20px; height: 20px; color: var(--gold); }
.pj-durum-sub { color: var(--muted); font-size: 12.5px; }
/* vertikal gestapelte Aşama-Bänder (untereinander), Karten fließen horizontal + Drag zwischen Gruppen */
.pj-durum-board { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; overflow-x: hidden; padding-bottom: 8px; }
.pj-dcol { width: 100%; background: var(--surface2); border: 1px solid var(--line); border-left: 3px solid var(--pj-gc, #579bfc); border-radius: 10px; display: flex; flex-direction: column; }
.pj-dcol.pj-durum-drop { box-shadow: inset 0 0 0 2px var(--gold); transition: box-shadow .12s ease; }
.pj-dcol.pj-durum-drop { background: color-mix(in srgb, var(--gold) 5%, transparent); }
/* leerer Gruppenraum als Drop-Ziel: gestrichelter Rahmen im Body zeigt „hier landet die Karte" */
.pj-dcol-body.pj-dcol-body-drop { outline: 2px dashed var(--gold); outline-offset: -3px; border-radius: 8px; }
/* Gruppen-Header eingefärbt (Bereiche besser unterscheidbar) */
.pj-dcol-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--surface2); border-radius: 9px 9px 0 0; cursor: pointer; user-select: none; }
.pj-dcol-head:hover { background: color-mix(in srgb, var(--text) 8%, var(--surface2)); }
.pj-dcol-edit { flex: 0 0 auto; display: inline-flex; align-items: center; background: transparent; border: 0; cursor: pointer; color: var(--muted); padding: 2px; border-radius: 6px; opacity: 0; transition: opacity .12s; }
.pj-dcol-head:hover .pj-dcol-edit { opacity: .7; }
.pj-dcol-edit:hover { opacity: 1; color: var(--gold); }
.pj-dcol-edit .pj-ic { width: 14px; height: 14px; }
/* Aşama-Griff: ganze Gruppe verschieben (Archiv bleibt unten, bekommt daher keinen Griff) */
.pj-dcol-grip { flex: 0 0 auto; display: inline-flex; align-items: center; color: var(--muted);
  cursor: grab; padding: 2px; border-radius: 6px; opacity: 0; transition: opacity .12s; }
.pj-dcol-head:hover .pj-dcol-grip { opacity: .65; }
.pj-dcol-grip:hover { opacity: 1; color: var(--gold); }
.pj-dcol-grip:active { cursor: grabbing; }
.pj-dcol-grip .pj-ic { width: 14px; height: 14px; }
@media (hover: none) { .pj-dcol-grip { opacity: .65 } }
.pj-dcol.pj-dragging { opacity: .5; }
.pj-dcol.pj-drop-before { box-shadow: inset 0 3px 0 0 var(--gold); }
.pj-dcol.pj-drop-after { box-shadow: inset 0 -3px 0 0 var(--gold); }
.pj-dcol-caret { flex: 0 0 auto; display: inline-flex; background: transparent; border: 0; cursor: pointer; color: var(--muted); padding: 0; }
.pj-dcol-caret .pj-ic { width: 15px; height: 15px; }
.pj-dcol-title { flex: 1; font-weight: 800; font-size: 14.5px; letter-spacing: .3px; color: var(--text); line-height: 1.3; }
.pj-dcol-count { flex: 0 0 auto; min-width: 22px; text-align: center; padding: 1px 7px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 11px; font-weight: 700; color: var(--muted); }
.pj-dcol-add { flex: 0 0 auto; display: inline-flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 3px 6px; cursor: pointer; color: var(--text); }
.pj-dcol-add:hover { border-color: var(--gold); }
.pj-dcol-add .pj-ic { width: 13px; height: 13px; }
/* Görev-Pager + Zähler-Badge */
.pj-pager { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--muted); }
.pj-pager .pj-iconbtn[disabled] { opacity: .35; cursor: default; }
.pj-count-badge { min-width: 20px; text-align: center; padding: 1px 7px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line); font-size: 11px; font-weight: 800; color: var(--muted); }
/* „Tümünü gör" — max 5 im Panel, Rest im Overlay (Kontrol Paneli bleibt einseitig) */
.pj-showall { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; box-sizing: border-box; padding: 9px; border: 1px dashed var(--line); border-radius: 8px; background: var(--surface2); color: var(--text); font-size: 12px; font-weight: 700; cursor: pointer; }
.pj-showall:hover { border-color: var(--gold); }
.pj-showall .pj-ic { width: 14px; height: 14px; color: var(--gold); }
.pj-dash-panel > .pj-showall { width: calc(100% - 24px); margin: 4px 12px 12px; }
/* „Tamamlanan görevler" — auffälliger Block-Button direkt unter Görevler (grün wie die Görevler-Karte, mit Zähler-Pill) */
.pj-donetasks { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; box-sizing: border-box; margin: 0; padding: 12px 14px; border: 1px solid color-mix(in srgb, #00c875 45%, var(--line)); border-radius: 12px; background: color-mix(in srgb, #00c875 14%, var(--surface)); color: var(--text); font-size: 13.5px; font-weight: 800; cursor: pointer; transition: background .15s, border-color .15s, transform .12s; }
.pj-donetasks:hover { background: color-mix(in srgb, #00c875 22%, var(--surface)); border-color: #00c875; transform: translateY(-1px); }
.pj-donetasks .pj-ic { width: 16px; height: 16px; color: #00c875; }
.pj-donetasks .pj-done-n { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 7px; margin-left: 2px; border-radius: 999px; background: #00c875; color: #fff; font-size: 11.5px; font-weight: 800; }
.pj-listmodal { display: flex; flex-direction: column; max-height: 62vh; overflow-y: auto; }
/* Kontrol-Paneli: unterschiedliche Header-Hintergründe je Bereich */
.pj-dp-dates .pj-dash-panel-h { background: color-mix(in srgb, #fdab3d 16%, var(--surface)); }
.pj-dp-steps .pj-dash-panel-h { background: color-mix(in srgb, #007eb5 16%, var(--surface)); }
.pj-dp-tasks .pj-dash-panel-h { background: color-mix(in srgb, #00c875 16%, var(--surface)); }
.pj-dp-notes .pj-dash-panel-h { background: color-mix(in srgb, #9d50dd 16%, var(--surface)); }
.pj-dp-cal .pj-dash-panel-h { background: color-mix(in srgb, #4eccc6 18%, var(--surface)); }
/* Arşiv-Suchfeld in der GÜNCEL-DURUM-Archivgruppe */
.pj-durum-search { flex: 0 0 100%; display: flex; align-items: center; gap: 7px; padding: 6px 10px; margin-bottom: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.pj-durum-search .pj-ic { width: 15px; height: 15px; color: var(--muted); flex: 0 0 auto; }
.pj-durum-search input { flex: 1; border: 0; background: transparent; color: var(--text); font-size: 13px; font-family: inherit; outline: none; }
.pj-dcol-body { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; padding: 10px; min-height: 46px; }
.pj-dcol-empty { color: var(--muted); font-size: 12px; padding: 6px 4px; opacity: .7; }
.pj-dcard { flex: 0 0 auto; width: 232px; max-width: 100%; display: flex; align-items: flex-start; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; transition: box-shadow .13s ease, transform .13s ease, opacity .13s ease; }
/* Deutlicher Greif-Hinweis: Grip-Spalte hat eigenen Cursor + Hover-Feedback (User-Fund 18.07.:
   „muss besser ersichtlich sein, dass man verschieben kann"). */
.pj-dcard-grip { cursor: grab; }
.pj-dcard-grip:active { cursor: grabbing; }
.pj-dcard:hover { box-shadow: 0 1px 0 0 var(--line), 0 4px 12px rgba(15,23,42,.06); }
.pj-dcard[draggable="true"] { cursor: grab; }
.pj-dcard[draggable="true"]:active { cursor: grabbing; }
.pj-dcard.pj-dragging { opacity: .45; }
.pj-dcard-grip { flex: 0 0 auto; color: var(--muted); opacity: .55; margin: 1px 0 0 -2px; cursor: grab; }
.pj-dcard-grip .pj-ic { width: 14px; height: 14px; }
.pj-dcard:hover .pj-dcard-grip { opacity: .95; color: var(--gold); }
.pj-dcard-in { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.pj-dcard-del { flex: 0 0 auto; opacity: 0; transition: opacity .12s; margin: -2px -2px 0 0; }
.pj-dcard:hover .pj-dcard-del { opacity: .55; }
.pj-dcard-del:hover { opacity: 1; }
.pj-dcard-edit { flex: 0 0 auto; opacity: 0; transition: opacity .12s; margin: -2px 0 0 0; color: var(--muted); }
.pj-dcard:hover .pj-dcard-edit { opacity: .55; }
.pj-dcard-edit:hover { opacity: 1; color: var(--gold); }
.pj-dcard-name { font-weight: 700; font-size: 13px; color: var(--text); line-height: 1.3; }
.pj-dcard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.pj-dcard-pill { padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.pj-dcard-date { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.pj-dcard-date .pj-ic { width: 12px; height: 12px; }

/* Monatskalender (Kontrol Paneli · unter Notlarım) */
.pj-cal-nav { display: flex; align-items: center; gap: 6px; }
.pj-cal-nav b { font-size: 12.5px; font-weight: 700; min-width: 92px; text-align: center; color: var(--text); }
.pj-cal-nav .pj-iconbtn { width: 26px; height: 26px; }
.pj-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; padding: 8px 12px 10px; }
.pj-cal-wd { text-align: center; font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; padding-bottom: 1px; }
.pj-cal-cell { position: relative; min-height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 7px; font-size: 12px; color: var(--text); background: var(--surface2); }
.pj-cal-empty { background: transparent; }
.pj-cal-cell.pj-cal-has { background: color-mix(in srgb, var(--gold) 16%, var(--surface2)); font-weight: 700; }
.pj-cal-cell.pj-cal-today { box-shadow: inset 0 0 0 2px var(--gold); }
.pj-cal-dot { position: absolute; top: 3px; right: 4px; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 999px; background: var(--gold); color: #122; font-size: 9px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.pj-dash { gap: 0; }
.pj-dash-hero { padding: 4px 2px 14px; }
.pj-dash-hero h2 { margin: 0 0 4px; font-size: 22px; font-weight: 800; color: var(--text); }
/* Datumszeile bewusst größer (User-Wunsch 18.07.; der „· Proje kontrol paneli"-Zusatz entfiel). */
.pj-dash-hero p { margin: 0; color: var(--text); opacity: .8; font-size: 15.5px; font-weight: 600; text-transform: capitalize; }
.pj-kpigrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 16px; }
.pj-kpi-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; border-left: 4px solid var(--line); }
.pj-kpi-card.k-green { border-left-color: var(--green); }
.pj-kpi-card.k-orange { border-left-color: var(--orange); }
.pj-kpi-card.k-blue { border-left-color: var(--blue); }
.pj-kpi-card.k-gold { border-left-color: var(--gold); }
.pj-kpi-v { font-size: 26px; font-weight: 800; color: var(--text); line-height: 1.1; }
.pj-kpi-l { font-size: 12px; color: var(--muted); margin-top: 3px; }
.pj-dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.pj-dash-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pj-dash-panel { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.pj-dash-panel-h { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-weight: 800; font-size: 14px; color: var(--text); }
.pj-dash-panel-h > span { flex: 1; }
.pj-dash-panel-h .pj-ic { color: var(--gold); }
.pj-dash-panel-b { display: flex; flex-direction: column; }
.pj-mini { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 8px; border: 1px solid var(--gold); background: var(--gold); color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; box-shadow: 0 1px 5px rgba(247,184,45,.35); text-shadow: 0 1px 1px rgba(90,60,0,.4); transition: filter .12s, transform .12s; }
.pj-mini .pj-ic { color: #fff; }
.pj-mini:hover { filter: brightness(1.06); transform: translateY(-1px); }
.pj-up-empty { padding: 14px; color: var(--muted); font-size: 13px; }
/* Sıradaki adımlar */
.pj-up-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'proj pill' 'step date'; gap: 2px 8px; align-items: center; width: 100%; text-align: left; padding: 9px 14px; border: 0; border-top: 1px solid var(--line); background: transparent; cursor: pointer; }
.pj-dash-panel-b > .pj-up-row:first-child { border-top: 0; }
.pj-up-row:hover { background: var(--surface2); }
.pj-up-proj { grid-area: proj; font-weight: 700; font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-up-step { grid-area: step; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-up-row .pj-pill-sm { grid-area: pill; justify-self: end; }
.pj-up-d { grid-area: date; justify-self: end; font-size: 11px; color: var(--muted); }
/* Yaklaşan tarihler */
.pj-date-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 9px 14px; border: 0; border-top: 1px solid var(--line); background: transparent; cursor: pointer; }
.pj-dash-panel-b > .pj-date-row:first-child { border-top: 0; }
.pj-date-row:hover { background: var(--surface2); }
.pj-date-d { font-size: 12px; font-weight: 800; color: var(--gold); white-space: nowrap; }
.pj-date-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pj-date-main b { font-size: 13px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-date-main small { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-date-tag { font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--surface2); color: var(--muted); }
.pj-date-tag-g { background: color-mix(in srgb, var(--blue) 18%, transparent); color: var(--blue); }
/* Görevler */
.pj-chips { display: flex; gap: 6px; padding: 8px 14px 4px; }
.pj-chip { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; }
.pj-chip-on { background: var(--gold); border-color: var(--gold); color: #fff; text-shadow: 0 1px 1px rgba(90,60,0,.4); }
.pj-task { display: flex; align-items: flex-start; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--line); }
.pj-task-check { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; border: 2px solid var(--line); background: transparent; color: var(--green); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pj-task-check:hover { border-color: var(--green); }
.pj-task-check .pj-ic { width: 13px; height: 13px; }
.pj-task-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pj-task-title { font-weight: 600; font-size: 13px; color: var(--text); cursor: pointer; }
.pj-task-title:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.pj-task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.pj-task-meta > span { display: inline-flex; align-items: center; gap: 3px; }
.pj-task-meta .pj-ic { width: 11px; height: 11px; }
.pj-task-tag { font-size: 10px; font-weight: 800; padding: 1px 7px; border-radius: 999px; }
.pj-tag-team { background: color-mix(in srgb, var(--blue) 18%, transparent); color: var(--blue); }
.pj-tag-me { background: var(--surface2); color: var(--muted); }
.pj-task-done .pj-task-title { text-decoration: line-through; color: var(--muted); }
.pj-task-done .pj-task-check { background: var(--green); border-color: var(--green); color: #fff; }
/* Notlarım */
.pj-note-add { display: flex; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--line); }
.pj-note-add .pj-input { flex: 1; }
.pj-notego { flex: 0 0 auto; border: 1px solid var(--line); background: var(--gold); color: #201800; }
.pj-note { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 13px; }
.pj-note-t { flex: 1; min-width: 0; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.pj-note-m { flex: 0 0 auto; font-size: 11px; color: var(--muted); }

/* ── Responsiv ── */
@media (max-width: 1450px) {
  .pj-leiste { flex: 0 0 360px; }
}
@media (max-width: 860px) {
  .ges-proj2 { flex-direction: column; overflow-y: auto; }
  .pj-leiste { flex: 0 0 auto; max-height: 40vh; }
  .pj-detail { overflow: visible; }
  .pj-ms { grid-template-columns: 24px 1fr auto auto; }
  .pj-ms-date, .pj-ms-head .pj-ms-date { display: none; }
  .pj-field-row { grid-template-columns: 1fr; }
  .pj-dash-cols { grid-template-columns: 1fr; }
}

/* === Kontrol Paneli: eine Bildschirmhöhe, kein Seiten-Scroll (Spalten nur im Notfall intern scrollbar) === */
.pj-detail.pj-dash { overflow: hidden; }
.pj-dash .pj-dash-hero, .pj-dash .pj-kpigrid { flex: 0 0 auto; }
.pj-dash .pj-dash-hero { padding: 0 2px 8px; }
.pj-dash .pj-dash-hero h2 { font-size: 18px; margin: 0 0 2px; }
.pj-dash .pj-dash-hero p { font-size: 14px; }
.pj-dash .pj-kpigrid { gap: 8px; margin-bottom: 10px; }
.pj-dash .pj-kpi-card { padding: 9px 12px; border-radius: 10px; }
.pj-dash .pj-kpi-v { font-size: 21px; }
.pj-dash .pj-kpi-l { font-size: 11px; margin-top: 1px; }
.pj-dash .pj-dash-cols { flex: 1 1 auto; min-height: 0; gap: 12px; align-items: stretch; }
.pj-dash .pj-dash-col { gap: 12px; min-height: 0; overflow-y: auto; }
.pj-dash .pj-dash-panel-h { padding: 8px 13px; font-size: 13px; }
.pj-dash .pj-up-row, .pj-dash .pj-date-row { padding: 7px 13px; }
.pj-dash .pj-note-add { padding: 8px 12px; }
.pj-dash .pj-cal-grid { gap: 2px; padding: 5px 12px 8px; }
.pj-dash .pj-cal-cell { min-height: 24px; font-size: 11.5px; }
.pj-dash .pj-cal-wd { font-size: 9.5px; padding-bottom: 0; }
.pj-dash .pj-showall-block { margin: 2px 0 0; padding: 9px; }

/* ── Feier: Meilenstein → Tamamlandı ── */
.pj-ms.pj-celebrate { animation: pjCelebrate 1.1s ease-out; }
@keyframes pjCelebrate {
  0% { background: transparent; }
  18% { background: rgba(0, 200, 117, .22); box-shadow: inset 0 0 0 2px rgba(0, 200, 117, .55); }
  100% { background: transparent; box-shadow: none; }
}
.pj-ms.pj-celebrate .pj-pill { animation: pjPillPop .6s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes pjPillPop { 0% { transform: scale(1); } 40% { transform: scale(1.28); } 100% { transform: scale(1); } }
.pj-confetti-burst { position: fixed; inset: 0; pointer-events: none; z-index: 9998; }
.pj-confetti { position: fixed; width: 9px; height: 9px; border-radius: 2px; will-change: transform, opacity; }

/* ── Feuerwerk: Projekt Yürüyen → Tamamlanan ── */
.pj-fw-overlay { position: fixed; inset: 0; z-index: 100000; pointer-events: none; display: flex; align-items: flex-start; justify-content: center; transition: opacity .4s ease; }
.pj-fw-overlay.pj-fw-out { opacity: 0; }
.pj-fw-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pj-fw-caption { margin-top: 16vh; padding: 12px 26px; border-radius: 999px; font-size: 22px; font-weight: 900; letter-spacing: .3px; color: #fff; background: linear-gradient(90deg, #00c875, #38b6ff); box-shadow: 0 10px 40px rgba(0, 0, 0, .35); animation: pjFwCap 3.4s ease-out both; }
@keyframes pjFwCap { 0% { transform: translateY(-18px) scale(.8); opacity: 0; } 12% { transform: translateY(0) scale(1); opacity: 1; } 82% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .pj-fw-caption { animation-duration: 1.4s; } .pj-ms.pj-celebrate, .pj-ms.pj-celebrate .pj-pill { animation-duration: .5s; } }

/* ── Live-Update Toast (neue Görev) ── */
.pj-toastwrap { position: fixed; right: 18px; bottom: 18px; z-index: 100001; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.pj-toast { display: flex; align-items: center; gap: 9px; max-width: 340px; padding: 11px 15px; border-radius: 11px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-left: 3px solid #00c875; box-shadow: 0 10px 30px rgba(0, 0, 0, .22); font-size: 13px; font-weight: 600; opacity: 0; transform: translateY(10px); transition: opacity .3s ease, transform .3s ease; }
.pj-toast.pj-toast-in { opacity: 1; transform: none; }
.pj-toast-ic { flex: 0 0 auto; color: #00c875; display: inline-flex; }
.pj-toast-ic svg { width: 17px; height: 17px; }
