﻿/* Standard Form Elements */
#content .formTable {
    margin-bottom: 5rem;
}
#content .formTable > div:not(.buttonContainer) {
    display: block;
}
#content .formTable > div > div {
    padding: 0;
    white-space: nowrap;
    width: 100%;
}
#content .formTable > div:not(.nolable) > div:nth-child(1):not(.checkbox), 
#content .formTable > div > div.checkbox, 
#content .formTable > div.checkbox-sub-elements > div > div:nth-child(1)  {
    padding: 25px 0 10px 0;
}
#content .formTable > div > div:nth-child(3),
#content .formTable > div.checkbox-sub-elements > div > div:nth-child(3),
#content .formTable > div div.validation {
    background-color: rgba(var(--main-color-accent),1);
    max-height: 3px;
    overflow: hidden;
}
#content .formTable > div.checkbox-sub-elements  {
    margin-bottom: 25px;
}
#content .formTable > div.checkbox-sub-elements > div:first-child {
    padding-top: 0 !important;
}
#content input[type=text]::placeholder,
#content input[type=password]::placeholder,
#content textarea::placeholder,
#content select::placeholder
 {
    font-family: var(--main-font-family);
    font-style: italic;
    font-size: 15px;
    color: rgba(135,152,158,.75);
    opacity: 1;
}
#content input[type=text]:-ms-input-placeholder,
#content input[type=password]:-ms-input-placeholder,
#content textarea:-ms-input-placeholder,
#content select:-ms-input-placeholder {
    font-family: var(--main-font-family);
    font-style: italic;
    font-size: 15px;
    color: rgba(135,152,158,.75);
}
#content input[type=password]::-ms-input-placeholder,
#content input[type=password]::-ms-input-placeholder, 
#content textarea::-ms-input-placeholder, 
#content select::-ms-input-placeholder {
    font-family: var(--main-font-family);
    font-style: italic;
    font-size: 15px;
    color: rgba(135,152,158,.75);
}

#content input[type=text],
#content input[type=password],
#content textarea,
#content select {
    width: 100% !important;
    padding: 8px;
    font-family: var(--main-font-family);
    color: var(--content-text-color);
    font-size: 1.188rem;
    line-height: 1.656rem;
    font-weight: 300;
    box-sizing: border-box;
    border: 1px solid rgba(var(--form-input-border-color), .25);
    border-bottom: 1px solid rgba(var(--form-input-border-color), .75);
}
#content input[type=text]:active, 
#content input[type=text]:focus, 
#content input[type=password]:active, 
#content input[type=password]:focus,
#content textarea:active, 
#content textarea:focus,
#content select:active, 
#content select:focus {
    outline-style: none;
    box-shadow: none;
    border-bottom-color: rgba(var(--form-input-active-line-color),1);
}
#content textarea {
    height: 100px;
    line-height: 28px;
    display: block;
}
.buttonContainer {
    padding: 45px 0 0 0;
    text-align: right;
    display: block;
}
.buttonContainer.grid {
    display: flex;
    flex-direction: row;
    align-content: space-between;
}
.buttonContainer.grid > *:first-child {
    text-align: left;
}
.buttonContainer.grid > *:last-child {
    text-align: right;
}
.buttonContainer > input[type=button],
#content .formTable .buttonContainer .weiter,
#content .buttonContainer .weiter,
#content a.button.weiter {
    background-color: rgba(var(--main-color-accent),1);
    text-transform: uppercase;
    font-family: var(--main-font-family);
    font-size: 1rem;
    text-align: center;
    padding: 15px 25px;
    cursor: pointer;
    min-width: 230px;
    border: none;
    color: rgba(var(--text-in-accent),1);
    text-decoration: none;
    transition: background-color var(--color-animation-easing) var(--color-animation-duration), color var(--color-animation-easing) var(--color-animation-duration); transition-duration: var(--color-animation-duration);
    display: inline-block;
}
.buttonContainer > input[type=button]:hover,
#content .formTable .buttonContainer .weiter:hover,
#content .buttonContainer .weiter:hover,
#content a.button.weiter:hover {
    background-color: rgba(var(--main-color-accent),.75);
}
.backButtonContainer {
    padding: 25px 0 0px 0;
    text-align: center;
}
@media screen and (max-width: 500px) {
    .buttonContainer, .backButtonContainer {
        padding-bottom: 25px;
    }

    .buttonContainer > input[type=button], 
    #content .formTable .buttonContainer .weiter, 
    #content .buttonContainer .weiter,
    #content a.button.weiter {
        min-width: 200px;
        box-sizing: border-box;
    }
}
@media screen and (max-width: 400px) {
    .buttonContainer > input[type=button],
    #content .formTable .buttonContainer .weiter,
    #content .buttonContainer .weiter,
    #content a.button.weiter {
        min-width: unset;
        width: 100%;
    }
}

/* Checkboxen */
.checkbox {
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    margin: 15px 0 0px 0;
    white-space: unset !important;
}

.checkbox input[type=checkbox] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox label {
    padding-left: 35px;
    position: relative;
    z-index: 5;
    top: -23px;
    left: 0;
}

.checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #dcdcdc;
}

.checkbox:hover input ~ .checkmark {
    background-color: #c4c2c2;
}

.checkbox input:checked ~ .checkmark {
    background-color: #f08714; /* #ff6500 */
}

.checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox input:checked ~ .checkmark:after {
    display: block;
}

.checkbox .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

/* Checkbox zentriert */
#content .formTable > div > div.checkbox.centered,
.checkbox.centered {
    width: auto;
    margin: 0 auto;
}

.checkbox.centered label {
    position: relative;
    top: -23px;
}

/* Checkbox V2 */
.checkbox-v2 {
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    margin: 15px 0 0px 0;
    white-space: unset !important;
    display: grid;
}
.checkbox-v2.centered {
    display: inline-grid;
    grid-template-columns: auto auto;
}
.checkbox-v2 input[type=checkbox] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.checkbox-v2 label {
    padding-left: 40px;
    position: relative;
    z-index: 5;
    top: 2px;
    left: 0;
}
.checkbox-v2.small label {
    font-size: .8em;
    padding-left: 30px;
    top: -4px;
}
.checkbox-v2 .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #dcdcdc;
}
.checkbox-v2.small .checkmark {
    height: 15px;
    width: 15px;
}
.checkbox-v2 input:checked ~ .checkmark {
    background-color: #f08714;
}

.checkbox-v2:hover input ~ .checkmark {
    background-color: #c4c2c2;
}
.checkbox-v2 .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}
.checkbox-v2 .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}
.checkbox-v2.small .checkmark:after {
    left: 6px;
    top: 3px;
    width: 2px;
    height: 5px;
    border-width: 0 2px 2px 0;
}
.checkbox-v2 input:checked ~ .checkmark:after {
    display: block;
}

/* Error-Box */
.validationError {
    padding: 15px 25px;
    position: relative;
}
.validationError.messageRed {
    background: rgba(var(--content-messagebox-background-red),.75);
}
.validationError.messageGrey {
    background: rgba(var(--content-messagebox-background-grey),.1);
}
.validationError.messageYellow {
    background: rgba(var(--content-messagebox-background-yellow),.4);
}
.validationError.messageGreen {
    background: rgba(var(--content-messagebox-background-green),1);
}
.validationError.shadow {
    box-shadow: 0 2px 4px 0 rgba(0,0,0,.2);
}
#container .validationError,
#container .validationError li,
#container .validationError p {
    color: rgba(var(--main-color-black),.65) !important;
    font-size: 1.375rem;
    line-height: 1.938rem;
    font-weight: 300;
}
#container .validationError {
    font-weight: 500;
}
#container .validationError .title {
    font-weight: 500;
    margin: 0;
    padding: 0;
    display: block;
}
#container .validationError.singleMessage ul, 
#container .validationError ul:has(> li:only-child) {
    list-style-type: none;
    padding: 0;
    margin: 1rem 0 0 0;
}
#container .validationError.singleMessage li, 
#container .validationError ul > li:only-child {
    margin: 0;
    padding: 0;
}