.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1000;
}
.progress-bar {
    width: 100%;
    height: 5px;
    background-color: #ecf0f1;
    margin-top: 10px;
    border-radius: 5px;
    overflow: hidden;
}
.progress {
    width: 100%;
    height: 100%;
    background-color: #3498db;
    transition: width 2s linear;
}




* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Arial Narrow", Arial, sans-serif;
}

body {
    background-color: #F2F2F2;
}

a {
    text-decoration: none;
    color: blue;
}

.halfBox {
    max-width: 400px;
    margin: 0 auto;
}

#brandingLogo {
    height: calc(100% - 325px); /*100% minus the other elements*/
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

#spacedContainer {
    margin: 30px;
    width: calc(100vw - 60px);
    height: calc(100vh - 60px);
}

#greetingTitle {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

h1 {
    font-size: 20px;
    font-weight: 700;
}

#formContainer {
    font-size: 16px;
    font-weight: 500;
    height: 200px;
}

input[type="text"],
input[type="tel"]  {
    margin-top: 15px;
    width: 100%;
    border: 1px solid black;
    height: 40px;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 22px;
    text-align: center;
}

.checkboxWithText {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    margin-top: 15px;
}

input[type="checkbox"] {
    height: 15px;
    aspect-ratio: 1;
}

.checkboxDescribe {
    margin-left: 10px;
    font-size: 16px;
}

#message {
    margin-top: 15px;
    color: red;
    font-family: "Calibri", sans-serif;
}

#actionContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

#actionButton {
    background-color: #70AD47;
    color: white;
    font-size: 18px;
    width: 200px;
    height: 50px;
    border-radius: 10px;
    border: 1px solid green;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#goodImage {
    width: 50px;
    background-image: url(good.png);
    aspect-ratio: 1;
    background-size: contain;
    margin: 0 auto;
}

#qrContainer {
    background-image: url(qr.png);
    height: 150px;
    margin: 15px auto 0;
    aspect-ratio: 1;
    background-size: contain;
}

#loadingContainer {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}

#loading {
    background-image: url(loading.gif);
    height: 50px;
    aspect-ratio: 1;
    background-size: contain;
}

.centerText {
    text-align: center;
}

#errorBanner {
    display: flex;
    justify-content: center;
}

#errorBannerExplain {
    text-align: center;
}

#loadingMask {
    display: flex;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #000000bf;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
    justify-content: center;
    align-items: center;
}

#loadingMask.visible {
    opacity: 1;
    pointer-events: auto; /* Element ist interaktiv, wenn sichtbar */
}

@media screen and (orientation:landscape) {
    #spacedContainer {
        display: flex;
        flex-direction: row;
        align-content: center;
        justify-content: space-around;
        align-items: center;
        margin: 20px;
        width: calc(100vw - 40px);
        height: calc(100vh - 40px);
    }

    .halfBox {
        width: 40%;
    }

    #brandingLogo {
        height: 100%;
    }
}
