.ka-akte{max-width:1000px;margin:0 auto;padding:24px 16px 60px;color:#102537;--red:#e30622;--navy:#102537;--line:#e1e7f0}
.ka-akte h1{margin:6px 0 10px;font-size:clamp(26px,5vw,40px)}
.kx-top{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:14px;font-weight:700}
.kx-top a{color:var(--navy)}
.kx-hstate{background:#ffdf00;border-radius:30px;padding:3px 12px;font-size:14px}
.kx-tag{display:inline-block;background:var(--red);color:#fff;padding:4px 12px;border-radius:30px;font-size:13px;font-weight:800;letter-spacing:.06em}
.kx-head{position:relative;border-radius:16px;overflow:hidden;background:var(--navy);margin-bottom:16px}
.kx-scene{display:block;width:100%;max-height:360px;object-fit:cover;opacity:.85}
.kx-headtxt{position:absolute;left:0;right:0;bottom:0;padding:18px 20px;background:linear-gradient(transparent,rgba(16,37,55,.92))}
.kx-headtxt h1{color:#ffdf00;margin:6px 0 0}
.kx-box{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px 18px;margin:14px 0;box-shadow:0 6px 18px rgba(16,24,40,.05)}
.kx-box h2{margin:0 0 10px;font-size:1.2rem}
.kx-brief dl{display:grid;grid-template-columns:max-content 1fr;gap:6px 14px;margin:0}
.kx-brief dt{font-weight:800;color:var(--red)}
.kx-brief dd{margin:0}
.kx-story p{line-height:1.65;margin:0 0 10px}
.kx-goal{background:#fffbe0;border-color:#f3dc5a}
.kx-h{margin:30px 0 6px;font-size:1.4rem}
.kx-hint{color:#475467;font-size:15px;line-height:1.5}
.kx-hint .ok,.kx-nb.ok{color:#067647}.kx-hint .no,.kx-nb.no{color:#b42318}
.kx-puzzles{display:grid;grid-template-columns:1fr;gap:16px}
.kx-pz{margin:0}
.kx-pz.is-done{border-color:#67c23a;background:#f6fef0}
.kx-pzhead{display:flex;justify-content:space-between;align-items:center;gap:8px}
.kx-pzhead h3{margin:0;font-size:1.1rem}
.kx-pzdig{color:var(--red);font-weight:900;font-size:1.3rem}
.kx-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.kx-btn{display:inline-block;border:0;border-radius:10px;padding:10px 16px;font:inherit;font-weight:800;background:var(--navy);color:#fff;cursor:pointer;text-decoration:none}
.kx-btn.red{background:var(--red)}.kx-btn.light{background:#eef2f6;color:var(--navy)}.kx-btn.small{padding:6px 12px;font-size:14px}
.kx-btn:disabled{opacity:.45;cursor:not-allowed}
.kx-msg{min-height:1.2em;margin:10px 0 0;font-weight:700}
.kx-msg.ok{color:#067647}.kx-msg.no{color:#b42318}
.kx-badge{position:absolute;top:-9px;right:-7px;background:var(--red);color:#fff;border-radius:50%;width:22px;height:22px;font-size:14px;line-height:22px;text-align:center;font-weight:900}
.kx-pc{position:relative}
.kx-pc input{width:100%;height:52px;box-sizing:border-box;text-align:center;font-size:24px;font-weight:800;border:2px solid #b8c4d2;border-radius:10px;color:var(--navy);background:#fff}
.kx-pc input.giv{background:#eef2f6;border-color:#eef2f6}
.kx-pc.mark input{border-color:var(--red)}
.kx-plus{display:grid;grid-template-columns:repeat(3,56px) 56px;gap:8px;align-items:center;justify-content:start;margin:8px 0}
.kx-sum{font-weight:800;color:#344054;font-size:15px;text-align:center}
.kx-sum.diag{color:var(--red)}
.kx-eq{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin:6px 0}
.kx-dcell{position:relative;padding:4px;border-radius:8px}
.kx-dcell.mark{outline:2px solid var(--red)}
.kx-dig{width:46px;height:78px;display:block}
.kx-st{stroke:#e4e9ef;stroke-width:7;stroke-linecap:round}
.kx-st.on{stroke:#c47a2c}
.kx-st.pick{stroke:var(--red);stroke-dasharray:4 4}
.kx-hit{stroke:#000;stroke-opacity:0;stroke-width:16;cursor:pointer;pointer-events:stroke}
.kx-match.locked .kx-hit{cursor:default}
.kx-op{font-size:30px;font-weight:900;padding:0 4px}
.kx-ztab{border-collapse:collapse;width:100%;font-size:15px}
.kx-ztab th,.kx-ztab td{border-bottom:1px solid var(--line);padding:5px 6px;text-align:center}
.kx-ztab th{font-size:12px;color:#667085}
.kx-zcode{font-family:ui-monospace,Consolas,monospace;font-weight:800;font-size:18px;letter-spacing:.1em}
.kx-zin{display:grid;grid-template-columns:repeat(4,56px);gap:8px;margin-top:8px}
.kx-such{display:grid;grid-template-columns:22px repeat(var(--n),minmax(30px,44px));gap:0;margin:8px 0;width:max-content;max-width:100%}
.kx-rl{display:flex;align-items:center;justify-content:center;font-weight:900;color:var(--red)}
.kx-cell{aspect-ratio:1;border:1px solid #c9d2dc;margin:0;padding:0;font-size:20px;color:var(--navy);cursor:pointer;line-height:1}
.kx-cell.bt{border-top:3px solid var(--navy)}.kx-cell.bl{border-left:3px solid var(--navy)}
.kx-cell.r0{background:#fde7e9}.kx-cell.r1{background:#e6f0ff}.kx-cell.r2{background:#fff6d6}.kx-cell.r3{background:#e4f7e9}.kx-cell.r4{background:#f1e8ff}.kx-cell.r5{background:#ffe9d6}.kx-cell.r6{background:#e0f6f7}
.kx-cell.on{font-weight:900}.kx-cell.bad{color:#b42318}
.kx-digits{display:grid;grid-template-columns:repeat(8,1fr);gap:6px;margin-bottom:14px}
.kx-dg{border:2px dashed #b8c4d2;border-radius:10px;text-align:center;padding:4px 0}
.kx-dg span{display:block;color:var(--red);font-weight:900}
.kx-dg b{font-size:24px;color:#98a2b3}
.kx-dg.on{border-style:solid;border-color:var(--navy);background:#f5f8fb}.kx-dg.on b{color:var(--navy)}
.kx-crow{display:grid;grid-template-columns:150px 1fr;gap:10px;border-top:1px solid var(--line);padding:10px 0}
.kx-cl b{display:block;color:var(--red);font-size:1.1rem}
.kx-slots{display:block;color:#667085;font-size:14px}
.kx-code{display:inline-block;font-family:ui-monospace,Consolas,monospace;font-size:22px;font-weight:900;letter-spacing:.15em;color:#98a2b3}
.kx-code.full{color:var(--navy)}
.kx-opts{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:6px}
.kx-opt{display:flex;gap:8px;align-items:center;border:1px solid var(--line);border-radius:8px;padding:6px 8px;font-size:15px}
.kx-opt code{margin-left:auto;font-weight:800;color:#475467}
.kx-opt.hit{border:2px solid var(--red);background:#fff1f2;font-weight:800}
.kx-let,.kx-lg i{display:inline-block;min-width:22px;height:22px;line-height:22px;text-align:center;border-radius:6px;background:var(--navy);color:#fff;font-weight:800;font-style:normal;font-size:13px}
.kx-legend{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin:8px 0 4px}
.kx-lg{background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:5px;font-size:14px}
.kx-lg b{color:var(--red)}
.kx-people{display:grid;gap:14px}
.kx-person{margin:0;min-width:0}
.kx-puzzles>*,.kx-people>*{min-width:0}
.kx-ph{display:flex;gap:12px;align-items:center}
.kx-ph img{width:72px;height:72px;border-radius:50%;object-fit:cover;border:3px solid var(--navy)}
.kx-ph h3{margin:0}.kx-role{margin:2px 0 0;color:#667085}
.kx-person blockquote{margin:12px 0;padding:10px 14px;border-left:4px solid var(--red);background:#f8fafc;line-height:1.55;font-style:italic}
.kx-ntw{overflow-x:auto}
.kx-nt{border-collapse:collapse;font-size:13px}
.kx-nt th{padding:3px;white-space:nowrap}
.kx-nt th[scope=row]{text-align:left;padding-right:8px;font-weight:700}
.kx-nt .kx-g{color:var(--red);font-size:12px}
.kx-nt .gs{border-left:2px solid var(--navy)}
.kx-nt td{padding:1px}
.kx-nb{width:30px;height:30px;border:1px solid #c9d2dc;border-radius:6px;background:#fff;font-weight:900;font-size:16px;cursor:pointer;padding:0}
.kx-nt td.gs{padding-left:4px}
.kx-diagtxt{grid-column:1/-1;text-align:left;font-weight:500;font-size:13px;color:#475467}.kx-diagtxt b{color:var(--red)}
.kx-nb.ok{background:#ecfdf3;border-color:#67c23a}.kx-nb.no{background:#fef3f2;border-color:#f04438}
#kx-culprit.locked{opacity:.75}
#kx-who{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin-bottom:12px}
.kx-sus{display:flex;flex-direction:column;align-items:center;gap:6px;border:2px solid var(--line);border-radius:12px;background:#fff;padding:10px;font:inherit;font-weight:700;cursor:pointer;color:var(--navy)}
.kx-sus img{width:70px;height:70px;border-radius:50%;object-fit:cover}
.kx-sus.sel{border-color:var(--red);background:#fff1f2}
.kx-result{background:var(--navy);color:#fff;border-radius:16px;padding:22px;margin:16px 0;position:relative}
.kx-result h2{color:#ffdf00;margin:0 0 8px}
.kx-result .kx-btn.light{background:#fff}
.kx-stamp{display:inline-block;border:3px solid var(--red);color:#ff5a6a;font-weight:900;letter-spacing:.1em;padding:4px 12px;transform:rotate(-4deg);margin-bottom:10px}
.kx-pts{font-weight:800;color:#ffdf00}
.kx-book summary{cursor:pointer;font-weight:800}
@media(max-width:600px){.kx-box{padding:14px 12px}.kx-nt td{padding:1px 0}.kx-nt th{padding:2px 1px}.kx-nb{width:24px;height:28px;font-size:14px}.kx-nt th[scope=row]{white-space:normal;max-width:80px;font-size:12px}.kx-crow{grid-template-columns:1fr}.kx-digits{grid-template-columns:repeat(4,1fr)}.kx-plus{grid-template-columns:repeat(3,50px) 50px}.kx-zin{grid-template-columns:repeat(4,50px)}.kx-such{grid-template-columns:18px repeat(var(--n),minmax(28px,1fr));width:100%}}

/* Rätsel im Original-Design */
.kx-pz{text-align:left}
.kx-pzkick{display:block;text-transform:uppercase;letter-spacing:.12em;color:#e30620;font-weight:900;font-size:12px}
.kx-pz.is-done{border-color:#67c23a;background:#fff}
.kx-pz.is-done .kx-pzhead h3::after{content:" ✓";color:#16813d}
.kx-rel{position:relative}
.kx-pz .kx-badge{z-index:4}
.kx-pz .drei-wrap{margin-top:8px}
.kx-pz .kx-arrow{color:#e30622;font-size:24px}
.kx-pz .drei-sum.kx-dsum{background:#ffe9a8}
.kx-pz .drei-input.drei-hint{outline:3px solid #e1a400;background:#fff0a8!important}
.kx-toolbar{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:12px 0 4px}
.kx-time{text-align:center;font-weight:bold;margin:8px 0}
.kx-pz .status{min-height:1.4em;text-align:center;font-weight:bold;margin:8px 0 0;padding:6px;border-radius:8px}
.kx-pz .status.ok{color:#126b31;background:#dff7e6}.kx-pz .status.bad{color:#9b1c1c;background:#ffe1e1}.kx-pz .status:empty{background:none;padding:0}
.kx-pz .match-game{min-height:170px;padding:26px 10px 30px}
.kx-pz .match-char{overflow:visible}
.kx-pz .kx-badge-m{top:-22px;right:auto;left:50%;transform:translateX(-50%)}
.kx-pz .match-char:has(.kx-badge-m){outline:2px dashed #e30622;outline-offset:6px;border-radius:6px}
.kx-pz .lead{margin:4px 0}
.kx-pills{display:flex;gap:8px;margin:6px 0 10px}
.kx-pill{display:inline-block;padding:5px 11px;border-radius:999px;font-size:13px;font-weight:800}
.kx-pill.bad{background:#fee2e2;color:#991b1b}.kx-pill.tip{background:#fef3c7;color:#92400e}
.kx-zwrap{display:inline-block}
.kx-pz .zc-code-values .kx-badge{top:-11px;right:0}
.kx-zsum{margin:6px 0 0;font-weight:700;color:#475467;font-size:14px}
.ka-akte .kx-pz.kx-such-shell{max-width:none;margin:0;padding:16px 18px;font-family:inherit}
.kx-such-shell .such-game{text-align:center}
.kx-such-wrap{display:flex;justify-content:center;align-items:stretch;gap:4px}
.kx-such-wrap .such-board{margin:10px 0!important}
.kx-such-rows{display:grid;margin:13px 0;width:24px;color:#e30622;font-weight:900;font-size:18px;align-items:center}
.kx-such-note{color:#475467}
.kx-win{position:fixed;inset:0;z-index:2147483000;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;padding:18px}
.kx-win-card{background:#fff;color:#111;border:3px solid #111;border-radius:12px;padding:26px;text-align:center;width:min(420px,92vw);display:grid;gap:8px}
.kx-win-card h2{font-size:32px;margin:0;color:#16813d}.kx-win-card p{margin:0}.kx-win-time{font-weight:800}
