/* ***** Normalise CSS START ***** */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-weight: normal;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

[tabindex='-1']:focus:not(:focus-visible) {
    outline: 0 !important;
}

*:focus-visible {
    outline: none;
}

hr {
    background-color: currentColor;
    border: 0;
}

hr:not([size]) {
    height: 1px;
}

h1,
h2,
h3 {
    margin-top: 0;
    margin-bottom: 0;
    font-weight: normal;
}

p {
    margin-top: 0;
    margin-bottom: 2rem;
}

p:last-child {
    margin-bottom: 0;
}

abbr[title],
abbr[data-original-title] {
    text-decoration: underline;
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
    cursor: help;
    -webkit-text-decoration-skip-ink: none;
    text-decoration-skip-ink: none;
}

address {
    margin-bottom: 1rem;
    font-style: normal;
    line-height: inherit;
}

ol,
ul {
    padding-left: 2rem;
}

ol,
ul,
dl {
    margin-top: 0;
    margin-bottom: 1rem;
}

ol ol,
ul ul,
ol ul,
ul ol {
    margin-bottom: 0;
}

dd {
    margin-bottom: 0.5rem;
    margin-left: 0;
}

blockquote {
    margin: 0 0 1rem;
}

b,
strong {
    font-weight: bold;
}

sub,
sup {
    position: relative;
    line-height: 0;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -1.3rem;
}

a:not([href]):not([class]),
a:not([href]):not([class]):hover {
    color: inherit;
    text-decoration: none;
}

figure {
    margin: 0 0 1rem;
}

img,
svg {
    vertical-align: middle;
}

img {
    max-width: 100%;
    height: auto;
}

table {
    caption-side: bottom;
    border-collapse: collapse;
}

th {
    text-align: inherit;
    text-align: -webkit-match-parent;
}

thead,
tbody,
tfoot,
tr,
td,
th {
    border-color: inherit;
    border-style: solid;
    border-width: 0;
}

label {
    display: inline-block;
}

button {
    border-radius: 0;
    cursor: pointer;
}

button:focus {
    outline: none;
}

input,
button,
select,
optgroup,
textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button,
input {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

select {
    word-wrap: normal;
}

[list]::-webkit-calendar-picker-indicator {
    display: none;
}

button,
[type='button'],
[type='reset'],
[type='submit'] {
    -webkit-appearance: button;
}

::-moz-focus-inner {
    padding: 0;
    border-style: none;
}

textarea {
    resize: vertical;
}

fieldset {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

legend {
    float: left;
    width: 100%;
    padding: 0;
    line-height: inherit;
    white-space: normal;
}

legend + * {
    clear: left;
}

::-webkit-datetime-edit-fields-wrapper,
::-webkit-datetime-edit-text,
::-webkit-datetime-edit-minute,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-year-field {
    padding: 0;
}

::-webkit-inner-spin-button {
    height: auto;
}

[type='search'] {
    outline-offset: -2px;
    -webkit-appearance: textfield;
}

::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-color-swatch-wrapper {
    padding: 0;
}

::-webkit-file-upload-button {
    font: inherit;
    -webkit-appearance: button;
}

output {
    display: inline-block;
}

iframe {
    border: 0;
}

summary {
    display: list-item;
    cursor: pointer;
}

progress {
    vertical-align: baseline;
}

[hidden] {
    display: none !important;
}

iframe {
    width: 100%;
    margin-bottom: 0;
}

/* ***** Normalise CSS END ***** */


/* open-sans-300 - latin */
@font-face {
    font-display: swap; /
font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/open-sans-v40-latin-300.woff2') format('woff2');
}

/* open-sans-regular - latin */
@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/open-sans-v40-latin-regular.woff2') format('woff2');
}

/* open-sans-600 - latin */
@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/open-sans-v40-latin-600.woff2') format('woff2');
}

/* open-sans-700 - latin */
@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/open-sans-v40-latin-700.woff2') format('woff2');
}

/* open-sans-800 - latin */
@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 800;
    src: url('../fonts/open-sans-v40-latin-800.woff2') format('woff2');
}


:root {

    /*colors:*/
    --bg-color: #FFFFFF;
    --bg-color-dark: #011933;
    --main-color: #2e9df7;
    --hover-color: #f58f02;
    --success-color: #20b729;
    --warning-color: #ffbf00;
    --error-color: #d52525;
    --elem-border-color: #aaaaaa;
    --elem-bg-color: #eeeeee;
    --text-color: #424242;
    --text-color-light: #ffffff;

    /*fonts:*/
    --font-family: 'Open Sans', Arial, sans-serif;
    --font-bold: 600;
    --font-light: 300;

    /*other:*/
    --footer-height: 60px;
    --header-height: 80px
}


body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.5rem;
    background-color: var(--bg-color);
    color: var(--text-color);
}

strong {
    font-weight: var(--font-bold);
}

h1 {
    line-height: initial;
    font-size: 1.1em;
}

.btn {
    display: inline-block;
    font-weight: 600;
    padding: .5rem 1rem;
    border: none;
    background: var(--main-color);
    color: var(--text-color-light);
}

.btn:disabled {
    background: var(--elem-border-color);
    cursor: not-allowed;
}

.page {
    position: relative;
    display: flex;
    flex-flow: column;
    height: 100vh;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* ********** header START ********** */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--main-color);
    color: var(--text-color-light);
    z-index:20;
}

header .wrapper {
    display: flex;
    gap: 1rem;
    min-height: 100%;
}

.title_wrapper {
    display: flex;
    padding: 0 1rem;
    align-items: center;
    flex: 1 1 auto;
}

.sync_wrapper {
    pointer-events: none;
    display: flex;
    flex-flow: column;
    gap: .5rem;
    justify-content: center;
    align-items: center;
    height: 80px;
    min-width: 80px;
    padding: .5rem;
    background-color: var(--bg-color-dark);
}

.sync_icon svg {
    height: 25px;
    width: 25px;
    fill: #ffffff;
}

.no-internet_icon svg {
    height: 25px;
    width: 25px;
    fill: #ffffff;
}

.sync_text {
    text-align: center;
    font-size: .7em;
    line-height: .75rem;
}

.sync_wrapper.warning {
    pointer-events: all;
    cursor:pointer;
}

.sync_wrapper.rotate {
    pointer-events: none;
}

.sync_wrapper.rotate svg {
    animation-name: rotate_sync;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.no_internet .sync_icon svg {
    height: 32px;
    width: 52px;
}

@keyframes rotate_sync {
    from {
        transform: rotate(0);;
    }
    to {
        transform: rotate(360deg);
    }
}

/* ********** header END ********** */

main {
    display: flex;
    flex-flow: column nowrap;
    padding: calc(var(--header-height) + 1rem) 1rem calc(var(--footer-height) + 1rem) 1rem;
}

#scan_result {
    background: var(--success-color);
    color: var(--text-color-light);
}

#scan_error {
    background: var(--error-color);
    color: var(--text-color-light);
}

#reader {
    width: 100%;
}

.scanner_box {
    aspect-ratio: 4/3;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--elem-bg-color);
    border: 1px solid var(--elem-border-color);
    color: var(--elem-border-color);
}

.scanner_box svg {
    fill: var(--elem-border-color);
}

select {
    background: transparent;
    -webkit-appearance: none;
    border: none;
    padding: .5rem 2.5rem .5rem .5rem;
}

.select_wrapper {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    position: relative;
    border: 1px solid var(--elem-border-color);
}

.select_ic_down {
    position: absolute;
    right: .5rem;
    width: 20px;
    pointer-events: none;
}

.select_ic_down svg {
    width: 20px;
    height: 13px;
    stroke: var(--elem-border-color);
}

.tab {
    display: none;
}

.tab.active {
    display: block;
}

.tabnav.active {
    pointer-events: none;
}

.tabnav.inactive {
    pointer-events: none;
    position: relative;
    opacity: .25;
}

.login_box {
    width: 100%;
    max-width: 400px;
}

.login_box h2 {
    margin-bottom: 2rem;
    text-align: center;
}

.login_box form {
    display: flex;
    flex-flow: column;
    align-items: center;
    gap: .5rem;
}

.form__row {
    width: 100%;
    display: block;
}

input {
    width: 100%;
    padding: .75rem;
}

.search_wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--elem-border-color);
    padding-right: .5rem;
}

#searchterm {
    border: none;
}

#searchterm::placeholder {
    color: var(--elem-border-color);
}

#search_btn_lupe {
    height: 30px;
    width: 30px;
    color: var(--elem-border-color);
}

#search_btn_close {
    display: none;
    height: 30px;
    width: 30px;
    color: var(--error-color);
    cursor: pointer;
}

.search.inactive {
    opacity: 0.2;
    pointer-events: none;
}

.people {
    margin-top: 1.5rem;
}

.person {
    display: none;
}

.person_box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--elem-border-color);
    padding: .75rem 0;
    cursor:pointer;
}

.search_no_result {
    display: none;
    text-align: center;
    padding: .5rem 0;
}

/* ********** overlay START ********** */
.overlay {
    position: absolute;
    bottom: 60px;
    height: calc(100vh - var(--header-height) - 60px);
    width: 100vw;
    max-width: 1000px;
    background-color: #ffffff;
    overflow: hidden;
    z-index:10;
}

.overlay_wrapper {
    font-size: 18px;
    line-height: 1.5rem;
    padding: 2rem;
    display: flex;
    flex-flow: column;
    align-items: center;
    overflow-y: auto;
    height: 100%;
}

.ol_person__wrapper {
    margin-bottom: 1rem;
    line-height: 1.75rem;
    display: flex;
    flex-flow: column;
    align-items: center;
}

.ol_person__name {
    font-weight: var(--font-bold);
    font-size: 20px;
}

.ol_status__wrapper {
    display: flex;
    flex-flow: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.ol_status__box {
    display: flex;
    gap: 1rem;
}

.ol_status__text {
    margin-top: 6px;
}

.ol_status__light {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    width: 40px;
    flex: 0 0 auto;
    border-radius: 100%;
    background-color: var(--elem-bg-color);
}

.ol_status__light.success,
.ol_feedback.success {
    background-color: var(--success-color);
}

.sync_wrapper.warning,
.ol_status__light.warning,
.ol_feedback.warning {
    background-color: var(--warning-color);
}

.ol_status__light.error,
.ol_feedback.error,
.sync_wrapper.no_internet {
    background-color: var(--error-color);
}

.ol_spinner {
    width: 20px;
    height: 20px;
    color: var(--elem-border-color);
}

.ol_feedback__wrapper {
    display: flex;
    flex-flow: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

.ol_feedback {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 110px;
    width: 110px;
    flex: 0 0 auto;
    border-radius: 100%;
    background-color: var(--elem-bg-color);
}

.ol_feedback .ol_spinner {
    width: 45px;
    height: 45px;
}

.ol_feedback.success .ol_spinner,
.ol_feedback.warning .ol_spinner,
.ol_feedback.error .ol_spinner {
    width: 70px;
    height: 70px;
    color: var(--text-color-light);
}

.ol_feedback_text {
    text-align: center;
    font-size: 16px;
    line-height: initial;
}

.ol_feedback_text.error,
p.error {
    color: var(--error-color);
}

.ol_feedback_text.warning {
    color: var(--warning-color);
}

/* *** Suche *** */
.ol_checkin {
    margin-bottom: 1rem;
}

#suche_checkin {
 display: none;
}

.ol_close.link {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-color);
    text-decoration: underline;
    font-size: 16px;
}

#overlay_suche .ol_person__wrapper {
    margin-bottom: 3rem;
}

/* ********** overlay END ********** */

/* ********** footer START ********** */
footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: var(--footer-height);
    border-top: 1px solid var(--elem-bg-color);
    background-color: #ffffff;
    z-index:20;
}

footer .wrapper {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

footer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    aspect-ratio: 1/1;
    text-decoration: none;
}

footer a svg {
    height: 30px;
    width: 30px;
    fill: var(--elem-border-color);
}

footer a.active svg {
    fill: var(--main-color);
}

footer a.logout svg {
    fill: var(--error-color);
}

#logout_overlay {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: 999;
    backdrop-filter: blur(3px);
    background: rgba(0, 0, 0, 0.25);
}

#logout_overlay_wrapper {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#logout_overlay_content {
    width: 100%;
    max-width: 320px;
    background-color: var(--bg-color);
    padding: 1rem;
}

.logout_headline {
    text-align: center;
    font-weight: var(--font-bold);
    margin-bottom: 1rem;
}

.logout_btn_wrapper {
    display: flex;
    justify-content: center;
    gap: .5rem;
}

.logout_btn_wrapper .btn,
.logout {
    cursor: pointer;
}

.logout_btn_cancle {
    background: var(--elem-border-color);
}

.logout_btn_logout {
    background: var(--error-color);
    text-decoration: none;
}

/* ********** footer END ********** */

.flex_center {
    display: flex;
    justify-content: center;
}

.margin-top {
    margin-top: 1rem;
}

.hidden {
    display: none;
}