/*
 * NE Projekt Manager 4 — App-Oberfläche
 * Mobil zuerst. Systemschrift (keine externen Schriften, keine Fremdanfragen).
 * Markenfarbe Maulbeere, Tinte statt Schwarz, ruhige Flächen; das auffällige
 * Element ist das Phasenband, das überall zeigt, wo etwas steht.
 */

:root {
    --m: #9d174d;          /* Maulbeere – Marke, Aktionen */
    --m-dunkel: #7c0f3c;
    --m-hell: #fbeaf1;
    --m-ring: rgba(157, 23, 77, .28);
    --tinte: #1b1530;      /* Text */
    --tinte-2: #4a4560;
    --grau: #6c6780;
    --linie: #e6e3ee;
    --linie-2: #d4d0de;
    --grund: #f4f3f7;      /* Hintergrund */
    --flaeche: #ffffff;
    --flaeche-2: #faf9fc;
    --gruen: #0f8a5f;
    --gruen-hell: #e3f5ee;
    --bernstein: #b45f06;
    --bernstein-hell: #fdf1e2;
    --rot: #c0262d;
    --rot-hell: #fdecec;
    --blau: #2456c9;
    --blau-hell: #e9effc;
    --violett: #6b3fd1;
    --schatten: 0 1px 0 rgba(27, 21, 48, .04), 0 2px 10px rgba(27, 21, 48, .05);
    --schatten-hoch: 0 18px 50px rgba(27, 21, 48, .22);
    --r-klein: 8px;
    --r: 14px;
    --r-gross: 22px;
    --oben: env(safe-area-inset-top, 0px);
    --unten: env(safe-area-inset-bottom, 0px);
    --leiste: 64px;
    --kopf: 56px;
    --schrift: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --m: #e0558f;
        --m-dunkel: #f07aaa;
        --m-hell: #3a1626;
        --m-ring: rgba(224, 85, 143, .35);
        --tinte: #f1eef8;
        --tinte-2: #c9c4d6;
        --grau: #9a94ad;
        --linie: #2c273b;
        --linie-2: #3a3449;
        --grund: #120f1b;
        --flaeche: #1b1726;
        --flaeche-2: #221d2f;
        --gruen: #3ccf98;
        --gruen-hell: #12302a;
        --bernstein: #f0a54a;
        --bernstein-hell: #33240f;
        --rot: #ff6b6b;
        --rot-hell: #3a1618;
        --blau: #7ea2ff;
        --blau-hell: #19233d;
        --violett: #a98bff;
        --schatten: 0 1px 0 rgba(0, 0, 0, .3);
        --schatten-hoch: 0 18px 50px rgba(0, 0, 0, .55);
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html, body.nepm-body { margin: 0; padding: 0; background: var(--grund); }
body.nepm-body { min-height: 100vh; min-height: 100dvh; }
.nepm-app, .nepm-login, .nepm-sheet, .nepm-toasts {
    font-family: var(--schrift);
    font-size: 16px;
    line-height: 1.45;
    color: var(--tinte);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    font-variant-numeric: tabular-nums;
}
.nepm-app [hidden] { display: none !important; }
.nepm-app a { color: var(--m); text-decoration: none; }
.nepm-app a:hover { text-decoration: underline; }
:where(.nepm-app, .nepm-sheet) :where(button, input, select, textarea) { font: inherit; color: inherit; }
.nepm-app :focus-visible, .nepm-sheet :focus-visible { outline: 3px solid var(--m-ring); outline-offset: 2px; }
.nepm-app h1, .nepm-app h2, .nepm-app h3, .nepm-sheet h2, .nepm-sheet h3 { margin: 0; line-height: 1.2; letter-spacing: -.012em; }
.nepm-app h1 { font-size: 26px; font-weight: 760; }
.nepm-app h2 { font-size: 19px; font-weight: 720; }
.nepm-app h3 { font-size: 16px; font-weight: 700; }
.nepm-app p { margin: 0 0 10px; }
.nepm-leise { color: var(--grau); font-size: 14px; }
.nepm-klein { font-size: 13px; }

/* Eingebettet in ein Theme: trotzdem als Vollbild-App */
.nepm-app--eingebettet { position: fixed; inset: 0; z-index: 99990; background: var(--grund); overflow: auto; }

/* ------------------------------------------------------------------
   Start-Ladebild
------------------------------------------------------------------ */
.nepm-start-laden { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--grau); }
.nepm-logo-puls { width: 56px; height: 56px; border-radius: 16px; background: var(--m); animation: nepm-puls 1.2s ease-in-out infinite; }
@keyframes nepm-puls { 50% { transform: scale(.88); opacity: .7; } }

/* ------------------------------------------------------------------
   Gerüst: Kopf, Inhalt, Tab-Leiste (mobil) / Seitenleiste (Desktop)
------------------------------------------------------------------ */
.nepm-geruest { min-height: 100vh; min-height: 100dvh; }
.nepm-kopf {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; gap: 8px;
    height: calc(var(--kopf) + var(--oben)); padding: var(--oben) 8px 0 8px;
    background: color-mix(in srgb, var(--grund) 86%, transparent);
    backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}
.nepm-kopf.gescrollt { border-bottom-color: var(--linie); }
.nepm-kopf-titel { flex: 1; min-width: 0; font-weight: 720; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 6px; }
.nepm-kopf-titel small { display: block; font-weight: 500; font-size: 12px; color: var(--grau); }
.nepm-ikon-knopf {
    position: relative; display: inline-grid; place-items: center;
    width: 42px; height: 42px; border-radius: 12px; border: 0; background: transparent;
    color: var(--tinte); cursor: pointer;
}
.nepm-ikon-knopf:hover { background: var(--flaeche); }
.nepm-ikon-knopf svg { width: 22px; height: 22px; }
.nepm-zahl-punkt {
    position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px; background: var(--rot); color: #fff; font-size: 11px; font-weight: 800;
    display: grid; place-items: center; border: 2px solid var(--grund);
}
.nepm-inhalt { padding: 8px 16px calc(var(--leiste) + var(--unten) + 96px); max-width: 1180px; margin: 0 auto; }

.nepm-tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: repeat(5, 1fr);
    height: calc(var(--leiste) + var(--unten)); padding-bottom: var(--unten);
    background: color-mix(in srgb, var(--flaeche) 92%, transparent);
    backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
    border-top: 1px solid var(--linie);
}
.nepm-tab {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--grau) !important; font-size: 11px; font-weight: 650; text-decoration: none !important; position: relative;
}
.nepm-tab svg { width: 24px; height: 24px; }
.nepm-tab.aktiv { color: var(--m) !important; }
.nepm-tab.aktiv::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--m); }
.nepm-tab .nepm-zahl-punkt { top: 6px; right: calc(50% - 22px); border-color: var(--flaeche); }

.nepm-seitenleiste { display: none; }

.nepm-fab {
    position: fixed; right: 16px; bottom: calc(var(--leiste) + var(--unten) + 16px); z-index: 55;
    display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 20px 0 16px;
    border: 0; border-radius: 18px; background: var(--m); color: #fff; font-weight: 720; font-size: 15px;
    box-shadow: 0 10px 26px rgba(157, 23, 77, .38); cursor: pointer;
}
.nepm-fab svg { width: 24px; height: 24px; }
.nepm-fab:active { transform: scale(.97); }

@media (min-width: 960px) {
    .nepm-geruest { display: grid; grid-template-columns: 252px minmax(0, 1fr); }
    .nepm-geruest > main { min-width: 0; }
    .nepm-seitenleiste {
        display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
        padding: 18px 12px; border-right: 1px solid var(--linie); background: var(--flaeche);
    }
    .nepm-marke { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; font-weight: 760; font-size: 16px; color: var(--tinte); }
    .nepm-marke img { width: 34px; height: 34px; border-radius: 10px; }
    .nepm-nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
    .nepm-nav-gruppe { margin: 14px 10px 4px; font-size: 12px; color: var(--grau); font-weight: 650; }
    .nepm-nav a {
        display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px;
        color: var(--tinte-2) !important; font-weight: 600; font-size: 15px; text-decoration: none !important;
    }
    .nepm-nav a svg { width: 20px; height: 20px; flex: 0 0 auto; }
    .nepm-nav a:hover { background: var(--grund); }
    .nepm-nav a.aktiv { background: var(--m-hell); color: var(--m) !important; }
    .nepm-nav a .nepm-nav-zahl { margin-left: auto; background: var(--rot); color: #fff; border-radius: 9px; font-size: 11px; font-weight: 800; padding: 1px 7px; }
    .nepm-ich { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; color: var(--tinte) !important; text-decoration: none !important; }
    .nepm-ich:hover { background: var(--grund); }
    .nepm-ich small { display: block; color: var(--grau); font-size: 12px; }
    .nepm-tabs { display: none; }
    .nepm-kopf { padding: 0 24px; height: 64px; }
    .nepm-kopf .nepm-nur-mobil { display: none; }
    .nepm-inhalt { padding: 12px 32px 64px; }
    .nepm-fab { bottom: 28px; right: 32px; }
}
@media (max-width: 959px) {
    .nepm-nur-desktop { display: none !important; }
}

/* ------------------------------------------------------------------
   Bausteine
------------------------------------------------------------------ */
.nepm-seitenkopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 16px; }
.nepm-seitenkopf p { margin: 4px 0 0; color: var(--grau); }
.nepm-zeile { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nepm-spalten { display: grid; gap: 16px; }
@media (min-width: 960px) { .nepm-spalten--2 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } }

.nepm-block { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r); padding: 16px; margin-bottom: 16px; }
.nepm-block > h2, .nepm-block-kopf { margin-bottom: 12px; }
.nepm-block-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nepm-block-kopf a, .nepm-block-kopf button.nepm-text-knopf { font-size: 14px; font-weight: 650; }

/* gruppierte Listen (wie Einstellungen am Handy) */
.nepm-liste { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r); overflow: hidden; margin-bottom: 16px; }
.nepm-liste > * + * { border-top: 1px solid var(--linie); }
.nepm-eintrag {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 60px;
    color: var(--tinte) !important; text-decoration: none !important; background: transparent; border: 0; width: 100%; text-align: left; cursor: pointer;
}
.nepm-eintrag:hover { background: var(--flaeche-2); }
.nepm-eintrag-text { flex: 1; min-width: 0; }
.nepm-eintrag-titel { font-weight: 650; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nepm-eintrag-unter { display: block; color: var(--grau); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nepm-eintrag-rechts { flex: 0 0 auto; text-align: right; color: var(--grau); font-size: 13px; }
.nepm-eintrag-ikon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grund); color: var(--tinte-2); }
.nepm-eintrag-ikon svg { width: 20px; height: 20px; }
.nepm-pfeil { color: var(--linie-2); }
.nepm-pfeil svg { width: 18px; height: 18px; }

.nepm-knopf {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--linie-2);
    background: var(--flaeche); color: var(--tinte) !important; font-weight: 650; font-size: 15px;
    cursor: pointer; text-decoration: none !important; white-space: nowrap;
}
.nepm-knopf:hover { border-color: var(--grau); }
.nepm-knopf:disabled { opacity: .45; cursor: not-allowed; }
.nepm-knopf svg { width: 18px; height: 18px; }
.nepm-knopf--haupt { background: var(--m); border-color: var(--m); color: #fff !important; }
.nepm-knopf--haupt:hover { background: var(--m-dunkel); border-color: var(--m-dunkel); }
.nepm-knopf--gruen { background: var(--gruen); border-color: var(--gruen); color: #fff !important; }
.nepm-knopf--gefahr { color: var(--rot) !important; border-color: color-mix(in srgb, var(--rot) 40%, transparent); }
.nepm-knopf--klein { min-height: 34px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.nepm-knopf--breit { width: 100%; }
.nepm-text-knopf { background: none; border: 0; padding: 6px 4px; color: var(--m); font-weight: 650; cursor: pointer; }

.nepm-marke-chip, .nepm-chip {
    display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
    border-radius: 17px; border: 1px solid var(--linie-2); background: var(--flaeche);
    color: var(--tinte-2) !important; font-weight: 650; font-size: 14px; cursor: pointer; white-space: nowrap; text-decoration: none !important;
}
.nepm-chip.aktiv { background: var(--tinte); border-color: var(--tinte); color: var(--flaeche) !important; }
.nepm-chip .n { font-size: 12px; opacity: .7; }
.nepm-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.nepm-chips::-webkit-scrollbar { display: none; }
@media (min-width: 960px) { .nepm-chips { margin: 0; padding-left: 0; flex-wrap: wrap; } }

.nepm-segment { display: inline-flex; background: var(--linie); border-radius: 12px; padding: 3px; gap: 2px; }
.nepm-segment button { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; font-weight: 650; font-size: 14px; color: var(--tinte-2); cursor: pointer; white-space: nowrap; }
.nepm-segment button.aktiv { background: var(--flaeche); color: var(--tinte); box-shadow: var(--schatten); }
.nepm-segment button:disabled { opacity: .4; cursor: not-allowed; }
.nepm-segment--voll { display: flex; }
.nepm-segment--voll button { flex: 1; }
.nepm-segment--arten { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.nepm-segment--arten button, .nepm-segment--voll.nepm-segment--arten button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 11px; }
.nepm-segment--arten button svg { flex: 0 0 auto; }
@media (max-width: 600px) { .nepm-segment--arten:not(.nepm-segment--voll) button:not(.aktiv) span { display: none; } }
@media (max-width: 480px) { .nepm-segment--voll.nepm-segment--arten button:not(.aktiv) span { display: none; } }

.nepm-marke-text { color: var(--m); }
.nepm-plakette { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 7px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--grund); color: var(--tinte-2); }
.nepm-plakette i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }

.nepm-avatar { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: 13px; font-weight: 750; letter-spacing: .02em; }
.nepm-avatar--klein { width: 24px; height: 24px; font-size: 10px; }
.nepm-avatar--gross { width: 52px; height: 52px; font-size: 18px; }
.nepm-avatare { display: inline-flex; }
.nepm-avatare .nepm-avatar { border: 2px solid var(--flaeche); margin-left: -8px; }
.nepm-avatare .nepm-avatar:first-child { margin-left: 0; }

.nepm-suche { position: relative; flex: 1 1 220px; }
.nepm-suche svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--grau); }
.nepm-suche input { width: 100%; height: 44px; padding: 0 12px 0 38px; border-radius: 12px; border: 1px solid var(--linie-2); background: var(--flaeche); }
.nepm-werkzeug { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.nepm-werkzeug select { height: 44px; border-radius: 12px; border: 1px solid var(--linie-2); background: var(--flaeche); padding: 0 10px; }

.nepm-leer { text-align: center; padding: 36px 18px; color: var(--grau); }
.nepm-leer svg { width: 44px; height: 44px; color: var(--linie-2); }
.nepm-leer h3 { color: var(--tinte); margin: 10px 0 6px; }
.nepm-leer .nepm-knopf { margin-top: 12px; }

.nepm-hinweis { padding: 12px 14px; border-radius: 12px; background: var(--blau-hell); color: var(--tinte); font-size: 14px; margin-bottom: 12px; }
.nepm-hinweis--warn { background: var(--bernstein-hell); }
.nepm-hinweis--gut { background: var(--gruen-hell); }
.nepm-hinweis--fehler { background: var(--rot-hell); }

.nepm-skelett { border-radius: var(--r); background: linear-gradient(90deg, var(--linie) 0, var(--flaeche-2) 50%, var(--linie) 100%); background-size: 200% 100%; animation: nepm-schimmer 1.2s linear infinite; height: 64px; margin-bottom: 10px; }
@keyframes nepm-schimmer { to { background-position: -200% 0; } }

/* Formulare */
.nepm-feld { display: block; margin-bottom: 14px; }
.nepm-feld > span { display: block; font-weight: 650; font-size: 14px; margin-bottom: 6px; color: var(--tinte-2); }
.nepm-feld > span em { color: var(--rot); font-style: normal; }
.nepm-feld input:not([type=checkbox]):not([type=radio]), .nepm-feld select, .nepm-feld textarea {
    width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--linie-2);
    background: var(--flaeche); font-size: 16px;
}
.nepm-feld textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.nepm-feld small { display: block; color: var(--grau); margin-top: 5px; font-size: 13px; }
.nepm-feld-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nepm-haken { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; min-height: 40px; }
.nepm-haken input { width: 22px; height: 22px; accent-color: var(--m); }
.nepm-schnellwahl { display: flex; gap: 6px; flex-wrap: wrap; margin: -6px 0 14px; }

.nepm-schalter { position: relative; display: inline-block; width: 50px; height: 30px; flex: 0 0 auto; }
.nepm-schalter input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.nepm-schalter span { position: absolute; inset: 0; border-radius: 15px; background: var(--linie-2); transition: background .15s; }
.nepm-schalter span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s; }
.nepm-schalter input:checked + span { background: var(--gruen); }
.nepm-schalter input:checked + span::after { transform: translateX(20px); }
.nepm-schalter input:disabled + span { opacity: .45; }
.nepm-schalter input:focus-visible + span { outline: 3px solid var(--m-ring); }

/* ------------------------------------------------------------------
   Phasenband – das Erkennungszeichen
------------------------------------------------------------------ */
.nepm-band { display: flex; gap: 3px; height: 8px; }
.nepm-band i { flex: 1; border-radius: 3px; background: var(--linie); }
.nepm-band i.an { background: var(--f, var(--m)); }
.nepm-band--gross { height: 12px; gap: 4px; }
.nepm-stufen { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 10px 0 4px; }
.nepm-stufe { text-align: center; font-size: 11px; font-weight: 650; color: var(--grau); }
.nepm-stufe b { display: block; height: 10px; border-radius: 4px; background: var(--linie); margin-bottom: 6px; }
.nepm-stufe.erledigt b { background: color-mix(in srgb, var(--f) 55%, var(--flaeche)); }
.nepm-stufe.jetzt b { background: var(--f); box-shadow: 0 0 0 3px color-mix(in srgb, var(--f) 25%, transparent); }
.nepm-stufe.jetzt { color: var(--tinte); }
button.nepm-stufe { appearance: none; border: 0; background: none; padding: 6px 0 4px; margin: 0; cursor: pointer; border-radius: 8px; }
button.nepm-stufe:hover { background: var(--flaeche-2); color: var(--tinte); }
button.nepm-stufe:hover b { background: color-mix(in srgb, var(--f) 70%, var(--flaeche)); }
button.nepm-stufe:focus-visible { outline: 2px solid var(--m); outline-offset: 2px; }
button.nepm-stufe.jetzt { cursor: default; }
@media (max-width: 520px) { .nepm-stufe span { display: none; } .nepm-stufe.jetzt span { display: block; white-space: nowrap; } }

.nepm-fortschritt { height: 6px; border-radius: 3px; background: var(--linie); overflow: hidden; }
.nepm-fortschritt i { display: block; height: 100%; background: var(--gruen); border-radius: 3px; }

/* ------------------------------------------------------------------
   Start („Mein Tag“)
------------------------------------------------------------------ */
.nepm-tag {
    position: relative; overflow: hidden; border-radius: var(--r-gross); padding: 22px 20px 20px; margin: 4px 0 18px;
    background: var(--m); color: #fff;
}
.nepm-tag::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.nepm-tag-datum { font-size: 15px; opacity: .85; font-weight: 600; }
.nepm-tag h1 { color: #fff; font-size: 30px; margin: 2px 0 14px; letter-spacing: -.02em; }
.nepm-tag-zahlen { display: flex; gap: 22px; flex-wrap: wrap; position: relative; z-index: 1; }
.nepm-tag-zahlen a { color: #fff !important; text-decoration: none !important; }
.nepm-tag-zahlen b { display: block; font-size: 30px; font-weight: 780; line-height: 1; }
.nepm-tag-zahlen span { font-size: 13px; opacity: .85; }
@media (prefers-color-scheme: dark) { .nepm-tag { background: #5d0f30; } }

.nepm-pipeline { display: flex; height: 34px; border-radius: 10px; overflow: hidden; margin: 6px 0 10px; background: var(--linie); }
.nepm-pipeline a { display: grid; place-items: center; color: #fff !important; font-weight: 750; font-size: 13px; text-decoration: none !important; min-width: 26px; }
.nepm-legende { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--tinte-2); }
.nepm-legende span { display: inline-flex; align-items: center; gap: 6px; }
.nepm-legende i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ------------------------------------------------------------------
   Projekte
------------------------------------------------------------------ */
.nepm-projekt-eintrag { display: block; padding: 14px; color: var(--tinte) !important; text-decoration: none !important; }
.nepm-projekt-eintrag:hover { background: var(--flaeche-2); }
.nepm-projekt-oben { display: flex; align-items: flex-start; gap: 10px; }
.nepm-projekt-oben .nepm-eintrag-text { flex: 1; min-width: 0; }
.nepm-projekt-unten { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.nepm-projekt-unten .nepm-band { flex: 1; }
.nepm-art { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto; }
.nepm-art svg { width: 20px; height: 20px; }
.nepm-art--webseite { background: var(--blau-hell); color: var(--blau); }
.nepm-art--plugin { background: color-mix(in srgb, var(--violett) 14%, var(--flaeche)); color: var(--violett); }
.nepm-art--it { background: color-mix(in srgb, var(--gruen) 14%, var(--flaeche)); color: var(--gruen); }
.nepm-art--admin { background: color-mix(in srgb, var(--bernstein) 14%, var(--flaeche)); color: var(--bernstein); }

/* v4.11.1: Kacheln passen sich der Bildschirmbreite an (kein waagerechtes Scrollen) */
.nepm-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; align-items: start; padding-bottom: 12px; }
.nepm-spalte { background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: var(--r); padding: 8px; min-height: 0; min-width: 0; }
.nepm-spalte-kopf { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; font-weight: 720; }
.nepm-spalte-kopf i { width: 10px; height: 10px; border-radius: 3px; }
.nepm-spalte-kopf > span:last-child { margin-left: auto; }
.nepm-karte { display: block; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: 12px; margin-bottom: 8px; color: var(--tinte) !important; text-decoration: none !important; box-shadow: var(--schatten); }
.nepm-karte:hover { border-color: var(--linie-2); }

.nepm-detailkopf { margin: 4px 0 6px; }
.nepm-detailkopf h1 { font-size: 24px; }
.nepm-reiter {
    position: sticky; top: calc(var(--kopf) + var(--oben)); z-index: 40; display: flex; gap: 4px; overflow-x: auto;
    margin: 8px -16px 16px; padding: 6px 16px; background: color-mix(in srgb, var(--grund) 90%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--linie); scrollbar-width: none;
}
.nepm-reiter::-webkit-scrollbar { display: none; }
.nepm-reiter a { flex: 0 0 auto; padding: 8px 12px; border-radius: 10px; font-weight: 650; font-size: 14px; color: var(--tinte-2) !important; text-decoration: none !important; display: inline-flex; gap: 6px; align-items: center; }
.nepm-reiter a.aktiv { background: var(--tinte); color: var(--flaeche) !important; }
.nepm-reiter a b { font-size: 11px; background: var(--linie); color: var(--tinte-2); border-radius: 8px; padding: 0 6px; }
.nepm-reiter a.aktiv b { background: rgba(255, 255, 255, .25); color: inherit; }
@media (min-width: 960px) { .nepm-reiter { top: 64px; margin: 8px 0 16px; padding: 6px 0; } }

.nepm-fakten { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.nepm-fakt { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: 12px; }
.nepm-fakt span { display: block; color: var(--grau); font-size: 13px; }
.nepm-fakt b { font-size: 18px; font-weight: 750; }
.nepm-kv { display: grid; grid-template-columns: minmax(110px, 35%) 1fr; gap: 8px 14px; font-size: 15px; margin: 0; }
.nepm-kv dt { color: var(--grau); }
.nepm-kv dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }

/* Aufgaben */
.nepm-aufgabe { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; }
.nepm-aufgabe-haken {
    flex: 0 0 auto; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--linie-2);
    background: transparent; cursor: pointer; display: grid; place-items: center; color: transparent; padding: 0;
}
.nepm-aufgabe-haken svg { width: 16px; height: 16px; }
.nepm-aufgabe-haken:hover { border-color: var(--gruen); color: var(--gruen); }
.nepm-aufgabe.erledigt .nepm-aufgabe-haken { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.nepm-aufgabe.erledigt .nepm-eintrag-titel { text-decoration: line-through; color: var(--grau); }
.nepm-aufgabe-text { flex: 1; min-width: 0; cursor: pointer; }
.nepm-aufgabe-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 4px; font-size: 13px; color: var(--grau); align-items: center; }
.nepm-faellig--ueber { color: var(--rot); font-weight: 700; }
.nepm-faellig--heute { color: var(--bernstein); font-weight: 700; }
.nepm-hoch { color: var(--rot); font-weight: 750; }
.nepm-schnell-aufgabe { display: flex; gap: 8px; padding: 10px 12px; }
.nepm-schnell-aufgabe input { flex: 1; min-width: 0; height: 44px; border-radius: 12px; border: 1px solid var(--linie-2); background: var(--flaeche); padding: 0 12px; }

/* Chat */
.nepm-chat { display: flex; flex-direction: column; min-height: 50vh; }
.nepm-chat-verlauf { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 4px 0 16px; }
.nepm-blase-zeile { display: flex; gap: 8px; align-items: flex-end; max-width: 88%; }
.nepm-blase-zeile.eigen { align-self: flex-end; flex-direction: row-reverse; }
.nepm-blase { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 18px 18px 18px 6px; padding: 9px 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.nepm-blase-zeile.eigen .nepm-blase { background: var(--m); border-color: var(--m); color: #fff; border-radius: 18px 18px 6px 18px; }
.nepm-blase-zeile.intern .nepm-blase { background: var(--bernstein-hell); border-color: color-mix(in srgb, var(--bernstein) 40%, transparent); color: var(--tinte); }
.nepm-blase-kopf { font-size: 12px; color: var(--grau); margin: 0 4px 3px; }
.nepm-blase-zeile.eigen .nepm-blase-kopf { text-align: right; }
.nepm-blase .erw { font-weight: 750; }
.nepm-chat-system { align-self: center; font-size: 13px; color: var(--grau); text-align: center; max-width: 90%; }
.nepm-chat-tag { align-self: center; font-size: 12px; font-weight: 700; color: var(--grau); background: var(--linie); border-radius: 10px; padding: 2px 10px; margin: 6px 0; }
.nepm-chat-eingabe {
    position: sticky; bottom: calc(var(--leiste) + var(--unten)); display: flex; gap: 8px; align-items: flex-end;
    padding: 10px 0; background: var(--grund);
}
.nepm-chat-eingabe textarea { flex: 1; min-height: 46px; max-height: 160px; resize: none; border-radius: 22px; border: 1px solid var(--linie-2); background: var(--flaeche); padding: 11px 16px; line-height: 1.35; }
.nepm-chat-eingabe .nepm-ikon-knopf { background: var(--m); color: #fff; border-radius: 50%; width: 46px; height: 46px; }
.nepm-chat-eingabe select { height: 46px; border-radius: 14px; border: 1px solid var(--linie-2); background: var(--flaeche); padding: 0 8px; max-width: 120px; }
@media (min-width: 960px) { .nepm-chat-eingabe { bottom: 0; } }

/* Kalkulation */
.nepm-position { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.nepm-position .nepm-eintrag-text { flex: 1; min-width: 0; }
.nepm-menge { display: inline-flex; align-items: center; border: 1px solid var(--linie-2); border-radius: 10px; overflow: hidden; background: var(--flaeche); flex: 0 0 auto; }
.nepm-menge button { width: 34px; height: 34px; border: 0; background: var(--flaeche-2); cursor: pointer; font-size: 18px; font-weight: 700; color: var(--tinte); }
.nepm-menge input { width: 46px; height: 34px; border: 0; text-align: center; font-weight: 700; background: transparent; -moz-appearance: textfield; }
.nepm-menge-zahl { min-width: 40px; text-align: center; font-weight: 700; }
.nepm-zeit-haken { align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--linie-2); border-radius: 12px; background: var(--flaeche-2); margin: 4px 0 2px; }
.nepm-zeit-haken input { margin-top: 3px; }
.nepm-zeit-block { border: 1px solid var(--linie-2); border-radius: 14px; padding: 14px; margin: 0 0 14px; background: var(--flaeche); }
.nepm-zeit-block .nepm-block-kopf { margin-bottom: 8px; }
.nepm-kzeit-zahlen { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 10px; }
.nepm-kzeit-zahlen div { display: flex; flex-direction: column; }
.nepm-kzeit-zahlen strong { font-size: 18px; }
.nepm-uhr-laeuft { color: var(--gruen); font-weight: 700; }
.nepm-menge input::-webkit-inner-spin-button { -webkit-appearance: none; }
.nepm-summe-block { background: var(--tinte); color: var(--flaeche); border-radius: var(--r); padding: 16px; margin-bottom: 16px; }
.nepm-summe-block .z { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.nepm-summe-block .gross { font-size: 28px; font-weight: 780; letter-spacing: -.02em; }
.nepm-summe-block small { opacity: .7; }

/* Baukasten-Kacheln */
.nepm-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; margin-bottom: 18px; }
.nepm-kachel { position: relative; text-align: left; border: 2px solid var(--linie); border-radius: var(--r); background: var(--flaeche); padding: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; min-height: 104px; color: var(--tinte); }
.nepm-kachel:hover { border-color: var(--linie-2); }
.nepm-kachel.an { border-color: var(--m); background: var(--m-hell); }
.nepm-kachel .t { font-weight: 700; padding-right: 26px; }
.nepm-kachel .k { font-size: 13px; color: var(--grau); }
.nepm-kachel .p { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 750; }
.nepm-kachel .h { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--linie-2); display: grid; place-items: center; color: #fff; }
.nepm-kachel.an .h { background: var(--m); border-color: var(--m); }
.nepm-kachel .h svg { width: 14px; height: 14px; }

/* Kalender */
.nepm-monat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 16px; }
.nepm-monat .wt { text-align: center; font-size: 12px; color: var(--grau); font-weight: 650; padding: 4px 0; }
.nepm-monat button { aspect-ratio: 1 / 1; min-height: 40px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-weight: 650; color: var(--tinte); padding: 0; }
.nepm-monat button.fremd { color: var(--linie-2); }
.nepm-monat button.heute { color: var(--m); font-weight: 800; }
.nepm-monat button.gewaehlt { background: var(--tinte); color: var(--flaeche); }
.nepm-monat button .pkt { display: flex; gap: 2px; height: 5px; }
.nepm-monat button .pkt i { width: 5px; height: 5px; border-radius: 50%; }
@media (min-width: 960px) { .nepm-monat button { aspect-ratio: auto; height: 62px; } }
.nepm-ereignis { display: flex; gap: 12px; padding: 12px 14px; align-items: flex-start; }
.nepm-ereignis-zeit { flex: 0 0 52px; font-weight: 750; font-size: 14px; }
.nepm-ereignis-strich { width: 4px; align-self: stretch; border-radius: 2px; flex: 0 0 auto; }

/* Neuigkeiten */
.nepm-neu-eintrag { display: flex; gap: 12px; padding: 12px 14px; align-items: flex-start; color: var(--tinte) !important; text-decoration: none !important; }
.nepm-neu-eintrag.ungelesen { background: color-mix(in srgb, var(--m) 6%, var(--flaeche)); }
.nepm-neu-eintrag.ungelesen .nepm-eintrag-titel::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--m); margin-left: 8px; vertical-align: middle; }
.nepm-neu-ikon { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: var(--grund); }
.nepm-tagestrenner { font-size: 13px; font-weight: 700; color: var(--grau); margin: 18px 4px 8px; }

/* Neukunden: Lead-Karten */
.nepm-lead { padding: 14px; }
.nepm-lead-kopf { display: flex; gap: 10px; align-items: flex-start; }
.nepm-lead-kopf button { all: unset; cursor: pointer; flex: 1; min-width: 0; }
.nepm-lead-aktionen { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.nepm-lead-aktion { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--flaeche-2); border: 1px solid var(--linie); font-weight: 650; font-size: 14px; }
.nepm-lead-ergebnis { margin-top: 10px; }
.nepm-prio { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-weight: 800; font-size: 13px; background: var(--grund); color: var(--tinte-2); flex: 0 0 auto; }
.nepm-prio--A { background: var(--rot-hell); color: var(--rot); }
.nepm-prio--B { background: var(--bernstein-hell); color: var(--bernstein); }
.nepm-entscheid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.nepm-pw { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; border-radius: 12px; background: var(--bernstein-hell); }
.nepm-pw code { font-size: 16px; font-weight: 750; background: var(--flaeche); padding: 4px 10px; border-radius: 8px; letter-spacing: .03em; }
.nepm-ablage { display: block; border: 2px dashed var(--linie-2); border-radius: var(--r); padding: 22px; text-align: center; cursor: pointer; background: var(--flaeche-2); }
.nepm-ablage.ueber { border-color: var(--m); background: var(--m-hell); }
.nepm-ablage input { display: none; }
.nepm-ablage strong { display: block; margin: 6px 0 2px; }
.nepm-ablage svg { width: 30px; height: 30px; color: var(--m); }
.nepm-schritte { display: grid; gap: 10px; }
.nepm-schritt { padding: 12px; border-radius: 12px; background: var(--flaeche-2); border: 1px solid var(--linie); }
.nepm-schritt-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* Katalog */
.nepm-katalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; }
.nepm-vorlage { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.nepm-vorlage-bild { position: relative; height: 190px; overflow: hidden; background: var(--grund); border-bottom: 1px solid var(--linie); }
.nepm-vorlage-bild iframe { width: 400%; height: 400%; border: 0; transform: scale(.25); transform-origin: 0 0; pointer-events: none; background: #fff; }
.nepm-vorlage-bild a { position: absolute; inset: 0; }
.nepm-vorlage-bild .leer { height: 100%; display: grid; place-items: center; color: var(--linie-2); }
.nepm-vorlage-bild .leer svg { width: 48px; height: 48px; }
.nepm-vorlage-inhalt { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.nepm-preis { font-size: 20px; font-weight: 780; color: var(--m); }
.nepm-beschreibung p { margin: 0 0 8px; }

/* ------------------------------------------------------------------
   Sheets (mobil von unten, Desktop als Dialog/Seitenpanel)
------------------------------------------------------------------ */
.nepm-sheet {
    border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 100%; max-height: 92vh; max-height: 92dvh;
    border-radius: 22px 22px 0 0; background: var(--flaeche); color: var(--tinte); box-shadow: var(--schatten-hoch);
}
.nepm-sheet::backdrop { background: rgba(18, 12, 30, .5); }
.nepm-sheet[open] { animation: nepm-hoch .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes nepm-hoch { from { transform: translateY(40px); opacity: .4; } }
.nepm-sheet form { display: flex; flex-direction: column; max-height: inherit; margin: 0; }
.nepm-sheet { overflow: hidden; display: none; flex-direction: column; }
.nepm-sheet[open] { display: flex; }
.nepm-sheet form { flex: 1 1 auto; min-height: 0; }
.nepm-sheet-kopf, .nepm-sheet-fuss { flex: 0 0 auto; }
.nepm-sheet-inhalt { min-height: 0; }
.nepm-sheet-griff { width: 40px; height: 5px; border-radius: 3px; background: var(--linie-2); margin: 8px auto 0; }
.nepm-sheet-kopf { display: flex; align-items: center; gap: 8px; padding: 8px 12px 10px 18px; border-bottom: 1px solid var(--linie); }
.nepm-sheet-kopf h2 { flex: 1; font-size: 18px; font-weight: 720; }
.nepm-sheet-inhalt { padding: 16px 18px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.nepm-sheet-fuss { display: flex; gap: 8px; padding: 12px 18px calc(12px + var(--unten)); border-top: 1px solid var(--linie); background: var(--flaeche-2); flex-wrap: wrap; box-shadow: 0 -6px 16px rgba(0, 0, 0, .06); }
.nepm-sheet-fuss .nepm-knopf { flex: 1; }
.nepm-sheet-fuss .nepm-knopf--links { flex: 0 0 auto; margin-right: auto; }
.nepm-sheet-fehler { background: var(--rot-hell); color: var(--tinte); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-size: 14px; }
@media (min-width: 720px) {
    .nepm-sheet { margin: auto; width: min(560px, calc(100vw - 32px)); border-radius: 20px; max-height: 88vh; }
    .nepm-sheet-griff { display: none; }
    .nepm-sheet--breit { width: min(860px, calc(100vw - 32px)); }
    .nepm-sheet--seite { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; border-radius: 0; width: min(640px, 100vw); }
    .nepm-sheet--seite form { height: 100%; }
    .nepm-sheet--seite[open] { animation: nepm-seite .22s ease-out; }
    .nepm-sheet-fuss .nepm-knopf { flex: 0 0 auto; }
    .nepm-sheet-fuss { justify-content: flex-end; }
}
@keyframes nepm-seite { from { transform: translateX(40px); opacity: .5; } }

/* Toasts */
.nepm-toasts { position: fixed; left: 12px; right: 12px; top: calc(var(--oben) + 10px); z-index: 100000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.nepm-toast { pointer-events: auto; display: flex; gap: 10px; align-items: center; max-width: 520px; width: 100%; background: var(--tinte); color: var(--flaeche); padding: 12px 14px; border-radius: 14px; box-shadow: var(--schatten-hoch); font-size: 15px; animation: nepm-rein .2s ease-out; }
.nepm-toast--fehler { background: var(--rot); color: #fff; }
.nepm-toast--gut { background: var(--gruen); color: #fff; }
.nepm-toast--neu { background: var(--flaeche); color: var(--tinte); border: 2px solid var(--m); }
.nepm-toast span { flex: 1; }
.nepm-toast a { color: inherit; font-weight: 750; text-decoration: underline; }
.nepm-toast button { background: none; border: 0; color: inherit; font-size: 20px; cursor: pointer; opacity: .7; }
@keyframes nepm-rein { from { transform: translateY(-10px); opacity: 0; } }
@media (min-width: 960px) { .nepm-toasts { top: auto; bottom: 20px; left: auto; right: 24px; align-items: flex-end; } }

/* Installieren-Hinweis */
.nepm-installieren { display: flex; align-items: center; gap: 12px; }
.nepm-installieren img { width: 44px; height: 44px; border-radius: 12px; }

/* ------------------------------------------------------------------
   Anmeldung
------------------------------------------------------------------ */
.nepm-login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: var(--grund); }
.nepm-login-karte { width: 100%; max-width: 400px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 22px; padding: 28px 24px; box-shadow: var(--schatten-hoch); }
.nepm-login-logo img { width: 64px; height: 64px; border-radius: 18px; display: block; }
.nepm-login h1 { font-size: 26px; margin: 16px 0 4px; letter-spacing: -.02em; }
.nepm-login-unter { color: var(--grau); margin: 0 0 18px; }
.nepm-login label { display: block; margin-bottom: 14px; }
.nepm-login label span { display: block; font-weight: 650; font-size: 14px; margin-bottom: 6px; color: var(--tinte-2); }
.nepm-login input[type=text], .nepm-login input[type=password] { width: 100%; height: 50px; border-radius: 12px; border: 1px solid var(--linie-2); background: var(--flaeche); color: var(--tinte); padding: 0 14px; font-size: 16px; font-family: var(--schrift); }
.nepm-login input:focus { outline: 3px solid var(--m-ring); border-color: var(--m); }
.nepm-login .nepm-login-merken { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--tinte-2); }
.nepm-login-merken input { width: 20px; height: 20px; accent-color: var(--m); }
.nepm-login-knopf { display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; border: 0; border-radius: 14px; background: var(--m); color: #fff !important; font-weight: 720; font-size: 16px; cursor: pointer; text-decoration: none !important; font-family: var(--schrift); }
.nepm-login-links { text-align: center; margin: 16px 0 0; }
.nepm-login-links a, .nepm-login-fuss a { color: var(--m); }
.nepm-login-fuss { font-size: 13px; color: var(--grau); text-align: center; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--linie); }
.nepm-login-meldung { border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 0 0 16px; background: var(--blau-hell); }
.nepm-login-meldung--fehler { background: var(--rot-hell); }
.nepm-login-meldung--gut { background: var(--gruen-hell); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
    .nepm-tabs, .nepm-seitenleiste, .nepm-fab, .nepm-kopf, .nepm-chat-eingabe { display: none !important; }
}
.nepm-pipeline i { display: block; height: 100%; }
.nepm-spalten { grid-template-columns: minmax(0, 1fr); }
.nepm-spalten > *, .nepm-inhalt > * { min-width: 0; }
.nepm-inhalt { overflow-x: clip; }
@media (min-width: 960px) { .nepm-spalten--2 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
@media (max-width: 520px) { .nepm-chat-eingabe select { max-width: 96px; font-size: 14px; } }

/* v4.1: Zugriff pro Kunde */
.nepm-zugriff-liste { display: flex; flex-direction: column; gap: 2px; }
.nepm-zugriff-zeile { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--linie); min-width: 0; }
.nepm-zugriff-zeile:last-child { border-bottom: 0; }
.nepm-zugriff-zeile .nepm-eintrag-text { flex: 1 1 auto; min-width: 0; }
.nepm-zugriff-zeile .nepm-eintrag-unter { white-space: normal; }
.nepm-ankreuz { border: 1px solid var(--linie); border-radius: 12px; padding: 10px 14px 12px; margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px; }
.nepm-ankreuz legend { font-weight: 650; font-size: 13px; padding: 0 4px; }
.nepm-ankreuz label { display: flex; align-items: center; gap: 8px; font-size: 14px; min-height: 28px; }
.nepm-ankreuz input { width: 18px; height: 18px; accent-color: var(--m); flex: 0 0 auto; }

/* v4.2: Anhänge an Aufgaben */
.nepm-anhaenge { display: flex; flex-direction: column; gap: 10px; }
.nepm-anhang-liste { display: flex; flex-direction: column; border: 1px solid var(--linie); border-radius: 12px; overflow: hidden; }
.nepm-anhang { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--linie); min-width: 0; }
.nepm-anhang:last-child { border-bottom: 0; }
.nepm-anhang .nepm-eintrag-text { flex: 1 1 auto; min-width: 0; }
.nepm-anhang .nepm-eintrag-titel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.nepm-anhang-link { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) auto; gap: 8px; }
@media (max-width: 560px) { .nepm-anhang-link { grid-template-columns: minmax(0, 1fr) auto; } .nepm-anhang-link input:nth-child(2) { grid-column: 1 / -1; grid-row: 2; } }
@media (max-width: 480px) { .nepm-sheet .nepm-feld-paar { grid-template-columns: minmax(0, 1fr); } }
.nepm-anhang a.nepm-eintrag-titel { color: var(--tinte); text-decoration: none; }
.nepm-anhang a.nepm-eintrag-titel:hover { color: var(--m); text-decoration: underline; }

/* v4.3: Kontextmenü (Rechtsklick / gedrückt halten) */
.nepm-kmenu { font-family: var(--schrift); color: var(--tinte); position: fixed; z-index: 1000; min-width: 230px; max-width: min(320px, calc(100vw - 16px)); max-height: calc(100vh - 16px); overflow-y: auto; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .18); padding: 6px; }
.nepm-ktitel { font-size: 12px; font-weight: 700; color: var(--grau); padding: 6px 10px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nepm-kmenu hr, .nepm-kliste hr { border: 0; border-top: 1px solid var(--linie); margin: 5px 4px; }
.nepm-kpunkt { appearance: none; border: 0; background: none; width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; font-family: var(--schrift); font-weight: 500; font-size: 14px; color: var(--tinte); text-align: left; cursor: pointer; min-height: 36px; }
.nepm-kpunkt .i { width: 18px; height: 18px; display: inline-flex; flex: 0 0 auto; color: var(--grau); }
.nepm-kpunkt .i svg { width: 18px; height: 18px; }
.nepm-kpunkt:hover:not(:disabled), .nepm-kpunkt:focus-visible { background: var(--m-hell); outline: none; }
.nepm-kpunkt.an { font-weight: 650; }
.nepm-kpunkt.an .i { color: var(--m); }
.nepm-kpunkt.gefahr, .nepm-kpunkt.gefahr .i { color: var(--rot, #dc2626); }
.nepm-kpunkt:disabled { opacity: .4; cursor: default; }
.nepm-kliste { display: flex; flex-direction: column; gap: 2px; }
.nepm-kliste .nepm-kpunkt { min-height: 48px; font-size: 16px; }

/* Baustein-Kacheln */
.nepm-kachel { position: relative; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.nepm-kachel.nepm-druck { transform: scale(.97); transition: transform .5s; }
.nepm-kachel.aus { opacity: .55; border-style: dashed; }
.nepm-kachel-menue { position: absolute; top: 6px; right: 38px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--grau); font-size: 18px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.nepm-kachel-menue:hover, .nepm-kachel-menue:focus-visible { background: var(--grund); color: var(--tinte); }
.nepm-kachel .t { padding-right: 66px; }
.nepm-kachel-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.nepm-bereich { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--grund); color: var(--tinte-2); }
.nepm-bereich--webseite { background: #dbeafe; color: #1e40af; }
.nepm-bereich--plugin { background: #ede9fe; color: #5b21b6; }
.nepm-bereich--aus { background: #fee2e2; color: #991b1b; }
.nepm-bereich--it { background: color-mix(in srgb, var(--gruen) 16%, var(--flaeche)); color: var(--gruen); }
.nepm-bereich--admin { background: color-mix(in srgb, var(--bernstein) 16%, var(--flaeche)); color: var(--bernstein); }
.nepm-bereich--alle { background: var(--linie); color: var(--tinte); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nepm-bereich--webseite { background: #1e3a8a; color: #dbeafe; } :root:not([data-theme="light"]) .nepm-bereich--plugin { background: #4c1d95; color: #ede9fe; } :root:not([data-theme="light"]) .nepm-bereich--aus { background: #7f1d1d; color: #fee2e2; } }
:root[data-theme="dark"] .nepm-bereich--webseite { background: #1e3a8a; color: #dbeafe; }
:root[data-theme="dark"] .nepm-bereich--plugin { background: #4c1d95; color: #ede9fe; }
:root[data-theme="dark"] .nepm-bereich--aus { background: #7f1d1d; color: #fee2e2; }

/* v4.3: Passwort-Regeln */
.nepm-pw-regeln { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 4px 12px; font-size: 13px; color: var(--grau); }
.nepm-pw-regeln li { display: flex; align-items: center; gap: 6px; }
.nepm-pw-regeln li.ok { color: var(--gruen, #16a34a); }

/* v4.4: Abos nach Kunden mit Zahlungsverlauf */
.nepm-abo-kunde .nepm-block-kopf { align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.nepm-abo-liste { display: flex; flex-direction: column; gap: 10px; }
.nepm-abo { border: 1px solid var(--linie); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; background: var(--flaeche); }
.nepm-abo-kopf { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.nepm-abo-kopf .nepm-eintrag-text { flex: 1 1 auto; min-width: 0; }
.nepm-abo-preis { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; white-space: nowrap; }
.nepm-perioden { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.nepm-periode { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: 12px; font-weight: 650; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--linie-2); background: var(--flaeche); color: var(--grau); white-space: nowrap; }
button.nepm-periode { cursor: pointer; }
button.nepm-periode:hover { border-color: var(--m); }
.nepm-periode.bezahlt { background: color-mix(in srgb, var(--gruen) 14%, var(--flaeche)); border-color: color-mix(in srgb, var(--gruen) 45%, var(--flaeche)); color: var(--gruen); }
.nepm-periode.offen { background: var(--rot-hell); border-color: color-mix(in srgb, var(--rot) 40%, var(--flaeche)); color: var(--rot); }
.nepm-periode.frei { border-style: dashed; }
.nepm-abo-aktionen { gap: 8px; align-items: center; }
.nepm-ankreuz--raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.nepm-ankreuz--raster legend { grid-column: 1 / -1; }
@media (max-width: 480px) { .nepm-abo-kopf { flex-wrap: wrap; } .nepm-abo-preis { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; } }

/* v4.5: Vertrieb */
@media (min-width: 720px) { .nepm-nur-mobil { display: none !important; } }
.nepm-vbrett { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.nepm-vspalte { background: var(--flaeche-2); border: 1px solid var(--linie); border-top: 3px solid var(--f); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; scroll-snap-align: start; align-self: start; }
.nepm-vspalte-kopf { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 13px; color: var(--tinte); }
.nepm-vspalte-kopf .n { background: var(--flaeche); border-radius: 999px; padding: 1px 8px; font-size: 12px; color: var(--grau); }
.nepm-vkarte { appearance: none; text-align: left; font: inherit; color: var(--tinte); background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; min-width: 0; }
.nepm-vkarte:hover, .nepm-vkarte:focus-visible { border-color: var(--m); outline: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .06); }
.nepm-vkarte-titel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.nepm-vinfo { gap: 5px; margin-top: 4px; }
.nepm-vchip { font-size: 11.5px; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: var(--grund); color: var(--tinte-2); white-space: nowrap; }
.nepm-vchip.heute { background: #fef3c7; color: #92400e; }
.nepm-vchip.ueber { background: var(--rot-hell); color: var(--rot); }
.nepm-vchip.angebot { background: color-mix(in srgb, var(--gruen) 14%, var(--flaeche)); color: var(--gruen); }
.nepm-vwerkzeug { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.nepm-kontaktarten { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.nepm-kontaktart { appearance: none; font: inherit; font-weight: 650; font-size: 14px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--linie); background: var(--flaeche); color: var(--tinte); cursor: pointer; min-height: 48px; }
.nepm-kontaktart .i { font-size: 18px; }
.nepm-kontaktart.aktiv { border-color: var(--m); background: var(--m-hell); }
.nepm-leitfaden { border: 1px solid var(--linie); border-radius: 12px; padding: 0 12px; margin: 10px 0; background: var(--flaeche); }
.nepm-leitfaden summary { cursor: pointer; font-weight: 700; padding: 12px 0; display: flex; justify-content: space-between; align-items: center; }
.nepm-leitfaden summary .n { font-size: 12px; color: var(--grau); font-weight: 600; }
.nepm-leitfaden[open] summary { border-bottom: 1px solid var(--linie); margin-bottom: 10px; }
@media (max-width: 719px) { .nepm-vbrett { grid-auto-columns: 82%; } }

/* v4.6: Zeiterfassung */
.nepm-zeit-tag { margin-bottom: 8px; }
.nepm-zeit-liste { display: flex; flex-direction: column; border: 1px solid var(--linie); border-radius: 14px; overflow: hidden; background: var(--flaeche); }
.nepm-zeit-zeile { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-bottom: 1px solid var(--linie); cursor: pointer; min-width: 0; }
.nepm-zeit-zeile:last-child { border-bottom: 0; }
.nepm-zeit-zeile:hover, .nepm-zeit-zeile:focus-visible { background: var(--flaeche-2); outline: none; }
.nepm-zeit-cb input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--m); }
.nepm-zeit-text { flex: 1 1 auto; min-width: 0; }
.nepm-zeit-kunde { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nepm-zeit-taet { font-size: 14px; color: var(--tinte-2); white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nepm-zeit-zahlen { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; white-space: nowrap; }
.nepm-zeit-leiste { position: sticky; top: 70px; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; margin-bottom: 10px; border-radius: 14px; background: var(--tinte); color: var(--flaeche); }
.nepm-zeit-leiste .nepm-text-knopf { color: inherit; }
.nepm-kontingente { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.nepm-kontingent { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--linie); border-radius: 12px; }
.nepm-kontingent.ueber { border-color: color-mix(in srgb, var(--rot) 45%, var(--flaeche)); }
.nepm-import-zeile { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: end; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.nepm-import-zeile .nepm-feld { margin: 0; }
@media (max-width: 720px) { .nepm-import-zeile { grid-template-columns: minmax(0, 1fr); } }
/* Protokoll */
.nepm-prot-liste { display: flex; flex-direction: column; gap: 8px; }
.nepm-prot { border: 1px solid var(--linie); border-left: 3px solid var(--grau); border-radius: 12px; padding: 10px 12px; background: var(--flaeche); font-size: 14px; overflow-wrap: anywhere; }
.nepm-prot.erstellt { border-left-color: var(--gruen); }
.nepm-prot.geloescht { border-left-color: var(--rot); }
.nepm-prot.status, .nepm-prot.bearbeitet { border-left-color: var(--bernstein); }
.nepm-prot-kopf { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.nepm-prot-diff summary { cursor: pointer; color: var(--grau); font-size: 13px; margin-top: 4px; }
.nepm-prot-diff table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 6px; }
.nepm-prot-diff th, .nepm-prot-diff td { text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.nepm-werkzeug input[type=month], .nepm-werkzeug input[type=date] { min-height: 44px; border-radius: 12px; border: 1px solid var(--linie-2); background: var(--flaeche); color: var(--tinte); padding: 0 10px; font: inherit; }

/* ------------------------------------------------------------------
   v4.7 Gesprächsgrundlage, Erste 5, App-Installation
------------------------------------------------------------------ */
.nepm-vchip.erste5 { background: #fef9c3; color: #854d0e; }
.nepm-grundlage-frage { background: color-mix(in srgb, var(--m) 8%, var(--flaeche)); border: 1px solid color-mix(in srgb, var(--m) 25%, var(--linie)); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.nepm-grundlage-frage > span { display: block; font-size: 12px; font-weight: 720; color: var(--m); text-transform: uppercase; letter-spacing: .03em; }
.nepm-grundlage-frage p { margin: 6px 0 4px; font-size: 16px; font-weight: 600; line-height: 1.45; }
.nepm-grundlage-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.nepm-grundlage-punkt { border: 1px solid var(--linie); border-radius: 12px; padding: 10px 12px; background: var(--flaeche); }
.nepm-grundlage-punkt strong { display: block; font-size: 13.5px; margin-bottom: 4px; }
.nepm-grundlage-punkt p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--tinte-2); white-space: pre-line; }
.nepm-grundlage-punkt.vorschlag { border-color: color-mix(in srgb, var(--blau, #2563eb) 30%, var(--linie)); }
.nepm-grundlage-punkt.nutzen { border-color: color-mix(in srgb, var(--gruen) 35%, var(--linie)); background: color-mix(in srgb, var(--gruen) 5%, var(--flaeche)); }
.nepm-schritte-liste { margin: 6px 0 0; padding-left: 20px; }
.nepm-schritte-liste li { margin: 4px 0; line-height: 1.45; }
.nepm-login-app { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--linie); font-size: 14px; }
.nepm-login-app summary { cursor: pointer; font-weight: 700; color: var(--tinte); list-style: none; display: flex; align-items: center; gap: 8px; }
.nepm-login-app summary::-webkit-details-marker { display: none; }
.nepm-login-app h3 { font-size: 14px; margin: 14px 0 2px; }
.nepm-login-app ol { margin: 4px 0 0; padding-left: 20px; color: var(--tinte-2); }
.nepm-login-app li { margin: 3px 0; }
.nepm-login-app .nepm-login-knopf { margin-top: 12px; height: 46px; background: var(--flaeche); color: var(--m) !important; border: 2px solid var(--m); }
.nepm-login [hidden], .nepm-app [hidden] { display: none !important; }

/* v4.8 Aufgaben: Wer soll informiert werden? */
.nepm-personen-wahl { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.nepm-person-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 3px 10px 3px 4px; border-radius: 999px; border: 1px solid var(--linie-2); background: var(--flaeche); color: var(--tinte-2); font: 600 13.5px var(--schrift); cursor: pointer; }
.nepm-person-chip:hover { border-color: var(--m); }
.nepm-person-chip.aktiv { background: color-mix(in srgb, var(--m) 12%, var(--flaeche)); border-color: var(--m); color: var(--m); }
.nepm-person-chip:focus-visible { outline: 3px solid var(--m-ring); outline-offset: 1px; }

/* v4.8 Preisliste & Pakete: Mehrfachauswahl */
.nepm-markier-leiste { position: sticky; top: calc(var(--kopf-h, 56px) + 6px); z-index: 20; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; margin: 0 0 10px; border-radius: 14px; background: color-mix(in srgb, var(--m) 10%, var(--flaeche)); border: 1px solid color-mix(in srgb, var(--m) 30%, var(--linie)); box-shadow: var(--schatten); }
.nepm-markier-haken { flex: none; width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--linie-2); background: var(--flaeche); display: grid; place-items: center; color: #fff; cursor: pointer; padding: 0; }
.nepm-markier-haken.an { background: var(--m); border-color: var(--m); }
.nepm-markier-haken:focus-visible { outline: 3px solid var(--m-ring); outline-offset: 2px; }
.nepm-markierbar.markiert { background: color-mix(in srgb, var(--m) 7%, var(--flaeche)); }
.nepm-markierbar.inaktiv .nepm-eintrag-titel { color: var(--grau); }
.nepm-zeilen-menue { flex: none; width: 34px; height: 34px; font-size: 18px; line-height: 1; }

/* v4.9 Gerät wählen + QR-Kopplung */
.nepm-geraete { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 12px; }
.nepm-geraet { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 6px 12px; border-radius: 14px; border: 1.5px solid var(--linie-2); background: var(--flaeche); color: var(--tinte); font: 650 14px var(--schrift); cursor: pointer; text-align: center; }
.nepm-geraet .sym { font-size: 28px; line-height: 1.1; }
.nepm-geraet small { font-weight: 500; font-size: 12px; color: var(--grau); }
.nepm-geraet:hover { border-color: var(--m); }
.nepm-geraet.aktiv { border-color: var(--m); background: color-mix(in srgb, var(--m) 8%, var(--flaeche)); }
.nepm-geraet:focus-visible { outline: 3px solid var(--m-ring); outline-offset: 2px; }
.nepm-geraet-box h3 { font-size: 15px; margin: 6px 0 4px; }
.nepm-qr-feld { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.nepm-qr { flex: none; width: 232px; height: 232px; padding: 8px; background: #fff; border-radius: 14px; border: 1px solid var(--linie); transition: opacity .2s; }
.nepm-qr svg { display: block; width: 100%; height: 100%; }
.nepm-qr.abgelaufen { opacity: .15; }
.nepm-qr.fertig { opacity: .25; }
.nepm-qr-feld > div:last-child { flex: 1; min-width: 200px; }
.nepm-qr-status { margin: 10px 0 4px; font-weight: 600; }
.nepm-qr-status.gut { color: var(--gruen); }
@media (max-width: 420px) { .nepm-qr { width: 100%; height: auto; aspect-ratio: 1; } }

/* v4.10 Installations-Hilfe mit Pfeil */
.nepm-coach { position: fixed; inset: 0; z-index: 10000; background: rgba(15, 10, 20, .62); display: flex; align-items: center; justify-content: center; padding: 16px; font-family: var(--schrift); animation: nepm-rein .2s; }
.nepm-coach-karte { width: 100%; max-width: 420px; background: var(--flaeche); color: var(--tinte); border-radius: 20px; padding: 20px; box-shadow: var(--schatten-hoch); }
.nepm-coach-titel { display: block; font-size: 18px; margin-bottom: 6px; }
.nepm-coach .nepm-schritte-liste li { margin: 8px 0; font-size: 15.5px; }
.nepm-coach .nepm-knopf { width: 100%; justify-content: center; margin-top: 6px; }
.nepm-coach-pfeil { position: fixed; font-size: 46px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.5); animation: nepm-wippen 1s ease-in-out infinite; }
.pfeil-unten .nepm-coach-pfeil { bottom: 10px; left: calc(50% - 18px); }
.pfeil-unten { align-items: flex-end; padding-bottom: 80px; }
.pfeil-oben .nepm-coach-pfeil, .pfeil-oben-rechts .nepm-coach-pfeil { top: 6px; right: 22px; }
.pfeil-oben-links .nepm-coach-pfeil { top: 6px; left: 40px; }
.pfeil-oben, .pfeil-oben-rechts, .pfeil-oben-links { align-items: flex-start; padding-top: 70px; }
@keyframes nepm-wippen { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.pfeil-unten .nepm-coach-pfeil { animation-name: nepm-wippen-unten; }
@keyframes nepm-wippen-unten { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .nepm-coach-pfeil { animation: none; } }
.nepm-installieren { flex-wrap: wrap; }

.nepm-spalte-kopf { gap: 8px; padding: 2px 4px 8px; }
.nepm-spalte-sym { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: var(--f); background: color-mix(in srgb, var(--f) 16%, var(--flaeche)); }
.nepm-spalte-titel { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.nepm-spalte-n { margin-left: auto; color: var(--grau); font-weight: 650; font-size: 13px; background: var(--flaeche); border-radius: 999px; padding: 1px 8px; }
.nepm-spalte .nepm-karte { padding: 9px 10px; }
@media (max-width: 520px) { .nepm-board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.nepm-inhalt:has(.nepm-board) { max-width: 1600px; }

/* v4.12 Kunden-Stammbaum */
.nepm-baum { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; align-items: start; }
.nepm-baum-wurzel { background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: var(--r); padding: 10px; transition: box-shadow .15s, border-color .15s; }
.nepm-baum-wurzel.ziel { border-color: var(--m); box-shadow: 0 0 0 3px var(--m-ring); }
.nepm-baum-kopf { display: flex; align-items: center; gap: 10px; padding: 2px 4px 10px; }
.nepm-baum-wurzel-ikon { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: var(--m); }
.nepm-baum-wurzel--firma .nepm-baum-wurzel-ikon { background: var(--blau, #2563eb); }
.nepm-baum-wurzel--frei .nepm-baum-wurzel-ikon { background: var(--grau); }
.nepm-baum-ast { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--linie-2); }
.nepm-baum-ast--oben { margin-left: 18px; }
.nepm-baum-ast li { position: relative; margin: 4px 0; }
.nepm-baum-ast li::before { content: ''; position: absolute; left: -14px; top: 22px; width: 12px; border-top: 2px solid var(--linie-2); }
.nepm-baum-kunde { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 12px; background: var(--flaeche); border: 1px solid var(--linie); color: var(--tinte) !important; text-decoration: none !important; min-width: 0; }
.nepm-baum-kunde:hover { border-color: var(--m); }
.nepm-baum-kunde[draggable="true"] { cursor: grab; }
.nepm-baum-ikon { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--grund); color: var(--tinte-2); }
.nepm-baum-chips { display: flex; gap: 4px; margin-left: auto; flex: none; }
.nepm-baum-ast .nepm-baum-ast .nepm-baum-kunde { background: transparent; }
/* v4.12 Zugangsdaten */
.nepm-zugang-liste { display: grid; gap: 6px; }
.nepm-zugang { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--linie); border-radius: 12px; background: var(--flaeche); }
.nepm-zugang.kaputt { border-color: var(--rot); }
.nepm-zugang .nepm-eintrag-text { min-width: 0; flex: 1; }
.nepm-zugang-werte { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 13.5px; color: var(--tinte-2); }
.nepm-zugang-werte code { font-size: 13px; overflow-wrap: anywhere; }
.nepm-geheim { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; overflow-wrap: anywhere; }
.nepm-zugang-aktionen { display: flex; align-items: center; gap: 4px; flex: none; }
.nepm-zugaenge { container-type: inline-size; }
.nepm-zugaenge .nepm-block-kopf { flex-wrap: wrap; gap: 6px; }
@container (max-width: 520px) { .nepm-zugang { flex-wrap: wrap; } .nepm-zugang-aktionen { width: 100%; justify-content: flex-end; } }

/* v4.13 Aufgaben-Updates */
.nepm-aufgabe-update { display: block; margin-top: 6px; padding: 6px 10px; border-left: 3px solid var(--m); background: color-mix(in srgb, var(--m) 6%, var(--flaeche)); border-radius: 0 8px 8px 0; font-size: 13.5px; }
.nepm-aufgabe-update-kopf { display: block; font-weight: 650; font-size: 12.5px; color: var(--tinte-2); }
.nepm-aufgabe-update-text { display: block; color: var(--tinte); white-space: pre-line; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nepm-updates-block > summary { cursor: pointer; font-weight: 720; margin-bottom: 8px; }
.nepm-updates-liste { display: grid; gap: 10px; max-height: 360px; overflow-y: auto; }
.nepm-update { display: flex; gap: 10px; align-items: flex-start; }
.nepm-update-kopf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.nepm-update-text { margin-top: 3px; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.5; background: var(--grund); border-radius: 0 12px 12px 12px; padding: 8px 11px; }
.nepm-update.eigen .nepm-update-text { background: color-mix(in srgb, var(--m) 9%, var(--flaeche)); }

/* v4.14 Wartet auf Feedback */
.nepm-aufgabe-wartet { display: block; margin-top: 6px; font-size: 13px; font-weight: 650; color: var(--bernstein, #b45309); }
.nepm-aufgabe-wartet.ich { color: var(--m); }
.nepm-aufgabe-wartet.faellig { color: var(--rot); }
.nepm-warten-wahl { margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--linie-2); border-radius: 12px; }
.nepm-warten-wahl .nepm-feld { margin-bottom: 6px; }
.nepm-block--wartet { border-left: 4px solid var(--bernstein, #b45309); }

/* v4.16: Team am Interessenten */
.nepm-team-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -2px 0 12px; }
.nepm-avatare { display: inline-flex; }
.nepm-avatare .nepm-avatar { margin-left: -6px; box-shadow: 0 0 0 2px var(--flaeche); }
.nepm-avatare .nepm-avatar:first-child { margin-left: 0; }
.nepm-vchip.audit-fertig { background: color-mix(in srgb, var(--violett) 14%, var(--flaeche)); color: var(--violett); }

/* v4.16: Vertriebs-Audit */
.nepm-audit { max-width: 1180px; }
.nepm-audit-kopf { position: sticky; top: 0; z-index: 4; background: var(--grund); padding: 6px 0 10px; }
.nepm-audit-kopf .nepm-fortschritt { margin-top: 6px; height: 8px; }
.nepm-audit-status { font-size: 13px; color: var(--grau); white-space: nowrap; }
.nepm-audit-status.gut { color: var(--gruen); }
.nepm-audit-status.warn { color: var(--bernstein); font-weight: 650; }
.nepm-audit-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.nepm-audit-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; position: sticky; top: 52px; z-index: 3; background: var(--grund); }
.nepm-audit-tab { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; border: 1px solid var(--linie-2); background: var(--flaeche); color: var(--tinte); border-radius: 999px; padding: 7px 12px; font-weight: 650; font-size: 13.5px; cursor: pointer; }
.nepm-audit-tab small { font-weight: 700; font-size: 11px; color: var(--grau); }
.nepm-audit-tab.fertig small { color: var(--gruen); }
.nepm-audit-tab.aktiv { background: var(--tinte); color: var(--flaeche); border-color: var(--tinte); }
.nepm-audit-tab.aktiv small { color: inherit; opacity: .75; }
.nepm-audit-tab--ergebnis { border-color: var(--m); color: var(--m); }
@media (min-width: 960px) {
    .nepm-audit-raster { grid-template-columns: 250px minmax(0, 1fr); align-items: start; }
    .nepm-audit-nav { flex-direction: column; overflow: visible; top: 70px; }
    .nepm-audit-tab { border-radius: 12px; justify-content: flex-start; }
    .nepm-audit-tab span { flex: 1; text-align: left; }
}
.nepm-audit-inhalt { min-width: 0; max-width: 820px; }
.nepm-audit-titel { display: flex; align-items: center; gap: 10px; margin: 2px 0 12px; font-size: 21px; }
.nepm-audit-frage { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; padding: 14px; margin-bottom: 10px; border-left: 4px solid var(--linie-2); }
.nepm-audit-frage.beantwortet { border-left-color: var(--gruen); }
.nepm-audit-frage-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 15.5px; }
.nepm-audit-intern { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--grau); border: 1px solid var(--linie-2); border-radius: 6px; padding: 1px 6px; flex: 0 0 auto; }
.nepm-audit-frage input:not([type=checkbox]), .nepm-audit-frage textarea { width: 100%; }
.nepm-audit-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nepm-audit-chips .nepm-chip { min-height: 40px; padding: 8px 14px; font-size: 14.5px; text-align: left; white-space: normal; max-width: 100%; height: auto; line-height: 1.3; }
.nepm-audit-inhalt .nepm-knopf { max-width: 100%; white-space: normal; height: auto; min-height: 42px; text-align: left; }
@media (max-width: 600px) {
    .nepm-audit-inhalt .nepm-kv { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .nepm-audit-inhalt .nepm-kv dt { font-size: 13px; margin-top: 8px; }
    .nepm-audit-inhalt .nepm-kv dd { margin: 0; font-weight: 600; }
}
.nepm-audit-chips.lang { flex-direction: column; align-items: stretch; }
.nepm-audit-tipp { margin-top: 10px; font-size: 14px; }
.nepm-audit-tipp summary { cursor: pointer; color: var(--bernstein); font-weight: 650; }
.nepm-audit-tipp p { margin: 6px 0 0; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--bernstein) 9%, var(--flaeche)); }
.nepm-audit-weiter { display: flex; justify-content: space-between; gap: 10px; margin: 16px 0 30px; flex-wrap: wrap; }
.nepm-audit-liste { display: flex; flex-direction: column; gap: 6px; }
.nepm-audit-listen-zeile { display: flex; gap: 6px; align-items: center; }
.nepm-audit-listen-zeile input { flex: 1; min-width: 0; }
.nepm-audit-offen { margin: 0; padding-left: 20px; }
.nepm-audit-offen li { margin: 4px 0; }
.nepm-audit-empf .nepm-eintrag-unter { white-space: normal; }
.nepm-audit-zuordnung { margin-top: 6px; max-width: 100%; font-size: 13px; padding: 4px 8px; }
.nepm-audit-aktionen { margin: 6px 0 30px; }

/* Menü-Stammbaum */
.nepm-baum-liste { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.nepm-baum-knoten { display: flex; flex-direction: column; gap: 6px; }
.nepm-baum-knoten .nepm-baum-knoten { margin-left: 22px; padding-left: 10px; border-left: 2px solid var(--linie-2); }
.nepm-baum-zeile { display: flex; gap: 8px; align-items: flex-start; background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: 12px; padding: 8px; }
.nepm-baum-punkt { width: 16px; flex: 0 0 auto; color: var(--grau); font-weight: 700; padding-top: 9px; text-align: center; }
.nepm-baum-felder { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nepm-baum-felder input { font-weight: 650; }
.nepm-baum-felder textarea { font-size: 13.5px; min-height: 34px; resize: vertical; }
.nepm-baum-knoepfe { display: flex; flex-wrap: wrap; gap: 2px; max-width: 108px; justify-content: flex-end; }
.nepm-baum-knoepfe .nepm-ikon-knopf { width: 32px; height: 32px; font-size: 16px; }
.nepm-baum-knoepfe .nepm-ikon-knopf:disabled { opacity: .3; }
@media (min-width: 720px) { .nepm-baum-knoepfe { max-width: none; flex-wrap: nowrap; } }
.nepm-baum-anzeige { margin: 4px 0; padding-left: 20px; }
.nepm-baum-anzeige li { margin: 3px 0; }
.nepm-baum-anzeige span { color: var(--tinte-2); }

/* Darstellung: Fenster / App / Klassisch */
.nepm-darstellung { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.nepm-darstellung-karte { display: flex; flex-direction: column; gap: 8px; align-items: stretch; text-align: left; border: 2px solid var(--linie-2); border-radius: 14px; background: var(--flaeche); padding: 10px; cursor: pointer; color: var(--tinte); font: inherit; }
.nepm-darstellung-karte strong { font-size: 14px; }
.nepm-darstellung-karte.aktiv { border-color: var(--m); box-shadow: 0 0 0 3px color-mix(in srgb, var(--m) 18%, transparent); }
.nepm-dv { position: relative; display: block; height: 96px; border-radius: 10px; background: var(--grund); overflow: hidden; }
.nepm-dv i, .nepm-dv b, .nepm-dv em, .nepm-dv u, .nepm-dv span { position: absolute; display: block; }
.nepm-dv--desktop { background: linear-gradient(135deg, #6c8fd6, #9a7bd8); }
.nepm-dv--desktop .leiste { left: 0; right: 0; bottom: 0; height: 12px; background: rgba(0,0,0,.35); }
.nepm-dv--desktop .fenster { background: #fff; border-radius: 4px; box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.nepm-dv--desktop .fenster b { left: 0; right: 0; top: 0; height: 8px; background: #d9dbe4; border-radius: 4px 4px 0 0; }
.nepm-dv--desktop .f1 { left: 30%; top: 12%; width: 48%; height: 58%; }
.nepm-dv--desktop .f1 em { left: 8%; height: 4px; width: 70%; background: #e3e5ec; }
.nepm-dv--desktop .f1 em:nth-of-type(1) { top: 30%; } .nepm-dv--desktop .f1 em:nth-of-type(2) { top: 50%; width: 55%; } .nepm-dv--desktop .f1 em:nth-of-type(3) { top: 70%; width: 62%; }
.nepm-dv--desktop .f2 { left: 52%; top: 36%; width: 40%; height: 44%; }
.nepm-dv--desktop .ordner { left: 6%; width: 16%; height: 13%; background: #f6c453; border-radius: 2px 5px 3px 3px; }
.nepm-dv--desktop .o1 { top: 10%; } .nepm-dv--desktop .o2 { top: 32%; } .nepm-dv--desktop .o3 { top: 54%; }
.nepm-dv--app { background: color-mix(in srgb, var(--m) 10%, var(--grund)); }
.nepm-dv--app .handy { left: 50%; top: 8%; width: 46px; height: 84%; transform: translateX(-50%); background: #fff; border: 3px solid #2a2438; border-radius: 10px; }
.nepm-dv--app .handy b { left: 6px; right: 6px; top: 5px; height: 6px; background: var(--m); border-radius: 3px; }
.nepm-dv--app .kacheln { left: 5px; right: 5px; top: 16px; height: 44px; }
.nepm-dv--app .kacheln em { width: 15px; height: 15px; border-radius: 4px; background: color-mix(in srgb, var(--m) 55%, #fff); }
.nepm-dv--app .kacheln em:nth-child(1) { left: 0; top: 0; } .nepm-dv--app .kacheln em:nth-child(2) { right: 0; top: 0; }
.nepm-dv--app .kacheln em:nth-child(3) { left: 0; top: 20px; } .nepm-dv--app .kacheln em:nth-child(4) { right: 0; top: 20px; }
.nepm-dv--app .handy u { left: 0; right: 0; bottom: 0; height: 9px; background: #ece9f2; text-decoration: none; }
.nepm-dv--klassisch { background: #f1f1f1; }
.nepm-dv--klassisch .seite { left: 0; top: 0; bottom: 0; width: 22%; background: #1d2327; }
.nepm-dv--klassisch .tabelle { left: 28%; right: 6%; top: 12%; bottom: 12%; background: #fff; border: 1px solid #dcdcde; }
.nepm-dv--klassisch .tabelle em { left: 6%; right: 6%; height: 5px; background: #e5e5e5; }
.nepm-dv--klassisch .tabelle em:nth-child(1) { top: 10%; background: #2271b1; height: 6px; }
.nepm-dv--klassisch .tabelle em:nth-child(2) { top: 30%; } .nepm-dv--klassisch .tabelle em:nth-child(3) { top: 48%; }
.nepm-dv--klassisch .tabelle em:nth-child(4) { top: 66%; } .nepm-dv--klassisch .tabelle em:nth-child(5) { top: 84%; }

/* Druck: Audit-Zusammenfassung */
#nepm-druck { display: none; }
@media print {
    html.nepm-druckt body > *:not(#nepm-druck) { display: none !important; }
    html.nepm-druckt #nepm-druck { display: block; color: #000; background: #fff; font: 11pt/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
    #nepm-druck h1 { font-size: 18pt; margin: 0 0 2pt; }
    #nepm-druck .unter { color: #555; margin: 0 0 14pt; }
    #nepm-druck h2 { font-size: 13pt; margin: 14pt 0 6pt; padding-bottom: 3pt; border-bottom: 1px solid #bbb; break-after: avoid; }
    #nepm-druck h3 { font-size: 11pt; margin: 8pt 0 2pt; }
    #nepm-druck .z { display: grid; grid-template-columns: 42% 1fr; gap: 10pt; padding: 3pt 0; border-bottom: 1px dotted #ddd; break-inside: avoid; }
    #nepm-druck .z span { color: #444; }
    #nepm-druck b { white-space: pre-line; }
    #nepm-druck ul { margin: 4pt 0; padding-left: 16pt; }
    #nepm-druck li { margin: 2pt 0; }
    #nepm-druck .fuss { margin-top: 18pt; font-size: 9pt; color: #666; }
    #nepm-druck section { break-inside: auto; }
}
@media (max-width: 600px) {
    .nepm-baum-zeile { flex-wrap: wrap; }
    .nepm-baum-felder { flex: 1 1 calc(100% - 30px); }
    .nepm-baum-knoepfe { max-width: none; width: 100%; justify-content: flex-end; flex-wrap: nowrap; }
    .nepm-baum-knoten .nepm-baum-knoten { margin-left: 10px; padding-left: 8px; }
}

/* v4.17: Interessent → Projekt */
.nepm-umw-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0; padding: 12px 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--gruen) 35%, var(--linie)); background: color-mix(in srgb, var(--gruen) 6%, var(--flaeche)); }
.nepm-umw-box .nepm-eintrag-text { display: flex; flex-direction: column; gap: 2px; min-width: 200px; flex: 1; }
.nepm-umw-gruppe { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0 0 14px; }
.nepm-umw-gruppe legend { font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.nepm-umw-wahl, .nepm-umw-teil { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--linie); border-radius: 12px; background: var(--flaeche); cursor: pointer; }
.nepm-umw-wahl.aktiv { border-color: var(--m); box-shadow: 0 0 0 2px color-mix(in srgb, var(--m) 15%, transparent); }
.nepm-umw-wahl input, .nepm-umw-teil input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--m); }
.nepm-umw-wahl span, .nepm-umw-teil span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nepm-umw-wahl small, .nepm-umw-teil small { color: var(--grau); font-size: 12.5px; overflow-wrap: anywhere; }
.nepm-umw-teil.leer { opacity: .5; cursor: default; }

/* v4.18: Mehrfachauswahl Aufgaben (Administrator) */
.nepm-aufgaben-leiste { position: sticky; top: 64px; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; margin: 0 0 10px; border-radius: 14px; background: var(--tinte); color: var(--flaeche); }
.nepm-aufgaben-leiste .nepm-text-knopf { color: inherit; text-decoration: underline; }
.nepm-aufgaben-leiste .nepm-knopf { background: var(--flaeche); }
.nepm-aufgaben-leiste .nepm-knopf:disabled { opacity: .45; }
.nepm-aufgabe--waehlen { cursor: pointer; }
.nepm-aufgabe--waehlen .nepm-aufgabe-haken { pointer-events: none; opacity: .5; }
.nepm-aufgabe--waehlen.gewaehlt { background: color-mix(in srgb, var(--m) 8%, var(--flaeche)); }
.nepm-aufgabe-wahl { width: 20px; height: 20px; flex: 0 0 auto; margin: 4px 2px 0 0; accent-color: var(--m); }
