:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --card: #ffffff;
  --ink: #191b21;
  --muted: #858a95;
  --blue: #3478f6;
  --blue-light: #eaf1ff;
  --green: #2ea66d;
  --orange: #e99b34;
  --line: #eceef3;
  --radius: 19px;
  --shadow: 0 4px 22px rgba(24,32,54,.035);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(52,120,246,.4); outline-offset: 2px; }
button:disabled { opacity: .5; cursor: not-allowed; }
.app { max-width: 520px; min-height: 100svh; margin: 0 auto; padding: max(28px, env(safe-area-inset-top)) 23px calc(105px + env(safe-area-inset-bottom)); position: relative; }
.loading-screen { min-height: 75vh; display:flex; flex-direction:column; gap:16px; align-items:center; justify-content:center; color:var(--muted); font-size:14px; }
.loading-logo { width:90px; height:90px; border-radius:25px; display:grid; place-items:center; background:var(--blue); color:white; font-size:28px; font-weight:800; letter-spacing:-.6px; box-shadow:0 12px 27px rgba(52,120,246,.2); }
.topbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.topbar-simple { justify-content:flex-end; }
.top-spacer { flex:1; }
.brand { display:flex; align-items:center; gap:11px; }
.brand-mark { width:43px; height:43px; border-radius:14px; background:var(--blue); display:grid; place-items:center; color:white; font-weight:800; letter-spacing:-.5px; font-size:16px; }
.brand-copy { line-height:1.3; }
.brand-copy strong { display:block; font-size:17px; letter-spacing:-.35px; }
.brand-copy small { font-size:11px; color:var(--muted); font-weight:600; letter-spacing:.3px; }
.icon-btn { width:40px; height:40px; flex-shrink:0; border-radius:14px; background:var(--card); border:1px solid var(--line); display:grid; place-items:center; color:#454b58; }
.icon-btn svg { width:20px; height:20px; }
.eyebrow { text-transform:uppercase; font-size:11px; font-weight:750; letter-spacing:1.05px; color:var(--blue); margin:0 0 8px; }
h1 { font-size:32px; line-height:1.13; letter-spacing:-1.3px; margin:0; font-weight:760; }
.subheading { margin:9px 0 0; color:var(--muted); font-size:14px; line-height:1.45; }
.page-head { margin-bottom:20px; }
.section { margin-top:24px; }
.section-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
h2 { margin:0; font-size:19px; letter-spacing:-.5px; font-weight:730; }
.link-btn { appearance:none; border:0; background:none; padding:7px 0; color:var(--blue); font-weight:650; font-size:13px; }
.card { border:1px solid #f0f1f4; border-radius:var(--radius); background:var(--card); box-shadow:var(--shadow); }
.hero { background:linear-gradient(130deg,#3478f6 0%,#4b92ff 100%); border-radius:23px; color:white; padding:20px 20px 18px; position:relative; overflow:hidden; box-shadow:0 11px 26px rgba(52,120,246,.16); }
.hero-compact { border-radius:20px; }
.hero::after { content:""; position:absolute; width:168px; height:168px; border:32px solid rgba(255,255,255,.08); border-radius:50%; right:-66px; top:-62px; pointer-events:none; }
.hero > * { position:relative; z-index:1; }
.hero-kicker { font-size:12px; opacity:.78; font-weight:600; }
.hero-num { font-size:34px; letter-spacing:-1.3px; font-weight:800; line-height:1; margin-top:10px; }
.hero-detail { margin:7px 0 15px; font-size:13px; opacity:.9; }
.hero-cta { border:0; display:inline-flex; align-items:center; gap:9px; color:var(--blue); background:white; padding:11px 15px; border-radius:12px; font-weight:740; font-size:13px; }
.hero-cta svg, .button svg, .small-btn svg, .tag svg { width:16px; height:16px; }
.two-stats { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:11px; }
.stat { padding:15px 14px; min-width:0; }
.stat-icon { width:33px; height:33px; display:grid; place-items:center; border-radius:11px; background:#eef4ff; color:var(--blue); margin-bottom:12px; }
.stat-icon svg { width:18px; height:18px; }
.stat-icon.green { color:var(--green); background:#e8f7ee; }
.stat-number { font-weight:775; font-size:25px; letter-spacing:-.6px; }
.stat-label { font-size:12px; color:var(--muted); margin-top:4px; line-height:1.3; }
.task-list { display:flex; flex-direction:column; gap:10px; }
.task-item { padding:17px 16px; display:flex; gap:12px; align-items:flex-start; }
.check-btn { flex:none; width:24px; height:24px; border-radius:100%; border:2px solid #cfd3db; background:white; display:grid; place-items:center; color:white; margin-top:3px; padding:0; }
.check-btn.checked { background:var(--green); border-color:var(--green); }
.check-btn svg { width:15px; height:15px; stroke-width:3; }
.task-body { flex:1; min-width:0; }
.task-title { font-weight:680; font-size:15px; line-height:1.4; overflow-wrap:anywhere; }
.task-title.done { color:#7d8590; text-decoration:line-through; }
.task-meta { display:flex; align-items:center; flex-wrap:wrap; gap:6px 9px; color:var(--muted); font-size:12px; line-height:1.3; margin-top:7px; }
.task-meta svg { width:13px; height:13px; }
.task-meta .overdue { color:#d95b52; font-weight:650; }
.task-meta .today-label { color:var(--blue); font-weight:650; }
.task-note { margin-top:8px; color:#838995; font-size:12px; line-height:1.45; white-space:pre-line; overflow-wrap:anywhere; }
.task-actions { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-top:12px; }
.mini-action { display:inline-flex; align-items:center; gap:5px; color:var(--blue); font-weight:700; font-size:12px; border:0; background:var(--blue-light); padding:8px 10px; border-radius:9px; }
.mini-action.neutral { color:#626a78; background:#f2f3f6; }
.mini-action svg { width:14px; height:14px; }
.dots { width:27px; height:27px; display:grid; place-items:center; background:none; border:none; color:#a1a5af; margin-left:auto; flex-shrink:0; padding:0; }
.dots svg { width:18px; height:18px; }
.subject-pill { display:inline-flex; gap:5px; align-items:center; border-radius:7px; background:#f1f3f7; padding:4px 7px; font-size:11px; color:#5b6470; font-weight:700; }
.empty { padding:33px 21px; text-align:center; }
.empty-emoji { width:52px; height:52px; margin:0 auto 14px; display:grid; place-items:center; background:var(--blue-light); color:var(--blue); border-radius:16px; }
.empty-emoji svg { width:24px; height:24px; }
.empty h3 { font-size:16px; margin:0 0 7px; }
.empty p { color:var(--muted); margin:0 auto 15px; line-height:1.5; max-width:300px; font-size:13px; }
.small-btn { display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:740; background:var(--blue-light); border:0; color:var(--blue); border-radius:10px; padding:10px 13px; }
.day-tabs { display:flex; gap:8px; overflow-x:auto; padding:2px 0 6px; scrollbar-width:none; }
.day-tabs::-webkit-scrollbar { display:none; }
.day-tab { flex:1; min-width:48px; height:54px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; border:1px solid var(--line); border-radius:13px; background:white; color:#676e7a; font-weight:700; }
.day-tab .short { font-size:12px; }
.day-tab .smallnum { font-size:11px; font-weight:600; color:#a2a6af; }
.day-tab.active { background:var(--blue); border-color:var(--blue); color:white; }
.day-tab.active .smallnum { color:#e9f0ff; }
.timeline { position:relative; padding-left:19px; display:flex; flex-direction:column; gap:9px; }
.timeline::before { content:""; width:2px; background:#e2e7f0; position:absolute; top:25px; bottom:25px; left:6px; }
.lesson { position:relative; padding:14px 15px; display:flex; justify-content:space-between; gap:12px; }
.lesson.current { border-color:#cfe0ff; box-shadow:0 8px 24px rgba(52,120,246,.08); }
.lesson-main { flex:1; min-width:0; }
.lesson-time-row { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.lesson-now-pill { display:inline-flex; align-items:center; padding:5px 8px; border-radius:999px; background:#eaf1ff; color:var(--blue); font-size:11px; font-weight:750; }
.lesson::before { content:""; width:9px; height:9px; background:var(--blue); position:absolute; left:-18px; top:23px; border:2px solid var(--bg); border-radius:50%; box-sizing:content-box; }
.lesson-title { font-size:14px; font-weight:725; line-height:1.35; }
.lesson-time { color:var(--blue); font-size:11px; font-weight:730; margin-bottom:5px; }
.lesson-sub { color:var(--muted); font-size:12px; margin-top:5px; }
.lesson-progress { height:4px; background:#e6edf9; border-radius:999px; overflow:hidden; margin-top:11px; }
.lesson-progress-line { height:100%; background:var(--blue); border-radius:999px; }
.lesson-actions { display:flex; align-items:center; gap:3px; }
.lesson-actions .icon-btn { width:29px; height:29px; border-radius:10px; border:0; background:#f4f7ff; color:var(--blue); }
.lesson-actions .icon-btn svg { width:15px; height:15px; }
.note-list { display:flex; flex-direction:column; gap:10px; }
.note-item { padding:17px; }
.note-upper { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.note-tag { display:inline-flex; background:#f3f4f7; border-radius:8px; font-size:11px; font-weight:730; padding:6px 9px; color:#717784; }
.note-tag.ferien { background:#eaf3ff; color:#3679cc; }
.note-tag.termin { background:#f2edff; color:#8170c7; }
.note-tag.krankmeldung { background:#fff2e6; color:#cc884d; }
.note-title { font-weight:720; font-size:15px; margin-top:12px; line-height:1.3; overflow-wrap:anywhere; }
.note-details { font-size:13px; line-height:1.5; color:#686f7a; margin-top:6px; white-space:pre-line; overflow-wrap:anywhere; }
.note-date { display:flex; align-items:center; gap:5px; font-size:12px; color:var(--muted); margin-top:10px; }
.note-date svg { width:14px; height:14px; }
.tabs { display:flex; background:#ecedf1; padding:4px; border-radius:13px; gap:2px; margin-bottom:16px; }
.tab { flex:1; background:transparent; border:0; border-radius:10px; padding:10px 4px; font-size:12px; font-weight:720; color:#838995; }
.tab.active { background:white; color:var(--ink); box-shadow:0 1px 6px rgba(32,39,55,.07); }
.narrow-title { font-size:12px; font-weight:800; color:#8c919b; text-transform:uppercase; letter-spacing:.6px; margin:20px 2px 10px; }
.inline-action { display:flex; align-items:center; gap:10px; }
.button { border:0; background:var(--blue); color:#fff; display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:12px 16px; font-weight:740; font-size:13px; border-radius:12px; }
.button.light { background:var(--blue-light); color:var(--blue); }
.button.white { background:white; color:#657080; border:1px solid var(--line); }
.button.danger { background:#fff1ef; color:#d65c52; }
.button.full { width:100%; }
.help-card { display:flex; align-items:flex-start; gap:12px; padding:15px 16px; border:1px solid #dfe9fb; background:#eff5ff; color:#4770ad; border-radius:15px; margin:18px 0; font-size:12px; line-height:1.55; }
.help-card svg { width:18px; height:18px; flex-shrink:0; margin-top:1px; }
.help-card b { color:#3567ae; }
.settings-group { padding:4px 17px; }
.setting-row { width:100%; padding:16px 0; display:flex; align-items:center; justify-content:space-between; gap:13px; text-align:left; background:none; border:0; color:var(--ink); }
.setting-row + .setting-row { border-top:1px solid var(--line); }
.setting-row-title { font-size:14px; font-weight:690; }
.setting-row-info { font-size:12px; color:var(--muted); margin-top:4px; line-height:1.35; }
.setting-row svg { width:18px; height:18px; color:#a2a7b0; }
.nav { position:fixed; z-index:10; left:50%; transform:translateX(-50%); bottom:0; width:100%; max-width:520px; background:rgba(255,255,255,.94); border-top:1px solid #edf0f3; display:flex; justify-content:space-around; padding:11px 8px calc(10px + env(safe-area-inset-bottom)); -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px); }
.nav-item { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; border:0; background:none; color:#9b9fa7; font-size:10px; font-weight:720; min-width:64px; padding:5px; }
.nav-item svg { width:22px; height:22px; stroke-width:1.9; }
.nav-item.active { color:var(--blue); }
.fab { position:fixed; z-index:9; bottom:calc(90px + env(safe-area-inset-bottom)); right:max(20px, calc((100vw - 520px)/2 + 22px)); border:0; width:54px; height:54px; display:grid; place-items:center; color:white; background:var(--blue); box-shadow:0 6px 20px rgba(52,120,246,.31); border-radius:18px; }
.fab svg { width:25px; height:25px; }
.modal-backdrop { position:fixed; z-index:40; inset:0; background:rgba(18,25,42,.42); display:flex; justify-content:center; align-items:flex-end; }
.sheet { width:100%; max-width:520px; border-radius:26px 26px 0 0; background:var(--bg); box-shadow:0 -12px 70px rgba(0,0,0,.18); padding:12px 23px max(26px, env(safe-area-inset-bottom)); max-height:94dvh; display:flex; flex-direction:column; animation:sheet-in .2s ease-out; }
@keyframes sheet-in { from {transform:translateY(30px); opacity:.4} to { transform:translateY(0); opacity:1;} }
.sheet-handle { width:36px; height:5px; background:#d4d7dc; border-radius:50px; align-self:center; margin:0 0 20px; flex-shrink:0; }
.sheet-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:19px; gap:10px; }
.sheet-header h2 { font-size:21px; }
.sheet-header .icon-btn { border:0; background:#e9ebef; border-radius:50%; width:33px; height:33px; }
.sheet-body { overflow-y:auto; flex:1; min-height:0; padding-bottom:3px; }
.form-field { display:flex; flex-direction:column; gap:8px; margin-bottom:18px; }
.form-field label { font-size:12px; color:#737b88; font-weight:735; }
.form-field input, .form-field select, .form-field textarea { width:100%; background:white; color:#282e37; border:1px solid #e6e9ef; border-radius:13px; padding:14px; outline:none; font-size:16px; min-height:48px; }
.form-field textarea { min-height:95px; resize:vertical; line-height:1.45; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color:#79a5ff; box-shadow:0 0 0 3px rgba(52,120,246,.08); }
.form-field input[type="date"] { appearance:none; -webkit-appearance:none; min-height:50px; }
.form-help { font-size:11px; color:var(--muted); margin:2px 0 0; line-height:1.4; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.quick-dates { display:flex; gap:7px; flex-wrap:wrap; margin-top:9px; }
.chip-btn { background:#e9edf4; color:#5f6979; border:1px solid transparent; padding:8px 10px; border-radius:9px; font-size:12px; font-weight:710; min-height:36px; }
.chip-btn-primary { background:#ebf3ff; color:#236bdc; border-color:#77abff; font-weight:750; display:inline-flex; align-items:center; gap:5px; }
.chip-btn-primary svg { width:14px; height:14px; }
.chip-btn.is-selected { background:#dceaff; color:#1e5dc7; border-color:#3478f6; }
.chip-btn:active { transform:scale(.98); }
.sheet-actions { display:flex; gap:11px; margin-top:15px; padding-bottom:5px; }
.sheet-actions .button { flex:1; min-height:50px; }
.divider { height:1px; background:var(--line); margin:19px 0; }
.muted-text { color:var(--muted); font-size:12px; line-height:1.55; }
.warning { padding:13px 14px; font-size:12px; line-height:1.5; border-radius:12px; background:#fff5e8; color:#9a6c35; margin:12px 0; }
.toast { position:fixed; z-index:100; bottom:calc(108px + env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%) translateY(10px); background:#272c36; color:white; border-radius:13px; padding:12px 17px; box-shadow:0 12px 35px rgba(0,0,0,.14); font-size:13px; font-weight:620; max-width:90vw; opacity:0; pointer-events:none; transition:opacity .2s,transform .2s; text-align:center; }
.toast.show { opacity:1; transform:translateX(-50%) translateY(0); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media (max-width:360px){ .app {padding-left:16px;padding-right:16px;} h1{font-size:28px;} .sheet{padding-left:17px;padding-right:17px;} .task-item{padding:14px 12px;} .nav-item{min-width:55px;} }
@media (min-width:700px) { body{background:#e9edf3;} .app{background:var(--bg);box-shadow:0 0 40px rgba(19,38,76,.08);} .nav{box-shadow:0 3px 18px rgba(19,38,76,.08);} }
@media (prefers-reduced-motion:reduce){ *, *::before, *::after {animation-duration:.01ms!important;transition-duration:.01ms!important;} }

/* IMS v3 – schlichte Aufgabenübersicht, bei der Abhaken nichts ausblendet */
.home-action-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 15px; background:var(--blue-light); color:#3267b8; border-radius:15px; font-size:13px; }
.home-action-bar b { font-size:18px; color:var(--blue); }
.home-action-bar .small-btn { background:white; padding:9px 12px; }
.task-section { margin-top:22px; }
.task-section .section-head { margin-bottom:10px; justify-content:flex-start; }
.section-count { font-size:11px; font-weight:730; background:#e9ecf1; color:#828995; border-radius:999px; padding:3px 8px; }
.quiet-empty { border-radius:13px; padding:15px 14px; background:#fff; border:1px solid var(--line); font-size:13px; color:var(--muted); }
.task-list { gap:8px; }
.task-item { padding:13px 12px; }
.task-title.done { color:#313d48; text-decoration:none; }
.status-done { display:inline-flex; align-items:center; gap:3px; color:#268855; font-weight:700; }
.status-done svg { height:13px; width:13px; stroke-width:3; }
.check-btn.checked { background:#2fb36f; border-color:#2fb36f; }
.task-actions { margin-top:9px; }
.task-actions .mini-action { padding:7px 10px; font-size:11px; }
.app-footer-name { text-align:center; color:#a2a8b2; font-size:11px; font-weight:650; margin:31px 0 0; }
/* IMS 7 · unaufdringliche Konto-/Cloudanzeige */
.cloud-badge { display:inline-flex; align-items:center; justify-content:center; gap:6px; border:1px solid #e6eaf1; border-radius:12px; background:white; color:#74808c; min-height:39px; padding:0 10px; font-size:11px; font-weight:700; white-space:nowrap; }
.cloud-badge svg { width:17px; height:17px; }
.cloud-badge.ok { color:#287e55; background:#f0faf4; border-color:#dcf3e6; }
.cloud-badge.waiting { color:#b67a29; background:#fff8ed; border-color:#f6e7cd; }
.cloud-badge.working { color:#3478f6; background:#eef4ff; border-color:#dce9ff; }
.cloud-badge.setup,.cloud-badge.loggedout { color:#3b6bc1; }
.account-summary { display:flex; align-items:center; gap:12px; background:white; border:1px solid var(--line); border-radius:16px; padding:15px; margin:5px 0 15px; font-size:14px; }
.account-summary > svg { width:25px; height:25px; color:var(--blue); flex-shrink:0; }
.account-avatar { display:grid; place-items:center; background:#eaf1ff; color:var(--blue); border-radius:13px; height:43px; width:43px; flex-shrink:0; }
.account-avatar svg { width:23px; height:23px; }
.auth-switch { display:block; border:0; background:none; color:var(--blue); padding:17px 12px; font-size:13px; font-weight:700; width:100%; }
.auth-error { color:#c24343; font-size:12px; line-height:1.5; padding-top:8px; overflow-wrap:anywhere; }
@media (max-width:360px) { .cloud-badge {padding:0 7px; font-size:10px;} }


/* IMS v12 – ausschließlich bei breiten Bildschirmen mehr Platz, mobil unverändert */
.task-side-actions { display:flex; flex-direction:column; align-items:center; gap:3px; flex-shrink:0; margin-left:auto; }
.task-side-actions .dots { margin-left:0; }
.task-attach-btn { display:grid; place-items:center; border:0; background:transparent; color:#9ca4b1; width:27px; height:27px; padding:5px; border-radius:9px; }
.task-attach-btn svg { width:15px; height:15px; stroke-width:1.8; }
.task-attach-btn:active,.task-attach-btn:hover {background:#eef3fb;color:var(--blue);}
.task-attachments { display:flex; flex-wrap:wrap; gap:5px; margin-top:8px; }
.attachment-link { display:inline-flex; align-items:center; gap:5px; max-width:100%; border:1px solid #e2eaf6; border-radius:8px; color:#326bb8; background:#f5f8fe; padding:5px 8px; text-align:left; font-size:11px; overflow-wrap:anywhere; }
.attachment-link svg { width:13px; height:13px; flex-shrink:0; }
.chip-btn svg {width:14px;height:14px;vertical-align:middle;}
/* Die Betonung erhält nur die vom Nutzer gewählte Option. */
.chip-btn.is-selected {background:#eaf2ff;border-color:#6ba4ff;color:#246de0;font-weight:750;}
.chip-btn:not(.is-selected) {background:#f0f2f5;border-color:transparent;color:#656f7e;font-weight:710;}
.undated-divider { display:flex;align-items:center;gap:10px;color:#a2a8b2;font-size:11px;font-weight:680;margin:12px 1px 3px;}
.undated-divider:before,.undated-divider:after {content:"";height:1px;background:#d8dce4;flex:1;}
.lesson-progress-row {display:flex;align-items:center;gap:9px;margin-top:11px;min-width:0;}
.lesson-progress-row .lesson-progress { flex:1; min-width:0; margin-top:0; }
.lesson-remaining { color:#a3a9b2; flex-shrink:0;font-size:10px;font-weight:500;white-space:nowrap; }
.home-content-grid { display:block; }
.files-teaser {width:100%;display:flex;align-items:center;gap:11px;border:1px solid #edf0f5;background:#fff;text-align:left;padding:15px 16px;margin:10px 0 0;color:#333d4f;font-size:14px;font-weight:700;box-shadow:var(--shadow);}
.files-teaser > svg {width:18px;height:18px;color:var(--blue);flex-shrink:0;}
.files-teaser > svg:last-child {color:#9ea6b2;margin-left:auto;width:16px;}
.file-count-inline {font-size:11px;font-weight:500;color:var(--muted);margin-left:auto;}
.file-head {display:flex;align-items:center;justify-content:space-between;gap:10px;margin:18px 0 8px;}
.file-head strong {font-size:15px;}
.file-list {display:flex;flex-direction:column;gap:8px;}
.file-row {display:flex;align-items:center;padding:12px;gap:9px;min-width:0;}
.file-symbol {display:grid;place-items:center;flex-shrink:0;background:#f0f5ff;border-radius:11px;color:#3478f6;width:38px;height:38px;}
.file-symbol svg {width:19px;height:19px;}
.file-meta {min-width:0;flex:1;}
.file-name {font-size:13px;font-weight:700;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.file-description {font-size:11px;color:var(--muted);margin-top:4px;line-height:1.3;}
.file-open,.file-delete {width:31px;height:31px;border:0;background:#f5f7fb;color:#6f7a88;border-radius:9px;}
.file-open svg,.file-delete svg {width:16px;height:16px;}
.file-delete {color:#b17a76;background:#fff7f6;}
.text-back {display:inline-flex;gap:5px;align-items:center;border:0;background:none;color:var(--blue);padding:0 0 16px;font-size:13px;font-weight:700;}
.text-back svg {width:15px;height:15px;}
@media (min-width: 1100px) {
  body {background:var(--bg);}
  .app {max-width:1350px;min-height:100svh;padding:33px 38px 60px 253px;background:var(--bg);box-shadow:none;}
  .home-content-grid {display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:26px;align-items:start;}
  .home-content-grid .section {margin-top:21px;}
  .nav {position:fixed;transform:none;top:101px;bottom:auto;left:max(15px, calc((100vw - 1350px)/2 + 20px));max-width:200px;width:200px;flex-direction:column;align-items:stretch;gap:6px;justify-content:flex-start;border:1px solid #eceef2;box-shadow:none;background:rgba(255,255,255,.92);border-radius:18px;padding:12px;}
  .nav-item {flex-direction:row;gap:12px;justify-content:flex-start;min-height:47px;width:100%;font-size:13px;padding:12px 13px;border-radius:12px;text-align:left;}
  .nav-item svg {width:20px;height:20px;}
  .nav-item.active {background:var(--blue-light);}
  .fab {bottom:35px;right:max(35px,calc((100vw - 1350px)/2 + 35px));}
  .topbar {margin-bottom:25px;}
  .modal-backdrop {align-items:center;}
  .sheet {border-radius:23px;max-width:600px;width:calc(100% - 40px);max-height:min(84svh,790px);padding:24px 27px 28px;}
  .sheet-handle {display:none;}
  .sheet-header {margin-bottom:22px;}
  .file-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
}

/* IMS 12.1: dezente Einstellungen fuer Erinnerungen */
.push-setting-row{border:1px solid var(--line);border-radius:15px;background:var(--card);padding:12px;margin-bottom:10px}
.push-option{display:flex;justify-content:space-between;align-items:center;gap:14px;font-size:14px;line-height:1.35;cursor:pointer}
.push-option span{display:flex;flex-direction:column;gap:3px}
.push-option small{color:var(--muted);font-size:12px}
.push-option input{accent-color:var(--blue);width:21px;height:21px;flex-shrink:0}
#push-settings-form>.push-option{padding:13px 2px;margin-bottom:12px}
.push-clock{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted);margin-top:10px;border-top:1px solid var(--line);padding-top:10px}
.push-clock input{font:inherit;font-size:15px;color:var(--ink);border:1px solid var(--line);background:var(--bg);padding:6px 10px;border-radius:9px;max-width:135px}
.push-buttons{display:flex;gap:8px;flex-wrap:wrap}.push-buttons .button{flex:1;font-size:12px}
.push-error{color:#ba3434!important}

/* V12.2 – Dateinamenwahl, Download, klarere Erinnerungssteuerung */
.file-download{width:31px;height:31px;border:0;background:#eef3ff;color:#4b66bc;border-radius:9px;flex-shrink:0}
.file-download svg{width:16px;height:16px}
.upload-choice{display:flex;gap:11px;align-items:flex-start;margin:9px 0;padding:13px;border:1px solid var(--line);border-radius:13px;cursor:pointer;background:var(--card)}
.upload-choice:has(input:checked){border-color:#9675fe;background:#f7f3ff}
.upload-choice input{margin:2px 0 0;accent-color:var(--blue);width:19px;height:19px;flex-shrink:0}
.upload-choice span{display:flex;flex-direction:column;gap:4px;min-width:0}
.upload-choice b{font-size:13px}
.upload-choice small{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.file-custom-name{margin:15px 0}
.file-custom-name[hidden]{display:none!important}
.file-custom-name input{width:100%;margin-top:5px}
.push-row-inactive{opacity:.65;background:var(--bg)}
.push-row-inactive .push-clock{display:none}
.push-main-toggle{padding:13px 3px!important}
.push-clock input:disabled{cursor:not-allowed}
.push-summary{font-size:12px;font-weight:600;padding:11px 12px;border-radius:11px;background:#f4f1ff;color:#6940ca;margin:12px 0}
.push-save-btn{transition:background .2s,transform .18s,box-shadow .2s;min-height:48px}
.push-save-btn:active{transform:scale(.985)}
.push-save-btn.is-saving{opacity:.78;cursor:wait}
.push-save-btn.is-success{background:#247d58;color:white;animation:push-saved-pop .3s ease-out}
.push-spinner{display:inline-block;width:16px;height:16px;border:2px solid #ffffff77;border-top-color:white;border-radius:50%;animation:push-spin .75s linear infinite;vertical-align:middle;margin-right:8px}
#push-server-test{margin-top:12px;font-size:13px}
@keyframes push-spin{to{transform:rotate(360deg)}}
@keyframes push-saved-pop{0%{transform:scale(.98)}55%{transform:scale(1.02)}100%{transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.push-save-btn,.push-spinner{animation:none!important;transition:none!important}}

/* IMS: ruhiger Einstellungsbutton statt schwerer Kachel */
.topbar .icon-btn[data-action="open-settings"]{width:35px;height:35px;border:0;border-radius:50%;background:transparent;color:#636b7b;box-shadow:none;transition:background .16s,color .16s,transform .14s}
.topbar .icon-btn[data-action="open-settings"] svg{width:19px;height:19px;stroke-width:1.75}
.topbar .icon-btn[data-action="open-settings"]:hover{background:#e9edf4;color:#252b38}
.topbar .icon-btn[data-action="open-settings"]:active{transform:scale(.93);background:#dfe5f0}

/* V12.5: diskreter Hinweis zum Archiv und Restlaufzeit. */
.archive-notice { display:flex; align-items:flex-start; gap:9px; background:#f0f2f6; color:#626b78; border:1px solid #e5e8ef; border-radius:13px; font-size:12px; line-height:1.55; padding:12px 14px; margin:0 0 14px; }
.archive-notice svg { width:16px; height:16px; flex-shrink:0; margin-top:1px; }
.archive-expiry { color:#848b98; font-size:11px; line-height:1.5; }

/* IMS V12.6 – Infos auswaehlen und nach oben/unten verschieben */
.note-help{font-size:12px;color:var(--muted);line-height:1.5;margin:0 2px 13px}
.note-manage{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:12px;margin-top:13px}
.note-home-btn{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:700;color:var(--muted);border:1px solid var(--line);background:#f8f9fc;padding:9px 11px;border-radius:10px;cursor:pointer}
.note-home-btn.selected{background:#e9f1ff;border-color:#afc9fa;color:#2866ce}
.note-home-btn svg{width:14px;height:14px}
.note-sort-buttons{display:flex;gap:5px}
.note-sort-buttons button{width:34px;height:34px;border-radius:10px;border:1px solid var(--line);background:#fff;font-size:18px;line-height:1;color:var(--ink);cursor:pointer}
.note-sort-buttons button:disabled{opacity:.32;cursor:default}
/* Auswahl zwischen offenen und allen nicht archivierten Hausaufgaben */
.push-scope{border:1px solid var(--line);border-radius:15px;background:#fff;padding:11px 12px;margin:3px 0 13px;min-width:0}
.push-scope legend{font-weight:750;color:var(--ink);font-size:13px;padding:0 5px}
.push-scope-choice{display:flex;align-items:center;gap:11px;padding:9px 6px;cursor:pointer;border-radius:10px}
.push-scope-choice + .push-scope-choice{border-top:1px solid var(--line)}
.push-scope-choice input{accent-color:var(--blue);width:19px;height:19px;flex-shrink:0}
.push-scope-choice span{display:flex;flex-direction:column;gap:2px}
.push-scope-choice b{font-size:13px;color:var(--ink)}
.push-scope-choice small{font-size:11px;color:var(--muted);line-height:1.35}

/* IMS 12.7 – Packlisten-Editor, Tages-Checkliste und Erinnerungszeiten */
.packlist-teaser{margin-top:10px}
.pack-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin-top:8px}
.pack-day{border:1px solid var(--line);background:#fff;color:#6c7585;padding:12px 0;border-radius:11px;font-size:12px;font-weight:750;cursor:pointer}
.pack-day.active{background:var(--blue);border-color:var(--blue);color:#fff}
.pack-back{display:inline-flex;align-items:center;gap:6px;margin-bottom:12px}
.pack-back svg{width:15px;height:15px}
.pack-items{display:flex;flex-direction:column;gap:9px;margin-bottom:16px}
.pack-item{padding:13px 11px;display:flex;align-items:center;gap:10px;min-width:0}
.pack-item-icon{color:#5b85c8;display:flex}.pack-item-icon svg{width:18px;height:18px}
.pack-item-text{font-size:14px;font-weight:650;flex:1;min-width:0;overflow-wrap:anywhere}
.pack-item-actions{display:flex;gap:3px;flex-shrink:0}
.pack-item-actions button{border:0;background:transparent;color:#818997;padding:7px;border-radius:9px;display:grid;place-items:center;cursor:pointer}
.pack-item-actions button:hover{background:var(--blue-light);color:var(--blue)}
.pack-item-actions button:disabled{opacity:.28;cursor:default}
.pack-item-actions svg{width:16px;height:16px}
.pack-add-row{display:flex;gap:9px;align-items:center;margin-bottom:14px}
.pack-add-row input{flex:1;min-width:0;padding:12px 13px;border:1px solid var(--line);border-radius:12px;background:white;font-size:14px}
.pack-add-row .button{white-space:nowrap;padding:12px 11px}
.pack-notify-heading{display:flex;align-items:center;gap:8px;font-size:16px;margin:5px 0 10px}
.pack-notify-heading svg{width:19px;height:19px;color:var(--blue)}
.pack-notify-time{margin:0 0 12px}
.pack-notify-label{font-size:12px;font-weight:750;color:var(--muted);margin:12px 0 8px}
.pack-notify-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.pack-day-choice{display:block;min-width:0;cursor:pointer}
.pack-day-choice input{position:absolute;opacity:0;width:1px;height:1px}
.pack-day-choice span{display:block;text-align:center;padding:11px 0;border-radius:10px;font-size:12px;font-weight:750;background:#f0f1f4;color:#7a8290;border:1px solid transparent}
.pack-day-choice input:checked + span{background:#eaf1ff;border-color:#95b9ff;color:#225fca}
.pack-day-choice input:focus-visible + span{outline:2px solid var(--blue);outline-offset:2px}
#pack-reminder-details.push-row-inactive{opacity:.58}#pack-reminder-details.push-row-inactive .pack-notify-time{display:none}
#pack-push-save{margin-top:14px}
.pack-popup-head{display:flex;align-items:center;gap:13px;margin-bottom:12px}
.pack-popup-head>span{display:grid;place-items:center;width:43px;height:43px;border-radius:13px;background:#eaf1ff;color:var(--blue)}
.pack-popup-head svg{width:24px;height:24px}
.pack-popup-head>div{display:flex;flex-direction:column;gap:3px}
.pack-popup-head b{font-size:16px}.pack-popup-head small{font-size:12px;color:var(--muted)}
.pack-popup-progress{height:5px;background:#e7edfb;border-radius:20px;overflow:hidden;margin:12px 0 16px}
.pack-popup-progress span{display:block;height:100%;background:var(--blue);border-radius:20px;transition:width .2s}
.pack-popup-items{display:flex;flex-direction:column;gap:7px;margin-bottom:20px;max-height:50vh;overflow:auto}
.pack-check-row{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:12px;padding:13px;background:white;cursor:pointer}
.pack-check-row input{width:20px;height:20px;accent-color:var(--blue);flex-shrink:0}
.pack-check-row span{font-size:14px;font-weight:600;overflow-wrap:anywhere}
.pack-check-row span.done{text-decoration:line-through;color:#8a92a0}
@media(max-width:375px){.pack-item-actions button{padding:5px}.pack-add-row .button{padding:12px 8px;font-size:12px}}
