/* Basislayout für Kontakt-Section – an Hero/Section-1 angelehnt */
.contact-section {
    padding: 5rem 1.5rem;
    background-color: #111;
    /* dunkler Hintergrund wie bei vielen Hero-Layouts */
    color: #f5f5f5;
    font-family: inherit;
    /* globale Schrift nutzen */
}

.contact-container {
    max-width: 960px;
    margin: 0 auto;
}

/* Intro / Überschrift */
.contact-intro {
    max-width: 960px;
    margin: 0 auto 3rem auto;
    text-align: left;
    font-family: inherit;
}

.contact-title {
    font-size: 2.2rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.contact-text {
    line-height: 1.7;
    font-size: 0.95rem;
    color: #d0d0d0;
}

@media (min-width: 900px) {
    .contact-intro {
        display: block;
    }

    .contact-title {
        margin-bottom: 1rem;
        white-space: normal;
    }

    .contact-text {
        margin: 0;
    }
}

/* Formularlayout – schlichtes 2-Spalten-Grid wie bei Section-Layouts */
.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 2.5rem;
}

.hp-field {
    position: absolute;
    left: -5000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-hint {
    grid-column: 1 / -1;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a0a0a0;
}

/* Form-Felder */
.form-field {
    display: flex;
    flex-direction: column;
}

.form-field--full,
.form-field--checkbox {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 0.82rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: #f5f5f5;
    font-family: inherit;
}

.form-label--checkbox {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Inputs / Textareas – flach, klare Kanten, dezente Linien */
.form-input,
.form-textarea {
    border: 1px solid #333;
    border-radius: 0;
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
    font-family: inherit;
    /* explizit von Body übernehmen */
    background-color: #181818;
    color: #f5f5f5;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #777;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #f5f5f5;
    background-color: #202020;
}

/* Checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.form-checkbox {
    margin-top: 0.25rem;
    width: 1rem;
    height: 1rem;
    border-radius: 0;
}

/* Fehlermeldungen – dezent, aber gut lesbar */
.form-error {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #ff6b6b;
    font-family: inherit;
}

/* Statusnachricht */
.form-status {
    grid-column: 1 / -1;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: #d0d0d0;
    font-family: inherit;
}

/* Aktionen / Button */
.form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
    margin-top: 1rem;
}

/* Button – an vorhandene .btn angelehnt, nur kleine Layout-Anpassung */
.contact-submit-btn {
    min-width: 170px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-family: inherit;
    margin-left: auto;
    align-self: center;
}

/* Fehlerzustand für Inputs */
[aria-invalid="true"].form-input,
[aria-invalid="true"].form-textarea,
[aria-invalid="true"].form-checkbox {
    border-color: #ff6b6b;
}

/* Responsives Verhalten */
@media (max-width: 900px) {
    .contact-section {
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .contact-form {
        grid-template-columns: 1fr;
    }

    .contact-intro {
        margin-bottom: 2.25rem;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 3rem 1.25rem;
    }

    .contact-title {
        font-size: 1.8rem;
        letter-spacing: 0.1em;
    }
}