/* Lernraum MVP – ruhige, kontrastreiche und responsive Gestaltung. */
:root {
  font-family: "Avenir Next", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  color: #21383d;
  background: #f5f6f1;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #21383d;
  --ink-soft: #486067;
  --muted: #60757a;
  --edge: #e3e9e4;
  --teal: #195c62;
  --teal-dark: #10484e;
  --teal-soft: #e5f0eb;
  --mint: #d4e6dc;
  --cream: #f5f6f1;
  --paper: #fffdfa;
  --shadow: 0 16px 44px rgba(35, 66, 63, 0.055);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #cc824f; outline-offset: 4px; }
button:disabled, a[aria-disabled="true"] { cursor: not-allowed; }
#hauptinhalt:focus { outline: none; }
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3 { letter-spacing: -0.04em; }
.container { width: min(1160px, calc(100% - 64px)); margin: 0 auto; }
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
#hauptinhalt { flex: 1 0 auto; }
.loading { padding: 3rem; text-align: center; }
.skip-link { position: fixed; top: -160px; left: 16px; z-index: 100; border: 2px solid var(--teal); border-radius: 10px; background: white; color: var(--ink); padding: 12px 16px; }
.skip-link:focus { top: 12px; }
.site-header { background: rgba(255,253,249,.92); border-bottom: 1px solid #e8eae5; }
.header-inner { min-height: 93px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; flex-shrink: 0; }
.brand-icon { height: 43px; width: 43px; background: #dcebe4; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; padding: 10px; border-radius: 14px; transform: rotate(-7deg); }
.brand-icon i { display:block; background: #286a65; border-radius: 3px; }
.brand-icon i:nth-child(2) { background: #dc9565; border-radius: 9px 3px 3px 3px; }
.brand-icon i:nth-child(3) { background: #dc9565; border-radius: 3px 3px 3px 9px; }
.brand-icon i:nth-child(4) { border-radius: 8px; }
.brand-name { display: flex; flex-direction: column; color: #264b51; font-size: 24px; font-weight: 830; letter-spacing: -.065em; line-height: .86; }
.brand-name span { display: contents; color: #3f7873; }
.brand-name small { padding-top: 7px; font-size: 10px; font-weight: 650; letter-spacing: .025em; color: #849290; }
.header-nav { display:flex; align-items:center; gap: 9px; }
.nav-link { text-decoration:none; font-weight: 700; font-size:14px; color:#60747a; border-radius: 999px; padding: 12px 19px; transition: background .16s, color .16s; }
.nav-link:hover { color: var(--teal-dark); background:#ecf3ee; }
.nav-link.active { background: #e5eeea; color: #245b5c; }
.site-footer { border-top: 1px solid #e4e8e2; background: #f7f8f3; margin-top: 70px; }
.footer-inner { padding: 25px 0; display:flex; align-items:center; justify-content:space-between; gap:12px; font-size: 12px; color: #798984; font-weight: 600; }
.small-leaf { color: #48847b; font-size:17px; vertical-align:middle; padding-right:4px; }
.eyebrow { display:inline-flex; align-items: center; gap:10px; color: #37685f; font-size: 11px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.subdued { color: #69837c; }
.tiny-dot { height: 7px; width: 7px; background:#42817a; border-radius: 50%; box-shadow:0 0 0 4px #d0e6dd; display:inline-block; }
.btn { min-height: 48px; display: inline-flex; gap: 18px; align-items: center; justify-content: center; padding: 12px 20px; font-size: 14px; line-height: 1.4; font-weight: 760; border: 1px solid transparent; border-radius: 13px; text-align: center; text-decoration: none; transition: transform .15s, background .15s, border-color .15s; }
.btn span[aria-hidden="true"] { font-size: 17px; font-weight:500; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 6px 14px rgba(25,92,98,.15); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-outline { border-color: #ceded7; color: #275b5b; background: #fffefa; box-shadow:none; }
.btn-outline:hover { background: #eaf3ee; }
.btn-subtle { background:#fff9f3; color: #795b51; border-color:#e9d7c8; }
.btn-subtle:hover { background:#faeae0; }
.btn-small { min-height: 44px; padding: 10px 15px; font-size:13px; gap: 9px; }
.text-link { color: #1a5c5e; text-decoration: none; border-bottom:1px solid #8cae9e; padding-bottom: 3px; font-weight: 780; font-size: 14px; }
.text-link span { padding-left: 6px; }
.text-link:hover { color: #0f4147; border-bottom-color:currentColor; }
.page-home { padding-top: 38px; }
.hero { min-height: 440px; padding: 56px 69px; position:relative; border: 1px solid #dce9df; border-radius: 32px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; overflow: hidden; background: linear-gradient(125deg, #eaf2e9 0%, #e0ece5 68%, #d8e9e1 100%); }
.hero::after { content:""; position:absolute; width:340px; height:340px; border:1px solid rgba(45,100,83,.10); border-radius:50%; right:-100px; bottom:-180px; pointer-events:none; }
.hero-copy { z-index:2; position:relative; max-width:590px; }
.hero h1 { font-size: clamp(38px, 4.6vw, 62px); line-height: 1.09; margin: 27px 0 22px; font-weight: 820; letter-spacing: -.07em; }
.hero h1 em { font-style: normal; color: #3e8076; }
.hero-copy p { max-width:450px; color: #526a69; font-size: 17px; line-height:1.7; margin-bottom: 25px; }
.hero-action { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.quiet-tag { color:#608078; font-weight: 650; font-size: 12px; }
.hero-art { position:relative; height:310px; display:flex; align-items:center; justify-content:center; }
.art-sun { position:absolute; right:5%; top:1%; width:220px; height:220px; background:#ecdcbe; border-radius:50%; opacity:.68; }
.art-paper { width:290px; height:242px; padding:35px 31px; z-index:2; background:#fffefb; border:1px solid #ecede6; box-shadow: 0 22px 44px rgba(45,70,56,.12); transform:rotate(7deg); border-radius: 19px; position:relative; display:flex; flex-direction:column; justify-content:space-between; }
.art-corner { position:absolute; right:22px; top:22px; width:14px; height:14px; border: 3px solid #eabb93; border-radius:5px; transform:rotate(20deg); }
.art-label { color: #849d93; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.art-symbol { font-weight:750; font-size:57px; letter-spacing:-.07em; white-space:nowrap; color:#315d60; }
.art-symbol span { color: #cf956d; font-size:30px; font-weight:400; vertical-align:middle; }
.art-rule { height:1px; background:#ecede5; }
.art-bars { display:grid; grid-template-columns:repeat(4,1fr); gap:5px; height:19px; }
.art-bars i { background:#76a89b; border-radius:3px; }
.art-bars i:last-child { background:#e8eee9; }
.art-spark { position:absolute; color: #749f86; font-size:38px; z-index:3; }
.art-spark-one { left:4%; bottom:3%; transform:rotate(-17deg); }
.art-spark-two { right:0; top:0; color:#daa982; }
.section-heading { display:flex; justify-content:space-between; align-items:end; gap:20px; margin:55px 0 22px; }
.section-heading h2 { margin: 9px 0 0; font-size: clamp(26px,2.5vw,33px); line-height:1.12; font-weight: 800; }
.section-heading p { color:#788783; font-size:14px; margin:10px 0 0; }
.section-note { color: #82918b; font-size:12px; font-weight:700; white-space:nowrap; padding-bottom:4px; }
.subject-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.subject-card { min-height:140px; border:1px solid #e4e9e4; border-radius:19px; padding:28px 22px; display:flex; align-items:center; gap:16px; text-decoration:none; background:#fffefb; box-shadow: 0 6px 18px rgba(35,66,63,.025); }
.subject-active { border-color: #d4e1d9; box-shadow:var(--shadow); }
.subject-active:hover { border-color:#8bb5a5; transform:translateY(-2px); }
.subject-inactive { opacity: .68; }
.subject-icon { flex: 0 0 61px; height:61px; display:grid; place-items:center; border-radius:18px; background: #dcece4; color:#286866; font-size:27px; font-weight:730; letter-spacing:-.075em; }
.subject-icon.muted { color:#8b948f; background:#eff1ed; font-size:22px; }
.subject-body { display:flex; flex-direction:column; gap:6px; min-width:0; }
.subject-body strong { font-size:18px; font-weight:800; letter-spacing:-.035em; }
.subject-body > span { color:#7b8986; font-size:12px; line-height:1.5; }
.subject-arrow { margin-left:auto; color:#326d64; font-size:19px; }
.subject-inactive .subject-arrow { color:#929e99; font-size:11px; font-weight:720; letter-spacing:.02em; }
.home-progress { margin-top:28px; background:#f0eee6; border:1px solid #e7e8df; border-radius:20px; display:flex; align-items:center; justify-content:space-between; gap:34px; padding:35px 40px; }
.home-progress h2 { margin: 10px 0; font-size:24px; }
.home-progress p { color:#73817a; font-size:14px; line-height:1.6; max-width:480px; margin-bottom:19px; }
.progress-summary { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; width:215px; flex-shrink:0; }
.big-counter { font-size:47px; font-weight:800; letter-spacing:-.07em; line-height:1; }
.big-counter small { color:#869991; font-size:24px; font-weight:620; }
.counter-caption { margin-top:8px; color:#7d8d83; font-weight:650; font-size:12px; }
.progress-track { height:8px; background: #e5eae6; border-radius:100px; overflow:hidden; width:100%; }
.progress-track > span { display:block; height:100%; background:#488b7b; width:0; border-radius:100px; }
.progress-summary .progress-track { margin-top:17px; }
.page-standard { padding-top:37px; }
.breadcrumbs { display:flex; align-items:center; gap:11px; color:#899891; font-size:13px; margin-bottom:29px; flex-wrap:wrap; }
.breadcrumbs a { text-decoration:none; color:#5a8073; }
.breadcrumbs a:hover { text-decoration:underline; }
.breadcrumbs span[aria-current="page"] { color:#5a6763; font-weight:750; }
.page-intro { min-height:230px; display:flex; align-items:center; justify-content:space-between; gap:28px; padding-bottom:10px; }
.page-intro h1 { font-size: clamp(38px,4.5vw,56px); line-height:1.13; margin:22px 0 15px; font-weight:825; letter-spacing:-.067em; }
.page-intro h1 em { font-style:normal; color:#458074; }
.page-intro p { color:#73837e; line-height:1.6; font-size:16px; max-width:590px; }
.intro-stat { width:200px; border:1px solid #dbe8dd; background:#edf3ec; border-radius:21px; padding:25px; display:flex; flex-direction:column; gap:3px; align-items:center; flex-shrink:0; text-align:center; }
.intro-stat strong { font-size:42px; font-weight:800; letter-spacing:-.055em; }
.intro-stat strong small { font-size:20px; color:#81958b; font-weight:600; }
.intro-stat span { font-size:12px; color:#6d8880; font-weight:700; }
.module-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.module-card { border:1px solid #e2e8e1; background:#fffefb; box-shadow:var(--shadow); border-radius:23px; min-height:315px; padding:28px; display:flex; flex-direction:column; }
.module-card-head { display:flex; justify-content:space-between; align-items:start; margin-bottom:36px; }
.module-index { font-size:13px; font-weight:800; color:#9aa6a0; letter-spacing:.06em; }
.module-symbol { width:57px; height:57px; background:#e4efe6; border-radius:19px; display:grid; place-items:center; color:#317268; font-size:29px; font-weight:500; }
.module-card:nth-child(2) .module-symbol { background:#f4e9db; color:#ae7757; }
.module-card:nth-child(3) .module-symbol { background:#e6edf1; color:#698697; }
.module-card h3 { font-size:23px; font-weight:810; margin-bottom:6px; }
.module-card > p { font-size:13px; color:#7c8b85; }
.module-foot { margin-top:auto; display:flex; flex-direction:column; align-items:start; gap:13px; padding-top:28px; }
.module-foot > span { font-size:12px; color:#70847c; font-weight:700; }
.module-foot .btn { margin-top:8px; }
.coming-section { margin-top:63px; }
.coming-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; }
.coming-card { border:1px dashed #d4ded5; background:#f9faf6; border-radius:17px; min-height:138px; padding:19px; display:flex; flex-direction:column; gap:8px; color:#6a7e75; }
.coming-diamond { font-size:25px; color:#a2b5a8; line-height:1; margin-bottom:auto; }
.coming-card strong { font-size:14px; font-weight:750; }
.coming-card span:last-child { font-size:11px; color:#9aaa9e; }
.source-note { color:#80918a; font-size:12px; margin-top:35px; line-height:1.7; }
.source-note a { text-underline-offset: 2px; }
.lesson-page .breadcrumbs { margin-bottom:24px; }
.lesson-heading { display:flex; justify-content:space-between; align-items:center; gap:18px; margin-bottom:27px; }
.lesson-heading h1 { font-size:clamp(32px,4vw,43px); margin:10px 0 6px; font-weight:820; }
.lesson-heading p { font-size:14px; color:#81918b; margin:0; }
.exit-link { font-size:13px; color:#487b70; text-decoration:none; font-weight:730; }
.exit-link:hover { text-decoration:underline; }
.exit-link span { margin-left:7px; }
.lesson-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:24px; align-items:start; }
.task-panel { border-radius:25px; border:1px solid #e2e7df; background:#fffefb; box-shadow:var(--shadow); overflow:hidden; }
.task-progress { padding:28px 35px 15px; display:flex; align-items:center; justify-content:space-between; color:#758980; font-size:12px; font-weight:720; }
.step-track { display:grid; grid-template-columns: repeat(3, 1fr); gap:8px; padding:0 35px 30px; }
.step-track span { height:7px; background:#e9efea; border-radius:30px; }
.step-track span.on { background:#519488; }
.task-content { border-top:1px solid #edf1eb; padding:37px 35px 40px; }
.task-content h2 { font-size:clamp(23px,2.6vw,31px); font-weight:800; line-height:1.32; max-width:620px; margin:12px 0 24px; letter-spacing:-.04em; }
.question-visual { margin: 22px 0 29px; padding:29px 26px; border-radius:17px; border:1px solid #e4eee5; background:#f1f6f1; max-width:510px; }
.fraction-bar-row { display:flex; align-items:center; gap:18px; width:100%; }
.fraction-bar-row strong { font-size:17px; color:#456e67; flex:0 0 50px; text-align:right; }
.fraction-bar { display:grid; grid-template-columns:repeat(var(--segments),minmax(0,1fr)); gap:5px; flex:1; height:44px; }
.fraction-bar > span { border: 1px solid #c0d1c5; background:#e2eae3; border-radius:6px; }
.fraction-bar > span.filled { background:#5c9f8f; border-color:#4c907f; }
.pair-visual { display:flex; flex-direction:column; gap:15px; }
.pair-visual .fraction-bar { height:32px; }
.numberline-visual { height:145px; display:flex; align-items:center; }
.numberline { height:3px; margin:0 15px; width:calc(100% - 30px); background:#4e8a7a; position:relative; }
.tick { position:absolute; top:-12px; height:26px; width:3px; background:#386e63; border-radius:5px; }
.tick-start { left:0; } .tick-mid { left:50%; } .tick-three { left:75%; } .tick-end { right:0; }
.tick-label { position:absolute; top:23px; transform:translateX(-50%); color:#456d61; font-size:12px; font-weight:750; }
.label-start { left:0; } .label-mid { left:50%; } .label-three { left:75%; } .label-end { right:0; }
.uneven-visual { display:flex; align-items:center; gap:22px; color:#627d73; font-size:13px; font-weight:700; }
.uneven-rect { width:200px; height:100px; border:2px solid #548b7e; border-radius:6px; display:grid; grid-template-columns:35% 65%; overflow:hidden; flex-shrink:0; }
.uneven-rect span:first-child { background:#7cb5a0; } .uneven-rect span:last-child { background:#e7efe9; border-left:2px solid #548b7e; }
.choice-grid { display:grid; gap:12px; margin-bottom:24px; max-width:610px; }
.choice-btn { background:white; border: 1px solid #dce6de; border-radius:13px; min-height:65px; padding:12px 18px; display:flex; align-items:center; gap:18px; color:var(--ink); text-align:left; font-size:15px; font-weight:740; }
.choice-btn:hover { border-color:#6aa290; background:#f5faf6; }
.choice-letter { flex:0 0 34px; width:34px; height:34px; display:grid; place-items:center; border-radius:10px; background:#edf3ed; color:#577d73; font-size:13px; }
.choice-outline { margin-left:auto; color:#98b1a3; font-weight:400; }
.answer-form { max-width:600px; margin:29px 0; }
.answer-form > label { display:block; font-size:13px; font-weight:750; margin-bottom:11px; color:#53706a; }
.answer-line { display:flex; gap:12px; align-items:stretch; }
.answer-line input { min-width:0; flex:1; padding:15px 17px; min-height:54px; font-size:19px; color:var(--ink); border:1px solid #cbdcd1; border-radius:12px; background:#fff; }
.answer-line input:focus { outline:3px solid #9ccec0; outline-offset:1px; }
.muted-instruction { display:block; margin-top:10px; color:#8a9990; font-size:12px; }
.task-actions { padding-top:18px; border-top:1px solid #eff2ed; display:flex; align-items:center; gap:24px; flex-wrap:wrap; }
.quiet-button { background:transparent; border:0; padding:12px 0; min-height:44px; color:#52766c; font-size:13px; font-weight:740; text-decoration:underline; text-decoration-color:#a9c4b7; text-underline-offset:4px; }
.quiet-button:hover { color:#1b5956; }
.hint-box { margin-top:12px; background:#f7f1e8; padding:19px 21px; border-radius:13px; border:1px solid #eee1cc; font-size:14px; line-height:1.6; color:#665c4e; }
.hint-box strong { color:#755f45; }
.hint-box p { margin:7px 0 0; }
.feedback { border-radius:15px; border:1px solid; padding:18px 19px; display:flex; align-items:flex-start; gap:15px; margin:12px 0 18px; line-height:1.55; }
.feedback-good { background:#eaf5ef; border-color:#cce5d6; color:#2c6051; }
.feedback-neutral { background:#fff5e8; border-color:#f0e0c6; color:#7b654d; }
.feedback-symbol { width:33px; height:33px; flex:0 0 33px; display:grid; place-items:center; border-radius:12px; font-size:18px; background:#d8e9dd; }
.feedback-neutral .feedback-symbol { background:#f6e4cb; }
.feedback strong { font-size:15px; }
.feedback p { margin:4px 0 0; font-size:13px; }
.feedback small { display:block; margin-top:6px; font-size:12px; }
.btn-next { margin-top:10px; }
.lesson-aside { display:flex; flex-direction:column; gap:15px; }
.aside-card { background:#eaf2e9; border:1px solid #dbe8dd; border-radius:24px; padding:29px 25px; color:#48675e; }
.aside-icon { display:grid; place-items:center; width:43px; height:43px; border-radius:14px; background:#d5e8d8; color:#4d866e; margin-bottom:30px; font-size:23px; }
.aside-card h3 { font-size:21px; line-height:1.25; letter-spacing:-.035em; color:#2f594f; margin:12px 0; }
.aside-card > p { font-size:13px; line-height:1.65; color:#658176; }
.aside-example { margin-top:25px; padding-top:24px; border-top:1px solid #d1e2d7; }
.aside-example strong { color:#45796a; font-size:12px; }
.aside-example p { line-height:1.6; font-size:13px; color:#667f76; margin:8px 0; }
.aside-example .question-visual { border:none; padding:10px 0 0; margin:10px 0 0; background:transparent; }
.aside-example .fraction-bar { height:24px; gap:3px; }
.aside-example .fraction-bar-row strong { font-size:12px; flex-basis:32px; }
.aside-note { font-size:12px; line-height:1.6; color:#92a29a; padding:0 8px; }
.result-page { min-height:500px; }
.result-panel { max-width:780px; text-align:center; background:linear-gradient(145deg,#f5f9f4,#e9f3ed); border:1px solid #d8e8dc; border-radius:28px; padding:48px 50px; margin:24px auto 0; box-shadow:var(--shadow); }
.result-deco { width:62px; height:62px; background:#d8e9dc; display:grid; place-items:center; border-radius:22px; color:#59907b; font-size:35px; margin:0 auto 20px; }
.result-panel h1 { margin:15px 0; font-size:clamp(30px,4vw,43px); font-weight:820; }
.result-panel > p { color:#668077; line-height:1.6; max-width:540px; margin:0 auto; }
.result-counter { font-size:74px; line-height:1; font-weight:850; letter-spacing:-.07em; color:#2b685d; margin:32px 0 7px; }
.result-counter span { font-size:33px; color:#93ab9b; }
.result-subtitle { font-size:13px; font-weight:760; color:#77958a !important; }
.result-details { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:35px 0 18px; background:#ffffffaa; border:1px solid #dfebe1; border-radius:16px; }
.result-details > div { display:flex; flex-direction:column; align-items:center; gap:8px; padding:22px 10px; }
.result-details > div + div { border-left:1px solid #e2eae0; }
.result-details strong { font-size:28px; }
.result-details span { font-size:11px; color:#779084; line-height:1.4; }
.result-note { font-size:12px; }
.result-buttons { display:flex; flex-wrap:wrap; gap:13px; justify-content:center; margin-top:27px; }
.progress-list { display:grid; gap:14px; }
.progress-list-item { display:flex; align-items:center; gap:20px; padding:25px 27px; border:1px solid #e0e8df; border-radius:19px; background:#fffdfa; }
.progress-list-symbol { flex:0 0 57px; width:57px; height:57px; border-radius:18px; display:grid; place-items:center; background:#e5eee8; color:#478078; font-size:25px; }
.progress-list-body { flex:1; min-width:0; }
.progress-list-body h3 { font-size:18px; font-weight:820; margin:0 0 4px; }
.progress-list-body p { font-size:12px; color:#72877b; margin:0 0 12px; }
.progress-list-body .progress-track { max-width:460px; }
.progress-detail { margin:9px 0 0 !important; color:#97a59b !important; }
.privacy-panel { padding:28px 34px; margin-top:30px; border-radius:19px; border:1px solid #e7e5dc; background:#f2efe8; display:flex; justify-content:space-between; align-items:center; gap:35px; }
.privacy-panel h2 { font-size:23px; margin:10px 0; }
.privacy-panel p { color:#7b857f; line-height:1.6; font-size:13px; max-width:650px; margin:0; }
@media (max-width: 1000px) {
  .hero { padding:45px 45px; grid-template-columns:1.1fr .7fr; }
  .hero-art { transform:scale(.84); margin-right:-35px; }
  .subject-card { padding:19px 16px; gap:12px; }
  .subject-icon { flex-basis:53px; height:53px; }
  .subject-body strong { font-size:16px; }
  .module-card { padding:21px; }
  .module-card h3 { font-size:21px; }
  .lesson-layout { grid-template-columns: minmax(0,1fr) 245px; gap:16px; }
  .aside-card { padding:22px 19px; }
}
@media (max-width: 760px) {
  .container { width:calc(100% - 32px); }
  .header-inner { min-height:75px; gap:5px; flex-wrap:wrap; padding:13px 0; }
  .brand { gap:9px; }
  .brand-icon { height:36px; width:36px; border-radius:11px; padding:8px; }
  .brand-name { font-size:20px; }
  .brand-name small { font-size:9px; }
  .nav-link { padding:10px 11px; font-size:12px; }
  .header-nav { gap:1px; }
  .hero { grid-template-columns:1fr; min-height:auto; padding:42px 29px 16px; gap:0; }
  .hero h1 { font-size:clamp(39px,9vw,57px); margin:18px 0; }
  .hero-copy p { font-size:15px; line-height:1.65; }
  .hero-art { transform:scale(.72); height:215px; margin: -4px auto -16px; width:100%; }
  .section-heading { margin:40px 0 19px; }
  .section-note { display:none; }
  .subject-grid { grid-template-columns:1fr; gap:10px; }
  .subject-card { min-height:100px; padding:18px; }
  .home-progress { padding:25px; }
  .module-grid { grid-template-columns:1fr; gap:13px; }
  .module-card { min-height:245px; padding:24px; }
  .module-card-head { margin-bottom:15px; }
  .coming-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .lesson-layout { display:flex; flex-direction:column; }
  .task-panel { width:100%; }
  .lesson-aside { width:100%; }
  .aside-card { padding:23px; }
  .aside-icon { margin-bottom:13px; }
  .aside-note { padding:0 5px; }
  .page-intro { align-items:flex-start; }
  .intro-stat { width:145px; padding:17px 8px; }
  .intro-stat strong { font-size:33px; }
  .intro-stat strong small { font-size:15px; }
  .intro-stat span { font-size:11px; }
  .progress-list-item { padding:18px; }
  .progress-list-symbol { flex-basis:44px; width:44px; height:44px; }
}
@media (max-width: 520px) {
  .header-inner { flex-direction:column; align-items:stretch; gap:15px; }
  .brand { align-self:flex-start; }
  .header-nav { justify-content:space-between; border-top:1px solid #edf0eb; padding-top:9px; }
  .nav-link { flex:1; text-align:center; }
  .page-home { padding-top:18px; }
  .hero { padding:30px 24px 5px; border-radius:23px; }
  .hero h1 { font-size:39px; }
  .hero-action { align-items:flex-start; flex-direction:column; gap:11px; }
  .hero-art { height:198px; transform:scale(.65); margin-top:0; margin-bottom:-25px; }
  .section-heading h2 { font-size:26px; }
  .home-progress { flex-direction:column; align-items:stretch; gap:20px; }
  .progress-summary { width:100%; }
  .page-standard { padding-top:21px; }
  .page-intro { display:flex; flex-direction:column; gap:20px; }
  .page-intro h1 { font-size:38px; }
  .page-intro p { font-size:14px; }
  .intro-stat { align-items:flex-start; text-align:left; width:100%; flex-direction:row; gap:15px; align-items:center; }
  .module-card { min-height:235px; }
  .coming-grid { grid-template-columns:1fr 1fr; }
  .coming-card { padding:14px; min-height:108px; }
  .lesson-heading { align-items:flex-start; }
  .lesson-heading h1 { font-size:32px; }
  .exit-link { font-size:11px; text-align:right; }
  .task-progress { padding:20px 21px 12px; }
  .step-track { padding:0 21px 18px; }
  .task-content { padding:27px 20px 30px; }
  .task-content h2 { font-size:23px; }
  .choice-btn { min-height:61px; padding:10px 12px; gap:12px; font-size:14px; }
  .question-visual { padding:19px 15px; }
  .fraction-bar { height:37px; gap:3px; }
  .uneven-visual { flex-direction:column; align-items:flex-start; gap:10px; }
  .uneven-rect { height:88px; }
  .answer-line { flex-direction:column; }
  .task-actions { gap:15px; }
  .result-panel { padding:34px 20px; }
  .result-details { grid-template-columns:1fr; }
  .result-details > div + div { border-left:0; border-top:1px solid #e2eae0; }
  .result-details > div { padding:16px; }
  .result-buttons { flex-direction:column; }
  .progress-list-item { flex-wrap:wrap; gap:10px; }
  .progress-list-body { flex-basis:calc(100% - 60px); }
  .progress-list-item > .btn { margin-left:55px; }
  .privacy-panel { align-items:flex-start; flex-direction:column; padding:23px; gap:17px; }
  .footer-inner { flex-direction:column; align-items:flex-start; padding:18px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { transition:none !important; animation:none !important; }
}
