:root{--ink:#122033;--muted:#66758a;--paper:#f3f6fb;--line:#dce3ed;--navy:#08182c;--purple:#7154d9;--purple-2:#9a73f0;--cyan:#20c6e7;--orange:#ffab19;--motion:#4c97ff;--looks:#9966ff;--sense:#5cb1d6;--control:#ffab19;--event:#ffbf00;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper)}button{font:inherit}.skip-link{position:absolute;left:-999px;z-index:100;background:#fff;padding:.75rem}.skip-link:focus{left:1rem;top:1rem}.scratch-lesson{min-height:100vh;min-height:100dvh;overflow:hidden;background:radial-gradient(circle at 15% 10%,#fff,transparent 34rem),var(--paper)}.scratch-topbar{position:fixed;z-index:30;inset:0 104px auto 0;height:72px;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:1rem;padding:0 clamp(1rem,3vw,2.5rem);border-bottom:1px solid rgba(220,227,238,.9);background:rgba(255,255,255,.94);backdrop-filter:blur(14px)}.scratch-brand{display:flex;align-items:center;gap:.8rem;min-width:0;color:inherit;text-decoration:none;font-weight:900}.scratch-brand>span:first-child{display:grid;width:42px;height:42px;place-items:center;border-radius:13px;color:#fff;background:linear-gradient(135deg,var(--purple),var(--cyan))}.scratch-brand>span:last-child{display:grid;line-height:1.12}.scratch-brand small{color:var(--muted);font-size:.68rem;font-weight:750}.scratch-progress{display:flex;align-items:center;gap:.8rem;color:var(--muted);font-size:.8rem;font-weight:850}.scratch-progress i{display:block;width:140px;height:7px;overflow:hidden;border-radius:10px;background:#e5eaf2}.scratch-progress b{display:block;width:25%;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--purple),var(--cyan));transition:width .3s}.scratch-back{justify-self:end;display:inline-flex;align-items:center;gap:.35rem;min-height:40px;padding:.45rem .7rem;border:1px solid #ccd6e4;border-radius:10px;color:#203653;background:#fff;font-size:.78rem;font-weight:850;text-decoration:none;white-space:nowrap}.scratch-stage{position:fixed;inset:72px 104px 0 0;overflow:hidden}.scratch-slide{height:100%;overflow:auto;padding:clamp(1.15rem,2.8vh,2.2rem) clamp(1rem,3.6vw,3.6rem) 6rem}.scratch-slide[hidden]{display:none}.scratch-slide-inner{width:min(1240px,100%);margin:0 auto}.scratch-kicker{margin:0 0 .45rem;color:var(--purple);font-size:.75rem;font-weight:950;letter-spacing:.13em;text-transform:uppercase}.scratch-slide h1{margin:0;font-size:clamp(2.1rem,4.5vw,4.5rem);line-height:.98;letter-spacing:-.055em}.scratch-lead{max-width:720px;margin:1rem 0 1.35rem;color:var(--muted);font-size:clamp(1rem,1.5vw,1.16rem);line-height:1.55}.scratch-lead.compact{max-width:960px;margin:.7rem 0 1rem}.slide-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:2rem;margin-bottom:.6rem}.step-badge{display:grid;width:72px;height:72px;flex:0 0 auto;place-items:center;border:1px solid #d7dfea;border-radius:22px;color:var(--purple);background:#fff;font-size:1.35rem;font-weight:950;box-shadow:0 12px 30px rgba(35,34,75,.06)}kbd{display:inline-grid;min-width:1.9em;min-height:1.8em;padding:.16em .45em;place-items:center;border:1px solid #bac5d3;border-bottom-width:3px;border-radius:6px;background:#fff;color:#243247;font:800 .82em/1 system-ui}.scratch-rail{position:fixed;z-index:40;inset:0 0 0 auto;width:104px;display:flex;flex-direction:column;background:var(--navy)}.scratch-rail button{position:relative;flex:1;min-height:0;padding:.45rem;border:0;border-bottom:1px solid rgba(255,255,255,.09);color:#8ea1b8;background:transparent;cursor:pointer}.scratch-rail button::before{position:absolute;inset:0 auto 0 0;width:4px;content:""}.scratch-rail span,.scratch-rail b{display:block}.scratch-rail span{font-size:.67rem;font-weight:950}.scratch-rail b{margin-top:.25rem;font-size:.68rem;line-height:1.15}.scratch-rail button:hover,.scratch-rail button.is-current{color:#fff;background:#122a47}.scratch-rail button.is-current::before{background:var(--cyan)}.prev-arrow,.next-arrow{position:fixed;z-index:20;bottom:1rem;display:flex;align-items:center;gap:.65rem;padding:.72rem 1rem;border-radius:999px;cursor:pointer;font-weight:900}.prev-arrow{left:1.2rem;border:1px solid #cbd5e3;color:#263952;background:#fff;box-shadow:0 12px 30px rgba(7,28,53,.13)}.next-arrow{right:calc(104px + 1.2rem);border:0;color:#fff;background:var(--navy);box-shadow:0 12px 30px rgba(7,28,53,.25)}.prev-arrow:disabled,.next-arrow:disabled{visibility:hidden}
.cover-slide{background:radial-gradient(circle at 22% 30%,rgba(120,83,230,.18),transparent 28rem),linear-gradient(135deg,#f8f7ff,#edf7ff)}.cover-grid{display:grid;grid-template-columns:.8fr 1.2fr;align-items:center;gap:clamp(1.5rem,4vw,4rem);min-height:calc(100vh - 150px)}.cover-copy h1 em{color:var(--purple);font-style:normal}.control-pills{display:flex;flex-wrap:wrap;gap:.55rem;margin:1.2rem 0}.control-pills span{padding:.55rem .7rem;border:1px solid #d7deea;border-radius:10px;background:rgba(255,255,255,.75);font-size:.82rem;font-weight:800}.mission-button{display:inline-flex;align-items:center;gap:1rem;margin-top:.4rem;padding:.85rem 1.15rem;border:0;border-radius:12px;color:#fff;background:linear-gradient(135deg,var(--purple),#5635bd);box-shadow:0 12px 24px rgba(99,72,190,.22);cursor:pointer;font-weight:900}.mission-button span{font-size:1.25rem}.download-link{display:block;width:max-content;margin-top:.8rem;color:#526177;font-size:.78rem;font-weight:800}.game-shell{overflow:hidden;border:1px solid rgba(255,255,255,.3);border-radius:22px;background:#06111f;box-shadow:0 35px 70px rgba(8,24,44,.25)}.game-head,.game-foot{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.7rem 1rem;color:#87a5bf;background:#0c1d30;font:800 .63rem/1 monospace;letter-spacing:.08em}.game-head>span:first-child{display:flex;gap:.35rem}.game-head i{display:block;width:8px;height:8px;border-radius:50%;background:#263e55}.game-head i:first-child{background:#ff6b70}.game-head i:nth-child(2){background:#ffd257}.game-head i:nth-child(3){background:#5be38b}.game-status{color:#62e59c}.game-wrap{position:relative;aspect-ratio:4/3;background:#020810}#spaceGame{display:block;width:100%;height:100%;outline:none}.game-overlay{position:absolute;inset:0;display:grid;align-content:center;justify-items:center;padding:2rem;text-align:center;color:#fff;background:radial-gradient(circle,rgba(38,46,95,.2),rgba(1,7,14,.78))}.game-overlay.is-hidden{display:none}.game-overlay .mini-label{color:var(--cyan);font:900 .62rem/1 monospace;letter-spacing:.2em}.game-overlay strong{margin:.6rem 0;font:950 clamp(2rem,5vw,4rem)/.85 system-ui;letter-spacing:-.06em}.game-overlay p{max-width:340px;color:#aebfd0}.game-overlay button{padding:.75rem 1rem;border:1px solid rgba(255,255,255,.32);border-radius:9px;color:#08182c;background:var(--cyan);cursor:pointer;font-weight:950}.game-foot span{color:#7c94aa}.game-foot b{color:#fff}.game-foot span:nth-child(2) b{color:#58ff85}
.task-grid{display:grid;grid-template-columns:.78fr 1.55fr .88fr;gap:1rem;align-items:stretch}.task-card,.reference-frame{margin:0;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 12px 32px rgba(30,42,70,.06)}.task-card{position:relative;padding:1.25rem}.task-card h2{margin:.15rem 0 1rem;font-size:1.2rem}.task-number{position:absolute;top:1rem;right:1rem;color:#c6cfdd;font-size:1.4rem;font-weight:950}.checklist{display:grid;gap:.75rem;margin:0;padding-left:1.2rem;line-height:1.45}.checklist li::marker{color:var(--purple);font-weight:950}.editor-tools{display:grid;grid-template-columns:1fr 1fr;gap:.45rem;margin-top:1rem}.editor-tools span{padding:.6rem;border-radius:9px;background:#f2efff;color:#6750aa;font-size:.72rem}.editor-tools b{display:block;color:#3b4659}.reference-frame{overflow:hidden;background:#e8edf5}.reference-frame img{display:block;width:100%;height:clamp(270px,48vh,530px);object-fit:cover;object-position:center}.reference-frame figcaption{padding:.6rem .8rem;color:#5e6b80;background:#fff;font-size:.72rem;font-weight:700}.focus-card{background:linear-gradient(155deg,#fff,#f1f9ff)}.must-do{display:flex;align-items:center;gap:.75rem;padding:.8rem 0;border-bottom:1px solid var(--line)}.must-do:last-child{border-bottom:0}.must-do p{margin:0;color:#59677b;font-size:.84rem;line-height:1.45}.must-do strong{color:var(--ink)}.direction-arrow{color:#ff4f55;font-size:2.7rem;font-weight:950}.crosshair{display:grid;width:52px;height:52px;flex:0 0 auto;place-items:center;border:1px dashed #7d8fa6;border-radius:50%;color:var(--purple);font-size:2rem}.flipbook-note{display:flex;align-items:center;gap:.7rem;margin-top:1rem;padding:.8rem 1rem;border-left:5px solid var(--purple);border-radius:0 14px 14px 0;background:#fff}.flipbook-note span{display:grid;width:34px;height:34px;place-items:center;border-radius:7px;color:#fff;background:var(--purple);font-weight:900}.flipbook-note span:nth-child(2){opacity:.78}.flipbook-note span:nth-child(3){opacity:.55}.flipbook-note p{margin:0;color:#536176;font-size:.85rem}.flipbook-note strong{color:var(--ink)}
.coding-layout{display:grid;grid-template-columns:.75fr 1.25fr;gap:1rem}.challenge-card,.variable-demo{padding:1.3rem;border-radius:20px;color:#fff;background:linear-gradient(145deg,#12233d,#0a1729);box-shadow:0 18px 40px rgba(8,24,44,.15)}.challenge-card h2,.variable-demo h2{margin:.1rem 0 1rem;font-size:1.35rem}.mission-list{display:grid;gap:.65rem;margin:0;padding-left:1.2rem;color:#d4deea;line-height:1.45}.mission-list li::marker{color:var(--cyan)}.block-palette{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:1.2rem}.block-palette span{padding:.45rem .6rem;border-radius:7px;color:#fff;font-size:.68rem;font-weight:850}.event{background:var(--event)}.control{background:var(--control)}.sense{background:var(--sense)}.motion{background:var(--motion)}.looks{background:var(--looks)}.hint-ladder{display:grid;gap:.6rem}.hint-ladder details{overflow:hidden;border:1px solid var(--line);border-radius:14px;background:#fff}.hint-ladder summary{padding:.85rem 1rem;cursor:pointer;font-weight:850;list-style:none}.hint-ladder summary::-webkit-details-marker{display:none}.hint-ladder summary::after{float:right;content:"+";color:var(--purple);font-size:1.2rem}.hint-ladder details[open] summary::after{content:"−"}.hint-ladder summary span{display:inline-block;min-width:88px;margin-right:.55rem;padding:.35rem .45rem;border-radius:6px;color:#5c43a8;background:#eee9ff;font-size:.66rem;text-align:center;text-transform:uppercase;letter-spacing:.06em}.hint-ladder details>div{padding:0 1rem 1rem;color:#536176;line-height:1.5}.hint-ladder details p{margin:.2rem 0}.hint-ladder .solution{border-color:#bcaef0}.hint-ladder .solution summary{background:#f5f2ff}.hint-ladder .solution img{display:block;max-width:100%;max-height:55vh;margin:.5rem auto 0;border-radius:9px;background:#fff}.solution-note{padding:.65rem;border-radius:8px;background:#edf8ff;color:#35506b;font-size:.78rem}
.laser-intro{display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem;margin:.75rem 0 1rem}.laser-intro article{display:flex;align-items:center;gap:.8rem;padding:.9rem;border:1px solid var(--line);border-radius:15px;background:#fff}.laser-intro h2{margin:0 0 .25rem;font-size:1rem}.laser-intro p{margin:0;color:#657287;font-size:.76rem;line-height:1.4}.laser-beam{display:block;width:54px;height:9px;flex:0 0 auto;border-radius:99px;background:#62ff7b;box-shadow:0 0 12px #40ed70}.variable-box{display:grid;width:48px;height:36px;flex:0 0 auto;place-items:center;border-radius:8px;color:#fff;background:#ff8c1a;font-weight:950}.clone-stack{display:grid;width:48px;height:38px;flex:0 0 auto;place-items:center;border:2px solid #7d61d9;border-radius:7px;color:#7d61d9;box-shadow:5px -5px 0 #ded6fb;font-size:1.2rem}.laser-workbench{display:grid;grid-template-columns:.82fr 1.18fr;gap:1rem}.variable-demo{padding:1.15rem}.variable-demo .scratch-kicker{color:#74ddf2}.variable-demo ol{display:grid;gap:.45rem;margin:.9rem 0 0;padding-left:1.2rem;color:#d5deea;font-size:.78rem;line-height:1.45}.ammo-flow{display:flex;align-items:center;justify-content:space-between;gap:.4rem}.ammo-flow span{display:grid;min-width:62px;min-height:62px;place-items:center;padding:.35rem;border:1px solid rgba(255,255,255,.18);border-radius:12px;text-align:center;font-size:.63rem}.ammo-flow b{font-size:1.45rem}.ammo-flow i{color:#7edcf1;font-size:.62rem;font-style:normal;text-align:center}
@media(max-width:980px){.cover-grid{grid-template-columns:1fr;align-items:start}.cover-copy{padding-top:1rem}.cover-copy h1 br{display:none}.game-shell{width:min(680px,100%)}.task-grid{grid-template-columns:1fr 1.4fr}.focus-card{grid-column:1/-1}.coding-layout,.laser-workbench{grid-template-columns:1fr}.laser-intro{grid-template-columns:1fr}.reference-frame img{height:420px}}
@media(max-width:760px){.scratch-topbar{right:74px;height:64px;padding-inline:.6rem}.scratch-stage{inset:64px 74px 0 0}.scratch-rail{width:74px}.scratch-brand>span:first-child,.scratch-progress i,.scratch-back span{display:none}.scratch-brand small{display:none}.scratch-brand>span:last-child{font-size:.88rem}.scratch-progress{font-size:.7rem}.scratch-back{padding:.45rem .6rem}.scratch-slide{padding:.9rem .75rem 5.5rem}.scratch-slide h1{font-size:2rem}.step-badge{width:48px;height:48px;border-radius:14px;font-size:1rem}.next-arrow{right:calc(74px + .65rem);bottom:.7rem}.prev-arrow{left:.65rem;bottom:.7rem}.prev-arrow span,.next-arrow span{display:none}.task-grid{grid-template-columns:1fr}.focus-card{grid-column:auto}.reference-frame img{height:300px}.flipbook-note{align-items:flex-start}.flipbook-note span{display:none}.scratch-rail b{font-size:.56rem}.cover-grid{min-height:auto}.game-foot{font-size:.55rem}.hint-ladder summary span{min-width:72px}.laser-intro article{align-items:flex-start}}
@media(max-width:480px){.scratch-progress{display:none}.scratch-topbar{grid-template-columns:1fr auto}.scratch-back{grid-column:2}.game-head strong{display:none}.control-pills{display:none}.slide-heading{gap:.6rem}.ammo-flow i{font-size:.5rem}.ammo-flow span{min-width:50px}.reference-frame img{height:230px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Erweiterung: Schritte 4–8 */
.background-layout{display:grid;grid-template-columns:.8fr 1.2fr;gap:1rem}.background-copy{display:grid;align-content:start;gap:.8rem}.design-rule{display:flex;align-items:center;gap:.8rem;padding:1rem;border-radius:16px;background:#fff3cd;color:#65551b}.design-rule span{font-size:2rem}.design-rule p{margin:0;font-size:.82rem;line-height:1.45}.compact-hints{margin-top:0}.image-pair{display:grid;grid-template-columns:1fr .38fr;gap:.7rem}.image-pair figure{overflow:hidden;margin:0;border:1px solid var(--line);border-radius:18px;background:#fff}.image-pair img{display:block;width:100%;height:clamp(300px,54vh,570px);object-fit:cover;object-position:center}.image-pair .small-solution img{height:clamp(240px,42vh,430px);object-fit:contain;padding:.7rem}.image-pair figcaption{padding:.65rem .8rem;color:#5d6b7e;font-size:.7rem;font-weight:750}.mini-code{display:grid;align-content:start;justify-items:start;gap:2px;margin-top:.7rem}.mini-code b{display:block;max-width:100%;padding:.45rem .7rem;border-radius:7px;color:#fff;font-size:.7rem;line-height:1.25;font-weight:800}.hat{background:var(--event)}.clone-hat{background:#f4a41e}.loop,.if-block,.wait,.clone-block{background:var(--control)}.looks-block{background:var(--looks)}.var-block{background:#ff8c1a}.motion-block{background:var(--motion)}
.enemy-layout{display:grid;grid-template-columns:.75fr 1.25fr;gap:1rem}.enemy-plan{padding:1.2rem;border-radius:20px;color:#fff;background:linear-gradient(145deg,#12233d,#0a1729)}.enemy-plan h2{margin:.1rem 0 1rem;font-size:1.2rem}.variable-list{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}.variable-list span{padding:.65rem;border:1px solid rgba(255,255,255,.12);border-radius:9px;background:rgba(255,255,255,.06)}.variable-list b,.variable-list small{display:block}.variable-list b{color:#ffae48;font-size:.8rem}.variable-list small{margin-top:.2rem;color:#aebed0;font-size:.62rem}.spawn-diagram{display:flex;align-items:center;justify-content:space-between;gap:.4rem;margin:1rem 0}.spawn-diagram span{display:grid;min-width:70px;min-height:62px;place-items:center;padding:.35rem;border:1px solid rgba(255,255,255,.16);border-radius:10px;text-align:center;font-size:.62rem}.spawn-diagram i{color:#6edbf2;font-size:.56rem;font-style:normal;text-align:center}.source-compare{border:1px solid rgba(255,255,255,.14);border-radius:10px;background:rgba(255,255,255,.05)}.source-compare summary{padding:.65rem;cursor:pointer;color:#b9c9d9;font-size:.7rem;font-weight:800}.source-compare img{display:block;width:100%;max-height:45vh;object-fit:contain;background:#fff}.scratch-solution-grid{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}.scratch-solution-grid .mini-code{padding:.7rem;border-radius:12px;background:#f6f7fa}
.score-layout{display:grid;grid-template-columns:.8fr 1.2fr;gap:1rem;margin:.9rem 0}.scoreboard-demo{display:grid;grid-template-columns:1fr 1fr;gap:.7rem;padding:1rem;border-radius:18px;color:#fff;background:#08182c}.scoreboard-demo span{padding:.8rem;border:1px solid #29415d;border-radius:11px;background:#10243c}.scoreboard-demo small,.scoreboard-demo b{display:block}.scoreboard-demo small{color:#81dcef;font:800 .65rem monospace}.scoreboard-demo b{font:950 2rem monospace}.scoreboard-demo div{grid-column:1/-1;color:#b8c7d5;font-size:.75rem;line-height:1.6}.scoreboard-demo strong{color:#59ef8c}.rules-card{padding:1rem 1.2rem;border:1px solid var(--line);border-radius:18px;background:#fff}.rules-card h2{margin:.1rem 0 .5rem}.rules-card p{color:#5d6b7f;line-height:1.5}.rules-card code{padding:.15rem .3rem;border-radius:5px;color:#b85b00;background:#fff0df;font-weight:800}.state-switch{display:flex;align-items:center;justify-content:space-between;gap:.4rem;margin-top:1rem}.state-switch span{padding:.5rem;border-radius:8px;background:#eef1f6;font-size:.65rem;font-weight:850;text-align:center}.state-switch span.active{color:#fff;background:#27a05d}.state-switch i{color:#79879a;font-size:.58rem;font-style:normal}.score-hints{grid-template-columns:repeat(3,1fr)}.score-hints .solution{grid-column:1/-1}.horizontal-code{display:flex;flex-wrap:wrap;align-items:flex-start;gap:.25rem;padding:.8rem;border-radius:12px;background:#f5f6f9}.horizontal-code b{width:auto}
.tuning-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.7rem;margin:1rem 0}.tuning-grid article{padding:1rem;border:1px solid var(--line);border-radius:16px;background:#fff}.tuning-grid article>span{color:#7557dc;font-size:1.35rem;font-weight:950}.tuning-grid h2{margin:.25rem 0 .45rem;font-size:1rem}.tuning-grid p{margin:0;color:#617085;font-size:.75rem;line-height:1.45}.tuning-hints{grid-template-columns:1fr 1fr}.tuning-hints .solution{grid-column:1/-1}
.menu-flow{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;gap:.7rem;margin:1rem 0}.menu-flow article{padding:.8rem;border:1px solid var(--line);border-radius:14px;background:#fff;text-align:center}.menu-flow article.playing{color:#fff;background:#142a46}.menu-flow article span{color:#7e64db;font-weight:950}.menu-flow h2{margin:.1rem;font-size:1rem}.menu-flow p{margin:.2rem;color:#69778b;font-size:.66rem}.menu-flow .playing p{color:#bdd0e2}.menu-flow>i{color:#6f7d90;font-size:.6rem;font-style:normal;text-align:center}.menu-layout{display:grid;grid-template-columns:.7fr 1.3fr;gap:1rem}.broadcast-card{padding:1.2rem;border-radius:20px;color:#fff;background:linear-gradient(145deg,#12233d,#0a1729)}.broadcast-card h2{margin:.1rem 0 .8rem}.broadcast-card h3{margin:1rem 0 .4rem;font-size:.8rem}.broadcast-card p,.broadcast-card li{color:#c6d2df;font-size:.72rem;line-height:1.45}.broadcast-card ul{margin:.4rem 0;padding-left:1.1rem}.broadcasts{display:flex;flex-wrap:wrap;gap:.4rem}.broadcasts span{padding:.5rem .65rem;border-radius:7px;color:#402c00;background:var(--event);font-size:.68rem;font-weight:900}.change-table{width:100%;border-collapse:collapse;font-size:.7rem}.change-table th,.change-table td{padding:.55rem;border-bottom:1px solid var(--line);text-align:left}.change-table thead th{color:#5f4aad;background:#f2efff}.change-table tbody th{white-space:nowrap}.scratch-rail b{overflow-wrap:anywhere}
@media(max-width:1050px){.background-layout,.enemy-layout,.score-layout,.menu-layout{grid-template-columns:1fr}.image-pair{grid-template-columns:1fr 1fr}.image-pair img{height:360px}.score-hints{grid-template-columns:1fr}.score-hints .solution{grid-column:auto}.tuning-grid{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.scratch-rail span{font-size:.55rem}.scratch-rail b{margin-top:.08rem;font-size:.48rem}.image-pair,.scratch-solution-grid,.tuning-grid,.tuning-hints{grid-template-columns:1fr}.tuning-hints .solution{grid-column:auto}.image-pair img{height:260px}.image-pair .small-solution img{height:220px}.menu-flow{grid-template-columns:1fr}.menu-flow>i{transform:rotate(90deg)}.variable-list{grid-template-columns:1fr 1fr}.spawn-diagram{align-items:stretch}.spawn-diagram span{min-width:56px}.state-switch{align-items:stretch;flex-direction:column}.state-switch i{transform:rotate(90deg)}}

/* Eigene Scratch-Bausteine: Kontrollblöcke enthalten ihre Unterblöcke sichtbar. */
.sb-board{display:grid;gap:1rem;align-items:start;overflow:auto;margin:.55rem 0;padding:1rem;border-radius:14px;background:#f4f5f8}.sb-board.sb-two{grid-template-columns:repeat(2,minmax(270px,1fr))}.sb-board.sb-three{grid-template-columns:repeat(2,minmax(235px,1fr))}.sb-board.sb-three>.sb-stack:last-child{grid-column:1/-1;width:min(340px,100%)}.sb-stack{display:flex;min-width:220px;flex-direction:column;align-items:flex-start;filter:drop-shadow(0 2px 1px rgba(25,35,55,.14))}.sb-block,.sb-c-head,.sb-c-foot{position:relative;min-height:31px;padding:.45rem .7rem;color:#fff;font-size:.72rem;font-weight:800;line-height:1.25;text-shadow:0 1px rgba(0,0,0,.12)}.sb-block{width:max-content;max-width:100%;border-radius:7px}.sb-block+.sb-block,.sb-block+.sb-c,.sb-c+.sb-block,.sb-c+.sb-c{margin-top:-1px}.sb-block i,.sb-c i{display:inline-block;padding:.15rem .42rem;border-radius:999px;color:#253247;background:#fff;font-style:normal;text-shadow:none}.sb-block b,.sb-c b{display:inline-block;padding:.12rem .38rem;border-radius:999px;color:#fff;background:rgba(0,0,0,.15);font-weight:850}.sb-event{background:#ffbf00}.sb-hat{padding-top:.7rem;border-radius:18px 18px 7px 7px}.sb-motion{background:#4c97ff}.sb-looks{background:#9966ff}.sb-var{background:#ff8c1a}.sb-control-flat{background:#ffab19}.sb-sense{display:inline-block;padding:.2rem .45rem;border-radius:999px;color:#fff;background:#5cb1d6;font-style:normal}.sb-operator{display:inline-block;padding:.2rem .48rem;border-radius:999px;color:#fff;background:#59c059;font-style:normal}.sb-c{width:100%;max-width:100%;color:#fff}.sb-c-head,.sb-c-foot{background:#ffab19}.sb-c-head{border-radius:8px 8px 0 0}.sb-c-foot{width:100%;height:13px;min-height:13px;padding:0;border-radius:0 0 7px 7px}.sb-mouth{min-height:26px;margin-left:14px;padding:5px 5px 5px 11px;border-left:11px solid #ffab19;background:#f4f5f8}.sb-mouth>.sb-block{max-width:100%}.sb-mouth>.sb-c{margin-top:2px}.sb-c .sb-c .sb-mouth{background:#f4f5f8}.single-image{grid-template-columns:1fr}.single-image figure{width:100%}.single-image img{object-fit:contain;background:#e9eef5}.solution .sb-board{color:var(--ink)}
@media(max-width:1000px){.sb-board.sb-three{grid-template-columns:1fr 1fr}.sb-board.sb-three>.sb-stack:last-child{grid-column:1/-1}}
@media(max-width:680px){.sb-board.sb-two,.sb-board.sb-three{grid-template-columns:1fr}.sb-board.sb-three>.sb-stack:last-child{grid-column:auto}.sb-block,.sb-c-head,.sb-c-foot{font-size:.64rem}.sb-board{padding:.65rem}}
.source-note{margin-top:.8rem;padding:.75rem;border:1px solid rgba(255,255,255,.14);border-radius:10px;color:#b9c9d9;background:rgba(255,255,255,.05);font-size:.7rem;line-height:1.45}

/* Extra 1: Variablen */
.extra-badge{color:#d86600;background:#fff5e8}.variable-explain-grid{display:grid;grid-template-columns:.85fr 1.25fr 1fr;gap:.75rem}.variable-explain-grid>article{padding:1rem;border:1px solid var(--line);border-radius:17px;background:#fff}.variable-explain-grid h2{margin:.1rem 0 .75rem;font-size:1.05rem}.variable-metaphor{display:grid;justify-items:center;align-content:start;text-align:center;background:linear-gradient(150deg,#fff8eb,#fff)!important}.label-tag{z-index:1;margin-bottom:-7px;padding:.35rem 1rem;border-radius:7px;color:#fff;background:#ff8c1a;font-size:.78rem;font-weight:900}.value-card{display:grid;width:110px;height:92px;place-items:center;border:4px solid #ff9b3c;border-radius:12px;color:#c85c00;background:#fff;font-size:2.2rem;font-weight:950;box-shadow:0 10px 20px rgba(255,140,26,.14)}.var-controls{display:flex;flex-wrap:wrap;justify-content:center;gap:.35rem;margin:.7rem 0}.var-controls button{padding:.38rem .55rem;border:1px solid #f0b26f;border-radius:7px;color:#9f4f00;background:#fff;cursor:pointer;font-size:.68rem;font-weight:850}.variable-metaphor p{margin:.3rem 0 0;color:#647185;font-size:.75rem;line-height:1.45}.variable-definition ol{display:grid;gap:.55rem;margin:.2rem 0;padding-left:1.2rem;color:#5e6c80;font-size:.78rem;line-height:1.45}.variable-definition li::marker{color:#ff8c1a;font-weight:900}.variable-definition strong{color:var(--ink)}.variable-definition code{padding:.1rem .28rem;border-radius:4px;color:#a64f00;background:#fff0df}.variable-definition aside{padding:.65rem;border-left:4px solid #ff8c1a;border-radius:0 8px 8px 0;background:#fff5e9;font-size:.72rem;line-height:1.4}.variable-why{display:grid;grid-template-columns:1fr 1fr;gap:.45rem}.variable-why h2{grid-column:1/-1}.variable-why>div{display:flex;gap:.45rem;padding:.55rem;border-radius:10px;background:#f5f7fa}.variable-why>div span{font-size:1.15rem}.variable-why p{margin:0;color:#68758a;font-size:.65rem;line-height:1.35}.variable-why strong{color:var(--ink)}.variable-examples{margin-top:.75rem;padding:.9rem 1rem;border:1px solid var(--line);border-radius:17px;background:#fff}.variable-examples h2{margin:.1rem 0 .7rem;font-size:1rem}.example-table{display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem}.example-table>div{padding:.65rem;border-radius:10px;background:#f4f6fa}.example-table b,.example-table span{display:block}.example-table b{color:#bf5d00;font-size:.72rem}.example-table span{margin:.25rem 0;color:#17263b;font:900 .85rem monospace}.example-table p{margin:0;color:#6b788b;font-size:.62rem}.variable-examples details{margin-top:.65rem;border-top:1px solid var(--line)}.variable-examples summary{padding:.6rem 0 0;cursor:pointer;font-size:.75rem;font-weight:850}.set-change{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin-top:.65rem}.set-change>div{padding:.65rem;border-radius:10px;background:#f5f6f9}.set-change p{margin:.5rem 0 0;color:#667488;font-size:.68rem;line-height:1.4}.variable-quiz{margin-top:.8rem;padding:1rem;border-radius:18px;background:#111f35}.quiz-head{display:flex;align-items:end;justify-content:space-between;gap:1rem}.quiz-head .scratch-kicker{color:#78e0f1}.quiz-head h2{margin:0;color:#fff}.quiz-head output{color:#a9bacb;font-size:.7rem;font-weight:850}.var-quiz-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.55rem;margin-top:.7rem}.var-question{padding:.7rem;border:1px solid #2d415d;border-radius:11px;background:#192b45}.var-question p{min-height:2.5em;margin:0 0 .55rem;color:#eef5fb;font-size:.7rem;font-weight:750;line-height:1.35}.var-question>div{display:flex;flex-wrap:wrap;gap:.3rem}.var-question button{padding:.38rem .5rem;border:1px solid #48607e;border-radius:6px;color:#c9d8e7;background:#223854;cursor:pointer;font-size:.62rem;font-weight:850}.var-question button:hover{border-color:#74d9ed}.var-question button.is-correct{border-color:#55dd8a;color:#092f18;background:#7bf0a5}.var-question button.is-wrong{border-color:#ff8496;color:#5e0714;background:#ffadba}.var-question output{display:block;min-height:1.1em;margin-top:.4rem;color:#9eb2c7;font-size:.6rem;font-weight:750}.var-question output.good{color:#79efa3}.var-question output.bad{color:#ff9dad}.quiz-reset{margin-top:.65rem;padding:.48rem .7rem;border:1px solid #506682;border-radius:8px;color:#d6e2ed;background:#213650;cursor:pointer;font-size:.68rem;font-weight:850}
@media(max-width:1050px){.variable-explain-grid{grid-template-columns:1fr 1fr}.variable-why{grid-column:1/-1}.example-table{grid-template-columns:1fr 1fr}.var-quiz-grid{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.variable-explain-grid,.var-quiz-grid,.set-change{grid-template-columns:1fr}.variable-why{grid-column:auto}.example-table{grid-template-columns:1fr 1fr}.quiz-head{align-items:flex-start;flex-direction:column}.var-question p{min-height:auto}}

/* Extra: downloadbare Grafiken */
.graphics-intro{display:grid;grid-template-columns:1.25fr .75fr;gap:.8rem;margin:.8rem 0}.graphics-intro>div,.graphics-intro aside{padding:1rem 1.1rem;border-radius:17px}.graphics-intro>div{border:1px solid var(--line);background:#fff}.graphics-intro>div strong{font-size:1rem}.graphics-intro p{margin:.35rem 0 0;color:#627086;font-size:.76rem;line-height:1.5}.graphics-intro aside{display:flex;align-items:center;gap:.7rem;color:#155b36;background:#e7f8ee}.graphics-intro aside>span{display:grid;width:38px;height:38px;flex:0 0 auto;place-items:center;border-radius:50%;color:#fff;background:#25a761;font-weight:950}.graphics-download-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.7rem}.graphics-card{display:flex;min-width:0;flex-direction:column;overflow:hidden;border:1px solid var(--line);border-radius:18px;background:#fff}.graphics-preview{display:grid;height:150px;place-items:center;padding:1rem}.graphics-preview.space-preview{background:radial-gradient(circle at 50% 40%,#273c59,#101d31)}.graphics-preview.backdrop-preview{padding:.55rem;background:#dce4ef}.graphics-preview img{display:block;max-width:100%;max-height:100%;object-fit:contain}.graphics-preview.space-preview img{filter:drop-shadow(0 7px 10px rgba(0,0,0,.34))}.graphics-preview.backdrop-preview img{width:100%;height:100%;border-radius:6px}.graphics-card-copy{display:flex;flex:1;align-items:flex-start;flex-direction:column;padding:.85rem}.asset-kind{padding:.25rem .42rem;border-radius:5px;font-size:.55rem;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.transparent-kind{color:#176139;background:#e2f7eb}.backdrop-kind{color:#4d3c92;background:#ece8ff}.graphics-card h2{margin:.45rem 0 .3rem;font-size:1rem}.graphics-card p{margin:0 0 .7rem;color:#69768a;font-size:.66rem;line-height:1.45}.graphics-download{display:flex;width:100%;align-items:center;justify-content:space-between;margin-top:auto;padding:.58rem .65rem;border-radius:8px;color:#fff;background:#7658d6;font-size:.65rem;font-weight:900;text-decoration:none}.graphics-download:hover{background:#6045bd}.graphics-download span{font-size:1rem;line-height:1}.graphics-import{display:grid;grid-template-columns:.7fr 1.7fr;gap:.8rem;margin-top:.8rem;padding:1rem;border-radius:18px;color:#fff;background:#102039}.graphics-import h2{margin:.15rem 0;font-size:1.1rem}.graphics-import .scratch-kicker{color:#7ce0f2}.graphics-import ol{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin:0;padding:0;list-style:none}.graphics-import li{display:flex;gap:.55rem;padding:.6rem;border:1px solid #2c425e;border-radius:10px;background:#182c47}.graphics-import li>span{display:grid;width:27px;height:27px;flex:0 0 auto;place-items:center;border-radius:7px;color:#102039;background:#7ce0f2;font-size:.7rem;font-weight:950}.graphics-import li p{margin:0;color:#b9c9d9;font-size:.62rem;line-height:1.35}.graphics-import li strong{display:block;margin-bottom:.15rem;color:#fff;font-size:.68rem}.graphics-import li em{color:#fff;font-style:normal;font-weight:850}.graphics-tip{grid-column:1/-1;margin:0;padding:.65rem .75rem;border-left:4px solid #ffbf00;border-radius:0 8px 8px 0;color:#c9d6e3;background:#182c47;font-size:.68rem;line-height:1.45}.graphics-tip strong{color:#fff}
@media(max-width:1050px){.graphics-download-grid{grid-template-columns:1fr 1fr}.graphics-import{grid-template-columns:1fr}.graphics-tip{grid-column:auto}}
@media(max-width:760px){.graphics-intro,.graphics-download-grid,.graphics-import ol{grid-template-columns:1fr}.graphics-preview{height:135px}.graphics-intro aside{align-items:flex-start}}

/* SVG-Vorschauen bleiben innerhalb ihrer Karten. */
.graphics-preview{overflow:hidden;box-sizing:border-box}
.graphics-preview img{width:100%!important;height:110px!important;max-width:none;max-height:none;object-fit:contain}

/* Extra: Kreativ-Mission */
.creative-badge{color:#fff;background:linear-gradient(135deg,#7a58d7,#ef5f9b)}.creative-hero{display:grid;grid-template-columns:1fr 180px;align-items:center;overflow:hidden;margin:.75rem 0;padding:1.15rem 1.3rem;border-radius:20px;color:#fff;background:linear-gradient(120deg,#101e34 0%,#172d4c 58%,#573ca0 100%)}.creative-overline{margin:0;color:#78dfef;font-size:.62rem;font-weight:950;letter-spacing:.12em}.creative-hero h2{margin:.25rem 0;font-size:1.45rem}.creative-hero h2 em{color:#ffca52;font-style:normal}.creative-hero p:last-child{max-width:760px;margin:.35rem 0 0;color:#c5d2df;font-size:.76rem;line-height:1.5}.creative-orbit{position:relative;display:grid;width:125px;height:125px;place-items:center;justify-self:center;border:1px solid rgba(255,255,255,.25);border-radius:50%}.creative-orbit::before,.creative-orbit::after{position:absolute;content:"";border:1px solid rgba(120,223,239,.42);border-radius:50%;transform:rotate(32deg)}.creative-orbit::before{width:155px;height:70px}.creative-orbit::after{width:72px;height:155px}.creative-orbit span{color:#ffce53;font-size:2.3rem}.creative-orbit b,.creative-orbit i{position:absolute;width:24px;height:24px;border-radius:50%;background:#78dfef}.creative-orbit b{right:-8px;display:grid;place-items:center;color:#18294a;font-size:1rem}.creative-orbit i{bottom:0;left:4px;width:12px;height:12px;background:#ef6da3}.creative-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.7rem}.creative-card{position:relative;padding:1rem;border:1px solid var(--line);border-radius:18px;background:#fff}.creative-card::before{position:absolute;inset:0 0 auto;height:5px;border-radius:18px 18px 0 0;content:""}.enemy-idea::before{background:#ef6477}.collectible-idea::before{background:#53c9d9}.power-idea::before{background:#ffb52e}.polish-idea::before{background:#8b6ce1}.creative-icon{font-size:1.65rem}.idea-level{position:absolute;top:1rem;right:1rem;padding:.25rem .4rem;border-radius:5px;color:#58667a;background:#eef1f5;font-size:.5rem;font-weight:900;text-transform:uppercase}.creative-card h2{margin:.45rem 0 .35rem;font-size:1rem}.creative-card>p{min-height:5.8em;margin:0;color:#657287;font-size:.68rem;line-height:1.45}.creative-card details{margin-top:.7rem;border-top:1px solid var(--line)}.creative-card summary{padding-top:.55rem;cursor:pointer;color:#684fc2;font-size:.64rem;font-weight:900}.creative-card details p{margin:.45rem 0 0;color:#657287;font-size:.62rem;line-height:1.4}.creative-lab{display:grid;grid-template-columns:1.5fr .7fr;gap:.8rem;margin-top:.8rem}.creative-process,.creative-picker{padding:1rem;border-radius:18px}.creative-process{border:1px solid var(--line);background:#fff}.creative-process h2,.creative-picker h2{margin:.15rem 0 .7rem;font-size:1rem}.creative-process ol{display:grid;grid-template-columns:repeat(4,1fr);gap:.45rem;margin:0;padding:0;list-style:none}.creative-process li{display:flex;gap:.45rem;padding:.55rem;border-radius:9px;background:#f4f6fa}.creative-process li>span{display:grid;width:26px;height:26px;flex:0 0 auto;place-items:center;border-radius:7px;color:#fff;background:#7658d6;font-size:.65rem;font-weight:950}.creative-process li p{margin:0;color:#6b7789;font-size:.58rem;line-height:1.35}.creative-process li strong{display:block;color:#18263a;font-size:.65rem}.creative-picker{display:flex;flex-direction:column;color:#fff;background:#13243e}.creative-picker .scratch-kicker{color:#78dfef}.creative-picker output{display:block;min-height:4em;padding:.65rem;border:1px solid #304764;border-radius:9px;color:#d8e2ec;background:#1b304e;font-size:.68rem;line-height:1.4}.creative-picker button{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding:.6rem .7rem;border:0;border-radius:8px;color:#17243a;background:#78dfef;cursor:pointer;font-size:.66rem;font-weight:950}.creative-picker button:hover{background:#a1ecf7}.creative-picker button span{font-size:1rem}.creative-finish{display:flex;align-items:center;gap:.8rem;margin-top:.8rem;padding:.8rem 1rem;border-left:5px solid #ffbf00;border-radius:0 12px 12px 0;background:#fff8dc}.creative-finish strong{flex:0 0 auto}.creative-finish p{margin:0;color:#625c43;font-size:.7rem;line-height:1.45}
@media(max-width:1050px){.creative-grid{grid-template-columns:1fr 1fr}.creative-lab{grid-template-columns:1fr}.creative-process ol{grid-template-columns:1fr 1fr}.creative-picker button{margin-top:.7rem}}
@media(max-width:760px){.creative-hero{grid-template-columns:1fr}.creative-orbit{display:none}.creative-grid,.creative-process ol{grid-template-columns:1fr}.creative-card>p{min-height:auto}.creative-finish{align-items:flex-start;flex-direction:column}}
