:root {
    --primary-color: #006fb4;
    --primary-color-2: #004371;
}


body {
    font-family: Arial, Helvetica, sans-serif;
    color: #676456;
}

html, body {
    margin: 0;
    padding: 0;
}

fieldset {
    border: none;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
}

h1, h2, h3, h4, h5 {
    color: var(--primary-color-2);
    font-weight: 400;
    margin-bottom: .5rem;
}

a {
    color: var(--primary-color);
    text-decoration: underline;
}
a:not(.button):hover {
    color: var(--primary-color-2);
}

img {
    max-width: 100%;
}

.login-form {
    margin-top: 2rem;
}

label,
legend {
    display: block;
    font-weight: 600;
    margin-bottom: .25rem;
}

input, select {
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    border-radius: 0;
    border-width: 1px;
    border-color: #676456;
}

input:focus-visible {
    border-radius: 0;
    border-color: var(--primary-color);
    outline-color: var(--primary-color);
}

@media (min-width: 599px) {
    .login-form input {
        min-width: 300px;
    }
}

button, .button {
    background: var(--primary-color);
    border-radius: 0;
    color: white;
    padding: .75rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid var(--primary-color);
    text-decoration: none;
    text-align: center;
    /* text-transform: capitalize; */
    display: inline-block;
}

button:hover, .button:hover {
    background: var(--primary-color-2);
    border-color: var(--primary-color-2);
}

.button.button-color-2 {
    background: gray;
    border-color: gray;
}
.button.button-color-2:hover {
    background: darkgray;
    border-color: darkgray;
}



button:disabled {
    opacity: .5;
    pointer-events: none;
}

.wrapper-buttons {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
}



@media (min-width: 388px) {
    .wrapper-buttons.bildwahl {
        flex-direction: row;
        gap: 1.5rem;
    }
    .wrapper-buttons.bildwahl button.send {
        margin-left: auto;
    }
}
@media (min-width: 542px) {
    .wrapper-buttons.bildbestaetigung {
        flex-direction: row;
        gap: 1.5rem;
    }
    .wrapper-buttons.bildbestaetigung button.send {
        margin-left: auto;
    }
}


.logout-button {
    display: block;
    margin-top: 2rem;
    color: var(--primary-color-2);
    font-weight: 600;
}

.logout-button:hover {
    color: var(--primary-color);
}

.privacy h2 {
    margin: 0;
}


.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 15px;
}

.footer {
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    margin-bottom: 50px;
}


.mb {
    margin-bottom: 1rem;
}


.messages_errors {
    color: red;
}




.image-selector {
    position: relative;
    min-height: 200px;
    border-radius: 20px;
    background: whitesmoke;
    padding: 20px;
    outline: .2em dashed white;
    transition: .4s all;
}

.image-selector.active {
    outline: .2em dashed darkgray;
}

.image-selector.active.invalid {
    outline-color: red;
    background: #ffe9e9;
}
.image-selector.active.invalid svg {
    fill: red;
}

.image-selector.active.valid {
    outline-color: green;
    background: #dff4df;
}
.image-selector.active.valid svg {
    fill: green;
}
.image-selector.active .image-selector-image-container > * {
    opacity: 0;
}



.image-selector > .image-selector-cta {
    text-align: center;
}

.image-selector input[type=file]{
    display: none;
}

.image-selector img {
    max-width: 100%;
    max-height: 100%;
}

.image-selector-errors {
    color: red;
}

.image-selector-infos {
    margin-left: 40px;
    padding-bottom: 20px;
}

.image-selector svg {
    position: absolute;
    top: 12%;
    right: 50%;
    transform: translateX(50%);
    display: block;
    margin: 0 auto;
    pointer-events: none;
    width: 30%;
    fill: #e3e3e3;
    transition: .4s all;
}

.image-selector .image-selector-image-container {
    position: relative;
    transition: .4s all;
    opacity: 1;
    /*padding-top: 63%;*/
    padding-top: 40%;
    background: rgba(255,255,255,.6);
    border-radius: 10px;
}
.image-selector .image-selector-image-container > * {
    position: absolute;
    transition: .4s all;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}


body.freezed::after {
    content: "";
    display: block;
    position: fixed;
    z-index: 100000000;
    background: black;
    opacity: .2;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* ------- */

.message-box {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.3);
}
.message-box > .inside {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    overflow: auto;
}

.message-box .message-box-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 700px;
    max-width: 90%;
    margin: 0 auto;
    min-height: 100%;
}
.message-box .message-box-wrapper > * {
    border-radius: 10px;
    overflow: hidden;
    background: ghostwhite;
}
.icon-error-message {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}
.icon-error-message > *:nth-child(1) {
    width: 30px;
    flex-shrink: 0;
}
.icon-error-message > *:nth-child(1) svg {
    fill: var(--primary-color);
}
.icon-error-message > *:nth-child(2) {
    flex-grow: 1;
}
.message-box .message-box-content {
    padding: 20px;
    background: white;
}

.message-box .message-box-footer {
    border-top: 2px solid white;
    padding: 20px;
    background: linear-gradient(0deg, ghostwhite, white);
    border-top: 1px solid ghostwhite;
}
.message-box .message-box-header {
    border-bottom: 2px solid white;
    background: linear-gradient(180deg, ghostwhite, white);
    border-bottom: 1px solid ghostwhite;
    padding: 20px;
    font-size: 1.45em;
    color: var(--primary-color);
}


/* ------ */

.loader {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 6rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}
.loader:before,
.loader:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    animation: pulsOut 1.8s ease-in-out infinite;
    filter: drop-shadow(0 0 1rem rgba(255, 255, 255, 0.75));
}
.loader:before {
    width: 100%;
    padding-bottom: 100%;
    box-shadow: inset 0 0 0 1rem #fff;
    animation-name: pulsIn;
}
.loader:after {
    width: calc(100% - 2rem);
    padding-bottom: calc(100% - 2rem);
    box-shadow: 0 0 0 0 #fff;
}

@keyframes pulsIn {
    0% {
        box-shadow: inset 0 0 0 1rem #fff;
        opacity: 1;
    }
    50%, 100% {
        box-shadow: inset 0 0 0 0 #fff;
        opacity: 0;
    }
}

@keyframes pulsOut {
    0%, 50% {
        box-shadow: 0 0 0 0 #fff;
        opacity: 0;
    }
    100% {
        box-shadow: 0 0 0 1rem #fff;
        opacity: 1;
    }
}

/* ------ */
.page-loading {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
}
.page-loading .loader,
.page-loading .loader-description {
    position: absolute;
    bottom: 50%;
    right: 50%;
}
.page-loading .loader {
    transform: translate(50%, calc(50% - 1rem));
}
.page-loading .loader-description {
    color: white;
    padding: 3px 5px;
    //background: rgba(255, 255, 255, 0.3);
    font-size: 1.5rem;
    text-shadow: 0px 0px 4px black;
    text-align: center;
    border-radius: 15px;
    transform: translate(50%, calc(50% + 1rem));
}



/* --- */

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