/* ==========================================================================
   Animierte Erklärvideos
   Alle Maße relativ zur Videofläche (cqmin / em = 1cqmin), dadurch passt das
   Video in jedes Format: Hochformat (Startseite), 16:9 (Kacheln, Player).
   ========================================================================== */

@property --t { syntax: "<time>"; inherits: false; initial-value: 0s; }

.motion {
    --ok: #2fd67b;
    --bad: #ff3b3b;
    --brand: #ff2b2b;
    --grad: linear-gradient(135deg, #ff2b2b, #ff6a3d);
    --card: #fff;
    --card-line: rgba(20, 22, 28, 0.08);
    --card-shadow: 0 1.2em 3em -1.6em rgba(20, 22, 28, 0.3);
    position: absolute;
    inset: 0;
    overflow: hidden;
    container: motion / size;
    isolation: isolate;
    color: #14161c;
    background: #f7f8fa;
    pointer-events: none;
    font-family: var(--font);
    text-align: center;
}

/* Hintergrund */
.motion__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #ffffff 0%, #eef0f4 62%); }
.motion__bg span { position: absolute; width: 75cqmax; height: 75cqmax; border-radius: 50%; filter: blur(14cqmin); opacity: 0.12; }
.motion__bg span:nth-child(1) { background: #ff2b2b; left: -30cqmax; top: -35cqmax; animation: mbg-a 14s ease-in-out infinite alternate; }
.motion__bg span:nth-child(2) { background: #3b82f6; right: -30cqmax; bottom: -35cqmax; animation: mbg-b 17s ease-in-out infinite alternate; }
@keyframes mbg-a { to { transform: translate(22cqmax, 16cqmax); } }
@keyframes mbg-b { to { transform: translate(-20cqmax, -14cqmax); } }

/* Fortschritt pro Szene (wie Stories) */
.motion__segs { position: absolute; z-index: 3; top: 3cqmin; left: 4cqmin; right: 4cqmin; display: flex; gap: 0.9cqmin; }
.motion__segs i { flex: var(--g) 1 0; height: max(3px, 0.6cqmin); border-radius: 99px; background: rgba(20, 22, 28, 0.12); overflow: hidden; }
.motion__segs b { display: block; height: 100%; background: #14161c; transform-origin: left; animation: mseg var(--d) linear var(--s) both; }
@keyframes mseg { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.motion__logo { position: absolute; z-index: 3; right: 4cqmin; bottom: 3.2cqmin; height: 6.5cqmin; width: auto; opacity: 0.85; }

/* ---------- Szenen -------------------------------------------------------- */

.ms {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4cqmin;
    padding: 10cqmin 7cqmin 10cqmin;
    opacity: 0;
    animation: ms-in 0.5s ease var(--s) both, ms-out 0.5s ease calc(var(--s) + var(--d) - 0.5s) forwards;
}
@keyframes ms-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ms-out { from { opacity: 1; } to { opacity: 0; } }

.ms__art { position: relative; flex: none; width: 86cqmin; height: 58cqmin; font-size: 1cqmin; display: grid; place-items: center; }
.ms--center .ms__art { height: 46cqmin; }
.ms--tall .ms__art { height: 68cqmin; }
.ms__art--auto, .ms--center .ms__art--auto { height: auto; }
.ms__copy { display: flex; flex-direction: column; align-items: center; gap: 1.8cqmin; max-width: 88cqmin; }

.m-kicker {
    display: inline-flex;
    padding: 0.9cqmin 2.4cqmin;
    border-radius: 99px;
    color: #fff;
    background: var(--grad);
    font-size: 2.5cqmin;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.m-kicker--alert { background: linear-gradient(135deg, #ff3b3b, #ff7a1c); }
.m-kicker--warn { background: linear-gradient(135deg, #ff9f1c, #ff3b3b); }
.m-title { margin: 0; font-size: 7cqmin; font-weight: 850; line-height: 1.06; letter-spacing: -0.02em; text-wrap: balance; }
.m-text { margin: 0; font-size: 3.5cqmin; line-height: 1.35; color: rgba(20, 22, 28, 0.68); text-wrap: pretty; }

/* Querformat: Grafik links, Text rechts */
@container motion (orientation: landscape) {
    .ms { flex-direction: row; text-align: start; gap: min(6cqmin, 3.5cqw); padding: 9cqmin 6cqw 9cqmin; }
    .ms__art { width: min(84cqmin, 46cqw); height: min(70cqmin, 39cqw); font-size: min(1cqmin, 0.55cqw); }
    .ms__copy { flex: 0 1 40cqw; align-items: flex-start; max-width: 40cqw; }
    .ms .m-title { font-size: min(7cqmin, 4.3cqw); }
    .ms .m-text { font-size: min(3.5cqmin, 2.2cqw); }
    .ms--tall .ms__art { height: min(78cqmin, 44cqw); }

    .ms--center { flex-direction: column; text-align: center; gap: 3cqmin; }
    .ms--center .ms__art { width: min(86cqmin, 80cqw); height: 44cqmin; }
    .ms--center .ms__art--auto { height: auto; }
    .ms--center .ms__copy { flex: none; align-items: center; max-width: 80cqw; }
    .ms--summary { gap: 3.5cqmin; }
}

/* ---------- Bausteine für Animationen --------------------------------------- */

.a-up, .a-pop, .a-left, .a-right, .a-fade, .a-zoom {
    animation-duration: var(--dur, 0.7s);
    animation-timing-function: var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
    animation-delay: calc(var(--s) + var(--t));
    animation-fill-mode: both;
}
.a-up { animation-name: a-up; }
.a-pop { animation-name: a-pop; --ease: cubic-bezier(0.34, 1.56, 0.64, 1); }
.a-left { animation-name: a-left; }
.a-right { animation-name: a-right; }
.a-fade { animation-name: a-fade; }
.a-zoom { animation-name: a-zoom; --ease: cubic-bezier(0.34, 1.4, 0.64, 1); --dur: 0.5s; }
@keyframes a-up { from { opacity: 0; transform: translateY(5cqmin); } }
@keyframes a-pop { from { opacity: 0; transform: scale(0.3); } }
@keyframes a-left { from { opacity: 0; transform: translateX(-8cqmin); } }
@keyframes a-right { from { opacity: 0; transform: translateX(10cqmin); } }
@keyframes a-fade { from { opacity: 0; } }
@keyframes a-zoom { from { opacity: 0; transform: scale(2.4); } }
@keyframes mspin { to { transform: rotate(1turn); } }

.motion .icon { width: 1em; height: 1em; }

/* ==========================================================================
   Altersverifizierung
   ========================================================================== */

/* 18+ Badge */
.m-badge18 { position: relative; width: 38em; height: 38em; display: grid; place-items: center; border-radius: 50%; box-shadow: 0 2em 8em -1em rgba(255, 43, 43, 0.4); }
.m-badge18__ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(#ff2b2b, #ff7a45, #ffb020, #ff7a45, #ff2b2b); animation: mspin 5s linear var(--s) infinite; }
.m-badge18__ring::after { content: ""; position: absolute; inset: 1.8em; border-radius: 50%; background: #fff; }
.m-badge18 span { position: relative; font-size: 14em; font-weight: 900; letter-spacing: -0.05em; background: linear-gradient(180deg, #14161c 35%, #ff2b2b); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Produkte mit gesperrtem Preis */
.m-shelf { display: flex; align-items: flex-end; gap: 7em; }
.m-prod { display: flex; flex-direction: column; align-items: center; gap: 3.5em; }
.m-prod__img { display: block; height: 44em; width: auto; filter: drop-shadow(0 2.4em 2.6em rgba(20, 22, 28, 0.3)); }
.m-prod__img--box { height: 37em; }

.m-tag { position: relative; display: flex; align-items: center; justify-content: center; width: 16em; height: 6.4em; border-radius: 1.6em; background: var(--card); border: 0.25em solid var(--card-line); box-shadow: var(--card-shadow); }
.m-tag__price { font-size: 3.2em; font-weight: 800; filter: blur(0.22em); opacity: 0.85; }
.m-tag__lock { position: absolute; right: -2.6em; top: -3.4em; display: grid; place-items: center; width: 7em; height: 7em; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #ff3b3b, #ff9f1c); box-shadow: 0 1em 2.4em rgba(255, 59, 59, 0.4); }
.m-tag__lock .icon { width: 3.6em; height: 3.6em; stroke-width: 2.4; }

/* Ausweise */
.m-ids { position: relative; width: 86em; height: 40em; }
.m-idpos { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) translateX(var(--x)) rotate(var(--r)); }
.m-idpos > div { font-size: 1.35em; }



.m-id { position: relative; flex: none; width: 30em; height: 19em; border-radius: 1.8em; overflow: hidden; color: #1b2a44; background: linear-gradient(135deg, #eef4fb, #bcd0e6); box-shadow: 0 2em 4em -0.5em rgba(20, 22, 28, 0.35); text-align: left; }
.m-id--real { background: #e9e3cf; }
.m-id__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.m-id--real::after, .m-perso-back::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.35) 48%, transparent 60%); }

/* Rückseite des Personalausweises */
.m-perso-back { color: #2a2a22; background: repeating-radial-gradient(circle at 70% 40%, rgba(120, 100, 60, 0.08) 0 0.12em, transparent 0.12em 0.5em), linear-gradient(120deg, #f1ead2, #e7dfc4 50%, #efe6cf); }
.m-perso-back__data { position: absolute; left: 1.4em; right: 1.4em; top: 1.3em; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.45em 0.8em; }
.m-perso-back__data > div { min-width: 0; }
.m-perso-back__data .wide { grid-column: 1 / -1; }
.m-perso-back__data dt { font-size: 0.5em; line-height: 1.3; opacity: 0.7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-perso-back__data dd { margin: 0; font: 700 1.1em/1.15 ui-monospace, "Courier New", monospace; letter-spacing: 0.03em; white-space: nowrap; }
.m-perso-back__mrz { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.9em 1.3em; background: rgba(255, 255, 255, 0.6); font: 600 1.35em/1.3 "OCR B", "OCR-B", ui-monospace, "Courier New", monospace; letter-spacing: 0.02em; white-space: pre; overflow: hidden; }

/* Ausweisleser am Automaten (Foto). Positionen in % des Fotos:
   Schlitzkante 24.5 %, Schlitz offen nach rechts ab 97 %, grüne LED links bei 23 % / 52.5 % */
.m-swipe { position: relative; width: 80em; padding-top: 15em; }
.m-swipe__dev { position: relative; width: 100%; aspect-ratio: 803 / 418; }
.m-swipe__img { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 3em 3.5em rgba(20, 22, 28, 0.4)); }

/* Ausweis: steckt unterhalb der Schlitzkante im Gerät (dort abgeschnitten), rechts kommt er wieder raus */
.m-swipe__lane { position: absolute; z-index: 2; left: 0; right: 0; bottom: 75.5%; height: 30em; clip-path: polygon(-60% -100%, 160% -100%, 160% 160%, 97% 160%, 97% 100%, -60% 100%); }
.m-swipe__card { position: absolute; left: 0; bottom: 0; opacity: 0; animation: mswipe 6.2s linear calc(var(--s) + 0.6s) both; }
.m-swipe__card .m-id { width: 30em; height: 18.9em; border-radius: 1.4em; }
@keyframes mswipe {
    0%   { transform: translate(9em, -6em); opacity: 0; }
    6%   { transform: translate(9em, -6em); opacity: 1; }
    29%  { transform: translate(9em, -6em); animation-timing-function: cubic-bezier(0.5, 0, 0.3, 1); }
    40%  { transform: translate(9em, 7em); animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); }
    88%  { transform: translate(48em, 7em); opacity: 1; animation-timing-function: cubic-bezier(0.3, 0, 0.6, 1); }
    100% { transform: translate(55em, 7em); opacity: 0; }
}

/* Grüne LED links: blinkt = bereit, leuchtet dauerhaft = freigegeben */
.m-swipe__led { position: absolute; z-index: 1; left: 23%; top: 52.5%; width: 6em; height: 6em; margin: -3em 0 0 -3em; border-radius: 50%; background: radial-gradient(circle, #f0fff6 0 10%, #2fd67b 26%, rgba(47, 214, 123, 0.35) 46%, rgba(47, 214, 123, 0) 70%); opacity: 0; animation: mledblink 0.9s ease-in-out calc(var(--s) + 0.4s) 6, mledon 0.4s ease-out calc(var(--s) + 6.2s) forwards; }
@keyframes mledblink { 0%, 100% { opacity: 0.1; } 50% { opacity: 1; } }
@keyframes mledon { from { opacity: 0.3; transform: scale(0.8); } to { opacity: 1; transform: scale(1.7); } }

/* Schlitz-Anfang hervorheben + Richtungspfeil */
.m-swipe__here { position: absolute; z-index: 1; left: 9.5%; top: 10.5%; width: 30%; height: 16%; border-radius: 3em; border: 0.45em solid #2fd67b; box-shadow: 0 0 2em rgba(47, 214, 123, 0.7), inset 0 0 2em rgba(47, 214, 123, 0.4); opacity: 0; animation: mpulse 0.75s ease-in-out calc(var(--s) + 0.8s) 3 alternate; }
@keyframes mpulse { from { opacity: 0; } to { opacity: 1; } }
.m-swipe__dir { position: absolute; z-index: 1; left: 28%; top: 30%; color: #ff4d4d; opacity: 0; filter: drop-shadow(0 0 1.2em rgba(255, 77, 77, 0.8)); animation: mdir 1s ease-in-out calc(var(--s) + 3.1s) 3; }
.m-swipe__dir .icon { width: 8em; height: 8em; stroke-width: 2.6; }
@keyframes mdir { 0% { transform: translateX(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateX(32em); opacity: 0; } }

/* Langer Piep */
.m-swipe__beep { position: absolute; z-index: 3; left: 30%; top: 52.5%; transform: translateY(-50%); }
.m-swipe__beep span { display: flex; align-items: center; gap: 0.4em; padding: 0.35em 0.8em; border-radius: 99px; font-size: 3em; font-weight: 800; white-space: nowrap; color: #d4ffe8; background: rgba(47, 214, 123, 0.2); border: 0.06em solid rgba(47, 214, 123, 0.55); }
.m-swipe__beep .icon { color: var(--ok); }
.m-swipe__beep i { width: 4em; height: 0.35em; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, 0.15); }
.m-swipe__beep b { display: block; height: 100%; background: var(--ok); transform-origin: left; animation: mseg 1.8s linear calc(var(--s) + 6.6s) both; }

/* Hinweise zur Haltung */
.m-swipe__hints { position: absolute; z-index: 3; left: 0; right: 0; top: 73%; display: flex; justify-content: center; gap: 2em; color: #fff; }
.m-swipe__hints span { display: flex; align-items: center; gap: 0.45em; padding: 0.4em 0.9em; border-radius: 99px; font-size: 2.7em; font-weight: 800; white-space: nowrap; background: rgba(255, 255, 255, 0.12); border: 0.06em solid rgba(255, 255, 255, 0.22); }
.m-swipe__hints .icon { color: #ff6b6b; }

/* Großes Status-Licht */
.m-led { --c: var(--ok); --c2: #0f8f50; --hi: #c8ffe2; --glow: rgba(47, 214, 123, 0.5); position: relative; width: 34em; height: 34em; display: grid; place-items: center; }
.m-led--red { --c: var(--bad); --c2: #a8141a; --hi: #ffd0d0; --glow: rgba(255, 59, 59, 0.5); }
.m-led__ring { position: absolute; inset: 0; border-radius: 50%; border: 0.8em solid var(--c); opacity: 0; animation: mring 1.8s ease-out calc(var(--s) + var(--t)) infinite; }
@keyframes mring { 0% { transform: scale(0.55); opacity: 0.9; } 100% { transform: scale(1.35); opacity: 0; } }
.m-led__core { position: relative; display: grid; place-items: center; width: 20em; height: 20em; border-radius: 50%; color: #fff; background: radial-gradient(circle at 35% 30%, var(--hi), var(--c) 45%, var(--c2)); box-shadow: 0 0 6em var(--c), 0 0 16em var(--glow); }
.m-led__core .icon { width: 10em; height: 10em; stroke-width: 3; }
.m-led--sm { width: 18em; height: 18em; }
.m-led--sm .m-led__core { width: 12em; height: 12em; }
.m-led--sm .m-led__core .icon { width: 6em; height: 6em; }

.m-beep { position: absolute; right: 2em; top: 4em; }
.m-beep span { display: flex; align-items: center; gap: 0.5em; padding: 0.5em 0.9em; border-radius: 99px; font-size: 3.4em; font-weight: 800; background: var(--card); border: 0.06em solid var(--card-line); box-shadow: var(--card-shadow); }
.m-beep .icon { color: var(--ok); }

/* Ausweis umdrehen */
.m-retry { display: flex; align-items: center; gap: 5em; }
.m-flip { perspective: 120em; }
.m-flip__inner { position: relative; width: 30em; height: 19em; transform-style: preserve-3d; animation: mflip 1.1s cubic-bezier(0.45, 0, 0.2, 1) calc(var(--s) + 1.7s) both; }
@keyframes mflip { from { transform: rotateY(0deg); } to { transform: rotateY(180deg); } }
.m-flip__inner > .m-id { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.m-flip__back { transform: rotateY(180deg); }
.m-retry__icon { display: grid; place-items: center; width: 13em; height: 13em; border-radius: 50%; color: #fff; background: var(--grad); box-shadow: 0 1.5em 4em rgba(255, 43, 43, 0.4); }
.m-retry__icon .icon { width: 6.5em; height: 6.5em; stroke-width: 2.4; }

/* Bedienfeld */
.m-keypad { display: flex; flex-direction: column; gap: 2.4em; width: 46em; padding: 3em; border-radius: 3em; color: #fff; background: linear-gradient(160deg, #3d424e, #1f222a); box-shadow: inset 0 0.3em 0 rgba(255, 255, 255, 0.12), 0 3em 5em -1em rgba(20, 22, 28, 0.45); }
.m-keypad__screen { display: flex; flex-direction: column; justify-content: center; gap: 1.2em; height: 13em; padding: 0 2.6em; border-radius: 1.4em; text-align: left; background: #0b2340; border: 0.35em solid #061426; box-shadow: inset 0 0 2.4em rgba(61, 160, 255, 0.35); color: #8fd0ff; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.m-keypad__line { font-size: 3.4em; font-weight: 700; }
.m-keypad__price { display: flex; align-items: center; gap: 0.5em; font-size: 2.8em; font-weight: 700; color: #9ff3c9; }
.m-keypad__keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6em; }
.m-keypad__keys b { display: grid; place-items: center; height: 6.4em; border-radius: 1.2em; background: linear-gradient(#4b5160, #2c303a); box-shadow: 0 0.4em 0 rgba(0, 0, 0, 0.45); }
.m-keypad__keys span { font-size: 3em; font-weight: 700; }
.m-key--press { animation: mpress 0.4s ease calc(var(--s) + var(--t)) both; }
@keyframes mpress {
    0%, 100% { transform: none; }
    40% { transform: translateY(0.3em) scale(0.92); background: #ff2b2b; box-shadow: 0 0 2.4em #ff2b2b; }
}

/* Bargeld (in der Lupe): Scheine fächern sich auf, Münzen fallen nacheinander ins Bild */
.m-cash__notes { position: relative; width: 84em; height: 28em; }
.m-cash__note { position: absolute; left: 50%; top: 4em; width: var(--w); margin-left: calc(var(--w) * -0.5); transform: translate(var(--x), var(--y)) rotate(var(--r)); animation: mfan 0.9s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--s) + var(--t)) both; }
.m-cash__img { display: block; width: 100%; height: auto; border-radius: 0.6em; box-shadow: 0 1.6em 2.8em -1em rgba(20, 22, 28, 0.4); }
@keyframes mfan { from { opacity: 0; transform: translate(0, 14em) rotate(0deg) scale(0.9); } 35% { opacity: 1; } }
.m-cash__coins { display: flex; align-items: center; gap: 1.4em; }
.m-coin { width: var(--d); animation: mcoin 0.8s cubic-bezier(0.3, 1.3, 0.6, 1) calc(var(--s) + var(--t)) both; }
.m-coin__img { display: block; width: 100%; height: auto; filter: drop-shadow(0 0.8em 1em rgba(20, 22, 28, 0.35)); }
@keyframes mcoin { from { opacity: 0; transform: translateY(-16em) rotate(-120deg); } 40% { opacity: 1; } to { opacity: 1; transform: none; } }
.m-credit { position: absolute; left: 4cqmin; bottom: 3.4cqmin; font-size: 1.5cqmin; color: rgba(20, 22, 28, 0.4); }

/* Bezahlen mit Karte & Handy: runder Kartenleser über dem Scheinprüfer (in der Lupe) */
.m-zoom--nfc { padding: 2em; }
.m-nfc { position: relative; width: 29em; height: 29em; }
.m-nfc__disc { position: absolute; inset: 2.5em; display: grid; place-items: center; overflow: hidden; border-radius: 50%; color: #8fd0ff; background: radial-gradient(circle, #23262e 0 55%, #0c0d10 100%); border: 1.5em solid #c9ced6; border-top-color: #f2c200; box-shadow: inset 0 0 2em #000, 0 1.4em 2.6em -1em rgba(20, 22, 28, 0.5); }
.m-nfc__disc > .icon { width: 9em; height: 9em; }
.m-nfc__ok { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6em; color: #fff; background: #12b55f; }
.m-nfc__ok .icon { width: 7em; height: 7em; stroke-width: 3; }
.m-nfc__ok span { font-size: 2.8em; font-weight: 800; }
.m-nfc__card { position: absolute; z-index: 2; left: 5em; top: 9em; width: 19em; height: 12em; border-radius: 1.5em; background: linear-gradient(135deg, #3b82f6, #6366f1); box-shadow: 0 2em 4em rgba(20, 22, 28, 0.35); animation: mtap 2.4s ease-in-out calc(var(--s) + 1s) both; }
.m-nfc__card span { position: absolute; left: 2.2em; top: 3.6em; width: 4.2em; height: 3.2em; border-radius: 0.7em; background: linear-gradient(135deg, #f3d27a, #c99a2e); }
/* Ausweisleser in der Lupe: grünes Licht blinkt = bereit */
.m-zoom__reader { position: relative; width: 32.8em; aspect-ratio: 803 / 418; }
.m-zoom__readerimg { position: absolute; inset: 0; width: 100%; height: 100%; }
.m-zoom__led { position: absolute; left: 23%; top: 52.5%; width: 5em; height: 5em; margin: -2.5em 0 0 -2.5em; border-radius: 50%; background: radial-gradient(circle, #f0fff6 0 10%, #2fd67b 26%, rgba(47, 214, 123, 0.35) 46%, rgba(47, 214, 123, 0) 70%); opacity: 0; animation: mledblink 0.9s ease-in-out calc(var(--s) + 1.3s) infinite; }
@keyframes mtap {
    0%   { transform: translate(4em, -16em) rotate(14deg); opacity: 0; }
    25%  { opacity: 1; }
    50%, 70% { transform: translate(0, 0) rotate(-6deg); opacity: 1; }
    100% { transform: translate(6em, -16em) rotate(12deg); opacity: 0; }
}

/* Unser Automat (Foto) mit pulsierenden Markierungen, Lupe und Verbindungslinien */
.m-vm { position: relative; flex: none; height: var(--h); aspect-ratio: 524 / 744; }
.m-vm__img { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 2.6em 3em rgba(20, 22, 28, 0.35)); }
.m-vm__spot { position: absolute; z-index: 3; width: var(--w); height: var(--hh); margin: calc(var(--hh) * -0.5) 0 0 calc(var(--w) * -0.5); border-radius: 99em; border: 0.55em solid #ff2b2b; box-shadow: 0 0 0 0.35em rgba(255, 255, 255, 0.9), 0 0 2.4em 0.4em rgba(255, 43, 43, 0.75); animation: a-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--s) + var(--t)) both, mspot 0.9s ease-in-out calc(var(--s) + var(--t) + 0.6s) infinite alternate; }
@keyframes mspot { to { transform: scale(1.14); } }
.m-intro { display: flex; align-items: center; gap: 5em; }
.m-intro .m-badge18 { font-size: 0.68em; }
/* Zeile 84 × 58 em: Automat links, Lupe rechts; Linien als SVG in em-Koordinaten */
.m-vmrow { position: relative; display: flex; align-items: center; width: 84em; height: 58em; text-align: left; }
.m-vmrow__links { position: absolute; z-index: 2; left: 0; top: 0; width: 84em; height: 58em; overflow: visible; fill: #ff2b2b; stroke: #ff2b2b; stroke-width: 0.45; stroke-dasharray: 1.3 0.9; stroke-linecap: round; }
.m-vmrow__links circle { stroke: none; }
.m-zoompos { position: absolute; z-index: 3; right: 0; top: 0; bottom: 0; display: flex; align-items: center; }
.m-zoom { padding: 1.6em; border-radius: 3.6em; background: #fff; border: 0.5em solid #ff2b2b; box-shadow: 0 2.4em 4.4em -1.4em rgba(20, 22, 28, 0.4); }
.m-zoom .m-keypad { font-size: 0.7em; box-shadow: none; }
.m-zoom .m-keypad__price { font-size: 2.4em; white-space: nowrap; }
.m-zoom--cash { display: flex; flex-direction: column; align-items: center; gap: 2.2em; width: 37em; padding: 2em 2em 2.6em; }
.m-cash__notes--mini { width: 32em; height: 14em; }
.m-cash__notes--mini .m-cash__note { top: 1.5em; }
.m-cash__coins--mini { gap: 0.8em; }
/* Produkt fällt hinter der Glasfront nach unten, dann Klappe „PUSH“ drücken */
.m-vm__window { position: absolute; z-index: 1; left: 10.9%; top: 9.7%; width: 52.5%; height: 60.5%; overflow: hidden; }
.m-vm__drop { position: absolute; left: 43%; top: 58%; width: 3.2em; animation: mvmdrop 1.7s ease-in calc(var(--s) + 0.3s) both; }
.m-vm__dropimg { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 0.6em #fff) drop-shadow(0 0 1.4em rgba(255, 43, 43, 0.9)); }
@keyframes mvmdrop {
    0%   { opacity: 0; transform: scale(0.4); }
    18%  { opacity: 1; transform: scale(1.25); }
    30%, 45% { transform: scale(1) rotate(0deg); }
    53%  { transform: rotate(-10deg); }
    61%  { transform: rotate(10deg); }
    68%  { transform: translateY(0) rotate(0deg); animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
    100% { opacity: 1; transform: translateY(24em) rotate(150deg); }
}
.m-vm__press { position: absolute; z-index: 4; display: grid; place-items: center; width: 8em; height: 8em; margin: -4em 0 0 -4em; border-radius: 50%; color: #fff; background: var(--grad); box-shadow: 0 1em 2.4em rgba(255, 43, 43, 0.45); animation: a-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--s) + 2.4s) both, mpush 0.45s ease-in-out calc(var(--s) + 2.9s) 4 alternate; }
.m-vm__press .icon { width: 4.6em; height: 4.6em; }
@keyframes mpush { to { transform: scale(0.84); } }
.m-out { position: absolute; z-index: 4; left: 54em; top: 20em; animation: mout 0.9s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--s) + 3.6s) both; }
.m-out__img { display: block; height: 28em; width: auto; filter: drop-shadow(0 2.4em 2.6em rgba(20, 22, 28, 0.3)); }
@keyframes mout { from { opacity: 0; transform: translate(-36em, 20em) scale(0.2) rotate(-70deg); } 35% { opacity: 1; } }
/* Wichtig: Geld drin = kaufen – Schein und Münze fliegen in Scheinprüfer und Münzeinwurf */
.m-vmrow--rules { justify-content: space-between; }
.m-vmrow--rules .m-rules { width: 44em; }
.m-vmrow--rules .m-rule b { width: 6.5em; height: 6.5em; }
.m-vmrow--rules .m-rule span { font-size: 3.3em; }
.m-fly { position: absolute; z-index: 4; }
.m-fly--note { width: 13em; margin: -3.4em 0 0 -6.5em; animation: mflynote 1.4s cubic-bezier(0.45, 0, 0.3, 1) calc(var(--s) + 0.6s) both; }
.m-fly--coin { width: 6em; margin: -3em 0 0 -3em; animation: mflycoin 1.2s cubic-bezier(0.45, 0, 0.3, 1) calc(var(--s) + 1.5s) both; }
@keyframes mflynote { 0% { opacity: 0; transform: translate(30em, 16em) rotate(20deg); } 15% { opacity: 1; } 75% { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(0.45); } 100% { opacity: 0; transform: translate(0, 0) scale(0.1); } }
@keyframes mflycoin { 0% { opacity: 0; transform: translate(28em, 24em) rotate(-220deg); } 15% { opacity: 1; } 75% { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(0.55); } 100% { opacity: 0; transform: translate(0, 0) scale(0.15); } }
.m-rules { display: flex; flex-direction: column; gap: 2.4em; width: 48em; }
.m-rule { display: flex; align-items: center; gap: 2.2em; padding: 2em 2.4em; border-radius: 2.6em; text-align: left; background: var(--card); border: 0.2em solid var(--card-line); box-shadow: var(--card-shadow); }
.m-rule b { flex: none; display: grid; place-items: center; width: 7.5em; height: 7.5em; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #ff3b3b, #ff7a1c); }
.m-rule b .icon { width: 4.2em; height: 4.2em; stroke-width: 3; }
.m-rule span { font-size: 3.6em; font-weight: 750; line-height: 1.15; }
.m-rule--ok { background: #f0fdf4; border-color: rgba(34, 197, 94, 0.45); }
.m-rule--ok b { background: linear-gradient(135deg, #22c55e, #0d9488); }

/* Wichtig: keine Freigabe, aber Geld drin → Produkt ohne Altersbeschränkung */
.m-noage { display: flex; flex-direction: column; align-items: center; gap: 6.5em; }
.m-noage__status { display: flex; align-items: center; gap: 3em; }
.m-led--xs { width: 15em; height: 15em; }
.m-led--xs .m-led__core { width: 10em; height: 10em; }
.m-led--xs .m-led__core .icon { width: 5em; height: 5em; }
.m-noage__plus { display: grid; place-items: center; width: 6em; height: 6em; border-radius: 50%; color: rgba(20, 22, 28, 0.55); background: var(--card); box-shadow: var(--card-shadow); }
.m-noage__plus .icon { width: 3.4em; height: 3.4em; stroke-width: 3; }
.m-noage__coins { position: relative; width: 26em; height: 13em; }
.m-noage__coin { position: absolute; top: 50%; animation: mcoin 0.8s cubic-bezier(0.3, 1.3, 0.6, 1) calc(var(--s) + var(--t)) both; }
.m-coin--a { left: 0; z-index: 3; width: 12.5em; margin-top: -6.25em; }
.m-coin--b { left: 8em; z-index: 2; width: 11.5em; margin-top: -5.75em; }
.m-coin--c { left: 15em; z-index: 1; width: 11.5em; margin-top: -5.75em; }
.m-noage__shelf { display: flex; align-items: flex-end; gap: 7em; }
.m-pick { position: relative; filter: drop-shadow(0 2.4em 2.6em rgba(20, 22, 28, 0.3)); }
.m-pick__img { display: block; height: 28em; width: auto; }
.m-pick--no .m-pick__img { animation: mgrey 0.6s ease calc(var(--s) + 2.3s) both; }
@keyframes mgrey { to { filter: grayscale(1); opacity: 0.4; } }
.m-pick__badge { position: absolute; right: -3em; top: -2.4em; display: grid; place-items: center; width: 7.5em; height: 7.5em; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #ff3b3b, #ff9f1c); }
.m-pick--ok .m-pick__badge { background: linear-gradient(135deg, #22c55e, #0d9488); }
.m-pick__badge .icon { width: 4em; height: 4em; stroke-width: 3; }
.m-pick__img--bag { height: 24em; }
.m-tip { display: flex; align-items: center; gap: 1.4cqmin; margin: 0.6cqmin 0 0; padding: 1.2cqmin 2cqmin; border-radius: 2cqmin; font-size: 2.8cqmin; line-height: 1.3; text-align: left; color: #5b3a00; background: #fff7e6; border: 0.25cqmin solid rgba(255, 159, 28, 0.5); }
.m-tip .icon { flex: none; width: 1.3em; height: 1.3em; color: #f59e0b; }
@container motion (orientation: landscape) {
    .ms .m-tip { font-size: min(2.8cqmin, 1.8cqw); }
}

/* Zusammenfassung */
.m-list { display: flex; flex-direction: column; gap: 2em; width: 82em; text-align: left; }
.m-li { display: flex; align-items: center; gap: 2.6em; padding: 2em 2.8em; border-radius: 2.6em; background: var(--card); border: 0.2em solid var(--card-line); box-shadow: var(--card-shadow); }
.m-li b { flex: none; display: grid; place-items: center; width: 7em; height: 7em; border-radius: 2em; color: #fff; background: var(--grad); }
.m-li b span { font-size: 3.6em; font-weight: 850; }
.m-li > span { font-size: 3.6em; font-weight: 650; line-height: 1.25; }
.m-list .m-li { padding-top: 1.6em; padding-bottom: 1.6em; }
.m-li--warn { background: #fff7e6; border-color: rgba(255, 159, 28, 0.5); }
.m-li--warn b { background: linear-gradient(135deg, #ff9f1c, #ff3b3b); }
.m-li--warn b .icon { width: 4em; height: 4em; stroke-width: 2.6; }

/* ==========================================================================
   Störung
   ========================================================================== */

.m-warn { display: grid; place-items: center; width: 40em; height: 40em; border-radius: 50%; background: radial-gradient(circle, rgba(255, 140, 40, 0.22), transparent 68%); color: #f59e0b; }
.m-warn .icon { width: 26em; height: 26em; stroke-width: 1.8; filter: drop-shadow(0 1em 2em rgba(245, 158, 11, 0.45)); animation: mwobble 0.9s ease-in-out calc(var(--s) + 0.9s) 3; }
@keyframes mwobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-9deg); } 75% { transform: rotate(9deg); } }

.m-alarm { position: relative; display: grid; place-items: center; width: 36em; height: 36em; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #ff3b3b, #ff7a1c); box-shadow: 0 0 0 2.4em rgba(255, 59, 59, 0.12), 0 2em 6em rgba(255, 59, 59, 0.4); }
.m-alarm__icon { display: grid; place-items: center; animation: mshake 0.5s ease-in-out calc(var(--s) + 0.6s) infinite; }
.m-alarm__icon .icon { width: 20em; height: 20em; stroke-width: 2.2; }
@keyframes mshake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-10deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(6deg); } }
.m-stamp { position: absolute; right: -9em; bottom: 1em; transform: rotate(-12deg); }
.m-stamp span { display: block; padding: 0.25em 0.6em; border: 0.12em solid #fff; border-radius: 0.3em; font-size: 5.6em; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: #e0142b; box-shadow: 0 0.3em 1em rgba(20, 22, 28, 0.3); }

.m-scan { position: relative; width: 78em; height: 58em; }
.m-scan__qr { position: absolute; left: 3em; top: 10em; width: 36em; height: 36em; padding: 2.6em; border-radius: 2.8em; background: #fff; border: 0.25em solid var(--card-line); box-shadow: 0 2em 5em -1em rgba(20, 22, 28, 0.3); }
.m-scan__qr img, .m-phone__view img { width: 100%; height: 100%; object-fit: contain; }
.m-phone { position: absolute; right: 3em; top: 1em; width: 30em; height: 56em; border-radius: 4.6em; overflow: hidden; color: #fff; background: #0d0d12; border: 1em solid #2b2b35; box-shadow: 0 3em 6em -1em rgba(20, 22, 28, 0.45); }
.m-phone__screen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4em; background: #1b1526; }
.m-phone__view { position: relative; width: 20em; height: 20em; padding: 1.6em; border-radius: 1.4em; background: #fff; opacity: 0.9; box-shadow: 0 0 0 0.5em #fff; overflow: hidden; }
.m-phone__line { position: absolute; left: 0; right: 0; top: 0; height: 0.6em; background: #ff2b2b; box-shadow: 0 0 2em #ff2b2b; animation: mscanline 1.4s ease-in-out calc(var(--s) + 0.9s) 2 alternate; opacity: 0; }
@keyframes mscanline { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(19em); opacity: 1; } }
.m-phone__ok { display: flex; align-items: center; gap: 0.5em; padding: 0.6em 1em; border-radius: 99px; background: #25d366; color: #05210f; font-size: 2.6em; font-weight: 800; }

.m-chat { display: flex; flex-direction: column; width: 70em; height: 68em; border-radius: 3.6em; overflow: hidden; text-align: left; background: #efeae2; border: 0.3em solid var(--card-line); box-shadow: 0 3em 6em -1.5em rgba(20, 22, 28, 0.35); }
.m-chat__head { flex: none; display: flex; align-items: center; gap: 2em; padding: 2.4em 3em; color: #fff; background: #008069; }
.m-chat__avatar { display: grid; place-items: center; width: 3.2em; height: 3.2em; border-radius: 50%; color: #fff; background: var(--grad); font-size: 2.2em; font-weight: 900; }
.m-chat__name { display: flex; flex-direction: column; gap: 0.3em; }
.m-chat__name b { font-size: 3em; }
.m-chat__name em { font-size: 2.2em; font-style: normal; color: rgba(255, 255, 255, 0.82); }
.m-chat__body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 1.6em; padding: 2.4em 3em; }
.m-bubble { align-self: flex-end; display: flex; align-items: center; gap: 2.2em; max-width: 62em; padding: 1.6em 2.4em; border-radius: 2.6em 2.6em 0.7em 2.6em; background: #d9fdd3; box-shadow: 0 0.4em 1em rgba(20, 22, 28, 0.12); }
.m-bubble > .icon { width: 5em; height: 5em; flex: none; color: #128c7e; }
.m-bubble__txt { display: flex; flex-direction: column; gap: 0.5em; }
.m-bubble__txt strong { font-size: 3em; line-height: 1.15; }
.m-bubble__txt em { font-size: 2.3em; font-style: normal; color: rgba(20, 22, 28, 0.62); }
.m-bubble__tag { display: inline-block; padding: 0.2em 0.7em; border-radius: 99px; font-size: 0.85em; color: #fff; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; background: #ff3b3b; animation: mtagpulse 1s ease-in-out calc(var(--s) + 2.6s) infinite alternate; }
@keyframes mtagpulse { to { transform: scale(1.12); box-shadow: 0 0 1.4em rgba(255, 59, 59, 0.9); } }
.m-bubble--key { background: #c9f7c0; outline: 0.35em solid rgba(255, 59, 59, 0.75); }

.m-stuck { display: grid; grid-template-columns: 1fr 1fr; gap: 4em; width: 82em; }
.m-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2.6em; padding: 4.2em 2em 3.6em; border-radius: 3em; overflow: hidden; background: var(--card); border: 0.2em solid var(--card-line); box-shadow: var(--card-shadow); }
.m-tile__icon { display: grid; place-items: center; width: 16em; height: 16em; border-radius: 4.2em; color: #fff; background: linear-gradient(135deg, #3b82f6, #6366f1); box-shadow: 0 1.6em 4em rgba(59, 130, 246, 0.4); }
.m-tile__icon--pay { background: var(--grad); box-shadow: 0 1.6em 4em rgba(255, 43, 43, 0.35); }
.m-tile__icon .icon { width: 8em; height: 8em; }
.m-tile__label { font-size: 3.4em; font-weight: 750; text-align: center; line-height: 1.2; }
.m-tile__typed { display: flex; align-items: center; height: 3.4em; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.m-typed { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; font-size: 2.6em; color: rgba(20, 22, 28, 0.78); animation: mtype 1.6s steps(14) calc(var(--s) + 1.8s) both; }
@keyframes mtype { from { width: 0; } to { width: 14ch; } }
.m-caret { width: 0.3em; height: 3em; margin-left: 0.2em; background: #ff2b2b; animation: mblink 1s steps(1) var(--s) infinite; }
@keyframes mblink { 50% { opacity: 0; } }
.m-flash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 35%, rgba(255, 214, 102, 0.75), rgba(255, 214, 102, 0) 60%); opacity: 0; animation: mflash 0.6s ease-out calc(var(--s) + 1.4s) both; }
@keyframes mflash { 0% { opacity: 0; } 15% { opacity: 0.9; } 100% { opacity: 0; } }
.m-nochip { grid-column: 1 / -1; justify-self: center; display: flex; align-items: center; gap: 0.5em; padding: 0.5em 1.1em; border-radius: 99px; font-size: 3em; font-weight: 750; background: rgba(255, 59, 59, 0.1); border: 0.07em solid rgba(255, 59, 59, 0.5); }
.m-nochip .icon { color: #e0142b; stroke-width: 3; }

.m-check { display: flex; flex-direction: column; align-items: center; gap: 6em; }
.m-checkrow { display: flex; align-items: center; gap: 4em; }
.m-cam { position: relative; display: grid; place-items: center; width: 26em; height: 26em; border-radius: 50%; overflow: hidden; background: var(--card); border: 0.3em solid var(--card-line); box-shadow: var(--card-shadow); }
.m-cam__sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(61, 123, 255, 0.55), transparent 28%); animation: mspin 2.2s linear var(--s) infinite; }
.m-cam .icon { position: relative; width: 12em; height: 12em; }
.m-dots { display: flex; gap: 2em; }
.m-dots i { width: 2.4em; height: 2.4em; border-radius: 50%; background: rgba(20, 22, 28, 0.3); }
.m-shield { display: grid; place-items: center; width: 26em; height: 26em; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #2fd67b, #12a8a0); box-shadow: 0 0 0 2em rgba(47, 214, 123, 0.14), 0 2em 6em rgba(47, 214, 123, 0.5); }
.m-shield .icon { width: 13em; height: 13em; stroke-width: 2.2; }
.m-days { display: flex; align-items: center; gap: 0.6em; padding: 0.6em 1.2em; border-radius: 99px; font-size: 3.2em; font-weight: 750; background: var(--card); border: 0.06em solid var(--card-line); box-shadow: var(--card-shadow); }
.m-days .icon { color: var(--brand); }

.m-hours { display: flex; flex-direction: column; gap: 2.4em; width: 74em; text-align: left; }
.m-hours__row { display: flex; align-items: center; gap: 3em; padding: 2.6em 3.4em; border-radius: 3em; background: var(--card); border: 0.2em solid var(--card-line); box-shadow: var(--card-shadow); }
.m-hours__row > span:last-child { display: flex; flex-direction: column; gap: 0.6em; }
.m-hours__row strong { font-size: 4.2em; font-weight: 850; }
.m-hours__row em { font-size: 3.4em; font-style: normal; color: rgba(20, 22, 28, 0.68); }
.m-hours__ico { flex: none; display: grid; place-items: center; width: 10em; height: 10em; border-radius: 2.8em; color: #fff; background: linear-gradient(135deg, #2fd67b, #12a8a0); }
.m-hours__ico .icon { width: 5em; height: 5em; }
.m-hours__row--off { background: #f3f4f7; }
.m-hours__row--off .m-hours__ico { background: linear-gradient(135deg, #ff9f1c, #ff3b3b); }

/* ==========================================================================
   Arabisch: Grafiken bleiben wie am echten Automaten (Ausweis links rein,
   rechts raus), nur die Texte laufen von rechts nach links.
   ========================================================================== */
[dir="rtl"] .motion { direction: ltr; }
[dir="rtl"] .motion :is(.ms__copy, .m-rule, .m-li, .m-tip, .m-bubble, .m-chat__head, .m-hours, .m-days, .m-nochip, .m-tile__label, .m-swipe__hints span, .m-beep span, .m-swipe__beep span, .m-phone__ok, .m-nfc__ok, .m-keypad__price, .m-credit) { direction: rtl; }
[dir="rtl"] .motion :is(.m-rule, .m-li, .m-list, .m-hours, .m-chat, .m-tip) { text-align: start; }
/* Arabische Schrift wirkt bei gleicher Schriftgröße kleiner */
html[lang="ar"] .motion .m-text { font-size: 3.85cqmin; }
html[lang="ar"] .motion .m-tip { font-size: 3.1cqmin; }
@container motion (orientation: landscape) {
    html[lang="ar"] .ms .m-text { font-size: min(3.85cqmin, 2.42cqw); }
    html[lang="ar"] .ms .m-tip { font-size: min(3.1cqmin, 2cqw); }
}
