

*{box-sizing:border-box}body.access-page{margin:0;background:var(--paper);color:var(--ink);font-family:Manrope,system-ui,sans-serif;line-height:1.55}a{color:var(--accent)}button,input,select,textarea{font:inherit}button,.button{border:1px solid var(--line);border-radius:10px;padding:11px 17px;cursor:pointer;background:white;color:var(--accent);font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;min-height:44px}button:hover,.button:hover{border-color:var(--accent);background:#f1e7eb}button.primary,.button.primary{background:var(--accent);color:white;border-color:var(--accent)}button:disabled{opacity:.55;cursor:default}input,select,textarea{width:100%;padding:12px;border:1px solid #baa8b0;border-radius:8px;background:white;color:var(--ink)}input[type=checkbox]{width:20px;height:20px;accent-color:var(--accent)}label{display:block;font-weight:600;margin:16px 0 5px}.check{display:flex;align-items:flex-start;gap:10px;margin:10px 0;font-weight:450}.check input{flex-shrink:0;margin-top:3px}fieldset{border:1px solid var(--line);border-radius:10px;padding:12px 16px;margin:20px 0}legend{font-weight:700;padding:0 6px}h1,h2,h3{line-height:1.15}h1{font-family:Fraunces,Georgia,serif;font-size:clamp(30px,5vw,46px);margin:10px 0 16px}h2{font-family:Fraunces,Georgia,serif;font-size:25px}p{margin:10px 0 16px}.top{display:flex;justify-content:space-between;gap:15px;align-items:center;max-width:1180px;margin:auto;padding:24px}.brand img{width:150px;max-height:60px}.top nav,.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.wrap{max-width:1140px;margin:20px auto 60px;padding:0 24px}.narrow{max-width:520px}.card{background:white;border:1px solid var(--line);padding:28px;border-radius:18px;margin:20px 0;box-shadow:0 6px 30px #460e2805}.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:12px;font-weight:800;color:var(--accent)}.muted,small{color:var(--muted)}.notice{padding:14px 16px;background:#f2e9ed;border-radius:10px;border-left:4px solid var(--accent);margin:16px 0}.error{color:#962130;background:#fff0f1;border-left-color:#962130}.success{background:#edf5ea;border-left-color:#42653c}.message:empty{display:none}.message{margin:16px 0}.hidden,[hidden]{display:none!important}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:18px}.grid>.card{margin:0}.day-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.day-head h2{font-size:22px;margin:8px 0}.period h3{font-family:inherit;font-size:15px;display:flex;justify-content:space-between;margin-top:24px}.period h3 small{font-weight:400}.slot{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:9px;margin:8px 0;min-height:48px}.slot.free{background:#f3f7ed;border:1px dashed #70875c;color:#37512f;width:100%;text-align:left}.slot.mine{background:#f1e5ec;border-color:#a2768d}.slot .name{overflow-wrap:anywhere}.slot small{font-size:12px}.badge{padding:4px 9px;border-radius:20px;font-size:12px;background:#eee5ea;color:var(--accent);white-space:nowrap}.badge.pending{background:#fff1cf;color:#785921}.badge.active{background:#eaf2e2;color:#3f6437}.person-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.person-head h3{margin:4px 0;font-size:20px}.person-head small{overflow-wrap:anywhere}details>summary{cursor:pointer;font-weight:650;padding:12px 0}.link-row{display:flex;gap:8px;margin:12px 0;align-items:center}.link-row input{font-size:12px}.hint{font-size:13px}.check-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:0 15px}dialog{border:1px solid var(--line);border-radius:18px;padding:28px;max-width:480px;width:calc(100% - 32px);color:var(--ink);max-height:90dvh;overflow:auto}dialog::backdrop{background:#27131ecc}dialog h2{margin-top:0}.code-input{font-size:30px;letter-spacing:.25em;text-align:center}.login-submit{width:100%;margin-top:20px}.footer{text-align:center;padding:20px;font-size:13px;color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}:focus-visible{outline:3px solid #b66d93;outline-offset:3px}.busy{pointer-events:none;opacity:.7}.qr svg{max-width:240px;width:100%;height:auto}.divider{border:0;border-top:1px solid var(--line);margin:25px 0}@media(max-width:600px){.top{padding:16px;align-items:flex-start}.top nav{gap:6px;justify-content:flex-end}.top nav a,.top nav button{font-size:12px;padding:8px 10px}.brand img{width:110px}.wrap{padding:0 16px;margin-top:12px}.card{padding:20px}.grid{grid-template-columns:1fr}.day-head{align-items:flex-start}.actions button,.actions .button{flex-grow:1}h1{font-size:33px}.link-row{flex-wrap:wrap}.link-row input{flex-basis:100%}}

/* One month at a glance. The table handles its own zoom and drag gestures. */
.own-shifts{margin:0 0 18px;padding:16px}.own-shifts h2{font-size:1.1rem;margin:0 0 10px}.own-shift-list{display:flex;gap:8px;overflow:auto;max-height:160px}.own-shift{flex:0 0 auto;max-width:260px;text-align:left;display:flex;flex-direction:column;gap:4px;padding:10px 12px}.own-shift small{white-space:normal}.month-toolbar,.month-nav,.month-tools,.zoom-controls,.month-legend{display:flex;align-items:center;gap:10px}.month-toolbar,.month-tools{justify-content:space-between;flex-wrap:wrap;margin:12px 0}.month-nav h2{margin:0;min-width:150px;text-align:center;font-size:1.2rem}.zoom-controls{gap:4px}.zoom-controls button{padding:6px 10px;min-height:36px}.month-legend{font-size:12px;gap:5px}.month-legend i{width:9px;height:9px;background:#e5f0e8;border:1px solid #649677;border-radius:2px}.month-legend i.legend-mine{background:#f0d9e5;border-color:#793858;margin-left:8px}#month-viewport{width:100%;overflow:auto;overscroll-behavior-x:contain;border-radius:10px;border:1px solid #dcd8d3;background:white}#month-frame{position:relative}table.month-table{width:auto;min-width:0;max-width:none;position:absolute;left:0;top:0;table-layout:fixed;border-collapse:collapse;transform-origin:top left;font-size:13px;margin:0}.month-table caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.month-table th,.month-table td{border:1px solid #ddd8d3;padding:0;vertical-align:middle;line-height:1.3}.month-table thead th{background:#460e28;color:#fff;padding:9px 3px;font-size:12px;text-align:center}.month-table .month-date{width:105px}.month-table th small{display:block;font-size:10px;font-weight:400;margin-top:3px}.month-table tbody th{text-align:left;padding:7px;background:#f6f3ef;font-size:13px;overflow-wrap:anywhere}.month-table .month-cell{border:0;border-radius:0;margin:0;width:100%;min-height:49px;padding:6px 3px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;background:transparent;color:#292420;text-align:center;box-shadow:none;line-height:1.25;font-size:13px;box-sizing:border-box}.month-cell strong{font-size:13px;max-width:100%;overflow-wrap:anywhere}.month-cell small{font-size:11px;white-space:nowrap;color:#5b5450}.month-table .cell-free{background:#f0f7f1}.month-table .cell-free strong{color:#356445}.month-table .cell-mine{background:#f2dfe8}.month-table .cell-mine strong{color:#621b3a}.month-table .cell-taken{background:#fff}.month-table .no-slot{text-align:center;background:#f7f6f4;color:#aaa}.month-table .past-day{opacity:.65}.month-table button.month-cell:hover:not(:disabled){box-shadow:inset 0 0 0 2px #80415e;background:#f6edf1}.month-table button.month-cell:focus-visible{outline:3px solid #80415e;outline-offset:-3px}.month-table button:disabled{cursor:default;opacity:1}.month-table tr:target{outline:2px solid #80415e}@media(max-width:600px){.access-page[data-page="schichtplan"] .wrap{padding:14px 10px}.month-nav h2{font-size:1.05rem;min-width:140px}.month-toolbar{gap:7px}.month-toolbar .actions{gap:5px}.month-toolbar .actions button,.month-toolbar .actions a{padding:7px 10px;font-size:12px}.own-shifts{padding:12px}.month-tools{gap:8px}.month-legend{font-size:11px}}

.own-shifts summary{cursor:pointer;font-weight:700;color:#460e28}.own-shifts[open] summary{margin-bottom:10px}.own-shifts[open] .own-shift-list{margin-top:8px}@media(max-width:600px){.access-page[data-page="schichtplan"] #content>h1{font-size:1.7rem;margin:4px 0}.access-page[data-page="schichtplan"] #content>.eyebrow{display:none}.access-page[data-page="schichtplan"] #content>p.muted{margin:6px 0 12px;font-size:14px}.access-page[data-page="schichtplan"] .top{padding:10px}.access-page[data-page="schichtplan"] .own-shifts{margin-bottom:12px}}
/* Shift periods: labels and status markers complement the colours. */
.month-table .period-early,.own-shift.period-early{--period-bg:#fff5d6;--period-head:#f5d77b;--period-ink:#59420b}
.month-table .period-middle,.own-shift.period-middle{--period-bg:#e7f3fc;--period-head:#a9d1ee;--period-ink:#173f5c}
.month-table .period-late,.own-shift.period-late{--period-bg:#f1eafa;--period-head:#cbb6e4;--period-ink:#493162}
.month-table thead th[class*="period-"]{background:var(--period-head);color:var(--period-ink);border-bottom:3px solid var(--period-ink)}
.month-table td[class*="period-"],.own-shift[class*="period-"]{background:var(--period-bg)}
.month-table td.cell-mine{box-shadow:inset 0 0 0 3px #793858}
.month-table .cell-free strong{color:#285737}
.month-table .cell-free strong:before{content:"";display:inline-block;width:7px;height:7px;background:#39764b;border-radius:50%;margin-right:5px}
.month-table .period-middle,.month-table .period-late{border-left:2px solid #b2a9b2}
.month-table .period-late + .period-late{border-left:1px solid #ddd8d3}
.own-shift[class*="period-"]{border-top:3px solid var(--period-ink)}
.month-legend i.legend-mine{background:transparent;border:2px solid #793858}
/* Preserve period tint beneath controls instead of the shared white button surface. */
body.access-page[data-page="schichtplan"] .month-table td[class*="period-"]{background:var(--period-bg)}
body.access-page[data-page="schichtplan"] .month-table td[class*="period-"]>.month-cell{background:transparent;border:0;border-radius:0;display:flex;flex-direction:column;padding:6px 3px;gap:3px;color:#292420;box-shadow:none}
body.access-page[data-page="schichtplan"] .month-table td[class*="period-"]>button.month-cell:hover:not(:disabled){background:transparent;box-shadow:inset 0 0 0 2px var(--period-ink)}
body.access-page[data-page="schichtplan"] .month-table td[class*="period-"]>button.month-cell:disabled{opacity:1}
body.access-page[data-page="schichtplan"] .month-table .past-day{opacity:1}
body.access-page[data-page="schichtplan"] .month-table .past-day .month-cell{color:#625b51}
body.access-page[data-page="schichtplan"] .month-table .no-slot{color:#766d68}
/* One bounded gesture surface at EVERY scale, including the fitted overview. */
body.access-page[data-page="schichtplan"] #content{min-width:0;max-width:100%}
body.access-page[data-page="schichtplan"] #month-viewport{display:block;min-width:0;max-width:100%;max-height:70vh;max-height:70svh;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scroll-behavior:auto}
body.access-page[data-page="schichtplan"] #month-frame{max-width:none;min-width:0;overflow:hidden;flex:none}
body.access-page[data-page="schichtplan"] #month-viewport,
body.access-page[data-page="schichtplan"] #month-viewport *{touch-action:none!important;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
body.access-page[data-page="schichtplan"] #month-viewport button:disabled,
body.access-page[data-page="schichtplan"] #month-viewport button:disabled *{pointer-events:none}
body.access-page[data-page="schichtplan"] #month-viewport.is-panning,body.access-page[data-page="schichtplan"] #month-viewport.is-panning *{cursor:grabbing}
body.access-page[data-page="schichtplan"] .zoom-controls{flex-wrap:wrap;max-width:100%}
body.access-page[data-page="schichtplan"] .zoom-controls button{min-height:44px;min-width:44px;touch-action:manipulation}
body.access-page[data-page="schichtplan"] .gesture-hint{margin:0 0 8px;color:var(--muted)}
