/* V5.114 – separater Design-Test nach Referenzbild 2 */
body{background:#f7efe3;color:#351d16}
.app{width:min(720px,100%);padding:18px 22px 110px}
.top{margin:0 0 14px;padding:0;gap:14px}
.brand{gap:14px}.drawer-logo-image{width:68px;height:68px;flex-basis:68px;border-radius:20px}
.brand-copy strong{font-size:2rem;line-height:1}.brand-copy small{font-size:.86rem;margin-top:7px;color:#76584a}
.top-actions{align-items:center}.top-actions select{max-width:190px;border-radius:18px;padding:13px 15px;background:#fffaf3;font-size:1rem}
.top-actions .square{width:52px;height:52px;border-radius:50%;background:#eadbc8;font-size:0}.top-actions .square::after{content:"🔊";font-size:20px;color:#8d674f}
.subject-drawer-stage,.subject-drawer-stage.drawer-open{height:auto;margin:0 0 16px;overflow:visible}
.subjects{position:relative;inset:auto;display:flex;align-items:center;gap:9px;padding:0 0 6px;overflow-x:auto;scroll-padding-inline:0}
.subjects::before,.subjects::after{display:none}
.subject,.subject.active{position:relative;flex:0 0 auto;width:auto;height:42px;padding:0 18px;overflow:hidden;border:0;border-radius:999px;background:#efe5d8;color:#50372d;box-shadow:none;transform:none;font-size:.95rem;font-weight:700}
.subject::before,.subject::after,.subject-icon{display:none}.subject-name,.subject.active .subject-name{position:static;font-size:inherit;line-height:1;white-space:nowrap;color:inherit}
.subject.active{width:auto;height:42px;padding:0 20px;background:linear-gradient(135deg,#ffd75d,#f2b530);color:#513314;box-shadow:0 5px 11px rgba(203,139,36,.18)}
.more-subjects-button{flex:0 0 auto;height:42px;padding:0 16px;border:1px dashed #d8b97e;border-radius:999px;background:#fff8ed;color:#76513a;font-size:.83rem;font-weight:750;white-space:nowrap}
#knowledgeSubjectBtn .subject-name{font-size:inherit}
.subject-panel.subject-paper-fan{position:relative;left:auto;bottom:auto;width:100%;height:auto;max-width:none;margin:18px 0 0;transform:none}
.subject-panel.subject-paper-fan::before{display:none}.subject-paper-fan .subject-starters{height:auto;padding:8px 5px 13px;gap:8px}
.subject-paper-fan .subject-starter,.subject-paper-fan .subject-starter:nth-child(n){flex:0 0 104px;width:104px;min-width:104px;height:120px;min-height:120px;padding:10px 7px;border-radius:12px;transform:none;animation:none}
.subject-paper-fan .starter-icon{margin:12px 0 8px}.subject-paper-fan .starter-label{font-size:.7rem}
.api,.install-app-chip{display:none!important}
.hero{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:8px 16px;margin:0;padding:27px 26px 22px;border:0;border-radius:29px;background:linear-gradient(140deg,#fffaf2 0%,#fffdf9 58%,#f4dfbf 100%);box-shadow:0 12px 35px rgba(98,57,27,.08)}
.hero::after{display:none}.hero .avatar{display:none}.hero-copy{grid-column:1;align-self:center;padding-bottom:6px}
.hero .eyebrow{font-size:.86rem;color:#9b5d29;letter-spacing:.02em;text-transform:none}.hero .eyebrow::before{content:"✦ ";color:#eeb62b;font-size:1.35rem}
.hero h1{max-width:390px;margin:8px 0;font-size:2.2rem;line-height:1.06;letter-spacing:-.045em}.hero p{max-width:395px;font-size:1rem;line-height:1.38;color:#80695c}
.hero-drawer-art{grid-column:2;grid-row:1;width:175px;height:175px;align-self:center;justify-self:end;filter:drop-shadow(0 12px 13px rgba(112,62,25,.17))}
.hero .composer{position:relative;z-index:3;grid-column:1/-1;grid-row:2;bottom:auto;left:auto;right:auto;width:100%;max-width:none;margin:0;padding:7px;transform:none;border:1px solid #eadcc8;border-radius:999px;background:#fffdfa;box-shadow:0 6px 18px rgba(96,56,31,.08);grid-template-columns:48px minmax(0,1fr) 52px}
.hero .composer .mic{width:48px;height:48px;border-radius:50%;background:transparent;color:#7e695e;font-size:1.8rem}.hero .composer .mic span{display:none}
.hero .composer textarea{min-height:48px;padding:12px 5px;border:0;background:transparent;font-size:1rem;resize:none}.hero .composer .send{width:48px;height:48px;border-radius:50%;background:#efbd34;color:#442914}
.design-hero-actions{grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:3px}.design-hero-actions button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:58px;padding:10px 7px;border:0;border-radius:18px;background:#f4eadc;color:#51372b;font-weight:750;font-size:.8rem}.design-hero-actions button span{font-size:1.2rem}.hero .conversation{display:none}
.home-subjects,.recent-learning{margin-top:28px}.home-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.home-section-head h2{margin:0;font-size:1.55rem;letter-spacing:-.025em}.home-section-head button{border:0;background:transparent;color:#73594b;font-size:.95rem}.swipe-hint{color:#876b5b;font-size:.82rem;font-weight:700}
.home-subject-row{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;padding:0 10% 5px 0}.home-subject-row::-webkit-scrollbar{display:none}.home-subject-card{--drawer:#e9b748;--drawer2:#d7962c;position:relative;flex:0 0 calc((100% - 36px)/4);min-width:112px;height:202px;padding:0 0 31px;border:0;border-radius:18px;background:linear-gradient(180deg,#f7dfb3,#f4e5cb);overflow:hidden;color:#422b20;box-shadow:none;scroll-snap-align:start}
.home-subject-card.card-deutsch{--drawer:#db8771;--drawer2:#bf6654;background:linear-gradient(180deg,#f2cabc,#f2dbd1)}.home-subject-card.card-englisch{--drawer:#dbc25a;--drawer2:#c3a73b;background:linear-gradient(180deg,#eee0a9,#eee4c4)}.home-subject-card.card-wissen{--drawer:#d58c58;--drawer2:#ba693c;background:linear-gradient(180deg,#ecc8aa,#eddbc8)}
.home-subject-card.card-franzoesisch{--drawer:#d97f6d;--drawer2:#b95b50;background:linear-gradient(180deg,#f1c3b8,#f0d7cf)}.home-subject-card.hidden{display:none}
.home-paper{position:absolute;z-index:1;left:18px;right:18px;top:23px;height:89px;padding-top:35px;border-radius:8px 8px 3px 3px;background:#fffdf8;box-shadow:-5px 5px 0 #f6ead8,5px 7px 0 #fff6e7;font-size:.88rem}.home-drawer{position:absolute;z-index:2;left:10px;right:10px;top:75px;height:91px;display:grid;place-items:center;border-radius:9px 9px 15px 15px;background:linear-gradient(150deg,var(--drawer),var(--drawer2));font-size:2.5rem;color:#70431f;box-shadow:0 9px 14px rgba(104,57,28,.14)}.home-subject-card small{position:absolute;left:0;right:0;bottom:9px;font-size:.76rem;color:#74594a}
.recent-learning{margin-bottom:20px}.recent-card{display:grid;grid-template-columns:60px 1fr 24px;align-items:center;gap:13px;width:100%;margin-bottom:10px;padding:10px 14px;border:0;border-radius:18px;background:#fffaf3;color:#38251d;text-align:left;box-shadow:0 5px 16px rgba(89,52,30,.05)}.recent-icon{width:55px;height:55px;display:grid;place-items:center;border-radius:14px;font-size:1.35rem;font-weight:800}.recent-mathe{background:#f8df9e;color:#9a6410}.recent-deutsch{background:#efb3a3;color:#8b4031}.recent-card span:nth-child(2){display:flex;flex-direction:column;gap:5px}.recent-card b{font-size:1rem}.recent-card small{font-size:.79rem;color:#856f63}.recent-card i{font-size:1.9rem;font-style:normal;color:#826b5e}
.visual,.practice-round-bar,.chat,.actions,.photo-tray{scroll-margin-top:20px}.chat{margin-top:24px}.compact-actions{margin-bottom:25px}
body:not(.learning-started) .chat,body:not(.learning-started) .compact-actions{display:none}
body.learning-started .recent-learning{display:none}
/* Fächer bleiben auch während und nach einer Lernrunde erreichbar. */
body.learning-started .home-subjects{display:block}
.bottom-navigation{position:fixed;z-index:40;left:50%;bottom:0;transform:translateX(-50%);display:grid;grid-template-columns:repeat(4,1fr);width:min(720px,100%);padding:10px 16px max(10px,env(safe-area-inset-bottom));border-top:1px solid #eadcc9;background:rgba(255,250,242,.96);backdrop-filter:blur(14px);box-shadow:0 -7px 20px rgba(78,45,25,.05)}.bottom-navigation button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:52px;padding:4px 2px;border:0;border-radius:14px;background:transparent;color:#7d675b;font-size:.75rem;line-height:1.1;white-space:nowrap}.bottom-navigation button span{display:grid;place-items:center;min-height:25px;font-size:1.28rem;line-height:1}.bottom-navigation button.active{background:#fff1cf;color:#b8750c;font-weight:800}
.settings-modal{position:fixed;z-index:110;inset:0;display:flex;align-items:flex-end;justify-content:center}.settings-modal.hidden{display:none}.settings-backdrop{position:absolute;inset:0;width:100%;border:0;background:rgba(54,34,24,.38);backdrop-filter:blur(3px)}.settings-sheet{position:relative;width:min(680px,calc(100% - 22px));margin-bottom:max(12px,env(safe-area-inset-bottom));padding:22px;border:1px solid #ead5b6;border-radius:28px;background:#fffaf2;box-shadow:0 24px 70px rgba(63,34,18,.25)}.settings-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:17px}.settings-head span{font-size:.7rem;font-weight:850;letter-spacing:.12em;color:#a0642d}.settings-head h2{margin:4px 0 0;font-size:1.45rem}.settings-head>button{width:40px;height:40px;border:0;border-radius:50%;background:#f2e6d8;color:#583a2c;font-size:1rem}.settings-list{display:grid;gap:9px}.settings-list>button,.settings-storage{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:11px;width:100%;min-height:70px;padding:10px 13px;border:1px solid #eadbc9;border-radius:17px;background:#fffdf9;color:#40291f;text-align:left}.settings-list>button{cursor:pointer}.settings-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#f7e7c7;font-size:1.25rem}.settings-list strong,.settings-list small{display:block}.settings-list strong{font-size:.92rem}.settings-list small{margin-top:4px;color:#826b5f;font-size:.72rem;line-height:1.3}.settings-list i{font-style:normal;font-weight:800;color:#a26a25}.settings-done{width:100%;min-height:48px;margin-top:16px;border:0;border-radius:15px;background:linear-gradient(135deg,#edb83a,#d98a1e);color:#442716;font-weight:850;font-size:1rem}

/* V5.121: Lernstand und Einstellungen als zusammengehörige Schublade-Fenster */
.progress-modal{z-index:110;display:flex;align-items:flex-end;justify-content:center}
.progress-backdrop{border:0;background:rgba(54,34,24,.38);backdrop-filter:blur(3px)}
.progress-sheet{width:min(680px,calc(100% - 22px));max-height:min(86vh,760px);margin:0 0 max(12px,env(safe-area-inset-bottom));padding:22px;border:1px solid #ead5b6;border-radius:28px;background:#fffaf2;box-shadow:0 24px 70px rgba(63,34,18,.25);scrollbar-color:#d69a42 transparent}
.progress-head{margin-bottom:4px}.progress-head h2{margin:4px 0 12px;color:#40291f;font-size:1.45rem}.progress-head button{width:40px;height:40px;border:0;border-radius:50%;background:#f2e6d8;color:#583a2c;font-size:1rem}
.progress-tabs{padding:5px;border:1px solid #eadbc9;border-radius:16px;background:#f7ead8}.progress-tabs button{min-height:42px;border-radius:12px;font-size:.88rem}.progress-tabs button.active{background:#fffaf2!important;box-shadow:0 4px 12px rgba(91,52,27,.1)!important}
.progress-note,.usage-hint{border:1px solid #eedcc4;background:#fff7eb;color:#685448}.progress-card,.subject-progress-card,.usage-grid div{border-color:#eadbc9;background:#fffdf9}.progress-card strong,.subject-progress-card strong,.usage-grid b{color:#8e4c1c}.progress-row{background:#fffdf9}
.progress-footer{bottom:-22px;margin-left:-22px;margin-right:-22px;padding:12px 22px 22px;border-top:1px solid #eadbc9;background:rgba(255,250,242,.97);backdrop-filter:blur(10px)}
.progress-footer button{min-height:48px}.progress-footer .progress-done{background:linear-gradient(135deg,#edb83a,#d98a1e)!important;border-color:#d98a1e!important;color:#442716!important}
.settings-list small{font-size:.78rem}.settings-list>button:focus-visible,.settings-head>button:focus-visible,.settings-done:focus-visible,.progress-head button:focus-visible,.progress-tabs button:focus-visible,.progress-footer button:focus-visible{outline:3px solid rgba(218,143,30,.35);outline-offset:2px}
@media(max-width:600px){
  .app{padding:14px 14px 105px}.top{gap:6px}.brand{gap:8px;min-width:0}.drawer-logo-image{width:50px;height:50px;flex-basis:50px;border-radius:15px}.brand-copy strong{font-size:1.38rem}.brand-copy small{font-size:.64rem;white-space:nowrap}.top-actions{gap:6px}.top-actions select{width:150px;max-width:150px;padding:10px 7px;font-size:.82rem}.top-actions .square{display:grid;width:42px;height:42px;flex:0 0 42px}
  .subject,.subject.active{height:37px;padding:0 14px;font-size:.82rem}.subject.active{height:37px;padding:0 17px}.more-subjects-button{height:37px;padding:0 13px;font-size:.74rem}
  .hero{grid-template-columns:minmax(0,1fr) 96px;padding:18px 16px 15px;border-radius:24px;gap:6px 7px}.hero h1{font-size:1.55rem}.hero p{font-size:.83rem}.hero-drawer-art{width:92px;height:92px}.hero .eyebrow{font-size:.7rem}.hero .composer{grid-template-columns:40px minmax(0,1fr) 43px;padding:5px}.hero .composer .mic,.hero .composer .send{width:40px;height:40px}.hero .composer textarea{min-height:40px;padding:9px 3px;font-size:.82rem}.design-hero-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.design-hero-actions button{min-height:48px;gap:5px;padding:7px 5px;font-size:.78rem;line-height:1.1}.design-hero-actions button span{font-size:1rem}
  .home-subjects,.recent-learning{margin-top:22px}.home-section-head{margin-bottom:10px}.home-section-head h2{font-size:1.28rem}.home-section-head button{font-size:.76rem}.swipe-hint{font-size:.7rem}.home-subject-row{gap:6px;padding:0 14% 5px 0}.home-subject-card{flex:0 0 92px;min-width:92px;height:142px;padding-bottom:24px}.home-paper{left:10px;right:10px;top:16px;height:65px;padding-top:25px;font-size:.68rem}.home-drawer{left:4px;right:4px;top:55px;height:64px;border-radius:7px 7px 12px 12px;font-size:1.55rem}.home-subject-card small{bottom:6px;font-size:.62rem}.recent-card{grid-template-columns:50px 1fr 18px;padding:9px 11px}.recent-icon{width:47px;height:47px}.recent-card b{font-size:.88rem}.recent-card small{font-size:.7rem}
  .settings-sheet,.progress-sheet{width:calc(100% - 16px);max-height:calc(100dvh - 16px);margin-bottom:max(8px,env(safe-area-inset-bottom));padding:18px 15px;border-radius:24px}.settings-head h2,.progress-head h2{font-size:1.25rem}.settings-list>button,.settings-storage{grid-template-columns:42px minmax(0,1fr) auto;min-height:64px;padding:8px 10px}.settings-icon{width:38px;height:38px}.settings-list strong{font-size:.88rem}.settings-list small{font-size:.76rem}.progress-footer{bottom:-18px;margin-left:-15px;margin-right:-15px;padding:10px 15px calc(15px + env(safe-area-inset-bottom))}.progress-tabs button{font-size:.82rem}
}
@media(max-width:390px){.brand{gap:6px}.brand-copy strong{font-size:1.08rem}.brand-copy small{display:none}.drawer-logo-image{width:40px;height:40px;flex-basis:40px}.top-actions{gap:5px}.top-actions select{width:145px;max-width:145px;font-size:.78rem}.top-actions .square{display:grid;width:38px;height:38px;flex-basis:38px}.top-actions .square::after{font-size:17px}.hero{grid-template-columns:minmax(0,1fr) 82px}.hero-drawer-art{width:80px;height:80px}.hero h1{font-size:1.4rem}.hero p{font-size:.78rem}.home-subject-row{gap:4px}.home-subject-card{height:136px}.home-paper{left:8px;right:8px;font-size:.63rem}.home-drawer{left:3px;right:3px;font-size:1.4rem}.home-subject-card small{font-size:.58rem}}

/* V5.126 – Elternkonto-Prototyp */
.top-actions .header-sound-control{display:none}
.top-actions .account-button{display:grid;place-items:center;font-size:1.2rem}
.top-actions .account-button::after{content:none}
.account-button.account-active{background:linear-gradient(145deg,#f5c342,#d98620);color:#4c2a18;box-shadow:0 6px 16px rgba(142,79,22,.22)}
.account-modal{position:fixed;z-index:10030;inset:0;display:flex;align-items:flex-end;justify-content:center}.account-modal.hidden{display:none}.account-backdrop{position:absolute;inset:0;width:100%;border:0;background:rgba(57,33,20,.42);backdrop-filter:blur(4px)}
.account-sheet{position:relative;width:min(600px,calc(100% - 22px));max-height:calc(100dvh - 24px);overflow:auto;margin-bottom:max(12px,env(safe-area-inset-bottom));padding:22px;border:1px solid #dfbd83;border-radius:28px;background:linear-gradient(155deg,#fffdf8,#fff5e3);box-shadow:0 24px 70px rgba(73,39,19,.3)}
.account-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:17px}.account-head>div>span{font-size:.72rem;font-weight:850;letter-spacing:.12em;color:#a0642d}.account-head h2{margin:4px 0 0;color:#3d2419;font-size:1.5rem}.account-head>button{width:40px;height:40px;border:0;border-radius:50%;background:#f2e3cf;color:#583a2c;font-size:1rem}
.account-intro,.account-profile,.account-status-card{display:flex;align-items:center;gap:12px;border:1px solid #ead7ba;border-radius:18px;background:#fffdf9;padding:14px}.account-intro>span{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border-radius:14px;background:#f9e6b8;font-size:1.35rem}.account-intro strong,.account-intro small,.account-profile strong,.account-profile span,.account-status-card strong,.account-status-card small{display:block}.account-intro small,.account-status-card small{margin-top:4px;color:#816b5f;line-height:1.4}
.account-mode{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:16px 0 14px;padding:5px;border-radius:16px;background:#f2e7d8}.account-mode button{min-height:44px;border:0;border-radius:12px;background:transparent;color:#765b4d;font-weight:800}.account-mode button.active{background:#fffaf2;color:#4a2b1d;box-shadow:0 3px 10px rgba(83,47,24,.11)}
.account-form{display:grid;gap:12px}.account-form label>span:first-child{display:block;margin:0 0 6px 3px;color:#5a3a2a;font-size:.88rem;font-weight:780}.account-form input{box-sizing:border-box;width:100%;min-height:50px;border:1px solid #dfc9aa;border-radius:14px;background:#fff;color:#3f2a20;padding:11px 13px;font:inherit;outline:none}.account-form input:focus{border-color:#cc8727;box-shadow:0 0 0 3px rgba(224,157,53,.19)}.account-password{position:relative;display:block}.account-password input{padding-right:50px}.account-password button{position:absolute;top:5px;right:5px;width:40px;height:40px;border:0;border-radius:10px;background:#f6ead8;font-size:1rem}
.account-error{min-height:20px;margin:0 3px;color:#a2362a;font-size:.82rem}.account-error.account-success{color:#39733d}.account-submit{min-height:52px;border:0;border-radius:15px;background:linear-gradient(135deg,#edb83a,#d9861c);color:#432516;font-size:1rem;font-weight:880;box-shadow:0 7px 18px rgba(171,99,22,.2)}.account-test-note{margin:13px 3px 0;color:#806c60;font-size:.76rem;line-height:1.45}
.forgot-password-btn{justify-self:center;margin-top:-4px;border:0;background:transparent;color:#8a561f;font-weight:780;text-decoration:underline;text-underline-offset:3px}.forgot-password-btn:disabled{opacity:.55}.account-recovery .account-intro{margin-bottom:16px}
.account-profile{padding:17px}.account-avatar{display:grid;place-items:center;width:58px;height:58px;flex:0 0 58px;border-radius:50%;background:linear-gradient(145deg,#f5d58b,#e29a2f);font-size:1.7rem}.account-profile small{color:#9b642e;font-size:.68rem;font-weight:850;letter-spacing:.1em}.account-profile strong{margin-top:4px;font-size:1.08rem}.account-profile span:not(.account-avatar){margin-top:3px;color:#806b5f;font-size:.82rem}.account-status-card{margin-top:12px;background:#f4faef;border-color:#bfd5ab}.account-status-card>span{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:50%;background:#78a35b;color:white;font-weight:900}
.account-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:11px;width:100%;margin-top:12px;padding:13px;border:1px solid #ead7ba;border-radius:17px;background:#fffdf9;color:#40291f;text-align:left}.account-row>span:first-child{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#f7e7c7;font-size:1.25rem}.account-row strong,.account-row small{display:block}.account-row small{margin-top:3px;color:#826b5f}.account-row i{font-style:normal;color:#a26a25;font-weight:850}.account-logout{width:100%;min-height:48px;margin-top:14px;border:1px solid #ddbfa3;border-radius:15px;background:#fffaf4;color:#8a3f2e;font-weight:820}
@media(max-width:600px){.account-sheet{width:calc(100% - 16px);max-height:calc(100dvh - 16px);margin-bottom:max(8px,env(safe-area-inset-bottom));padding:18px 15px;border-radius:24px}.account-head h2{font-size:1.3rem}.account-intro{padding:12px}.account-test-note{font-size:.78rem}}
@media(max-width:390px){.top-actions select{width:145px;max-width:145px}.top-actions .account-button{display:grid}.account-head{margin-bottom:13px}.account-mode{margin-top:13px}.account-form{gap:9px}}

/* V5.127 – Kinderprofile */
.children-section{margin-top:14px;padding:15px;border:1px solid #ead7ba;border-radius:20px;background:rgba(255,253,249,.8)}.children-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.children-head small{color:#9b642e;font-size:.68rem;font-weight:850;letter-spacing:.1em}.children-head h3{margin:3px 0 0;color:#43291d;font-size:1.08rem}.children-head>button{min-height:40px;padding:8px 11px;border:1px solid #d9af70;border-radius:13px;background:#fff8ec;color:#754618;font-weight:820}
.children-empty{display:grid;justify-items:center;gap:4px;margin-top:13px;padding:17px;border:1px dashed #dbbf97;border-radius:16px;color:#806b5f;text-align:center}.children-empty>span{font-size:1.8rem}.children-empty strong{color:#513326}.children-empty small{font-size:.78rem}.children-list{display:grid;gap:9px;margin-top:12px}.child-card{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;min-height:67px;padding:9px 11px;border:1px solid #e6d2b5;border-radius:16px;background:#fff;color:#40291f;text-align:left}.child-card.active{border-color:#d2902d;background:linear-gradient(135deg,#fffaf0,#fff0ce);box-shadow:0 4px 12px rgba(165,96,25,.13)}.child-card-avatar{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#f7e5bd;font-size:1.55rem}.child-card-copy strong,.child-card-copy small{display:block}.child-card-copy small{margin-top:3px;color:#816b5f;font-size:.76rem}.child-card-state{padding:6px 9px;border-radius:999px;background:#f2e8da;color:#876337;font-size:.72rem;font-style:normal;font-weight:820}.child-card.active .child-card-state{background:#e3f1d6;color:#477333}
.child-card-row{display:grid;grid-template-columns:minmax(0,1fr) 43px;align-items:stretch;gap:7px}.child-edit-btn{display:grid;place-items:center;min-width:43px;border:1px solid #e3cda9;border-radius:14px;background:#fffaf1;color:#704820;font-size:1.05rem}.child-edit-btn:active{transform:scale(.96)}
.child-form{display:grid;gap:10px;margin-top:13px;padding:14px;border-radius:17px;background:#f7ecdc}.child-form h4{margin:0 0 2px;color:#4d3022}.child-form label>span{display:block;margin:0 0 5px 2px;color:#5a3a2a;font-size:.82rem;font-weight:780}.child-form input[type="text"],.child-form select{box-sizing:border-box;width:100%;min-height:46px;border:1px solid #dcc4a4;border-radius:12px;background:#fff;padding:9px 11px;color:#40291f;font:inherit}.child-form fieldset{min-width:0;margin:0;padding:0;border:0}.child-form legend{margin-bottom:7px;color:#5a3a2a;font-size:.82rem;font-weight:780}.child-avatars{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.child-avatars label{position:relative;min-width:0;cursor:pointer}.child-avatars input{position:absolute;opacity:0;pointer-events:none}.child-avatars span{position:relative;display:grid;place-items:center;gap:3px;min-height:78px;padding:8px 3px 6px;border:2px solid #ead8bd;border-radius:16px;background:linear-gradient(145deg,#fff,#fff8ed);box-shadow:0 4px 10px rgba(101,61,30,.06);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.child-avatars b{font-size:2rem;line-height:1}.child-avatars small{overflow:hidden;width:100%;color:#6b4934;font-size:.68rem;font-weight:800;text-align:center;text-overflow:ellipsis}.child-avatars i{position:absolute;top:5px;right:5px;display:none;place-items:center;width:18px;height:18px;border-radius:50%;background:#d58d23;color:#fff;font-size:.68rem;font-style:normal;font-weight:900}.child-avatars input:checked+span{border-color:#d68e27;background:linear-gradient(145deg,#fffdf7,#ffe8ae);box-shadow:0 0 0 3px rgba(220,148,43,.18),0 7px 15px rgba(153,91,23,.12);transform:translateY(-2px)}.child-avatars input:checked+span i{display:grid}.child-avatars input:focus-visible+span{outline:3px solid rgba(42,112,206,.35);outline-offset:2px}.child-form-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:8px}.child-form-actions button{min-height:44px;border:1px solid #d9bf9f;border-radius:12px;background:#fffaf2;color:#68452d;font-weight:820}.child-form-actions button[type="submit"]{border-color:#d79528;background:linear-gradient(135deg,#efbd43,#dd8d20);color:#422515}
.child-form .child-avatars label>span{display:grid;margin:0;color:inherit;font-size:inherit;font-weight:inherit}
.delete-child-btn{min-height:42px;border:1px solid #dfa79d;border-radius:12px;background:#fff8f6;color:#9a3f34;font-weight:820}.delete-child-btn:not(.hidden):focus,.delete-child-btn:not(.hidden):active{background:#fbe2dd;border-color:#c86f61}.delete-child-btn:disabled{opacity:.55}
@media(max-width:420px){.children-section{padding:12px}.children-head{align-items:flex-start}.children-head>button{font-size:.76rem}.child-card{grid-template-columns:44px minmax(0,1fr) auto;padding:8px}.child-card-avatar{width:42px;height:42px}.child-card-state{padding:5px 7px;font-size:.66rem}.child-avatars{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.child-avatars span{min-height:70px;padding-inline:2px}.child-avatars b{font-size:1.7rem}.child-avatars small{font-size:.6rem}}

/* V5.128 – maximal drei Kinderprofile und klare Preisstufen */
.family-plan{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:10px;margin-top:12px;padding:11px;border:1px solid #e5c88e;border-radius:16px;background:linear-gradient(135deg,#fff8e7,#fff0ca);color:#4d3022}.family-plan>span{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#f3d17e;font-size:1.2rem}.family-plan small,.family-plan strong,.family-plan em{display:block}.family-plan small{color:#9b642e;font-size:.64rem;font-weight:850;letter-spacing:.09em}.family-plan strong{margin-top:2px;font-size:.9rem}.family-plan em{margin-top:2px;color:#775b4c;font-size:.75rem;font-style:normal}.family-plan>b{padding:6px 9px;border-radius:999px;background:#fff9ee;color:#8b5623;font-size:.76rem}.children-head>button:disabled{border-color:#d9d0c5;background:#eee7de;color:#91877d;cursor:not-allowed;box-shadow:none}
@media(max-width:420px){.family-plan{grid-template-columns:38px minmax(0,1fr) auto;padding:9px}.family-plan>span{width:38px;height:38px}.family-plan em{font-size:.7rem}}

/* V5.130 – sichtbarer Cloud-Status */
.cloud-account-status{display:flex;align-items:center;gap:10px;margin-top:12px;padding:11px 12px;border:1px solid #d7c7ae;border-radius:15px;background:#f8f3ea;color:#4f392d}.cloud-account-status>span{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:12px;background:#e9dfd0;font-size:1.1rem}.cloud-account-status strong,.cloud-account-status small{display:block}.cloud-account-status strong{font-size:.86rem}.cloud-account-status small{margin-top:3px;color:#7d6c60;font-size:.73rem;line-height:1.35}

/* V5.123: geöffnete Lernbereiche und Lernmaterial im selben Schublade-Stil */
.visual{border-color:#e8d3b5;border-radius:24px;background:linear-gradient(155deg,#fffdf9,#fff8ed);box-shadow:0 12px 30px rgba(91,54,29,.08)}
.visual-head{padding-bottom:11px;border-bottom:1px solid #f0e1cc}.visual-title{color:#40291f}.quality{border:1px solid #ead8c1;background:#f7ead8;color:#765c4e}
.chat{gap:13px}.assistant .bubble{border-color:#ead8c1;border-radius:20px 20px 20px 7px;background:#fffdf9;box-shadow:0 7px 20px rgba(91,54,29,.06)}.user .bubble{border-radius:20px 20px 7px 20px;background:linear-gradient(135deg,#d3912e,#a95820)}
.answer-options{gap:9px}.answer-option{border-color:#ead8c1;border-radius:16px;background:#fffdf9;box-shadow:0 4px 13px rgba(91,54,29,.05)}.answer-option:hover,.answer-option:focus-visible{border-color:#d69a42;background:#fff7e8}.answer-letter{background:#fff0cc;color:#8e4c1c}.answer-option.selected{border-color:#d28d2e;background:#fff0cf}.answer-option.selected .answer-letter{background:#b96522;color:#fff}
.actions button{min-height:44px;border-color:#e8d7c3;background:#fffdf9;color:#51372b}.actions button:focus-visible,.answer-option:focus-visible{outline:3px solid rgba(218,143,30,.3);outline-offset:2px}
.status{color:#765c4e}.status:not(:empty){width:max-content;max-width:100%;min-height:32px;margin:14px auto;padding:7px 12px;border:1px solid #ead8c1;border-radius:999px;background:#fff8eb}
@media screen{
  .material-modal{background:linear-gradient(155deg,#f8ead6,#f5eee5);padding:14px 12px calc(24px + env(safe-area-inset-bottom))}
  .material-toolbar{border-color:#e5cfb2;border-radius:18px;background:rgba(255,250,242,.97);box-shadow:0 9px 25px rgba(75,43,24,.11)}
  .material-toolbar button{min-height:42px;border-color:#e2c9a7;background:#fffdf9;color:#51372b;font-weight:750}.material-toolbar button.active{border-color:#d3912e;background:#fff0cf;color:#834618}
  .material-toolbar-title{color:#40291f}
  .material-paper{border:1px solid #ead8c1;border-radius:18px;box-shadow:0 18px 42px rgba(70,39,20,.15)}
}
@media(max-width:600px){
  .assistant .bubble,.user .bubble{max-width:94%;font-size:1rem}.answer-options{width:94%}
  .visual{padding:15px;border-radius:21px}.visual-title{font-size:1.1rem}
  .material-modal{padding:8px 7px calc(16px + env(safe-area-inset-bottom))}.material-toolbar{top:6px;padding:8px;gap:7px}.material-toolbar button{min-height:40px;padding:8px 9px;font-size:.78rem}.material-paper{border-radius:14px}
}

/* V5.125: letzter Design-Rundgang für Auswahlfenster */
.quick-action-backdrop,.test-length-backdrop,.voice-picker-backdrop{background:rgba(54,34,24,.4);backdrop-filter:blur(3px)}
.quick-action-sheet,.test-length-sheet,.voice-picker-sheet{width:min(680px,calc(100% - 22px));max-height:min(86vh,760px);margin:0 0 max(12px,env(safe-area-inset-bottom));padding:20px;border:1px solid #ead5b6;border-radius:28px;background:#fffaf2;box-shadow:0 24px 70px rgba(63,34,18,.25)}
.quick-action-handle{background:#dfc6a5}.quick-action-head h2,.test-length-head h2,.voice-picker-head h2{color:#40291f}.quick-action-kicker,.test-length-kicker,.voice-picker-kicker{color:#a0642d}
.quick-action-close,.test-length-head>button,#closeVoicePickerBtn{width:42px;height:42px;flex-basis:42px;border:0;border-radius:50%;background:#f2e6d8;color:#583a2c;font-size:1rem}
.quick-option,.test-length-options button,.voice-option{min-height:68px;border-color:#eadbc9;border-radius:17px;background:#fffdf9;color:#40291f;box-shadow:0 4px 13px rgba(91,54,29,.04)}
.quick-option:hover,.quick-option:focus-visible,.test-length-options button:hover,.test-length-options button:focus-visible,.voice-option:hover,.voice-option:focus-visible{border-color:#d69a42;background:#fff7e8}
.quick-option-icon{background:#f7e7c7}.quick-option small,.test-length-options button small,.voice-option-copy small,.voice-picker-info{color:#80695d}.test-length-options button span{color:#9b541d}
.voice-picker-info{border:1px solid #eedcc4;background:#fff7eb}.voice-option.selected{border-color:#d28d2e;background:#fff0cf}.voice-style-buttons button,.voice-preview-btn,.voice-done-btn{min-height:48px;border-color:#e2c9a7;background:#fffdf9;color:#51372b}.voice-style-buttons button.selected{border-color:#d3912e;background:#fff0cf;color:#834618}.voice-preview-btn{background:linear-gradient(135deg,#d7932e,#ad5d21)!important;color:#fff!important}
.quick-action-close:focus-visible,.test-length-head>button:focus-visible,#closeVoicePickerBtn:focus-visible,.quick-option:focus-visible,.test-length-options button:focus-visible,.voice-option:focus-visible,.voice-style-buttons button:focus-visible,.voice-preview-btn:focus-visible,.voice-done-btn:focus-visible{outline:3px solid rgba(218,143,30,.32);outline-offset:2px}
@media(max-width:600px){
  .quick-action-sheet,.test-length-sheet,.voice-picker-sheet{width:calc(100% - 16px);max-height:calc(100dvh - 16px);margin-bottom:max(8px,env(safe-area-inset-bottom));padding:18px 15px calc(18px + env(safe-area-inset-bottom));border-radius:24px}
  .quick-option,.test-length-options button,.voice-option{min-height:64px;padding:11px}.quick-option strong,.test-length-options button strong,.voice-option-copy strong{font-size:.92rem}.quick-option small,.test-length-options button small,.voice-option-copy small{font-size:.78rem;line-height:1.35}
  .voice-style-buttons{gap:6px}.voice-style-buttons button{font-size:.78rem}
}

/* 5.249: mouse, keyboard and vertical touch scrolling remain available. */
.home-subject-controls{display:flex;gap:8px;flex:none}
.home-section-head .home-subject-controls button{min-width:44px;min-height:44px;padding:6px 12px;border:1px solid #c9af85;border-radius:12px;background:#fff8e9;color:#62432d;font-size:1.2rem;cursor:pointer}
.home-subject-controls button:disabled{opacity:.4;cursor:default}
.home-subject-row,.subject-paper-fan .subject-starters{touch-action:auto;scrollbar-width:thin;scrollbar-color:#b99867 #f4e5cb;overflow-x:auto}
.home-subject-row::-webkit-scrollbar,.subject-paper-fan .subject-starters::-webkit-scrollbar{display:block;height:9px}
.home-subject-row::-webkit-scrollbar-thumb,.subject-paper-fan .subject-starters::-webkit-scrollbar-thumb{background:#b99867;border-radius:8px}
.home-subject-row:focus-visible{outline:3px solid #846fba;outline-offset:3px;border-radius:12px}
@media (hover:none) and (pointer:coarse){.home-subject-controls{display:none}}
