@charset "utf-8";
#kontakt > article {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
}

#kontakt h2 {
    font-size: 2.25rem;
    line-height: 2.25rem;
    text-align: center;
}

#kontakt h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

#kontakt > article > div {
    margin-bottom: 1.5rem;
}

#kontakt > article p {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

/* TODO: remove? */
#kontakt > article a {
    color: inherit;
    text-decoration: none;
    transition: 300ms;
}

#kontakt > article a:hover {
    color: #0f9015;
}

#kontakt > p {
    display: flex;
    font-size: 1.2rem;
    margin: 3rem 0;
}

.success::before {
    flex-shrink: 0;
    margin: 0 0.875rem 0 0.375rem;
    content: " ";
    height: 1.3rem;
    width: 0.65rem;
    border-bottom: solid 0.2rem #0f9015;
    border-right: solid 0.2rem #0f9015;
    transform: rotate(45deg);
}

.fail::before {
    flex-shrink: 0;
    position: relative;
    top: -0.2rem;
    margin-right: 0.5rem;
    content: "X";
    font-size: 1.7rem;
    font-weight: 900;
    color: #90150F;
}

form {
    display: flex;
    flex-direction: column;
}

.form-col {
    display: flex;
    flex-direction: column;
}

input, textarea {
    outline: none;
    background-color: inherit;
    appearance: none;
    border-radius: 0;
}

.input-label {
    position: relative;
    margin: 0.9rem 0;
}

textarea {
    min-height: 4.9rem!important;
    padding-bottom: 0.3rem!important;
    resize: none;
}

.text {
    height: 1.8rem;
    width: 100%;
    padding: 0.1rem;
    border: none;
    border-bottom: 0.15rem solid black;
    font-size: 1rem;
    transition: all 300ms, height 0ms;
}

.text:hover, .text:focus {
    border-color: #0f9015;
}

.input-label > label {
    position: absolute;
    left: 0;
    font-size: 1rem;
    transition: 300ms;
}

.text:hover ~ label {
    color: #0f9015!important;
}

.text:placeholder-shown:not(:focus) ~ label {
    top: 0;
    color: inherit;
}

.text:focus ~ label, .text:not(:placeholder-shown) ~ label {
    top: -1.1rem;
    font-size: 1rem!important;
    color: #0f9015;
}

.c-box {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: 1.7rem;
}

.c-box > label {
    padding-left: 1.25rem;
    font-size: 1rem;
}

.c-box a {
    color: inherit;
    transition: 300ms;
}

.c-box a:hover {
    color: #0f9015;
}

input[type = checkbox] {
    position: relative;
    left: 0.5rem;
    flex-shrink: 0;
    height: 1rem;
    width: 1rem;
    border: solid 0.2rem black;
    transition: 300ms;
}

input[type = checkbox]:checked {
    top: -0.25rem;
    height: 1.4rem;
    width: 0.75rem;
    margin-right: 0.25rem;
    border-top: none;
    border-left: none;
    border-color: #0f9015;
    transform: rotate(45deg);
}

input[type = submit] {
    margin: 1rem auto;
    padding: 0.5rem 1rem;
    border: 0.15rem solid #0f9015;
    border-radius: 0.2rem;
    font-size: 1.15rem;
    font-weight: inherit;
    color: #0f9015;
    transition: 300ms;
}

input[type = submit]:hover {
    color: white;
    background: #0f9015;
}

@media screen and (min-width: 768px) {
    #kontakt > article {
        flex-direction: row;
    }

    #kontakt > article > div {
        flex: 1;
        min-width: 0;
        margin-bottom: 2rem;
    }

    #kontakt h2 {
        width: 0;
        font-size: 3.25rem;
        line-height: 3.25rem;
        font-weight: bold;
    }

    #kontakt > article p {
        font-size: 1.1rem;
        margin-left: 10%;
        margin-bottom: 0.75rem;
    }

    #kontakt > p {
        font-size: 1.3rem;
        margin: 6rem 0;
    }

    .form-col {
        flex-direction: row;
        justify-content: space-between;
    }

    .form-col > .input-label {
        width: 45%;
    }

    .input-label > label, .c-box > label {
        font-size: 1.05rem;
    }
}

@MEDIA screen and (min-width: 1280px) {
    #kontakt h2 {
        font-size: 3.75rem;
        line-height: 3.75rem;
    }
}

@MEDIA screen and (min-width: 1500px) {
    .input-label > label, .c-box > label {
        font-size: 1.1rem;
    }
}

@media (prefers-color-scheme: dark) {
    .text {
        color:#E8EAED;
        border-color: #E8EAED;
    }

    input[type = submit]:hover {
        color:#E8EAED;
    }

    input[type = checkbox] {
        border-color: #E8EAED;
    }
}