:root{--ink:#333;--muted:#666;--paper:#f5f5f5;--card:#fff;--rail:#fff;--rail-2:#c43c00;--signal:#ff6d00;--signal-dark:#c43c00;--line:#e0e0e0;--good:#4caf50;--warn:#ffc107;--danger:#d32f2f;--shadow:0 2px 10px rgba(0,0,0,.08);--radius:8px;--font:"Segoe UI",Tahoma,Geneva,Verdana,sans-serif}
body.dark-mode{--ink:#f1f3f5;--muted:#b6bec8;--paper:#12161c;--card:#1f2329;--rail:#1f2329;--line:#38414c;--shadow:0 2px 14px rgba(0,0,0,.34)}
body{background:var(--paper);color:var(--ink)}
.login-shell{display:grid;place-items:center;min-height:100vh;min-height:100dvh;padding:16px;background:var(--paper)}
.login-brand,.mobile-brand{display:none!important}
.login-card{position:relative;display:block;width:min(460px,100%);padding:22px 24px;background:var(--card);border:1px solid var(--line);border-radius:8px;box-shadow:0 12px 32px rgba(0,0,0,.10)}
.login-card h1{margin:0 0 6px;color:var(--signal);font-size:24px;letter-spacing:0}.login-card>p{color:var(--muted);line-height:1.45}
.login-logo{display:block;width:88px;height:88px;object-fit:contain;margin:0 auto 14px}
.theme-toggle{position:absolute;right:18px;top:18px;display:inline-grid;place-items:center;width:42px;height:42px;border:1px solid var(--line);border-radius:999px;background:var(--paper);color:var(--signal);font-size:19px;cursor:pointer}
.theme-toggle:hover,.theme-toggle:focus-visible{border-color:var(--signal);box-shadow:0 8px 20px rgba(255,109,0,.18)}
.form-stack{gap:12px;margin-top:16px}.form-stack label,.editor-grid label,.modal-panel>label{gap:6px;font-weight:700;color:var(--ink)}
.form-stack input,.editor-grid input,.editor-grid select,.editor-grid textarea,.modal-panel>label input,.field-input{padding:10px 12px;border:1px solid var(--line);border-radius:5px;background:var(--card);color:var(--ink)}
.button{border-radius:5px;padding:10px 15px;transition:all .2s}.button.primary{background:var(--signal);color:#fff}.button.primary:hover{background:var(--signal-dark)}
.button.ghost{background:var(--card);border:1px solid var(--signal);color:var(--signal)}.button.ghost:hover{background:var(--paper)}
.button.danger{background:var(--danger);border-color:var(--danger);color:#fff}.button.small{padding:8px 10px}.text-button{margin-top:10px;padding:0;color:var(--signal)}.text-button:hover{color:var(--signal-dark);text-decoration:underline}.login-note{font-size:13px;margin-top:12px}.form-error{font-weight:700}
.app-shell{grid-template-columns:250px minmax(0,1fr);background:var(--paper)}.sidebar{background:var(--card);color:var(--ink);border-right:1px solid var(--line);padding:20px 14px}
.sidebar-brand{padding:0 8px 24px;border-bottom:1px solid var(--line);margin-bottom:14px}.sidebar-brand img{width:48px;height:48px;object-fit:contain}.sidebar-brand strong{color:var(--signal)}.sidebar-brand small{color:var(--muted)}
.nav-item{color:var(--muted);border-radius:8px;padding:11px 13px}.nav-item:hover{background:var(--paper);color:var(--signal)}.nav-item.active{background:var(--signal);color:#fff;box-shadow:none}
.profile-chip{border:1px solid var(--line);background:var(--paper);border-radius:8px;color:var(--ink)}.profile-chip small{color:var(--muted)}.avatar{background:var(--signal);color:#fff}.logout-button{color:var(--signal)}
.content-shell{background:var(--paper)}.topbar{height:86px;margin:20px 20px 0;padding:14px 18px;background:var(--card);border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);position:sticky;top:10px}
.topbar h1{color:var(--signal);font-size:21px;letter-spacing:0}.breadcrumb{color:var(--muted)}.icon-button,.menu-button{width:42px;height:42px;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--signal)}.icon-button:hover,.menu-button:hover{background:var(--paper);border-color:var(--signal)}
.page{padding:20px 20px 60px}.hero{min-height:240px;padding:36px;border-radius:8px;background:linear-gradient(135deg,var(--signal),#ff9e40);box-shadow:var(--shadow)}
.hero h2{font-size:clamp(32px,4vw,50px);letter-spacing:-.035em}.hero p,.hero .eyebrow,.hero-stat span{color:#fff}.stat-card,.course-card{border:1px solid var(--line);border-radius:8px;background:var(--card);box-shadow:var(--shadow)}.stat-card strong{color:var(--signal)}
.course-cover{height:7px;background:var(--cover,var(--signal))}.course-card{border-left:5px solid var(--signal)}.course-card-body{padding:18px}.course-card h3{font-size:19px}.progress-line{background:color-mix(in srgb,var(--signal) 16%,var(--card))}.progress-line i{background:var(--signal)}
.status-pill{background:color-mix(in srgb,var(--signal) 10%,var(--card));color:var(--signal)}.status-pill.completed{background:color-mix(in srgb,var(--good) 14%,var(--card));color:var(--good)}.status-pill.draft{background:var(--paper);color:var(--muted)}
.filter-button{border:1px solid var(--line);background:var(--card);color:var(--ink);border-radius:8px}.filter-button.active{background:var(--signal);border-color:var(--signal);color:#fff}.empty-state{border:1px dashed var(--line);border-radius:8px;background:var(--card)}
.modal::backdrop{background:rgba(18,22,28,.62)}.modal-panel{border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--ink);box-shadow:0 18px 42px rgba(0,0,0,.24)}.modal-head h2{color:var(--signal);font-size:24px;letter-spacing:0}
.course-summary{border-radius:8px;background:linear-gradient(135deg,var(--signal),#ff9e40)}.course-summary p{color:#fff}.lesson-button{border-radius:6px;color:var(--muted)}.lesson-button:hover,.lesson-button.active{background:var(--paper);color:var(--signal)}.lesson-button.completed .lesson-check{background:var(--good);border-color:var(--good)}
.lesson-content h3{color:var(--signal);font-size:28px;letter-spacing:0}.media-frame,.quiz-card,.editor-section,.builder-item,.selection-item{border-color:var(--line);border-radius:8px;background:var(--card)}.option{color:var(--ink)}
.quiz-result{border-radius:8px}.quiz-result.good{background:color-mix(in srgb,var(--good) 14%,var(--card));color:var(--good)}.quiz-result.bad{background:color-mix(in srgb,var(--signal) 12%,var(--card));color:var(--signal-dark)}
.admin-table{border-radius:8px;background:var(--card)}.admin-table th{background:var(--paper);color:var(--muted)}.certificate{border-color:var(--signal);background:var(--card)}.certificate h2{color:var(--signal)}.certificate .participant{color:var(--signal-dark)}.toast{background:var(--signal);border-radius:8px}.toast.error{background:var(--danger)}
@media(max-height:720px){.login-card{padding:18px 22px}.login-logo{width:68px;height:68px;margin-bottom:10px}.login-card h1{font-size:22px}.login-card>p{font-size:14px}.form-stack{gap:10px;margin-top:12px}}
@media(max-height:620px){.login-logo,.login-note{display:none}}
@media(max-width:800px){.sidebar{box-shadow:-12px 0 28px rgba(0,0,0,.18)}.topbar{height:74px;margin:10px 10px 0;padding:10px 12px}.topbar h1{font-size:19px}.page{padding:14px 10px 90px}.hero{padding:26px 20px}.hero h2{font-size:34px}.course-card{border-left-width:5px}.modal-panel{border-radius:8px}}

/* Gemeinsame, mittig ausgerichtete Anmeldeansicht wie in Wagenliste V35 */
#loginView.login-shell{position:fixed;inset:0;z-index:200;width:100%;height:100vh;height:100dvh;min-height:0;display:grid;grid-template-columns:1fr;place-items:center;overflow:auto;padding:16px;background:var(--paper)}
#loginView.login-shell[hidden]{display:none!important}
#loginView .login-card{position:relative;width:min(460px,100%);max-height:calc(100dvh - 32px);margin:auto;overflow:auto;padding:22px 24px;border:1px solid var(--line);border-radius:8px;background:var(--card);box-shadow:0 12px 32px rgba(0,0,0,.10)}
#loginView .login-logo{display:block;width:88px;height:88px;margin:0 auto 14px;border-radius:0;object-fit:contain;filter:none}
#loginView .login-card h1{margin:0 0 6px;color:var(--signal);font-size:24px;line-height:1.2;letter-spacing:0}
#loginView .login-card>p{margin:0;color:var(--muted);line-height:1.45}
#loginView .login-form{display:grid;gap:12px;margin-top:16px}
#loginView .login-form label{display:grid;gap:6px;font-weight:700}
#loginView .login-form input{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:5px;background:var(--card);color:var(--ink);font-size:15px}
#loginView .login-form .button{justify-content:center;width:100%}
#loginView .login-note{margin-top:12px;font-size:13px}
@media(max-height:720px){#loginView .login-card{padding:18px 22px}#loginView .login-logo{width:68px;height:68px;margin-bottom:10px}#loginView .login-card h1{font-size:22px}#loginView .login-card>p{font-size:14px}#loginView .login-form{gap:10px;margin-top:12px}}
@media(max-height:620px){#loginView .login-logo,#loginView .login-note{display:none}}
.auth-login-alternatives{display:grid;gap:9px;margin-top:10px}.auth-login-alternatives>span{display:flex;align-items:center;justify-content:center;gap:10px;color:var(--muted);font-size:12px}.auth-login-alternatives>span:before,.auth-login-alternatives>span:after{content:"";width:44px;height:1px;background:var(--line)}
.code-login-panel{width:min(520px,calc(100% - 32px))}.code-login-panel>label{display:grid;gap:7px;margin-top:16px;font-size:13px;font-weight:800}.code-login-panel input{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:5px;background:var(--card);color:var(--ink)}.code-login-intro{margin:0;color:var(--muted);line-height:1.55}.code-login-status{min-height:22px;margin:12px 0 0;color:var(--good);font-size:13px;font-weight:700}.code-login-status.error{color:var(--danger)}#codeLoginCode{font-size:24px;font-weight:800;letter-spacing:.28em;text-align:center;font-variant-numeric:tabular-nums}.code-login-panel #requestLoginCode{margin-top:10px}
body.dark-mode .code-login-panel{background:var(--card);color:var(--ink)}
@media(max-width:600px){.code-login-modal{padding:0}.code-login-panel{width:100%;min-height:100vh;min-height:100dvh;max-height:100vh;margin:0;border-radius:0;padding:22px 18px}}

/* Akademie-orientierte Übersicht, Sortierung und Lehrgangsansicht */
.academy-welcome{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:-20px -20px 24px;padding:30px 34px;background:#354052;color:#fff;border-top:2px solid var(--signal)}
.academy-welcome p{margin:0 0 6px;color:#cbd2dd}.academy-welcome h2{margin:0;font-size:28px}.academy-dashboard{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:28px}.academy-main{min-width:0}.learning-summary{border-left:1px solid var(--line);padding:10px 0 20px 28px}.learning-summary h2{margin:0 0 24px;font-size:20px}
.progress-donut{--done:0deg;width:180px;height:180px;margin:0 auto 26px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#566170 0 var(--done),#c9ced5 var(--done) 360deg);position:relative}.progress-donut:before{content:"";position:absolute;inset:18px;background:var(--paper);border-radius:50%}.progress-donut div{position:relative;text-align:center;display:grid}.progress-donut strong{font-size:28px}.progress-donut span{font-size:12px;color:var(--muted)}
.learning-summary dl{display:grid;gap:13px;margin:0}.learning-summary dl div{display:flex;justify-content:space-between;gap:15px}.learning-summary dt{display:flex;align-items:center;gap:10px;color:var(--muted)}.learning-summary dd{font-weight:800;margin:0}.dot{width:24px;height:8px;border-radius:2px;background:#566170}.dot.working{background:#9aa2ad}.dot.open{background:#cfd3d9}.learning-summary hr{border:0;border-top:1px solid var(--line);margin:24px 0}.summary-certificates{display:grid}.summary-certificates strong{font-size:28px;color:var(--signal)}.summary-certificates span{color:var(--muted)}
.recent-course{display:grid;grid-template-columns:235px minmax(0,1fr) auto;align-items:stretch;min-height:180px;background:var(--card);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);overflow:hidden}.recent-cover{position:relative;display:grid;place-items:center;border-right:1px solid var(--line);background:#fff}.recent-cover img{width:112px;height:112px;object-fit:contain}.completion-dot{position:absolute;right:12px;top:12px;width:31px;height:31px;border-radius:50%;display:grid;place-items:center;background:#49c94f;color:#fff;font-weight:900}.recent-info{padding:24px;align-self:center}.recent-info h3{margin:14px 0 22px;font-size:20px}.recent-next{align-self:stretch;border:0;border-left:1px solid var(--line);background:var(--card);padding:0 22px;color:var(--muted);font-weight:800;cursor:pointer}.recent-next:hover{background:var(--signal);color:#fff}
.catalog-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:26px}.catalog-heading h2{font-size:30px;margin:0 0 7px}.catalog-heading p{margin:0;color:var(--muted)}.catalog-count{display:grid;text-align:right}.catalog-count strong{font-size:30px;color:var(--signal)}.catalog-count span{font-size:12px;color:var(--muted)}
.catalog-toolbar{display:grid;grid-template-columns:minmax(230px,1fr) 180px 220px auto;gap:10px;margin-bottom:26px;align-items:stretch}.catalog-search,.catalog-filter,.catalog-sort{display:flex;align-items:center;border:1px solid var(--line);background:var(--card);border-radius:6px;overflow:hidden}.catalog-search span,.catalog-sort span{padding:0 12px;color:var(--muted);font-size:21px}.catalog-search input,.catalog-filter select,.catalog-sort select{width:100%;height:44px;border:0;background:transparent;color:var(--ink);padding:0 12px;outline:0}.catalog-filter>span{padding:0 0 0 12px;color:var(--muted);font-size:12px}.view-switch{display:flex;border:1px solid var(--line);border-radius:6px;overflow:hidden;background:var(--card)}.view-switch button{width:46px;border:0;background:transparent;color:var(--muted);font-size:20px;cursor:pointer}.view-switch button.active{background:#354052;color:#fff}
.academy-course-grid .course-card{border-left:1px solid var(--line);min-height:280px}.academy-course-grid .course-cover{height:82px;background:linear-gradient(135deg,var(--cover,var(--signal)),color-mix(in srgb,var(--cover,var(--signal)) 55%,#fff));position:relative}.academy-course-grid .course-cover:after{content:"Lehrgang";position:absolute;left:18px;bottom:15px;color:#fff;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.1em}
.catalog-list{display:grid;gap:12px}.catalog-row{display:grid;grid-template-columns:104px minmax(0,1fr) 220px 90px;align-items:center;min-height:112px;background:var(--card);border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);overflow:hidden}.catalog-row-icon{height:100%;position:relative;display:grid;place-items:center;border-right:1px solid var(--line);background:#fff}.catalog-row-icon img{width:65px;height:65px;object-fit:contain}.catalog-row-main{padding:15px 20px}.catalog-row-main h3{margin:8px 0 5px}.catalog-row-main small{color:var(--muted)}.catalog-row-progress{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;padding:0 20px}.catalog-row-progress .progress-line{margin:0}.catalog-row-progress strong{font-size:13px}
.course-panel{width:min(1220px,calc(100% - 30px));padding:24px}.course-overview{display:grid;grid-template-columns:340px minmax(0,1fr);min-height:620px;border-top:1px solid var(--line)}.course-overview-visual{position:relative;padding:50px 30px;border-right:1px solid var(--line);background:var(--card);text-align:center}.course-overview-visual>img{width:210px;max-width:80%;object-fit:contain;margin:50px auto}.course-overview-visual>.status-pill{position:absolute;left:25px;top:25px}.course-overview-progress{display:grid;margin-top:10px}.course-overview-progress strong{font-size:42px;color:var(--signal)}.course-overview-progress span{color:var(--muted)}.course-contents{padding:28px 26px}.course-overview-head{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding-bottom:22px}.course-overview-head h3{font-size:27px;margin:5px 0 10px}.course-overview-head p{max-width:700px;line-height:1.6;color:var(--muted)}
.unit-list{margin-top:20px}.unit-group{margin-bottom:24px}.unit-group h4{margin:0;padding:10px 0;border-bottom:1px solid var(--line);font-size:15px}.unit-row{position:relative;width:100%;display:grid;grid-template-columns:48px minmax(0,1fr) 170px 24px;align-items:center;gap:10px;border:0;border-bottom:1px solid var(--line);background:transparent;padding:13px 8px;text-align:left;color:var(--ink);cursor:pointer}.unit-row:hover{background:var(--paper)}.unit-icon{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#999;color:#fff;font-size:13px}.unit-row.completed .unit-icon{background:var(--good)}.unit-title{display:grid;gap:3px}.unit-title small,.unit-progress small{color:var(--muted);font-size:12px}.unit-progress{display:grid;grid-template-columns:12px 1fr;align-items:center;gap:7px}.unit-progress i{width:12px;height:12px;border-radius:50%;background:#aaa}.unit-row.completed .unit-progress i{background:var(--good)}.unit-arrow{font-size:25px;color:#bbb}.module-progress{display:flex;justify-content:flex-end;gap:15px;padding:8px;color:var(--muted);font-size:12px}.test-row{grid-template-columns:48px minmax(0,1fr) auto 24px}.test-row .unit-icon{background:var(--signal)}
.reader-shell{min-height:660px;position:relative;padding-bottom:76px}.reader-breadcrumb{display:flex;align-items:center;gap:9px;margin:-6px 0 16px;color:var(--muted)}.reader-breadcrumb button{border:0;background:transparent;color:var(--muted);cursor:pointer;padding:0}.reader-breadcrumb button:hover{color:var(--signal)}.reader-shell .lesson-content{max-width:980px;min-height:560px;border:1px solid var(--line);border-radius:8px;padding:30px;margin:0 auto;background:var(--card)}.lesson-reader-head{border-bottom:1px solid var(--line);margin-bottom:30px}.lesson-reader-head h3{font-size:28px;color:var(--ink);margin:6px 0 15px}.lesson-copy{font-size:17px;line-height:1.75}.lesson-complete-box{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:35px;padding:18px;border:1px solid #f1d100;background:#fffbd0;border-radius:7px;color:#333}.reader-footer{position:absolute;left:-24px;right:-24px;bottom:-24px;min-height:70px;display:grid;grid-template-columns:180px 1fr 180px;align-items:center;background:#354052;color:#fff}.reader-footer>div{display:flex;justify-content:center;gap:7px}.reader-nav{height:70px;border:0;background:transparent;color:#fff;font-weight:800;cursor:pointer}.reader-nav.primary{background:var(--signal)}.reader-nav:disabled{opacity:.35}.page-dot{width:31px;height:31px;border:1px solid #748093;background:transparent;color:#fff;border-radius:50%;cursor:pointer}.page-dot.active{background:var(--signal);border-color:var(--signal)}
@media(max-width:1050px){.academy-dashboard{grid-template-columns:1fr}.learning-summary{border-left:0;border-top:1px solid var(--line);padding:24px 0;display:grid;grid-template-columns:180px 1fr;gap:20px}.learning-summary h2{grid-column:1/-1}.progress-donut{grid-row:2/5}.recent-course{grid-template-columns:170px 1fr auto}.catalog-toolbar{grid-template-columns:1fr 160px 200px auto}.course-overview{grid-template-columns:260px 1fr}}
@media(max-width:800px){.academy-welcome{margin:-14px -10px 18px;padding:24px 18px}.academy-welcome h2{font-size:23px}.academy-welcome .button{display:none}.academy-dashboard{gap:18px}.learning-summary{display:block}.progress-donut{width:150px;height:150px}.recent-course{grid-template-columns:90px minmax(0,1fr)}.recent-cover img{width:60px;height:60px}.recent-info{padding:16px}.recent-next{grid-column:1/-1;height:46px;border-left:0;border-top:1px solid var(--line)}.catalog-heading{align-items:start}.catalog-toolbar{grid-template-columns:1fr 1fr}.catalog-search{grid-column:1/-1}.catalog-sort{grid-column:1/-1}.view-switch{grid-column:2;grid-row:2}.catalog-filter{grid-column:1}.catalog-row{grid-template-columns:75px minmax(0,1fr)}.catalog-row-progress{grid-column:1/-1;padding:12px 18px;border-top:1px solid var(--line)}.catalog-row>.recent-next{grid-column:1/-1}.course-panel{width:100%;margin:0;max-height:100vh;min-height:100vh}.course-overview{grid-template-columns:1fr}.course-overview-visual{display:flex;align-items:center;gap:18px;padding:20px;border-right:0;border-bottom:1px solid var(--line)}.course-overview-visual>img{width:75px;margin:0}.course-overview-progress{margin-left:auto}.course-contents{padding:20px 8px}.unit-row{grid-template-columns:42px minmax(0,1fr) 22px}.unit-progress{display:none}.reader-shell .lesson-content{padding:20px}.reader-footer{grid-template-columns:100px 1fr 100px}.reader-footer>div{overflow:hidden}.page-dot{display:none}.page-dot.active{display:block}.lesson-complete-box{align-items:stretch;flex-direction:column}}

/* Lehrgänge sind eigenständige Vollbildseiten, keine kleinen Dialogfenster */
#courseDialog{inset:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;background:var(--paper)}
#courseDialog::backdrop{background:var(--paper)}
#courseDialog .course-panel{width:100%;height:100%;max-height:none;margin:0;padding:18px 30px 0;border:0;border-radius:0;box-shadow:none;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden}
#courseDialog .modal-head{min-height:72px;margin:0;padding:0 0 16px;align-items:center;border-bottom:1px solid var(--line)}
#courseDialog .modal-head h2{font-size:25px}
#courseDialog .close-dialog{position:static;flex:0 0 auto}
#courseDialogBody{min-height:0;height:100%;overflow:auto}
#courseDialog .course-overview{min-height:100%;border-top:0}
#courseDialog .course-overview-visual{padding-top:35px}
#courseDialog .course-contents{padding-top:30px}
#courseDialog .reader-shell{height:100%;min-height:0;padding:18px 0 0;display:grid;grid-template-rows:auto minmax(0,1fr) 72px;overflow:hidden}
#courseDialog .reader-breadcrumb{margin:0 0 14px}
#courseDialog .reader-shell .lesson-content{width:100%;max-width:none;min-height:0;height:100%;margin:0;overflow:auto;padding:32px clamp(28px,7vw,110px)}
#courseDialog .reader-footer{position:static;left:auto;right:auto;bottom:auto;margin:0 -30px;min-height:72px}
@media(max-width:800px){#courseDialog .course-panel{padding:12px 14px 0}#courseDialog .modal-head{min-height:62px}#courseDialog .modal-head h2{font-size:20px}#courseDialog .reader-shell{padding-top:12px}#courseDialog .reader-shell .lesson-content{padding:22px 18px}#courseDialog .reader-footer{margin:0 -14px}}

/* Offizielles Logo der Mobile Eisenbahnschule */
.login-logo{width:118px;height:118px;border-radius:22px;filter:drop-shadow(0 8px 16px rgba(31,39,46,.12))}
.sidebar-brand img{width:54px;height:54px;border-radius:12px;filter:drop-shadow(0 3px 7px rgba(31,39,46,.12))}
.recent-cover img,.catalog-row-icon img,.course-overview-visual>img{border-radius:18px;filter:drop-shadow(0 7px 14px rgba(31,39,46,.12))}
.recent-cover img{width:124px;height:124px}.catalog-row-icon img{width:72px;height:72px}.course-overview-visual>img{width:230px}
@media(max-height:720px){.login-logo{width:78px;height:78px}}
@media(max-width:800px){.course-overview-visual>img{width:82px}.recent-cover img{width:66px;height:66px}}

/* Zertifikatsvorlage previewlehr.html */
#certificateDialog .certificate-panel{width:min(1200px,calc(100% - 28px));padding:32px;background:#eef0f2}
#certificateDialog .certificate-close{z-index:30;background:#fff}
.mes-certificate{--cert-orange:#ff6500;--cert-navy:#354156;--cert-navy-deep:#273140;--cert-muted:#6d7178;position:relative;width:100%;aspect-ratio:297/210;min-height:680px;background:#fff;overflow:hidden;box-shadow:0 18px 55px rgba(24,31,40,.16);border-radius:10px;isolation:isolate;color:#2f3134;text-align:left}
.mes-certificate:before{content:"";position:absolute;inset:0;border:1px solid #d8dce1;pointer-events:none;z-index:20}
.mes-cert-top-band{position:absolute;inset:0 0 auto;height:112px;background:var(--cert-navy);z-index:1}
.mes-cert-top-band:after{content:"";position:absolute;left:0;right:0;bottom:-5px;height:5px;background:var(--cert-orange)}
.mes-cert-orange-corner{position:absolute;right:-70px;top:82px;width:190px;height:190px;background:var(--cert-orange);transform:rotate(45deg);z-index:2}
.mes-cert-orange-corner:after{content:"";position:absolute;inset:17px;border:2px solid rgba(255,255,255,.4)}
.mes-cert-rail-accent{position:absolute;left:-34px;bottom:30px;width:235px;height:235px;border:28px solid rgba(53,65,86,.045);border-radius:50%;z-index:0}
.mes-cert-rail-accent:after{content:"";position:absolute;width:120px;height:18px;background:rgba(255,101,0,.1);transform:rotate(-37deg);left:95px;top:135px;border-radius:12px}
.mes-cert-watermark{position:absolute;right:-38px;bottom:-40px;width:365px;opacity:.035;filter:grayscale(1);z-index:0}
.mes-cert-header{position:relative;z-index:5;height:112px;padding:18px 42px;display:flex;align-items:center;justify-content:space-between;color:#fff}
.mes-cert-brand{display:flex;align-items:center;gap:15px}.mes-cert-brand-logo{width:72px;height:72px;object-fit:contain;background:#fff;border-radius:15px;padding:5px;box-shadow:0 8px 24px rgba(0,0,0,.15)}
.mes-cert-brand small,.mes-cert-brand strong{display:block}.mes-cert-brand small{opacity:.8;font-size:12px;margin-bottom:4px}.mes-cert-brand strong{font-size:21px;letter-spacing:-.2px}
.mes-cert-badge{text-align:right}.mes-cert-eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:1.7px;opacity:.76}.mes-cert-number{margin-top:5px;font-size:14px;font-weight:700}
.mes-cert-content{position:relative;z-index:5;height:calc(100% - 112px);padding:42px 64px 38px;display:grid;grid-template-rows:auto auto 1fr auto}
.mes-cert-title-block{text-align:center}.mes-cert-kicker{display:inline-flex;align-items:center;gap:9px;color:var(--cert-orange);text-transform:uppercase;font-weight:800;letter-spacing:2.6px;font-size:12px}
.mes-cert-kicker:before,.mes-cert-kicker:after{content:"";width:46px;height:2px;background:var(--cert-orange)}
.mes-cert-title-block h1{margin:10px 0 4px;color:var(--cert-navy);font-size:clamp(38px,5vw,58px);letter-spacing:-1.7px;line-height:1}.mes-cert-title-block p{margin:0;font-size:15px;color:var(--cert-muted)}
.mes-cert-recipient{text-align:center;margin-top:28px}.mes-cert-recipient-label{color:var(--cert-muted);font-size:13px;margin-bottom:7px}.mes-cert-recipient-name{display:inline-block;min-width:430px;max-width:90%;padding:0 20px 10px;border-bottom:2px solid var(--cert-navy);color:var(--cert-navy-deep);font-family:Georgia,"Times New Roman",serif;font-size:clamp(30px,4vw,45px);font-weight:700}
.mes-cert-statement{align-self:center;text-align:center;max-width:820px;margin:24px auto 0;line-height:1.62;color:#4e5359;font-size:16px}.mes-cert-course-name{display:block;margin:13px auto 12px;color:var(--cert-navy);font-size:clamp(24px,3vw,33px);line-height:1.15;font-weight:800}
.mes-cert-success-row{margin-top:16px}.mes-cert-success{display:inline-flex;align-items:center;gap:8px;padding:7px 13px;border-radius:999px;background:#e7f6e9;color:#2d9f41;font-size:12px;font-weight:800}.mes-cert-success>span{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#3dbb52;color:#fff;font-size:13px}
.mes-cert-footer{margin-top:24px;display:grid;grid-template-columns:1fr auto 1fr;gap:26px;align-items:end}.mes-cert-detail{min-height:68px}.mes-cert-detail.right{text-align:right}.mes-cert-detail-label{color:var(--cert-muted);font-size:11px;text-transform:uppercase;letter-spacing:1.25px;margin-bottom:7px}.mes-cert-detail-value{color:var(--cert-navy);font-weight:800;font-size:15px}.mes-cert-signature{border-top:1px solid #aeb4bb;padding-top:8px;margin-top:18px;color:#4e5359;font-size:12px}
.mes-cert-seal{width:98px;height:98px;border:2px solid var(--cert-orange);border-radius:50%;display:grid;place-items:center;background:#fff;box-shadow:inset 0 0 0 5px #fff,inset 0 0 0 6px rgba(255,101,0,.25)}.mes-cert-seal img{width:62px;height:62px;object-fit:contain;border-radius:12px}
@media(max-width:760px){#certificateDialog .certificate-panel{padding:16px;margin:0;width:100%;max-height:100vh}.mes-certificate{min-height:620px;aspect-ratio:auto}.mes-cert-header{padding:15px 20px}.mes-cert-brand-logo{width:58px;height:58px}.mes-cert-brand strong{font-size:16px}.mes-cert-badge{display:none}.mes-cert-content{padding:32px 24px 28px}.mes-cert-recipient-name{min-width:0;width:100%}.mes-cert-footer{grid-template-columns:1fr 82px 1fr;gap:12px}.mes-cert-seal{width:82px;height:82px}.mes-cert-seal img{width:51px;height:51px}}
@page{size:A4 landscape;margin:0}
@media print{html,body{width:297mm;height:210mm;background:#fff}.certificate-modal{position:fixed!important;inset:0!important;width:297mm!important;height:210mm!important;overflow:visible!important}.certificate-panel{width:297mm!important;height:210mm!important;margin:0!important;padding:0!important;background:#fff!important;overflow:visible!important}.certificate-panel #certificateBody{width:297mm;height:210mm}.mes-certificate{width:297mm;height:210mm;min-height:0;border-radius:0;box-shadow:none;display:block}.mes-cert-content{display:grid}}

/* PowerPoint-Import und Folienansicht */
.powerpoint-import{display:grid;grid-template-columns:74px minmax(0,1fr);gap:20px;margin:24px 0;padding:22px;border:1px solid #f3b891;border-radius:12px;background:linear-gradient(120deg,#fff8f3,#fff)}
.powerpoint-icon{width:64px;height:64px;border-radius:12px;display:grid;place-items:center;background:#d35230;color:#fff;font-size:34px;font-weight:900;box-shadow:0 8px 18px rgba(211,82,48,.2)}
.powerpoint-copy h3{margin:0 0 5px}.powerpoint-copy>p{margin:0;color:var(--muted);line-height:1.5}.powerpoint-controls{display:grid;grid-template-columns:minmax(240px,1fr) 130px 170px auto;gap:10px;align-items:end;margin-top:17px}.powerpoint-controls label{display:grid;gap:6px;font-size:12px;font-weight:800}.powerpoint-controls input,.powerpoint-controls select{min-width:0;width:100%;height:42px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:8px}.powerpoint-controls input[type=file]{padding:7px}.powerpoint-status{min-height:18px;margin-top:9px;color:var(--muted);font-size:12px}.powerpoint-controls button:disabled{opacity:.55;cursor:wait}
.powerpoint-controls label:has(#powerpointDuration),.powerpoint-controls label:has(#htmlPageDuration){display:none}.lesson-no-duration{min-height:42px;display:flex;align-items:center;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--muted);font-size:12px;font-weight:800}
.slide-frame{margin:0 auto 30px;max-width:1100px;border:1px solid #cfd4da;border-radius:10px;overflow:hidden;background:#202733;box-shadow:0 12px 30px rgba(22,31,43,.16)}.slide-frame img{display:block;width:100%;height:auto;max-height:72vh;object-fit:contain;background:#fff}
.html-import{border-color:#9ec7d3;background:linear-gradient(120deg,#f3fbfd,#fff)}.powerpoint-icon.html-icon{background:#28758a;font-size:16px;letter-spacing:-.5px;box-shadow:0 8px 18px rgba(40,117,138,.2)}
.lesson-content:has(.html-lesson-layout){padding:0!important;overflow:hidden!important}.html-lesson-layout{width:100%;height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);background:#202733}.html-lesson-toolbar{min-height:74px;padding:12px 18px;display:flex;align-items:center;justify-content:space-between;gap:18px;background:#fff;border-bottom:1px solid var(--line)}.html-lesson-toolbar h3{margin:2px 0 0!important;font-size:20px!important}.html-lesson-toolbar .eyebrow{margin:0}.html-page-frame{width:100%;height:100%;min-height:0;margin:0;border:0;border-radius:0;overflow:hidden;background:#fff;box-shadow:none}.html-page-frame iframe{display:block;width:100%;height:100%;border:0;background:#fff}
@media(max-width:1000px){.powerpoint-controls{grid-template-columns:1fr 1fr}.powerpoint-controls label:first-child{grid-column:1/-1}}
@media(max-width:650px){.powerpoint-import{grid-template-columns:1fr}.powerpoint-icon{width:52px;height:52px}.powerpoint-controls{grid-template-columns:1fr}.powerpoint-controls label:first-child{grid-column:auto}.html-lesson-toolbar{min-height:64px;padding:9px 12px}.html-lesson-toolbar h3{font-size:16px!important}.html-lesson-toolbar .button{padding:9px 11px;font-size:12px}}

/* Überarbeiteter Kurseditor */
.editor-panel{width:min(1420px,calc(100% - 28px));height:min(94vh,1040px);max-height:94vh;margin:3vh auto;padding:0;overflow:hidden;display:flex;flex-direction:column;border-radius:18px;background:#f5f6f4}.editor-panel>.modal-head{flex:none;margin:0;padding:20px 26px;border-bottom:1px solid var(--line);background:#fff}.editor-panel>.modal-head .eyebrow{margin-bottom:3px}.editor-panel>.modal-head h2{font-size:26px}.editor-panel>#editorBody{flex:1;min-height:0;overflow:auto;padding:24px 26px 34px;scrollbar-gutter:stable}.editor-panel>.modal-actions{flex:none;margin:0;padding:15px 26px;border-top:1px solid var(--line);background:rgba(255,255,255,.96);box-shadow:0 -10px 28px rgba(18,56,66,.06)}
.editor-hero{display:flex;justify-content:space-between;align-items:center;gap:28px;margin-bottom:20px;padding:24px 26px;border-radius:16px;color:#fff;background:linear-gradient(125deg,#123842,#1e5963);box-shadow:0 14px 34px rgba(18,56,66,.14)}.editor-hero h3{margin:2px 0 7px;font-size:28px;letter-spacing:-.025em}.editor-hero p:not(.eyebrow){max-width:700px;margin:0;color:#d4e5e3}.editor-hero .eyebrow{color:#ff9a61}.editor-summary{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.editor-summary span{min-width:88px;padding:10px 12px;border:1px solid rgba(255,255,255,.16);border-radius:11px;background:rgba(255,255,255,.08);text-align:center;font-size:12px;color:#d4e5e3}.editor-summary strong{display:block;font-size:22px;color:#fff}
.editor-panel .editor-section{margin:16px 0;padding:22px;border:1px solid #d8e0dd;border-radius:15px;background:#fff;box-shadow:0 4px 18px rgba(18,56,66,.035)}.editor-panel .editor-section-head{margin-bottom:18px}.editor-panel .editor-section-head>div,.editor-panel .editor-section-head:has(>.editor-step){display:flex;align-items:center;gap:12px}.editor-panel .editor-section-head h3{font-size:18px}.editor-panel .editor-section-head p{margin:3px 0 0;color:var(--muted);font-size:13px}.editor-step{width:31px;height:31px;flex:none;display:grid;place-items:center;border-radius:9px;background:#123842;color:#fff;font-size:13px;font-weight:900}.editor-basics .editor-grid{gap:14px 18px}.editor-basics label{padding:0}.editor-basics input,.editor-basics select,.editor-basics textarea{background:#fafbf9;border-color:#ced8d4}.editor-basics input:focus,.editor-basics select:focus,.editor-basics textarea:focus{background:#fff;border-color:#ff6500;box-shadow:0 0 0 3px rgba(255,101,0,.1)}
.editor-import-card{margin:14px 0;padding:18px 20px;border-radius:14px;box-shadow:none}.editor-import-card .powerpoint-copy h3{font-size:17px}.editor-import-card .powerpoint-copy>p{font-size:13px}.editor-import-card .powerpoint-icon{width:58px;height:58px;border-radius:12px}.editor-import-card .powerpoint-controls{gap:10px}.editor-import-card input,.editor-import-card select{min-height:42px}.html-import .powerpoint-status{display:grid;gap:4px;margin-top:12px;color:#435854;font-size:12px}.html-import .powerpoint-status strong,.html-import .powerpoint-status span{display:block}.html-import .powerpoint-status i{display:block;height:6px;overflow:hidden;border-radius:999px;background:#e0e7e4}.html-import .powerpoint-status b{display:block;height:100%;border-radius:inherit;background:#ff6500;transition:width .18s}
.module-editor{position:relative;margin:16px 0;padding:0 16px 16px;border:1px solid #cfdad6;border-radius:15px;background:#f7f9f7;overflow:visible;transition:border-color .16s,box-shadow .16s,opacity .16s}.module-editor:hover{border-color:#afc2bb;box-shadow:0 7px 22px rgba(18,56,66,.07)}.module-card-head{display:grid;grid-template-columns:auto auto minmax(220px,1fr) auto auto;gap:10px;align-items:center;margin:0 -16px 14px;padding:13px 15px;border-bottom:1px solid #dce4e1;border-radius:14px 14px 0 0;background:#edf2ef}.module-number{padding:5px 8px;border-radius:7px;background:#123842;color:#fff;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.module-title{font-weight:800;background:#fff!important}.module-lesson-count{color:var(--muted);font-size:12px;white-space:nowrap}.drag-handle{width:38px;height:38px;display:grid;place-items:center;flex:none;border:1px solid #cbd6d2;border-radius:9px;background:#fff;color:#71827e;font-size:22px;line-height:1;cursor:grab;touch-action:none}.drag-handle:hover{color:#ff6500;border-color:#ffae7a;background:#fff8f3}.drag-handle:active{cursor:grabbing}.is-dragging{opacity:.35}.module-editor.drag-over:before,.module-editor.drag-over-after:after,.lesson-editor.drag-over:before,.lesson-editor.drag-over-after:after{content:"";position:absolute;z-index:5;left:0;right:0;height:4px;border-radius:4px;background:#ff6500;box-shadow:0 0 0 4px rgba(255,101,0,.12)}.module-editor.drag-over:before{top:-10px}.module-editor.drag-over-after:after{bottom:-10px}.lesson-editor.drag-over:before{top:-7px}.lesson-editor.drag-over-after:after{bottom:-7px}
.lesson-editor{position:relative;display:grid;grid-template-columns:auto auto minmax(220px,1.5fr) minmax(150px,.65fr) auto auto;gap:9px;align-items:center;margin:9px 0;padding:12px;border:1px solid #dbe3e0;border-radius:12px;background:#fff;box-shadow:0 2px 8px rgba(18,56,66,.025)}.lesson-editor:hover{border-color:#bdccc7}.lesson-order{width:25px;height:25px;display:grid;place-items:center;border-radius:50%;background:#eef2ef;color:#536763;font-size:11px;font-weight:900}.lesson-editor textarea{grid-column:3/-1;min-height:80px;background:#fafbf9}.lesson-media-row{grid-column:3/-1;display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:10px;align-items:center}.lesson-media-row .upload-control{min-width:260px}.lesson-no-duration{padding:8px 10px;border-radius:8px;background:#edf2ef;color:#657773;font-size:11px;font-weight:800;white-space:nowrap}.lesson-drop-end{height:0;overflow:hidden;display:grid;place-items:center;border:0 dashed transparent;border-radius:10px;color:#bd4c12;font-size:12px;font-weight:800;transition:.15s}.is-drag-active .lesson-drop-end{height:38px;margin-top:8px;border:1px dashed #f0b18e;background:#fff7f1}.lesson-drop-end.drag-over{height:54px;border:2px dashed #ff6500;background:#fff0e5;color:#a83e08}.module-editor>.add-lesson{margin-top:10px;border-style:dashed;background:#fff}
.question-editor{padding:15px;border-color:#d8e0dd;background:#fafbf9}.question-editor:before{content:"Prüfungsfrage";grid-column:1/-1;color:#ff6500;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.exam-settings{background:linear-gradient(180deg,#fff,#fbfcfa)!important}
@media(max-width:980px){.editor-hero{align-items:flex-start;flex-direction:column}.editor-summary{justify-content:flex-start}.module-card-head{grid-template-columns:auto auto 1fr auto}.module-lesson-count{display:none}.module-card-head .remove-module{grid-column:auto}.lesson-editor{grid-template-columns:auto auto minmax(180px,1fr) minmax(130px,.65fr) auto}.lesson-editor>.remove-lesson{grid-column:5}.lesson-editor>.lesson-no-duration,.lesson-editor>.lesson-duration{grid-column:3/5}.lesson-editor textarea,.lesson-media-row{grid-column:3/-1}}
@media(max-width:650px){.editor-panel{width:100%;height:100vh;max-height:100vh;margin:0;border-radius:0}.editor-panel>.modal-head{padding:14px 15px}.editor-panel>#editorBody{padding:14px 12px 28px}.editor-panel>.modal-actions{padding:12px 14px calc(12px + env(safe-area-inset-bottom))}.editor-hero{padding:19px;border-radius:13px}.editor-hero h3{font-size:23px}.editor-summary{width:100%}.editor-summary span{flex:1;min-width:72px}.editor-panel .editor-section{padding:14px 12px}.module-editor{padding:0 10px 12px}.module-card-head{grid-template-columns:auto auto minmax(0,1fr);margin:0 -10px 12px;padding:11px 10px}.module-card-head .module-title{grid-column:1/-1}.module-card-head .remove-module{grid-column:3;grid-row:1}.lesson-editor{grid-template-columns:auto auto minmax(0,1fr) auto;padding:10px}.lesson-editor .lesson-title{grid-column:3/5}.lesson-editor .lesson-media-type{grid-column:3/-1}.lesson-editor>.lesson-no-duration,.lesson-editor>.lesson-duration{grid-column:3/-1}.lesson-editor>.remove-lesson{grid-column:4;grid-row:1}.lesson-editor textarea,.lesson-media-row{grid-column:1/-1}.lesson-media-row{grid-template-columns:1fr}.lesson-media-row .upload-control{min-width:0;align-items:flex-start;flex-direction:column}.drag-handle{width:36px;height:36px}.question-editor{grid-template-columns:1fr!important}}

/* Zentrale Benutzer- und Firmenverwaltung */
.identity-heading{align-items:flex-start;gap:24px}.identity-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}.identity-section{margin-top:26px}.identity-table-wrap{overflow:auto;border-radius:8px;box-shadow:var(--shadow)}.identity-table{min-width:780px}.identity-table small{color:var(--muted)}.identity-person{display:flex;align-items:center;gap:11px}.identity-person>span:last-child{display:grid;gap:3px}.role-pill{display:inline-flex;padding:5px 9px;border-radius:999px;background:color-mix(in srgb,var(--muted) 12%,var(--card));font-size:11px;font-weight:800}.role-admin{background:color-mix(in srgb,var(--signal) 14%,var(--card));color:var(--signal-dark)}.role-superadmin{background:#354052;color:#fff}.company-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.company-card{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:14px;padding:16px;border:1px solid var(--line);border-radius:8px;background:var(--card);box-shadow:var(--shadow)}.company-card h3,.company-card p{margin:0}.company-card p,.company-card small{color:var(--muted)}.company-card>div:nth-child(2){display:grid;gap:5px}.company-mark{width:52px;height:52px;display:grid;place-items:center;border-radius:10px;background:color-mix(in srgb,var(--signal) 14%,var(--card));color:var(--signal);font-weight:900}.identity-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.identity-form-grid label{display:grid;gap:6px;font-size:13px;font-weight:800}.identity-form-grid input,.identity-form-grid select{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:6px;background:var(--card);color:var(--ink)}.identity-note{margin-top:17px;padding:12px 14px;border-left:4px solid var(--signal);border-radius:5px;background:color-mix(in srgb,var(--signal) 8%,var(--card));color:var(--muted);font-size:13px}.company-access{grid-column:1/-1;padding-top:5px}.company-access>span{display:block;margin-bottom:8px;font-size:13px;font-weight:800}.identity-check{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;gap:9px!important;padding:8px 10px;border:1px solid var(--line);border-radius:6px;background:var(--paper)}.identity-check input{width:auto}.identity-panel{width:min(760px,calc(100% - 32px))}

/* Vollstaendiger Day-/Night-Modus fuer Verwaltung, Editor und Lernansicht */
body.dark-mode{color-scheme:dark;--soft:#293139;--field:#252c34;--raised:#242b32}
body.dark-mode .login-card,body.dark-mode .topbar,body.dark-mode .modal-panel,body.dark-mode .editor-panel,body.dark-mode .certificate-panel{background:var(--card);color:var(--ink)}
body.dark-mode .topbar{background:color-mix(in srgb,var(--card) 91%,transparent)}
body.dark-mode .icon-button,body.dark-mode .menu-button,body.dark-mode .button.ghost,body.dark-mode .filter-button,body.dark-mode .selection-item,body.dark-mode .quiz-card,body.dark-mode .editor-section,body.dark-mode .builder-item{background:var(--card);color:var(--ink);border-color:var(--line)}
body.dark-mode .button.danger{background:color-mix(in srgb,var(--danger) 20%,var(--card));border-color:color-mix(in srgb,var(--danger) 55%,var(--line));color:#ffaaa5}
body.dark-mode input,body.dark-mode select,body.dark-mode textarea,body.dark-mode .field-input,body.dark-mode .module-title,body.dark-mode .lesson-editor textarea{background:var(--field);border-color:var(--line);color:var(--ink)}
body.dark-mode input::placeholder,body.dark-mode textarea::placeholder{color:#8e99a5}
body.dark-mode input:disabled,body.dark-mode select:disabled{opacity:.72;background:#1a2026}
body.dark-mode .admin-table,body.dark-mode .admin-table th,body.dark-mode .admin-table td{background:var(--card);color:var(--ink);border-color:var(--line)}
body.dark-mode .admin-table th{background:#282f37;color:var(--muted)}
body.dark-mode .admin-table tbody tr:hover td{background:#262d35}
body.dark-mode .empty-state,body.dark-mode .participant-card,body.dark-mode .company-card{background:var(--card);border-color:var(--line)}
body.dark-mode .participant-metrics span,body.dark-mode .status-pill,body.dark-mode .role-pill{background:var(--soft)}
body.dark-mode .mini-progress,body.dark-mode .progress-line{background:#3a434c}
body.dark-mode .lesson-button:hover,body.dark-mode .lesson-button.active,body.dark-mode .unit-row:hover{background:#293139}
body.dark-mode .lesson-complete-box{background:#3a371f;border-color:#887e27;color:#f1edc0}
body.dark-mode .media-frame{background:#161b20}
body.dark-mode .quiz-result.good{background:#173a2d;color:#87d7b2}
body.dark-mode .quiz-result.bad{background:#43271e;color:#ffb08b}
body.dark-mode .option{color:var(--ink)}
body.dark-mode .network-status{background:#173a2d;color:#87d7b2}
body.dark-mode .network-status.offline{background:#43271e;color:#ffb08b}
body.dark-mode .topic-scores span{background:#303842}
body.dark-mode .recent-cover,body.dark-mode .catalog-row-icon{background:#e9ecef}
body.dark-mode .view-switch button.active,body.dark-mode .academy-welcome,body.dark-mode .reader-footer{background:#293443}
body.dark-mode .catalog-search,body.dark-mode .catalog-filter,body.dark-mode .catalog-sort,body.dark-mode .view-switch{background:var(--card);border-color:var(--line)}
body.dark-mode .catalog-search input,body.dark-mode .catalog-filter select,body.dark-mode .catalog-sort select{background:transparent}
body.dark-mode .editor-panel>.modal-head,body.dark-mode .editor-panel>.modal-actions{background:var(--card);border-color:var(--line)}
body.dark-mode .editor-panel>#editorBody{background:var(--paper)}
body.dark-mode .editor-basics,body.dark-mode .module-editor,body.dark-mode .lesson-editor,body.dark-mode .question-editor,body.dark-mode .exam-settings{background:var(--card)!important;border-color:var(--line)}
body.dark-mode .module-card-head{background:#293139;border-color:var(--line)}
body.dark-mode .drag-handle,body.dark-mode .lesson-order,body.dark-mode .lesson-no-duration{background:#303842;color:#c7d0d9;border-color:#485360}
body.dark-mode .module-editor>.add-lesson{background:var(--card)}
body.dark-mode .powerpoint-import{background:linear-gradient(135deg,#242d35,#303943);border-color:#46525d}
body.dark-mode .powerpoint-controls label{background:var(--field);border-color:var(--line)}
body.dark-mode .powerpoint-status i{background:#3a434c}
body.dark-mode .is-drag-active .lesson-drop-end{background:#352b25;border-color:#815239}
body.dark-mode .lesson-drop-end.drag-over{background:#43291e;border-color:var(--signal);color:#ffb08b}
body.dark-mode .identity-check{background:var(--paper);border-color:var(--line)}
body.dark-mode .company-mark{background:color-mix(in srgb,var(--signal) 18%,var(--card))}
body.dark-mode .role-superadmin{background:#465365;color:#fff}
body.dark-mode .mes-certificate,body.dark-mode .certificate{color-scheme:light;background:#fff;color:#2f3134}
body.dark-mode .mes-certificate input,body.dark-mode .mes-certificate textarea{color-scheme:light;background:#fff;color:#2f3134}
.credentials-panel>p{color:var(--muted);line-height:1.55}.generated-password{display:grid;gap:7px;margin:20px 0 4px;font-size:13px;font-weight:800}.generated-password input{width:100%;padding:14px;border:2px solid var(--signal);border-radius:7px;background:var(--paper);color:var(--ink);font:800 18px ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.025em}.credentials-panel .modal-actions{justify-content:space-between}body.dark-mode .generated-password input{background:var(--field);color:var(--ink)}

@media(max-width:800px){.identity-heading{display:grid}.identity-actions{justify-content:flex-start}.company-grid{grid-template-columns:1fr}.identity-form-grid{grid-template-columns:1fr}.company-access{grid-column:auto}.company-card{grid-template-columns:46px minmax(0,1fr)}.company-card>.button{grid-column:1/-1}.company-mark{width:46px;height:46px}}

/* Lehrgangsansichten v17: ruhig, klar und mobil bedienbar */
.academy-course-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:22px}.academy-course-grid .course-card{min-height:330px;border:1px solid var(--line);border-radius:16px;box-shadow:0 8px 28px rgba(31,39,46,.08);transition:transform .2s,box-shadow .2s,border-color .2s}.academy-course-grid .course-card:hover{transform:translateY(-3px);border-color:color-mix(in srgb,var(--signal) 45%,var(--line));box-shadow:0 16px 38px rgba(31,39,46,.13)}.academy-course-grid .course-cover{height:112px;overflow:hidden;background:linear-gradient(135deg,color-mix(in srgb,var(--cover,var(--signal)) 78%,#202b35),var(--cover,var(--signal)));isolation:isolate}.academy-course-grid .course-cover:before{content:"";position:absolute;right:18px;top:17px;width:74px;height:74px;border-radius:17px;background:#fff url('/assets/icons/logo.png') center/64px no-repeat;box-shadow:0 10px 22px rgba(0,0,0,.18);z-index:2}.academy-course-grid .course-cover:after{left:20px;bottom:19px;padding:6px 10px;border:1px solid rgba(255,255,255,.28);border-radius:999px;background:rgba(20,28,35,.18);backdrop-filter:blur(5px)}.academy-course-grid .course-card-body{padding:22px}.academy-course-grid .course-card h3{font-size:21px;line-height:1.25;margin:14px 0 9px}.academy-course-grid .course-card p{min-height:45px}.academy-course-grid .course-card-actions{align-items:center;margin-top:auto}.academy-course-grid .status-pill{white-space:nowrap}
.catalog-row{border-radius:13px;transition:transform .18s,border-color .18s}.catalog-row:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--signal) 38%,var(--line))}.catalog-row-icon{background:linear-gradient(145deg,#fff,#edf0f2)}.catalog-row>.recent-next{min-width:100px}
#courseDialog .course-panel{background:var(--paper)}#courseDialog .modal-head{padding:0 4px 16px}#courseDialog .modal-head>div{min-width:0}#courseDialog .modal-head h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.course-overview{grid-template-columns:300px minmax(0,1fr);gap:0;min-height:100%;background:var(--paper)}.course-overview-visual{position:sticky;top:0;align-self:start;min-height:calc(100vh - 112px);padding:36px 28px!important;display:flex;flex-direction:column;align-items:center;border:0;border-radius:18px 0 0 18px;background:radial-gradient(circle at 80% 12%,rgba(255,109,0,.26),transparent 32%),linear-gradient(155deg,#263344,#354052);color:#fff}.course-cover-brand{width:100%;display:flex;align-items:center;gap:13px;padding-bottom:28px;border-bottom:1px solid rgba(255,255,255,.15);text-align:left}.course-cover-brand img{width:68px;height:68px;margin:0!important;border-radius:15px;background:#fff;object-fit:contain}.course-cover-brand span{font-size:14px;font-weight:900;line-height:1.15}.course-overview-visual>.status-pill{position:static;align-self:flex-start;margin-top:24px;background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.2)}.course-overview-visual>.status-pill.completed{background:rgba(76,175,80,.22);color:#d9ffdc}.course-overview-progress{margin:auto 0 20px;display:flex;align-items:center;flex-direction:column;gap:8px;color:#fff}.course-overview-progress>div{width:148px;height:148px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(var(--signal) 0 var(--course-progress),rgba(255,255,255,.14) var(--course-progress) 360deg);position:relative}.course-overview-progress>div:before{content:"";position:absolute;inset:12px;border-radius:50%;background:#303c4c}.course-overview-progress strong{position:relative;font-size:36px;color:#fff}.course-overview-progress span{color:#fff;font-weight:800}.course-overview-progress small{color:#c9d0da}.course-contents{min-width:0;padding:34px clamp(24px,4vw,58px) 60px!important;background:var(--card);border:1px solid var(--line);border-left:0;border-radius:0 18px 18px 0}.course-overview-head{align-items:flex-start;padding-bottom:26px}.course-overview-head>div:first-child{min-width:0}.course-overview-head h3{max-width:820px;font-size:clamp(27px,3vw,39px);line-height:1.12;letter-spacing:-.035em;margin:7px 0 13px}.course-overview-head p{font-size:15px;line-height:1.65;margin:0}.course-head-actions{flex:none}.course-facts{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.course-facts span{padding:8px 11px;border-radius:8px;background:var(--paper);color:var(--muted);font-size:12px}.course-facts b{color:var(--ink)}.unit-list{display:grid;gap:18px;margin-top:28px}.unit-group{margin:0;border:1px solid var(--line);border-radius:13px;background:var(--card);overflow:hidden}.unit-group-head{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px 16px;background:color-mix(in srgb,var(--paper) 76%,var(--card));border-bottom:1px solid var(--line)}.unit-group-head>span{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:#354052;color:#fff;font-weight:900}.unit-group-head h4{margin:0;padding:0;border:0;font-size:15px}.unit-group-head small{display:block;margin-top:3px;color:var(--muted);font-size:11px}.unit-group-head>strong{color:var(--signal);font-size:13px}.unit-row{grid-template-columns:42px minmax(0,1fr) 145px 20px;min-height:66px;padding:10px 16px;border-bottom:1px solid var(--line)}.unit-row:last-child{border-bottom:0}.unit-row:hover{background:color-mix(in srgb,var(--signal) 5%,var(--card))}.unit-icon{width:34px;height:34px;background:#e8ebee;color:#5d6874;font-weight:800}.unit-row.completed .unit-icon{background:var(--good);color:#fff}.unit-title strong{line-height:1.3}.unit-progress small{font-weight:700}.test-group{border-color:color-mix(in srgb,var(--signal) 32%,var(--line))}.test-group .unit-group-head>span,.test-row .unit-icon{background:var(--signal)}.test-row{background:color-mix(in srgb,var(--signal) 4%,var(--card))}.test-row.is-locked{opacity:.72}.test-row .status-pill{justify-self:end;white-space:nowrap}
#courseDialog .reader-shell{padding-top:14px}.reader-breadcrumb{height:34px;padding:0 8px;font-size:12px}.reader-breadcrumb button{font-weight:800}.reader-shell .lesson-content{border-radius:14px;box-shadow:0 5px 22px rgba(31,39,46,.06)}#courseDialog .reader-shell .lesson-content{padding:36px clamp(28px,7vw,120px)}.lesson-reader-head{padding-bottom:17px;margin-bottom:28px}.lesson-reader-head h3{font-size:clamp(26px,3vw,38px);line-height:1.2}.lesson-copy{max-width:980px;font-size:17px;line-height:1.78}.slide-frame{display:grid;place-items:center;min-height:0;margin:0 auto 24px;padding:18px;border:1px solid var(--line);border-radius:12px;background:#eef1f3}.slide-frame img{display:block;max-width:100%;max-height:calc(100vh - 300px);object-fit:contain}.html-lesson-layout{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr)}.html-lesson-toolbar{position:relative;z-index:2}.html-page-frame{min-height:0}.reader-footer{border-top:1px solid rgba(255,255,255,.12);box-shadow:0 -8px 24px rgba(20,27,35,.15)}.reader-footer>div{min-width:0;overflow-x:auto;scrollbar-width:thin;justify-content:flex-start;padding:0 14px}.page-dot{flex:0 0 32px}.page-dot.completed:not(.active){border-color:#69a97a;color:#d9ffdf}.reader-nav{padding:0 18px}.reader-nav:hover:not(:disabled){background:rgba(255,255,255,.08)}.reader-nav.primary:hover{background:var(--signal-dark)}.exam-reader .lesson-content{max-width:1050px!important}
body.dark-mode .course-contents,body.dark-mode .unit-group{background:var(--card)}body.dark-mode .unit-group-head{background:#293139}body.dark-mode .unit-icon{background:#303842;color:#c5cdd5}body.dark-mode .slide-frame{background:#171c21}body.dark-mode .academy-course-grid .course-card{box-shadow:0 10px 30px rgba(0,0,0,.22)}
@media(max-width:1050px){.course-overview{grid-template-columns:250px minmax(0,1fr)}.course-overview-visual{padding:28px 20px!important}.course-cover-brand span{display:none}.course-cover-brand{justify-content:center}.course-overview-progress>div{width:128px;height:128px}.course-contents{padding:28px 26px 50px!important}.course-overview-head{display:grid}.course-head-actions{margin-top:18px}}
@media(max-width:800px){.academy-course-grid{grid-template-columns:1fr;gap:14px}.academy-course-grid .course-card{min-height:0;border-radius:13px}.academy-course-grid .course-cover{height:92px}.academy-course-grid .course-cover:before{width:60px;height:60px;top:16px;background-size:52px;border-radius:13px}.academy-course-grid .course-card-body{padding:18px}.catalog-row{border-radius:11px}.course-overview{display:block;background:var(--paper)}.course-overview-visual{position:relative;min-height:0;margin:0 0 12px;padding:17px!important;display:grid;grid-template-columns:auto 1fr auto;gap:12px;border-radius:14px;background:linear-gradient(135deg,#293747,#3c4858)}.course-cover-brand{width:auto;padding:0;border:0}.course-cover-brand img{width:58px;height:58px}.course-cover-brand span{display:none}.course-overview-visual>.status-pill{grid-column:2;margin:0;align-self:center;justify-self:start}.course-overview-progress{grid-column:3;grid-row:1/3;margin:0;gap:2px}.course-overview-progress>div{width:66px;height:66px}.course-overview-progress>div:before{inset:6px}.course-overview-progress strong{font-size:18px}.course-overview-progress span{font-size:10px}.course-overview-progress small{display:none}.course-contents{padding:20px 13px 36px!important;border:1px solid var(--line);border-radius:14px}.course-overview-head{padding-bottom:20px}.course-overview-head h3{font-size:27px}.course-overview-head p{font-size:14px}.course-head-actions{display:flex;width:100%}.course-head-actions .button{flex:1}.course-facts{gap:6px}.course-facts span{flex:1;min-width:90px;text-align:center;padding:8px 5px}.unit-list{gap:12px;margin-top:20px}.unit-group{border-radius:11px}.unit-group-head{grid-template-columns:34px minmax(0,1fr) auto;padding:12px}.unit-group-head>span{width:32px;height:32px}.unit-row{grid-template-columns:38px minmax(0,1fr) 20px;min-height:68px;padding:9px 11px}.unit-progress{display:none}.unit-title small{white-space:normal}.unit-row .status-pill{grid-column:2;justify-self:start;margin-top:2px}.test-row{grid-template-columns:38px minmax(0,1fr) 20px}.test-row .unit-arrow{grid-column:3;grid-row:1/3}.test-row .status-pill{font-size:10px}.reader-breadcrumb{padding:0 2px;white-space:nowrap;overflow:hidden}.reader-breadcrumb span:last-child{overflow:hidden;text-overflow:ellipsis}#courseDialog .reader-shell .lesson-content{padding:22px 16px;border-radius:11px}.lesson-reader-head h3{font-size:25px}.lesson-copy{font-size:16px;line-height:1.7}.lesson-complete-box{margin-top:25px;padding:14px}.slide-frame{padding:8px}.slide-frame img{max-height:calc(100vh - 265px)}.reader-footer{grid-template-columns:88px minmax(0,1fr) 96px}.reader-nav{padding:0 9px;font-size:12px}.reader-footer>div{padding:0 8px;justify-content:center}.page-dot{display:none}.page-dot.active{display:grid;place-items:center}.html-lesson-toolbar{align-items:flex-start;gap:10px}.html-lesson-toolbar h3{font-size:19px}.html-lesson-toolbar .button{padding:9px;font-size:11px}}
@media(max-width:420px){#courseDialog .course-panel{padding:8px 9px 0}#courseDialog .modal-head{min-height:56px;padding-bottom:8px}#courseDialog .modal-head .eyebrow{display:none}#courseDialog .modal-head h2{font-size:17px}#courseDialog .reader-footer{margin:0 -9px}.course-overview-visual{grid-template-columns:auto 1fr}.course-overview-progress{grid-column:2;justify-self:end}.course-overview-visual>.status-pill{display:none}.course-facts span:last-child{min-width:100%}.reader-nav span{display:none}}

/* Reduzierter HTML-Leser und kompakte Seitennavigation v18 */
#courseDialog .reader-shell .lesson-content.html-reader-content{padding:0;border:0;background:#151515;overflow:hidden}.html-lesson-clean{display:block;width:100%;height:100%;min-height:0}.html-lesson-clean .html-page-frame{width:100%;height:100%;min-height:0;border:0;border-radius:0;background:#151515}.html-lesson-clean iframe{display:block;width:100%;height:100%;border:0}.compact-reader-footer{grid-template-columns:150px minmax(0,1fr) 150px;min-height:70px}.reader-footer>.reader-pagination{height:70px;min-width:0;padding:7px 16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;overflow:hidden}.reader-page-summary{font-size:11px;color:#cbd2dc;white-space:nowrap}.reader-page-summary strong{color:#fff}.reader-page-buttons{max-width:100%;display:flex;align-items:center;justify-content:center;gap:6px}.reader-page-buttons .page-dot{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px}.page-gap{color:#aeb7c3;font-weight:900;line-height:1}.compact-reader-footer .reader-nav{height:70px;font-size:13px}
@media(max-width:800px){#courseDialog .reader-shell .lesson-content.html-reader-content{border-radius:10px}.compact-reader-footer{grid-template-columns:92px minmax(0,1fr) 100px}.reader-footer>.reader-pagination{height:70px;padding:8px}.reader-page-buttons{display:none}.reader-page-summary{font-size:13px}.compact-reader-footer .reader-nav{padding:0 8px}}
@media(max-width:420px){.compact-reader-footer{grid-template-columns:66px minmax(0,1fr) 72px}.reader-page-summary{font-size:12px}.compact-reader-footer .reader-nav{font-size:0}.compact-reader-footer .reader-nav:first-child{font-size:22px}.compact-reader-footer .reader-nav.primary{font-size:22px}}

/* Immersive Darstellung fuer HTML-Folien v20 */
#courseDialog.html-course-reader .course-panel{position:relative;padding:0;grid-template-rows:minmax(0,1fr)}
#courseDialog.html-course-reader .modal-head{position:absolute;z-index:20;top:14px;right:14px;min-height:0;margin:0;padding:0;border:0;background:transparent;pointer-events:none}
#courseDialog.html-course-reader .modal-head>div{display:none}
#courseDialog.html-course-reader .close-dialog{pointer-events:auto;width:44px;height:44px;border-color:rgba(255,255,255,.35);background:rgba(25,31,38,.82);color:#fff;box-shadow:0 5px 18px rgba(0,0,0,.28);backdrop-filter:blur(8px)}
#courseDialog.html-course-reader #courseDialogBody{grid-row:1;min-height:0;height:100%;overflow:hidden}
#courseDialog.html-course-reader .reader-shell{padding:0;grid-template-rows:minmax(0,1fr) 70px}
#courseDialog.html-course-reader .reader-breadcrumb{display:none}
#courseDialog.html-course-reader .reader-shell .lesson-content.html-reader-content{border-radius:0}
#courseDialog.html-course-reader .reader-footer{margin:0}
@media(max-width:800px){#courseDialog.html-course-reader .course-panel{padding:0}#courseDialog.html-course-reader .modal-head{top:10px;right:10px}#courseDialog.html-course-reader .close-dialog{width:40px;height:40px}#courseDialog.html-course-reader .reader-shell{padding:0;grid-template-rows:minmax(0,1fr) 70px}#courseDialog.html-course-reader .reader-footer{margin:0}}

/* Gefuehrte Pruefungsumgebung nach der Drei-Seiten-Vorlage v22 */
.exam-page-shell{min-height:100%;padding:18px 0 36px}.exam-page-shell>.reader-breadcrumb{max-width:1200px;margin:0 auto 14px}.exam-surface{max-width:1200px;margin:0 auto;border:1px solid var(--line);border-radius:14px;background:var(--card);box-shadow:0 16px 45px rgba(31,39,49,.1);overflow:hidden}.guided-exam-header{min-height:104px;padding:17px 30px;display:flex;align-items:center;justify-content:space-between;gap:24px;color:#fff;background:#354156;border-bottom:5px solid #ff6500}.guided-exam-brand{display:flex;align-items:center;gap:14px}.guided-exam-brand img{width:62px;height:62px;padding:4px;border-radius:13px;background:#fff;object-fit:contain}.guided-exam-brand small,.guided-exam-brand strong,.guided-exam-course span,.guided-exam-course b{display:block}.guided-exam-brand small,.guided-exam-course span{margin-bottom:4px;color:#cbd1da;font-size:11px}.guided-exam-brand strong{font-size:20px}.guided-exam-course{text-align:right}.guided-exam-course span{text-transform:uppercase;letter-spacing:.12em}.guided-exam-course b{max-width:420px;font-size:14px}.guided-exam-intro{padding:28px 34px 24px;display:flex;justify-content:space-between;align-items:end;gap:28px;border-bottom:1px solid var(--line)}.guided-exam-intro h3{margin:4px 0 8px!important;color:#354156!important;font-size:30px!important}.guided-exam-intro p:not(.eyebrow){max-width:700px;margin:0;color:var(--muted);line-height:1.55}.guided-exam-rules{display:flex;gap:10px}.guided-exam-rules span{min-width:130px;padding:11px 13px;border:1px solid var(--line);border-radius:10px;color:var(--muted);font-size:11px}.guided-exam-rules strong{display:block;margin-bottom:2px;color:#354156;font-size:19px}.guided-quiz-form{background:#f4f5f7}.guided-exam-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:22px;padding:26px 30px}.guided-question-stage{min-width:0}.guided-question{display:none!important;margin:0!important;padding:0!important;border-radius:12px!important;overflow:hidden}.guided-question.active{display:block!important}.guided-question-head{min-height:68px;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:14px;background:#f8f9fb;border-bottom:1px solid var(--line)}.guided-question-number{display:flex;align-items:center;gap:12px}.guided-question-number>span{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:#354156;color:#fff;font-weight:900}.guided-question-number small,.guided-question-number strong{display:block}.guided-question-number small{margin-bottom:2px;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.08em}.guided-question-number strong{color:#354156;font-size:14px}.guided-points{padding:7px 10px;border-radius:999px;background:#fff0e6;color:#e45a00;font-size:11px;font-weight:900}.guided-question-body{padding:25px 24px 28px}.guided-question-body>h4{margin:0 0 21px;font-size:19px;line-height:1.5;color:var(--ink)}.guided-answers{display:grid;gap:10px}.guided-answer{min-height:50px;padding:13px 14px;display:flex;align-items:flex-start;gap:12px;border:1px solid #dfe3e8;border-radius:9px;background:#fff;cursor:pointer;transition:.15s border-color,.15s background,.15s transform}.guided-answer:hover{border-color:#c5cbd2;background:#fafbfc;transform:translateY(-1px)}.guided-answer:has(input:checked){border-color:#ff6500;background:#fff7f1;box-shadow:0 0 0 2px rgba(255,101,0,.08)}.guided-answer input{margin-top:3px;accent-color:#ff6500}.guided-answer span{line-height:1.45}.guided-select-list{display:grid;gap:10px}.guided-select-list .order-row,.guided-select-list .match-row{margin:0;padding:10px;border:1px solid var(--line);border-radius:9px;background:#fafbfc}.guided-select-list select{padding:10px;border:1px solid #ccd2d8;border-radius:8px;background:#fff;color:var(--ink)}.guided-exam-sidebar{display:grid;align-content:start;gap:13px}.guided-side-card{padding:17px;border:1px solid var(--line);border-radius:11px;background:#fff}.guided-side-card>small{display:block;margin-bottom:7px;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:800}.guided-side-card .exam-timer{position:static;display:block;padding:0;background:transparent;color:#354156;border-radius:0;font-size:27px}.guided-progress-title{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:var(--muted)}.guided-progress-title strong{color:#354156;font-size:12px}.guided-progress-track{height:8px;margin:10px 0 13px;border-radius:99px;background:#e7eaee;overflow:hidden}.guided-progress-track i{display:block;width:0;height:100%;border-radius:inherit;background:#ff6500;transition:.2s width}.guided-question-nav{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.guided-question-nav button{aspect-ratio:1;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--muted);font-size:11px;font-weight:800;cursor:pointer}.guided-question-nav button.current{border-color:#ff6500;background:#fff4eb;color:#e45a00}.guided-question-nav button.answered{background:#354156;border-color:#354156;color:#fff}.guided-question-nav button.current.answered{box-shadow:0 0 0 2px #ff6500}.guided-side-note strong{font-size:12px;color:#354156}.guided-side-note p{margin:6px 0 0;color:var(--muted);font-size:11px;line-height:1.5}.guided-exam-footer{min-height:72px;padding:12px 30px;display:grid;grid-template-columns:130px 1fr 150px;align-items:center;gap:12px;border-top:1px solid var(--line);background:#fff}.guided-exam-footer>strong{text-align:center;color:var(--muted);font-size:12px}.guided-exam-footer .button:last-child{grid-column:3}.guided-result{padding:32px 40px 40px}.guided-result-hero{display:grid;grid-template-columns:190px 1fr;gap:30px;align-items:center;margin:22px 0}.guided-score-ring{width:180px;height:180px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(#38ad4d var(--score-angle),#e5e8ec 0);position:relative}.guided-score-ring:after{content:"";position:absolute;inset:15px;border-radius:50%;background:var(--card)}.guided-score-ring>div{position:relative;z-index:1;text-align:center}.guided-score-ring strong,.guided-score-ring span{display:block}.guided-score-ring strong{color:#354156;font-size:40px}.guided-score-ring span{margin-top:4px;color:var(--muted);font-size:11px}.guided-result-hero h3{margin:0 0 8px!important;color:#354156!important;font-size:31px!important}.guided-result-hero p{margin:0;color:var(--muted);line-height:1.55}.guided-result-status{display:inline-flex;margin-top:14px;padding:8px 12px;border-radius:999px;font-size:12px;font-weight:900}.guided-result-status.pass{background:#e9f7ec;color:#2d9440}.guided-result-status.fail{background:#fcecec;color:#b63535}.guided-result-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin:22px 0}.guided-result-stats>span{padding:15px;border:1px solid var(--line);border-radius:10px}.guided-result-stats small,.guided-result-stats strong{display:block}.guided-result-stats small{margin-bottom:5px;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.07em}.guided-result-stats strong{color:#354156;font-size:21px}.guided-topic-results,.guided-review{margin-top:20px;border:1px solid var(--line);border-radius:11px;overflow:hidden}.guided-topic-results h4{margin:0;padding:14px 16px;background:#f8f9fb;color:#354156}.guided-topic-results>div{display:flex;flex-wrap:wrap;gap:9px;padding:15px}.guided-topic-results span{padding:8px 11px;border-radius:8px;background:#f4f5f7;color:var(--muted);font-size:12px}.guided-topic-results strong{margin-left:8px;color:#354156}.guided-result-note{margin-top:18px;padding:14px 16px;border-left:4px solid #ff6500;border-radius:8px;background:#fff7f1;color:var(--muted);font-size:12px}.guided-review>header,.guided-review>article{display:grid;grid-template-columns:46px minmax(0,1fr) 100px;align-items:center;gap:12px;padding:13px 16px}.guided-review>header{background:#f8f9fb;color:var(--muted);font-size:11px}.guided-review>header strong{grid-column:1/3}.guided-review>article{border-top:1px solid var(--line)}.guided-review>article>span{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#354156;color:#fff;font-size:11px;font-weight:900}.guided-review article div strong,.guided-review article div small{display:block}.guided-review article div small{margin-top:3px;color:var(--muted);font-size:11px}.guided-review .ok{color:#2d9741}.guided-review .bad{color:#c53f3f}.guided-result-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:22px}
body.dark-mode .exam-surface,body.dark-mode .guided-question,body.dark-mode .guided-answer,body.dark-mode .guided-side-card,body.dark-mode .guided-exam-footer,body.dark-mode .guided-score-ring:after{background:var(--card)}body.dark-mode .guided-quiz-form,body.dark-mode .guided-exam-layout{background:#171c21}body.dark-mode .guided-question-head,body.dark-mode .guided-topic-results h4,body.dark-mode .guided-review>header{background:#293139}body.dark-mode .guided-exam-intro h3,body.dark-mode .guided-question-number strong,body.dark-mode .guided-question-body>h4,body.dark-mode .guided-side-card .exam-timer,body.dark-mode .guided-progress-title strong,body.dark-mode .guided-side-note strong,body.dark-mode .guided-score-ring strong,body.dark-mode .guided-result-hero h3,body.dark-mode .guided-result-stats strong,body.dark-mode .guided-topic-results h4,body.dark-mode .guided-topic-results strong{color:var(--ink)!important}body.dark-mode .guided-answer:hover,body.dark-mode .guided-answer:has(input:checked),body.dark-mode .guided-select-list .order-row,body.dark-mode .guided-select-list .match-row,body.dark-mode .guided-topic-results span{background:#293139}body.dark-mode .guided-select-list select{background:#20262d;color:var(--ink);border-color:var(--line)}
@media(max-width:900px){.guided-exam-intro{align-items:flex-start;flex-direction:column}.guided-exam-layout{grid-template-columns:1fr}.guided-exam-sidebar{grid-template-columns:1fr 1fr}.guided-side-note{grid-column:1/-1}.guided-exam-course{display:none}}
@media(max-width:650px){.exam-page-shell{padding:0}.exam-page-shell>.reader-breadcrumb{display:none}.exam-surface{border:0;border-radius:0;box-shadow:none}.guided-exam-header{min-height:84px;padding:12px 16px}.guided-exam-brand img{width:52px;height:52px}.guided-exam-brand strong{font-size:17px}.guided-exam-intro{padding:22px 17px}.guided-exam-intro h3{font-size:24px!important}.guided-exam-rules{width:100%}.guided-exam-rules span{min-width:0;flex:1}.guided-exam-layout{padding:16px}.guided-question-body{padding:20px 16px 23px}.guided-exam-sidebar{grid-template-columns:1fr}.guided-side-note{grid-column:auto}.guided-exam-footer{position:sticky;bottom:0;z-index:5;grid-template-columns:88px minmax(0,1fr) 96px;padding:10px 12px max(10px,env(safe-area-inset-bottom));box-shadow:0 -7px 20px rgba(20,27,35,.1)}.guided-exam-footer .button{padding:10px 8px;font-size:12px}.guided-exam-footer>strong{font-size:11px}.guided-result{padding:24px 17px 32px}.guided-result-hero{grid-template-columns:1fr}.guided-score-ring{margin:auto}.guided-result-stats{grid-template-columns:1fr}.guided-review>header,.guided-review>article{grid-template-columns:36px minmax(0,1fr) 72px;padding:12px 10px}.guided-review>header strong{grid-column:1/3}.guided-review>article>b{font-size:11px}.guided-result-actions{align-items:stretch;flex-direction:column}.match-row{grid-template-columns:1fr}.guided-question-nav{grid-template-columns:repeat(7,1fr)}}

/* Pruefung als echte Vollbildseite v23 */
#courseDialog.exam-course-reader .course-panel{position:relative;padding:0;grid-template-rows:minmax(0,1fr)}
#courseDialog.exam-course-reader .modal-head{position:absolute;z-index:30;top:6px;right:14px;min-height:0;margin:0;padding:0;border:0;background:transparent;pointer-events:none}
#courseDialog.exam-course-reader .modal-head>div{display:none}
#courseDialog.exam-course-reader .close-dialog{pointer-events:auto;width:38px;height:38px;border-color:var(--line);background:var(--card);color:var(--signal);box-shadow:0 4px 14px rgba(20,27,35,.12)}
#courseDialog.exam-course-reader #courseDialogBody{grid-row:1;min-height:0;height:100%;overflow:hidden}
#courseDialog.exam-course-reader .exam-page-shell{height:100%;min-height:0;padding:0;display:grid;grid-template-rows:50px minmax(0,1fr);overflow:hidden}
#courseDialog.exam-course-reader .exam-page-shell>.reader-breadcrumb{width:100%;max-width:none;height:50px;margin:0;padding:0 70px 0 30px;display:flex;align-items:center;border-bottom:1px solid var(--line);background:var(--paper)}
#courseDialog.exam-course-reader .exam-surface{width:100%;max-width:none;height:100%;min-height:0;margin:0;border:0;border-radius:0;box-shadow:none;overflow:auto;scrollbar-gutter:stable}
#courseDialog.exam-course-reader .guided-exam-header{border-radius:0}
@media(max-width:650px){#courseDialog.exam-course-reader .course-panel{padding:0}#courseDialog.exam-course-reader .modal-head{top:6px;right:8px}#courseDialog.exam-course-reader .close-dialog{width:38px;height:38px}#courseDialog.exam-course-reader .exam-page-shell{grid-template-rows:50px minmax(0,1fr)}#courseDialog.exam-course-reader .exam-page-shell>.reader-breadcrumb{height:50px;padding:0 58px 0 16px;display:flex;font-size:12px}#courseDialog.exam-course-reader .exam-surface{overflow:auto}}
