/* ==========================================================================
   WATT do you know? - IAA 2026
   Die Buehne ist exakt 1366 x 1024 px gross (CSS-Auflösung iPad Air 13"
   im Landscape) und wird per Skalierung in den Viewport eingepasst. Alle
   Werte in diesem Stylesheet sind am Screendesign vermessen.
   ========================================================================== */

@font-face {
    font-family: 'Titillium Web';
    src: url('../fonts/TitilliumWeb-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Titillium Web';
    src: url('../fonts/TitilliumWeb-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: block;
}

@font-face {
    font-family: 'Titillium Web';
    src: url('../fonts/TitilliumWeb-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Titillium Web';
    src: url('../fonts/TitilliumWeb-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
    font-display: block;
}

@font-face {
    font-family: 'Titillium Web';
    src: url('../fonts/TitilliumWeb-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Titillium Web';
    src: url('../fonts/TitilliumWeb-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: block;
}

:root {
    --blue: #002850;
    --green: #1ea300;
    --red: #cc0000;
    --gutter: 60px;
    --card-shadow: 0 8px 26px rgba(0, 40, 80, 0.22);
    --stage-scale: 1;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    background: #fff url('../img/bg-stripes.svg') center center / cover no-repeat;
    color: var(--blue);
    font-family: 'Titillium Web', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

/* Touch-Kiosk: keine Textauswahl, kein Tap-Highlight, kein Callout-Menue. */
body,
button {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.app {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stage {
    position: relative;
    flex: 0 0 auto;
    width: 1366px;
    height: 1024px;
    transform: scale(var(--stage-scale));
    transform-origin: center center;
}

/* --------------------------------------------------------------- Kopfzeile */

.header__logo {
    position: absolute;
    top: 68px;
    left: var(--gutter);
    width: 262px;
    height: auto;
}

.header__claim {
    position: absolute;
    top: 68px;
    right: var(--gutter);
    margin: 0;
    font-size: 48px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.stepper {
    position: absolute;
    top: 62px;
    left: 50%;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.stage[data-screen^='question'] .stepper {
    opacity: 1;
}

.stepper__step {
    display: flex;
    width: 44px;
    height: 62px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--blue);
    border-radius: 2px;
    background: #fff;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.stepper__step[aria-current='step'] {
    background: var(--blue);
    color: #fff;
}

.stepper__line {
    width: 99px;
    height: 1px;
    background: var(--blue);
}

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

.screen {
    position: absolute;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.screen.is-active {
    visibility: visible;
    opacity: 1;
}

.screen h1,
.screen p {
    margin: 0;
    text-align: center;
}

.screen__action {
    position: absolute;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* ------------------------------------------------------------------ Button */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 72px;
    padding: 0 64px;
    border: 0;
    border-radius: 36px;
    background: var(--red);
    box-shadow: 0 8px 24px rgba(0, 40, 80, 0.22);
    color: #fff;
    font-family: inherit;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    transition: transform 0.12s ease, background-color 0.12s ease;
}

.btn > * {
    pointer-events: none;
}

.btn:active {
    background: #b00000;
    transform: translateY(2px);
    box-shadow: 0 4px 12px rgba(0, 40, 80, 0.22);
}

.btn--icon {
    gap: 16px;
}

.btn__chevron {
    width: 17px;
    height: 28px;
    flex: 0 0 auto;
}

/* ------------------------------------------------------------- Startscreen */

.start__headline {
    position: absolute;
    top: 366px;
    left: 0;
    width: 100%;
    font-size: 80px;
    font-style: italic;
    font-weight: 700;
    line-height: 1;
}

.start__text {
    position: absolute;
    top: 475px;
    left: 0;
    width: 100%;
    font-size: 32px;
    font-style: italic;
    font-weight: 700;
    line-height: 1;
}

.screen--start .screen__action {
    top: 591px;
}

/* ------------------------------------------------------------ Fragescreens */

.question__label {
    position: absolute;
    top: 207px;
    left: 0;
    width: 100%;
    font-size: 32px;
    font-style: italic;
    font-weight: 700;
    line-height: 1;
}

.question__headline {
    position: absolute;
    top: 260px;
    left: var(--gutter);
    width: calc(100% - 2 * var(--gutter));
    font-size: 56px;
    font-style: italic;
    font-weight: 700;
    line-height: 64px;
}

.question__note {
    position: absolute;
    top: 403px;
    left: 0;
    width: 100%;
    font-size: 32px;
    font-style: italic;
    font-weight: 700;
    line-height: 1;
}

.answers {
    position: absolute;
    top: 500px;
    left: var(--gutter);
    display: flex;
    width: calc(100% - 2 * var(--gutter));
    gap: 40px;
}

.answer {
    position: relative;
    display: flex;
    flex: 1 1 0;
    height: 160px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid var(--blue);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--card-shadow);
    color: var(--blue);
    font-family: inherit;
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.12s ease;
}

.answer__text {
    position: relative;
    top: 1px;
    display: block;
    font-size: 65px;
    font-style: italic;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.answer__side {
    font-size: 36px;
}

.answer__side:first-child {
    margin-right: 14px;
}

.answer__side:last-child {
    margin-left: 14px;
}

.answers:not(.is-locked) .answer:active {
    transform: translateY(2px);
    box-shadow: 0 4px 14px rgba(0, 40, 80, 0.22);
}

.answers.is-locked .answer {
    cursor: default;
}

/* Nur die geklickte Karte faerben - die Loesung wird nicht extra markiert. */
.answer.is-correct {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

.answer.is-wrong {
    border-color: var(--red);
    background: var(--red);
    color: #fff;
}

.answers.is-locked .answer:not(.is-correct):not(.is-wrong) {
    box-shadow: none;
}

.reveal {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.reveal.is-visible {
    visibility: visible;
    opacity: 1;
}

.explanation {
    position: absolute;
    top: 719px;
    left: 50%;
    width: 1190px;
    font-size: 32px;
    font-style: italic;
    font-weight: 700;
    line-height: 40px;
    transform: translateX(-50%);
}

.reveal:not(.has-explanation) .explanation {
    visibility: hidden;
}

.screen--question .screen__action {
    top: 892px;
}

/* ------------------------------------------------------------ Resultscreen */

.result__score {
    position: absolute;
    top: 313px;
    left: 0;
    width: 100%;
    font-size: 80px;
    font-style: italic;
    font-weight: 700;
    line-height: 1;
}

.result__headline {
    position: absolute;
    top: 408px;
    left: 0;
    width: 100%;
    font-size: 80px;
    font-style: italic;
    font-weight: 700;
    line-height: 1;
}

.result__text {
    position: absolute;
    top: 515px;
    left: 50%;
    width: 1190px;
    font-size: 32px;
    font-style: italic;
    font-weight: 700;
    line-height: 40px;
    transform: translateX(-50%);
}

.screen--result .screen__action {
    top: 636px;
}

/* ------------------------------------------------------------ Thank-you */

.thanks__headline {
    position: absolute;
    top: 300px;
    left: var(--gutter);
    width: calc(100% - 2 * var(--gutter));
    font-size: 72px;
    font-style: italic;
    font-weight: 700;
    line-height: 84px;
}

.thanks__text {
    position: absolute;
    top: 500px;
    left: 50%;
    width: 1100px;
    font-size: 32px;
    font-style: italic;
    font-weight: 700;
    line-height: 44px;
    transform: translateX(-50%);
}

.screen--thanks .screen__action {
    top: 720px;
}
