/* =========================================================
   LINGUA DEUTSCH CONNECT
   GERMAN LEVEL TEST
   DARK HOMEPAGE THEME
========================================================= */

:root {
    --black: #080b14;
    --black-soft: #101522;
    --black-card: #111725;
    --black-card-2: #0d111c;

    --gold: #d4a900;
    --gold-light: #ffce00;

    --olive: #7c8214;

    --red: #dd0000;
    --red-dark: #c8102e;

    --blue: #1255d8;
    --blue-light: #7fa8ff;

    --white: #ffffff;

    /* Homepage light / wheat tone */
    --wheat: #f7f8fa;
    --wheat-soft: #ffffff;

    --text: rgba(255, 255, 255, 0.88);
    --text-soft: rgba(255, 255, 255, 0.64);
    --text-muted: rgba(255, 255, 255, 0.42);

    --border: rgba(255, 255, 255, 0.08);
}


/* =========================================================
   GLOBAL
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    overflow-x: hidden;

    font-family: "DM Sans", Arial, sans-serif;

    background: var(--black);

    color: var(--text);

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
a {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================================================
   NAVBAR
========================================================= */

.test-navbar {
    width: 100%;
    height: 78px;

    /* EXACT HOMEPAGE LIGHT BACKGROUND */
    background: #f7f8fa;

    border-bottom: 1px solid rgba(16, 16, 16, 0.08);

    position: sticky;
    top: 0;

    z-index: 100;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow:
        0 4px 20px rgba(16, 16, 16, 0.05);
}

.navbar-inner {
    width: min(1180px, calc(100% - 48px));
    height: 100%;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.test-logo {
    display: flex;
    align-items: center;
}

.test-logo img {
    width: 155px;
    height: auto;

    display: block;

    border-radius: 10px;
}

.back-link {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 9px 16px;

    border-radius: 999px;

    background: #ffffff;

    color: #101010;

    border: 1px solid rgba(16, 16, 16, 0.10);

    font-size: 14px;
    font-weight: 700;

    box-shadow:
        0 5px 16px rgba(16, 16, 16, 0.06);

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.back-link:hover {
    transform: translateX(-4px);

    background: #101010;

    border-color: #101010;

    color: #ffce00;

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.15);
}


/* =========================================================
   INTRO
========================================================= */

.test-intro {
    min-height: calc(100vh - 78px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 100px 20px;

    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(18, 85, 216, 0.18),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 25%,
            rgba(212, 169, 0, 0.14),
            transparent 30%
        ),
        radial-gradient(
            circle at 70% 85%,
            rgba(221, 0, 0, 0.08),
            transparent 25%
        ),
        #080b14;
}

.test-intro::before {
    content: "";

    position: absolute;

    width: 550px;
    height: 550px;

    border: 1px solid rgba(212, 169, 0, 0.15);

    border-radius: 50%;

    right: -240px;
    top: -220px;
}

.test-intro::after {
    content: "";

    position: absolute;

    width: 340px;
    height: 340px;

    border: 1px solid rgba(18, 85, 216, 0.12);

    border-radius: 50%;

    left: -170px;
    bottom: -150px;
}

.intro-content {
    width: min(850px, 100%);

    text-align: center;

    position: relative;

    z-index: 2;
}


/* =========================================================
   INTRO LABEL
========================================================= */

.intro-label {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 24px;

    padding: 9px 14px;

    border-radius: 999px;

    background: rgba(212, 169, 0, 0.1);

    border: 1px solid rgba(212, 169, 0, 0.2);

    color: var(--gold-light);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 0.16em;

    text-transform: uppercase;
}

.intro-label::before {
    content: "";

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--gold-light);

    box-shadow:
        0 0 12px rgba(255, 206, 0, 0.7);
}


/* =========================================================
   INTRO TITLE
========================================================= */

.intro-content h1 {
    font-family: "Space Grotesk", sans-serif;

    font-size: clamp(48px, 8vw, 88px);

    line-height: 0.98;

    letter-spacing: -0.055em;

    margin-bottom: 28px;

    color: #ffffff;
}

.intro-content h1 span {
    display: block;

    background:
        linear-gradient(
            90deg,
            var(--gold),
            var(--gold-light)
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
}


/* =========================================================
   INTRO DESCRIPTION
========================================================= */

.intro-description {
    max-width: 650px;

    margin: 0 auto;

    color: var(--text-soft);

    font-size: 18px;

    line-height: 1.7;
}


/* =========================================================
   FLAG ACCENT
========================================================= */

.test-intro .intro-content::after {
    content: "";

    display: block;

    width: 90px;
    height: 5px;

    margin: 30px auto 0;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            #101010 0 33.33%,
            #dd0000 33.33% 66.66%,
            #ffce00 66.66% 100%
        );
}


/* =========================================================
   TEST INFO
========================================================= */

.test-info {
    display: flex;

    justify-content: center;

    gap: 14px;

    margin: 38px 0 25px;
}

.info-card {
    min-width: 145px;

    padding: 20px 24px;

    background:
        linear-gradient(
            145deg,
            #111725,
            #0d111c
        );

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 18px;

    display: flex;

    flex-direction: column;

    gap: 5px;

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.info-card:hover {
    transform: translateY(-5px);

    border-color: rgba(212, 175, 55, 0.45);

    box-shadow:
        0 22px 50px rgba(0, 0, 0, 0.35);
}

.info-card strong {
    font-family: "Space Grotesk", sans-serif;

    font-size: 22px;

    color: var(--gold-light);
}

.info-card span {
    color: var(--text-muted);

    font-size: 13px;
}


/* =========================================================
   NOTE
========================================================= */

.test-note {
    max-width: 650px;

    margin: 0 auto 32px;

    display: flex;

    align-items: flex-start;

    justify-content: center;

    gap: 9px;

    color: var(--text-muted);

    font-size: 13px;

    line-height: 1.6;
}

.test-note span {
    color: var(--gold-light);

    font-weight: 800;
}


/* =========================================================
   BUTTONS
========================================================= */

.primary-btn,
.secondary-btn {
    border: none;

    border-radius: 999px;

    min-height: 52px;

    padding: 0 24px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    font-weight: 800;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.primary-btn {
    background: var(--blue);

    color: #ffffff;

    box-shadow:
        0 14px 30px rgba(18, 85, 216, 0.3);
}

.primary-btn:hover {
    transform: translateY(-3px);

    background: #2165ed;

    box-shadow:
        0 18px 40px rgba(18, 85, 216, 0.4);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.04);

    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.12);
}

.secondary-btn:hover {
    transform: translateY(-2px);

    background: var(--gold);

    border-color: var(--gold);

    color: #080b14;
}


/* =========================================================
   QUIZ SECTION
========================================================= */

.quiz-section {
    min-height: calc(100vh - 78px);

    padding: 90px 20px;

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(18, 85, 216, 0.12),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgba(212, 169, 0, 0.08),
            transparent 30%
        ),
        #080b14;
}

.quiz-container {
    width: min(850px, 100%);

    margin: auto;
}


/* =========================================================
   QUIZ TOP
========================================================= */

.quiz-top {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}

.quiz-label {
    display: block;

    margin-bottom: 10px;

    color: var(--gold-light);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.16em;
}

.quiz-top h2 {
    font-family: "Space Grotesk", sans-serif;

    font-size: 30px;

    letter-spacing: -0.03em;

    color: #ffffff;
}

.level-badge {
    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--gold);

    color: #080b14;

    border-radius: 50%;

    font-family: "Space Grotesk", sans-serif;

    font-weight: 800;

    box-shadow:
        0 12px 35px rgba(212, 169, 0, 0.25);
}


/* =========================================================
   PROGRESS
========================================================= */

.progress-wrapper {
    margin-bottom: 28px;
}

.progress-bar {
    width: 100%;

    height: 8px;

    background: rgba(255, 255, 255, 0.08);

    border-radius: 100px;

    overflow: hidden;
}

.progress-fill {
    width: 5%;

    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--blue),
            var(--gold-light)
        );

    border-radius: inherit;

    transition: width 0.3s ease;
}


/* =========================================================
   QUESTION CARD
========================================================= */

.question-card {
    position: relative;

    background:
        linear-gradient(
            145deg,
            #111725,
            #0d111c
        );

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 26px;

    padding: 45px;

    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.3);

    overflow: hidden;
}

.question-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            #101010 0 33.33%,
            #dd0000 33.33% 66.66%,
            #ffce00 66.66% 100%
        );
}

.question-number {
    color: var(--gold-light);

    font-family: "Space Grotesk", sans-serif;

    font-size: 14px;

    font-weight: 800;

    margin-bottom: 18px;
}

.question-card h3 {
    font-family: "Space Grotesk", sans-serif;

    font-size: clamp(25px, 4vw, 36px);

    line-height: 1.3;

    letter-spacing: -0.035em;

    margin-bottom: 35px;

    color: #ffffff;
}


/* =========================================================
   ANSWERS
========================================================= */

.answers {
    display: grid;

    gap: 13px;
}

.answer-btn {
    width: 100%;

    min-height: 62px;

    padding: 15px 18px;

    background: rgba(255, 255, 255, 0.04);

    border: 1px solid rgba(255, 255, 255, 0.09);

    border-radius: 15px;

    display: flex;

    align-items: center;

    gap: 15px;

    text-align: left;

    color: rgba(255, 255, 255, 0.86);

    font-weight: 600;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.answer-btn:hover {
    background: rgba(212, 169, 0, 0.1);

    border-color: rgba(212, 169, 0, 0.55);

    transform: translateX(4px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.2);
}

.answer-letter {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 9px;

    background: rgba(255, 255, 255, 0.06);

    border: 1px solid rgba(255, 255, 255, 0.12);

    color: var(--gold-light);

    font-size: 13px;

    font-weight: 700;
}

.answer-btn.selected {
    background: rgba(18, 85, 216, 0.14);

    border-color: var(--blue);

    color: #ffffff;

    box-shadow:
        0 10px 25px rgba(18, 85, 216, 0.18);
}

.answer-btn.selected .answer-letter {
    background: var(--blue);

    border-color: var(--blue);

    color: #ffffff;
}


/* =========================================================
   QUIZ CONTROLS
========================================================= */

.quiz-controls {
    display: flex;

    justify-content: space-between;

    gap: 15px;

    margin-top: 24px;
}


/* =========================================================
   RESULT SECTION
========================================================= */

.result-section {
    min-height: calc(100vh - 78px);

    padding: 100px 20px;

    display: flex;

    justify-content: center;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(18, 85, 216, 0.15),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 75%,
            rgba(212, 169, 0, 0.12),
            transparent 30%
        ),
        #080b14;
}

.result-container {
    width: min(800px, 100%);

    text-align: center;
}

.result-label {
    margin-bottom: 20px;

    color: var(--gold-light);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.16em;
}

.result-container h2 {
    font-family: "Space Grotesk", sans-serif;

    font-size: clamp(32px, 5vw, 55px);

    letter-spacing: -0.045em;

    line-height: 1.05;

    color: #ffffff;
}

.result-level {
    margin: 25px auto 18px;

    font-family: "Space Grotesk", sans-serif;

    font-size: clamp(80px, 15vw, 150px);

    font-weight: 700;

    line-height: 1;

    color: var(--gold-light);

    letter-spacing: -0.08em;

    text-shadow:
        0 12px 35px rgba(255, 206, 0, 0.18);
}

.result-container h3 {
    font-family: "Space Grotesk", sans-serif;

    font-size: 27px;

    margin-bottom: 10px;

    color: #ffffff;
}

.result-description {
    color: var(--text-soft);

    font-size: 17px;

    line-height: 1.7;
}


/* =========================================================
   SCORE CARD
========================================================= */

.score-card {
    margin: 42px auto 25px;

    padding: 28px;

    max-width: 500px;

    background:
        linear-gradient(
            145deg,
            #111725,
            #0d111c
        );

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 22px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 28px;

    text-align: left;

    box-shadow:
        0 25px 55px rgba(0, 0, 0, 0.3);
}

.score-circle {
    width: 105px;
    height: 105px;

    flex-shrink: 0;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        conic-gradient(
            var(--gold) 0deg,
            var(--gold) 0deg,
            rgba(255, 255, 255, 0.08) 0deg,
            rgba(255, 255, 255, 0.08) 360deg
        );

    box-shadow:
        0 10px 30px rgba(212, 169, 0, 0.16);
}

.score-inner {
    width: 82px;
    height: 82px;

    background: #101522;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-direction: column;
}

.score-inner strong {
    font-family: "Space Grotesk", sans-serif;

    font-size: 28px;

    color: #ffffff;
}

.score-inner span {
    color: var(--text-muted);

    font-size: 12px;
}

.score-text {
    display: flex;

    flex-direction: column;

    gap: 6px;
}

.score-text span {
    color: var(--text-muted);

    font-size: 13px;
}

.score-text strong {
    font-family: "Space Grotesk", sans-serif;

    font-size: 18px;

    color: var(--gold-light);
}


/* =========================================================
   RECOMMENDATION
========================================================= */

.recommendation-card {
    position: relative;

    max-width: 650px;

    margin: 0 auto 30px;

    padding: 28px;

    background:
        linear-gradient(
            145deg,
            #111725,
            #0d111c
        );

    color: white;

    border-radius: 22px;

    text-align: left;

    border: 1px solid rgba(212, 175, 55, 0.2);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.3);

    overflow: hidden;
}

.recommendation-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            #101010 0 33.33%,
            #dd0000 33.33% 66.66%,
            #ffce00 66.66% 100%
        );
}

.recommendation-label {
    color: var(--gold-light);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.15em;
}

.recommendation-card p {
    margin-top: 9px;

    color: var(--text-soft);

    line-height: 1.7;
}


/* =========================================================
   RESULT ACTIONS
========================================================= */

.result-actions {
    display: flex;

    justify-content: center;

    gap: 12px;

    flex-wrap: wrap;
}


/* =========================================================
   FOOTER
========================================================= */

.test-footer {
    position: relative;

    background: #05070d;

    color: white;

    padding: 65px 20px 40px;

    text-align: center;

    overflow: hidden;

    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.test-footer::before {
    content: "";

    position: absolute;

    top: 0;
    left: 50%;

    transform: translateX(-50%);

    width: 180px;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            #101010 0 33.33%,
            #dd0000 33.33% 66.66%,
            #ffce00 66.66% 100%
        );
}

.footer-content {
    width: min(700px, 100%);

    margin: auto;
}

.footer-logo {
    width: 150px;

    margin-bottom: 22px;

    border-radius: 10px;
}

.footer-slogan {
    font-family: "Space Grotesk", sans-serif;

    font-size: 20px;

    margin-bottom: 12px;
}

.footer-slogan span {
    color: var(--gold-light);
}

.footer-slogan strong {
    color: var(--red);
}

.test-footer p:last-child,
.test-footer p:nth-last-child(2) {
    color: var(--text-muted);

    font-size: 13px;

    line-height: 1.7;
}


/* =========================================================
   HIDDEN
========================================================= */

[hidden] {
    display: none !important;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 700px) {

    .test-navbar {
        height: 70px;

        background: #f7f8fa;
    }

    .navbar-inner {
        width: min(100% - 28px, 1180px);
    }

    .test-logo img {
        width: 125px;
    }

    .back-link {
        font-size: 13px;
        padding: 8px 12px;
    }

    .test-intro {
        min-height: calc(100vh - 70px);

        padding: 70px 18px;
    }

    .intro-content h1 {
        font-size: clamp(45px, 13vw, 70px);
    }

    .intro-description {
        font-size: 16px;
    }

    .test-info {
        gap: 8px;
    }

    .info-card {
        min-width: 0;

        flex: 1;

        padding: 16px 10px;
    }

    .info-card strong {
        font-size: 18px;
    }

    .info-card span {
        font-size: 11px;
    }

    .test-note {
        font-size: 12px;
    }

    .quiz-section {
        padding: 60px 15px;
    }

    .quiz-top h2 {
        font-size: 24px;
    }

    .level-badge {
        width: 50px;
        height: 50px;
    }

    .question-card {
        padding: 32px 20px;

        border-radius: 20px;
    }

    .question-card h3 {
        font-size: 25px;
    }

    .quiz-controls {
        flex-direction: column-reverse;
    }

    .quiz-controls button {
        width: 100%;
    }

    .score-card {
        flex-direction: column;

        text-align: center;
    }

    .score-text {
        align-items: center;
    }

    .result-section {
        padding: 65px 18px;
    }
}


@media (max-width: 430px) {

    .back-link {
        font-size: 12px;
    }

    .intro-label,
    .result-label,
    .quiz-label {
        font-size: 10px;
    }

    .intro-content h1 {
        font-size: 44px;
    }

    .test-info {
        flex-direction: column;
    }

    .info-card {
        width: 100%;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
    }

    .result-actions {
        flex-direction: column;
    }

    .result-actions a,
    .result-actions button {
        width: 100%;
    }

    .question-card h3 {
        font-size: 22px;
    }

    .answer-btn {
        font-size: 14px;
    }
}