/**
 * All of the CSS for public-specific functionality should be
 * included in this file.
 */

 .wp-selbstauskunft-form {
    font-family: 'Montserrat', sans-serif;
    color: #42332c;
    border: 0;
}

.wp-selbstauskunft-form:focus-within {
    outline: none;
}

.wp-selbstauskunft-form * {
    box-sizing: border-box;
}

.wp-selbstauskunft-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/**
 * Grid
 */

.wp-selbstauskunft-form__row {
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}

@media only screen and (max-width: 768px) {
    .wp-selbstauskunft-form__row {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 10px;
    }

    
    .wp-selbstauskunft-form__row--terms {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 10px;        
    }

    .wp-selbstauskunft-form__row--terms > .wp-selbstauskunft-form__col-span-1 {
        grid-column: span 2 / span 2;
    }

    .wp-selbstauskunft-form__row--terms > .wp-selbstauskunft-form__col-span-11 {
        grid-column: span 10 / span 10;
    }

    .wp-selbstauskunft-form__row--terms ol {
        padding-left: 0;
    }
}

.wp-selbstauskunft-form__row + .wp-selbstauskunft-form__fieldset {
    margin-top: 40px;
}

.wp-selbstauskunft-form__row > * {
    grid-column: span 1 / span 1;
}

.wp-selbstauskunft-form__col-span-2 {
    grid-column: span 2 / span 2;
}

.wp-selbstauskunft-form__col-span-3 {
    grid-column: span 3 / span 3;
}

.wp-selbstauskunft-form__col-span-4 {
    grid-column: span 4 / span 4;
}

.wp-selbstauskunft-form__col-span-5 {
    grid-column: span 5 / span 5;
}

.wp-selbstauskunft-form__col-span-6 {
    grid-column: span 6 / span 6;
}

.wp-selbstauskunft-form__col-span-7 {
    grid-column: span 7 / span 7;
}

.wp-selbstauskunft-form__col-span-8 {
    grid-column: span 8 / span 8;
}

.wp-selbstauskunft-form__col-span-9 {
    grid-column: span 9 / span 9;
}

.wp-selbstauskunft-form__col-span-10 {
    grid-column: span 10 / span 10;
}

.wp-selbstauskunft-form__col-span-11 {
    grid-column: span 11 / span 11;
}

.wp-selbstauskunft-form__col-span-12 {
    grid-column: span 12 / span 12;
}

/**
 * Forms
 */
.wp-selbstauskunft-form__fieldset {
    border-top: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding: 30px 0 10px 0;
    margin-bottom: 20px;
    position: relative;
}

.wp-selbstauskunft-form__legend {
    font-size: 46px;
    font-weight: 600;
    line-height: 1.25em;
    text-transform: uppercase;
    background: var(--wp--preset--color--base);
    font-family: 'Frank Ruhl Libre', serif;
    display: block;
    width: 100%;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
    color: #42332c;
    border: 0;
}

@media only screen and (max-width: 768px) {
    .wp-selbstauskunft-form__legend {
        font-size: 32px;
        margin-bottom: 10px;
    }
}

.wp-selbstauskunft-form__legend:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 0;
    transform: translateX(-50%);
    width: 20%;
    height: 2px;
    background: #4d733d;
    z-index: 1;
}

.wp-selbstauskunft-form__legend-help {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

.wp-selbstauskunft-form__group {
    display: flex;
    flex-direction: column;
}

.wp-selbstauskunft-form__label {
    color: #42332c;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
}

.wp-selbstauskunft-form__group--error .wp-selbstauskunft-form__label {
    color: #dc3545;
}

.wp-selbstauskunft-form__field {
}

.wp-selbstauskunft-form__input {
    font-family: 'Montserrat', sans-serif;
    display: block;
    width: 100%;
    padding: 10px 15px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input[type="text"].wp-selbstauskunft-form__input,
input[type="tel"].wp-selbstauskunft-form__input,
input[type="email"].wp-selbstauskunft-form__input,
textarea.wp-selbstauskunft-form__input {
    padding: 10px 15px!important;
    height: 46px;
    font-size: 14px;
    font-weight: bold;
}

.wp-selbstauskunft-form__input:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.wp-selbstauskunft-form__input::placeholder {
    color: #42332c;
    font-weight: bold;
    font-size: 14px;
}

.wp-selbstauskunft-form__input--date-combo {
    opacity: 0;
    pointer-events: none;
}

.wp-selbstauskunft-form__input--select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="5" viewBox="0 0 10 5"><path fill="%2342332c" d="M5 5L0 0h10z"/></svg>') no-repeat right 0.75rem center/8px 10px;
    padding-right: 2.375rem;
    background-color: #fff;
    height: 46px;
    font-size: 14px;
    font-weight: bold;
}

.wp-selbstauskunft-form__datepicker {
    font-size: 14px;
    font-weight: bold;
}

.wp-selbstauskunft-form__field--checkbox {
    min-height: 46px;
}

.wp-selbstauskunft-form__field--place_date div + div {
    margin-top: 5px;
}

@media only screen and (max-width: 768px) {
    .wp-selbstauskunft-form__field--place_date > div + div {
        margin-top: 10px;
    }
}

.wp-selbstauskunft-onoff {
    display: inline-block;
    vertical-align: middle;
    *vertical-align: auto;
    zoom: 1;
    *display: inline;
    position: relative;
    cursor: pointer;
    width: 100px;
    height: 30px;
    line-height: 30px;
    font-size: 14px;
    font-family: sans-serif;
    margin-block-end: 10px;
    margin-block-start: 10px;
}
.wp-selbstauskunft-onoff label {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    cursor: pointer;
    background: #cd3c3c;
    border-radius: 5px;
    font-weight: bold;
    color: #FFF;
    transition: background 0.3s, text-indent 0.3s;
    text-indent: 27px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4) inset;
}
.wp-selbstauskunft-onoff label:after {
    content: 'Nein';
    display: block;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    font-size: 12px;
    color: #591717;
    text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.35);
    z-index: 1;
}
.wp-selbstauskunft-onoff label:before {
    content: '';
    width: 15px;
    height: 24px;
    border-radius: 3px;
    background: #FFF;
    position: absolute;
    z-index: 2;
    top: 3px;
    left: 3px;
    display: block;
    transition: left 0.3s;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
}
.wp-selbstauskunft-onoff input:checked + label {
    background: #378b2c;
    text-indent: 8px;
}
.wp-selbstauskunft-onoff input:checked + label:after {
    content: 'Ja';
    color: #091707;
}
.wp-selbstauskunft-onoff input:checked + label:before {
    left: 82px;
}

.wp-selbstauskunft-onoff + label {
    padding-left: 10px;
}

.wp-selbstauskunft-form__input--error {
    border-color: #dc3545;
}
.wp-selbstauskunft-form__group--error .wp-selbstauskunft-form__input {
    border-color: #dc3545;
}

.wp-selbstauskunft-form__help {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

.wp-selbstauskunft-form__signature_pad {
    border: 1px solid #ced4da;
    background: #fff;
    border-radius: 5px;
    height: 200px;
    width: 100%;
}

.wp-selbstauskunft-form__actions {
    display: flex;
    justify-content: center;
    background-color: #e8e8e8;
    padding: 20px 20px;
    position: relative;
}

.wp-selbstauskunft-progress-bar-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 1;
    width: 100%;
}

.wp-selbstauskunft-progress-bar {
    height: 100%;
    width: 0;
    background-color: #3c5f2c;
    transition: width 0.5s ease-in-out;
}

.wp-selbstauskunft-form__button {
    font-size: 25px;
    font-family: 'Montserrat', sans-serif;
    background-color: #4D733D;
    border-color: transparent;
    color: #fff;
    padding: 15px 7.5px;
    text-align: center;
    display: block;
    border-radius: 5px;
    line-height: 1;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

input[type="submit"].wp-selbstauskunft-form__button {
    padding: 15px 7.5px!important;
    width: auto;
    margin: 0 auto;
}

.wp-selbstauskunft-form__button:hover {
    background-color: #3c5f2c;
}

.wp-selbstauskunft-form__button.loading {
    background-color: #658f52;
    pointer-events: none;
    opacity: 0.65;
}

@media only screen and (max-width: 768px) {
    .wp-selbstauskunft-form__actions {
        justify-content: center;
    }

    .wp-selbstauskunft-form__button {
        width: 100%;
    }
}

.wp-selbstauskunft-form__help {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

.wp-selbstauskunft-form__help_icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    olor: #6c757d;
}

/**
 * Notifications
 */
.wp-selbstauskunft-form__msg {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.wp-selbstauskunft-form__msg--success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.wp-selbstauskunft-form__msg--danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/**
 * Upload area
 */
.wp-selbstauskunft-upload-area {
    border: 1px dashed #42332c;
    background-color: #fff;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    height: 150px;
    position: relative;
    overflow: hidden;
}

@media only screen and (max-width: 768px) {
    .wp-selbstauskunft-upload-area {
        height: 180px;
    }
}

.wp-selbstauskunft-form__group--error .wp-selbstauskunft-upload-area,
.wp-selbstauskunft-form__group--error .wp-selbstauskunft-form__signature_pad {
    border-color: #dc3545;
    border-style: solid;
    background-color: #ffcccc;
}

.wp-selbstauskunft-form__group--error .wp-selbstauskunft-upload-label__text,
.wp-selbstauskunft-form__group--error .wp-selbstauskunft-upload-label__icon {
    color: #dc3545;
}

.wp-selbstauskunft-upload-area:hover {
    border-color: #80bdff;
}

.wp-selbstauskunft-upload-area input {
    position: absolute;
    top: 0;
    left: -9999px;
    width: 1px;
    height: 1px;
}

.wp-selbstauskunft-upload-label__parts  {
    display: flex !important;
    flex-direction: column;
    justify-content: stretch;
    align-items: center;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: #6c757d;
}

.wp-selbstauskunft-upload-label__parts  .wp-selbstauskunft-upload-label__icon {
    margin-bottom: 0;
}

.wp-selbstauskunft-upload-label__parts .wp-selbstauskunft-upload-label__text {
    margin-bottom: 0;
}

.wp-selbstauskunft-upload-label__parts > label {
    flex: 1 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
}

.wp-selbstauskunft-upload-label__parts > label:first-child {
    align-items: end;
    min-height: 40%;
}

.wp-selbstauskunft-upload-label__parts > label:last-child {
    align-items: start;
    min-height: 60%;
}

.wp-selbstauskunft-upload-label {
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 10px;
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    z-index: 10;
    transform: translateY(-50%);
}

.wp-selbstauskunft-upload-label__text {
    text-align: center;
    margin-bottom: 5px;
    display: block;
    font-weight: bold;
}

.wp-selbstauskunft-upload-label__help {
    font-size: 12px;
    display: block;
    text-align: center;
}

.wp-selbstauskunft-upload-label__icon {
    font-size: 50px;
    margin-bottom: 10px;
}

.wp-selbstauskunft-file-list {
}

.wp-selbstauskunft-upload-file-item {
    margin: 5px;
    padding: 2px;
    border: 1px solid #ccc;
    display: inline-block;
    position: relative;
    z-index: 20;
    font-size: 10px;
}

.wp-selbstauskunft-upload-file-item button {
    margin-left: 5px;
    background-color: #fff;
    color: #4D733D;
    font-weight: 700;
    padding-top: 0;
    padding-right: 10px;
    padding-bottom: 0;
    padding-left: 10px;
}

.wp-selbstauskunft-upload-label__icon {
    width: 32px;
    height: 32px;
    color: #6c757d;
}

.wp-selbstauskunft-upload-label__text--desktop {

}

.wp-selbstauskunft-upload-label__text--mobile {
    display: none;
}

.wp-selbstauskunft--mobile {
    display: none!important;
}

@media only screen and (max-width: 768px) {
    .wp-selbstauskunft-upload-label__text--desktop {
        display: none;
    }

    .wp-selbstauskunft-upload-label__text--mobile {
        display: block;
    }

    .wp-selbstauskunft--mobile {
        display: block !important;
    }
}

/**
 * Foldable
 */
.wp-selbstauskunft-form__foldable {
    max-height: 0;
    overflow: hidden;
}

.wp-selbstauskunft-form__foldable.opened {
    max-height: 3000px;
    transition: max-height 0.5s ease-in-out;
    overflow: visible
}

.wp-selbstauskunft-form__legend-foldable-wrapper {
    display: block;
}

.wp-selbstauskunft-form__legend-foldable {
    cursor: pointer;
    margin: -10px auto 40px;
    appearance: none;
    border: 0;
    background: #f9f9f9;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #42332c;
    padding-top: 3px;
    background-color: #4D733D;
    color: #fff;
    padding: 0;
}

@media only screen and (max-width: 768px) {
    .wp-selbstauskunft-form__legend-foldable {
        margin: -20px auto 20px;
    }
}

.wp-selbstauskunft-form__legend-foldable:hover {
    background-color: #3c5f2c;
}

.wp-selbstauskunft-form__legend-foldable.opened {
    transform: rotate(180deg);
    background-color: #3c5f2c;
}

.wp-selbstauskunft-form__terms {
    font-size: 12px;
    max-width: 60em;
    margin-bottom: 20px;
}

.wp-selbstauskunft-form__terms li {
    margin-bottom: 10px;
}

.wp-selbstauskunft-form__terms-checkbox {
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

/**
 * Sizing
 */
.wp-selbstauskunft-w-6 {
    width: 24px;
}

.wp-selbstauskunft-h-6 {
    height: 24px;
}
