:root{--ink:#10142c;--muted:#626b80;--purple:#6525ae;--paper:#f5f7fb;--border:#e1e5ee;--green:#18714e;--room-orange:#fb7722;--room-header:#45225c}
html{scroll-padding-top:24px}body{background:var(--paper);padding-bottom:calc(90px + env(safe-area-inset-bottom));color:var(--ink);-webkit-font-smoothing:antialiased}a,button,select,input{touch-action:manipulation}a:hover{text-decoration:none}h1{font-size:clamp(32px,5vw,54px);letter-spacing:-1.7px;font-weight:750}h2{font-size:clamp(22px,3vw,30px);letter-spacing:-.7px}p{line-height:1.7}main{max-width:1024px;padding:32px 32px 48px;min-height:65vh}.card{border-radius:17px;box-shadow:0 3px 16px #21314a03}.card:hover{border-color:#d7cee5}button,.button{border-radius:12px}.button.secondary,button.secondary{background:#f0eafa;color:var(--purple)}input,select,textarea{min-height:46px;border-radius:11px}input[type=checkbox],input[type=radio]{min-height:0}select{max-width:100%}.choice{background:#fff;border-radius:13px}.choice:has(input:checked){background:#f1eafa;border-color:var(--purple)}.adaptive-intro,.adaptive-feedback{background:#f1eafa;border-radius:14px;padding:16px}.two-minute{margin:12px auto}.math-solution{border-left-color:var(--purple);background:#f4effb}.actions{align-items:center}.grid{gap:16px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.learning-skip{position:fixed;top:-80px;left:16px;background:#fff;color:var(--purple);padding:12px;z-index:100}.learning-skip:focus{top:10px}
.amy-header{position:relative;z-index:30;display:flex;align-items:center;gap:20px;max-width:1024px;margin:20px auto 0;padding:22px 32px;background:linear-gradient(110deg,#42205a,#4c2b65);border:0;border-radius:24px 24px 0 0;color:#fff}
.amy-logo{display:flex;align-items:center;gap:12px;justify-self:auto;align-self:center;min-width:0;margin-right:auto;grid-column:auto;grid-row:auto;color:#fff;white-space:nowrap}.amy-logo img{width:58px;height:58px;max-width:none;border-radius:12px;object-fit:contain}.amy-logo span{font-size:clamp(24px,4vw,36px);font-weight:750;letter-spacing:-1px}
.amy-language{display:flex;align-items:center;grid-column:auto;grid-row:auto;margin:0;justify-self:auto}.amy-language select{margin:0;width:auto;min-height:46px;padding:8px 12px;background:#ffffff08;border:1px solid #b49ac7;color:#fff;border-radius:11px;font-size:16px;font-weight:650}.amy-language option{color:var(--ink);background:#fff}
.amy-primary{display:flex;grid-column:auto;gap:0;font-size:15px;flex:none}.amy-primary .amy-account{position:relative;margin:0;padding:0;border:0;background:none;border-radius:0}.amy-account>summary{display:flex!important;align-items:center;justify-content:center;list-style:none;width:54px;height:54px;padding:15px;border:0;border-radius:50%;background:#ffffff29;color:#fff;cursor:pointer}.amy-account>summary svg{width:26px;height:26px}.amy-account>summary::after{display:none}.amy-header summary::-webkit-details-marker{display:none}.amy-header .amy-dropdown{left:auto;right:0;top:calc(100% + 12px);color:var(--ink);min-width:225px}.amy-primary .amy-dropdown a,.amy-groups .amy-dropdown a{display:block!important}.amy-primary .amy-dropdown form{display:block}.amy-primary .amy-dropdown button{width:100%;text-align:left;padding:11px 12px;font-size:14px;background:#f0eafa;color:var(--purple);font-weight:500}.amy-groups{max-width:1024px;padding:10px 20px;background:#fff;gap:8px 20px}.amy-groups summary{color:var(--muted)}
.amy-home{background:linear-gradient(#fff,#fafbfe);padding:28px 32px 40px}.learning-welcome h1{margin:0 0 4px;font-size:clamp(36px,5.8vw,60px);line-height:1.12;letter-spacing:-2px}.learning-subtitle{font-size:clamp(18px,2.8vw,26px);margin:10px 0;color:#636b80;line-height:1.35}.learning-count{font-size:13px;margin:8px 0 0;color:var(--purple);font-weight:600}.learning-launch{margin:24px 0 32px;display:grid;gap:14px}.grade-field{display:flex;align-items:center;gap:20px;border:1px solid #d6dce6;border-radius:15px;padding:0 24px;background:#fff;min-height:70px}.grade-field>span{width:35px;flex:none;color:var(--purple);display:flex}.grade-field svg{width:35px;height:35px}.grade-field select{flex:1;min-width:0;margin:0;border:0;background:transparent;padding:18px 0;font-size:23px;font-weight:650;color:var(--ink);cursor:pointer;min-height:66px}.grade-field:focus-within{outline:3px solid #aa84d4;outline-offset:3px}.learning-start{display:flex;align-items:center;justify-content:center;gap:18px;width:100%;min-height:76px;padding:18px 24px;background:linear-gradient(110deg,#fb8128,#fc7121);border:0;border-radius:16px;font-size:clamp(20px,3vw,28px);font-weight:700;color:#fff;box-shadow:0 5px 12px #d46f1612}.learning-start>span:last-child{margin-left:auto;font-size:38px;line-height:1}.learning-start>span:first-child{margin-left:auto;font-size:24px}.learning-start:hover{color:#fff;filter:brightness(.97)}
.home-subjects h2{margin:0 0 18px}.learning-subject-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.learning-subject{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;min-width:0;min-height:174px;border:1px solid var(--border);border-radius:16px;background:#fff;padding:18px 8px;color:var(--ink);font-size:clamp(15px,2.1vw,21px);font-weight:650;box-shadow:0 2px 10px #22365503;transition:border-color .15s,box-shadow .15s}.learning-subject:hover{border-color:#bba3d2;box-shadow:0 6px 18px #4f23750b}.learning-subject>span:last-child{max-width:100%;overflow-wrap:anywhere;text-align:center;line-height:1.3}.learning-subject-icon{display:flex;align-items:center;justify-content:center;width:100px;height:100px;border-radius:50%;background:#eee8fc;color:#6229a4}.learning-subject-icon svg{width:58px;height:58px}.subject-mathematik .learning-subject-icon,.subject-astronomie .learning-subject-icon{background:#e2f0ff;color:#155ba4}.subject-deutsch .learning-subject-icon{background:#fff1d9;color:#b66d09}.subject-biologie .learning-subject-icon{background:#e4f4e8;color:#155e3b}.subject-chemie .learning-subject-icon{background:#fde9e9;color:#bd3434}.subject-geschichte .learning-subject-icon{background:#f8eedf;color:#88602f}.subject-englisch .learning-subject-icon,.subject-russisch .learning-subject-icon,.subject-lettisch .learning-subject-icon{background:#edeefa;color:#5c4c96}
.exam-link{display:flex;align-items:center;gap:22px;margin:22px 0 38px;padding:20px 24px;border:1px solid #eee8fb;border-radius:16px;background:#f4f0fe;color:var(--ink)}.exam-icon{display:flex;align-items:center;justify-content:center;width:90px;height:90px;flex:none;background:#eee7fc;border-radius:50%;color:var(--purple)}.exam-icon svg{width:52px;height:52px}.exam-link strong{font-size:24px;line-height:1.3}.exam-link small{display:block;color:var(--muted);font-size:16px;margin-top:4px}.exam-link>span:last-child{margin-left:auto;font-size:34px;color:var(--muted)}
.companion{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(0,1.2fr);align-items:center;gap:32px;padding:30px 0;border-top:1px solid var(--border);margin:24px 0}.companion figure{margin:0;min-width:0}.companion img{display:block;width:100%;height:auto;max-height:330px;object-fit:contain}.companion h2{margin:9px 0 10px}.companion strong{font-weight:600;font-size:15px}.companion p{font-size:15px;margin:12px 0}.companion-amy figure{order:2}.companion-amy>div{order:1}.learning-adaptive{padding:26px;border-radius:18px;background:#f3effa;margin:32px 0}.learning-adaptive h2{margin:8px 0 14px}.learning-adaptive p{max-width:760px}.home-routine{padding:24px 0;border-bottom:1px solid var(--border)}.home-story{padding:28px 0}.home-story .section{padding:18px 0}.home-story details{margin-top:18px}.home-story .section-top{display:block}.home-story .process{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.home-story h3{font-size:20px}.home-story .tiny{font-size:13px}.home-package{border-radius:18px;background:#f3effa;padding:26px;margin:24px 0}.home-package h2{margin-top:0}
.learning-bottom{display:grid;grid-template-columns:repeat(3,1fr);gap:0;position:fixed;z-index:40;bottom:0;left:50%;transform:translateX(-50%);width:min(1024px,100%);padding:10px 12px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--border);background:#fffffff5;backdrop-filter:blur(12px)}.learning-bottom a{position:relative;display:flex!important;align-items:center;justify-content:center;flex-direction:column;gap:3px;padding:2px 8px 9px;color:#626a80;font-size:14px;min-height:56px}.learning-bottom svg{width:28px;height:28px}.learning-bottom a[aria-current=page]{color:var(--purple);font-weight:650}.learning-bottom a[aria-current=page]::after{content:'';height:4px;width:55%;max-width:105px;position:absolute;bottom:0;border-radius:4px;background:var(--purple)}.learning-bottom a[aria-current=page] svg{stroke-width:2}
footer{max-width:1024px;flex-wrap:wrap;gap:14px;padding:24px 32px 30px}.amy-dropdown a{min-height:42px}.learning-subject:focus-visible,.exam-link:focus-visible{outline-offset:3px}.learning-start:focus-visible{outline-color:#542175}.card a{overflow-wrap:anywhere}
@media(min-width:1100px){.amy-home{padding:38px 48px 45px}.learning-subject-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.learning-subject{min-height:170px;font-size:17px}.learning-subject-icon{width:84px;height:84px}.learning-subject-icon svg{width:48px;height:48px}.learning-launch{max-width:100%}.learning-welcome h1{font-size:56px}}
@media(max-width:600px){.amy-header{margin-top:0;padding:18px 18px;gap:12px;border-radius:0}.amy-logo{gap:8px}.amy-logo img{width:42px;height:42px}.amy-logo span{font-size:27px}.amy-language select{min-height:42px;font-size:14px;padding:7px}.amy-primary{font-size:14px;gap:0}.amy-account>summary{width:43px;height:43px;padding:11px}.amy-account>summary svg{width:23px;height:23px}.amy-primary>.amy-account{flex:none}.amy-groups{padding:8px 14px;gap:4px 13px}.amy-groups summary{font-size:12px}.amy-primary .amy-dropdown{max-height:70vh;overflow:auto}.amy-home,main{padding:26px 18px 32px}.learning-welcome h1{font-size:39px;letter-spacing:-1.5px}.learning-subtitle{font-size:20px}.learning-launch{margin:22px 0 28px;gap:12px}.grade-field{padding:0 16px;gap:14px;min-height:60px}.grade-field select{font-size:20px;min-height:60px;padding:12px 0}.grade-field svg{width:29px;height:29px}.learning-start{min-height:66px;font-size:23px;padding:14px 20px}.home-subjects h2{font-size:28px;margin-bottom:16px}.learning-subject-grid{gap:10px}.learning-subject{min-height:132px;padding:14px 4px;gap:10px;font-size:15px;border-radius:13px}.learning-subject-icon{width:72px;height:72px}.learning-subject-icon svg{width:42px;height:42px}.exam-link{gap:13px;padding:16px;margin:18px 0 26px}.exam-icon{width:61px;height:61px}.exam-icon svg{width:37px;height:37px}.exam-link strong{font-size:20px}.exam-link small{font-size:13px}.companion{gap:18px;grid-template-columns:135px minmax(0,1fr);padding:24px 0}.companion img{max-height:250px}.companion strong{font-size:14px}.companion p{font-size:14px}.companion .eyebrow{letter-spacing:.8px;font-size:10px}.companion-amy{grid-template-columns:minmax(0,1fr) 135px}.companion h2{font-size:24px}.learning-adaptive{padding:21px}.home-story .process{grid-template-columns:1fr}.learning-bottom{padding-top:8px}.learning-bottom a{font-size:13px}.learning-bottom svg{width:25px;height:25px}footer{padding:20px 18px 25px;font-size:12px}.home-package{padding:21px}}
@media(max-width:360px){.amy-header{padding:15px 12px;gap:9px}.amy-logo span{font-size:24px}.amy-logo img{width:36px;height:36px}.amy-language select{font-size:12px;padding:6px}.amy-account>summary{width:38px;height:38px;padding:9px}.learning-welcome h1{font-size:35px}.learning-subject{font-size:13px;min-height:119px}.learning-subject-icon{width:61px;height:61px}.learning-subject-icon svg{width:36px;height:36px}.companion,.companion-amy{grid-template-columns:1fr}.companion figure,.companion-amy figure{order:0;max-width:230px;margin:auto}.companion>div,.companion-amy>div{order:1}.exam-link{gap:9px}.exam-link strong{font-size:18px}.exam-icon{width:48px;height:48px}.exam-icon svg{width:30px;height:30px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.home-demo{margin:24px 0;border:1px solid var(--border);background:#fff;border-radius:16px;padding:20px}.home-demo summary{color:var(--purple)}.preview-shell{max-width:560px;margin:22px auto}.preview-top,.preview-bottom{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted);padding:10px 0}.preview{border:1px solid var(--border);border-radius:15px;padding:24px;background:#fcfbff}.preview-tags{display:flex;gap:10px}.level-switch{display:flex;gap:6px;margin:18px 0;flex-wrap:wrap}.level-switch button{flex:1;background:#eee9f6;color:var(--purple);font-size:13px;padding:9px}.level-switch button[aria-pressed=true]{background:var(--purple);color:#fff}.answers{display:grid;grid-template-columns:1fr 1fr;gap:10px}.answers .answer{border:1px solid var(--border);background:#fff;color:var(--ink)}.answers .answer.correct{background:#e2f4e8;color:#185f39;border-color:#2f8851}.answers .answer.wrong{background:#fff1e7;color:#884a19}.feedback{min-height:40px;font-size:14px}.solution{padding:15px;margin-top:18px}.exam-image{margin:18px 0}.exam-image img{display:block;width:100%;height:auto;border-radius:12px}.exam-image figcaption{font-size:13px;color:var(--muted);padding-top:8px}

.learning-subject h3{font:inherit;letter-spacing:inherit;margin:0;max-width:100%;overflow-wrap:anywhere;text-align:center;line-height:1.3}
