.kpsgz-event-table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 1em;
}
.kpsgz-event-table th, .kpsgz-event-table td {
    border: 1px solid #ccc;
    padding: 8px;
}
.kpsgz-event-table th a {
    text-decoration: none;
    color: #0073aa;
}

/* für farblich abwechselnde Datum-Zeilen */
.kpsgz-event-table tr.row-group-even {
    background-color: #ffffff!important;
}
.kpsgz-event-table tr.row-group-odd {
    background-color: #eeeeee  !important;
}

.kpsgz-event-filter {
    margin-bottom: 1em;
}

.kpsgz-filter-form {
    margin-bottom: 1em;
}
.kpsgz-filter-form input {
    padding: 6px;
    width: 150px;
    margin-right: 6px;
}

.kpsgz-month-filters {
    margin-bottom: 1em;
}

.kpsgz-month-filter-btn {
    display: inline-block;
    padding: 0.5em 1em;
    background-color: #eee;
    color: #333;
    text-decoration: none;
    margin-right: 0.5em;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.kpsgz-month-filter-btn:hover {
    background-color: #ddd;
}

.kpsgz-month-filter-btn.active {
    background-color: #0073aa;
    color: white;
    font-weight: bold;
}


.kpsgz-delete-btn {
    color:white;
    background-color: red;
    height: 30px;
    padding-left: 10px;    
    padding-right: 10px;
}

.kpsgz-delete-btn:hover {
    background-color: darkred;

}

.kpsgz-unlock-btn {
    color:white;
    background-color: red;
    height: 30px;
    padding-left: 10px;    
    padding-right: 10px;
}

.kpsgz-unlock-btn:hover {
    background-color: darkred;

}

.kpsgz-occupy-btn {
    color:white;
    background-color: green;
    height: 30px;
    padding-left: 10px;    
    padding-right: 10px;
}

.kpsgz-occupy-btn:hover{
    background-color: darkgreen;
}

.kpsgz-reserve-btn {
    color:white;
    background-color: green;
    height: 30px;
    padding-left: 10px;    
    padding-right: 10px;
}

.kpsgz-reserve-btn:hover{
    background-color: darkgreen;
}

 
.kpsgz-modal-content .close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}

.kpsgz-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.kpsgz-modal-content {
    position: fixed;
    bottom: 50%;    
    left: 50%;               
    transform: translateX(-50%);
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    z-index: 1001;
}


.kpsgz-edit-btn {
    color:white;
    background-color: green;
    height: 30px;
    padding-left: 10px;    
    padding-right: 10px;
}

.kpsgz-edit-btn:hover{
    background-color: darkgreen;
}

.kpsgz-modal-edit {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.kpsgz-modal-edit-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

/*------------------ ab hier NEU! ---------------------- */


/* --- Meldezeile --- */
/* #kpsgz-message-bar {
    padding: 10px;
    margin: 10px 0;
} */

#kpsgz-message-bar {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 300px;
    transform: translate(-50%, -50%);
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    text-align: center;
    max-width: 90%;
    /*color: #fff;*/
    font-weight: bold;
    border-radius: 4px;
    z-index: 9999;
}
#kpsgz-message-bar.success {
    border-left: 5px solid #28a745; /* Grün */
    background-color: #cee9d0; 
}
#kpsgz-message-bar.error {
    border-left: 5px solid #dc3232; /* Rot */
    background-color: #ddbebe; 
}

/* --- Bestätigungsmodal --- */
#kpsgz-confirm-modal {
    display: none;
    position: fixed;
    bottom: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 9999;
}
.kpsgz-confirm-box {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    text-align: center;
    max-width: 90%;
    width: 300px;
}
.kpsgz-confirm-box button {
    margin: 5px;
    padding: 5px 12px;
    border: none;
    cursor: pointer;
}
.kpsgz-confirm-box button#kpsgz-confirm-yes {
    background-color: #46b450;
    color: #fff;
}
.kpsgz-confirm-box button#kpsgz-confirm-no {
    background-color: #ccc;
}

