Upload form in German

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>
    <span id="file-name">Keine Datei ausgewählt</span>
    <input type="submit" value="Hochladen" />
</form>

<script>
    document.getElementById('upload-button').addEventListener('click', function() {
        document.getElementById('file-upload').click();
    });
    
    document.getElementById('file-upload').addEventListener('change', function() {
        const fileName = this.files[0] ? this.files[0].name : 'Keine Datei ausgewählt';
        document.getElementById('file-name').textContent = fileName;
    });
</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;
        }