:root {
    --background-color: #c90000;
    --primary-color: #00295b;
    --bs-body-font-size: clamp(0.8rem, 1.2vw + 0.5rem, 1.2rem);
    --small-clamped-font-size: clamp(0.5rem, 1.3vw + 0.2rem, 1rem);
    --orange-color: #ce7716;
    --gray-text-color: #333;
    --popup-text-color: #00295B;
    --popup-input-color: #5B5B5B;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: Roboto, Helvetica, sans-serif;
    min-height: 100%;
    color: var(--primary-color);
}

h1 {
    margin-top: 0;
}

h2.cursive {
    font-style: italic;
}

h2.bold {
    font-weight: bold;
}

h4 {
    font-size: 16px;
    font-weight: bold;
}

a.undecorated-link {
    text-decoration: none;
    color: inherit;
}

.mr-1 {
    margin-right: 0.25rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

.mr-4 {
    margin-right: 1rem;
}

.ml-1 {
    margin-left: 0.25rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.ml-3 {
    margin-left: 0.75rem;
}

.ml-4 {
    margin-left: 1rem;
}

.pl-0 {
    padding-left: 0;
}

.min-h-0 {
    min-height: 0 !important;
}

.page-container {
    width: 80%;
    max-height: 90vh;
    margin: 0 auto;
    text-align: center;
    align-content: center;
    max-width: 1200px;
}

.page-container-inner {
    background-color: white;
    border-radius: 1.2rem;
    padding: 1.8rem;
    min-height: 80%;
    align-content: center;
}

.image-container-max {
    display: flex;
    flex-direction: column;
    height: 90vh;
}

.image-container-max img {
    object-fit: contain;
    flex-grow: 1;
    max-height: 90vh;
}

.image-container {
    display: flex;
    height: 10vh;
}

.image-container img {
    object-fit: contain;
    flex-grow: 1;
    max-width: 100%;
}

.background-colored {
    background-color: var(--background-color);
}

.button-container {
    text-align: center;
}

.row-reverse {
    flex-direction: row-reverse;
}

.open-bottom {
    max-height: none;
}

.open-bottom h1 {
    margin-top: 1.2rem;
}

.flex {
    display: flex;
    flex-direction: column;
}

.flex.active {
    display: flex;
    flex-direction: column;
}

.flex-img {
    flex-grow: 1;
    align-content: center;
    text-align: center;
}

.flex-img img {
    max-width: 100%;
    width: auto;
}

.flex-img-sm {
    flex-grow: 1;
}

.flex-element {
    flex-grow: 1;
}

.flex-element-center {
    flex-grow: 1;
    align-content: center;
}

.flex-element-1000 {
    flex-grow: 1000;
}

.align-end {
    align-content: end;
}

.nav-buttons {
    display: block;
    text-align: center;
}

.logo-container {
    text-align: left;
    margin-bottom: 0.5125rem;
}

.content-padding {
    padding: 0 1.8rem;
}

.page:not(.active) {
    display: none !important;
}

.page {
    display: none;
    height: 100%;
    width: 100%;
    position: relative;
    padding: 1.2rem;
}

.active {
    display: block;
}

.no-padding {
    padding: 0 !important;
}

.height-5 {
    height: 5vh;
}

.height-90 {
    height: 90vh;
}

.margin-bottom-20 {
    margin-bottom: 1.2rem;
}

.margin-top-20 {
    margin-top: 1.2rem;
}

.max-height-5 {
    max-height: 5vh;
}

.max-height-80 {
    max-height: 80vh;
}

.max-height-90 {
    max-height: 90vh;
}

.max-height-100 {
    max-height: 100%;
}

.max-w-100 {
    max-width: 100%;
}

.text-align-center {
    text-align: center !important;
}

.text-align-start {
    text-align: start !important;
}

.text-align-end {
    text-align: end !important;
}

.mobile {
    display: none;
}

.desktop {
    display: block;
}

.no-scroll {
    overflow: hidden;
}

.max-width-800 {
    max-width: 800px;
}

.margin-center {
    margin: 0 auto;
}

.max-width-1200 {
    max-width: 1200px;
}

.bg-white {
    background-color: white;
}

.white-text {
    color: white !important;
}

.btn:hover {
    color: white !important;
}

div.background-colored {
    background-color: var(--background-color);
}

@media screen and (max-width: 768px) {
    .mobile {
        display: block;
    }

    .desktop {
        display: none;
    }
}

/* Teilnahmebedingungen */
#legalPage h1 {
    hyphens: auto;
    margin-bottom: 1.2rem;
    text-align: center;
}

#legalPage h2 {
    hyphens: auto;
    margin-bottom: 1.2rem;
    text-align: center;
    font-weight: bold;
}

#legalPage p {
    text-align: left;
    margin-bottom: 1.2rem;
}

#legalText {
    max-width: 800px;
    margin: 0 auto;
}

#legalText p {
    text-align: left;
}

/* Buttons allgemein */
button {
    font-size: 1rem;
    padding: 0.5125rem 0;
    cursor: pointer;
    border-radius: 0.5125rem;
    border: none;
    box-shadow: none;
    font-weight: bold;
    box-shadow: 0.5125rem 0.5125rem 0.33rem 0 rgba(0, 0, 0, 0.1);
    width: clamp(140px, 100%, 250px);
}

button.primary {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: white;
    margin-bottom: 0.66rem;
}

button.primary:disabled {
    background: none;
    background-color: #ccc;
    color: white;
    cursor: not-allowed;
    border: 2px solid #ccc;
}

button.primary:hover:not(:disabled) {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

button.secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-bottom: 12px;
}

@media (max-width: 380px) {
    button {
        padding: 0.5125rem 1.8rem;
    }
}

/* Floating-Cursor auf Button */
.button-cursor-container img {
    max-height: 2.2rem;
    width: auto;
    position: absolute;
    translate: -100% 80%;
}

/* Footer */
#templateContainer {
    max-width: 100vw;
}

.misc-container {
    font-size: 0.9rem;
    color: white;
    text-align: end;
    margin-top: 1.2rem;
}

.misc-container a {
    color: white;
    text-decoration: none;
    padding: 0 0.5125rem;
    font-weight: bold;
}

.misc-container a:last-of-type {
    padding-right: 0;
}

.misc-container p {
    font-size: var(--bs-font-size) !important;
    text-align: start;
}

@media (max-width: 1200px) {
    .misc-container p {
        text-align: end;
    }
}

/* Für Landscape-Modus */
@media screen and (orientation: landscape) {
    :root {
        --small-clamped-font-size: clamp(0.6rem, 0.865vw + 0.2rem, 1rem);
    }
}

/* Landingpage */
.landing-content {
    text-align: center;
    color: white;
}

.landing-content h1 {
    font-weight: bold;
    padding-top: 2.33rem;
    color: var(--primary-color);
}

.landing-content .button-container {
    margin-top: 1.2rem;
    margin-bottom: 2.33rem;
}

.landing-content p {
    color: var(--primary-color);
    font-size: 1.33rem;
    margin-top: 1.2rem;
}

#landing .langing-prices-image {
    padding: 0 1.2rem;
}

#landing .langing-prices-image img {
    max-width: 80%;
}

/* Gewinnübersicht */
#prizes p {
    font-size: 1rem;
}

#prizesSummary {
    text-align: left;
}

.prize-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 1.2rem;
    margin-bottom: 3.6rem;
}

.prize-container {
    text-align: center;
    padding: 1.2rem;
}

p.prizes-subtitle {
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
}

span.prizes-emphasized {
    font-weight: bold;
    color: var(--primary-color);
}

#prizesContainer a {
    color: var(--primary-color);
    font-weight: bold;
}

.prize-text {
    text-align: left;
}

.prize-text p {
    font-weight: bold;
    margin: 0.33rem 0;
}

.prize-container span.available {
    color: var(--primary-color);
}

.prize-container span.not-available {
    color: #c76617;
}

.prize-container.not-available .prize-image-container {
    border-radius: 10px;
    border: 2px solid rgb(136, 0, 0);
    cursor: default;
}

.prize-container.available .prize-image-container {
    border-radius: 10px;
    border: 2px solid var(--primary-color);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.prize-container.available .prize-image-container:hover {
    box-shadow: 0.5125rem 0.5125rem 0.33rem 0 rgba(0, 0, 0, 0.1);
    border: 2px solid #1ed3d3;
    transition: all 0.2s ease-in-out;
}

.prize-image-container img {
    border-radius: 10px;
}

/* Quizseite */
#quiz .question-container {
    margin-bottom: 1.2rem;
}

.answers-container {
    text-align: left;
}

/* Default Radio-Button entfernen / ausblenden */
input[type="radio"].radioButton {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: none;
}

#questionIndex {
    text-align: end;
    font-size: 0.66rem;
    color: #666;
}

#questionHeader {
    margin-top: 2.33rem;
    font-weight: bold;
    font-size: 1.33rem;
}

#questionText {
    font-size: 1.25rem;
}

.radioLabel {
    display: block;
    align-items: center;
    margin-bottom: 0.5125rem;
    cursor: pointer;
    margin: 1.25rem;
    font-size: 1.25rem;
    padding: 0.5125rem 0;
    border-radius: 0.5125rem;
    border: 1px solid var(--primary-color);
    font-weight: bold;
    width: 100%;
    text-align: center;
    box-shadow: 0.5125rem 0.5125rem 0.33rem 0 rgba(0, 0, 0, 0.1);
}

.radioLabel.checked {
    background: var(--primary-color);
    color: white;
}

.questionDiv {
    display: flex;
    justify-content: center;
    align-items: center;
}

.question-navigation-container {
    margin-top: 1.2rem;
}

.hint-notice-article-link {
    padding-top: 1.66rem;
}

.hint-notice-article-link a {
    color: var(--primary-color);
}

/* Formularseite */
#formPage h1 {
    text-align: center;
    margin-bottom: 1.2rem;
}

#formPage form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    text-align: left;
}

#formPage label {
    margin-top: 0.5125rem;
}

#formPage input[type="text"],
#formPage input[type="email"] {
    font-size: 1rem;
    padding: 1.2rem 0;
    width: 90%;
}

#formPage input[type="checkbox"] {
    margin-right: 0.33rem;
}

#formPage .form-buttons {
    margin-top: 1.2rem;
    display: flex;
    justify-content: space-between;
}

#formPage input {
    border: none;
    background-color: #EEE;
}

#formPage input::placeholder {
    color: #666;
}

#formPage span.required-info {
    padding-top: 0.5125rem;
    font-size: 0.8rem;
    color: #666;
}

#formPage h2 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 1.2rem;
}

#userForm a {
    font-weight: bold;
    color: var(--primary-color);
}

#userForm .flex img {
    flex-grow: 1;
    object-fit: contain;
}

.input-container {
    border-radius: 10rem;
    background-color: #EEE;
}

.input-container .input-icon {
    height: auto;
    width: 1.33rem;
    border-radius: 0;
}

.flex-img-sm img.input-icon {
    width: 1rem;
    margin-top: 0.5125rem;
}

.input-container input:focus-visible {
    outline: none;
}

#formCardInfo {
    cursor: pointer;
}

#formPage hr {
    margin-bottom: 1.2rem;
}

#formPage .legal-info {
    font-size: 0.8rem;
    color: var(--primary-color);
}

/* Preis-Detail-Seite */
#prizeName {
    font-weight: bold;
    margin-bottom: 1.2rem;
}

.prize-text-container p {
    text-align: left;
}

/* Custom Popup */
.custom-popup {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    text-align: center;
}

.custom-popup-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.5;
}

.custom-popup.invisible {
    display: none;
}

.custom-popup-content {
    background-color: white;
    margin: 10% auto;
    padding: 1.2rem;
    width: 80%;
    border-radius: 1.2rem;
    max-width: 600px;
    position: relative;
}

.custom-popup-header {
    margin-bottom: 1.2rem;
    text-align: center;
}

.custom-popup-body {
    margin-bottom: 1.2rem;
    max-width: 100%;
}

.custom-popup-footer {
    display: block;
}

div.partner-info {
    padding: 1rem;
    background-color: #c4d2ed;
}

a.small-link {
    color: var(--orange-color);
    text-decoration: none;
}

a.small-link:hover {
    color: var(--primary-color);
}

a.big-link {
    background-color: #DDD;
    border-radius: 4px;
    padding: 1rem;
    text-decoration: none;
    color: var(--primary-color);
}

a.big-link:hover {
    color: var(--orange-color);
}

div.custom-popup-body p.date-notice {
    font-size: 1.5rem;
    color: var(--gray-text-color);
    margin: 0.5rem;
    text-align: center;
}

.custom-popup-body img {
    max-width: 100%;
}

.custom-popup-body p {
    text-align: left;
    color: var(--popup-text-color);
    font-size: 14px;
}

.custom-popup-body input {
    border: none;
    border-bottom: 1px solid #666;
    max-width: 100%;
    text-align: left;
    width: 100%;
    color: var(--popup-input-color);
}

.custom-popup-body h2 {
    color: #00295B;
}

p.date-notice {
    color: var(--popup-text-color);
}

div#CustomLoaderPopup {
    z-index: 9999;
}

.custom-popup-content:focus,
.custom-popup-content:focus-visible {
    outline: none;
}

/* Für Adventskalender-Seite */
div#calendarContainer {
    width: 100%;
}

div#calendarContainer img {
    width: 100%;
    height: auto;
}

div.slot {
    position: absolute;
    transition: all 0.2s ease-in-out;
    transform: scale(1);
}

div.slot:hover {
    transform: scale(1.25);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

div.slot>img {
    max-width: 100%;
}

div.reminder-service-box {
    position: absolute;
    bottom: 5%;
    right: 5%;
    background-color: white;
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.2s ease-in-out;
    height: fit-content;
}

div.reminder-service-box:hover {
    box-shadow: 0 0 0.5rem 0 rgb(0, 161, 210);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

div.reminder-service-box h2 {
    font-size: var(--small-clamped-font-size);
}

div.reminder-service-box p {
    font-size: var(--small-clamped-font-size);
    font-weight: bold;
    line-height: 1;
}

div.reminder-service-box img {
    width: 3.75rem;
}

div.reminder-service-box div.reminder-cursor-container {
    position: absolute;
    bottom: -15%;
    right: -5%;
}

div.reminder-service-box div.reminder-cursor-container img {
    width: 1.75rem !important;
}

div.top-nav img {
    height: 4rem;
}

img#menuIcon:hover {
    cursor: pointer;
}

div#calendarContainer img.calendar-logo {
    cursor: default;
    position: absolute;
    width: auto;
    height: 10%;
}

div#calendarContainer img.calendar-logo:hover {
    cursor: pointer;
}

div.info-icon-container {
    display: block;
    margin-top: 10px;
    text-align: end;
}

img.info-icon {
    max-width: 1.5rem;
    width: auto;
    display: block;
}

img.info-icon:hover {
    cursor: pointer;
}

/* Top-Navbar */
div#menuOptionsContainer {
    position: absolute;
    z-index: 9000;
}

a.top-nav-link {
    background-color: white;
    display: block;
    text-decoration: none;
    color: black;
    padding: 1rem;
}

a.top-nav-link:hover {
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
}

/* Legal pages background */
div.background-image {
    position: fixed;
    inset: 0;
    z-index: -1;
    min-height: 100dvh;
    min-height: 100vh;
    background-image: url('../assets/pages/bg_legal_texts_resized.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Für Screens kleiner als 768px Breite, Phones hauptsächlich */
@media (max-width: 767px) {
    .landing-content {
        padding-top: 0;
    }

    .page-container {
        width: 90%;
        height: auto;
        max-height: none;
    }

    .image-container-max {
        height: fit-content;
        margin-bottom: 1.2rem;
    }

    .height-90 {
        height: auto;
    }

    div.reminder-service-box div.reminder-cursor-container {
        bottom: -30%;
        right: -10%;
    }


    div.reminder-service-box {
        padding: 0.35rem;
    }
}

/* Für Screens kleiner als 992px Breite, Phones hauptsächlich */
@media (max-width: 991px) {
    #questionHeader {
        margin-top: 0;
    }

    .page-container {
        max-height: none;
    }

    #formPage h2 {
        margin-top: 1.2rem;
    }

    .content-padding {
        padding: 0;
    }

    div#calendarContainer img.calendar-logo {
        height: 6.5%
    }

    div.reminder-service-box div.reminder-cursor-container {
        bottom: -15%;
        right: -5%;
    }

    div.reminder-service-box {
        left: 65%;
    }
}

/* Für Screens kleiner als 1200px Breite, Tablets hauptsächlich */
@media (max-width: 1199px) {
    .landing-content {
        padding-top: 4%;
    }
}

/* Für Landscape-Orientierung */
@media screen and (orientation: landscape) {
    div.slot {
        width: 6.75%;
    }

    div.reminder-service-box div.reminder-cursor-container img {
        width: 2.75rem !important;
    }

    div#calendarContainer img.calendar-logo {
        height: 8%;
    }
}