/* Einfaches, modernes Layout für das Belege-Upload-Formular */

body {
    font-family: Arial, sans-serif;
    /* Hintergrundfarbe für den Bereich um das Formular herum */
    background-color: #e6e6e6;
    color: #333;
    margin: 0;
    padding: 0;
}

main {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

h1 {
    margin-top: 0;
    font-size: 1.8em;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 10px;
}

form label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

.field-description {
    font-size: 0.9em;
    color: #666;
    /* Mehr Abstand oberhalb und unterhalb der Beschreibung */
    margin-top: 6px;
    margin-bottom: 10px;
    white-space: pre-line;
}

form input[type="text"],
form input[type="email"],
form input[type="number"],
form input[type="date"],
form select,
form textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}

form textarea {
    min-height: 100px;
    resize: vertical;
}

form input[type="file"] {
    margin-top: 5px;
}

form button[type="submit"] {
    margin-top: 20px;
    padding: 10px 20px;
    /* Akzentfarbe für den Senden‑Button */
    background-color: #ff0000;
    /* helle Schriftfarbe und fette Schrift für besseren Kontrast */
    color: #ffffff;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button[type="submit"]:hover {
    /* dunklere Variante der Akzentfarbe für Hover */
    background-color: #cc0000;
}

.form-description {
    margin-bottom: 20px;
    line-height: 1.5;
}

.error {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
}

/*
 * Anpassungen für benutzerdefinierten Dateiupload
 *
 * Anstatt die standardmässige file input‑Schaltfläche zu nutzen, wird das
 * Eingabefeld versteckt und über eine eigene Schaltfläche ausgelöst. Die
 * ausgewählten Dateinamen werden in einem separaten Label angezeigt. Diese
 * Gestaltung sorgt für einen einheitlichen Look und erlaubt deutsche
 * Beschriftungen.
 */
.custom-file-wrapper {
    margin-top: 5px;
}

.file-upload-btn {
    display: inline-block;
    padding: 8px 12px;
    background-color: #ff0000;
    /* helle und fette Schrift für besseren Kontrast */
    color: #ffffff;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-right: 10px;
}

.file-upload-btn:hover {
    background-color: #cc0000;
}

.file-upload-label {
    font-size: 0.9em;
    color: #333;
    vertical-align: middle;
}

/* Liste der ausgewählten Dateien mit Lösch‑Funktion */
.file-list {
    list-style: none;
    margin: 5px 0 0 0;
    padding: 0;
}

.file-list-item {
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.file-name {
    flex-grow: 1;
    word-break: break-all;
}

.file-remove-btn {
    margin-left: 8px;
    background: none;
    border: none;
    color: #ff0000;
    font-size: 1.2em;
    line-height: 1;
    cursor: pointer;
}

.file-remove-btn:hover {
    color: #cc0000;
}

#footerNote {
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    color: #777;
    padding: 10px 0;
    margin-top: 50px;
    opacity: 0.7;
}

