:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#20364a;background:#f4f7fa;font-size:14px}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}header{display:flex;justify-content:space-between;align-items:center;padding:24px 32px;background:white;border-bottom:1px solid #dce5ed}h1{margin:4px 0;font-size:30px}h2{font-size:19px;margin:0 0 8px}p{line-height:1.5}.eyebrow{font-size:11px;letter-spacing:.15em;color:#44758c;font-weight:750}.header-actions,.actions,.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}a{color:#126599;font-weight:650}main{padding:24px 28px}button,select,input{font:inherit;min-height:38px;border:1px solid #bfced9;border-radius:8px;background:white;color:inherit;padding:8px 10px}button{cursor:pointer;font-weight:600}button:hover{border-color:#1975a5;background:#eef7ff}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #237cad;outline-offset:2px}label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:600}.toolbar{align-items:flex-end;padding:16px;background:#fff;border:1px solid #dae4ed;border-radius:14px}.primary{background:#176b8b;color:white;border-color:#176b8b}.primary:hover{background:#105773;color:white}.danger{color:#a12424}.plan-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 6px}.plan-head p{margin:0;color:#5a7185}#status{min-height:21px;color:#52687a}#status.error,#entryError,#copyError{color:#a32929}.workspace{display:grid;grid-template-columns:225px minmax(0,1fr);gap:18px}.workspace:has(aside[hidden]){grid-template-columns:1fr}aside{background:white;border:1px solid #dce5ed;padding:16px;border-radius:12px;align-self:start;position:sticky;top:12px;max-height:85vh;overflow:auto}aside p{font-size:12px;color:#576f80}aside label{margin-bottom:10px}.check{flex-direction:row;align-items:center}.check input{min-height:0}#names{display:flex;flex-direction:column;gap:7px}#names button{text-align:left;font-size:12px;font-weight:600}#names button[aria-pressed=true]{background:#d4eefa;border:2px solid #177396}#selected{font-size:12px;margin-bottom:12px;color:#126599}.board-wrap{overflow:auto;background:white;border:1px solid #dce5ed;border-radius:12px}.roster{border-collapse:separate;border-spacing:0;width:100%;table-layout:fixed;min-width:800px}.roster th,.roster td{border-bottom:1px solid #ccd7df;border-right:1px solid #ccd7df;padding:7px;vertical-align:top}.roster thead th{background:#203f54;color:white;text-align:left;padding:12px 8px;position:sticky;top:0;z-index:2}.roster thead th:first-child{width:80px}.roster .section th{background:#e6edf3;color:#264658;text-align:left;font-size:12px;padding:7px 12px;letter-spacing:.03em}.roster tbody th{text-align:left;font-size:12px}.roster td{height:58px}.area-AN{background:#dbe6f7}.area-BE{background:#e3efd9}.area-NP{background:#fbe3d2}.area-BO{background:#fff2c8}.area-AT1,.area-AT2,.area-AT3,.area-AT4,.area-AT5{background:#f5f3fb}.area-ST{background:#e0f1f0}.area-Küche{background:#f6e4ee}.area-Hinweis{background:#f1f3f5}.slot{transition:box-shadow .12s}.slot.over{box-shadow:inset 0 0 0 3px #0e7193}.assignment{display:block;width:100%;text-align:left;background:#ffffffa8;border:1px solid #ffffffbf;padding:6px 7px;margin-bottom:5px;min-height:30px;font-size:12px;overflow-wrap:anywhere;border-radius:6px}.assignment small{display:block;font-size:11px;font-weight:400;margin-top:3px}.assignment.conflict{border:2px solid #bb6b0c}.assignment[draggable=true]{cursor:grab}.add{padding:0;min-height:24px;width:100%;background:transparent;border:1px dashed #7c93a25c;font-size:16px;color:#577c8d}.empty{padding:36px;text-align:center;color:#607487}details{margin:18px 0;padding:14px 18px;background:#fff2d9;border:1px solid #ddba79;border-radius:10px}summary{font-weight:650;cursor:pointer}details li{margin:6px 0}.print-help{color:#62788a;font-size:12px}dialog{border:1px solid #d5e0e8;border-radius:15px;width:min(480px,95vw);padding:24px;color:inherit}dialog::backdrop{background:#0b273b70}dialog label{margin:15px 0}dialog p{font-size:12px;color:#576c7d}.dialog-head{display:flex;justify-content:space-between}.time-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}.filter-note{padding:10px 15px;font-size:12px;background:#eef4f7}#loginHint{padding:30px}
@media(max-width:800px){header{padding:16px;align-items:flex-start;gap:15px}.header-actions{font-size:12px;justify-content:flex-end}main{padding:12px}.plan-head{align-items:flex-start;flex-direction:column}.toolbar{gap:8px}.workspace{grid-template-columns:1fr}aside{position:static;max-height:220px}#names{display:flex;flex-flow:row wrap}aside p{margin:5px 0}.roster{min-width:730px}.board-wrap{max-height:75vh}}
@page{size:A4 landscape;margin:8mm}
@media print{html{background:white}*{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}body{background:white;color:#17232f}header{padding:0 0 8px;border:0}h1{font-size:18px}.eyebrow{font-size:9px}.header-actions,.toolbar,.actions,aside,#status,details,.print-help,dialog,.add{display:none!important}main{padding:0}.workspace{display:block}.plan-head{margin:4px 0 10px}.plan-head h2{font-size:14px}.plan-head p{font-size:10px}.board-wrap{border-radius:0;border:0;overflow:visible;max-height:none}.roster{min-width:0;width:100%;font-size:9px}.roster th,.roster td{padding:3px;height:auto}.roster thead th{position:static;padding:5px}.roster thead th:first-child{width:50px}.roster .section th{font-size:9px;padding:3px}.roster tbody th{font-size:9px}.assignment{font-size:9px;padding:2px;border-radius:2px;min-height:0;margin:1px 0}.assignment small{font-size:8px;margin:0}.roster tr{break-inside:avoid}.filter-note{font-size:9px;padding:4px}thead{display:table-header-group}}

.mobile-roster{display:none}.mobile-roster section{padding:14px;border-bottom:1px solid #d5e0e8}.mobile-roster h3{margin:0 0 12px;font-size:15px}.mobile-roster h4{font-size:12px;color:#4b667b;margin:12px 0 7px}.mobile-entry{display:flex;gap:12px;padding:10px;border-radius:8px;margin:5px 0}.mobile-entry>span{min-width:36px;font-weight:650}.mobile-entry small{display:block;margin-top:3px}.mobile-roster p{font-size:12px;color:#677d8c}
@media screen and (max-width:800px){.board-wrap:has(.mobile-roster){max-height:none}.board-wrap:has(.mobile-roster) .roster{display:none}.mobile-roster{display:block}}
@media print{.mobile-roster{display:none!important}.roster{display:table!important}}

.legend{display:flex;flex-wrap:wrap;gap:8px 18px;margin:14px 0;color:#52687a;font-size:12px}.legend strong{color:#26485e;margin-right:3px}.mm-badge{display:inline-block;background:#67419b;color:white;border-radius:4px;padding:2px 5px;font-size:10px;font-weight:750;margin-left:6px;vertical-align:middle}#mmTag{background:#eee5fa;border-color:#9774c6;cursor:grab}#mmTag[aria-pressed=true]{outline:3px solid #67419b}aside h3{font-size:12px;margin:14px 0 7px}.area-Abwesenheit{background:#fbe2df}#entrySource{padding:10px;background:#eff3f6;border-radius:8px;white-space:pre-wrap}
@media print{.legend{font-size:8px;gap:4px 12px;margin:5px 0 8px}.mm-badge{font-size:8px;padding:1px 3px}}

.roster thead th:first-child{width:100px}.roster tbody th{overflow-wrap:anywhere}
.slot.density-2 .assignment{font-size:12px;padding:5px 6px}
.slot.density-3 .assignment{font-size:11.5px;padding:4px 6px;margin-bottom:4px}
.slot.density-4 .assignment,.slot.density-5 .assignment{font-size:11px;padding:3px 5px;margin-bottom:3px;min-height:26px}
.slot.density-6 .assignment{font-size:10.5px;padding:3px 5px;margin-bottom:3px;min-height:24px}
.slot .assignment strong{white-space:normal;overflow-wrap:anywhere}.slot.density-4 small,.slot.density-5 small,.slot.density-6 small{font-size:10px}
@media print{
 header{padding:0 0 3px}.eyebrow{display:none}h1{font-size:14px;margin:0}.plan-head{margin:2px 0 4px}.plan-head h2{font-size:12px;margin:0 0 3px}.plan-head p{font-size:8px}.legend{margin:3px 0 5px}
 .roster thead th:first-child{width:80px}.roster th,.roster td{padding:2px}.roster .section th{padding:2px 5px}
 .roster .slot .assignment{font-size:8.5px;line-height:1.1;padding:1px 2px;margin:0;border:0;min-height:0;border-radius:0;background:transparent}
 .roster .slot .assignment small{display:inline;font-size:8px;margin-left:4px;line-height:1.1}.roster .slot .assignment.conflict{outline:1px solid #bb6b0c;outline-offset:-1px}
 .roster .slot .assignment .mm-badge{font-size:7px;padding:0 2px}
}

.slot-entries{display:flex;flex-direction:column;gap:4px;margin-bottom:4px}.name-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;align-items:start}.name-group.single{grid-template-columns:minmax(0,1fr)}.roster .slot .name-group .assignment{width:100%;min-width:0;margin:0;min-height:0;padding:4px;overflow-wrap:anywhere}.name-group .assignment strong{display:inline}.name-group .mm-badge{margin-left:3px}.slot.density-2 .name-group .assignment{font-size:11.5px}
@media print{.slot-entries{gap:1px;margin:0}.name-group{gap:1px 4px}.roster .slot .name-group .assignment{font-size:8px;line-height:1.1;padding:1px;margin:0}.name-group .assignment small{font-size:7px}.name-group .mm-badge{font-size:7px}}

.mobile-view-switch,.mobile-week-hint{display:none}
@media screen and (max-width:800px){
 .mobile-view-switch{display:flex;gap:5px;padding:4px;background:#e4ecf2;border-radius:10px;margin:12px 0 8px;max-width:320px}.mobile-view-switch button{flex:1;border:0;background:transparent;min-height:40px}.mobile-view-switch button[aria-pressed=true]{background:#fff;color:#125d7b;box-shadow:0 1px 4px #173b5420}
 .mobile-week-hint{display:block;font-size:12px;color:#5c7283;line-height:1.5;margin:7px 0 12px}
 body.mobile-week .board-wrap{max-height:72vh;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;position:relative}
 body.mobile-week .board-wrap .roster{display:table;min-width:850px}body.mobile-week .mobile-roster{display:none}
 body.mobile-list-view .board-wrap .roster{display:none}body.mobile-list-view .mobile-roster{display:block}body.mobile-list-view .board-wrap{max-height:none}
 body.mobile-week .roster tbody tr:not(.section)>th{background:inherit}
 body.mobile-week .roster thead th{position:sticky;top:0;z-index:2}body.mobile-week .roster thead th:first-child{z-index:2}
 body.mobile-week .roster thead th:first-child{width:85px}body.mobile-week .roster th,body.mobile-week .roster td{padding:5px}
 body.mobile-week .roster .section th{padding:7px 8px}
}
@media print{.mobile-view-switch,.mobile-week-hint{display:none!important}}

/* One stacking layer for the header keeps its corner above every body cell. */
@media screen{
 body .board-wrap{max-height:74vh;overflow:auto;position:relative;isolation:isolate}
 body .roster thead,body.mobile-week .roster thead{position:sticky;top:0;z-index:4;background:#203f54}
 body .roster thead th,body.mobile-week .roster thead th{position:static;background:#203f54}
 body .roster thead th:first-child,body.mobile-week .roster thead th:first-child{position:sticky;left:0;z-index:2;background:#203f54;box-shadow:2px 0 3px #102b4133}
 body .roster tbody tr:not(.section)>th,body.mobile-week .roster tbody tr:not(.section)>th{position:sticky;left:0;z-index:2;background:var(--area-bg,#f1f3f5);box-shadow:2px 0 3px #102b4120}
 .roster .section-label{position:sticky;left:8px;display:inline-block}
 .area-AN{--area-bg:#dbe6f7}.area-BE{--area-bg:#e3efd9}.area-NP{--area-bg:#fbe3d2}.area-BO{--area-bg:#fff2c8}.area-AT1,.area-AT2,.area-AT3,.area-AT4,.area-AT5{--area-bg:#f5f3fb}.area-ST{--area-bg:#e0f1f0}.area-Küche{--area-bg:#f6e4ee}.area-Hinweis{--area-bg:#f1f3f5}.area-Abwesenheit{--area-bg:#fbe2df}
}
@media screen and (max-width:800px){body.mobile-list-view .board-wrap{max-height:none}body.mobile-week .board-wrap{max-height:72vh}}
@media print{.roster thead,.roster thead th,.roster tbody th,.roster .section-label{position:static!important;box-shadow:none!important}}

/* Today's column remains identifiable in both layouts and printed plans. */
.roster td.today-column{box-shadow:inset 2px 0 #138d94,inset -2px 0 #138d94}
body .roster thead th.today-column,body.mobile-week .roster thead th.today-column{background:#096b73}
.mobile-roster .today-section{border:2px solid #138d94;border-radius:8px;scroll-margin-top:12px}

.area-Aufschließen{--area-bg:#d9eeed}.roster .area-Aufschließen>th{background:#d9eeed}.roster .area-Aufschließen>td{background:#f0f8f7}
.my-changes{margin:14px 0;padding:14px;background:#edf6fc;border:1px solid #b5d2e6;border-radius:12px}.my-changes>summary{font-weight:700;cursor:pointer}.my-changes>p{font-size:14px}.change-card{background:white;padding:14px;border:1px solid #dce7ef;border-radius:10px;margin:10px 0}.change-card h3{font-size:15px;margin:0 0 12px}.change-card section+section{border-top:1px solid #dce7ef;padding-top:10px}.change-card p{padding:8px;border-radius:6px;font-size:14px;overflow-wrap:anywhere}.change-card p span{font-weight:700;margin-right:6px}.change-before{background:#f1f2f4;color:#52616c}.change-after{background:#e4f4ed;color:#24624a}#myChangesItems{max-height:55dvh;overflow:auto}#changesSeen{white-space:normal;max-width:100%}@media print{#myChanges,#myChangesError{display:none!important}}
