/* =================================================================
   projekte.css — eigene Bausteine der Seite projekte.php (Projekte)
   Akzent Indigo wie die Dashboard-Farbe des Moduls: #4f46e5 (Kontrast auf Weiß 6,3:1), Text #4338ca (7,9:1).
   Kritischer Pfad Rot #dc2626. Alles unter #container, nur logische Eigenschaften (RTL-tauglich).
   ================================================================= */
#container { --pj: #4f46e5; --pj-t: #4338ca; --pj-l: #eef2ff; --pj-b: #c7d2fe; --pj-rot: #dc2626; --pj-rot-l: #fdecec; }
#container .t-pj { --c: var(--pj); --ct: var(--pj-t); --cl: var(--pj-l); --cb: var(--pj-b); }
#container .pj-t { color: var(--pj-t); }
#container .pj-acc { color: var(--pj); }
#container .pj-ic { background: var(--pj-l) !important; color: var(--pj) !important; }
#container .pj-h4 { font-family: 'Roboto', sans-serif; font-weight: 500; font-size: 1.02rem; margin-bottom: 3px; line-height: 1.3; }
#container .pj-sub { text-align: center; font-size: clamp(1.3rem, 2vw, 1.8rem); margin: clamp(56px, 7vw, 90px) 0 26px; }
#container .pj-hinweis { max-width: 820px; margin-inline: auto; margin-top: 28px; }
#container .hero h1 { overflow-wrap: break-word; hyphens: auto; }
#container .pj-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
#container .pj-tags span { font-size: 0.74rem; background: #f5f5f7; color: #515154; border-radius: 50px; padding: 3px 10px; }

/* ---------- Gemeinsame Kleinteile der Produktansichten ---------- */
#container .pj-chip { display: inline-flex; align-items: center; font-style: normal; font-size: 0.6rem; font-weight: 500; border-radius: 50px; padding: 2px 8px; white-space: nowrap; flex-shrink: 0;
    background: #f1f2f5; color: #515154; border: 1px solid #e3e5ea; }
#container .pj-chip.ok { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
#container .pj-chip.warn { background: #fffbeb; color: #92400e; border-color: #fde68a; }
#container .pj-chip.rot { background: var(--pj-rot-l); color: #b42323; border-color: #f6c6c6; }
#container .pj-mini { display: inline-flex; align-items: center; gap: 4px; font-size: 0.6rem; border-radius: 7px; padding: 4px 8px; border: 1px solid #e3e5ea; color: #515154; background: #fff; white-space: nowrap; }
#container .pj-mini.pri { background: var(--pj); border-color: var(--pj); color: #fff; font-weight: 500; }
#container .pj-foot { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
#container .pj-foot span { display: inline-flex; align-items: center; gap: 5px; font-size: 0.68rem; border-radius: 8px; padding: 6px 12px; white-space: nowrap; }
#container .pj-foot .ghost { border: 1px solid #e3e5ea; color: #515154; background: #fff; }
#container .pj-foot .pri { background: var(--pj); color: #fff; font-weight: 500; }
#container .pj-kz { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
#container .pj-kz > div { border: 1px solid #ececf0; border-radius: 12px; padding: 8px 10px; min-width: 0; background: #fff; }
#container .pj-kz small, #container .pj-kz em { display: block; font-size: 0.56rem; color: #86868b; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#container .pj-kz b { display: block; font-size: 0.8rem; font-weight: 600; color: #1d1d1f; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#container .pj-kz .gruen b { color: #15803d; }
#container .pj-kz .rot b { color: #b42323; }
#container .pj-note { display: flex; gap: 8px; align-items: flex-start; font-size: 0.66rem; color: var(--pj-t); background: var(--pj-l); border: 1px solid var(--pj-b); border-radius: 10px; padding: 8px 10px; }
#container .pj-note.warn { color: #92400e; background: #fffbeb; border-color: #fde68a; }
#container .pj-note .rs-ico { flex-shrink: 0; margin-top: 1px; }
#container .pj-li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 4px; }
#container .pj-li + .pj-li { border-top: 1px solid #f2f2f5; }
#container .pj-li .ic { width: 28px; height: 28px; border-radius: 8px; background: var(--pj-l); color: var(--pj); display: flex; align-items: center; justify-content: center; }
#container .pj-li .tx { min-width: 0; }
#container .pj-li b { display: block; font-size: 0.72rem; font-weight: 500; color: #1d1d1f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#container .pj-li small { display: block; font-size: 0.6rem; color: #86868b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#container .pj-li em { font-style: normal; font-size: 0.7rem; font-weight: 500; color: #1d1d1f; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: end; }

/* ---------- Hero: Projekt mit Gantt ---------- */
#container .pj-hv { position: relative; padding-block: 24px 34px; }
#container .pj-app { max-width: 640px; margin-inline: auto; }
#container .pj-app-in { padding: 14px; display: grid; gap: 10px; background: #fafafb; min-width: 0; }
#container .pj-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#container .pj-kopf > div { min-width: 0; }
#container .pj-kopf b { display: block; font-family: 'Roboto Serif', serif; font-weight: 600; font-size: 0.92rem; color: #1d1d1f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#container .pj-kopf small { display: block; font-size: 0.6rem; color: #86868b; }
#container .pj-gantt { background: #fff; border: 1px solid #ececf0; border-radius: 12px; overflow: hidden; --nb: 118px; }
#container .pj-g-kopf, #container .pj-g-z { display: grid; grid-template-columns: var(--nb) minmax(0, 1fr); align-items: center; }
#container .pj-g-kopf { border-bottom: 1px solid #ececf0; background: #fafafb; min-height: 28px; }
#container .pj-g-name { padding-inline: 10px; font-size: 0.6rem; color: #1d1d1f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-inline-end: 1px solid #f0f1f4; align-self: stretch; display: flex; align-items: center; min-width: 0; }
#container .pj-seg { font-size: 0.56rem; font-weight: 500; color: var(--pj-t); background: var(--pj-l); border-radius: 6px; padding: 2px 7px; }
#container .pj-g-achse { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
#container .pj-g-achse span { font-size: 0.52rem; color: #86868b; padding-inline: 4px; border-inline-start: 1px solid #f0f1f4; white-space: nowrap; overflow: hidden; text-overflow: clip; font-variant-numeric: tabular-nums; }
#container .pj-g-body { position: relative; }
#container .pj-g-body::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: var(--nb); inset-inline-end: 0;
    background: repeating-linear-gradient(90deg, transparent 0, transparent calc(100% / 6 - 1px), #f4f4f7 calc(100% / 6 - 1px), #f4f4f7 calc(100% / 6)); pointer-events: none; }
[dir="rtl"] #container .pj-g-body::before { transform: scaleX(-1); }
#container .pj-g-z { height: 25px; position: relative; }
#container .pj-g-z + .pj-g-z { border-top: 1px solid #f6f6f8; }
#container .pj-g-z.abschnitt .pj-g-name { font-weight: 600; font-size: 0.58rem; text-transform: uppercase; letter-spacing: .04em; color: #515154; }
#container .pj-g-z.vorgang .pj-g-name, #container .pj-g-z.meilenstein .pj-g-name { padding-inline-start: 18px; }
#container .pj-g-spur { position: relative; height: 100%; margin-inline: 4px; }
#container .pj-g-spur i { position: absolute; display: block; inset-inline-start: calc(var(--s) * 1%); }
#container .pj-bar { top: 6px; height: 12px; inline-size: calc(var(--d) * 1%); border-radius: 4px; background: var(--pj-b); overflow: hidden; }
#container .pj-bar u { position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: calc(var(--f) * 1%); background: var(--pj); }
#container .pj-bar.krit { background: #f8b4b4; }
#container .pj-bar.krit u { background: var(--pj-rot); }
#container .pj-puf { top: 11px; height: 0; inline-size: calc(var(--d) * 1%); border-top: 2px dashed #a5b4fc; }
#container .pj-ab { top: 9px; height: 6px; inline-size: calc(var(--d) * 1%); background: #6e6e73; border-radius: 2px; }
#container .pj-ab::before, #container .pj-ab::after { content: ""; position: absolute; top: 0; width: 0; height: 0; border-block-start: 6px solid #6e6e73; border-inline: 4px solid transparent; }
#container .pj-ab::before { inset-inline-start: 0; }
#container .pj-ab::after { inset-inline-end: 0; }
#container .pj-ab::before, #container .pj-ab::after { transform: translateY(5px); }
#container .pj-ms { top: 6px; width: 12px; height: 12px; background: var(--pj-rot); transform: translateX(-6px) rotate(45deg); border-radius: 2px; }
[dir="rtl"] #container .pj-ms { transform: translateX(6px) rotate(45deg); }
#container .pj-heute { position: absolute; inset-block: 0; z-index: 2; width: 0; border-inline-start: 2px solid var(--pj);
    inset-inline-start: calc(var(--nb) + 4px + (100% - var(--nb) - 8px) * var(--s) / 100); }
#container .pj-heute i { position: absolute; top: -1px; inset-inline-start: -1px; font-style: normal; font-size: 0.5rem; font-weight: 500; color: #fff; background: var(--pj); border-radius: 0 4px 4px 0; padding: 1px 5px; white-space: nowrap; }
[dir="rtl"] #container .pj-heute i { border-radius: 4px 0 0 4px; }
#container .pj-leg { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 7px 10px; border-top: 1px solid #ececf0; font-size: 0.56rem; color: #6e6e73; }
#container .pj-leg span { display: inline-flex; align-items: center; gap: 5px; }
#container .pj-leg i { display: block; width: 14px; height: 8px; border-radius: 2px; }
#container .pj-leg i.krit { background: var(--pj-rot); }
#container .pj-leg i.puf { height: 0; border-top: 2px dashed #a5b4fc; }
#container .pj-leg i.ms { width: 8px; height: 8px; background: var(--pj-rot); transform: rotate(45deg); }
#container .pj-toast-a { inset-inline-start: -4%; bottom: 0; }
#container .pj-toast-b { inset-inline-end: -3%; top: 0; animation-delay: -3s; }
#container .vk-toast b { display: block; }

/* ---------- Planen: Vorgang bearbeiten ---------- */
#container .pj-dlg { max-width: 520px; margin-inline: auto; }
#container .pj-dlg-in { padding: 14px 16px 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 10px; font-size: 0.68rem; color: #1d1d1f; }
#container .pj-dlg-in .wide { grid-column: 1 / -1; }
#container .pj-f { display: grid; gap: 3px; min-width: 0; }
#container .pj-f label { font-size: 0.58rem; color: #86868b; font-weight: 500; margin: 0; padding: 0; display: block; line-height: 1.3; }
#container .pj-f .in { border: 1px solid #e3e5ea; border-radius: 8px; padding: 5px 8px; background: #fff; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#container .pj-vor { border: 1px solid #ececf0; border-radius: 10px; padding: 8px 9px; display: grid; gap: 6px; justify-items: start; }
#container .pj-vor > small, #container .pj-term > small { font-size: 0.56rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #86868b; }
#container .pj-vz { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 18px; gap: 8px; align-items: center; width: 100%; }
#container .pj-vz .ic { width: 22px; height: 22px; border-radius: 6px; background: var(--pj-l); color: var(--pj); display: flex; align-items: center; justify-content: center; }
[dir="rtl"] #container .pj-vz .ic .rs-ico { transform: scaleX(-1); }
#container .pj-vz b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#container .pj-vz em { font-style: normal; font-size: 0.6rem; color: var(--pj-t); background: var(--pj-l); border-radius: 50px; padding: 1px 8px; white-space: nowrap; }
#container .pj-vz .x { color: #86868b; display: flex; }
#container .pj-sw { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 2px; }
#container .pj-sw .sw { width: 30px; height: 17px; border-radius: 20px; background: var(--pj); position: relative; flex-shrink: 0; }
#container .pj-sw .sw::after { content: ""; position: absolute; top: 2px; inset-inline-end: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
#container .pj-sw .sw.off { background: #d2d2d7; }
#container .pj-sw .sw.off::after { inset-inline-end: auto; inset-inline-start: 2px; }
#container .pj-term { background: var(--pj-l); border-radius: 10px; padding: 8px 10px; display: grid; gap: 4px; }
#container .pj-term > div { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 0.64rem; }
#container .pj-term span { color: #515154; }
#container .pj-term b { font-weight: 500; font-variant-numeric: tabular-nums; }
#container .pj-term b.ok { color: var(--pj-t); }

/* ---------- Gantt (dunkel) ---------- */
#container .pj-dark { background: #12113a; }
#container .pj-dark h2, #container .pj-dark h3 { color: #fff; }
#container .pj-dark .lead { color: rgba(255,255,255,0.72); }
#container .pj-t2 { color: #a5b4fc; }
#container .pj-feat-dark .fi { background: rgba(165,180,252,0.14); color: #a5b4fc; }
#container .pj-feat-dark p { color: rgba(255,255,255,0.66); }
#container .pj-vs { max-width: 440px; margin-inline: auto; }
#container .pj-vs-in { padding: 18px; display: grid; gap: 8px; }
#container .pj-vs-in > p { font-size: 0.76rem; color: #1d1d1f; font-weight: 500; }
#container .pj-vs-z { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 7px 0; border-bottom: 1px solid #f2f2f5; font-size: 0.7rem; }
#container .pj-vs-z b { font-weight: 500; color: #1d1d1f; }
#container .pj-vs-z span { display: inline-flex; align-items: center; gap: 5px; color: #1d1d1f; font-variant-numeric: tabular-nums; }
#container .pj-vs-z s { color: #86868b; }
#container .pj-vs .pj-foot { margin-top: 6px; }
#container .pj-dark .pj-sub { color: #fff; }
#container .pj-schritte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
#container .pj-schritte li { position: relative; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 20px; display: grid; gap: 6px; align-content: start; }
#container .pj-schritte .nr { position: absolute; top: 14px; inset-inline-end: 18px; font-family: 'Roboto Serif', serif; font-weight: 600; font-size: 1.4rem; color: rgba(165,180,252,0.45); }
#container .pj-schritte .fi { width: 40px; height: 40px; border-radius: 12px; background: rgba(165,180,252,0.14); color: #a5b4fc; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
[dir="rtl"] #container .pj-schritte li:first-child .fi .rs-ico { transform: scaleX(-1); }
#container .pj-schritte b { color: #fff; font-weight: 500; font-size: 1rem; }
#container .pj-schritte small { color: rgba(255,255,255,0.66); font-size: 0.88rem; line-height: 1.5; }

/* ---------- Überblick ---------- */
#container .pj-ue { max-width: 980px; margin-inline: auto; }
#container .pj-ue-in { padding: 16px; display: grid; gap: 12px; background: #fafafb; }
#container .pj-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: #fff; border: 1px solid #ececf0; border-radius: 12px; padding: 8px; }
#container .pj-filter span { display: inline-flex; align-items: center; gap: 6px; font-size: 0.66rem; border-radius: 50px; padding: 5px 11px; white-space: nowrap; }
#container .pj-filter .pill { border: 1px solid var(--pj-b); background: var(--pj-l); color: var(--pj-t); font-weight: 500; }
#container .pj-filter .srch { margin-inline-start: auto; border: 1px solid #e3e5ea; color: #86868b; border-radius: 8px; min-width: 0; }
#container .pj-kz3 b { font-size: 1.05rem; }
#container .pj-boxen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
#container .pj-box { background: #fff; border: 1px solid #ececf0; border-radius: 14px; padding: 12px; display: grid; gap: 8px; min-width: 0; }
#container .pj-box-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
#container .pj-box-kopf > div { min-width: 0; }
#container .pj-box-kopf b { display: block; font-size: 0.76rem; font-weight: 500; color: #1d1d1f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#container .pj-box-kopf small { display: block; font-size: 0.6rem; color: #86868b; }
#container .pj-prog { position: relative; height: 8px; border-radius: 4px; background: #eef0f4; }
#container .pj-prog u { position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: calc(var(--ist) * 1%); border-radius: 4px; background: var(--pj); }
#container .pj-prog i { position: absolute; top: -3px; width: 2px; height: 14px; background: #1d1d1f; inset-inline-start: calc(var(--soll) * 1%); border-radius: 1px; }
#container .pj-prog.ok u { background: #16a34a; }
#container .pj-prog.warn u { background: #f59e0b; }
#container .pj-prog.rot u { background: var(--pj-rot); }
#container .pj-box-z { display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; font-size: 0.58rem; color: #6e6e73; }
#container .pj-box-ms { display: flex; gap: 6px; align-items: flex-start; font-size: 0.62rem; color: #1d1d1f; border-top: 1px solid #f2f2f5; padding-top: 8px; }
#container .pj-box-ms .rs-ico { color: var(--pj); flex-shrink: 0; margin-top: 2px; }
#container .pj-box-ms small { display: block; font-size: 0.56rem; color: #86868b; }
#container .pj-ampel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
#container .pj-amp { background: #fff; border: 1px solid #ececf0; border-radius: 20px; padding: 20px; display: grid; gap: 6px; align-content: start; border-top: 4px solid #16a34a; }
#container .pj-amp.warn { border-top-color: #f59e0b; }
#container .pj-amp.rot { border-top-color: var(--pj-rot); }
#container .pj-amp .dot { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #f0fdf4; color: #15803d; margin-bottom: 6px; }
#container .pj-amp.warn .dot { background: #fffbeb; color: #b45309; }
#container .pj-amp.rot .dot { background: var(--pj-rot-l); color: #b42323; }
#container .pj-amp b { font-weight: 500; font-size: 1.02rem; color: #1d1d1f; }
#container .pj-amp small { font-size: 0.88rem; color: #6e6e73; line-height: 1.5; }
#container .pj-drei { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }

/* ---------- Kosten und Abrechnung ---------- */
#container .pj-abr { max-width: 540px; margin-inline: auto; }
#container .pj-abr-in { padding: 14px; display: grid; gap: 10px; }
#container .pj-kunde { display: flex; gap: 10px; align-items: center; border: 1px solid #ececf0; border-radius: 10px; padding: 8px 10px; min-width: 0; }
#container .pj-kunde > div { min-width: 0; }
#container .pj-kunde .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--pj-l); color: var(--pj); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
#container .pj-kunde small { display: block; font-size: 0.56rem; color: #86868b; }
#container .pj-kunde b { display: block; font-size: 0.74rem; font-weight: 500; color: #1d1d1f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#container .pj-k4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
#container .pj-k4 > div { border: 1px solid #ececf0; border-radius: 12px; padding: 8px 9px; min-width: 0; }
#container .pj-k4 > div.hl { background: var(--pj-l); border-color: var(--pj-b); }
#container .pj-k4 small { display: block; font-size: 0.56rem; color: #86868b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#container .pj-k4 b { display: block; font-size: 0.78rem; font-weight: 600; color: #1d1d1f; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#container .pj-k4 .hl b { color: var(--pj-t); }
#container .pj-abr-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 4px; }
#container .pj-abr-kopf b { font-size: 0.74rem; font-weight: 500; color: #1d1d1f; }

/* ---------- Stunden und Material (dunkel) ---------- */
#container .pj-std { max-width: 500px; }
#container .pj-wahl { display: grid; gap: 5px; }
#container .pj-wahl > small { font-size: 0.56rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #86868b; }
#container .pj-wahl > div { display: flex; flex-wrap: wrap; gap: 6px; }
#container .pj-wahl span { font-size: 0.62rem; border: 1px solid #e3e5ea; border-radius: 50px; padding: 4px 10px; color: #515154; background: #fff; white-space: nowrap; }
#container .pj-wahl span.an { border-color: var(--pj-b); background: var(--pj-l); color: var(--pj-t); font-weight: 500; }
#container .pj-pos { border: 1px solid #ececf0; border-radius: 10px; padding: 4px 10px; display: grid; }
#container .pj-pos > div { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 0; }
#container .pj-pos > div + div { border-top: 1px solid #f2f2f5; }
#container .pj-pos .ic { width: 22px; height: 22px; border-radius: 6px; background: var(--pj-l); color: var(--pj); display: flex; align-items: center; justify-content: center; }
#container .pj-pos .tx { min-width: 0; }
#container .pj-pos b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#container .pj-pos small { display: block; font-size: 0.58rem; color: #86868b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#container .pj-pos em { font-style: normal; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
#container .pj-pos .sum { grid-template-columns: minmax(0, 1fr) auto; font-weight: 600; color: var(--pj-t); }
#container .pj-pos .sum em { font-weight: 600; }
#container .pj-mat-split { margin-top: clamp(56px, 7vw, 100px); }
#container .pj-h3 { font-size: clamp(1.5rem, 2.4vw, 2.3rem); margin-bottom: 16px; }
#container .pj-dark h4 { color: #fff; }
#container .pj-dark .demo-hint { color: rgba(255,255,255,0.62); }
#container .pj-kz > div.pj-hl { background: var(--pj-l); border-color: var(--pj-b); }
#container .pj-kz > div.pj-hl b { color: var(--pj-t); }
#container .pj-knoepfe { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

/* ---------- Gruppen ---------- */
#container .pj-rollen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
#container .pj-rolle { display: flex; gap: 12px; align-items: flex-start; background: #fafafb; border: 1px solid #ececf0; border-radius: 16px; padding: 14px 16px; }
#container .pj-rolle .fi { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
#container .pj-rolle b { display: block; font-weight: 500; color: var(--pj-t); font-size: 0.95rem; }
#container .pj-rolle small { display: block; color: #6e6e73; font-size: 0.86rem; line-height: 1.45; }

/* ---------- Verbindungen ---------- */
#container .pj-ki { display: flex; gap: 18px; align-items: flex-start; background: linear-gradient(135deg, #12113a 0%, #312e81 100%); }
#container .pj-ki .card-icon { flex-shrink: 0; }
#container .pj-ki p { max-width: 760px; }
#container .pj-ki .go { margin-top: 14px; color: #a5b4fc; font-size: 0.9rem; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
[dir="rtl"] #container .pj-ki .go .rs-ico, [dir="rtl"] #container .pj-rel .go .rs-ico { transform: scaleX(-1); }

/* ---------- Passt dazu und Abschluss ---------- */
#container .pj-rel { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#container .pj-rel a.t-pj::before { background: var(--pj); }
#container .pj-cta { background: linear-gradient(135deg, #12113a 0%, #312e81 55%, #4f46e5 100%); }
#container .pj-cta h2 span { color: #c7d2fe; }

/* ---------- Breiten ---------- */
@media (max-width: 1100px) {
    #container .pj-rel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #container .pj-schritte { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    #container .pj-boxen, #container .pj-ampel, #container .pj-drei, #container .pj-rollen { grid-template-columns: minmax(0, 1fr); }
    #container .pj-boxen .pj-box:nth-child(3) { display: none; }
    #container .pj-boxen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    #container .pj-rel { grid-template-columns: minmax(0, 1fr); }
    #container .pj-toast-a { inset-inline-start: 0; }
    #container .pj-toast-b { inset-inline-end: 0; }
    #container .pj-k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #container .pj-boxen { grid-template-columns: minmax(0, 1fr); }
    #container .pj-boxen .pj-box:nth-child(2) { display: none; }
    #container .pj-ki { flex-direction: column; }
}
@media (max-width: 520px) {
    #container .pj-gantt { --nb: 84px; }
    #container .pj-g-achse .ung { visibility: hidden; }
    #container .pj-g-z.vorgang .pj-g-name, #container .pj-g-z.meilenstein .pj-g-name { padding-inline-start: 10px; }
    #container .pj-kz { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #container .pj-kz:not(.pj-kz3) .c3 { display: none; }
    #container .pj-kz3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    #container .pj-schritte { grid-template-columns: minmax(0, 1fr); }
    #container .pj-li { grid-template-columns: 28px minmax(0, 1fr) auto; }
    #container .pj-li .pj-chip { display: none; }
    #container .pj-filter .srch { display: none; }
    #container .pj-dlg-in { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    #container .vk-toast { animation: none; }
}
/* RTL: Beträge, Daten und Nummern in den Produktansichten behalten ihre Leserichtung */
[dir="rtl"] #container .pj-ltr, [dir="rtl"] #container .pj-kz b, [dir="rtl"] #container .pj-k4 b, [dir="rtl"] #container .pj-li em, [dir="rtl"] #container .pj-pos em,
[dir="rtl"] #container .pj-g-achse span { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] #container .pj-pos small, [dir="rtl"] #container .pj-mat-split .pj-li small { direction: ltr; unicode-bidi: isolate; text-align: end; }
