<!DOCTYPE html>
<html lang="de">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Kontaktformular</title>
    <style>
        /* Allgemeine Einstellungen */
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            padding: 0 20px;
            color: #435d6c;
            font-size: 12px; /* Kleinere Schriftgröße */
        }

        /* Kontaktformular Container */
        .kontaktformular {
            background-color: #fff;
            padding: 20px 40px;
            border-radius: 10px;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
            width: 400px;
            color: #435d6c;
            font-size: 12px; /* Kleinere Schrift im Formular */
        }

        /* Überschrift */
        .kontaktformular h2 {
            text-align: center;
            margin-bottom: 20px;
            color: #435d6c;
            font-size: 14px; /* Etwas kleinere Überschrift */
        }

        /* Labels */
        .kontaktformular label {
            display: block;
            margin-top: 12px;
            font-weight: bold;
            color: #435d6c;
            font-size: 12px; /* Kleinere Labels */
        }

        /* Eingabefelder und Textarea */
        .kontaktformular input, 
        .kontaktformular textarea {
            width: 100%;
            padding: 8px;
            margin-top: 4px;
            border: 1px solid #ccc;
            border-radius: 5px;
            box-sizing: border-box;
            color: #435d6c;
            font-size: 12px; /* Kleinere Schrift in den Feldern */
        }

        /* Platzhalterfarbe */
        .kontaktformular input::placeholder,
        .kontaktformular textarea::placeholder {
            color: #9aaab5;
            font-size: 12px;
        }

        /* Textarea Anpassung */
        .kontaktformular textarea {
            resize: vertical;
            height: 90px;
        }

        /* Button */
        .kontaktformular button {
            width: 100%;
            padding: 10px;
            margin-top: 16px;
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s ease;
            font-size: 12px; /* Kleinere Schrift im Button */
        }

        .kontaktformular button:hover {
            background-color: #45a049;
        }

        /* Responsive Anpassungen */
        @media (max-width: 600px) {
            .kontaktformular {
                width: 100%;
                padding: 20px;
            }

            body {
                padding: 0 10px;
            }
        }

        /* Fehler- und Erfolgsnachrichten */
        .form-result {
            border: 2px solid #16a765;
            background-color: #e9f7ef;
            padding: 15px;
            text-align: center;
            font-size: 16px;
            font-weight: bold;
            max-width: 300px;
            margin: 20px auto;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            color: #435d6c;
        }
    </style>
</head>
<body>

    <!-- Kontaktformular -->
    <form class="kontaktformular">
        <h3>Kontaktformular</h3>

        <label for="vorname">Vorname</label>
        <input type="text" id="vorname" name="vorname" placeholder="Ihr Vorname" required>

        <label for="nachname">Nachname</label>
        <input type="text" id="nachname" name="nachname" placeholder="Ihr Nachname" required>

        <label for="telefonnummer">Telefonnummer</label>
        <input type="tel" id="telefonnummer" name="telefonnummer" placeholder="Ihre Telefonnummer" required>

        <label for="email">E-Mail Adresse</label>
        <input type="email" id="email" name="email" placeholder="Ihre E-Mail Adresse" required>

        <label for="nachricht">Nachricht</label>
        <textarea id="nachricht" name="nachricht" placeholder="Ihre Nachricht" required></textarea>

        <button type="submit">Absenden</button>
    </form>

</body>
</html>