﻿/* Standard Form Elements */
#content .formTable > div:not(.buttonContainer) {
    display: block;
}
#content .formTable > div > div {
    padding: 0;
    white-space: nowrap;
    width: 100%;
}
@media screen and (max-width: 1000px) {
    #content .formTable > div > div {
        white-space: normal;
    }
}
#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:not(.checkboxlist) > div > div:nth-child(3),
#content .formTable:not(.checkboxlist) > div.checkbox-sub-elements > div > div:nth-child(3),
#content .formTable:not(.checkboxlist) > div div.validation {
    background-color: rgba(var(--form-input-error-border-color),1);
    max-height: 3px;
    overflow: hidden;
}
#content .formTable > div.checkbox-sub-elements  {
    margin-bottom: 25px;
}
#content .formTable > div.checkbox-sub-elements > div:first-child, 
#content .formTable > div.noTopPadding > div {
    padding-top: 0 !important;
}

#content input[type=text],
#content input[type=password],
#content textarea,
#content select {
    width: 100% !important;
    padding: 8px;
    font-family: var(--main-font-family);
    color: rgba(var(--content-text-color));
    font-size: 20px;
    box-sizing: border-box;
    border: 1px solid rgba(var(--main-color-black), .25);
    border-bottom: 1px solid rgba(var(--main-color-accent), .5);
}
#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-color: transparent;
    border: 1px solid rgba(var(--main-color-black), .25);
    border-bottom: 1px solid rgba(var(--main-color-accent), 1);
}
#content textarea {
    height: 100px;
    line-height: 28px;
    display: block;
}
.buttonContainer {
    padding: 45px 0 0 0;
    text-align: center;
    display: block;
}
.buttonContainer > input[type=button], 
#content .formTable .buttonContainer .weiter {
    background-color: rgba(var(--main-color-accent),1);
    text-transform: uppercase;
    font-family: var(--main-font-family);
    font-size: 14px;
    letter-spacing: .88px;
    text-align: center;
    line-height: 20px;
    padding: 15px 25px;
    cursor: pointer;
    min-width: 230px;
    border: 1px solid #cfdee4;
    color: #fff;
    text-decoration: none;
    transition-duration: .75s;
    transition-delay: .0s;
}
.buttonContainer > input[type=button]:hover, 
#content .formTable .buttonContainer .weiter:hover {
    background-color: rgba(var(--main-color-accent),.85);
    transition-duration: .5s;
    transition-delay: .0s;
}

/* Labels */
.formTable label {
    white-space: normal;
}

/* 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;
}
*/

.pdfaccept > .checkbox,
.checkbox {
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    gap: 20px;
    padding-top: 25px;
}
.checkbox > label {
    flex: 1;
    position: relative;
    top: -4px;
}
.checkbox .checkmark {
    position: relative;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #dcdcdc;
}
.checkbox:hover input ~ .checkmark {
  background-color: rgba(var(--main-color-accent),.3);
}
.checkbox input:checked ~ .checkmark {
  background-color: rgba(var(--main-color-accent),1);
}
.checkbox input {
    width: 25px;
    height: 25px;
    position: absolute;
    left: 0;
    z-index: 9;
    opacity: 0;
}
.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 rgba(var(--text-in-accent),1);
  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;
}

/* Checkboxen Liste */
#content .formTable > .checkboxlist {
    padding-top: 20px;
}
#content .formTable > .checkboxlist > div.checkbox {
    padding-top: 0px !important;
}

/* Zwischentitel */
#content h3 {
    margin-top: 4rem;
}

/* Fehler/Hinweis */
#content .message {
    padding: 20px;
    margin: 15px 0;
    background: rgba(var(--form-errorbox-background),1);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: stretch;
    align-content: stretch;
    border-radius: 3px;
}
#content .message > div:first-child {
    width: 100px;
    height: 100px;
    position: relative;
}
#content .message > div:first-child::before {
    content: 'i';
    background: rgba(var(--content-messagebox-text-color),1);
    height: 20px;
    width: 20px;
    display: block;
    position: absolute;
    top: 3px;
    left: -5px;
    color: rgba(var(--main-color-accent), .8);
    font-style: normal;
    border-radius: 50%;
    padding: 5px;
    box-sizing: content-box;
    font-size: 1.1rem;
    margin: 0;
    padding: 2px;
    text-align: center;
    line-height: 1.25rem;
    font-weight: 700;
}
#content .message > div:last-child {
    flex-grow: 2;
}
#content .message h5 {
    font-family: var(--main-font-family);
    color: rgba(var(--content-messagebox-text-color),1) !important;
    font-size: 1em;
    text-align: left;
    margin: 0;
    padding: 0 0 5px 0;
}
#content .message p {
    font-family: var(--main-font-family);
    font-size: .9em;
    color: rgba(var(--content-messagebox-text-color),1);
    text-align: left;
    margin: 0;
    padding: 0;
}


/* Hint */
#content p.form-section-hint {
    font-size: 0.9em;
    font-style: italic;
    background: rgba(135,152,158,.1);
    padding: 6px 5px;
    line-height: 1.2em;
    margin-bottom: 0;
}

/* Farbschemas */
.s_blue .checkbox input:checked ~ .checkmark {
    background-color: #00b7e4;
}

/* PDF Download */
.downloadPDF {
    position: relative;
    padding-left: 25px;
    font-weight: bold;
    color: rgba(var(--content-links-color),1);
}
.downloadPDF:hover {
    color: rgba(var(--content-links-hover-color),1);
}
.downloadPDF:before {
    content: '\f1c1';
    font-family: 'Font Awesome 5 Free';
    left: 0;
    position: absolute;
    top: 2px;
}