/* Desktop Ansicht: Standard Table Layout */
@media screen and (min-width: 1200px) {
    .simpbook-admin-wrap .desktop-mitarbeiter-form {
        display: table !important;
        visibility: visible !important;
    }

    .simpbook-admin-wrap .mobile-mitarbeiter-form-card {
        display: none !important;
        visibility: hidden !important;
    }
}

/* Tablet & Mobile Ansicht: Kartenformat (< 1200px) */
@media screen and (max-width: 1199px) {
    .simpbook-admin-wrap .desktop-mitarbeiter-form {
        display: none !important;
        visibility: hidden !important;
    }

    .simpbook-admin-wrap .mobile-mitarbeiter-form-card {
        display: block !important;
        visibility: visible !important;
        max-width: 100%;
    }
}

/* Mitarbeiter Edit Form Card */
.mitarbeiter-form-card {
    background-color: #fff;
        border: 2px solid #1a4a8a;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin: 20px 0;
    margin-right: 10px;
    overflow: hidden;
}

.mitarbeiter-form-card-header {
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.mitarbeiter-form-card-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #23282d;
}

.mitarbeiter-form-card-body {
    padding: 20px;
}

.form-field-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.form-field-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-field-label {
    display: block;
    font-weight: 600;
    color: #23282d;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-field-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    box-sizing: border-box;
}

.form-field-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.form-field-description {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #666;
    display: block;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #23282d;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
}

.checkbox-label:last-child {
    margin-bottom: 0;
}

.checkbox-label span {
    flex: 1;
}

/* Mobile Dienstleistungen Liste */
.mobile-dienstleistungs-liste {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Mobile Arbeitszeiten Liste */
.mobile-arbeitszeiten-liste {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.arbeitszeit-card {
    background-color: #f9f9f9;
        border: 2px solid #1a4a8a;
    border-radius: 6px;
    padding: 12px;
    overflow: hidden;
}

.arbeitszeit-card-header {
    margin-bottom: 10px;
}

.arbeitszeit-card-header .checkbox-label {
    margin-bottom: 0;
    font-weight: 600;
}

.arbeitszeit-card-body {
    padding-top: 10px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.time-input-group-mobile {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.time-input-group-mobile .time-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    display: block;
}

.time-input-group-mobile .time-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.time-input-group-mobile .time-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

/* Responsive Foto Upload */
#foto-preview-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    background-color: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
}

#foto-preview-mobile img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 8px;
    border: 2px solid #ddd;
}

/* Mobile Optimierungen */
@media screen and (max-width: 600px) {
    .mitarbeiter-form-card {
        margin-right: 10px;
        border-radius: 6px;
    }

    .mitarbeiter-form-card-header {
        padding: 15px;
    }

    .mitarbeiter-form-card-header h2 {
        font-size: 16px;
    }

    .mitarbeiter-form-card-body {
        padding: 15px;
    }

    .form-field-group {
        margin-bottom: 15px;
        padding-bottom: 15px;
    }

    .form-field-input,
    .time-input {
        font-size: 16px; /* Verhindert Zoom auf iOS */
    }
}

/* Arbeitszeiten-Inputs: max-width für Beginn und Ende */
.simpbook-admin-wrap .form-table input[name*="arbeitszeit_"][name*="_beginn"],
.simpbook-admin-wrap .form-table input[name*="arbeitszeit_"][name*="_ende"] {
    max-width: 100px !important;
}

/* Desktop: Inline Arbeitszeiten (Checkbox, From, To auf einer Linie) */
@media screen and (min-width: 783px) {
    .arbeitszeit-td-container {
        display: flex;
        align-items: center;
        gap: 20px;
        flex-wrap: wrap;
    }

    .arbeitszeit-td-container > label {
        display: flex;
        align-items: center;
        gap: 6px;
        margin: 0;
        white-space: nowrap;
    }

    .arbeitszeit-times-group {
        display: flex;
        align-items: center;
        gap: 15px;
        margin: 0;
    }

    .arbeitszeit-times-group .time-input-group {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0 !important;
    }

    .arbeitszeit-times-group .time-label {
        white-space: nowrap;
        font-weight: 600;
        color: #666;
        margin: 0 !important;
        font-size: 13px;
    }

    .arbeitszeit-times-group .time-input {
        margin: 0 !important;
    }
}
