/* ==========================================================================
   BLS Welcome Day – Schnitzeljagd
   Tokens und Grundlayout abgeleitet vom Mitarbeiterevent-Projekt, neu strukturiert.
   ========================================================================== */

@font-face {
    font-family: "Univers Next";
    src: url("img/UniversNextW05-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-chartreuse: #a0e100;
    --color-congress-blue: #004899;
    --color-logo-blue: #0028a0;
    --color-grey-96: #f4f5f7;
    --color-grey-54: rgba(0, 0, 0, 0.54);
    --color-grey-28: #44484d;
    --color-azure-85: #d2d7dd;
    --color-white: #ffffff;
    --color-red: #e31300;

    --font-primary: "Univers Next", "Helvetica Neue", Arial, sans-serif;

    --header-height: 60px;
    --content-max: 400px;
    --space: 16px;
    --radius: 6px;
    --radius-pill: 999px;
    --shadow: 0 2px 5px rgba(0, 0, 0, 0.16), 0 2px 10px rgba(0, 0, 0, 0.12);
}

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

html {
    -webkit-text-size-adjust: 100%;
}

html, body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background-color: var(--color-grey-96);
    color: var(--color-grey-28);
    font-family: var(--font-primary);
    font-size: 17px;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

/* Header ------------------------------------------------------------------ */

.header {
    position: sticky;
    top: 0;
    z-index: 10;
    height: var(--header-height);
    padding: 8px var(--space);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-chartreuse);
    box-shadow: var(--shadow);
}

.header-logo {
    height: 29px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo img {
    height: 100%;
    width: auto;
}

/* Main / Screens ----------------------------------------------------------- */

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.screen {
    width: 100%;
    max-width: var(--content-max);
    padding: 24px var(--space) 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.screen-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.screen-icon img {
    width: 40px;
    height: 40px;
}

.screen-title {
    font-size: 20px;
    line-height: 1.35;
    font-weight: 400;
    color: var(--color-grey-28);
    white-space: pre-line; /* Zeilenumbrüche im Titel (\n) bleiben erhalten */
}

.screen-paragraph {
    font-size: 17px;
    color: var(--color-grey-28);
}

.screen-paragraph-lead {
    font-size: 19px;
}

.screen-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    background-color: var(--color-azure-85);
}

.screen-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.screen-image-placeholder {
    background-color: #d9d9d9;
}

.screen .button {
    margin-top: 8px;
}

/* Buttons ------------------------------------------------------------------ */

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.15s, background-color 0.15s;
}

.button-primary {
    background-color: var(--color-chartreuse);
    color: var(--color-logo-blue);
}

.button-primary:active {
    background-color: #90cb00;
}

.button-primary:disabled {
    opacity: 0.45;
    cursor: default;
}

.button-secondary {
    background-color: transparent;
    border-color: var(--color-grey-54);
    color: var(--color-grey-28);
}

.button-secondary:active {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Gruppenauswahl ----------------------------------------------------------- */

.group-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.group-buttons .button {
    margin-top: 0;
}

/* Frage / Optionen --------------------------------------------------------- */

.question-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background-color: var(--color-white);
    border: 1px solid var(--color-azure-85);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}

.option:active {
    background-color: #f0f0f0;
}

.option:has(input:checked) {
    border-color: var(--color-logo-blue);
    background-color: rgba(0, 40, 160, 0.04);
}

.option-label {
    flex: 1;
    font-size: 14px;
    line-height: 1.35;
    color: var(--color-grey-28);
}

.option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--color-logo-blue);
}

/* Erfolgsscreen ------------------------------------------------------------ */

body.has-success .main {
    align-items: stretch;
}

.screen-success {
    flex: 1;
    max-width: none;
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100dvh - var(--header-height));
    justify-content: flex-end;
    gap: 16px;
    /* Karte und Button sitzen im unteren Drittel, das Foto läuft darunter weiter. */
    padding: var(--space) var(--space) clamp(72px, 14vh, 140px);
    background-color: #9a9ea3;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.screen-success-placeholder {
    background-image: linear-gradient(180deg, #b9bec4 0%, #7d8288 100%);
}

.screen-success > * {
    width: 100%;
    max-width: var(--content-max);
    margin-left: auto;
    margin-right: auto;
}

.success-card {
    padding: 18px 20px 20px;
    border-radius: 4px;
    background-color: rgba(244, 245, 247, 0.82);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    backdrop-filter: blur(16px) saturate(120%);
}

.success-title {
    font-size: 24px;
    line-height: 1.25;
    font-weight: 400;
    color: var(--color-grey-28);
    margin-bottom: 8px;
}

.success-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-grey-28);
}

.screen-success .button {
    margin-top: 0;
}

/* Schluss-Screen ----------------------------------------------------------- */

body.has-end {
    background-color: var(--color-chartreuse);
}

body.has-end .header {
    box-shadow: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.screen-end {
    gap: 24px;
    padding-top: 36px;
}

.end-text {
    font-size: 19px;
    line-height: 1.4;
    color: var(--color-logo-blue);
}

.end-score {
    align-self: flex-start;
    padding: 6px 12px;
    background-color: var(--color-white);
    color: var(--color-logo-blue);
    font-size: 30px;
    line-height: 1.1;
    border-radius: 2px;
}

/* Desktop: Inhalt schmal und zentriert halten. */
@media (min-width: 600px) {
    .screen {
        padding-top: 40px;
    }
}
