/* Bildgestützte Hilfe: bestehende ZO24-Typografie und Farben, vollständig gekapselt. */
.code-help { --ch-blue: #0b4ea2; --ch-ink: #1a1a2e; --ch-muted: #4a5361; color: var(--ch-ink); margin: 20px 0; container-type: inline-size; font-family: var(--font-body, sans-serif); line-height: 1.55; }
.code-help *, .ch-dialog * { box-sizing: border-box; }
.code-help [hidden] { display: none !important; }
.code-help button, .ch-dialog button { appearance: none; font: inherit; cursor: pointer; min-height: 44px; border: 1px solid #9ba5b3; border-radius: 6px; color: var(--ch-blue, #0b4ea2); background: #fff; padding: 9px 13px; line-height: 1.3; transition: background 150ms, color 150ms; }
.code-help button:hover { background: #edf3fa; }
.code-help button:focus-visible, .code-help summary:focus-visible, .ch-dialog button:focus-visible { outline: 3px solid #0b4ea2; outline-offset: 3px; }
.code-help button[aria-pressed="true"] { background: var(--ch-blue); color: #fff; border-color: var(--ch-blue); }
.code-help .ch-documents { display: flex; flex-wrap: wrap; gap: 7px; padding-bottom: 18px; border-bottom: 1px solid #d9d4c8; }
.code-help .ch-heading { margin: 22px 0 16px; }
.code-help .ch-heading h3 { font-family: var(--font-display, sans-serif); font-size: clamp(20px, 4cqi, 27px); margin: 0 0 4px; line-height: 1.2; color: var(--ch-ink); }
.code-help .ch-heading p { font-size: 14px; color: var(--ch-muted); margin: 0; }
.code-help .ch-layout { display: grid; gap: 20px; }
.code-help .ch-visual { min-width: 0; }
.code-help .ch-stage { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid #d9d4c8; border-radius: 10px; background: #fff; isolation: isolate; }
.code-help .ch-overview { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity 250ms; }
.code-help .ch-overview img { display: block; width: 100%; height: 100%; max-height: 100%; object-fit: contain; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.code-help .ch-closeup { position: absolute; width: 76%; aspect-ratio: 251 / 180; left: 12%; top: 15%; opacity: 0; transform: scale(.86); transition: opacity 250ms, transform 550ms cubic-bezier(.16,1,.3,1); }
.code-help.ch-detail .ch-overview { opacity: 0; }
.code-help.ch-detail .ch-closeup { opacity: 1; transform: scale(1); }
.code-help .ch-crop { position: absolute; inset: 0; overflow: hidden; border-radius: 5px; background: #fff; }
.code-help .ch-crop img { position: absolute; width: 159.363%; max-width: none; height: auto; left: -24.303%; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.code-help .ch-cover { transform-origin: left bottom; z-index: 2; }
.code-help .ch-cover img { top: -42.778%; }
.code-help .ch-after img { top: -176.111%; }
.code-help [data-ch-kind="plakette"] .ch-closeup { width: 66%; left: 17%; top: 6%; aspect-ratio: 1; }
.code-help [data-ch-kind="plakette"] .ch-crop { border-radius: 50%; }
.code-help [data-ch-kind="plakette"] .ch-crop img { width: 349.091%; left: -10.455%; top: -48.182%; }
.code-help [data-ch-kind="plakette"] .ch-after img { left: -239.091%; }
.code-help [data-ch-kind="brief"] .ch-closeup { width: 84%; left: 8%; top: 8%; aspect-ratio: 602 / 456; }
.code-help [data-ch-kind="brief"] .ch-crop img { width: 134.551%; left: -17.11%; top: 0; }
.code-help [data-ch-kind="fin"] .ch-closeup { width: 100%; inset: 0; height: 100%; aspect-ratio: auto; display: grid; place-items: center; }
.code-help [data-ch-kind="fin"] .ch-closeup img { width: 115%; max-width: none; transform: translateX(-6.5%); border: 0; margin: 0; }
.code-help .ch-motion-cue { position: absolute; z-index: 3; width: 52px; height: 58px; right: -18px; bottom: -20px; opacity: 0; pointer-events: none; }
.code-help .ch-hand { width: 48px; height: 54px; fill: #fff; stroke: #1a1a2e; stroke-width: 2; }
.code-help .ch-coin { display: none; width: 46px; height: 46px; border-radius: 50%; border: 4px solid #8a691d; background: #e5cd80; color: #493608; text-align: center; font: bold 26px/38px Georgia, serif; box-shadow: 0 2px 6px #0003; }
.code-help.ch-rub .ch-hand { display: none; }
.code-help.ch-rub .ch-coin { display: block; }
.code-help.ch-playing .ch-cover { animation: ch-peel 3.2s cubic-bezier(.65,0,.35,1) both; }
.code-help.ch-playing .ch-motion-cue { animation: ch-hand 3.2s cubic-bezier(.65,0,.35,1) both; }
.code-help.ch-playing.ch-rub .ch-cover { animation-name: ch-rub; }
.code-help.ch-playing.ch-rub .ch-motion-cue { right: 15%; bottom: 25%; animation-name: ch-coin; }
.code-help.ch-open .ch-cover { opacity: 0; }
.code-help .ch-picture-note, .code-help .ch-credit { margin: 9px 0; font-size: 12px; color: var(--ch-muted); }
.code-help .ch-picture-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.code-help .ch-picture-actions button { font-size: 13px; }
.code-help .ch-instructions { font-size: 15px; }
.code-help .ch-instructions > p { margin: 0 0 15px; }
.code-help .ch-variants { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 12px; }
.code-help .ch-play { background: var(--ch-blue); border-color: var(--ch-blue); color: #fff; font-weight: 600; width: 100%; }
.code-help .ch-play:hover { background: #083a78; }
.code-help .ch-status { min-height: 3.2em; margin-top: 12px !important; font-size: 14px; color: var(--ch-muted); }
.code-help .ch-warning { padding: 12px 14px; background: #f7f5f0; border: 1px solid #d9d4c8; border-radius: 6px; font-size: 13px; }
.code-help .ch-originals { border-top: 1px solid #d9d4c8; margin-top: 22px; padding-top: 12px; }
.code-help .ch-originals summary { padding: 8px 0; cursor: pointer; font-size: 14px; color: var(--ch-blue); }
.code-help .ch-originals figure { margin: 20px 0; }
.code-help .ch-originals img { width: auto; max-width: 100%; height: auto; max-height: 575px; display: block; margin: auto; }
.code-help .ch-originals figcaption { font-size: 13px; margin-top: 8px; color: var(--ch-muted); text-align: center; }
.ch-dialog { max-width: min(94vw, 1100px); width: max-content; max-height: 94dvh; overflow: auto; border: 1px solid #9ba5b3; border-radius: 10px; padding: 18px; background: #fff; color: #1a1a2e; }
.ch-dialog::backdrop { background: #101725cc; }
.ch-dialog button { display: block; margin: 0 0 15px auto; }
.ch-dialog img { display: block; max-width: 100%; max-height: 70dvh; object-fit: contain; margin: auto; }
.ch-dialog p { font: 14px/1.5 var(--font-body, sans-serif); }
@container (min-width: 680px) { .code-help .ch-layout { grid-template-columns: 1.2fr 1fr; gap: 26px; } }
@keyframes ch-peel { 0%, 12% { transform: none; opacity: 1; } 70% { transform: translate(-75%, 30%) rotate(-18deg) skewY(-10deg); opacity: .9; } 100% { transform: translate(-115%, 55%) rotate(-28deg); opacity: 0; } }
@keyframes ch-hand { 0% { opacity: 0; transform: none; } 15% { opacity: 1; transform: none; } 75% { opacity: 1; transform: translate(-180%, 65%) rotate(-18deg); } 100% { opacity: 0; transform: translate(-240%, 80%) rotate(-28deg); } }
@keyframes ch-rub { 0%, 10% { clip-path: inset(0); } 30% { clip-path: inset(0 0 25%); } 50% { clip-path: inset(0 0 50%); } 70% { clip-path: inset(0 0 75%); } 100% { clip-path: inset(0 0 100%); } }
@keyframes ch-coin { 0% { opacity: 0; transform: translate(0, 60%); } 10% { opacity: 1; transform: translate(0, 60%); } 25% { transform: translate(-250%, 30%); } 40% { transform: translate(0, -10%); } 55% { transform: translate(-250%, -55%); } 70% { transform: translate(0, -100%); } 85% { opacity: 1; transform: translate(-250%, -150%); } 100% { opacity: 0; transform: translate(0, -180%); } }
@media (prefers-reduced-motion: reduce) { .code-help *, .code-help *::before, .code-help *::after { animation: none !important; transition: none !important; } }

.code-help .ch-stage[data-ch-kind="etikett"] { aspect-ratio: 4 / 5; }
.code-help .ch-overview img { position: absolute; inset: 0; min-height: 0; min-width: 0; }
