/* Der Hauptcontainer für die Kontaktseite, der den Infotext und das Formular umschließt. */
.contact-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 40px;
    margin: 0px 30px 0px 30px;
    background-color: #111136;
    border-radius: 30px;
    border: 2px solid #1f1f64;
    flex-grow: 1; /* Nimmt den restlichen Platz im .content-Bereich ein */
}

.contact-info {
    flex: 1;
    max-width: 450px;
    font-family: "Roboto", sans-serif;
}

.contact-info h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2; /* Verbessert die Lesbarkeit bei großer Schrift */
}

.contact-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ccc;
}

.contact-form {
    flex: 1;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: transparent;
    /* Dient als schicker visueller Trenner auf Desktop-Bildschirmen. */
    border-left: 4px solid white;
    padding-left: 40px;
    font-family: "Roboto", sans-serif;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 15px;
    border: 2px solid #2b2b8d;
    background-color: #1f1f64;
    font-size: 1rem;
    color: white;
    outline: none;
    /* 'box-sizing' ist super praktisch: Padding und Border werden in die Gesamtbreite eingerechnet. */
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}

.contact-form textarea {
    /* Erlaubt nur vertikales Vergrößern, damit das Layout nicht seitlich gesprengt wird. */
    resize: vertical;
    min-height: 120px;
}

.contact-form #submitbutton {
    padding: 15px;
    border: none;
    border-radius: 15px;
    background-color: #2b2b8d;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s, transform 0.2s;
    font-family: "Roboto", sans-serif;
}

/* Kleiner, feiner Effekt, der den Button beim Drüberfahren leicht "anhebt". */
.contact-form #submitbutton:hover {
    background-color: #3c3cae;
    transform: translateY(-2px);
}

/* --- Media Queries für Responsivität --- */

/* Umbruch für Tablets & Co.: Statt nebeneinander werden die Bereiche untereinander angezeigt. */
@media (max-width: 900px) {
    .contact-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .contact-form {
        /* In der mobilen Ansicht wandert der Trennstrich von der Seite nach oben. */
        border-left: none;
        border-top: 4px solid white;
        padding-left: 0;
        padding-top: 40px;
    }

    .contact-info {
        max-width: 100%;
    }
}

/* Auf Handys: Formularfelder (wie Vor- und Nachname) werden für bessere Bedienbarkeit untereinander gestapelt. */
@media (max-width: 500px) {
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
}