#lernatelier .la-tool--mathe{--ink:#26324d;--muted:#59647a;--paper:#fffaf2;--line:#e6e2ef;--purple:#5740d9;--green:#17634b;--mint:#b1eedc;--lime:#e4f58b;--radius:24px;color-scheme:light;font-size:16px}
#lernatelier .la-tool--mathe *{box-sizing:border-box}#lernatelier .la-tool--mathe{margin:0;color:var(--ink);background:radial-gradient(ellipse at 90% 0%,#e5f2eb,transparent 48%),var(--paper);font-family:"Avenir Next","Trebuchet MS",system-ui,sans-serif;line-height:1.6}
#lernatelier .la-tool--mathe button,#lernatelier .la-tool--mathe input,#lernatelier .la-tool--mathe select,#lernatelier .la-tool--mathe textarea{font:inherit}#lernatelier .la-tool--mathe button,#lernatelier .la-tool--mathe a,#lernatelier .la-tool--mathe input,#lernatelier .la-tool--mathe select,#lernatelier .la-tool--mathe textarea{-webkit-tap-highlight-color:transparent}#lernatelier .la-tool--mathe button{cursor:pointer}#lernatelier .la-tool--mathe button:disabled{cursor:default}
#lernatelier .la-tool--mathe a{color:var(--purple)}#lernatelier .la-tool--mathe button:focus-visible,#lernatelier .la-tool--mathe a:focus-visible,#lernatelier .la-tool--mathe input:focus-visible,#lernatelier .la-tool--mathe select:focus-visible,#lernatelier .la-tool--mathe textarea:focus-visible,#lernatelier .la-tool--mathe summary:focus-visible{outline:3px solid #c2700d;outline-offset:4px}
#lernatelier .la-tool--mathe [hidden]{display:none!important}#lernatelier .la-tool--mathe header{background:#fffefa;border-bottom:1px solid var(--line)}#lernatelier .la-tool--mathe .header-inner{max-width:1100px;margin:auto;padding:24px 28px;display:flex;align-items:center;justify-content:space-between;gap:16px}#lernatelier .la-tool--mathe .brand{color:var(--ink);text-decoration:none;display:flex;align-items:center;gap:13px;font-size:1.6rem;font-weight:850;line-height:1.2}#lernatelier .la-tool--mathe .brand small{display:block;font-size:.61rem;letter-spacing:.1em;margin-top:8px}#lernatelier .la-tool--mathe .brand-mark{background:var(--purple);color:var(--lime);border-radius:13px;transform:rotate(-4deg);box-shadow:4px 4px 0 #e5dcff;display:grid;place-items:center;width:44px;height:48px;font-size:1.9rem}#lernatelier .la-tool--mathe .back{font-size:.9rem;font-weight:700;text-decoration:none}
#lernatelier .la-tool--mathe main{max-width:1044px;margin:auto;padding:44px 24px 64px;min-height:70vh}#lernatelier .la-tool--mathe h1,#lernatelier .la-tool--mathe h2,#lernatelier .la-tool--mathe h3{line-height:1.2;letter-spacing:-.035em;margin-top:0}#lernatelier .la-tool--mathe h1{font-size:clamp(2.2rem,5vw,3.6rem);margin-bottom:18px}#lernatelier .la-tool--mathe h2{font-size:1.5rem}#lernatelier .la-tool--mathe h3{font-size:1.15rem}#lernatelier .la-tool--mathe p{margin-top:0}#lernatelier .la-tool--mathe .eyebrow{text-transform:uppercase;letter-spacing:.13em;font-size:.75rem;font-weight:800;color:var(--green);margin-bottom:14px}#lernatelier .la-tool--mathe .muted,#lernatelier .la-tool--mathe .source{color:var(--muted)}#lernatelier .la-tool--mathe .intro{max-width:690px}#lernatelier .la-tool--mathe .intro p:not(.eyebrow){font-size:1.06rem}
#lernatelier .la-tool--mathe .hero-row{display:grid;grid-template-columns:1.5fr 1fr;gap:24px;margin:30px 0 36px}#lernatelier .la-tool--mathe .hero{border-radius:var(--radius);background:linear-gradient(125deg,#216d57,#134b3e);color:#fff;padding:30px;box-shadow:0 7px 0 #d6e6d9;position:relative;overflow:hidden}#lernatelier .la-tool--mathe .hero h2{font-size:1.9rem;max-width:75%;position:relative}#lernatelier .la-tool--mathe .hero p{max-width:80%;color:#e8f7f0;position:relative}#lernatelier .la-tool--mathe .hero-art{position:absolute;right:-15px;top:15px;font-size:7rem;font-weight:850;color:#b1eedc35;transform:rotate(-12deg);pointer-events:none}#lernatelier .la-tool--mathe .progress-card{padding:28px;border:1px solid #ecd7b8;background:#fff0dc;border-radius:var(--radius);box-shadow:0 5px 0 #f2e7d8}#lernatelier .la-tool--mathe .progress-card strong{font-size:2.2rem;display:block;color:#82501f;line-height:1.2}#lernatelier .la-tool--mathe .progress-card p{margin:12px 0 22px}
#lernatelier .la-tool--mathe .btn{display:inline-flex;justify-content:center;align-items:center;gap:10px;min-height:50px;padding:12px 21px;border:2px solid transparent;border-radius:15px;text-decoration:none;font-weight:750;background:var(--purple);color:white;line-height:1.35}#lernatelier .la-tool--mathe .btn.primary{background:var(--lime);color:var(--ink);box-shadow:0 4px 0 #26324d22}#lernatelier .la-tool--mathe .btn.secondary{background:#eee8ff;color:#4830bf}#lernatelier .la-tool--mathe .btn.quiet{background:white;color:var(--ink);border-color:var(--line)}#lernatelier .la-tool--mathe .btn:disabled{opacity:.55}#lernatelier .la-tool--mathe .actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}#lernatelier .la-tool--mathe .filters{display:flex;flex-wrap:wrap;gap:16px;margin:24px 0}#lernatelier .la-tool--mathe .filters label{display:grid;gap:6px;font-weight:700;font-size:.9rem;flex:1;min-width:210px}#lernatelier .la-tool--mathe select{width:100%;min-height:48px;border:2px solid var(--line);border-radius:12px;padding:8px 12px;color:var(--ink);background:#fff}
#lernatelier .la-tool--mathe .section-title{display:flex;justify-content:space-between;align-items:baseline;gap:16px}#lernatelier .la-tool--mathe .section-title span{color:var(--muted);font-size:.9rem}#lernatelier .la-tool--mathe .topic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:32px}#lernatelier .la-tool--mathe .topic{padding:22px;border:2px solid var(--line);border-radius:21px;background:white;box-shadow:0 4px 0 #eee7f2;display:flex;flex-direction:column;gap:10px}#lernatelier .la-tool--mathe .topic:nth-child(3n+1){background:#f1ebff}#lernatelier .la-tool--mathe .topic:nth-child(3n+2){background:#e9f8ee}#lernatelier .la-tool--mathe .topic:nth-child(3n){background:#fff0dd}#lernatelier .la-tool--mathe .topic h3{margin:0}#lernatelier .la-tool--mathe .topic p{font-size:.92rem;flex:1;margin:0}#lernatelier .la-tool--mathe .topic .symbol{font-size:1.5rem;font-weight:800;color:var(--green)}#lernatelier .la-tool--mathe .topic .btn{margin-top:8px;font-size:.9rem;padding:10px}#lernatelier .la-tool--mathe .rule,#lernatelier .la-tool--mathe .catalogue,#lernatelier .la-tool--mathe .source-note{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;margin:14px 0}#lernatelier .la-tool--mathe summary{cursor:pointer;font-weight:800}#lernatelier .la-tool--mathe details p{margin-top:15px;margin-bottom:0}#lernatelier .la-tool--mathe .rule p{max-width:760px}#lernatelier .la-tool--mathe .example{padding:15px;border-radius:12px;background:#eff6df}#lernatelier .la-tool--mathe .catalogue ul{list-style:none;padding:0;display:grid;gap:6px;max-height:440px;overflow:auto}#lernatelier .la-tool--mathe .task-link{text-align:left;width:100%;padding:10px 12px;background:#fff;border:1px solid var(--line);border-radius:10px;color:var(--ink)}#lernatelier .la-tool--mathe .task-link small{display:block;color:var(--muted)}#lernatelier .la-tool--mathe .notice{max-width:1000px;margin:15px auto;background:#fff0dc;padding:15px;border:2px solid #be7e35;border-radius:12px}
#lernatelier .la-tool--mathe .round-top{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}#lernatelier .la-tool--mathe .round-top p{margin:0}#lernatelier .la-tool--mathe .round-top .btn{font-size:.88rem}#lernatelier .la-tool--mathe .round-track{height:8px;border-radius:20px;background:#e6e2ef;overflow:hidden;margin-bottom:26px}#lernatelier .la-tool--mathe .round-track span{display:block;height:100%;background:var(--green)}#lernatelier .la-tool--mathe .exercise{max-width:820px;margin:auto;background:white;border:2px solid var(--line);border-radius:var(--radius);padding:32px;box-shadow:0 6px 0 #eee7f2}#lernatelier .la-tool--mathe .exercise h1{font-size:clamp(1.45rem,3.3vw,2rem);line-height:1.35;margin-top:16px;overflow-wrap:anywhere}#lernatelier .la-tool--mathe .badges{display:flex;flex-wrap:wrap;gap:8px}#lernatelier .la-tool--mathe .badge{font-size:.75rem;background:#eee8ff;border-radius:20px;color:#4830bf;padding:4px 10px;font-weight:750}#lernatelier .la-tool--mathe .badge.green{background:#e0f2e8;color:var(--green)}#lernatelier .la-tool--mathe .source{font-size:.82rem;margin:9px 0 18px}#lernatelier .la-tool--mathe .form-hint{font-size:.86rem;color:var(--muted)}#lernatelier .la-tool--mathe .fields{display:grid;gap:18px;margin:24px 0}#lernatelier .la-tool--mathe .field{background:#f9f7fc;border:1px solid var(--line);border-radius:16px;padding:18px;min-width:0}#lernatelier .la-tool--mathe .field label,#lernatelier .la-tool--mathe .field legend{display:block;font-weight:750;margin-bottom:10px}#lernatelier .la-tool--mathe .field-number{display:inline-grid;place-items:center;border-radius:50%;background:#e5dcff;color:#4830bf;width:28px;height:28px;margin-right:8px;font-size:.85rem}#lernatelier .la-tool--mathe .field input{display:block;width:min(100%,360px);border:2px solid #b9bdca;border-radius:10px;padding:11px 13px;background:white;min-height:48px;color:var(--ink)}#lernatelier .la-tool--mathe fieldset{margin:0}#lernatelier .la-tool--mathe legend{padding:0}#lernatelier .la-tool--mathe .choices{display:flex;flex-wrap:wrap;gap:10px}#lernatelier .la-tool--mathe .choice,#lernatelier .la-tool--mathe .order-option{border:2px solid #d7d1e2;border-radius:13px;padding:12px 16px;min-height:48px;background:#fff;color:var(--ink);font-weight:650;text-align:left;overflow-wrap:anywhere}#lernatelier .la-tool--mathe .choice[aria-pressed=true]{border-color:var(--purple);background:#eee8ff;color:#4830bf}#lernatelier .la-tool--mathe .order-result{min-height:55px;background:#fff;padding:12px;border:1px dashed #a397c2;border-radius:10px;margin-bottom:12px;overflow-wrap:anywhere}#lernatelier .la-tool--mathe .error{color:#92370e;font-weight:700}#lernatelier .la-tool--mathe .hint-box{padding:16px;background:#fff0dc;border-radius:13px;margin:16px 0}#lernatelier .la-tool--mathe .reason{margin:20px 0}#lernatelier .la-tool--mathe .reason textarea{display:block;width:100%;min-height:75px;margin-top:8px;border:2px solid var(--line);border-radius:12px;padding:12px}#lernatelier .la-tool--mathe .reason small{color:var(--muted)}
#lernatelier .la-tool--mathe .visual{margin:22px auto;max-width:380px}#lernatelier .la-tool--mathe .visual svg{display:block;width:100%;height:auto;max-height:260px}#lernatelier .la-tool--mathe .cell-grid{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));gap:3px;max-width:340px;margin:auto}#lernatelier .la-tool--mathe .cell{aspect-ratio:1;border:1.5px solid #576079;background:#fff;border-radius:3px;padding:0;min-width:0;display:grid;place-items:center;font-size:.78rem}#lernatelier .la-tool--mathe .cell.marked{background:#376cc0;color:white}#lernatelier .la-tool--mathe .cell.marked::after{content:'●';font-size:.8em}#lernatelier .la-tool--mathe .cell-grid.interactive{gap:5px}#lernatelier .la-tool--mathe .cell-grid.interactive .cell{min-height:32px}#lernatelier .la-tool--mathe .visual-caption{text-align:center;color:var(--muted);font-size:.83rem;margin-top:10px}#lernatelier .la-tool--mathe .pie-segment{fill:#fff;stroke:#576079;stroke-width:1.4}#lernatelier .la-tool--mathe .pie-segment.marked{fill:#376cc0}#lernatelier .la-tool--mathe .pie-segment.interactive{cursor:pointer}#lernatelier .la-tool--mathe .pie-segment:focus{outline:none;stroke:#ce6c04;stroke-width:4}#lernatelier .la-tool--mathe .pie-pick{margin:14px auto 0;max-width:360px;display:flex;flex-wrap:wrap;gap:6px}#lernatelier .la-tool--mathe .pie-pick button{min-width:44px;min-height:44px;border:1px solid #a6adba;background:white;border-radius:8px}#lernatelier .la-tool--mathe .pie-pick button[aria-pressed=true]{background:#376cc0;color:white}#lernatelier .la-tool--mathe .table-wrap{overflow:auto;margin:20px 0}#lernatelier .la-tool--mathe table{width:100%;border-collapse:collapse;font-size:.94rem}#lernatelier .la-tool--mathe th,#lernatelier .la-tool--mathe td{padding:10px 12px;border:1px solid var(--line);text-align:left}#lernatelier .la-tool--mathe th{background:#eee8ff}#lernatelier .la-tool--mathe caption{text-align:left;font-size:.82rem;color:var(--muted);margin-bottom:10px}
#lernatelier .la-tool--mathe .feedback{margin-top:24px;border:2px solid #afd5bb;background:#edf9f0;border-radius:20px;padding:24px;scroll-margin-top:18px}#lernatelier .la-tool--mathe .feedback.incorrect,#lernatelier .la-tool--mathe .feedback.guided{border-color:#e9cda1;background:#fff5e5}#lernatelier .la-tool--mathe .feedback:focus{outline:none}#lernatelier .la-tool--mathe .feedback h2{margin-bottom:12px}#lernatelier .la-tool--mathe .correct-solution{font-size:1.25rem;font-weight:850;overflow-wrap:anywhere}#lernatelier .la-tool--mathe .step-results{list-style:none;margin:18px 0;padding:0;display:grid;gap:8px}#lernatelier .la-tool--mathe .step-results li{padding:12px;background:#ffffffba;border-radius:12px;overflow-wrap:anywhere}#lernatelier .la-tool--mathe .step-results small{display:block}#lernatelier .la-tool--mathe .solution-steps{padding-left:28px}#lernatelier .la-tool--mathe .solution-steps li{padding:0 0 15px 8px;overflow-wrap:anywhere}#lernatelier .la-tool--mathe .solution-steps li::marker{font-weight:800;color:var(--green)}#lernatelier .la-tool--mathe .feedback .actions{margin-top:20px}#lernatelier .la-tool--mathe .finish{text-align:center;max-width:700px;margin:40px auto;padding:35px;background:#fff;border:2px solid var(--line);border-radius:var(--radius)}#lernatelier .la-tool--mathe .finish .symbol{display:block;font-size:3rem}#lernatelier .la-tool--mathe .finish .actions{justify-content:center}#lernatelier .la-tool--mathe .finish p{max-width:530px;margin:15px auto 22px}
#lernatelier .la-tool--mathe .source-figure{margin:20px 0}#lernatelier .la-tool--mathe .source-figure img{display:block;width:100%;height:auto}#lernatelier .la-tool--mathe .source-figure figcaption{font-size:.82rem;color:var(--muted);margin-top:8px}
#lernatelier .la-tool--mathe footer{max-width:1044px;margin:auto;padding:24px;border-top:1px solid var(--line);font-size:.85rem;color:var(--muted);display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px}#lernatelier .la-tool--mathe .skip{position:fixed;left:10px;top:10px;background:white;padding:12px;z-index:10;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}#lernatelier .la-tool--mathe .skip:focus{clip-path:none;width:auto;height:auto}
@media(max-width:740px){#lernatelier .la-tool--mathe .header-inner{padding:20px}#lernatelier .la-tool--mathe .brand{font-size:1.3rem}#lernatelier .la-tool--mathe .brand small{font-size:.5rem}#lernatelier .la-tool--mathe .back{font-size:.8rem}#lernatelier .la-tool--mathe .hero-row{grid-template-columns:1fr}#lernatelier .la-tool--mathe .topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#lernatelier .la-tool--mathe main{padding:30px 18px 45px}#lernatelier .la-tool--mathe .exercise{padding:22px 16px}#lernatelier .la-tool--mathe .feedback{padding:20px 14px}#lernatelier .la-tool--mathe .field{padding:15px 12px}#lernatelier .la-tool--mathe .hero{padding:26px}#lernatelier .la-tool--mathe .hero h2{max-width:85%}#lernatelier .la-tool--mathe .hero p{max-width:90%}#lernatelier .la-tool--mathe .round-top .btn{padding:10px}#lernatelier .la-tool--mathe .round-top p{font-size:.86rem}}
@media(max-width:430px){#lernatelier .la-tool--mathe .topic-grid{grid-template-columns:1fr}#lernatelier .la-tool--mathe .header-inner{padding:18px 16px}#lernatelier .la-tool--mathe .brand-mark{width:35px;height:40px}#lernatelier .la-tool--mathe .section-title{display:block}#lernatelier .la-tool--mathe .exercise h1{font-size:1.4rem}#lernatelier .la-tool--mathe .cell-grid.interactive{gap:3px}#lernatelier .la-tool--mathe .cell-grid.interactive .cell{min-height:27px}#lernatelier .la-tool--mathe .actions .btn{flex:1}#lernatelier .la-tool--mathe .round-top{align-items:flex-start}#lernatelier .la-tool--mathe .feedback .correct-solution{font-size:1.1rem}}
@media(prefers-reduced-motion:reduce){#lernatelier .la-tool--mathe *{scroll-behavior:auto!important}}
@media print{#lernatelier .la-tool--mathe header,#lernatelier .la-tool--mathe footer,#lernatelier .la-tool--mathe .round-top,#lernatelier .la-tool--mathe .round-track,#lernatelier .la-tool--mathe .actions,#lernatelier .la-tool--mathe form,#lernatelier .la-tool--mathe .skip{display:none}#lernatelier .la-tool--mathe{background:#fff}#lernatelier .la-tool--mathe .exercise{box-shadow:none;border:0}#lernatelier .la-tool--mathe .feedback{break-inside:avoid}#lernatelier .la-tool--mathe .solution-steps li{break-inside:avoid}}
