/* ========================================
   FK Know-how Overlay
   ======================================== */

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

.aca-fk-container {
    background: #fff;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

/* Header */
.aca-fk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 2px solid #88b441;
    flex-shrink: 0;
}

.aca-fk-header h2 {
    margin: 0;
    color: #1a243b;
    font-size: 24px;
}

.aca-fk-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}
.aca-fk-close:hover { color: #000; }

/* Controls */
.aca-fk-controls {
    padding: 20px 30px;
    border-bottom: 1px solid #ddd;
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

#aca-fk-kat-filter {
    flex: 0 0 250px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#aca-fk-search {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* List */
.aca-fk-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px;
}

/* Footer */
.aca-fk-footer {
    padding: 12px 30px;
    border-top: 1px solid #ddd;
    font-size: 13px;
    color: #888;
    flex-shrink: 0;
}

/* Entry */
.aca-fk-entry {
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.aca-fk-entry-header {
    padding: 15px 50px 15px 20px;
    cursor: pointer;
    background: #f9f9f9;
    position: relative;
    transition: background 0.2s;
}
.aca-fk-entry-header:hover { background: #f0f0f0; }
.aca-fk-entry-open .aca-fk-entry-header { background: #e8f4e0; }

/* Badge */
.aca-fk-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 6px;
}
.aca-badge-fuehrung { background: #88b441; color: #fff; }
.aca-badge-pm { background: #b1632f; color: #fff; }
.aca-badge-change { background: #1a243b; color: #fff; }

.aca-fk-entry h3 {
    margin: 0 0 6px 0;
    color: #1a243b;
    font-size: 17px;
}

.aca-fk-kurz {
    margin: 0;
    color: #666;
    font-size: 13px;
}

.aca-fk-toggle-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #999;
}

/* Entry Content */
.aca-fk-entry-content {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #eee;
}

.aca-fk-section {
    margin-bottom: 18px;
}
.aca-fk-section:last-child { margin-bottom: 0; }

.aca-fk-section h4 {
    margin: 0 0 8px 0;
    color: #1a243b;
    font-size: 15px;
}

.aca-fk-section p {
    margin: 0;
    line-height: 1.6;
    color: #333;
    font-size: 14px;
}

/* Interview Highlight Box */
.aca-fk-interview-box {
    background: #f4f9ed;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #88b441;
}

.aca-fk-interview-beispiel {
    margin-bottom: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.6;
}
.aca-fk-interview-beispiel:last-child { margin-bottom: 0; }
.aca-fk-interview-beispiel strong {
    color: #1a243b;
    display: block;
    margin-bottom: 4px;
}

/* Verwandte Links */
.aca-fk-verwandt-link {
    color: #88b441;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
    cursor: pointer;
}
.aca-fk-verwandt-link:hover { border-bottom-color: #88b441; }

/* No Results */
.aca-fk-no-results {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Mobile */
@media (max-width: 768px) {
    .aca-fk-controls { flex-direction: column; }
    #aca-fk-kat-filter { flex: 1; }
    .aca-fk-header { padding: 15px 20px; }
    .aca-fk-header h2 { font-size: 20px; }
    .aca-fk-list { padding: 15px; }
    .aca-fk-container { max-height: 95vh; }
}
