JSFiddle - React, Tailwind, and code Playground

HTML

<form action="/upload" method="post" enctype="multipart/form-data">
    <input id="file-upload" type="file" name="file" style="display: none;" />
    <button type="button" id="upload-button">Durchsuchen</button>
    <input type="submit" value="Hochladen" /> <!-- Changed to German -->
</form>

<script>
    document.getElementById('upload-button').addEventListener('click', function() {
        document.getElementById('file-upload').click();
    });
</script>

CSS

body {
            font-family: Arial, sans-serif;
            padding: 20px;
            background-color: #f4f4f9;
        }
        form {
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            max-width: 400px;
            margin: auto;
        }
        button, input[type="submit"] {
            background-color: #007BFF; /* Bootstrap primary color */
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 4px;
            cursor: pointer;
            margin-top: 10px;
            font-size: 16px;
        }
        button:hover, input[type="submit"]:hover {
            background-color: #0056b3; /* Darker shade on hover */
        }
        /* Additional styling for button hover effects */
        button:focus, input[type="submit"]:focus {
            outline: none;
        }