:root{--bg:#eff3ef;--surface:#fff;--surface-2:#f7f9f7;--ink:#23303a;--ink-muted:#5b6b72;--ink-dim:#93a19a;--line:#d8dfd9;--line-strong:#c3cdc5;--line-soft:#23303a1a;--accent-schule:#4f8fe0;--accent-schule-tint:#e2effc;--accent-hort:#f2984b;--accent-hort-tint:#fdead9;--accent-freizeit:#e87ba0;--accent-freizeit-tint:#fbe5ed;--stage-praeferiert:#8b7fe0;--stage-praeferiert-tint:#eae7fb;--stage-klaerung:#e8a93c;--stage-klaerung-tint:#fbf0d9;--stage-done:#3fa968;--stage-done-tint:#e1f5e8;--warn:#e2564c;--warn-tint:#fce3e1;--danger:#b3261e;--on-accent:#fff;--paper-grid:#23303a0e;--radius-card:14px;--shadow-card:0 1px 2px #23303a12, 0 4px 12px #23303a0f;--font-display:ui-rounded, "SF Pro Rounded", "Segoe UI Rounded", "Century Gothic", Futura, sans-serif;--font-body:"Atkinson Hyperlegible", "Segoe UI", Roboto, system-ui, sans-serif}:root[data-theme=light]{--bg:#eff3ef;--surface:#fff;--surface-2:#f7f9f7;--ink:#23303a;--ink-muted:#5b6b72;--ink-dim:#93a19a;--line:#d8dfd9;--line-strong:#c3cdc5;--line-soft:#23303a1a;--accent-schule:#4f8fe0;--accent-schule-tint:#e2effc;--accent-hort:#f2984b;--accent-hort-tint:#fdead9;--accent-freizeit:#e87ba0;--accent-freizeit-tint:#fbe5ed;--stage-praeferiert:#8b7fe0;--stage-praeferiert-tint:#eae7fb;--stage-klaerung:#e8a93c;--stage-klaerung-tint:#fbf0d9;--stage-done:#3fa968;--stage-done-tint:#e1f5e8;--warn:#e2564c;--warn-tint:#fce3e1;--danger:#b3261e;--on-accent:#fff;--paper-grid:#23303a0e;--shadow-card:0 1px 2px #23303a12, 0 4px 12px #23303a0f}:root[data-theme=dark]{--bg:#1b2420;--surface:#223028;--surface-2:#1f2b24;--ink:#edede3;--ink-muted:#a9b7ae;--ink-dim:#6e7d73;--line:#33443b;--line-strong:#445a4e;--line-soft:#edede31f;--accent-schule:#7fb2ee;--accent-schule-tint:#24344a;--accent-hort:#f5b276;--accent-hort-tint:#4a3620;--accent-freizeit:#efa0c0;--accent-freizeit-tint:#4a2a38;--stage-praeferiert:#b0a6f0;--stage-praeferiert-tint:#322d4e;--stage-klaerung:#f0c96b;--stage-klaerung-tint:#4a3d1e;--stage-done:#5fc98a;--stage-done-tint:#21402e;--warn:#eb8079;--warn-tint:#4a2624;--danger:#e5847c;--on-accent:#1b2420;--paper-grid:#edede30b;--shadow-card:0 1px 2px #00000059, 0 4px 14px #0000004d}*{box-sizing:border-box}html,body,#app{height:100%;margin:0;padding:0}body{background-color:var(--bg);background-image:repeating-linear-gradient(0deg, var(--paper-grid) 0 1px, transparent 1px 28px), repeating-linear-gradient(90deg, var(--paper-grid) 0 1px, transparent 1px 28px);color:var(--ink);font-family:var(--font-body);-webkit-font-smoothing:antialiased;min-height:100vh}button{font:inherit;color:inherit;text-align:inherit;cursor:pointer;background:0 0;border:none;margin:0;padding:0}button:focus-visible,a:focus-visible,input:focus-visible{outline:2.5px solid var(--ink);outline-offset:2px;border-radius:6px}.icon{flex:none;width:16px;height:16px}.icon-sm{width:13px;height:13px}.app-header{z-index:10;background:var(--surface);border-bottom:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px;padding:18px clamp(16px,4vw,32px) 14px;display:flex;position:sticky;top:0}.app-title-wrap{flex-flow:wrap;align-items:center;gap:12px;display:flex}.app-title{font-family:var(--font-display);letter-spacing:-.01em;text-wrap:balance;font-size:1.375rem;font-weight:800}.app-title-name{cursor:text;border-bottom:1.5px dashed #0000;border-radius:5px;outline:none;margin:0 -3px;padding:0 3px}.app-title-name:hover{border-bottom-color:var(--line-strong)}.app-title-name:focus{border-bottom-color:var(--accent-schule);background:var(--accent-schule-tint)}.app-subtitle{color:var(--ink-muted);font-variant-numeric:tabular-nums;font-size:.8125rem}.tabs{background:var(--surface-2);border:1px solid var(--line);border-radius:999px;flex-wrap:wrap;gap:2px;padding:4px;display:inline-flex}.tab-btn{min-height:44px;font-family:var(--font-display);color:var(--ink-muted);border-radius:999px;align-items:center;gap:8px;padding:0 16px;font-size:.875rem;font-weight:700;transition:background .15s,color .15s;display:inline-flex}.tab-btn[aria-selected=true]{background:var(--surface);color:var(--ink);box-shadow:var(--shadow-card)}.tab-badge{background:var(--warn);min-width:20px;height:20px;color:var(--on-accent);font-variant-numeric:tabular-nums;border-radius:999px;justify-content:center;align-items:center;padding:0 6px;font-size:.75rem;font-weight:700;display:inline-flex}.week-nav{justify-content:flex-start;align-items:center;gap:4px;display:flex}.week-nav-btn{width:26px;min-width:36px;height:26px;min-height:36px;color:var(--ink-muted);border-radius:8px;justify-content:center;align-items:center;margin:-5px 0;display:inline-flex}.week-nav-btn:hover{background:var(--surface-2)}.week-nav-today{min-height:32px;color:var(--accent-schule);border:1.5px solid var(--accent-schule-tint);background:var(--accent-schule-tint);border-radius:999px;align-items:center;gap:5px;margin-left:4px;padding:3px 12px;font-size:.75rem;font-weight:700;display:inline-flex}.week-nav-today:hover{background:var(--surface-2);border-color:var(--accent-schule)}.legend{color:var(--ink-muted);border-bottom:1px solid var(--line);flex-wrap:wrap;align-items:center;gap:14px;padding:10px clamp(16px,4vw,32px);font-size:.8125rem;display:flex}.legend-item{align-items:center;gap:6px;display:inline-flex}.legend-item.is-warn{color:var(--warn);font-weight:700}.legend-item.is-klaerung{color:var(--stage-klaerung);font-weight:700}.legend-item.is-done{color:var(--stage-done);font-weight:700}.legend-item.is-praeferiert{color:var(--stage-praeferiert);font-weight:700}.btn-primary{background:var(--ink);min-height:44px;color:var(--bg);font-size:.9375rem;font-weight:700;font-family:var(--font-display);border-radius:12px;justify-content:center;align-items:center;padding:0 18px;display:flex}.btn-danger{border:1.5px solid var(--danger);min-height:44px;color:var(--danger);font-size:.9375rem;font-weight:700;font-family:var(--font-display);background:0 0;border-radius:12px;justify-content:center;align-items:center;padding:0 18px;display:flex}.btn-text-link{min-height:44px;color:var(--ink-muted);justify-content:center;align-items:center;font-size:.9375rem;font-weight:600;display:flex}.btn-text-link:hover{color:var(--ink)}.week-strip{scroll-snap-type:x proximity;overscroll-behavior-x:contain;gap:16px;padding:20px clamp(24px,6vw,32px) 40px;scroll-padding-inline:clamp(24px,6vw,32px);display:flex;overflow-x:auto}.day-col{scroll-snap-align:start;flex-direction:column;flex:0 0 clamp(230px,25vw,280px);gap:12px;display:flex}.day-col.is-weekend .day-name{color:var(--accent-freizeit)}.day-head{border-bottom:2px solid var(--line-strong);align-items:baseline;gap:8px;padding:2px 2px 8px;display:flex}.day-name{font-family:var(--font-display);font-size:1.0625rem;font-weight:800}.day-date{color:var(--ink-muted);font-variant-numeric:tabular-nums;font-size:.8125rem}.section{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-card);box-shadow:var(--shadow-card);flex-direction:column;gap:8px;padding:12px;display:flex;overflow:visible}.section.is-passive{background:var(--surface-2);box-shadow:none}.section-eyebrow{font-family:var(--font-display);letter-spacing:.09em;text-transform:uppercase;align-items:center;gap:6px;font-size:.6875rem;font-weight:700;display:flex}.eyebrow-schule{color:var(--accent-schule)}.eyebrow-hort{color:var(--accent-hort)}.eyebrow-freizeit{color:var(--accent-freizeit)}.fach-list{flex-direction:column;gap:8px;display:flex}.fach-row{border:1px solid var(--line-soft);border-radius:10px;align-items:center;gap:9px;width:100%;min-height:40px;padding:3px 8px;transition:background .15s;display:flex}.fach-row:hover{background:var(--surface)}.fach-num{background:var(--accent-schule-tint);width:26px;height:26px;color:var(--accent-schule);font-variant-numeric:tabular-nums;border-radius:8px;flex:none;justify-content:center;align-items:center;font-size:.75rem;font-weight:800;display:inline-flex}.fach-name{font-size:.9375rem;font-weight:600}.fach-flag{color:var(--ink-dim);margin-left:auto;font-size:.6875rem;font-style:italic}.fach-row.is-ausfall{border-style:solid;border-color:var(--warn);background:var(--warn-tint)}.fach-row.is-ausfall:hover{background:var(--warn-tint)}.fach-row.is-ausfall .fach-name{color:var(--ink);font-weight:500;text-decoration:line-through}.fach-row.is-ausfall .fach-num{background:var(--warn);color:var(--on-accent)}.fach-row.is-ausfall .fach-flag{color:var(--warn);font-style:normal;font-weight:700}.hort-note{color:var(--ink-muted);align-items:center;gap:8px;padding:8px 4px;font-size:.8125rem;display:flex}.hort-note .icon{color:var(--accent-hort)}.hort-ende{border:1.5px dashed var(--line-strong);border-radius:12px;align-items:center;gap:6px;min-height:44px;padding:6px 6px 6px 10px;display:flex}.hort-ende.status-klaerung{border-style:solid;border-color:var(--stage-klaerung);background:var(--stage-klaerung-tint)}.hort-ende.status-abgestimmt{border-style:solid;border-color:var(--stage-done);background:var(--stage-done-tint)}.hort-ende-main{border-radius:8px;flex:1;align-items:center;gap:6px;min-width:0;min-height:32px;display:flex}.hort-ende-main:hover{background:#0000000d}.hort-ende .icon-clock{color:var(--ink);flex:none}.hort-ende-label{color:var(--ink-muted);flex:none;font-size:.75rem}.hort-ende-zeit{font-variant-numeric:tabular-nums;color:var(--ink);font-size:.9375rem;font-weight:800}.hort-ende-spacer{margin-left:auto}.hort-ende-cycle{width:32px;min-width:40px;height:32px;min-height:40px;color:var(--ink-dim);border-radius:10px;flex:none;justify-content:center;align-items:center;margin:-5px 0;display:inline-flex}.hort-ende-cycle:hover{background:#0000000d}.hort-ende.status-klaerung .hort-ende-cycle{color:var(--stage-klaerung)}.hort-ende.status-abgestimmt .hort-ende-cycle{color:var(--stage-done)}.card-list{flex-direction:column;gap:8px;display:flex}.stepper-card{border:1.5px dashed var(--line-strong);border-radius:12px;align-items:center;gap:2px;width:100%;min-height:46px;padding-right:6px;transition:background .15s,border-color .15s;display:flex;position:relative}.stepper-card-main{border-radius:11px 0 0 11px;flex:1;align-items:center;gap:10px;min-width:0;padding:8px 6px 8px 11px;display:flex}.stepper-card .icon{flex:none}.stepper-card-text{flex-direction:column;align-items:flex-start;gap:1px;min-width:0;display:flex}.stepper-card-name{align-items:center;gap:4px;font-size:.9375rem;font-weight:600;line-height:1.25;display:inline-flex}.stepper-card-meta{color:var(--ink-muted);font-variant-numeric:tabular-nums;align-items:center;gap:4px;font-size:.75rem;display:inline-flex}.stepper-card .icon-status{color:var(--ink-dim)}.stepper-card.status-praeferiert{border-style:solid;border-color:var(--stage-praeferiert);background:var(--stage-praeferiert-tint)}.stepper-card.status-praeferiert .icon-status{color:var(--stage-praeferiert)}.stepper-card.status-klaerung{border-style:solid;border-color:var(--stage-klaerung);background:var(--stage-klaerung-tint)}.stepper-card.status-klaerung .icon-status{color:var(--stage-klaerung)}.stepper-card.status-abgestimmt{border-style:solid;border-color:var(--stage-done);background:var(--stage-done-tint)}.stepper-card.status-abgestimmt .icon-status,.stepper-card.status-abgestimmt .stepper-card-status-btn{color:var(--stage-done)}.stepper-card.status-abgelehnt{border-style:solid;border-color:var(--warn);background:var(--warn-tint)}.stepper-card.status-abgelehnt .stepper-card-name>span:first-child{color:var(--ink-muted);font-weight:500;text-decoration:line-through}.stepper-card.status-abgelehnt .icon-status,.stepper-card.status-abgelehnt .stepper-card-status-btn{color:var(--warn)}.stepper-card.has-collision{border-color:var(--warn)!important;background:var(--warn)!important;color:var(--on-accent)!important;border-style:solid!important}.stepper-card.has-collision .stepper-card-meta{color:var(--on-accent);opacity:.9}.stepper-card.has-collision .icon-status{color:var(--on-accent)}.stepper-card.has-collision .stepper-card-status-btn,.stepper-card.has-collision .repeat-flag{color:var(--on-accent);opacity:.8}.card-with-msg{flex-direction:column;gap:4px;display:flex}.card-warn-msg{color:var(--warn);align-items:flex-start;gap:6px;padding:0 4px;font-size:.75rem;font-weight:600;display:flex}.card-warn-msg .icon{margin-top:1px}.card-note-msg{color:var(--ink);align-items:flex-start;gap:6px;padding:0 4px;font-size:.75rem;font-weight:600;display:flex}.card-note-msg .icon{color:var(--ink-muted);margin-top:1px}.repeat-flag{color:var(--ink-muted)}.stepper-card-status-btn{width:32px;min-width:40px;height:32px;min-height:40px;color:var(--ink-dim);border-radius:10px;flex:none;justify-content:center;align-items:center;display:inline-flex}.stepper-card-status-btn:hover{background:#0000000d}.stepper-card.status-praeferiert .stepper-card-status-btn{color:var(--stage-praeferiert)}.stepper-card.status-klaerung .stepper-card-status-btn{color:var(--stage-klaerung)}.stepper-card.has-collision .stepper-card-status-btn:hover{background:#0000001f}.add-card-btn{border:1.5px dashed var(--line-strong);width:100%;min-height:42px;color:var(--ink-dim);border-radius:12px;justify-content:center;align-items:center;gap:6px;font-size:.8125rem;font-weight:600;display:flex}.add-card-btn:hover{background:var(--surface-2);color:var(--ink-muted)}.decisions-view{flex-direction:column;gap:26px;max-width:640px;margin:0 auto;padding:26px clamp(16px,4vw,32px) 56px;display:flex}.decision-group{flex-direction:column;gap:10px;display:flex}.decision-day{font-family:var(--font-display);font-size:1.0625rem;font-weight:800}.decision-tag{text-transform:uppercase;letter-spacing:.07em;align-items:center;gap:5px;margin-bottom:-2px;font-size:.6875rem;font-weight:700;display:inline-flex}.decision-tag.tag-hort{color:var(--accent-hort)}.decision-tag.tag-freizeit{color:var(--accent-freizeit)}.decision-item-wrap{flex-direction:column;gap:4px;display:flex}.empty-state{text-align:center;color:var(--ink-muted);flex-direction:column;align-items:center;gap:10px;padding:60px 20px;display:flex}.empty-state .icon{width:32px;height:32px;color:var(--stage-done)}.empty-state-title{font-family:var(--font-display);color:var(--ink);font-size:1.125rem;font-weight:800}.stundenplan-view{flex-direction:column;gap:18px;max-width:820px;margin:0 auto;padding:22px clamp(16px,4vw,32px) 56px;display:flex}.stundenplan-hint{color:var(--ink-muted);max-width:56ch;font-size:.875rem}.stundenplan-grid{grid-template-columns:40px repeat(5,1fr);gap:8px;display:grid}.sp-head{font-family:var(--font-display);text-align:center;color:var(--ink-muted);padding-bottom:2px;font-size:.8125rem;font-weight:800}.sp-nr{color:var(--ink-dim);font-variant-numeric:tabular-nums;justify-content:center;align-items:center;font-size:.8125rem;font-weight:800;display:flex}.sp-cell{border:1.5px dashed var(--line-strong);text-align:center;border-radius:12px;justify-content:center;align-items:center;width:100%;min-height:54px;padding:6px;font-size:.8125rem;font-weight:600;display:flex}.sp-cell.is-filled{border-style:solid;border-color:var(--accent-schule);background:var(--accent-schule-tint);color:var(--accent-schule)}.sp-cell.is-empty{color:var(--ink-dim)}.sp-cell:hover{filter:brightness(.97)}.sp-cell-content{align-items:center;gap:5px;display:inline-flex}.sheet-backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:50;background:#0f141273;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0;overflow-y:auto}.sheet{background:var(--surface);width:100%;max-width:440px;padding:10px clamp(18px, 4vw, 28px) max(22px, env(safe-area-inset-bottom));border-radius:20px 20px 0 0;flex-direction:column;gap:14px;margin-top:auto;display:flex;box-shadow:0 -10px 34px #00000047}.sheet-handle{background:var(--line-strong);border-radius:999px;width:36px;height:4px;margin:2px auto 0}.sheet-head{justify-content:space-between;align-items:center;gap:12px;display:flex}.sheet-title{font-family:var(--font-display);font-size:1.0625rem;font-weight:800}.sheet-close{width:32px;min-width:44px;height:32px;min-height:44px;color:var(--ink-muted);border-radius:10px;justify-content:center;align-items:center;margin:-6px;display:inline-flex}.sheet-close:hover{background:var(--surface-2)}.sheet-kategorie{font-family:var(--font-display);letter-spacing:.06em;text-transform:uppercase;border-radius:999px;align-self:flex-start;align-items:center;gap:6px;padding:4px 10px;font-size:.75rem;font-weight:700;display:inline-flex}.sheet-kategorie.kat-hort{color:var(--accent-hort);background:var(--accent-hort-tint)}.sheet-kategorie.kat-freizeit{color:var(--accent-freizeit);background:var(--accent-freizeit-tint)}.field{flex-direction:column;gap:6px;display:flex}.field label{color:var(--ink-muted);font-size:.8125rem;font-weight:700}.field input[type=text],.field input[type=time]{border:1.5px solid var(--line);background:var(--surface-2);min-height:44px;color:var(--ink);font-size:.9375rem;font-family:var(--font-body);border-radius:12px;width:100%;padding:0 12px}.field input.has-error{border-color:var(--warn)}.field-error{color:var(--warn);align-items:flex-start;gap:4px;font-size:.75rem;font-weight:600;display:flex}.field input:focus{border-color:var(--ink);outline:none}.checkbox-row{align-items:center;gap:10px;min-height:44px;display:flex}.checkbox-row input[type=checkbox]{width:20px;height:20px;accent-color:var(--stage-praeferiert)}.chip-list{flex-wrap:wrap;gap:8px;display:flex}.chip-row{align-items:center;gap:0;display:inline-flex}.chip{border:1.5px solid var(--line-strong);border-right:none;border-radius:999px 0 0 999px;align-items:center;gap:5px;min-height:40px;padding:0 14px;font-size:.875rem;font-weight:600;display:inline-flex}.chip:hover{background:var(--surface-2)}.chip-row.is-selected .chip{border-color:var(--accent-schule);background:var(--accent-schule-tint);color:var(--accent-schule)}.chip-edit{border:1.5px solid var(--line-strong);min-width:36px;min-height:40px;color:var(--ink-dim);border-radius:0 999px 999px 0;justify-content:center;align-items:center;padding:0 10px;display:inline-flex}.chip-edit:hover{background:var(--surface-2);color:var(--ink-muted)}.chip-row.is-selected .chip-edit{border-color:var(--accent-schule);color:var(--accent-schule)}.picker-clear{align-self:flex-start}.fach-new-row,.field-row{align-items:flex-end;gap:10px;display:flex}.fach-new-row .fach-new-name,.field-row .field{flex:1}.fach-new-row .fach-new-emoji{width:72px}.emoji-palette{flex-wrap:wrap;gap:6px;display:flex}.emoji-btn{border:1.5px solid var(--line-strong);border-radius:10px;justify-content:center;align-items:center;width:38px;min-width:38px;height:38px;font-size:1.125rem;display:inline-flex}.emoji-btn:hover{background:var(--surface-2)}.emoji-btn.is-selected{border-color:var(--accent-schule);background:var(--accent-schule-tint)}.fach-new-row .fach-new-emoji input{text-align:center;padding:0;font-size:1.25rem}.sheet-footer{flex-direction:column;gap:4px;margin-top:2px;display:flex}.login-screen{background:var(--bg);justify-content:center;align-items:center;min-height:100dvh;padding:24px;display:flex}.login-card{background:var(--surface);border-radius:var(--radius-card);width:100%;max-width:340px;box-shadow:var(--shadow-card);text-align:center;flex-direction:column;align-items:center;gap:6px;padding:32px 24px;display:flex}.login-icon{width:32px;height:32px;color:var(--accent-schule);margin-bottom:6px}.login-title{font-family:var(--font-display);color:var(--ink);font-size:1.375rem;font-weight:800}.login-sub{color:var(--ink-muted);margin-bottom:14px;font-size:.875rem}.login-input{border:1.5px solid var(--line);background:var(--surface-2);width:100%;min-height:44px;color:var(--ink);font-size:.9375rem;font-family:var(--font-body);text-align:center;border-radius:12px;margin-bottom:12px;padding:0 12px}.login-input:focus{border-color:var(--ink);outline:none}.login-card .btn-primary{width:100%}.login-error{margin-top:12px}.connection-banner{background:var(--warn-tint);min-height:36px;color:var(--warn);text-align:center;justify-content:center;align-items:center;gap:8px;padding:6px 12px;font-size:.8125rem;font-weight:700;display:flex}.connection-banner.is-connecting{background:var(--stage-klaerung-tint);color:var(--stage-klaerung)}.week-loading{text-align:center;color:var(--ink-muted);padding:32px 16px;font-size:.9375rem}@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
