/* KP Portal v2.1 — KOPFPUNK */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

#kp-app {
    font-family: 'DIN 2014', 'DIN Next', -apple-system, Arial, sans-serif;
    background: #000;
    color: #f2f2f2;
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.5;
}

/* ── LOGIN ─────────────────────────────────────────────────────────────────── */
#kp-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.kp-login__wrap { width: 100%; max-width: 380px; }
.kp-login__logo { height: 26px; width: auto; display: block; margin-bottom: 48px; }

/* ── NAV ──────────────────────────────────────────────────────────────────── */
#kp-nav {
    display: flex;
    align-items: center;
    gap: 0;
    background: #000;
    border-bottom: 1px solid #1a1a1a;
    padding: 0 60px;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.kp-nav__logo { height: 22px; width: auto; display: block; margin-right: 48px; flex-shrink: 0; }
#kp-nav-items { display: flex; flex: 1; }
.kp-nav-btn {
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #555;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    height: 60px;
    padding: 0 20px;
    cursor: pointer;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
}
.kp-nav-btn:hover { color: #f2f2f2; }
.kp-nav-btn.active { color: #D3FF00; border-bottom-color: #D3FF00; }
#kp-nav-user {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #555;
}
#kp-btn-logout {
    font-family: inherit;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: transparent;
    border: 1px solid #2a2a2a;
    color: #555;
    padding: 5px 12px;
    cursor: pointer;
    transition: all .15s;
}
#kp-btn-logout:hover { color: #ff4444; border-color: #ff4444; }

/* ── VIEWS ─────────────────────────────────────────────────────────────────── */
#kp-views { height: calc(100vh - 60px); overflow: hidden; position: relative; }
.kp-view { display: none; height: 100%; }
.kp-view.active { display: block; overflow-y: auto; }
#kp-view-boards.active { display: flex !important; overflow: hidden; }

/* ── BLOCK (Haupt-Padding wie bestehendes Dashboard) ────────────────────── */
.kp-block { padding: 80px 60px; background: #000; }

/* ── TYPOGRAFIE ────────────────────────────────────────────────────────────── */
.kp-h1 {
    font-size: 48px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -.5px;
    line-height: 1;
    margin-bottom: 12px;
}
.kp-date {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 60px;
}
.kp-nr {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: inline-block;
    padding: 4px 12px;
    margin-bottom: 24px;
    color: #D3FF00;
    background: #000;
    border: 1px solid #D3FF00;
}
.kp-divider { border: none; border-top: 2px solid #D3FF00; margin: 48px 0; }

/* ── DASHBOARD KACHELN ────────────────────────────────────────────────────── */
.kp-tiles {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    border: 1px solid #1a1a1a;
}
.kp-tile {
    padding: 40px 32px;
    border-right: 1px solid #1a1a1a;
    cursor: pointer;
    transition: background .15s;
}
.kp-tile:last-child { border-right: none; }
.kp-tile:hover { background: #111; }
.kp-tile__num {
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    color: #D3FF00;
    margin-bottom: 10px;
}
.kp-tile__label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #555;
}
.kp-tile--alert .kp-tile__num { color: #ff4444; }

/* ── STATS (Todo-Ansicht) ──────────────────────────────────────────────────── */
.kp-stats { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 48px; }
.kp-stat {
    flex: 1;
    min-width: 160px;
    padding: 32px 40px;
    border-right: 2px solid #D3FF00;
}
.kp-stat:last-child { border-right: none; }
.kp-stat__num { font-size: 56px; font-weight: 700; line-height: 1; color: #D3FF00; }
.kp-stat__label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; color: #555; margin-top: 8px; }
.kp-stat--alert .kp-stat__num { color: #ff4444; }

/* ── TOPBAR ────────────────────────────────────────────────────────────────── */
.kp-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 24px;
}

/* ── TOGGLE (User) ─────────────────────────────────────────────────────────── */
.kp-toggle {
    display: flex;
    background: #111;
    border: 1px solid #2a2a2a;
}
.kp-toggle-btn {
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: transparent;
    border: none;
    color: #555;
    padding: 6px 18px;
    cursor: pointer;
    transition: all .15s;
}
.kp-toggle-btn.active { background: #D3FF00; color: #000; }
.kp-toggle-btn:hover:not(.active) { color: #f2f2f2; }

/* ── FILTER BUTTONS ────────────────────────────────────────────────────────── */
.kp-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 32px; align-items: center; }
.kp-filter-btn {
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #555;
    padding: 5px 12px;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}
.kp-filter-btn:hover { color: #f2f2f2; border-color: #555; }
.kp-filter-btn.active { background: #D3FF00; color: #000; border-color: #D3FF00; }

/* ── SECTION LABELS ────────────────────────────────────────────────────────── */
.kp-section-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    padding: 4px 12px;
    margin-bottom: 16px;
    margin-top: 8px;
}
.kp-section-label--overdue { background: #ff4444; color: #fff; }
.kp-section-label--today   { background: #D3FF00; color: #000; }
.kp-section-label--week    { background: #1a1a1a; color: #f2f2f2; border: 1px solid #333; }

/* ── TAGES-HEADER (Diese Woche) ────────────────────────────────────────────── */
.kp-day-header {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #444;
    padding: 24px 0 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.kp-day-header::after { content: ''; flex: 1; height: 1px; background: #1a1a1a; }

/* ── AUFGABEN-ZEILE ────────────────────────────────────────────────────────── */
.kp-task {
    display: flex;
    align-items: stretch;
    background: #111;
    margin-bottom: 4px;
    border: 1px solid #1a1a1a;
    transition: background .1s;
}
.kp-task:hover { background: #161616; }
.kp-task__stripe { width: 3px; flex-shrink: 0; background: #2a2a2a; }
.kp-task--overdue .kp-task__stripe { background: #ff4444; }
.kp-task--today   .kp-task__stripe { background: #D3FF00; }
.kp-task--week    .kp-task__stripe { background: #333; }

.kp-task__right { display: flex; align-items: center; flex: 1; }
.kp-task__body  { flex: 1; padding: 16px 20px; cursor: pointer; }
.kp-task__title { font-size: 16px; font-weight: 700; color: #f2f2f2; margin-bottom: 6px; }
.kp-task__meta  { font-size: 11px; color: #555; display: flex; flex-wrap: wrap; gap: 16px; letter-spacing: .5px; }
.kp-task__meta b { color: #333; font-weight: 700; margin-right: 2px; }

.kp-task__btns { display: flex; align-items: center; gap: 10px; padding-right: 16px; flex-shrink: 0; }

.kp-task__badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 4px 10px;
    white-space: nowrap;
}
.kp-task--overdue .kp-task__badge { border: 1px solid #ff4444; color: #ff4444; }
.kp-task--today   .kp-task__badge { border: 1px solid #D3FF00; color: #D3FF00; }

.kp-task__timer {
    font-family: inherit;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 10px;
    background: transparent;
    border: 1px solid #2a2a2a;
    color: #555;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
}
.kp-task__timer:hover { border-color: #D3FF00; color: #D3FF00; }
.kp-task__timer.running { border-color: #ff4444; color: #ff4444; background: #0d0000; }

.kp-task__close {
    font-family: inherit;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 10px;
    background: transparent;
    border: 1px solid #2a2a2a;
    color: #333;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}
.kp-task__close:hover { border-color: #2ecc71; color: #2ecc71; }

/* ── LEER-ZUSTAND ──────────────────────────────────────────────────────────── */
.kp-empty {
    padding: 32px 0;
    font-size: 12px;
    color: #333;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
}

/* ── KUNDEN-TABELLE ────────────────────────────────────────────────────────── */
.kp-table { width: 100%; border-collapse: collapse; }
.kp-table th {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #333;
    text-align: left;
    padding: 0 24px 12px 0;
    border-bottom: 1px solid #1a1a1a;
}
.kp-table-row {
    border-bottom: 1px solid #111;
    cursor: pointer;
    transition: background .1s;
}
.kp-table-row:hover { background: #111; }
.kp-table-row td { padding: 14px 24px 14px 0; vertical-align: middle; }
.kp-client-name { font-size: 15px; font-weight: 700; color: #f2f2f2; margin-bottom: 3px; }
.kp-client-sub  { font-size: 11px; color: #444; }

.kp-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 3px 8px;
    border: 1px solid #2a2a2a;
    color: #555;
}
.kp-badge--retainer { border-color: #D3FF00; color: #D3FF00; }
.kp-badge--yes      { border-color: #2ecc71; color: #2ecc71; }

/* ── SLIDE-IN PANEL ────────────────────────────────────────────────────────── */
.kp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}
.kp-overlay.open { opacity: 1; pointer-events: all; }

.kp-panel {
    position: fixed;
    top: 0; right: 0;
    height: 100%;
    width: 540px;
    max-width: 95vw;
    background: #0a0a0a;
    border-left: 1px solid #1a1a1a;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.kp-panel.open { transform: translateX(0); }
.kp-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 1px solid #1a1a1a;
    position: sticky;
    top: 0;
    background: #0a0a0a;
    z-index: 1;
}
.kp-panel__x {
    background: none;
    border: none;
    color: #444;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color .1s;
}
.kp-panel__x:hover { color: #f2f2f2; }
.kp-panel__body { padding: 28px; flex: 1; }
.kp-panel__section { margin-bottom: 32px; }
.kp-panel__section-title {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #1a1a1a;
}

/* ── FORMULAR ──────────────────────────────────────────────────────────────── */
.kp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kp-form-full { grid-column: 1 / -1; }
.kp-field { display: flex; flex-direction: column; gap: 6px; }
.kp-field-label, .kp-field label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #444;
}
.kp-field input,
.kp-field select,
.kp-field textarea,
.kp-input {
    font-family: inherit;
    font-size: 13px;
    background: #111;
    border: 1px solid #2a2a2a;
    color: #f2f2f2;
    padding: 9px 12px;
    outline: none;
    transition: border-color .15s;
    width: 100%;
}
.kp-field input:focus,
.kp-field select:focus,
.kp-field textarea:focus,
.kp-input:focus { border-color: #D3FF00; }
.kp-field textarea { min-height: 80px; resize: vertical; }
.kp-field select { cursor: pointer; }
.kp-checkbox-row { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12px; color: #555; }
.kp-checkbox-row input { accent-color: #D3FF00; width: 14px; height: 14px; }

/* ── BUTTONS ──────────────────────────────────────────────────────────────── */
.kp-btn {
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: #D3FF00;
    color: #000;
    border: none;
    padding: 11px 24px;
    cursor: pointer;
    transition: opacity .15s;
    display: inline-block;
    white-space: nowrap;
}
.kp-btn:hover { opacity: .85; }
.kp-btn--sm { padding: 7px 16px; }
.kp-btn--ghost {
    background: transparent;
    color: #555;
    border: 1px solid #2a2a2a;
}
.kp-btn--ghost:hover { color: #f2f2f2; border-color: #555; }
.kp-btn--danger {
    background: transparent;
    color: #ff4444;
    border: 1px solid #ff4444;
}
.kp-link-btn {
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: transparent;
    border: 1px solid #2a2a2a;
    color: #444;
    padding: 6px 14px;
    cursor: pointer;
    transition: all .15s;
}
.kp-link-btn:hover { color: #D3FF00; border-color: #D3FF00; }

/* ── KONTAKT ──────────────────────────────────────────────────────────────── */
.kp-contact-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #111;
    border: 1px solid #1a1a1a;
    margin-bottom: 6px;
}
.kp-contact-name { font-size: 14px; font-weight: 700; color: #f2f2f2; margin-bottom: 3px; }
.kp-contact-role { font-size: 10px; color: #444; letter-spacing: .5px; margin-bottom: 8px; text-transform: uppercase; }
.kp-contact-links { display: flex; flex-wrap: wrap; gap: 12px; }
.kp-contact-links a { font-size: 12px; color: #3498db; text-decoration: none; }
.kp-contact-links a:hover { color: #D3FF00; }
.kp-contact-primary { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 2px 7px; border: 1px solid #D3FF00; color: #D3FF00; margin-left: 8px; }

/* ── NOTIZ ────────────────────────────────────────────────────────────────── */
.kp-note { padding: 12px 16px; background: #111; border: 1px solid #1a1a1a; margin-bottom: 6px; }
.kp-note-meta { font-size: 10px; color: #333; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.kp-note-text { font-size: 13px; color: #f2f2f2; line-height: 1.6; }

/* ── ZEITERFASSUNG ────────────────────────────────────────────────────────── */
.kp-rep-bar { height: 2px; background: #1a1a1a; margin-top: 4px; }
.kp-rep-bar__fill { height: 2px; background: #D3FF00; }

/* ── TOAST ────────────────────────────────────────────────────────────────── */
#kp-toast-wrap {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.kp-toast {
    padding: 10px 16px;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    pointer-events: all;
    animation: kpIn .2s ease;
}
.kp-toast--ok  { background: #D3FF00; color: #000; }
.kp-toast--err { background: #ff4444; color: #fff; }
@keyframes kpIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }

/* ── LOADING ──────────────────────────────────────────────────────────────── */
.kp-loading {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #333;
    padding: 40px 0;
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    #kp-nav { padding: 0 24px; }
    .kp-block { padding: 40px 24px; }
    .kp-h1 { font-size: 32px; }
    .kp-tiles { grid-template-columns: repeat(2,1fr); }
    .kp-stat { padding: 24px; }
    .kp-stat__num { font-size: 40px; }
    .kp-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .kp-tiles { grid-template-columns: 1fr 1fr; }
    .kp-task__btns { flex-direction: column; gap: 6px; padding: 8px; }
    .kp-topbar { flex-direction: column; }
}

/* ── Kontakte Detail-Layout ─────────────────────────────────────────────── */
.kp-detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: flex-start;
}

.kp-detail-section {
    margin-bottom: 48px;
}

.kp-detail-section-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #444;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #1a1a1a;
}

.kp-detail-side .kp-detail-section {
    position: sticky;
    top: 80px;
}

/* Kontakt-Item in Detailansicht größer */
.kp-detail-main .kp-contact-item {
    padding: 16px 20px;
    margin-bottom: 8px;
    width: 100%;
}
.kp-detail-main .kp-contact-name { font-size: 15px; }

/* Notizen in Seitenleiste */
.kp-detail-side .kp-note {
    padding: 14px 16px;
    margin-bottom: 8px;
}

@media (max-width: 1000px) {
    .kp-detail-grid { grid-template-columns: 1fr; gap: 0; }
    .kp-detail-side .kp-detail-section { position: static; }
}

/* ── Einspaltig für Kontakt-Detail ─────────────────────────────────────── */
.kp-detail-grid {
    grid-template-columns: 1fr !important;
}

/* ── Rich-Text Editor ────────────────────────────────────────────────────── */
.kp-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    background: #111;
    border: 1px solid #2a2a2a;
    border-bottom: none;
}
.kp-editor-btn {
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    border: 1px solid #2a2a2a;
    color: #555;
    padding: 4px 10px;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}
.kp-editor-btn:hover { color: #D3FF00; border-color: #D3FF00; }
.kp-editor-btn.active { background: #D3FF00; color: #000; border-color: #D3FF00; }
.kp-editor-sep {
    width: 1px;
    height: 18px;
    background: #2a2a2a;
    margin: 0 4px;
}
.kp-editor {
    min-height: 120px;
    padding: 12px 14px;
    background: #111;
    border: 1px solid #2a2a2a;
    color: #f2f2f2;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.7;
    outline: none;
    transition: border-color .15s;
}
.kp-editor:focus { border-color: #D3FF00; }
.kp-editor:empty::before {
    content: attr(data-placeholder);
    color: #333;
    pointer-events: none;
}
/* Formatierungen im Editor */
.kp-editor h2 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #D3FF00;
    margin: 16px 0 8px;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 6px;
}
.kp-editor h2:first-child { margin-top: 0; }
.kp-editor ul { padding-left: 20px; margin: 8px 0; }
.kp-editor ol { padding-left: 20px; margin: 8px 0; }
.kp-editor li { margin-bottom: 4px; color: #f2f2f2; }
.kp-editor strong, .kp-editor b { color: #fff; font-weight: 700; }

/* Notiz-Darstellung (gespeichert) */
.kp-note-content h2 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #D3FF00;
    margin: 12px 0 6px;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 4px;
}
.kp-note-content h2:first-child { margin-top: 0; }
.kp-note-content ul,
.kp-note-content ol { padding-left: 18px; margin: 6px 0; }
.kp-note-content li { margin-bottom: 3px; font-size: 13px; }
.kp-note-content p { margin: 4px 0; }

/* ── Kontakt X-Button: grau → rot bei Hover ── */
.kp-contact-item [data-act="del-c"] {
    border-color: #2a2a2a !important;
    color: #444 !important;
    transition: color .15s, border-color .15s;
}
.kp-contact-item [data-act="del-c"]:hover {
    border-color: #ff4444 !important;
    color: #ff4444 !important;
}

/* ── Ansprechpartner-Panel volle Breite ── */
#kp-cm {
    width: 100% !important;
    max-width: 100% !important;
    border-left: none !important;
    border-top: 1px solid #1a1a1a;
    top: 60px !important;
    height: calc(100% - 60px) !important;
}
#kp-cm .kp-panel__body {
    max-width: 900px;
    padding: 40px 60px;
}
#kp-cm-form {
    grid-template-columns: 1fr 1fr !important;
}
body > *:not(#kp-app) { display:none!important; }
body::before, body::after { display:none!important; content:''!important; font-size:0!important; width:0!important; height:0!important; }

/* ── Kontakt-Links ohne Emoji ───────────────────────────────────────────── */
.kp-contact-link {
    font-size: 12px;
    text-decoration: none;
    padding: 3px 10px;
    border: 1px solid #2a2a2a;
    color: #555;
    transition: all .15s;
    display: inline-block;
}
.kp-contact-link:hover { color: #D3FF00; border-color: #D3FF00; }
.kp-contact-link--tel::before { content: 'Tel '; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #333; }
.kp-contact-link--mob::before { content: 'Mob '; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #333; }
.kp-contact-link--mail::before { content: 'Mail '; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #333; }

/* ═══════════════════════════════════════════════════════════════════════════
   BOARDS
   ═══════════════════════════════════════════════════════════════════════════ */

#kp-boards-wrap {
    display: flex;
    height: calc(100vh - 60px);
    overflow: hidden;
    background: #000;
}

/* ── Sidebar ── */
#kp-boards-sidebar {
    width: 200px;
    flex-shrink: 0;
    background: #080808;
    border-right: 1px solid #1a1a1a;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.kp-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px 14px;
    border-bottom: 1px solid #1a1a1a;
}
.kp-board-nav-section {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #2a2a2a;
    padding: 16px 16px 6px;
}
.kp-board-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    border-left: 2px solid transparent;
    transition: all .1s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kp-board-nav-item:hover { color: #f2f2f2; background: #111; }
.kp-board-nav-item.active { color: #D3FF00; border-left-color: #D3FF00; background: #111; }
.kp-board-nav-dot { width: 6px; height: 6px; border-radius: 50%; background: #333; flex-shrink: 0; }
.kp-board-nav-item.active .kp-board-nav-dot { background: #D3FF00; }

/* ── Board Area ── */
#kp-board-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #050505;
}
.kp-board-placeholder {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.kp-board-topbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 20px 28px 16px;
    border-bottom: 1px solid #1a1a1a;
    background: #000;
    flex-shrink: 0;
}

/* ── Spalten ── */
.kp-board-columns {
    display: flex;
    gap: 0;
    padding: 24px 28px;
    overflow-x: auto;
    flex: 1;
    align-items: flex-start;
}
.kp-board-columns::-webkit-scrollbar { height: 4px; }
.kp-board-columns::-webkit-scrollbar-track { background: #0a0a0a; }
.kp-board-columns::-webkit-scrollbar-thumb { background: #2a2a2a; }

.kp-col {
    width: 272px;
    flex-shrink: 0;
    background: #0d0d0d;
    border: 1px solid #1a1a1a;
    margin-right: 16px;
    display: flex;
    flex-direction: column;
    max-height: 100%;
    transition: opacity .2s;
}
.kp-col.dragging-col { opacity: .4; cursor: grabbing; }
.kp-col.drag-col-over { border-color: #D3FF00; }

/* Admin-only Spalte */
.kp-col--admin {
    border-color: #ff4444;
    background: #0d0808;
}
.kp-col__admin-badge {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ff4444;
    border: 1px solid #ff4444;
    padding: 1px 6px;
    margin-left: 6px;
}

.kp-col__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px 10px;
    border-bottom: 1px solid #1a1a1a;
    cursor: grab;
    user-select: none;
}
.kp-col__head:active { cursor: grabbing; }

.kp-col__title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 0;
}
.kp-col--admin .kp-col__title { color: #ff4444; }

.kp-col__count {
    font-size: 10px;
    background: #1a1a1a;
    color: #444;
    padding: 1px 6px;
    margin-left: 8px;
    border: 1px solid #222;
}

.kp-col__acts { display: flex; gap: 2px; }
.kp-col__acts button {
    background: none; border: none; cursor: pointer;
    color: #2a2a2a; font-size: 13px; padding: 2px 5px;
    transition: color .1s;
}
.kp-col__acts button:hover { color: #555; }

.kp-col__cards {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 60px;
    overflow-y: auto;
    flex: 1;
}
.kp-col__cards::-webkit-scrollbar { width: 3px; }
.kp-col__cards::-webkit-scrollbar-thumb { background: #2a2a2a; }
.kp-col__cards.drag-over { background: rgba(211,255,0,.03); outline: 1px dashed #D3FF00; outline-offset: -4px; }

.kp-col__add {
    padding: 6px 8px 10px;
    border-top: 1px solid #111;
}
.kp-col__add button {
    width: 100%; padding: 8px;
    background: none;
    border: 1px dashed #1a1a1a;
    color: #2a2a2a;
    font-family: inherit; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    cursor: pointer; transition: all .15s;
}
.kp-col__add button:hover { border-color: #D3FF00; color: #D3FF00; }

/* ── Karten ── */
.kp-card {
    background: #141414;
    border: 1px solid #1e1e1e;
    cursor: pointer;
    transition: border-color .1s, transform .1s;
    user-select: none;
    overflow: hidden;
}
.kp-card:hover { border-color: #333; }
.kp-card.dragging { opacity: .35; transform: rotate(1.5deg); }
.kp-card.drag-placeholder { background: transparent; border: 1px dashed #2a2a2a; min-height: 56px; pointer-events: none; }

.kp-card__cover {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #1e1e1e;
}

.kp-card__body { padding: 10px 12px; }

.kp-card__prio-bar { height: 2px; margin: 0 0 8px; }
.kp-card__prio-bar--hoch    { background: #ff4444; }
.kp-card__prio-bar--normal  { background: #2a2a2a; }
.kp-card__prio-bar--niedrig { background: #2ecc71; }

.kp-card__title {
    font-size: 13px;
    font-weight: 600;
    color: #e0e0e0;
    line-height: 1.4;
    margin-bottom: 8px;
}
.kp-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.kp-card__due { font-size: 10px; color: #444; letter-spacing: .3px; }
.kp-card__due--overdue { color: #ff4444; font-weight: 700; }
.kp-card__due--today   { color: #D3FF00; font-weight: 700; }
.kp-card__label {
    font-size: 9px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; padding: 2px 6px;
    border: 1px solid #2a2a2a; color: #444;
}
.kp-card__avatar {
    width: 18px; height: 18px; border-radius: 50%;
    background: #2a2a2a; font-size: 8px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    color: #555; margin-left: auto; flex-shrink: 0;
}

/* Quick-Add */
.kp-quick-add {
    background: #1a1a1a;
    border: 1px solid #D3FF00;
    padding: 8px;
    display: flex; flex-direction: column; gap: 6px;
}
.kp-quick-add input {
    background: #111; border: 1px solid #2a2a2a;
    color: #f2f2f2; padding: 7px 10px;
    font-family: inherit; font-size: 13px; outline: none;
}
.kp-quick-add input:focus { border-color: #D3FF00; }
.kp-quick-add__acts { display: flex; gap: 6px; }

/* ── Karten-Detail-Panel ── */
.kp-card-panel { width: 600px !important; }

.kp-card-cover-wrap {
    position: relative;
    width: 100%;
    height: 160px;
    background: #111;
    overflow: hidden;
    flex-shrink: 0;
}
.kp-card-cover-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kp-card-cover-upload {
    position: absolute; bottom: 10px; right: 10px;
    font-family: inherit; font-size: 9px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    background: rgba(0,0,0,.7); border: 1px solid #555;
    color: #f2f2f2; padding: 5px 10px; cursor: pointer;
    transition: all .15s;
}
.kp-card-cover-upload:hover { border-color: #D3FF00; color: #D3FF00; }

.kp-card-cover-empty {
    display: flex; align-items: center; justify-content: center;
    height: 100%; cursor: pointer;
    border: 1px dashed #1a1a1a;
    transition: border-color .15s;
}
.kp-card-cover-empty:hover { border-color: #D3FF00; }
.kp-card-cover-empty span {
    font-size: 9px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 2px; color: #2a2a2a;
}
.kp-card-cover-empty:hover span { color: #D3FF00; }

/* Kommentare */
.kp-comment {
    display: flex; gap: 10px; margin-bottom: 16px;
}
.kp-comment__avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: #2a2a2a; font-size: 10px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    color: #555; flex-shrink: 0;
}
.kp-comment__body { flex: 1; }
.kp-comment__meta { font-size: 10px; color: #333; letter-spacing: .5px; margin-bottom: 4px; }
.kp-comment__text { font-size: 13px; color: #c0c0c0; line-height: 1.6; }

/* Boards-View ohne Block-Padding */
#kp-view-boards.active {
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
    padding: 0 !important;
}
#kp-view-boards.active #kp-boards-wrap {
    flex: 1;
    overflow: hidden;
}

/* ── Board Badge Navigation ─────────────────────────────────────────────── */
.kp-board-badge {
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 14px;
    border: 1px solid #2a2a2a;
    background: transparent;
    color: #444;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}
.kp-board-badge:hover { color: #f2f2f2; border-color: #555; }
.kp-board-badge.active { background: #D3FF00; color: #000; border-color: #D3FF00; }
.kp-board-badge--new {
    border-color: #2a2a2a;
    color: #555;
}
.kp-board-badge--new:hover { border-color: #D3FF00; color: #D3FF00; }

/* ── Dashboard Retainer-Grid ─────────────────────────────────────────────── */
.kp-retainer-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kp-retainer-card {
    background: #0d0d0d;
    border: 1px solid #1a1a1a;
    padding: 20px 28px;
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 24px;
    align-items: center;
    transition: border-color .15s;
}
.kp-retainer-card:hover { border-color: #2a2a2a; }

.kp-retainer-card__logo {
    width: 100px !important;
    height: 100px !important;
    min-width: 100px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #444;
    overflow: hidden;
}
.kp-retainer-card__logo img {
    display: block !important;
    width: 100px !important;
    height: 100px !important;
    object-fit: cover;
}

.kp-retainer-card__name {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -.3px;
    color: #f2f2f2;
    line-height: 1.2;
    margin-bottom: 4px;
}
.kp-retainer-card__city {
    font-size: 10px;
    color: #444;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.kp-retainer-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.kp-retainer-card__projects {
    grid-column: 2 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 14px;
    border-top: 1px solid #111;
    margin-top: -8px;
}

/* Aktions-Buttons: Telefon, E-Mail → weiß */
.kp-retainer-btn--action {
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0 16px;
    height: 36px;
    line-height: 36px;
    background: #f2f2f2;
    border: 1px solid #f2f2f2;
    color: #000;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    transition: opacity .15s;
}
.kp-retainer-btn--action:hover { opacity: .85; }

/* Kontakt-Button gleiche Höhe, aber grau */
.kp-retainer-btn--ghost {
    background: transparent !important;
    color: #555 !important;
    border-color: #2a2a2a !important;
}
.kp-retainer-btn--ghost:hover {
    color: #f2f2f2 !important;
    border-color: #555 !important;
    opacity: 1 !important;
}

/* Sekundäre Buttons: Kontakt, Projekt-Badges → grau */
.kp-retainer-proj-btn {
    font-family: inherit;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 12px;
    background: transparent;
    border: 1px solid #2a2a2a;
    color: #555;
    cursor: pointer;
    transition: all .15s;
}
.kp-retainer-proj-btn:hover { border-color: #D3FF00; color: #D3FF00; }

@media (max-width: 900px) {
    .kp-retainer-card { grid-template-columns: 48px 1fr; }
    .kp-retainer-card__actions { grid-column: 1 / -1; justify-content: flex-start; }
    .kp-retainer-card__projects { grid-column: 1 / -1; }
}

/* Kontakt-Button gleiche Höhe, aber grau */
.kp-retainer-btn--ghost {
    background: transparent !important;
    color: #555 !important;
    border-color: #2a2a2a !important;
}
.kp-retainer-btn--ghost:hover {
    color: #f2f2f2 !important;
    border-color: #555 !important;
    opacity: 1 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROJEKTE v3.0
   ═══════════════════════════════════════════════════════════════════════════ */

/* Kategorie-Tabs */
.kp-cat-tab {
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #333;
    cursor: pointer;
    transition: all .15s;
    margin-bottom: -1px;
}
.kp-cat-tab:hover { color: #888; }
.kp-cat-tab.active { color: #D3FF00; border-bottom-color: #D3FF00; }

/* Projekt-Gruppen-Label */
.kp-project-group-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #2a2a2a;
    padding: 20px 0 8px;
}
.kp-project-group-label:first-child { padding-top: 0; }

/* Projekt-Tabelle */
.kp-proj-table {
    width: 100%;
    border-collapse: collapse;
}
.kp-proj-table thead tr {
    border-bottom: 1px solid #1a1a1a;
}
.kp-proj-table th {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #2a2a2a;
    padding: 0 12px 12px 0;
    text-align: left;
}
.kp-proj-row {
    border-bottom: 1px solid #111;
    transition: background .1s;
    cursor: pointer;
}
.kp-proj-row:hover { background: #0d0d0d; }
.kp-proj-row td {
    padding: 14px 12px 14px 0;
    vertical-align: middle;
}
.kp-proj-title {
    font-size: 14px;
    font-weight: 600;
    color: #e0e0e0;
}

/* Status-Badge */
.kp-status-badge {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 3px 10px;
    border: 1px solid;
    white-space: nowrap;
}
.kp-status-badge--sm { font-size: 8px; padding: 2px 7px; }

/* Task-Tabelle */
.kp-task-table {
    width: 100%;
    border-collapse: collapse;
}
.kp-task-table thead tr { border-bottom: 1px solid #1a1a1a; }
.kp-task-table th {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #2a2a2a;
    padding: 0 10px 10px 0;
    text-align: left;
}
.kp-task-row { border-bottom: 1px solid #0d0d0d; transition: background .1s; }
.kp-task-row:hover { background: #0a0a0a; }
.kp-task-row td { padding: 10px 10px 10px 0; vertical-align: middle; }
.kp-task-row__title { font-size: 13px; color: #d0d0d0; }
.kp-task-done .kp-task-row__title { text-decoration: line-through; color: #444; }

/* Task-Checkbox */
.kp-task-check {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 1px solid #2a2a2a;
    background: transparent;
    color: #2a2a2a;
    font-size: 11px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
    padding: 0;
}
.kp-task-check:hover { border-color: #D3FF00; color: #D3FF00; }
.kp-task-check.checked { border-color: #2ecc71; color: #2ecc71; background: rgba(46,204,113,.1); }

/* ═══════════════════════════════════════════════════════
   PROJEKTE v4.0 — Container-Gruppen + Inline-Tasks
   ═══════════════════════════════════════════════════════ */

/* Gruppe */
.kp-group { margin-bottom: 32px; }
.kp-group__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0 10px 16px;
    border-left: 3px solid #D3FF00;
    margin-bottom: 0;
}
.kp-group__title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #e0e0e0; }
.kp-group__count { font-size: 10px; color: #333; }

/* Projekt-Tabelle */
.kp-proj-table { width: 100%; border-collapse: collapse; }
.kp-proj-table thead tr { border-bottom: 1px solid #1a1a1a; }
.kp-proj-table th { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #2a2a2a; padding: 8px 12px 8px 0; text-align: left; }
.kp-proj-table th:first-child { padding-left: 20px; }

.kp-project-row { border-bottom: 1px solid #0d0d0d; cursor: pointer; transition: background .1s; }
.kp-project-row:hover { background: #0a0a0a; }
.kp-project-row td { padding: 14px 12px 14px 0; vertical-align: middle; }
.kp-project-row td:first-child { padding-left: 20px; }

.kp-proj-arrow { font-size: 9px; color: #333; transition: transform .15s; display: inline-block; width: 12px; }
.kp-proj-title { font-size: 14px; font-weight: 600; color: #e0e0e0; }
.kp-proj-actions { text-align: right; white-space: nowrap; }

/* Tasks inline */
.kp-tasks-row td { padding: 0 !important; }
.kp-tasks-inner { background: #060606; border-bottom: 2px solid #1a1a1a; }
.kp-tasks-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 10px;
    border-bottom: 1px solid #111;
}

.kp-task-table { width: 100%; border-collapse: collapse; }
.kp-task-table thead tr { border-bottom: 1px solid #111; }
.kp-task-table th { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #222; padding: 6px 10px 6px 0; text-align: left; }
.kp-task-table th:first-child { padding-left: 20px; }
.kp-task-row { border-bottom: 1px solid #0d0d0d; transition: background .1s; }
.kp-task-row:hover { background: #0a0a0a; }
.kp-task-row td { padding: 10px 10px 10px 0; vertical-align: middle; }
.kp-task-row td:first-child { padding-left: 20px; }
.kp-task-title { font-size: 13px; color: #c8c8c8; }
.kp-task-done .kp-task-title { text-decoration: line-through; color: #333; }

/* Checkbox */
.kp-check {
    width: 20px; height: 20px; border-radius: 50%;
    border: 1px solid #2a2a2a; background: transparent;
    color: #2a2a2a; font-size: 10px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0; transition: all .15s;
}
.kp-check:hover { border-color: #D3FF00; color: #D3FF00; }
.kp-check.checked { border-color: #2ecc71; color: #2ecc71; }

/* Task-Detail inline */
.kp-task-detail-row td { padding: 0 !important; }
.kp-task-detail-wrap { background: #050505; border-bottom: 1px solid #1a1a1a; }
.kp-task-detail { padding: 20px 20px 20px 52px; }

/* Badge */
.kp-badge {
    font-size: 9px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.5px; padding: 3px 8px; border: 1px solid; white-space: nowrap;
}
.kp-badge--sm { font-size: 8px; padding: 2px 6px; }

/* ═══════════════════════════════════════════════════════
   ASANA/MONDAY STYLE — v4.1
   ═══════════════════════════════════════════════════════ */

/* Breadcrumb */
.kp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #333;
    margin-bottom: 20px;
}
.kp-back-btn {
    background: none; border: none; font-family: inherit;
    font-size: 11px; color: #555; cursor: pointer; padding: 0;
    text-transform: uppercase; letter-spacing: 1px;
    transition: color .15s;
}
.kp-back-btn:hover { color: #D3FF00; }
.kp-breadcrumb-sep { color: #222; }

/* Container Cards */
.kp-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.kp-container-card {
    background: #0d0d0d;
    border: 1px solid #1a1a1a;
    border-top: 3px solid #D3FF00;
    padding: 20px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.kp-container-card:hover { background: #111; border-color: #2a2a2a; }
.kp-container-card__title { font-size: 15px; font-weight: 700; color: #e0e0e0; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.kp-container-card__meta { display: flex; gap: 16px; font-size: 11px; color: #333; margin-bottom: 12px; }
.kp-container-card__actions { border-top: 1px solid #1a1a1a; padding-top: 10px; }

/* Asana-Tabelle */
.kp-asana-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.kp-asana-th {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #2a2a2a;
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #1a1a1a;
    white-space: nowrap;
}
.kp-asana-th--main { width: 40%; }

.kp-asana-row {
    border-bottom: 1px solid #0d0d0d;
    transition: background .1s;
}
.kp-asana-row:hover { background: #0a0a0a; }
.kp-asana-row:hover .kp-asana-del { opacity: 1; }
.kp-task-done { opacity: .45; }

.kp-asana-td {
    padding: 0;
    vertical-align: middle;
}
.kp-asana-td--main { min-width: 200px; }
.kp-asana-td--actions { width: 40px; text-align: right; padding-right: 8px; }

/* Asana Cell — der Magic-Teil */
.kp-asana-cell {
    padding: 10px 12px;
    cursor: pointer;
    min-height: 40px;
    display: flex;
    align-items: center;
}
.kp-asana-cell:hover { background: #111; }
.kp-asana-cell.active { background: #0d0d0d; outline: 2px solid #D3FF00; outline-offset: -2px; }

.kp-asana-text {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #d0d0d0;
    width: 100%;
}
.kp-proj-link { cursor: pointer; }
.kp-proj-link:hover { color: #D3FF00; text-decoration: underline; }

.kp-asana-input {
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 13px;
    color: #f2f2f2;
    width: 100%;
    padding: 0;
}
.kp-asana-input[type="date"] { color-scheme: dark; }
.kp-asana-input option { background: #111; }

/* Status-Dot */
.kp-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

/* + Zeile hinzufügen */
.kp-asana-add-row {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 11px;
    color: #2a2a2a;
    cursor: pointer;
    padding: 10px 12px;
    width: 100%;
    text-align: left;
    transition: color .15s;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.kp-asana-add-row:hover { color: #D3FF00; }

/* Löschen Button */
.kp-asana-del {
    background: none;
    border: none;
    color: #2a2a2a;
    font-size: 11px;
    cursor: pointer;
    padding: 4px;
    opacity: 0;
    transition: color .15s, opacity .15s;
}
.kp-asana-del:hover { color: #ff4444; }

/* Modal */
.kp-modal-wrap {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.kp-modal {
    background: #0d0d0d;
    border: 1px solid #2a2a2a;
    width: 480px;
    max-width: 95vw;
}
.kp-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #1a1a1a;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
}
.kp-modal__body { padding: 20px; }

/* Input klein */
.kp-input--sm { font-size: 11px; padding: 4px 8px; }
.kp-input--color { width: 50px; height: 32px; padding: 2px; cursor: pointer; }

/* ═══════════════════════════════════════════════════════
   LAYOUT FIXES v4.1.1
   ═══════════════════════════════════════════════════════ */

/* View-Header */
.kp-view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

/* Container-View Padding */
#kp-containers-view,
#kp-level-containers,
#kp-level-projects,
#kp-level-tasks { padding: 0; }

/* Container-Karten sauberer */
.kp-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 8px;
}
.kp-container-card {
    background: #0d0d0d;
    border: 1px solid #1a1a1a;
    border-top: 3px solid #D3FF00;
    padding: 22px;
    cursor: pointer;
    transition: background .15s, transform .1s;
    border-radius: 0;
}
.kp-container-card:hover { background: #121212; transform: translateY(-1px); }
.kp-container-card__title {
    font-size: 14px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: #e0e0e0; margin-bottom: 10px;
}
.kp-container-card__meta {
    display: flex; gap: 16px;
    font-size: 11px; color: #444;
    margin-bottom: 14px;
    text-transform: uppercase; letter-spacing: 1px;
}
.kp-container-card__actions {
    border-top: 1px solid #1a1a1a;
    padding-top: 12px;
}

/* Asana-Tabelle Fixes */
.kp-asana-table { margin-top: 4px; }
.kp-asana-table tfoot td { border-top: 1px solid #111; }

/* Breadcrumb */
.kp-breadcrumb {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #111;
}

/* ═══════════════════════════════════════════════════════
   KONTAKT-DETAIL v4.2
   ═══════════════════════════════════════════════════════ */
.kp-logo-box {
    width: 80px; height: 80px;
    background: #1a1a1a; border: 1px solid #2a2a2a;
    display: flex; align-items: center; justify-content: center;
    position: relative; flex-shrink: 0;
}
.kp-logo-box img { width: 100%; height: 100%; object-fit: contain; }
.kp-logo-ini { font-size: 20px; font-weight: 700; color: #444; text-transform: uppercase; }
.kp-logo-edit {
    position: absolute; bottom: 2px; right: 2px;
    background: rgba(0,0,0,.7); padding: 2px 4px; font-size: 10px;
    opacity: 0; transition: opacity .15s;
}
.kp-logo-box:hover .kp-logo-edit { opacity: 1; }
.kp-checkbox-row {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: #888; cursor: pointer;
}
.kp-checkbox-row input[type="checkbox"] { accent-color: #D3FF00; width: 14px; height: 14px; }

/* Asana expand button */
.kp-asana-expand {
    background: none; border: none; color: #2a2a2a;
    font-size: 13px; cursor: pointer; padding: 2px 4px;
    opacity: 0; transition: opacity .15s, color .15s;
}
.kp-asana-row:hover .kp-asana-expand { opacity: 1; }
.kp-asana-expand:hover { color: #D3FF00; }
