
.form {
    position: relative;
    width: 100%;
    max-width: 1000px;
    left: 50%;
    transform: translate(-50%, 0);

    display: flex;
    flex-direction: column;
    align-items: stretch;

    & .input label {
        pointer-events: none;
    }

    & .input:not(.button) {
        /*nicht fuer Buttons*/
        position: relative;
        min-height: 40px;
        overflow: visible;

        &:before, &:after {
            content: "";
            display: none;
            position: absolute;
            top: 14px;
            width: 15px;
            height: 15px;
            border-color: var(--color-input-border);
            border-width: 3px;
            border-top-style: solid;
        }

        &:before {
            left: 0;
            border-left-style: solid;
        }

        &:after {
            right: 0;
            border-right-style: solid;
        }

        &:hover:before, &:hover:after {
            display: block;
        }
    }

    & .txtAreaInput {
        height: 200px;
    }

    & label {
        position: absolute;
        top: 19px;
        left: 7px;
        height: 16px;
        line-height: 16px;
        font-size: 16px;
        font-weight: bold;
        color: var(--gradient-color-1);
        padding: 0;
        margin: 0;
        transition: var(--transition-ui-interaction);
    }

    & textarea {
        padding: 4px 7px;
    }


    & input, & textarea, & select {
        resize: none;
        position: absolute;
        top: 14px;
        bottom: 0;
        background: transparent;
        border: 0;
        width: 100%;
        outline: none;
        display: block;
        padding: 0 7px;
        font-size: 16px;
        transition: var(--transition-ui-interaction);
        color: var(--color-fg);
    }

    & :invalid {
        color: var(--color-input-border);
    }

    & :focus:invalid {
        color: var(--color-fg);
    }

    & :invalid + label {
        color: var(--color-link);
    }

    & :focus {
        outline: none;
    }

    & :focus + label + .movingBottomLine:after {
        /*width: 100%;*/
        transform: scaleX(1);
        transform-origin: bottom left;
    }

    & :focus + label, :valid + label {
        top: 0;
        font-size: 12px;
    }

    & :valid + label + .movingBottomLine:after {
        background: var(--gradient-color-1);
    }

    & input[type=submit],
    & input[type=button] {
        position: relative;
        top: 0;
        padding: 8px 15px;
        border-radius: 5px;
        color: var(--color-link);
        font-weight: bold;
        box-shadow: 0 0 8px transparent;
        border: 1px solid transparent;

        &:focus {
            outline: none;
            box-shadow: 0 0 8px 0 var(--color-link);
            border: 1px solid var(--color-link);
        }

        &:hover {
            box-shadow: 0 0 8px 0 var(--color-link);
            border: 1px solid var(--color-link);
        }
    }


    & .movingBottomLine {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        overflow: visible;
        background: var(--color-input-border);
        z-index: -1;
        /*hinter input*/
    }

    & .movingBottomLine:after {
        content: " ";
        display: block;
        position: absolute;
        left: 0;
        height: 3px;
        bottom: 0;
        background: var(--color-link);
        /*width: 0;*/
        width: 100%;
        transform: scaleX(0);
        transform-origin: bottom right;
        transition: transform 0.25s ease-out;
    }

}

@media only screen and (max-height: 400px) {
    & .txtAreaInput {
        height: 80px;
    }
}

#jobDoneContainer {
    position: absolute;
    cursor: pointer;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: var(--color-card-bg-80);
    backface-visibility: hidden;
    transform: rotateX(110deg) translateY(-90px);
    transform-origin: 0 50%;
    perspective-origin: 50% 0;
    transition: var(--transition-ui-interaction);


    &.jobDone {
        width: 100%;
        transform: rotateX(0deg) translateY(0px);
        box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.5);
    }

    & #jobDoneCheckContainer {
        position: absolute;
        left: 50%;
        top: 50%;
        margin-top: -60px;
        overflow: hidden;
        height: 120px;
        width: 0;
        -webkit-transition: all 0ms ease;
        -moz-transition: all 0ms ease;
        -ms-transition: all 0ms ease;
        -o-transition: all 0ms ease;
        transition: all 0ms ease;

        & #jobDoneCheck {
            position: absolute;
            left: 17px;
            top: 12px;
            height: 60px;
            width: 165px;
            transform: rotate(-40deg) skew(7deg, 0deg);
            border-left: 3px solid var(--gradient-color-1);
            border-bottom: 3px solid var(--gradient-color-1);
            border-bottom-left-radius: 10px;
            z-index: 1;
        }
    }

    & #jobDoneWithErr {
        position: relative;
        text-align: center;
        z-index: 1;
        display: none;
        color: var(--gradient-color-1);
        height: 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        transition: var(--transition-ui-interaction);

        &:hover, &:focus {
            margin-top: 0.5%;
        }

        & ul {
            margin: 0;
            display: flex;
            flex-direction: column;
            height: 100%;
            padding: 0 0 0 30px;

            &:before, &:after {
                flex: 1;
                content: " ";
            }
        }

    }


    &.jobDoneSuccess #jobDoneCheckContainer {
        transition: all 1s ease;
        width: 200px;
    }

    &.jobDoneErr #jobDoneWithErr {
        display: flex;
    }
}