:root {
  --ink: #28342f;
  --muted: #68736d;
  --paper: #fffdf8;
  --cream: #f6f1e7;
  --sage: #dce8df;
  --sage-dark: #4e7561;
  --blue: #dce8e8;
  --blue-dark: #456b70;
  --sand: #eadcc8;
  --line: #dfe3dc;
  --shadow: 0 14px 40px rgba(49, 64, 55, .08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: #f4f3ee; font-family: Inter, "Segoe UI", Arial, sans-serif; }
button { font: inherit; }
.topbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 12px max(24px, calc((100vw - 1280px) / 2)); background: rgba(255,253,248,.96); border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.brand-mark { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; background: var(--sage-dark); color: white; font-weight: 800; }
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); margin-top: 2px; }
.progress-wrap { width: min(280px, 36vw); font-size: 13px; color: var(--muted); }
.progress { height: 7px; margin-top: 7px; background: #e8ebe6; border-radius: 99px; overflow: hidden; }
.progress i { display: block; width: 8%; height: 100%; background: var(--sage-dark); }
main { max-width: 1280px; margin: auto; padding: 46px 24px 70px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, .75fr); gap: 24px; align-items: end; margin-bottom: 34px; }
.eyebrow { color: var(--sage-dark); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 800; }
h1 { max-width: 760px; margin: 10px 0 12px; font-family: Georgia, serif; font-size: clamp(34px, 5vw, 57px); font-weight: 500; line-height: 1.06; }
.hero > div > p { max-width: 720px; color: var(--muted); font-size: 18px; line-height: 1.65; margin: 0; }
.lesson-card { display: grid; grid-template-columns: auto 1fr; gap: 12px 15px; align-items: center; padding: 19px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.case-two .hero { align-items: stretch; }
.case-two .title-card, .case-two .lesson-card { min-height: 188px; }
.case-two .title-card { display: flex; flex-direction: column; justify-content: center; padding: 23px 27px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.case-two .title-card h1 { margin: 7px 0 8px; font-size: clamp(29px, 3.2vw, 40px); }
.case-two .title-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.case-two .lesson-card { align-content: center; padding-top: 31px; padding-bottom: 31px; }
.payroll-standard-hero .title-card { border-top: 6px solid var(--sage-dark); background: linear-gradient(145deg,#edf5ef,#fffdf8); }
.payroll-standard-hero .lesson-card { border-color: #afc8b7; background: #f2f7f3; }
.payroll-standard-map { display: grid; grid-template-columns: minmax(260px,.8fr) minmax(0,1.6fr); gap: 25px; margin-bottom: 24px; padding: 23px 25px; border: 1px solid #b7cfd2; border-top: 6px solid #65898e; border-radius: 21px; background: linear-gradient(135deg,#eef5f5,#fffdf8 68%); box-shadow: var(--shadow); }
.standard-intro small { color: #456b70; font-size: 11px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.standard-intro h2 { margin-top: 7px; font-size: 28px; }
.standard-intro p { margin: 8px 0 0; color: var(--muted); line-height: 1.5; }
.payroll-standard-map ol { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin: 0; padding: 0; list-style: none; counter-reset: payroll-standard; }
.payroll-standard-map li { position: relative; min-height: 62px; padding: 11px 11px 10px 48px; border: 1px solid #c5d8da; border-radius: 11px; background: rgba(255,255,255,.74); counter-increment: payroll-standard; }
.payroll-standard-map li::before { content: counter(payroll-standard); position: absolute; top: 12px; left: 11px; width: 26px; height: 26px; display:grid; place-items:center; border-radius:8px; color:#fff; background:#65898e; font-weight:900; }
.payroll-standard-map li b,.payroll-standard-map li span { display:block; }.payroll-standard-map li b{color:#355d62}.payroll-standard-map li span{margin-top:3px;color:var(--muted);font-size:12px;line-height:1.35}
.lesson-icon, .step { display: inline-grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 11px; background: var(--sage); color: var(--sage-dark); font-weight: 800; }
.lesson-card small, .lesson-card strong { display: block; }
.lesson-card strong { line-height: 1.35; }
.lesson-card small, .info-card > p { color: var(--muted); }
.bloom { grid-column: 2; width: max-content; padding: 5px 9px; border-radius: 99px; background: var(--cream); color: #756349; font-size: 12px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, .75fr); gap: 24px; align-items: start; }
.case-two .workspace { align-items: stretch; }
.task-column, .info-card, .principle-card, .unlock-card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.task-column { padding: 28px; }
.case-two .task-column { display: grid; gap: 24px; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.scenario-panel, .payroll-panel { padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.scenario-intro { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; margin: 19px 0 16px; padding: 14px 16px; border-left: 5px solid #5a9274; border-radius: 11px; background: #edf6f0; color: #375547; line-height: 1.5; }
.scenario-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.scenario-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; gap: 7px; align-items: center; height: 36px; padding: 4px 8px; border: 1px solid #a9c7b5; border-radius: 7px; background: #fff; }
.scenario-item small, .scenario-item strong { display: block; }
.scenario-item small { min-height: 0; margin: 0; color: #60756a; font-size: 10.5px; font-weight: 700; line-height: 1.12; }
.scenario-item strong { color: #244738; font-size: 13px; line-height: 1.1; white-space: nowrap; }
.scenario-item > .info-dot { position: static; }
.scenario-item.not-used, .scenario-item.empty-slot { background: #edf2ef; border-color: #cbd8d0; }
.scenario-item.not-used strong, .scenario-item.empty-slot strong { color: #829189; }
.scenario-item.case-value { background: #fff9e8; border-color: #d9c680; }
.fallzahlen-grid.current-payroll-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.current-payroll-grid .scenario-item { min-height: 42px; height: auto; }
.current-payroll-grid .neutral-value { background: #f3f5f3; border-color: #d5dfd8; }
.current-payroll-grid .neutral-value small { color: #7b8981; font-weight: 650; }
.current-payroll-grid .neutral-value strong { color: #9aa59f; font-weight: 600; }
.current-payroll-grid .case-value { border-width: 2px; box-shadow: 0 3px 9px rgba(112,91,28,.10); }
.current-payroll-grid .case-value small,.current-payroll-grid .case-value strong { color: #4b4424; }
.current-payroll-grid .additional-info { grid-column: 1 / -1; }
.explanation-placeholder.calculation-basis-box { display:block; flex:0 0 auto; min-height:0; padding:16px; text-align:left; }
.calculation-basis-box h3 { margin:0 0 4px; color:#244738; font-family:Georgia,serif; font-size:18px; }
.calculation-basis-box > p { margin:0 0 12px; color:var(--muted); font-size:12px; line-height:1.4; }
.calculation-basis-scroll { overflow-x:auto; border:1px solid #c5d8cc; border-radius:10px; background:#fff; }
.calculation-basis-table { width:100%; min-width:315px; border-collapse:collapse; font-size:11px; }
.calculation-basis-table th,.calculation-basis-table td { padding:9px 6px; border-right:1px solid #d9e4dd; border-bottom:1px solid #d9e4dd; text-align:center; vertical-align:middle; }
.calculation-basis-table th:last-child,.calculation-basis-table td:last-child { border-right:0; }
.calculation-basis-table tbody tr:last-child th,.calculation-basis-table tbody tr:last-child td { border-bottom:0; }
.calculation-basis-table thead th { color:#365d4b; background:#edf4ef; font-weight:800; }
.calculation-basis-table tbody th { color:#36483f; background:#fafbf9; text-align:left; font-weight:750; }
.calculation-basis-table .basis-yes { color:#25593b; background:#e4f2e8; font-weight:850; }
.calculation-basis-table .basis-no { color:#84423e; background:#f7e9e7; font-weight:850; }
.calculation-basis-table .basis-neutral { color:#8a9690; background:#f2f4f2; font-weight:700; }
.calculation-basis-box .basis-note { margin:10px 0 0; font-size:11px; }
.scenario-divider { grid-column: 1 / -1; display: flex; align-items: center; gap: 13px; margin: 9px 0 2px; color: #2f6b4f; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.scenario-divider::before, .scenario-divider::after { content: ''; height: 1px; flex: 1; background: #a9c7b5; }
.scenario-details { grid-column: 1 / -1; margin-top: 9px; }
.scenario-details summary { display: flex; align-items: center; gap: 10px; color: #2f6b4f; cursor: pointer; list-style: none; font-size: 13px; font-weight: 800; text-align: left; text-transform: uppercase; letter-spacing: .08em; }
.scenario-details summary::-webkit-details-marker { display: none; }
.scenario-details summary::before { content: '▾'; width: 18px; color: #2f6b4f; font-size: 15px; transition: transform .18s ease; }
.scenario-details:not([open]) summary::before { transform: rotate(-90deg); }
.scenario-details summary::after { content: ''; order: 3; height: 1px; flex: 1; background: #a9c7b5; }
.scenario-details summary small { order: 2; color: #83958b; font-size: 10px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.scenario-details summary span { order: 1; }
.details-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.fallzahlen-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.fallzahlen-grid.wide-fallzahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wide-fallzahlen .scenario-item { min-height: 44px; height: auto; padding: 7px 10px; grid-template-columns: minmax(105px, .85fr) minmax(0, 1.15fr) 22px; }
.wide-fallzahlen .scenario-item small { font-size: 11px; }
.wide-fallzahlen .scenario-item strong { white-space: normal; text-align: right; }
.section-heading > div { display: flex; align-items: center; gap: 12px; }
.pdf-button { margin-left: auto; padding: 7px 11px; border: 1px solid #8eb19d; border-radius: 8px; color: #2f6b4f; background: #edf6f0; font-size: 11px; font-weight: 800; text-decoration: none; }
.pdf-button::before { content: '↓ '; }
.pdf-button:hover, .pdf-button:focus { color: #fff; background: #2f6b4f; outline: none; }
h2 { margin: 0; font-family: Georgia, serif; font-weight: 500; font-size: 25px; }
.section-heading p { margin: 12px 0 22px 48px; color: var(--muted); line-height: 1.5; }
.source-blocks { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; }
.source-button { padding: 10px 14px; border: 1px solid #cfd9d1; border-radius: 99px; color: var(--ink); background: #f7faf7; cursor: pointer; transition: .18s ease; }
.source-button:hover, .source-button:focus-visible { transform: translateY(-2px); border-color: var(--sage-dark); outline: none; }
.source-button.used { opacity: .38; pointer-events: none; }
.payroll-sheet { overflow: hidden; background: white; border: 1px solid #d6ddd7; border-radius: 15px; }
.sheet-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 18px 20px; background: #eef3ef; border-bottom: 1px solid #d6ddd7; }
.sheet-head small { color: var(--muted); }
.sheet-head h3 { margin: 2px 0 0; font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.sheet-head > span { padding: 8px 13px; border: 1px solid #ced9d1; border-radius: 8px; color: var(--muted); font-size: 13px; }
.answer-slots { padding: 12px; }
.slot { min-height: 48px; display: flex; align-items: center; gap: 13px; padding: 9px 12px; margin: 7px 0; border: 1px dashed #d5dad5; border-radius: 10px; color: #a1aaa4; cursor: pointer; }
.slot .num { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #f0f1ed; font-size: 12px; }
.slot.filled { color: var(--ink); background: #fafbf8; border-style: solid; }
.slot.filled:hover { border-color: #b9c9bd; }
.slot.correct { background: #edf5ef; border-color: #9ebaa6; }
.slot.wrong { background: #fbefec; border-color: #d6a89d; }
.actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.button { padding: 11px 17px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; font-weight: 700; }
.button.primary { background: var(--sage-dark); color: white; }
.button.secondary { background: transparent; border-color: #ccd4ce; color: var(--ink); }
.button:disabled { cursor: not-allowed; opacity: .58; }
.feedback { min-height: 24px; margin-top: 12px; text-align: right; color: var(--muted); }
.feedback.success { color: var(--sage-dark); font-weight: 700; }
.info-column { display: grid; gap: 18px; }
.case-two .info-column { grid-template-rows: auto auto minmax(220px, 1fr); align-self: stretch; }
.info-card, .principle-card, .unlock-card { padding: 23px; }
.info-card > .step { margin-bottom: 15px; }
.info-card > p { line-height: 1.5; }
.detail-box { min-height: 180px; margin-top: 19px; padding: 18px; border-radius: 14px; background: var(--cream); }
.detail-box.empty { display: grid; place-items: center; text-align: center; color: var(--muted); }
.detail-symbol { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #b9aa91; border-radius: 50%; font-family: Georgia, serif; }
.detail-box h3 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 21px; font-weight: 500; }
.detail-box ul { padding-left: 18px; margin-bottom: 0; color: var(--muted); line-height: 1.55; }
.principle-card { background: var(--blue); border-color: #c6d9d9; }
.principle-card small { color: var(--blue-dark); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.principle-card p { margin: 9px 0 0; font-family: Georgia, serif; font-size: 19px; line-height: 1.45; }
.unlock-card { text-align: center; transition: .25s ease; }
.unlock-card.locked { filter: grayscale(.5); opacity: .75; }
.unlock-card.unlocked { background: #f1f6ee; border-color: #b8cab9; }
.lock-symbol { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sand); font-size: 25px; }
.unlock-card small { color: var(--muted); }
.unlock-card h3 { margin: 2px 0 8px; font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.unlock-card p { color: var(--muted); font-size: 14px; }
.unlock-card code { display: block; padding: 12px; background: white; border: 1px dashed #9bad9e; border-radius: 9px; color: var(--sage-dark); font-size: 17px; font-weight: 800; letter-spacing: .1em; }
.copy-button { margin-top: 10px; border: 0; background: transparent; color: var(--sage-dark); text-decoration: underline; cursor: pointer; }
.next-case { display: block; width: 100%; margin-top: 13px; text-decoration: none; }
.case-nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.case-nav > .next-case { width: auto; margin-top: 0; }
.back-link { color: var(--sage-dark); font-weight: 700; text-decoration: none; }

.overview-label { padding: 7px 11px; border-radius: 99px; color: var(--sage-dark); background: var(--sage); font-size: 12px; font-weight: 800; }
.overview-tools { display: flex; align-items: center; gap: 9px; }
.entry-reopen { padding: 7px 11px; border: 1px solid #bdcac1; border-radius: 99px; color: var(--sage-dark); background: transparent; font-size: 12px; font-weight: 800; cursor: pointer; }
.entry-reopen:hover, .entry-reopen:focus-visible { color: #fff; background: var(--sage-dark); outline: none; }
.entry-active { overflow: hidden; }
.entry-screen { position: fixed; inset: 0; z-index: 1000; overflow-y: auto; background: #f4f3ee; transition: opacity .28s ease, visibility .28s ease; }
.entry-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.guide-screen { position: fixed; inset: 0; z-index: 995; overflow-y: auto; background: #f4f3ee; transition: opacity .28s ease, visibility .28s ease; }
.guide-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.entry-shell { width: min(1280px, 100%); min-height: 100vh; margin: auto; padding: 24px max(24px, 4vw) 34px; display: flex; flex-direction: column; }
.entry-brand { display: flex; align-items: center; gap: 12px; }
.entry-brand strong, .entry-brand small { display: block; }
.entry-brand small { margin-top: 2px; color: var(--muted); }
.entry-hero { flex: 1; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .7fr); gap: clamp(28px, 6vw, 80px); align-items: start; padding: clamp(48px, 9vh, 95px) 0 clamp(35px, 6vh, 65px); }
.entry-copy .eyebrow { display: inline-flex; padding: 9px 14px; border-left: 5px solid var(--sage-dark); border-radius: 8px; color: #315d48; background: var(--sage); font-size: clamp(15px, 1.35vw, 18px); letter-spacing: .11em; }
.entry-copy h1 { max-width: 800px; margin: 20px 0 20px; font-size: clamp(36px, 4.5vw, 58px); line-height: 1.06; }
.entry-copy > p { max-width: 780px; margin: 0; color: var(--muted); font-size: clamp(17px, 1.65vw, 21px); line-height: 1.65; }
.entry-actions { display: flex; align-items: center; gap: 17px; margin-top: 29px; color: var(--muted); font-size: 14px; }
.entry-start { min-width: 190px; min-height: 49px; font-size: 16px; box-shadow: 0 10px 24px rgba(78,117,97,.2); }
.entry-motivation { padding: 27px; border: 1px solid #b9d0c1; border-radius: 24px; background: linear-gradient(145deg,#edf6f0,#fffdf8); box-shadow: var(--shadow); }
.entry-motivation > span { color: var(--sage-dark); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.entry-motivation blockquote { position: relative; margin: 14px 0 24px; padding: 0 0 21px; border-bottom: 1px solid #c8d8cd; color: #315d48; font-family: Georgia,serif; font-size: clamp(29px, 3vw, 42px); font-weight: 500; line-height: 1.18; }
.entry-motivation blockquote::after { content: ''; position: absolute; left: 0; bottom: -3px; width: 70px; height: 5px; border-radius: 99px; background: #91b29f; }
.entry-goal small { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.entry-goal p { margin: 9px 0 0; font-family: Georgia,serif; font-size: clamp(19px, 1.8vw, 25px); line-height: 1.42; }
.entry-pillars { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.entry-pillars article { position: relative; min-height: 165px; padding: 23px 23px 20px 76px; border: 1px solid var(--line); border-top-width: 5px; border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); }
.entry-pillars article > span { position: absolute; top: 22px; left: 21px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--sage-dark); font-weight: 800; }
.entry-pillars article:nth-child(1) { border-color: #b7cfd2; background: #eef5f5; }
.entry-pillars article:nth-child(1) > span { background: #587d82; }
.entry-pillars article:nth-child(2) { border-color: #d8c79f; background: #faf5e9; }
.entry-pillars article:nth-child(2) > span { background: #9a7a3f; }
.entry-pillars article:nth-child(3) { border-color: #afc8b7; background: #edf5ef; }
.entry-pillars article:nth-child(3) > span { background: #4e7561; }
.entry-pillars h2 { margin: 3px 0 8px; font-size: 24px; }
.entry-pillars p { margin: 0; color: var(--muted); line-height: 1.5; }
.entry-note { display: flex; gap: 12px 24px; align-items: center; margin-top: 15px; padding: 15px 20px; border-radius: 15px; color: #375547; background: var(--sage); line-height: 1.45; }
.entry-note strong { white-space: nowrap; }
.guide-shell { width: min(1180px,100%); min-height: 100vh; margin: auto; padding: 24px max(24px,4vw) 35px; }
.guide-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.guide-head > span { padding: 7px 11px; border-radius: 99px; color: var(--sage-dark); background: var(--sage); font-size: 12px; font-weight: 800; }
.guide-intro { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); gap: 35px; align-items: end; margin: clamp(45px,7vh,75px) 0 30px; }
.guide-intro h1 { margin: 10px 0 12px; font-size: clamp(38px,5vw,62px); }
.guide-intro p { max-width: 720px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.guide-route { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.guide-route span { padding: 8px 10px; border-radius: 9px; font-weight: 800; }
.guide-route span:nth-of-type(1){background:#e3f0f1;color:#456b70}.guide-route span:nth-of-type(2){background:#f5ecd8;color:#84672f}.guide-route span:nth-of-type(3){background:#e2eee5;color:#3f6c54}.guide-route b{color:#9aa59f}
.guide-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 15px; }
.guide-card { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 21px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); }
.guide-card.code-guide { grid-row: span 3; align-content: start; border-color: #aac5b4; background: #f0f6f2; }
.guide-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--sage-dark); font-weight: 900; }
.guide-card h2 { margin: 2px 0 8px; font-size: 24px; }
.guide-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.guide-card ol { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: guide-step; }
.guide-card li { position: relative; min-height: 37px; padding: 5px 0 9px 43px; line-height: 1.45; counter-increment: guide-step; }
.guide-card li::before { content: counter(guide-step); position: absolute; left: 0; top: 0; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #70927f; font-weight: 800; }
.guide-code-note { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 15px; overflow: hidden; border: 1px solid #d9c9a5; border-radius: 15px; background: #d9c9a5; }
.guide-code-note > div { padding: 15px 18px; background: #faf5e9; }
.guide-code-note strong { color: #715b30; }
.guide-code-note p { margin: 5px 0 0; color: var(--muted); line-height: 1.45; }
.guide-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.course-home main { padding-top: 54px; }
.course-intro { display: block; }
.course-intro h1 { font-size: clamp(35px, 4.6vw, 56px); }
.course-intro > div > p { max-width: 720px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.course-cases { margin-top: 52px; }
.course-section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; }
.course-section-title small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.guided-path > .course-section-title { position: relative; gap: 18px; margin-bottom: 22px; padding: 20px 24px; overflow: hidden; border: 1px solid #b9d0c1; border-radius: 20px; background: linear-gradient(120deg,#edf5ef 0%,#fffdf8 75%); box-shadow: var(--shadow); }
.guided-path > .course-section-title::after { content: ''; position: absolute; top: 0; right: 0; width: 24%; height: 100%; opacity: .42; background: repeating-linear-gradient(135deg,transparent 0 13px,#dce8df 13px 14px); pointer-events: none; }
.guided-path > .course-section-title .step { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 17px; color: #fff; background: var(--sage-dark); font-size: 19px; }
.guided-path > .course-section-title > div { position: relative; z-index: 1; }
.guided-path > .course-section-title h2 { margin-top: 3px; font-size: 31px; }
.guided-path > .course-section-title p { max-width: 720px; margin: 5px 0 0; color: var(--muted); line-height: 1.45; }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.course-case { position: relative; min-height: 300px; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 21px; background: var(--paper); box-shadow: var(--shadow); }
.course-case.locked { background: #f1f1ed; box-shadow: none; }
.course-case .case-number { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; color: #fff; background: var(--sage-dark); font-size: 17px; font-weight: 800; }
.course-case.locked .case-number { color: #79827d; background: #dfe3df; }
.case-status { position: absolute; top: 25px; right: 24px; padding: 5px 9px; border-radius: 99px; color: var(--sage-dark); background: var(--sage); font-size: 11px; font-weight: 800; }
.course-case.locked .case-status { color: #7b817d; background: #e3e5e2; }
.course-case h3 { margin: 22px 0 8px; font-family: Georgia, serif; font-size: 23px; font-weight: 500; }
.course-case p { flex: 1; margin: 0 0 17px; color: var(--muted); line-height: 1.5; }
.course-case .bloom { align-self: flex-start; margin-bottom: 17px; }
.course-case .button { width: 100%; text-align: center; text-decoration: none; }
.phase-badge { display: inline-flex; align-items: center; width: max-content; padding: 7px 11px; border-radius: 8px; font-size: 12px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.phase-badge.understand { color: #456b70; background: #dfecee; }
.phase-badge.practice { color: #806329; background: #f3ead4; }
.phase-badge.apply { color: #3f6c54; background: #dfece3; }
.module-phases .phase-understand { position: relative; padding: 24px; border-top: 6px solid #789ba0; border-radius: 21px; background: linear-gradient(135deg,#eef5f5,#fffdf8 70%); box-shadow: var(--shadow); }
.module-phases .phase-understand h1 { margin-top: 15px; }
.module-phases .phase-understand .lesson-card { border-color: #b7cfd2; background: #f5f9f9; }
.module-phases .phase-practice { position: relative; padding-top: 68px; border-top: 6px solid #b49353; background: linear-gradient(145deg,#fffdf8,#faf5e9); }
.module-phases .phase-practice > .phase-badge { position: absolute; top: 24px; left: 28px; }
.example-payroll { margin-top: 34px; padding: 28px; border: 1px solid #afc8b7; border-top: 6px solid var(--sage-dark); border-radius: 22px; background: linear-gradient(145deg,#edf5ef,#fffdf8 65%); box-shadow: var(--shadow); }
.example-payroll-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; margin-bottom: 20px; }
.example-payroll-head h2 { margin-top: 12px; font-size: 30px; }
.example-payroll-head p { max-width: 760px; margin: 9px 0 0; color: var(--muted); line-height: 1.55; }
.example-note { flex: 0 0 auto; padding: 8px 11px; border: 1px solid #b9d0c1; border-radius: 9px; color: #3f6c54; background: #fff; font-size: 12px; font-weight: 800; }
.example-sheet-wrap { overflow-x: auto; border: 1px solid #ccd6cf; border-radius: 15px; background: #fff; }
.example-sheet { min-width: 790px; padding: 26px 29px; color: #111; font-family: Arial,sans-serif; }
.example-sheet h3 { margin: 0 0 24px; padding-bottom: 17px; border-bottom: 1px solid #222; font-size: 18px; }
.example-recipient { display: flex; justify-content: space-between; gap: 35px; margin: 0 0 27px; }
.example-recipient > div { display: flex; flex-direction: column; align-items: flex-start; min-width: 230px; line-height: 1.45; }
.example-recipient > div:last-child { align-items: flex-end; text-align: right; }
.example-recipient small { margin-bottom: 5px; color: #666; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.example-recipient strong { margin-bottom: 2px; }
.example-sheet table { width: 100%; border-collapse: collapse; }
.example-sheet th { padding: 0 7px 10px; border-bottom: 1px solid #222; font-size: 15px; text-align: right; }
.example-sheet th:first-child,.example-sheet th:nth-child(2) { text-align: left; }
.example-sheet td { padding: 4px 7px; font-size: 15px; text-align: right; white-space: nowrap; }
.example-sheet td:first-child,.example-sheet td:nth-child(2) { text-align: left; }
.example-sheet tbody tr:nth-child(3) td { padding-bottom: 17px; }
.example-sheet .example-total td { padding-top: 15px; padding-bottom: 15px; font-weight: 900; }
.example-sheet .example-subtotal td { padding-top: 16px; padding-bottom: 15px; }
.example-sheet .example-payout td { border-top: 1px solid #222; }
.example-payment { display: grid; grid-template-columns: 145px 1fr; gap: 5px 15px; margin-top: 22px; padding: 14px 0 0; border-top: 1px solid #222; font-size: 13px; line-height: 1.5; }
.example-payment > strong { grid-row: span 2; }
.example-payment small { color: #666; font-size: 10px; }
.calendar-card, .method-card { padding: 23px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.mini-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 18px; }
.mini-calendar .weekday { padding-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 800; text-align: center; }
.mini-calendar i, .mini-calendar b { min-height: 31px; display: grid; place-items: center; border-radius: 7px; font-size: 12px; font-style: normal; }
.mini-calendar b { color: #244738; background: #e5f0e8; }
.mini-calendar b.weekend { background: #dce8df; }
.mini-calendar b.exit-day { outline: 3px solid #d4aa3a; color: #6d4c00; background: #fff0c7; }
.mini-calendar b.after { color: #9ca49f; background: #f0f1ee; text-decoration: line-through; }
.calendar-card > p { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.method-card h3 { margin: 0 0 12px; font-family: Georgia, serif; font-size: 21px; font-weight: 500; }
.method-card ol { margin: 0; padding-left: 22px; color: var(--muted); line-height: 1.8; }
.method-card li.active { color: var(--sage-dark); font-weight: 800; }
.method-card p { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.legal-card p { font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: 1.55; }
.formula-box { margin-top: 18px; padding: 17px; border: 1px solid #c9d7cd; border-radius: 13px; background: #f7faf7; color: #244738; text-align: center; }
.formula-box p { margin: 0; font-size: 13px; line-height: 1.5; }
.formula-box hr { margin: 14px 0; border: 0; border-top: 1px solid #a9c7b5; }
.formula-box strong { display: block; color: var(--sage-dark); font-size: 18px; }
.future-methods ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.rounding-note { display: grid; gap: 5px; margin-top: 13px; padding: 12px 14px; border-radius: 10px; color: #6d5b35; background: #fff8e7; font-size: 12px; line-height: 1.45; }
.workday-method .mini-calendar b.weekend { color: #8a6b61; background: #f3e5e0; text-decoration: line-through; }
.workday-method .mini-calendar b.after.weekend { color: #a9948e; background: #eee5e2; }
.derivation-box { display: grid; gap: 8px; margin-top: 18px; padding: 15px; border-radius: 12px; color: #375547; background: #edf6f0; font-size: 12px; line-height: 1.45; }
.derivation-box p { margin: 0; }
.case-story { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 20px 0; }
.fact { padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; background: #fafbf8; }
.fact small, .fact strong { display: block; }
.fact small { margin-bottom: 4px; color: var(--muted); }
.pay-table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 12px; border: 1px solid #a9c7b5; border-radius: 12px; overflow: hidden; color: #244738; }
.standard-payroll-panel { border-top: 6px solid #b49353; background: linear-gradient(145deg,#fffdf8,#faf5e9); }
.standard-payroll-panel .payroll-sheet { overflow-x: auto; }
.standard-payroll-panel .pay-table { min-width: 760px; table-layout: fixed; }
.standard-sheet-head { min-width: 760px; }
.sheet-period { margin-left:auto;text-align:right; }.sheet-period small,.sheet-period strong{display:block}.sheet-period strong{margin-top:3px;color:#244738;font-size:15px}
.pay-table th, .pay-table td { padding: 7px; vertical-align: middle; border-right: 1px solid #a9c7b5; border-bottom: 1px solid #a9c7b5; }
.pay-table th { background: #d6e9dc; color: #244738; text-align: left; font-size: 13px; letter-spacing: 0; }
.pay-table th:not(:first-child), .pay-table td:not(:first-child) { text-align: center; white-space: nowrap; }
.pay-table th:first-child { width: 30%; }
.pay-table th:nth-child(2) { width: 15%; }.pay-table th:nth-child(3){width:19%}.pay-table th:nth-child(4){width:14%}.pay-table th:nth-child(5){width:22%}
.pay-table th:last-child, .pay-table td:last-child { border-right: 0; }
.pay-table tr:last-child td { border-bottom: 0; }
.pay-table td:first-child { text-align: left; white-space: normal; }
.pay-table tr.subtotal td { font-weight: 800; background: #e7edf2; }
.pay-table tr.payout td { font-weight: 800; color: #865300; background: #fff0c7; }
.pay-table .section-row td { padding: 8px 9px; color: #fff; background: #2f6b4f; border-color: #2f6b4f; text-align: left; font-size: 14px; font-weight: 800; }
.field-with-info { position: relative; display: block; width: 100%; }
.field-with-info > .money-input, .field-with-info > .given-input { padding-right: 29px; }
.field-with-info > .info-dot { position: absolute; top: 50%; right: 6px; z-index: 2; transform: translateY(-50%); }
.money-input, .given-input { flex: 1; width: 100%; min-width: 94px; height: 36px; min-height: 36px; padding: 8px 7px; border: 2px solid #c8d3dc; border-radius: 7px; text-align: right; color: #244738; background: #fff; font-size: 14px; }
.given-input { background: #edf2ef; color: #435c50; }
.given-input.rate-input { width: 100%; }
.info-dot { position: relative; display: inline-flex; flex: 0 0 18px; width: 18px; height: 18px; align-items: center; justify-content: center; margin: 0; padding: 0; border: 1px solid #6f8292; border-radius: 50%; color: #51687b; background: #fff; font-size: 11px; font-weight: 700; cursor: help; user-select: none; }
.info-text { visibility: hidden; opacity: 0; position: absolute; z-index: 1200; right: 0; bottom: 24px; width: 250px; padding: 8px 10px; border: 1px solid #aebcc7; border-radius: 8px; background: #fff; color: #244738; text-align: left; font-size: 12px; font-weight: 400; line-height: 1.35; white-space: normal; box-shadow: 0 5px 18px rgba(0,0,0,.18); transition: opacity .12s; }
.info-dot:hover .info-text, .info-dot:focus .info-text, .info-dot.offen .info-text { visibility: visible; opacity: 1; }
.money-input:focus { border-color: var(--sage-dark); outline: 3px solid rgba(78,117,97,.12); }
.money-input.correct { border-color: #79a184; background: #edf7ef; }
.money-input.wrong { border-color: #c98778; background: #fff0ed; }
.calculation-note { margin: 16px 0 0; padding: 12px 14px; border-left: 4px solid #c6b58f; background: var(--cream); color: var(--muted); line-height: 1.5; }
.source-list { display: grid; gap: 10px; margin-top: 17px; }
.source-item { padding: 12px 13px; border-radius: 10px; background: var(--cream); }
.source-item strong, .source-item span { display: block; }
.source-item span { margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.rate-card { padding: 17px; border-radius: 14px; background: var(--blue); }
.rate-card h3 { margin: 0 0 10px; font-family: Georgia, serif; font-weight: 500; }
.rate-row { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid rgba(69,107,112,.16); }
.rate-row:last-child { border: 0; }
.rate-card p { color: var(--muted); font-size: 13px; line-height: 1.45; }
.rate-card a { color: var(--blue-dark); }
.explanation-card { display: flex; min-height: 220px; flex-direction: column; padding: 23px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.explanation-heading { display: flex; align-items: center; gap: 12px; }
.explanation-heading h2 { font-size: 22px; line-height: 1.15; }
.explanation-placeholder { display: flex; flex: 1; min-height: 130px; flex-direction: column; align-items: center; justify-content: center; margin-top: 18px; padding: 20px; border: 1px dashed #b9c9bd; border-radius: 14px; background: #f7faf7; color: var(--muted); text-align: center; }
.explanation-placeholder p { max-width: 240px; margin: 11px 0 0; font-size: 13px; line-height: 1.5; }
.sources-panel { margin-top: 24px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.sources-panel summary { display: flex; align-items: center; gap: 12px; padding: 16px 20px; color: #fff; background: #2f6b4f; cursor: pointer; list-style: none; font-weight: 800; }
.sources-panel summary::-webkit-details-marker { display: none; }
.sources-panel summary::before { content: '▾'; font-size: 15px; transition: transform .18s ease; }
.sources-panel:not([open]) summary::before { transform: rotate(-90deg); }
.sources-panel summary span { margin-left: auto; color: #d9eadf; font-size: 11px; font-weight: 600; }
.sources-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 18px 20px 8px; }
.sources-content > div { padding: 13px 14px; border: 1px solid #d7e2db; border-radius: 10px; background: #f8faf8; }
.sources-content strong { color: #244738; }
.sources-content p { margin: 5px 0 8px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.sources-content a, .source-status { color: #2f6b4f; font-size: 12px; }
.sources-note { margin: 8px 20px 18px; padding-top: 12px; border-top: 1px solid #d7e2db; color: var(--muted); font-size: 11px; line-height: 1.45; }
footer { display: flex; justify-content: space-between; gap: 20px; max-width: 1280px; margin: auto; padding: 22px 24px 35px; border-top: 1px solid #d8ddd7; color: var(--muted); font-size: 13px; }
@media (max-width: 860px) { .hero, .workspace { grid-template-columns: 1fr; } .hero { gap: 24px; } .info-column { grid-template-columns: 1fr 1fr; } .info-card { grid-column: 1 / -1; } .scenario-grid, .details-grid, .fallzahlen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .topbar { align-items: flex-start; } .progress-wrap { display: none; } main { padding: 30px 15px 50px; } .task-column { padding: 18px; } .case-two .task-column { padding: 0; } .scenario-panel, .payroll-panel { padding: 18px; } .scenario-grid, .details-grid, .fallzahlen-grid, .fallzahlen-grid.wide-fallzahlen, .sources-content { grid-template-columns: 1fr; } .wide-fallzahlen .scenario-item { grid-template-columns: minmax(95px, .85fr) minmax(0, 1.15fr) 22px; } .section-heading p { margin-left: 0; } .info-column { grid-template-columns: 1fr; } .info-card { grid-column: auto; } .sheet-head { align-items: flex-start; flex-direction: column; } .actions { flex-direction: column-reverse; } .button { width: 100%; } footer { flex-direction: column; } .case-story { grid-template-columns: 1fr; } .pay-table { font-size: 13px; } }
@media (max-width: 900px) { .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .case-nav { align-items: flex-start; flex-direction: column; } }
@media (max-width: 620px) { .case-grid { grid-template-columns: 1fr; } }

/* Kompakte Lehrgangsübersicht */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.course-home .entry-screen { display: none; }
.course-home main { width: min(1440px, calc(100% - 48px)); margin-inline: auto; }
.course-home .topbar { position: sticky; top: 0; z-index: 50; box-shadow: 0 8px 24px rgba(28, 58, 46, .07); }
.dashboard-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); gap: 34px; align-items: center; padding: 48px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(135deg, #fdfbf6 0%, #f4f8f3 100%); box-shadow: var(--shadow); }
.dashboard-hero h1 { max-width: 800px; margin: 8px 0 12px; }
.dashboard-hero p { max-width: 760px; margin: 0; }
.dashboard-actions { display: grid; gap: 14px; }
.continue-button { display: flex; align-items: center; justify-content: space-between; min-height: 62px; padding-inline: 22px; text-decoration: none; }
.continue-button b { font-size: 24px; }
.course-search { position: relative; display: block; }
.course-search input { width: 100%; min-height: 58px; padding: 0 52px 0 18px; border: 1px solid #b9cec3; border-radius: 15px; background: #fff; color: var(--ink); font: inherit; font-weight: 650; outline: none; }
.course-search input:focus { border-color: var(--sage-dark); box-shadow: 0 0 0 4px rgba(63, 113, 90, .13); }
.course-search b { position: absolute; right: 18px; top: 50%; translate: 0 -50%; color: var(--sage-dark); font-size: 25px; pointer-events: none; }
.resume-panel { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-top: 18px; padding: 18px 22px; border: 1px solid #b8cfc2; border-radius: 18px; background: #eef6f1; }
.resume-panel[hidden] { display: none; }
.resume-panel div { display: grid; gap: 2px; }
.resume-panel small { color: var(--muted); font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.resume-panel strong { font-size: 19px; }
.resume-panel span { color: var(--muted); }
.resume-panel .button { flex: 0 0 auto; text-decoration: none; }
.chapter-dashboard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 30px 0 18px; }
.chapter-tile { appearance: none; width: 100%; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto 24px; gap: 16px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); color: var(--ink); text-align: left; box-shadow: 0 8px 24px rgba(28, 58, 46, .06); font: inherit; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.chapter-tile:hover, .chapter-tile:focus-visible { transform: translateY(-2px); border-color: #8fb6a3; box-shadow: 0 13px 28px rgba(28, 58, 46, .1); outline: none; }
.chapter-tile[aria-expanded="true"] { border-color: var(--sage-dark); background: #f0f7f2; }
.chapter-tile.upcoming { opacity: .72; cursor: default; box-shadow: none; }
.chapter-number { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 16px; background: var(--sage-dark); color: #fff; font-size: 19px; font-weight: 850; }
.chapter-tile.upcoming .chapter-number { background: #9ca9a2; }
.chapter-tile-copy { display: grid; gap: 4px; min-width: 0; }
.chapter-tile-copy strong { font-family: Georgia, serif; font-size: 21px; font-weight: 500; }
.chapter-tile-copy small { color: var(--muted); font-size: 14px; line-height: 1.35; }
.chapter-count { padding: 7px 10px; border-radius: 999px; background: #edf3ee; color: var(--sage-dark); font-size: 13px; font-weight: 800; white-space: nowrap; }
.chapter-arrow { color: var(--sage-dark); font-size: 20px; font-weight: 800; text-align: center; }
.search-result-note { margin: 22px 0 8px; color: var(--muted); font-weight: 750; }
.chapter-section { margin-top: 18px; scroll-margin-top: 92px; }
.chapter-heading { appearance: none; width: 100%; display: grid; grid-template-columns: 58px minmax(0, 1fr) 44px; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: 19px; background: #fdfbf6; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.chapter-heading:hover, .chapter-heading:focus-visible { border-color: #8fb6a3; outline: none; }
.chapter-heading > span:nth-child(2) { display: grid; gap: 2px; }
.chapter-heading small { color: var(--muted); font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.chapter-heading strong { font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.chapter-heading em { color: var(--muted); font-size: 14px; font-style: normal; }
.chapter-heading b { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: #e3eee7; color: var(--sage-dark); font-size: 25px; }
.chapter-section .chapter-content { margin-top: 16px; }
.chapter-section.is-collapsed .chapter-content { display: none; }
.course-home .chapter-section .course-case { min-height: 240px; padding: 20px; }
.course-home .chapter-section .course-case h3 { margin: 16px 0 7px; font-size: 21px; }
.course-home .chapter-section .course-case p { margin-bottom: 13px; font-size: 15px; }
.course-home .chapter-section .course-case .bloom { margin-bottom: 13px; }
.course-home .chapter-section .course-case[hidden], .chapter-section[hidden] { display: none; }
.featured-course-card { border-color: #d3b760 !important; background: #fff9e8 !important; }

@media (max-width: 900px) {
  .dashboard-hero { grid-template-columns: 1fr; padding: 34px; }
  .chapter-dashboard { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .course-home main { width: min(100% - 24px, 1440px); }
  .dashboard-hero { padding: 25px 20px; border-radius: 21px; }
  .resume-panel { align-items: stretch; flex-direction: column; }
  .chapter-tile { grid-template-columns: 48px minmax(0, 1fr) 22px; padding: 15px; }
  .chapter-number { width: 48px; height: 48px; }
  .chapter-count { display: none; }
  .chapter-heading { grid-template-columns: 48px minmax(0, 1fr) 38px; padding: 15px; }
  .chapter-heading .step { width: 48px; height: 48px; }
  .chapter-heading strong { font-size: 21px; }
}
@media (max-width: 820px) { .entry-hero { grid-template-columns: 1fr; padding: 45px 0 35px; } .entry-pillars { grid-template-columns: 1fr; } .entry-pillars article { min-height: 0; } .entry-note { align-items: flex-start; flex-direction: column; } }
@media (max-width: 820px) { .guide-intro,.guide-grid,.guide-code-note { grid-template-columns: 1fr; } .guide-card.code-guide { grid-row: auto; } .guide-route { justify-content: flex-start; } }
@media (max-width: 560px) { .entry-shell { padding: 18px 15px 26px; } .entry-copy h1 { font-size: 35px; } .entry-actions { align-items: stretch; flex-direction: column; } .entry-actions span { text-align: center; } .entry-pillars article { padding-left: 70px; } .overview-tools { align-items: flex-end; flex-direction: column-reverse; } }
@media (max-width: 560px) { .guide-shell { padding: 18px 15px 28px; } .guide-head > span { display:none; } .guide-route { align-items: stretch; flex-direction: column; text-align:center; } .guide-route b { transform:rotate(90deg); } .guide-card { grid-template-columns: 42px 1fr; padding:17px; } .guide-icon { width:42px;height:42px } .guide-actions { flex-direction:column-reverse; } .guide-actions .button { width:100%; } }
@media (max-width: 720px) { .example-payroll { padding:18px; } .example-payroll-head { flex-direction:column; } .module-phases .phase-understand { padding:19px; } }

/* Pro-rata chapter test */
.test-overview { margin-top: 34px; }
.test-course-card { border-color: #a9c7b5; background: linear-gradient(145deg,#fffdf8,#edf6f0); }
.test-nav-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; }
.test-badge { padding: 7px 12px; border-radius: 99px; color: #725936; background: #f0e3cc; font-size: 12px; font-weight: 800; }
.test-page .progress i { background:#a9824e; }
.test-page .test-hero .title-card { border-color:#ddc9a8; background:linear-gradient(145deg,#fffdf8,#fbf4e8); }
.test-page .test-hero .lesson-card { border-color:#ddc9a8; background:#f3e6d2; }
.test-page .test-hero .lesson-icon { color:#725936; background:#ead5b4; }
.test-page .test-hero .eyebrow { color:#86663c; }
.test-page .test-toolbar,.test-page .test-card,.test-page .solution-ways { border-color:#ddc9a8; }
.test-page .test-progress i { background:#a9824e; }
.test-page .test-instruction { border-left-color:#b68d55; background:#fbf3e6; }
.test-page .test-table { border-color:#d9c29d; }
.test-page .test-table th,.test-page .test-table td { border-color:#d9c29d; }
.test-page .test-table th { color:#594426; background:#efe0c7; }
.test-page .variant-pill { color:#654d2c; background:#f1e4ce; }
.test-page .solution-list article>span { background:#9a7443; }
.test-hero { align-items: stretch; }
.test-hero .title-card { display:flex; flex-direction:column; justify-content:center; min-height:188px; padding:23px 27px; border:1px solid var(--line); border-radius:20px; background:var(--paper); box-shadow:var(--shadow); }
.test-hero .title-card h1 { margin:7px 0 8px; font-size:clamp(29px,3.2vw,40px); }
.test-hero .title-card p { margin:0; color:var(--muted); font-size:15px; line-height:1.5; }
.test-toolbar { display:grid; grid-template-columns:minmax(220px,.6fr) 1.4fr; gap:22px; align-items:center; margin-bottom:20px; padding:18px 20px; border:1px solid var(--line); border-radius:18px; background:var(--paper); box-shadow:var(--shadow); }
.test-toolbar strong,.test-toolbar span { display:block; }
.test-toolbar span { margin-top:3px; color:var(--muted); font-size:12px; }
.test-progress { height:9px; margin-top:10px; overflow:hidden; border-radius:99px; background:#e5ebe6; }
.test-progress i { display:block; width:0; height:100%; background:#4e7561; transition:width .2s ease; }
.test-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.test-actions .button { width:auto; }
.test-card,.solution-ways { padding:26px; border:1px solid var(--line); border-radius:22px; background:var(--paper); box-shadow:var(--shadow); }
.test-instruction { display:flex; gap:12px; margin-bottom:16px; padding:13px 15px; border-left:5px solid #5a9274; border-radius:10px; background:#edf6f0; }
.test-instruction span { color:var(--muted); }
.test-table-wrap { overflow-x:auto; }
.test-table { width:100%; border-collapse:separate; border-spacing:0; overflow:hidden; border:1px solid #a9c7b5; border-radius:12px; }
.test-table th,.test-table td { padding:10px 9px; border-right:1px solid #a9c7b5; border-bottom:1px solid #a9c7b5; text-align:left; vertical-align:middle; }
.test-table th { color:#244738; background:#d6e9dc; font-size:13px; }
.test-table th:first-child,.test-table td:first-child { width:45px; text-align:center; font-weight:800; }
.test-table th:last-child,.test-table td:last-child { width:165px; border-right:0; }
.test-table tr:last-child td { border-bottom:0; }
.test-table td:nth-child(4) { white-space:nowrap; text-align:right; }
.variant-pill { display:inline-block; padding:5px 8px; border-radius:8px; color:#456b70; background:#dce8e8; font-size:11px; font-weight:800; }
.test-answer { width:100%; height:38px; padding:7px 9px; border:2px solid #c8d3dc; border-radius:8px; text-align:right; font:inherit; }
.test-answer:focus { border-color:#4e7561; outline:3px solid rgba(78,117,97,.12); }
.test-answer.correct { border-color:#5f9871; background:#edf7ef; }
.test-answer.wrong { border-color:#bf6e61; background:#fff0ed; }
.answer-status { display:block; min-height:13px; margin-top:3px; color:var(--muted); font-size:9px; text-align:right; }
.solution-ways { margin-top:22px; }
.solution-list { display:grid; gap:10px; margin-top:20px; }
.solution-list article { display:grid; grid-template-columns:36px 1fr; gap:12px; padding:14px; border:1px solid #d7e2db; border-radius:12px; background:#f8faf8; }
.solution-list article>span { display:grid; place-items:center; width:32px; height:32px; border-radius:10px; color:#fff; background:#4e7561; font-weight:800; }
.solution-list strong,.solution-list small { display:block; }
.solution-list small { margin-top:2px; color:var(--muted); }
.solution-list p { margin:9px 0 0; color:#375547; font-size:13px; line-height:1.55; }
@media(max-width:900px){.test-toolbar{grid-template-columns:1fr}.test-actions{justify-content:flex-start}.test-table{min-width:900px}}
@media(max-width:560px){.test-card,.solution-ways{padding:16px}.test-actions,.test-nav-actions{align-items:stretch;flex-direction:column}.test-actions .button,.test-nav-actions .button{width:100%}.test-instruction{flex-direction:column}}
.exercise-calendar{margin-top:1rem;background:#fff;border:1px solid var(--line);border-radius:14px;padding:1rem}.exercise-calendar h3{margin:0 0 .75rem;font-size:1rem}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.35rem}.calendar-grid span{min-height:2.15rem;display:flex;align-items:center;justify-content:center;border-radius:8px;background:#f5f7f8;font-size:.82rem}.calendar-grid .weekday{min-height:auto;background:transparent;color:var(--muted);font-size:.72rem;font-weight:700}.calendar-grid .outside{background:transparent}.calendar-grid .weekend{background:#e7eaed;color:#6b747b}.calendar-grid .workday{background:#e7f3ec;color:#185c3a;font-weight:700}.calendar-grid .entry{background:var(--sage-dark);color:#fff;box-shadow:0 0 0 3px rgba(25,114,83,.18)}.calendar-legend{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:.7rem;color:var(--muted);font-size:.75rem}.calendar-legend i{display:inline-block;width:.75rem;height:.75rem;border-radius:3px;margin-right:.25rem;vertical-align:-.08rem}.calendar-legend .entry-key{background:var(--sage-dark)}.calendar-legend .work-key{background:#e7f3ec}.calendar-legend .weekend-key{background:#e7eaed}
.mini-journal{margin-top:1rem;overflow-x:auto;border:1px solid var(--line);border-radius:14px;background:#fff}.mini-journal h3{margin:0;padding:1rem 1rem .65rem;font-size:1rem}.mini-journal table{width:100%;border-collapse:collapse;font-size:.84rem}.mini-journal th,.mini-journal td{padding:.65rem .75rem;text-align:right;border-top:1px solid var(--line);white-space:nowrap}.mini-journal th:first-child,.mini-journal td:first-child{text-align:left}.mini-journal thead th{background:#f5f7f3;color:var(--muted)}.mini-journal .journal-total td{font-weight:800;background:var(--sage)}.mini-journal-note{margin:.7rem 1rem 1rem;color:var(--muted);font-size:.78rem}
.methods-comparison-table td:nth-child(2){text-align:left}
