/* Formularbereich */
.form-area {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: space-between;
    align-items: center;
}

/* Dropdowns nebeneinander mit fester Breite */
.form-area select.custom-select {
    flex: 0 0 auto; /* feste Größe, kein automatisches Vergrößern */
    width: 96px;    /* feste Breite */
    max-width: 90vw; /* für kleine Bildschirme */
    padding: 10px;
    border-radius: 6px;
    border: none;
    background-color: #3498db;
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    overflow-y: auto; /* Scrollbar wenn nötig */
}

/* Hover und Fokus Effekte */
.custom-select:hover {
    background-color: #2980b9;
    transform: scale(1.01);
}

.custom-select:focus {
    outline: none;
    box-shadow: 0 0 6px rgba(52, 152, 219, 0.6);
}

/* Hinzufügen-Button */
.custom-button {
    flex-basis: 100%;
    text-align: center;
    margin-top: 10px;
    padding: 10px 16px;
    border-radius: 6px;
    border: none;
    background-color: #27ae60;
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.custom-button:hover {
    background-color: #1e8449;
    transform: scale(1.02);
}

/* Tabelle anpassen */
#fachTable {
    width: 100%;
    max-width: 600px; /* damit es ins Popup passt */
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: 14px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#fachTable th, #fachTable td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

#fachTable th {
    background: linear-gradient(90deg, #4a90e2, #357ABD);
    color: white;
    font-weight: 600;
    font-size: 14px;
}

#fachTable tr:hover {
    background-color: #f5f9ff;
}

/* Buttons in Tabelle */
#fachTable .fachEditBtn,
#fachTable .fachRemoveBtn {
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    margin: 2px;
}

#fachTable .fachEditBtn {
    background-color: #27ae60;
    color: white;
}

#fachTable .fachEditBtn:hover {
    background-color: #1e8449;
}

#fachTable .fachRemoveBtn {
    background-color: #e74c3c;
    color: white;
}

#fachTable .fachRemoveBtn:hover {
    background-color: #c0392b;
}
