#gform_fields_1 {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    row-gap: 0;
}

#gform_1 .ginput_container {
    margin: 14px 0;
    height: 48px;
}

#gform_1 textarea {
    height: 335px;
}

#gform_1 button,
#gform_1 input {
    border: none;
    width: 100%;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0);
    border-bottom: solid;
    border-width: 2px;
    border-bottom-color: var(--color--blue);
    color: var(--color--blue);
    box-shadow: none;
}

#field_1_13 {
    width: 100%;
}

#field_1_16,
#field_1_18 {
    flex-direction: column;
    width: calc(50% - 8px);
}

#field_1_9 legend {
    display: none;
}

#gform_1 span.gfield_required_text {
    display: none;
}

#gform_1 #input_1_14 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

#gform_1 input[type="checkbox"] {
     border: 1px solid var(--color--blue) !important;
     clip: unset !important;
     height: 20px !important;
     margin: unset !important;
     overflow: unset !important;
     padding: unset !important;
     position: unset !important;
     width: unset !important;
}

#gform_submit_button_1 {
    margin: 0 auto;
    max-width: 250px;
    text-transform: uppercase;
}


@media (max-width: 820px) {
    #field_1_16,
    #field_1_18 {
        width: 100%;
    }
    #gform_1 .gfield--type-textarea {
        height: 335px;
        margin-bottom: 14px;
    }
    #gform_1 .gfield--type-html {
        margin: 14px 0;
    }
    #gform_1 #field_1_13 {
        height: 20px;
    }
}

@media (max-width: 420px) {
    #gform_1 #field_1_14 {
        height: 170px;
    }
    #gform_1 #input_1_14 {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        height: 150px;
    }
    #gform_1 #field_1_10 {
        margin-top: 20px;
    }
}

@media (max-width: 384px) {
    #gform_1 #field_1_10 {
        margin-top: 40px;
    }
}

@media (max-width: 340px) {
    #gform_1 #field_1_10 {
        margin-top: 60px;
    }
}

@media (max-width: 292px) {
    #gform_1 #field_1_10 {
        margin-top: 80px;
    }
}


#gform_fields_2,
#gform_fields_3 {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    row-gap: 0;
}

#gform_2 .ginput_container,
#gform_3 .ginput_container {
    margin: 14px 0;
    height: 48px;
}

#gform_2 textarea {
    height: 410px;
}

#gform_3 textarea {
    height: 350px;
}

#gform_3 .gfield_description.instruction {
    display: none;
}

#gform_2 button,
#gform_2 input,
#gform_3 button,
#gform_3 input {
    border: none;
    width: 100%;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0);
    border-bottom: solid;
    border-width: 2px;
    border-bottom-color: var(--color--blue);
    color: var(--color--blue);
    box-shadow: none;
}

#field_2_13,
#field_3_13 {
    width: 100%;
}

#field_2_16,
#field_2_18,
#field_3_16,
#field_3_18 {
    flex-direction: column;
    width: calc(50% - 8px);
}

#field_2_9 legend,
#field_3_9 legend {
    display: none;
}

#gform_2 span.gfield_required_text,
#gform_3 span.gfield_required_text {
    display: none;
}

#gform_2 #input_2_14,
#gform_3 #input_3_14 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

#gform_2 input[type="checkbox"],
#gform_3 input[type="checkbox"] {
    border: 1px solid var(--color--blue) !important;
    clip: unset !important;
    height: 20px !important;
    margin: unset !important;
    overflow: unset !important;
    padding: unset !important;
    position: unset !important;
    width: unset !important;
}

#gform_submit_button_2,
#gform_submit_button_3 {
    margin: 0 auto;
    max-width: 250px;
    text-transform: uppercase;
}


@media (max-width: 820px) {
    #field_2_16,
    #field_2_18,
    #field_3_16,
    #field_3_18 {
        width: 100%;
    }
    #gform_2 .gfield--type-textarea,
    #gform_3 .gfield--type-textarea {
        height: 410px;
        margin-bottom: 14px;
    }
    #gform_2 .gfield--type-html,
    #gform_3 .gfield--type-html {
        margin: 14px 0;
    }
    #gform_2 #field_2_13,
    #gform_3 #field_3_13 {
        height: 20px;
    }
}

@media (max-width: 420px) {
    #gform_2 #field_2_14,
    #gform_3 #field_3_14 {
        height: 170px;
    }
    #gform_2 #input_2_14,
    #gform_3 #input_3_14 {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        height: 150px;
    }
    #gform_2 #field_2_10,
    #gform_3 #field_3_10 {
        margin-top: 20px;
    }
}

@media (max-width: 384px) {
    #gform_2 #field_2_10,
    #gform_3 #field_3_10 {
        margin-top: 40px;
    }
}

@media (max-width: 340px) {
    #gform_2 #field_2_10,
    #gform_3 #field_3_10 {
        margin-top: 60px;
    }
}

@media (max-width: 292px) {
    #gform_2 #field_2_10,
    #gform_3 #field_3_10 {
        margin-top: 80px;
    }
}


/* Formular 3: Absenden-Button und Kontakt (template-17-containerverkauf.php) */
#gform_wrapper_3 .gform_footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px 30px;
    margin: 38px 0 0;
    padding: 0;
}

#gform_3 #gform_submit_button_3 {
    width: 205px;
    max-width: none;
    height: 62px;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--color--blue);
    color: #fff;
    font-size: 20px;
    font-weight: 300;
    line-height: 62px;
    text-transform: none;
    cursor: pointer;
}

#gform_3 #gform_submit_button_3:hover,
#gform_3 #gform_submit_button_3:focus {
    background: #0b2e4f;
}

/* Formular 3: Kontakt neben dem Button (setzt sich gegen den Framework-Reset von Gravity Forms durch) */
#gform_wrapper_3 .cv-kontakt {
    display: flex;
    align-items: center;
    gap: 15px;
}

#gform_wrapper_3 .cv-kontakt-icon {
    flex-shrink: 0;
    color: var(--color--orange);
    width: 32px;
    height: 32px;
}

#gform_wrapper_3 .cv-kontakt-text {
    display: flex;
    flex-direction: column;
    color: var(--color--blue);
}

#gform_wrapper_3 .cv-kontakt-email {
    font-size: 14px;
    line-height: 19px;
    color: var(--color--blue);
}

#gform_wrapper_3 .cv-kontakt-email a,
#gform_wrapper_3 .cv-kontakt-telefon {
    color: var(--color--blue);
    text-decoration: none;
}

#gform_wrapper_3 .cv-kontakt-telefon {
    font-size: 32px;
    font-weight: 400;
    line-height: 36px;
    white-space: nowrap;
}
