/* === Allgemeines Seiten-Layout === */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 700px; /* Maximale Breite des Formulars */
    margin: 40px auto; /* Zentriert den Container horizontal */
    padding: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

h1 {
    color: #222;
    margin-bottom: 25px;
}

/* === Formular-Styling (Der wichtige Teil) === */

/* Jedes Label bekommt eine eigene Zeile */
label {
    display: block;
    font-weight: bold;
    margin-top: 20px;   /* Abstand nach oben zum vorigen Feld */
    margin-bottom: 6px;   /* Kleiner Abstand zum Inputfeld darunter */
}

/* Text-Inputs und Select-Boxen */
input[type="text"],
input[type="email"],
select {
    width: 100%; /* Füllt die volle Breite des Containers */
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    
    /* Wichtig, damit padding die 100% Breite nicht sprengt */
    box-sizing: border-box; 
}

/* Der Senden-Button */
button[type="submit"] {
    display: block; /* Eigene Zeile */
    width: 100%;
    padding: 14px;
    margin-top: 30px; /* Mehr Abstand nach oben */
    
    background-color: #0056b3; /* Beispiel: Ein sattes Blau */
    color: white;
    font-size: 16px;
    font-weight: bold;
    
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button[type="submit"]:hover {
    background-color: #003d82; /* Etwas dunkler beim Drüberfahren */
}

/* Erfolgs- und Fehlermeldungen (aus index.php) */
.success {
    color: green;
    border: 1px solid green;
    padding: 10px;
    border-radius: 5px;
    background-color: #f0fff0;
}

.error {
    color: red;
    border: 1px solid red;
    padding: 10px;
    border-radius: 5px;
    background-color: #fff0f0;
}