* {
    box-sizing: border-box;
}

:root {
    --navy: #07172c;
    --navy-light: #0b2340;
    --blue: #0f58c9;
    --text: #1b2440;
    --yellow: #f3b62d;
    --white: rgba(255, 255, 255, 0.97);
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #d9d9d9;
    color: #222;
}

button,
input {
    font: inherit;
}

#app {
    min-height: 100vh;
}

.start-screen,
.intro-screen,
.safety-screen,
.case-screen,
.case-mission-screen {
    width: 100%;
    min-height: 100vh;
    background:
            radial-gradient(circle at 20% 80%, rgba(255, 190, 50, 0.25), transparent 25%),
            radial-gradient(circle at 85% 25%, rgba(255, 190, 50, 0.18), transparent 22%),
            linear-gradient(135deg, #06172e, #0b2340 55%, #071326);
    position: relative;
    overflow: hidden;
}

.start-screen::before,
.intro-screen::before,
.safety-screen::before,
.case-screen::before,
.case-mission-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
            linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 45px 45px;
    opacity: 0.35;
    pointer-events: none;
}

/* ANMELDESEITE */

.start-screen {
    display: flex;
    justify-content: center;
    align-items: center;
}

.start-overlay {
    width: 100%;
    max-width: 1100px;
    min-height: 600px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    width: 470px;
    min-height: 360px;
    background-color: var(--white);
    border-radius: 24px;
    padding: 35px 45px;
    text-align: center;
    z-index: 2;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.profile-icon {
    width: 85px;
    height: 85px;
    border: 4px solid #1f5fbf;
    border-radius: 50%;
    margin: 0 auto 20px;
    color: #1f5fbf;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 42px;
}

.login-card h1 {
    margin: 0 0 18px;
    color: #10172f;
    font-size: 34px;
    line-height: 1.2;
    letter-spacing: 1px;
}

.login-card h1 span {
    color: var(--blue);
}

.login-card p {
    font-size: 20px;
    line-height: 1.5;
    color: var(--text);
    margin-bottom: 24px;
}

.login-card input {
    width: 100%;
    padding: 14px 18px;
    border: 3px solid #d3d7df;
    border-radius: 14px;
    font-size: 18px;
    margin-bottom: 20px;
    outline: none;
}

.login-card input:focus {
    border-color: #f5c133;
}

.error-message {
    min-height: 24px;
    color: #b00000 !important;
    font-size: 16px !important;
    margin: -8px 0 12px !important;
}

.start-button {
    width: 250px;
    border: none;
    background: linear-gradient(180deg, #ffd95a, #f3b62d);
    color: #16213b;
    font-size: 38px;
    font-weight: bold;
    padding: 12px 18px;
    border-radius: 14px;
    box-shadow: 0 5px 0 #c48b1f;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.start-button:hover {
    background: linear-gradient(180deg, #ffe178, #f7bf3a);
    transform: translateY(-2px);
}

.start-detective-img {
    position: absolute;
    right: -100px;
    bottom: -200px;
    width: 630px;
    z-index: 1;
    filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.4));
}

/* EINLEITUNGSSEITE */

.intro-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.intro-layout-new {
    width: 100%;
    max-width: 1250px;
    min-height: 650px;
    display: grid;
    grid-template-columns: 300px 560px 300px;
    gap: 25px;
    align-items: end;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.intro-person-box {
    height: 650px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.intro-person {
    max-height: 900px;
    max-width: 180%;
    object-fit: contain;
    filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.4));
}

.intro-chief,
.intro-rumour {
    transform: translate(10px, 80px);
}

.intro-card-new {
    width: 560px;
    background-color: var(--white);
    border-radius: 24px;
    padding: 38px 48px;
    text-align: center;
    margin-bottom: 55px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.intro-card-new h1 {
    margin: 0 0 10px;
    color: var(--blue);
    font-size: 30px;
    letter-spacing: 1px;
}

.intro-card-new h2 {
    margin: 0 0 22px;
    color: #10172f;
    font-size: 31px;
    line-height: 1.2;
    letter-spacing: 1px;
}

.intro-card-new p {
    font-size: 19px;
    line-height: 1.5;
    color: var(--text);
    margin-bottom: 18px;
}

/* SICHERHEITSSEITE */

.safety-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 35px;
    overflow-y: auto;
}

.safety-layout {
    width: min(1080px, 100%);
    position: relative;
    z-index: 1;
}

.safety-card {
    background: var(--white);
    border-radius: 24px;
    padding: 34px 42px;
    text-align: center;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.safety-card > h1 {
    margin: 0 0 15px;
    color: var(--blue);
    font-size: 31px;
}

.safety-intro {
    max-width: 850px;
    margin: 10px auto;
    color: var(--text);
    font-size: 17px;
    line-height: 1.45;
}

.tip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin: 25px 0;
    text-align: left;
}

.tip-box {
    border: 2px solid #dbe4f0;
    border-radius: 18px;
    padding: 20px;
    background: #f7f9fc;
    color: var(--text);
    line-height: 1.42;
}

.tip-box h2,
.tip-box h3 {
    margin-top: 0;
}

.tip-box h2 {
    color: var(--blue);
    margin-bottom: 8px;
}

.tip-box h3 {
    font-size: 17px;
}

.detective-rule {
    background: #fff5cf;
    border-radius: 12px;
    padding: 14px;
}

.safety-button {
    width: auto;
    min-width: 280px;
    font-size: 24px;
}

/* FALL 1 */

.case-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 34px 34px 34px 205px;
    overflow-y: auto;
}

.case-detective-img {
    position: fixed;
    z-index: 2;
    left: -115px;
    bottom: -95px;
    width: 660px;
    max-height: 92vh;
    object-fit: contain;
    filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.45));
    pointer-events: none;
    transform: scaleX(-1);
}

.case-card {
    width: min(1120px, 100%);
    position: relative;
    z-index: 1;
    background: var(--white);
    border-radius: 24px;
    padding: 34px 42px 30px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.case-title {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0 0 10px;
    color: var(--blue);
    font-size: 34px;
    line-height: 1.1;
}

.folder-icon {
    display: inline-flex;
    font-size: 36px;
    line-height: 1;
}

.case-lead {
    margin: 0 0 22px;
    color: var(--text);
    font-size: 17px;
    line-height: 1.48;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 22px;
}

.post-card {
    min-height: 160px;
    padding: 20px 22px;
    border: 2px solid #d7e2ef;
    border-radius: 17px;
    background: #f8fbff;
    box-shadow: 0 5px 14px rgba(16, 42, 76, 0.09);
}

.post-card h2,
.info-card h2 {
    margin: 0 0 12px;
    color: #13233d;
}

.post-card h2 {
    padding-bottom: 9px;
    border-bottom: 2px solid #bfd2ea;
    font-size: 22px;
}

.post-card p,
.info-card p {
    margin: 0;
    color: var(--text);
    font-size: 16px;
    line-height: 1.5;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.info-card {
    min-height: 205px;
    padding: 20px;
    border-radius: 17px;
    box-shadow: 0 5px 14px rgba(16, 42, 76, 0.08);
}

.info-card h2 {
    font-size: 19px;
    line-height: 1.25;
}

.info-yellow {
    background: #fff3c9;
    border: 2px solid #f1d778;
}

.info-green {
    background: #ddf4df;
    border: 2px solid #a8d9ac;
}

.info-blue {
    background: #dfefff;
    border: 2px solid #abcfe9;
}

.case-actions {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.case-next-button {
    width: auto;
    min-width: 210px;
    font-size: 27px;
    padding-inline: 26px;
}

.case-mission-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.mission-placeholder {
    position: relative;
    z-index: 1;
    width: min(600px, 100%);
    padding: 45px;
    border-radius: 24px;
    background: var(--white);
    text-align: center;
    color: var(--text);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.mission-placeholder h1 {
    color: var(--blue);
}

@media (max-width: 1050px) {
    .intro-layout-new {
        grid-template-columns: 1fr;
    }

    .intro-person-box {
        display: none;
    }

    .intro-card-new {
        margin: 0 auto;
    }

    .case-screen {
        padding: 26px;
    }

    .case-detective-img {
        display: none;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-card {
        min-height: auto;
    }
}

@media (max-width: 760px) {
    .start-screen,
    .intro-screen,
    .safety-screen,
    .case-screen {
        padding: 20px;
        align-items: flex-start;
    }

    .start-overlay {
        min-height: calc(100vh - 40px);
    }

    .login-card,
    .intro-card-new {
        width: 100%;
        padding: 30px 24px;
    }

    .start-detective-img,
    .case-detective-img {
        display: none;
    }

    .intro-card-new {
        margin: auto;
    }

    .tip-grid,
    .post-grid {
        grid-template-columns: 1fr;
    }

    .safety-card,
    .case-card {
        padding: 27px 22px;
    }

    .case-title {
        font-size: 30px;
    }
}

.case-mission-screen {
    width: 100%;
    min-height: 100vh;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    position: relative;

    background:
            radial-gradient(
                    circle at 20% 80%,
                    rgba(255, 190, 50, 0.25),
                    transparent 25%
            ),
            radial-gradient(
                    circle at 85% 25%,
                    rgba(255, 190, 50, 0.18),
                    transparent 22%
            ),
            linear-gradient(135deg, #06172e, #0b2340 55%, #071326);
}

.case-mission-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
            linear-gradient(
                    rgba(255, 255, 255, 0.04) 1px,
                    transparent 1px
            ),
            linear-gradient(
                    90deg,
                    rgba(255, 255, 255, 0.04) 1px,
                    transparent 1px
            );
    background-size: 45px 45px;
    opacity: 0.35;
}

.quiz-card {
    width: min(930px, 100%);
    padding: 38px 44px;
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.97);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.quiz-card h1 {
    margin: 0 0 14px;
    color: #0f58c9;
    font-size: 34px;
}

.quiz-question {
    margin: 0 0 25px;
    color: #1b2440;
    font-size: 18px;
    line-height: 1.55;
}

.quiz-feedback {
    display: none;
    margin-bottom: 22px;
    padding: 18px 20px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.45;
}

.quiz-feedback.is-visible {
    display: block;
}

.quiz-feedback-correct {
    color: #185622;
    background-color: #ddf4df;
    border: 2px solid #93ce99;
}

.quiz-feedback-wrong {
    color: #8b2020;
    background-color: #ffe0e0;
    border: 2px solid #e7a2a2;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.quiz-option {
    min-height: 150px;
    padding: 25px;
    border-radius: 18px;
    color: #17243b;
    font-size: 21px;
    font-weight: bold;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(16, 42, 76, 0.09);
    transition: 0.18s;
}

.quiz-option:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 9px 18px rgba(16, 42, 76, 0.16);
}

.quiz-option-a {
    background-color: #dfefff;
    border: 3px solid #abcfe9;
}

.quiz-option-b {
    background-color: #ffe2e2;
    border: 3px solid #e8b0b0;
}

.quiz-option:disabled {
    cursor: default;
}

.quiz-option.is-selected-correct,
.quiz-option.is-correct-answer {
    background-color: #ddf4df;
    border-color: #65b86d;
}

.quiz-option.is-selected-wrong {
    background-color: #ffd0d0;
    border-color: #d65b5b;
}

.quiz-actions {
    min-height: 67px;
    margin-top: 24px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.mission-placeholder {
    width: min(600px, 100%);
    padding: 45px;
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.97);
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.mission-placeholder h1 {
    color: #0f58c9;
}

@media (max-width: 760px) {
    .case-mission-screen {
        padding: 20px;
        align-items: flex-start;
    }

    .quiz-card {
        padding: 28px 22px;
    }

    .quiz-options {
        grid-template-columns: 1fr;
    }

    .quiz-option {
        min-height: 115px;
        font-size: 18px;
    }
}

.certificate-screen {
    padding: 30px;
}

.certificate-wrapper {
    position: relative;
    z-index: 1;
    width: min(900px, 100%);
}

.certificate-img {
    width: 100%;
    display: block;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.certificate-name {
    position: absolute;
    left: 50%;
    top: 52%;
    transform: translate(-50%, -50%);
    width: 80%;
    text-align: center;

    color: #1b2440;
    font-size: clamp(28px, 5vw, 58px);
    font-weight: bold;
    font-family: Arial, sans-serif;
}