/* ========================================
   Konflikt-Navigator
   ======================================== */

.aca-kn-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.aca-kn-container {
    background: #fff;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Sidebar */
.aca-kn-sidebar {
    width: 240px;
    background: #1a243b;
    flex-shrink: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.aca-kn-sidebar-title {
    padding: 18px 20px 12px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #88b441;
    font-weight: 700;
}
.aca-kn-mobile-toggle { display: none; }
.aca-kn-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.aca-kn-nav-item {
    padding: 10px 20px;
    font-size: 13px;
    color: #b0b8c8;
    cursor: pointer;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}
.aca-kn-nav-item:hover { color: #fff; background: rgba(255,255,255,0.05); }
.aca-kn-nav-item.active {
    color: #fff;
    background: rgba(136,180,65,0.15);
    border-left-color: #88b441;
    font-weight: 600;
}

/* Main */
.aca-kn-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}
.aca-kn-header {
    padding: 18px 28px;
    border-bottom: 2px solid #88b441;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.aca-kn-header h2 { margin: 0; font-size: 20px; color: #1a243b; }
.aca-kn-close {
    background: none; border: none;
    font-size: 30px; cursor: pointer; color: #666; line-height: 1;
}
.aca-kn-close:hover { color: #000; }

.aca-kn-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px;
}
.aca-kn-content h3 { color: #1a243b; font-size: 20px; margin: 0 0 16px; }
.aca-kn-content h4 { color: #88b441; font-size: 16px; margin: 20px 0 10px; }
.aca-kn-content p { font-size: 14px; line-height: 1.7; margin-bottom: 12px; color: #333; }
.aca-kn-content ul { margin: 0 0 16px; padding-left: 20px; }
.aca-kn-content li { font-size: 14px; line-height: 1.6; margin-bottom: 6px; color: #444; }
.aca-kn-content em { color: #888; }

/* Footer nav */
.aca-kn-footer {
    padding: 12px 28px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.aca-kn-btn-prev, .aca-kn-btn-next {
    padding: 8px 18px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: #88b441;
    color: #fff;
}
.aca-kn-btn-prev:hover, .aca-kn-btn-next:hover { background: #75a036; }
.aca-kn-btn-prev:disabled, .aca-kn-btn-next:disabled { background: #ccc; cursor: not-allowed; }
.aca-kn-page { font-size: 13px; color: #888; font-weight: 600; }

/* ── Content Boxes ── */
.aca-kn-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}
.aca-kn-l1 { background: #c8e6c9; color: #2e7d32; }
.aca-kn-l2 { background: #fff9c4; color: #f57f17; }
.aca-kn-l3 { background: #ffe0b2; color: #e65100; }
.aca-kn-l4 { background: #ffccbc; color: #bf360c; }
.aca-kn-l5 { background: #ffcdd2; color: #b71c1c; }

.aca-kn-situation, .aca-kn-level {
    padding: 10px 14px;
    margin: 8px 0;
    background: #f9f9f9;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
}

.aca-kn-highlight {
    background: #f0f7e6;
    border-left: 4px solid #88b441;
    padding: 14px 18px;
    margin: 16px 0;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    line-height: 1.6;
}

.aca-kn-warning {
    background: #fff8e6;
    border-left: 4px solid #ffa726;
    padding: 14px 18px;
    margin: 16px 0;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    line-height: 1.6;
}

.aca-kn-psych {
    background: #f3e5f5;
    border-left: 4px solid #9c27b0;
    padding: 12px 16px;
    margin: 14px 0;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    line-height: 1.6;
}

.aca-kn-assessor {
    background: #e1f5fe;
    border-left: 4px solid #0288d1;
    padding: 12px 16px;
    margin: 14px 0;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    line-height: 1.6;
}

.aca-kn-example {
    background: #f1f8e9;
    border-left: 4px solid #88b441;
    padding: 14px 18px;
    margin: 14px 0;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    line-height: 1.6;
}

.aca-kn-exercise {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 18px;
    margin: 18px 0;
    border-radius: 0 6px 6px 0;
}
.aca-kn-exercise h4 { margin-top: 0; color: #e65100; }

.aca-kn-solution {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 14px 18px;
    margin: 12px 0;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
}
.aca-kn-solution summary {
    font-weight: 600;
    color: #2e7d32;
    font-size: 14px;
    cursor: pointer;
}
.aca-kn-solution p { margin: 10px 0 6px; }

.aca-kn-dont {
    padding: 12px 16px;
    margin: 10px 0;
    background: #fce4ec;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
    border-left: 4px solid #d32f2f;
}
.aca-kn-falsch { color: #d32f2f; font-weight: 600; }
.aca-kn-richtig { color: #388e3c; font-weight: 600; }

.aca-kn-do {
    padding: 12px 16px;
    margin: 10px 0;
    background: #e8f5e9;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
    border-left: 4px solid #388e3c;
}

.aca-kn-framework {
    padding: 14px 18px;
    margin: 10px 0;
    background: #f4f9ed;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
    border-left: 4px solid #88b441;
}

/* Table */
.aca-kn-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 14px 0;
}
.aca-kn-table th {
    text-align: left;
    padding: 10px 12px;
    background: #f4f4f4;
    border-bottom: 2px solid #ddd;
    font-weight: 600;
    color: #1a243b;
}
.aca-kn-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .aca-kn-container { flex-direction: column; max-height: 95vh; }
    .aca-kn-sidebar {
        width: 100%;
        max-height: none;
        overflow: visible;
        padding: 10px 16px;
    }
    .aca-kn-sidebar-title { display: none; }
    .aca-kn-mobile-toggle {
        display: block;
        width: 100%;
        padding: 10px;
        background: #88b441;
        color: #fff;
        border: none;
        border-radius: 4px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
    }
    .aca-kn-nav {
        display: none;
        margin-top: 8px;
    }
    .aca-kn-nav.open { display: block; }
    .aca-kn-content { padding: 16px; }
    .aca-kn-header { padding: 14px 16px; }
    .aca-kn-footer { padding: 10px 16px; }
}
