.lfp-kompetenz-tabelle {
    width: auto !important;
    min-width: 0 !important;
}

.lfp-kompetenz-tabelle .col-name {
    width: 180px;
    min-width: 180px;
    max-width: 180px;
}

.lfp-kompetenz-tabelle .col-profil {
    width: 70px;
    min-width: 70px;
    max-width: 70px;
}

.lfp-kompetenz-tabelle .col-kompetenz {
    width: 105px;
    min-width: 105px;
    max-width: 105px;
}

.lfp-kompetenz-tabelle th,
.lfp-kompetenz-tabelle td {
    width: auto;
}
.kompetenz-button {
    width: 82px;
    height: 40px;
    padding: 5px;
    border: 1px solid #bbb;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    font-size: 14px;
    text-align: center;
    font-weight: bold;
    color: #000;
    cursor: pointer;
}

.kompetenz-button.empty {
    background: #f4cccc !important;
    color: #000 !important;
}

.kompetenz-button.partial {
    background: #fff2cc !important;
    color: #000 !important;
}

.kompetenz-button.complete {
    background: #d9e8c5 !important;
    color: #000 !important;
}

.kompetenz-button:hover {
    outline: 2px solid #2f6fed;
}

.kompetenz-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
}

.kompetenz-modal.is-open {
    display: block;
}

.kompetenz-modal-content {
    background: white;
    margin: 35px auto;
    width: min(820px, calc(100vw - 60px));
    max-height: calc(100vh - 70px);
    overflow: auto;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

.kompetenz-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.kompetenz-modal-title h2 {
    margin: 0 0 4px 0;
    font-size: 22px;
}

.kompetenz-modal-title p {
    margin: 2px 0;
    font-size: 14px;
    color: #444;
}

.kompetenz-close {
    background: #777;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 9px 14px;
    cursor: pointer;
}

.kompetenz-list {
    display: grid;
    gap: 8px;
}

.kompetenz-item {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: center;
    padding: 9px 10px;
    border: 1px solid #ddd;
    border-radius: 7px;
    background: #fafafa;
    text-align: left;
}

.kompetenz-item input {
    width: 22px;
    height: 22px;
}

.kompetenz-item span {
    font-size: 14px;
    line-height: 1.25;
}

.kompetenz-schnitt {
    width: 82px;
}