.section-1 {
    background-image: url(../Imgs/kontakt/kontakt.jpg);
    background-size: cover;
    background-position: center;
}

.under-section-1 {
    display: flex;
    justify-content: center;
}

.under-section-1 .container-1 {
    width: 405px;
}

.under-section-1 .container {
    display: flex;
    gap: 1rem;
}

.under-section-1 h1 {
    font-family: Playfair Display;
    font-size: 40px;
    font-weight: 700;
}

.under-section-1 p {
    line-height: 1.375;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-family: Nunito Sans;
    font-size: 18px;
    font-weight: 400;
}

.under-section-1 strong {
    font-weight: 700;
}

.under-section-1 a {
    color: #3A57C0;
    text-decoration: none;
}

.under-section-1 .container-2 {
    width: 405px;
}

.under-section-1 form {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-areas: 
    "fname lname" 
    "mail mail" 
    "text_pole text_pole" 
    "confirmation button";
    gap: 1rem;
}

.under-section-1 .fname { grid-area: fname; }
.under-section-1 .lname { grid-area: lname; }
.under-section-1 .mail { grid-area: mail; }
.under-section-1 .text { grid-area: text_pole; }
.under-section-1 .confirmation { grid-area: confirmation; }
.under-section-1 button { grid-area: button; }

.under-section-1 .fname,
.under-section-1 .lname,
.under-section-1 .mail,
.under-section-1 .text { 
    display: flex;
    flex-direction: column;
    line-height: 1.375;
    font-family: Nunito Sans;
    font-size: 18px;
    font-weight: 400;
}

.fname input,
.lname input,
.mail input,
.text textarea {
    font-family: Nunito Sans;
    font-size: 18px;
    font-weight: 400;
    background-color: white;
    color: black;
    height: 60px;
    border: 2px black solid;
    outline: none;
}

.text textarea {
    resize: vertical;
    overflow: visible;
    height: fit-content;
}

.under-section-1 button {
    height: 60px;
    background-color: white;
    color: black;
    border: 2px black solid;
    cursor: pointer;
    font-family: Nunito Sans;
    font-size: 18px;
    font-weight: 400;
    padding: .5rem;
}

.under-section-1 button:hover {
    background-color: black;
    color: white;
}

.under-section-1 .confirmation {
    font-family: Nunito Sans;
    font-size: 18px;
    font-weight: 400;
    display: none;
}

.under-section-2 {
    display: flex;
    justify-content: center;
}

.under-section-2 h1 {
    font-family: Playfair Display;
    font-size: 40px;
    font-weight: 700;
}

.under-section-2 p {
    max-width: 811px;
    margin-top: 1rem;
    font-family: Nunito Sans;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.375;
}

.under-section-2 strong {
    font-weight: 700;
}

#map {
    width: 100%;
    height: 400px;
    margin: 3rem 0;
}

@media screen and (max-width: 905px){
    .under-section-1 {
        flex-direction: column;
        align-items: center;
    }

    .under-section-1 .container-1 {
        width: 511px;
    }

    .under-section-1 .container-2 {
        width: 100%;
        max-width: 511px;
    }

    .under-section-1 form {
        grid-template-columns: 100%;
        grid-template-areas: "fname" "lname" "mail" "text_pole" "button" "confirmation";
    }

    .under-section-2 p {
        max-width: 511px;
    }
}

@media screen and (max-width: 530px){
    .section-1 {
        background-position: 33%;
    }

    .under-section-1 .container-1 {
        width: auto;
        margin-right: auto;
    }

    .under-section-1 h1 {
        font-size: 30px;
    }

    .under-section-1 p {
        font-size: 16px;
    }

    .under-section-1 img {
        width: 2rem;
        aspect-ratio: 1;
    }

    .under-section-1 form :where(input, label, button, .confirmation) {
        font-size: 16px;
    }

    .under-section-2 h1 {
        font-size: 30px;
    }

    .under-section-2 p {
        max-width: 400px;
        font-size: 16px;
    }
}