@font-face {
    font-family: 'Druckschrift_BY_WOK';
    src: url('../fonts/Druckschrift_BY_WOK.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Dr_hh_1';
    src: url('../fonts/Dr_hh_1.woff') format('woff');
    font-display: swap;
}

:root {
    --schiebung-hintergrund: #efe8ff;
    --schiebung-karte: #ffffff;
    --schiebung-kante: #cad3df;
    --schiebung-hinweis: #395673;
    --schiebung-richtig: #1f9b4d;
    --schiebung-falsch: #c43636;
    --schiebung-fortschritt-bg: #dae3ef;
    --schiebung-fortschritt-rot: #d43a3a;
    --schiebung-fortschritt-gelb: #f0c43a;
    --schiebung-fortschritt-gruen: #2fbf62;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: var(--schiebung-hintergrund);
    color: #112031;
}

#schiebung-app {
    width: 100%;
    height: 100dvh;
    min-height: 100vh;
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 1.8vh;
    padding: 2vh 2vw max(50px, 2.2vh);
    box-sizing: border-box;
    overflow: hidden;
}

#schiebung-spielfeld {
    min-height: 0;
    display: grid;
    place-items: center;
}

.schiebung-buehne {
    width: min(96vw, 1300px);
    height: min(82dvh, 980px);
    min-height: 320px;
    display: grid;
    grid-template-columns: minmax(90px, 1fr) minmax(210px, 2.3fr) minmax(90px, 1fr);
    gap: clamp(10px, 2vw, 28px);
    align-items: center;
}

.schiebung-antwort-kachel,
.schiebung-aufgabe-kachel {
    border: 2px solid var(--schiebung-kante);
    border-radius: 18px;
    background: var(--schiebung-karte);
    box-shadow: 0 10px 22px rgba(15, 29, 46, 0.13);
}

.schiebung-antwort-kachel {
    aspect-ratio: 1 / 1;
    width: 70%;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    padding: 0.9rem;
    box-sizing: border-box;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.schiebung-antwort-kachel.ist-ziel {
    border-color: #7f93ab;
    box-shadow: 0 0 0 4px rgba(127, 147, 171, 0.25), 0 10px 22px rgba(15, 29, 46, 0.16);
    transform: scale(1.02);
}

.schiebung-antwort-kachel.ist-richtig {
    border-width: 4px;
    border-color: var(--schiebung-richtig);
    box-shadow: 0 0 0 8px rgba(31, 155, 77, 0.36), 0 10px 22px rgba(15, 29, 46, 0.18);
}

.schiebung-antwort-kachel.ist-falsch {
    border-width: 4px;
    border-color: var(--schiebung-falsch);
    box-shadow: 0 0 0 8px rgba(196, 54, 54, 0.34), 0 10px 22px rgba(15, 29, 46, 0.18);
}

.schiebung-aufgabe-kachel {
    position: relative;
    width: min(100%, 40dvh);
    aspect-ratio: 1 / 2;
    height: auto;
    min-height: 220px;
    max-height: min(62dvh, calc(100dvh - 260px));
    min-width: 0;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: clamp(12px, 2vh, 24px);
    box-sizing: border-box;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    will-change: transform;
    justify-self: center;
    align-self: center;
}

.schiebung-swipe-hinweis {
    position: absolute;
    top: clamp(8px, 1.3vh, 14px);
    right: clamp(8px, 1.3vh, 14px);
    width: clamp(64px, 9.2vh, 124px);
    height: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-2px);
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: 2;
    animation: schiebung-swipe-pendeln 1.2s ease-in-out infinite;
    animation-play-state: paused;
}

.schiebung-swipe-hinweis.ist-sichtbar {
    opacity: 0.95;
    transform: translateY(0);
    animation-play-state: running;
}

@keyframes schiebung-swipe-pendeln {
    0% {
        transform: translateX(0) translateY(0);
    }
    50% {
        transform: translateX(-16px) translateY(0);
    }
    100% {
        transform: translateX(0) translateY(0);
    }
}

.schiebung-aufgabe-kachel:active {
    cursor: grabbing;
}

.schiebung-aufgabe-inhalt,
.schiebung-antwort-inhalt {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.schiebung-aufgabe-inhalt {
    font-size: clamp(22px, 4.6vh, 88px);
    line-height: 1.14;
}

.schiebung-antwort-inhalt {
    font-size: clamp(18px, 3.2vh, 52px);
    line-height: 1.16;
}

.schiebung-aufgabe-inhalt img,
.schiebung-aufgabe-inhalt .bild,
.schiebung-aufgabe-inhalt .geld-render,
.schiebung-antwort-inhalt img,
.schiebung-antwort-inhalt .bild,
.schiebung-antwort-inhalt .geld-render {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.schiebung-aufgabe-inhalt .geld-render,
.schiebung-antwort-inhalt .geld-render {
    width: 100%;
    height: 100%;
}

#schiebung-fuss {
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto auto;
    gap: 0.5rem;
    align-items: center;
    justify-items: center;
}

#schiebung-status-text {
    display: none;
}

#schiebung-fortschritt {
    width: min(96vw, 1200px);
    height: clamp(20px, 3.8vh, 42px);
    border-radius: 999px;
    background: linear-gradient(90deg, var(--schiebung-fortschritt-rot) 0%, var(--schiebung-fortschritt-gelb) 58%, var(--schiebung-fortschritt-gruen) 100%);
    overflow: hidden;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.12), 0 0 10px rgba(240, 196, 58, 0.28), 0 0 22px rgba(47, 191, 98, 0.22);
    position: relative;
}

#schiebung-fortschritt-wert {
    width: 70%;
    height: 100%;
    margin-left: auto;
    border-radius: 0 999px 999px 0;
    background: var(--schiebung-fortschritt-bg);
    box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.38);
    transition: width 260ms ease;
}

#schiebung-herzen {
    width: min(96vw, 1200px);
    min-height: clamp(24px, 4.2vh, 48px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.2rem 0.32rem;
}

.schiebung-herz {
    font-size: clamp(13px, 2.1vh, 22px);
    line-height: 1;
    color: #d93030;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.schiebung-herz.ist-leer {
    color: #bcc5d4;
    text-shadow: none;
}

.schiebung-herzen-zusatz,
.schiebung-herzen-text {
    margin-left: 0.28rem;
    font-size: clamp(12px, 1.8vh, 18px);
    color: #35516b;
    font-weight: 700;
}

.schiebung-hinweis {
    margin: 0;
    font-size: clamp(18px, 3vh, 30px);
}

.schiebung-ende {
    width: min(94vw, 980px);
    max-width: 100%;
    min-height: min(56dvh, 620px);
    max-height: calc(100dvh - 170px);
    background: #ffffff;
    border: 2px solid #cfd8e5;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(15, 29, 46, 0.15);
    padding: clamp(22px, 4.4vh, 48px);
    display: grid;
    align-content: center;
    justify-items: center;
    gap: clamp(10px, 1.7vh, 18px);
    text-align: center;
    overflow: auto;
    box-sizing: border-box;
}

.schiebung-ende h1 {
    margin: 0;
    font-size: clamp(30px, 6.2vh, 70px);
}

.schiebung-ende-sticker {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.schiebung-ende-sticker img {
    max-width: min(58vw, 420px);
    max-height: min(24dvh, 300px);
    width: auto;
    height: auto;
    object-fit: contain;
}

.schiebung-ende.schiebung-ende-gewinn {
    border-color: #46a866;
}

.schiebung-ende.schiebung-ende-verloren {
    border-color: #ce5353;
}

.schiebung-ende.schiebung-ende-trost {
    border-color: #de9e3f;
}

.schiebung-ende p {
    margin: 0;
    font-size: clamp(18px, 3.1vh, 36px);
}

#schiebung-neustart {
    margin-top: 0.4rem;
    border: 0;
    border-radius: 10px;
    padding: 0.82rem 1.35rem;
    background: #1d3650;
    color: #ffffff;
    font-size: clamp(16px, 2.6vh, 28px);
    cursor: pointer;
}

@media (max-width: 980px) {
    #schiebung-app {
        padding: 1.6vh 1.6vw max(50px, 2vh);
    }

    .schiebung-buehne {
        grid-template-columns: minmax(74px, 1fr) minmax(180px, 2.1fr) minmax(74px, 1fr);
        gap: 10px;
        width: 100%;
        height: min(80dvh, 760px);
    }

    .schiebung-aufgabe-kachel {
        width: min(100%, 38dvh);
        border-radius: 14px;
        padding: 10px;
        max-height: min(58dvh, calc(100dvh - 250px));
    }

    .schiebung-antwort-kachel {
        border-radius: 14px;
        padding: 0.48rem;
    }
}

@media (max-width: 700px), (max-aspect-ratio: 4/3) {
    .schiebung-buehne {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: minmax(76px, 20dvh) minmax(220px, 56dvh);
        width: min(96vw, 700px);
        height: min(82dvh, 860px);
        align-content: start;
        align-items: start;
        gap: clamp(8px, 2vh, 16px) clamp(18px, 6vw, 44px);
    }

    .schiebung-antwort-kachel {
        width: min(20vw, 170px);
        min-width: 72px;
        align-self: start;
    }

    #schiebung-antwort-links {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    #schiebung-antwort-rechts {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .schiebung-aufgabe-kachel {
        grid-column: 1 / 3;
        grid-row: 2;
        justify-self: center;
        width: min(54vw, 40dvh);
        height: auto;
        max-height: min(54dvh, calc(100dvh - 240px));
    }

    #schiebung-fortschritt {
        width: min(96vw, 620px);
    }

    #schiebung-herzen {
        width: min(96vw, 620px);
    }
}

@media (max-width: 560px), (max-height: 760px) {
    .schiebung-ende {
        width: min(96vw, 560px);
        min-height: 0;
        max-height: calc(100dvh - 150px);
        padding: clamp(12px, 2.8vh, 24px);
        gap: clamp(8px, 1.5vh, 14px);
    }

    .schiebung-ende h1 {
        font-size: clamp(24px, 5.5vw, 44px);
    }

    .schiebung-ende-sticker img {
        max-width: min(64vw, 280px);
        max-height: min(20dvh, 180px);
    }

    .schiebung-ende p {
        font-size: clamp(15px, 3.9vw, 24px);
    }

    #schiebung-neustart {
        padding: 0.66rem 1.1rem;
        font-size: clamp(14px, 3.5vw, 22px);
    }
}



.silbe {
    color: green;
}
