Ok, thank you, that worked for me. But in my theme I had to change the margin tag from 7px to 41px, because the search form was still not at the right place of the menu. Here is the complete style.css code from me if somebody have the same problem:
#searchform{
margin:41px;
}
#searchform-item input[type="text"] {
width: auto;
}