/* Das Hülchrather Kuchen-Komplott – Look „Papier, Bernstein, Stempel" */
:root{--paper:#efe3c8;--card:#fffaf0;--ink:#1b1712;--mut:#6b5f4a;--amber:#f5a623;--amber2:#ffc861;--red:#a3312a;--green:#2f8f5b;--line:#1b1712}
*{box-sizing:border-box}
html,body{margin:0;color:var(--ink);font-family:'Poppins',system-ui,sans-serif;font-size:16px;line-height:1.5;-webkit-text-size-adjust:100%}
body{background-color:var(--paper);background-image:radial-gradient(rgba(90,70,40,.12) 1px,rgba(0,0,0,0) 1.5px);background-size:9px 9px}
button{font:inherit;color:inherit;cursor:pointer}
img{max-width:100%}
.wrap{max-width:520px;margin:0 auto;padding:0 16px calc(96px + env(safe-area-inset-bottom))}
.h{font-family:'Luckiest Guy',cursive;font-weight:400;letter-spacing:.5px;line-height:1.05;margin:0}
.k{font-family:'Courier New',monospace;font-weight:700;letter-spacing:3px;font-size:12px;text-transform:uppercase;color:var(--red)}
.mut{color:var(--mut)}
.top{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:10px;padding:10px 16px;padding-top:calc(10px + env(safe-area-inset-top));background:#1b1712;color:#f4efe6}
.top img{width:32px;height:32px;object-fit:contain}
.top .t{font-family:'Courier New',monospace;font-weight:700;letter-spacing:2px;font-size:12px;color:var(--amber2)}
.top .sp{flex:1}
.iconbtn{background:none;border:1px solid rgba(255,255,255,.3);border-radius:10px;width:38px;height:38px;color:#f4efe6;font-size:18px}
.card{background:var(--card);border:3px solid var(--line);border-radius:14px;box-shadow:5px 5px 0 var(--line);padding:16px;margin-top:16px}
.btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:54px;border:3px solid var(--line);border-radius:12px;background:var(--amber);color:#111;font-weight:800;font-size:17px;padding:10px 16px;box-shadow:4px 4px 0 var(--line);text-decoration:none}
.btn:active{transform:translate(2px,2px);box-shadow:2px 2px 0 var(--line)}
.btn.ghost{background:var(--card)}
.btn.small{min-height:44px;font-size:14px;box-shadow:3px 3px 0 var(--line)}
.btn[disabled]{opacity:.4;pointer-events:none}
.row{display:flex;gap:10px}
.row>*{flex:1}
.stamp{display:inline-block;border:4px solid var(--red);color:var(--red);border-radius:8px;padding:6px 12px 2px;font-family:'Luckiest Guy',cursive;font-size:24px;transform:rotate(-7deg);background:rgba(255,250,240,.7)}
.skyline{display:block;width:100%;height:auto;margin-top:6px}
/* Funk-Player */
.funk{display:flex;align-items:center;gap:12px;background:#1b1712;color:#f4efe6;border-radius:14px;padding:10px 12px;margin-top:14px}
.funk .av{position:relative;width:54px;height:54px;flex-shrink:0}
.funk .av:before{content:'';position:absolute;inset:0;border-radius:50%;background:var(--amber2)}
.funk .av img{position:absolute;left:50%;bottom:0;width:68px;max-width:none;transform:translateX(-50%);clip-path:inset(-40px 0 0 0 round 0 0 27px 27px)}
.funk .tt{flex:1;min-width:0}
.funk .tt .k{color:#ff7ae6;display:block;font-size:10px}
.funk .tt b{display:block;font-size:15px;line-height:1.2}
.wave{display:flex;gap:3px;align-items:center;height:16px;margin-top:4px}
.wave i{display:block;width:3px;border-radius:2px;background:rgba(255,255,255,.35);height:30%}
.funk.on .wave i{background:var(--amber2);animation:wv .9s ease-in-out infinite}
.funk.on .wave i:nth-child(2n){animation-delay:.2s}.funk.on .wave i:nth-child(3n){animation-delay:.4s}
@keyframes wv{50%{height:100%}}
.play{width:52px;height:52px;border-radius:50%;border:3px solid #000;background:var(--amber);color:#111;font-size:20px;font-weight:900;flex-shrink:0}
/* Krümelspur */
.crumbs{display:flex;gap:6px;margin-top:8px}
.crumbs i{width:22px;height:22px;border-radius:50%;background:#d8c39c;border:2px dashed #b9a887}
.crumbs i.on{background:radial-gradient(circle at 35% 35%,#e9b46a,#a8692c);border:2px solid var(--line)}
.trail{position:relative;margin-top:14px}
.trail:before{content:'';position:absolute;left:34px;top:20px;bottom:20px;border-left:4px dotted #b9a887}
.stn{position:relative;display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:var(--card);border:3px solid var(--line);border-radius:14px;box-shadow:4px 4px 0 var(--line);padding:10px 12px;margin-top:12px}
.stn .ic{width:48px;height:48px;flex-shrink:0;display:flex;align-items:center;justify-content:center}
.stn .ic img{max-width:44px;max-height:44px}
.stn .tx{flex:1;min-width:0}
.stn .tx b{display:block;line-height:1.2}
.stn .tx span{font-size:13px;color:var(--mut)}
.stn .st{font-family:'Luckiest Guy',cursive;font-size:13px;color:var(--red);border:2px solid var(--red);border-radius:6px;padding:2px 6px 0;transform:rotate(-6deg)}
.stn .go{background:var(--amber);border:2px solid var(--line);border-radius:8px;padding:2px 10px;font-weight:800}
.stn.done{opacity:.6}
.stn.next{border-color:var(--amber);box-shadow:4px 4px 0 var(--line),0 0 0 4px rgba(245,166,35,.35)}
.evid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}
.ev{position:relative;border:2px dashed #b9a887;border-radius:10px;aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;font-weight:800;color:#b9a887}
.ev.on{border:0}
.ev.on img{width:100%}
.ev.on b{position:absolute;left:39%;width:23%;top:80%;height:14%;display:flex;align-items:center;justify-content:center;font-family:'Luckiest Guy',cursive;font-size:13px;color:var(--red)}
/* Station */
.shead{display:flex;align-items:center;gap:12px;margin-top:16px}
.shead img{width:64px;height:64px;object-fit:contain}
.seal{position:relative;text-align:center;padding:26px 16px;background:#f3e8cf;border:3px solid var(--line);border-radius:14px;box-shadow:5px 5px 0 var(--line);margin-top:16px}
.seal .wax{width:84px;height:84px;margin:0 auto;border-radius:50%;background:radial-gradient(circle at 35% 30%,#d4554c,#8e231d 70%);box-shadow:0 3px 0 #5e1611;display:flex;align-items:center;justify-content:center;color:#ffe3df;font-family:'Luckiest Guy',cursive;font-size:13px;line-height:1.1;text-align:center}
.dist{margin:14px auto 0;width:150px;height:150px;border-radius:50%;border:4px solid var(--line);background:var(--card);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.dist b{font-family:'Luckiest Guy',cursive;font-size:30px;line-height:1}
.dist.warm{background:#ffe6c2}.dist.hot{background:#ffd08a;animation:pulse 1.2s ease-in-out infinite}
@keyframes pulse{50%{transform:scale(1.05)}}
.pulse{animation:pulse 1.2s ease-in-out infinite}
.note{position:relative;background:#fff6c9;border:2px solid var(--line);padding:16px 14px 14px;margin-top:16px;transform:rotate(-.6deg);box-shadow:3px 3px 0 rgba(0,0,0,.25)}
.note:before{content:'';position:absolute;left:50%;top:-12px;width:90px;height:22px;transform:translateX(-50%) rotate(2deg);background:rgba(245,166,35,.55)}
.pimg{display:block;width:100%;border:3px solid var(--line);border-radius:10px;margin-top:12px;background:#fff}
.lock{margin:18px auto 0;width:220px;text-align:center}
.lock .shackle{width:110px;height:70px;margin:0 auto -10px;border:14px solid #8a8f96;border-bottom:0;border-radius:60px 60px 0 0;transition:transform .4s}
.lock.open .shackle{transform:translate(28px,-22px) rotate(18deg)}
.lock .body{background:linear-gradient(160deg,#e6b850,#b8862a);border:3px solid var(--line);border-radius:16px;padding:14px 10px;box-shadow:4px 4px 0 var(--line)}
.lock.shake .body{animation:shake .4s}
@keyframes shake{25%{transform:translateX(-8px)}75%{transform:translateX(8px)}}
.wheels{display:flex;justify-content:center;gap:8px}
.wheel{display:flex;flex-direction:column;align-items:center;gap:4px}
.wheel button{width:52px;height:40px;border-radius:8px;border:2px solid var(--line);background:#fff5d6;font-size:18px;font-weight:900}
.wheel b{width:52px;height:60px;border-radius:8px;background:#1b1712;color:#ffe9a8;display:flex;align-items:center;justify-content:center;font-family:'Luckiest Guy',cursive;font-size:38px}
.fb{text-align:center;font-weight:800;margin-top:8px;min-height:24px}
.tip{margin-top:14px;border:2px dashed var(--line);border-radius:12px;background:#fffdf3}
.tip summary{list-style:none;cursor:pointer;padding:12px 14px;font-weight:800}
.tip summary::-webkit-details-marker{display:none}
.tip .in{padding:0 14px 14px}
.solved{text-align:center;margin-top:16px}
.inno{display:flex;align-items:center;gap:12px}
.inno img{width:84px;border:3px solid var(--line);border-radius:6px;background:#fff}
.fehler{position:relative;margin-top:12px;border:3px solid var(--line);border-radius:10px;overflow:hidden;background:#fff}
.fehler img{display:block;width:100%}
.fmark{position:absolute;width:34px;height:34px;margin:-17px 0 0 -17px;border:4px solid #e5534b;border-radius:50%;box-shadow:0 0 0 2px #fff}
/* Verdächtige */
.pol{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}
.po{position:relative;background:#fff;border:2px solid var(--line);padding:6px 6px 10px;box-shadow:3px 4px 0 rgba(0,0,0,.35);text-align:center}
.po:nth-child(odd){transform:rotate(-1.5deg)}.po:nth-child(even){transform:rotate(1.5deg)}
.po img{display:block;width:100%;aspect-ratio:5/6;object-fit:cover;object-position:top}
.po .n{position:absolute;left:4px;top:4px;width:28px;height:28px;border-radius:50%;background:var(--amber);border:2px solid var(--line);font-weight:900;display:flex;align-items:center;justify-content:center}
.po b{display:block;font-size:13px;margin-top:4px;line-height:1.2}
.po.x img{filter:grayscale(1) opacity(.55)}
.po .stp{position:absolute;left:50%;top:38%;transform:translate(-50%,-50%) rotate(-14deg);width:88%;pointer-events:none}
/* Karte */
.map{position:relative;margin-top:14px;border:3px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}
.map img{display:block;width:100%}
.pin{position:absolute;width:34px;height:34px;margin:-17px 0 0 -17px;border-radius:50%;border:3px solid transparent;color:transparent;font-size:0;text-decoration:none}
.pin.next{border-color:var(--amber);box-shadow:0 0 0 4px rgba(245,166,35,.45)}
.pin.done{background:rgba(255,255,255,.55);border-color:#6b5f4a}
.pin.next{animation:pulse 1.2s infinite}
.me{position:absolute;width:20px;height:20px;margin:-10px 0 0 -10px;border-radius:50%;background:#2d7ff9;border:3px solid #fff;box-shadow:0 0 0 6px rgba(45,127,249,.25)}
/* Schlüsselbrett */
.sb{margin-top:16px;background:#2b1d12;border:3px solid var(--line);box-shadow:5px 5px 0 var(--line);border-radius:16px;padding:14px 10px;text-align:center;color:#f4efe6}
.rail{height:12px;background:#5b3a1e;border:3px solid #111;border-radius:8px;margin-top:6px}
.keys{display:grid;grid-template-columns:repeat(3,1fr);gap:14px 6px}
.ky{display:flex;flex-direction:column;align-items:center}
.ky .hk{width:12px;height:12px;border-radius:50%;background:#d9d9d9;border:3px solid #111;margin-top:-9px;z-index:2}
.ky .sr{width:3px;height:12px;background:#111}
.ky img{height:86px;filter:drop-shadow(2px 3px 0 rgba(0,0,0,.55))}
.ky .tg{margin-top:6px;background:#fffaf0;color:#1b1712;border:2px solid #111;border-radius:6px;padding:2px 6px;font-weight:800;font-size:10.5px;line-height:1.2}
.ky.off img{opacity:.25;filter:grayscale(1)}
.ky .empty{height:86px;width:42px;border:2px dashed #b9a887;border-radius:10px;display:flex;align-items:center;justify-content:center;font-family:'Luckiest Guy',cursive;font-size:22px;color:#b9a887}
.ky.bonus .tg{background:#f0c75e}
.ky.bonus.on img{filter:drop-shadow(0 0 4px #f0c75e) drop-shadow(0 0 14px rgba(240,199,94,.9));animation:pop .5s ease-out}
@keyframes pop{0%{transform:translateY(-20px) scale(.8);opacity:0}100%{transform:none;opacity:1}}
.cert{background:#fffaf0;border:3px solid var(--line);outline:3px solid var(--amber);outline-offset:-10px;padding:22px 18px;text-align:center;margin-top:16px}
input[type=text]{width:100%;height:50px;border:3px solid var(--line);border-radius:10px;padding:0 12px;font:700 17px 'Poppins',sans-serif;background:#fff}
/* Unten: Reiter */
.tabs{position:fixed;left:0;right:0;bottom:0;z-index:30;display:flex;justify-content:center;background:#1b1712;padding:6px 6px calc(6px + env(safe-area-inset-bottom))}
.tabs div{display:flex;width:100%;max-width:520px;gap:6px}
.tabs button{flex:1;border:0;border-radius:10px;background:transparent;color:#d8c39c;font-weight:800;font-size:13px;padding:8px 4px;display:flex;flex-direction:column;align-items:center;gap:2px}
.tabs button img{height:26px}
.tabs button.on{background:#3a2a1c;color:var(--amber2)}
.menu{position:fixed;inset:0;z-index:50;background:rgba(20,15,10,.7);display:flex;align-items:flex-end;justify-content:center}
.menu .pan{width:100%;max-width:520px;background:var(--paper);border-radius:20px 20px 0 0;padding:18px 16px calc(20px + env(safe-area-inset-bottom));border-top:3px solid var(--line)}
.menu .pan .btn{margin-top:10px}
.toast{position:fixed;left:50%;bottom:90px;transform:translateX(-50%);background:#1b1712;color:#fff;border-radius:12px;padding:10px 16px;font-weight:700;z-index:60;max-width:90%;text-align:center}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* 05.10.2026 – Leo-Feedback */
.po img{aspect-ratio:auto;object-fit:contain;height:auto}
.po .n,.po b{display:none}
.lock,.lock *,.wheel button,.btn,.po,.tabs button{touch-action:manipulation}
.next-step{text-align:center;border:3px solid var(--amber)}
.keybtn{touch-action:none}
.keydrag{position:fixed;z-index:50;pointer-events:none;filter:drop-shadow(6px 10px 0 rgba(0,0,0,.35));transform:rotate(-8deg)}
.ky.bonus.target{outline:3px dashed #f0c75e;outline-offset:4px;animation:pulseKey 1s infinite}
@keyframes pulseKey{50%{outline-color:transparent}}

/* Version (05.10.2026) */
.snc-ver-fix{position:fixed;left:8px;bottom:calc(6px + env(safe-area-inset-bottom));z-index:5;font:600 11px/1 Poppins,sans-serif;color:rgba(255,255,255,.45);pointer-events:none}
.snc-ver-fix.is-neu{color:#f3c64b}
.snc-ver{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin:28px auto 10px;color:inherit}
.snc-ver-btn{min-height:44px;padding:8px 14px;border-radius:12px;border:2px solid currentColor;background:transparent;color:inherit;opacity:.7;font:700 14px Poppins,sans-serif;cursor:pointer}
.snc-ver-neu{color:#f3c64b;font:700 13px Poppins,sans-serif}
@media print{.snc-ver-fix,.snc-ver{display:none!important}}
.snc-ver-fix{color:rgba(27,23,18,.45)}
body.has-tabs .snc-ver-fix{display:none}
.hue-ver{margin-top:12px;text-align:center;font:600 12px Poppins,sans-serif;color:#6b5a44}
.hue-ver b{color:#b5121b}
