
            // Multiple product types
            buttonText = `${window.selectedDevicesForCase.length} Geräte hinzufügen`;
        }
        
        addBtnText.textContent = buttonText;
    }

    function filterAvailableDevices() {
        const searchTerm = document.getElementById('deviceSearchInput').value.toLowerCase();
        const deviceCards = document.querySelectorAll('.device-card');
        
        deviceCards.forEach(card => {
            const deviceID = card.getAttribute('data-device-id'