:root{color-scheme:light;--ink:#183c38;--muted:#64746f;--bg:#f3f5ef;--paper:#fffefa;--teal:#176d60;--line:#dce5df;--a:#dcecf8;--b:#f9e6d5;--shadow:0 4px 18px rgba(29,64,52,.055);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.5;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0;min-height:100vh;display:flex;flex-direction:column}a{color:var(--teal);text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #4d9aaf;outline-offset:3px}.ico{width:20px;height:20px;flex-shrink:0;vertical-align:middle}.skip{position:absolute;left:10px;top:-60px;background:white;padding:12px;z-index:20}.skip:focus{top:10px}.top{background:var(--paper);border-bottom:1px solid var(--line)}.top-inner{max-width:1280px;margin:auto;padding:17px 28px;display:flex;justify-content:space-between;align-items:center;gap:20px}.brand{display:flex;gap:12px;align-items:center;min-width:0;color:var(--ink)}.brand strong{display:block;font-size:1.18rem;letter-spacing:-.035em}.brand small{display:block;color:var(--muted);font-size:.78rem}.top-right{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.mode{font-size:.76rem;color:var(--teal);font-weight:700;background:#e1efe8;padding:6px 12px;border-radius:99px}.nav{background:var(--paper);border-bottom:1px solid var(--line);overflow-x:auto}.nav>div{max-width:1280px;margin:auto;display:flex;padding:0 24px;gap:6px;width:max-content;min-width:min(100%,1280px)}.nav a{display:flex;align-items:center;gap:7px;padding:13px 12px;color:#4c6963;border-bottom:3px solid transparent;white-space:nowrap;font-size:.9rem;font-weight:600}.nav a.active,.nav a:hover{color:var(--teal);border-bottom-color:var(--teal);background:#edf4ee}main{width:100%;margin:0 auto;flex:1;padding:30px 28px 60px}.wide{max-width:1280px}.narrow{max-width:800px}.hero{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin:0 0 25px}.eyebrow{font-size:.8rem;font-weight:750;color:var(--teal);letter-spacing:.035em;margin-bottom:5px}.hero h1{font-size:clamp(1.85rem,4.3vw,2.65rem);line-height:1.13;letter-spacing:-.05em;margin:0 0 10px;font-weight:760}.hero p{color:var(--muted);max-width:68ch;margin:0}h2{font-size:1.22rem;line-height:1.35;letter-spacing:-.02em;margin:0 0 10px}h3{font-size:1.04rem;line-height:1.4;margin:0 0 5px}p{margin:8px 0 14px;max-width:78ch}.muted{color:var(--muted)}.small,small{font-size:.82rem}.panel{background:var(--paper);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:16px;padding:22px;margin:0 0 18px;min-width:0}.panel>p:last-child,.panel>h2:last-child{margin-bottom:0}.section-head,.week-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:16px}.section-head h2,.week-head h2{margin-bottom:3px}.section-head p{margin:4px 0}.stack{display:flex;flex-direction:column;gap:15px}.stack>p{margin:0}.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.auth{max-width:100%}.auth-icon{display:grid;place-items:center;background:#e6f0e9;border-radius:12px;width:45px;height:45px;color:var(--teal);margin-bottom:14px}.auth-icon .ico{width:25px;height:25px}.auth .btn{width:100%}.field{display:flex;flex-direction:column;gap:6px;min-width:0;font-weight:650;font-size:.9rem}.field input,.field select,.field textarea,input[readonly]{background:#fff;border:1px solid #b9c8c0;border-radius:9px;color:var(--ink);padding:11px 12px;min-height:46px;width:100%;font-weight:400}.field textarea{resize:vertical}.field input[type=date],.field input[type=datetime-local]{min-width:0}.btn{display:inline-flex;justify-content:center;align-items:center;gap:7px;padding:11px 15px;min-height:44px;border-radius:9px;border:1px solid transparent;background:var(--teal);color:white;font-weight:680;font-size:.9rem;line-height:1.25;text-align:center;white-space:normal}.btn:hover{filter:brightness(.95)}.btn.secondary{background:var(--paper);color:var(--teal);border-color:#b8cbc1}.btn.quiet{background:transparent;color:var(--teal);border-color:transparent}.btn.danger{background:#fff5f1;color:#963b2d;border-color:#e9c2b7}.btn.small{font-size:.79rem;min-height:35px;padding:7px 10px}.btn.small .ico{width:16px;height:16px}.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.inline{display:inline-flex;margin:0}.notice{display:flex;align-items:flex-start;gap:10px;padding:12px 15px;border:1px solid #c5d8d3;background:#e9f2ee;color:#295d51;border-radius:10px;margin-bottom:18px;font-size:.9rem}.notice.error{color:#8e3025;border-color:#e7b6af;background:#fff0eb}.notice.ok{color:#155b3b;border-color:#b7d9c2;background:#e4f4e6}.notice .ico{margin-top:2px}.week-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.week-tile{display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding:14px 12px;min-height:130px;background:#f2f5f0;border:2px solid transparent;border-radius:12px;color:var(--ink)}.week-tile.emergency{background:#fff5e8}.week-tile.today{border-color:#98b7aa}.week-tile.selected{border-color:var(--teal);background:#e3f1e8}.weekday{font-size:.76rem;font-weight:700;color:var(--muted)}.week-tile>strong{font-size:1.5rem;line-height:1;letter-spacing:-.04em}.week-tile>small{font-size:.75rem;line-height:1.35;color:#506760}.group,.status{display:inline-block;font-size:.77rem;font-weight:700;line-height:1.25;border-radius:6px;padding:4px 8px;white-space:normal}.group-a,.status.blue{background:var(--a);color:#22557e}.group-b,.status.orange{background:var(--b);color:#8b491e}.group.muted,.status.muted{background:#e7eae6;color:#53645d}.status.green{background:#dbefe0;color:#176140}.status.red{background:#f8e1da;color:#9b382b}.status.yellow{background:#faf0ce;color:#785719}.metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0 0 18px}.metrics.four{grid-template-columns:repeat(4,minmax(0,1fr))}.metric{padding:15px 14px;background:var(--paper);border:1px solid var(--line);border-radius:12px;display:flex;flex-direction:column;gap:4px;min-width:0}.metric span{font-size:.79rem;color:var(--muted);font-weight:650}.metric strong{font-size:clamp(1.5rem,3.2vw,2rem);letter-spacing:-.045em;font-variant-numeric:tabular-nums;line-height:1.2}.metric.green strong{color:#176140}.metric.blue strong{color:#22557e}.metric.orange strong{color:#9a5428}.empty{padding:30px 10px;text-align:center}.empty>.ico{width:42px;height:42px;color:var(--teal);margin:0 auto 12px}.empty p{margin:7px auto 16px;color:var(--muted)}.day-list{display:flex;align-items:center;gap:16px;border-top:1px solid var(--line);padding:15px 0;color:var(--ink)}.date-block{background:#e4f1e8;min-width:58px;padding:6px 10px;text-align:center;border-radius:10px;display:flex;flex-direction:column;line-height:1.2}.date-block strong{font-size:1.6rem}.date-block span{font-size:.72rem}.grow{flex:1;min-width:0}.grow small,.swap-row small{display:block;color:var(--muted)}.list-metrics{display:flex;gap:6px;flex-wrap:wrap;font-size:.8rem;font-weight:650}.list-metrics span{background:#e8efe9;padding:5px 8px;border-radius:7px}.table-scroll{overflow-x:auto;max-width:100%;border:1px solid var(--line);border-radius:10px}table{border-collapse:collapse;width:100%;text-align:left;font-size:.87rem}th{background:#ebf2ec;color:#365b50;font-size:.78rem;font-weight:720}td,th{padding:11px 12px;border-bottom:1px solid var(--line);vertical-align:middle}tr:last-child td{border-bottom:0}tr:nth-child(even) td{background-color:#fafbf7}td:first-child,th:first-child{white-space:nowrap}.matrix td{min-width:120px;font-size:.77rem;line-height:1.35}.matrix td:nth-child(2){min-width:55px}.matrix td.matrix-green{background:#e0f1e3}.matrix td.matrix-blue{background:#e1edf7}.matrix td.matrix-orange{background:#faebdc}.matrix td.matrix-red{background:#f8e3dd}.matrix th{min-width:110px}.matrix th:first-child{min-width:100px}.matrix th:nth-child(2){min-width:58px}.group-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:12px}.group-box{border:1px solid var(--line);border-radius:11px;background:#f7faf7;padding:13px;min-width:0}.group-box.a{border-top:4px solid #87b4d7}.group-box.b{border-top:4px solid #e4ac7b}.group-box>div:not(.group-head){padding:6px 0}.group-head{display:flex;gap:5px;align-items:center;justify-content:space-between;flex-wrap:wrap}.group-head h3{margin:0}.group-head small{font-weight:400;color:var(--muted)}.child-check{display:flex;align-items:center;gap:8px;padding:8px 4px;border-top:1px solid var(--line);font-size:.95rem;cursor:pointer}.child-check:first-of-type{margin-top:10px}input[type=checkbox],input[type=radio]{width:19px;height:19px;accent-color:var(--teal);flex-shrink:0}.capacity-quick{display:flex;flex-wrap:wrap;gap:8px}.capacity-quick .btn{min-width:50px}.selection-count{background:#eaf2ea;padding:9px 12px;border-radius:8px;font-size:.9rem;font-weight:650}.selection-count.over{background:#fbe4dc;color:#8e3025}.sticky-actions{justify-content:flex-end;background:var(--bg);padding:12px 0 5px}.response{padding:16px;border:1px solid #b8d5c5;background:#f5faf4;border-radius:12px;margin:18px 0}.choice{display:flex;align-items:center;gap:12px;border:1px solid #c8d6ca;border-radius:11px;background:#fff;padding:13px;cursor:pointer}.choice:has(input:checked){border:2px solid var(--teal);padding:12px;background:#e7f4e9}.choice small{display:block;font-weight:400;color:var(--muted)}.choice strong{font-size:.94rem}.child-pick{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}.child-pick .field{flex:1;min-width:200px}.batch-line{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:center;border-bottom:1px solid var(--line);padding-bottom:12px}.batch-line p{margin:3px 0}.subsection{margin-top:20px;border-top:1px solid var(--line);padding-top:16px}.swap-row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px 0;border-bottom:1px solid var(--line)}summary{font-weight:700;cursor:pointer;color:var(--teal)}details[open]>summary{margin-bottom:14px}.row-edit{min-width:135px}.row-edit[open]{min-width:210px}.row-edit .stack{gap:7px}.row-edit form+form{margin-top:8px}.child-detail{border-top:1px solid var(--line);padding:10px 0}.child-detail .stack{gap:8px}.draw{display:flex;justify-content:space-between;align-items:center;background:#e3f0e6;border:1px solid #b1d1bd;border-radius:11px;margin:14px 0;padding:13px;gap:10px}.draw h3{margin:4px 0 0}.copy-row{display:flex;gap:8px;margin:10px 0 18px;align-items:center}.copy-row input{flex:1;min-width:0}.danger-panel{border-color:#e9c2b7}.text-link{font-weight:680;font-size:.86rem;white-space:nowrap}footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;padding:16px 28px;background:var(--paper);border-top:1px solid var(--line);font-size:.78rem;color:var(--muted)}
@media(max-width:850px){.hero{align-items:flex-start;flex-direction:column}.group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.top-inner{padding:14px 18px}.nav>div{padding:0 12px}.mode{display:none}main{padding:24px 18px 42px}.metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.week-tile{padding:11px 8px;gap:6px}.week-head{flex-direction:column;gap:8px}.section-head{flex-wrap:wrap}.metrics.four{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.brand img{width:36px;height:36px}.brand strong{font-size:.95rem}.brand small{font-size:.64rem}.top-inner{gap:8px;padding:12px}.top-right{gap:2px}.top-right .btn{padding:6px;font-size:.73rem;min-height:35px}.top-right .ico{width:16px;height:16px}.top-right .btn .ico{display:none}main{padding:19px 12px 36px}.panel{padding:14px;border-radius:12px}.hero{margin-bottom:17px;gap:12px}.hero h1{font-size:1.95rem}.week-grid{gap:4px}.week-tile{padding:8px 5px;min-height:105px;gap:6px}.week-tile>strong{font-size:1.05rem}.weekday{font-size:.65rem}.week-tile>small{font-size:.62rem;overflow-wrap:anywhere}.week-tile .group{padding:3px 5px;font-size:.72rem}.metrics{gap:6px;grid-template-columns:repeat(2,minmax(0,1fr))}.metric{padding:10px}.two{grid-template-columns:1fr}.group-grid{gap:8px}.group-box{padding:9px}.btn{font-size:.85rem;padding:10px 11px}.hero .actions,.hero .actions .btn{width:100%}.draw,.swap-row,.copy-row{flex-direction:column;align-items:stretch}.batch-line{grid-template-columns:1fr}.day-list{gap:9px}.list-metrics{display:none}.date-block{min-width:48px}.response{padding:12px}.choice{padding:10px}.choice:has(input:checked){padding:9px}footer{padding:15px 12px}.child-pick .field{min-width:100%}.sticky-actions{justify-content:stretch}.sticky-actions .btn{flex:1}.top-right .inline{display:inline-flex}.table-scroll{border-radius:8px}}
@media print{body{background:white;color:black}.top,.nav,footer,.no-print,.btn,form,.notice{display:none!important}main{padding:0;max-width:none}.panel{box-shadow:none;border:0;padding:0}.table-scroll{overflow:visible;border:0}table{font-size:9pt}th,td{padding:5px;border:1px solid #bbb}tr{break-inside:avoid}@page{size:A4 landscape;margin:12mm}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.auto-refresh{display:inline-flex;align-items:center;gap:8px;font-size:.82rem;color:var(--muted);margin:0 0 12px;cursor:pointer}.auto-refresh input{width:17px;height:17px}
@media(max-width:520px){.parent-table,.parent-table tbody{display:block;width:100%}.parent-table thead{position:absolute;clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;width:1px;overflow:hidden}.parent-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:10px 10px;gap:3px 6px;border-bottom:1px solid var(--line)}.parent-table tr:nth-child(even){background:#f8faf6}.parent-table td{padding:3px 0;border:0;background:transparent!important;white-space:normal!important}.parent-table td:nth-child(1){font-size:.95rem}.parent-table td:nth-child(2){text-align:right}.parent-table td:nth-child(3){display:none}.parent-table td:nth-child(4)::before,.parent-table td:nth-child(5)::before{display:block;font-size:.68rem;font-weight:600;color:var(--muted);margin-bottom:3px}.parent-table td:nth-child(4)::before{content:'Rückmeldung'}.parent-table td:nth-child(5)::before{content:'Platz'}.parent-table td .status{font-size:.72rem}.parent-table tr:last-child{border-bottom:0}}
