/* Kontakt – 50:50, Formular rechts */
.contact-section { /* nutzt globales Section-Layout */ }

.contact-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;   /* 50 : 50 */
    gap: 28px;
    align-items: start;
}

/* Linke Spalte: Text/Infos */
.contact-info{
    color: #476a85;
    line-height: 1.8;
}

/* Rechte Spalte: Formular-Karte */
.contact-form{
    background: #fff;
    border: 1px solid #e4ebf2;
    border-radius: 2px;
    padding: 18px;
    box-shadow: 0 10px 20px rgba(0,0,0,.03);
    max-width: none;
    width: 100%;
}

.contact-form .form-row{ margin-bottom: 12px; }

/* Unterstrich-Inputs wie im Newsletter */
.contact-form input,
.contact-form textarea{
    width: 100%;
    border: none;
    border-bottom: 2px solid #e4ebf2;
    border-radius: 0;
    padding: 12px 0 10px;
    background: transparent;
    font-family: inherit;
    font-size: 1.2rem;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder{
    color: #ccc;
}
.contact-form input:focus,
.contact-form textarea:focus{
    outline: none;
    border-bottom-color: #8fb2cc;
    box-shadow: 0 1px 0 0 #8fb2cc;
}

.contact-form textarea{ resize: vertical; min-height: 140px; }

/* Button mittig (wie im Screenshot) */
.contact-form .form-actions{ text-align: center; }

/* Visuell versteckte, aber zugängliche Labels */
.sr-only{
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

/* Buttons in Kontakt- und Newsletter-Formular zentrieren */
.contact-form .form-actions {
    display: flex;
    justify-content: center;
}

/* Inhalt im Button sauber horizontal & vertikal zentrieren */
.contact-form .btn {
    display: inline-flex;        /* statt inline/block */
    align-items: center;         /* vertikal zentriert */
    justify-content: center;     /* horizontal zentriert */
    text-align: center;
    line-height: 1;              /* verhindert „hoch/tief“ wirkenden Text */
    padding: 12px 28px;          /* symmetrisch */
    margin: 0;                   /* kein Auto-Margin nötig */
    appearance: none;
    -webkit-appearance: none;
    gap: 8px;                    /* falls mal ein Icon drin ist */
}

/* Falls eine spezielle Variante den Text verdrängt */
.contact-form .btn.btn-primary {
    justify-content: center;
    text-align: center;
}


@media (max-width: 900px){
    .contact-grid{ grid-template-columns: 1fr; }
    .contact-form .form-actions{ text-align: left; }

    /* Buttons in Kontakt- und Newsletter-Formular zentrieren */
    .contact-form .form-actions {
        display: flex;
        justify-content: center;
    }

    /* Sicherstellen, dass der Button nicht 100% breit ist und keine Seitwärts-Margins blocken */
    .contact-form .form-actions .btn {
        width: 80vw;
        margin: 0 auto;
        display: inline-flex; /* falls .btn anderswo als block gesetzt wurde */
    }
}
