*{box-sizing:border-box}
:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#202124;background:#fff}
body{margin:0;background:#fff;color:#202124}button,input,select{font:inherit}
button{min-height:44px;border:1px solid #c9cdd2;background:#fff;border-radius:10px;padding:8px 13px;color:#202124}
button:active{transform:translateY(1px)}button.primary{background:#202124;color:#fff;border-color:#202124}.ghost{border:0}
.topbar{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-bottom:1px solid #e6e8eb;position:sticky;top:0;background:#fff;z-index:4}
.badge{font-size:12px;font-weight:500;background:#f1f3f4;border-radius:999px;padding:3px 7px;margin-left:6px}
.tabs{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid #e6e8eb;position:sticky;top:57px;background:#fff;z-index:3}
.tabs button{border:0;border-radius:0;background:#fff}.tabs button.active{font-weight:700;border-bottom:3px solid #202124}
main{padding:14px;max-width:1050px;margin:0 auto}.view{display:none}.view.active{display:block}
h1{font-size:22px;margin:6px 0 4px}h2{font-size:17px;margin:24px 0 9px}.muted{color:#6c7279}.small{font-size:13px}
.month-head{display:grid;grid-template-columns:48px 1fr 48px;gap:8px;align-items:center;text-align:center;margin-bottom:10px}.month-head button{font-size:28px;padding:0}
.notice{padding:10px 12px;border:1px solid #d7dade;background:#f7f8f9;border-radius:10px;margin:8px 0 12px}
.table-scroll{overflow-x:auto;border:1px solid #bfc4c9;border-radius:8px}
table{border-collapse:collapse;width:100%;min-width:720px;font-size:14px}
th,td{border-right:1px solid #d4d7da;border-bottom:1px solid #d4d7da;padding:4px 6px;text-align:center;height:39px}
th:last-child,td:last-child{border-right:0}thead th{background:#f3f4f5;white-space:nowrap}
tbody tr.weekend td{background:#eceff1;color:#5f6368}tbody tr.holiday td,tbody tr.vacation td{background:#f7f7f7}
tbody tr{cursor:pointer}td.note{text-align:left;min-width:190px}td.time{width:86px}td.hours{width:60px;font-weight:600}
.summary{display:flex;justify-content:flex-end;gap:8px;align-items:baseline;padding:18px 4px 8px;font-size:16px}.summary strong{font-size:22px}
.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}label{display:flex;flex-direction:column;gap:5px;font-size:14px}
label.wide{grid-column:1/-1}input,select{min-height:44px;border:1px solid #bfc4c9;border-radius:8px;padding:8px;background:#fff;color:#202124;min-width:0}
.schedule{display:grid;gap:8px}.schedule-row{display:grid;grid-template-columns:95px 1fr 1fr 90px;gap:8px;align-items:end}.schedule-row .day{font-weight:600;align-self:center}.time-field{gap:3px}.time-field>span{font-size:12px;color:#6c7279}
.checkline{display:flex;flex-direction:row;align-items:flex-start;gap:9px}.checkline input{min-height:auto;margin-top:3px}
.special-add{display:grid;grid-template-columns:150px 180px 1fr auto;gap:8px}
.special-item{display:grid;grid-template-columns:115px 180px 1fr auto;gap:8px;align-items:center;border-bottom:1px solid #eee;padding:7px 0;font-size:14px}
.archive-year{margin-top:20px}.archive-month{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid #eceff1}
dialog{border:0;border-radius:14px;padding:18px;max-width:520px;width:calc(100% - 28px);box-shadow:0 10px 40px #0003}dialog::backdrop{background:#0005}
@media(max-width:650px){
main{padding:10px}.form-grid{grid-template-columns:1fr}label.wide{grid-column:auto}
.month-head{grid-template-columns:44px 1fr 44px}.month-head h1{font-size:21px}
.table-scroll{overflow:visible;border:0;border-radius:0}
table{display:block;min-width:0;width:100%;font-size:14px;border-collapse:separate}
thead{display:none}tbody{display:block}
tbody tr{display:grid;grid-template-columns:42px 64px minmax(62px,1fr) minmax(62px,1fr) 46px;grid-template-areas:"tag date from to hours" "note note note note note";margin-bottom:6px;border:1px solid #d4d7da;border-radius:8px;overflow:hidden;background:#fff}
tbody td{height:auto;min-height:38px;border:0;border-right:1px solid #d4d7da;border-bottom:0;padding:5px 3px;display:flex;align-items:center;justify-content:center;min-width:0}
tbody td:nth-child(1){grid-area:tag}tbody td:nth-child(2){grid-area:date}tbody td:nth-child(3){grid-area:from;flex-direction:column}tbody td:nth-child(4){grid-area:to;flex-direction:column}tbody td:nth-child(5){grid-area:hours;flex-direction:column;border-right:0}tbody td:nth-child(6){grid-area:note;border-right:0;border-top:1px solid #d4d7da;justify-content:flex-start;text-align:left;padding:7px 9px;min-height:34px}
tbody td:nth-child(3)::before{content:"von"}tbody td:nth-child(4)::before{content:"bis"}tbody td:nth-child(5)::before{content:"Std."}
tbody td:nth-child(3)::before,tbody td:nth-child(4)::before,tbody td:nth-child(5)::before{font-size:10px;line-height:1;color:#777;margin-bottom:2px;font-weight:400}
tbody tr.weekend td{background:#eceff1;color:#5f6368}tbody tr.holiday td,tbody tr.vacation td{background:#f7f7f7}
td.note{min-width:0}.summary{padding-top:10px}
.schedule-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px;padding:4px 0 10px;border-bottom:1px solid #eee;align-items:end}.schedule-row .day{grid-column:1/-1}.schedule-row .time-field{min-width:0}.schedule-row .time-field input{width:100%}.schedule-row select{grid-column:1/-1;width:100%}
.special-add{grid-template-columns:1fr 1fr}.special-add input[placeholder]{grid-column:1/-1}.special-add button{grid-column:1/-1}.special-item{grid-template-columns:95px 1fr auto}.special-item .note-text{grid-column:1/3;color:#6c7279}
}
