/* Design-Token (aus dem Konzept) */
:root {
  --shiro-neri: #FBFBF7;   /* Karten */
  --chitose-midori: #365D48; /* Hauptfarbe */
  --chaji-iro: #886655;    /* Akzent */
  --ai-nezumi: #5C6B73;    /* Sekundärtext */
  --bg: #F3F3EC;
  --text: #2B343A;
  --danger: #9b2c2c;
  --radius: 12px;
  --line: #dcdcd2;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
#app { min-height: 100vh; }
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.25; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 1px solid var(--chitose-midori); background: var(--chitose-midori); color: var(--shiro-neri); padding: .55rem 1rem; border-radius: 8px; min-height: 44px; }
button.secondary { background: transparent; color: var(--chitose-midori); }
button.danger { background: transparent; border-color: var(--danger); color: var(--danger); }
button.link { background: none; border: 0; color: var(--chitose-midori); text-decoration: underline; padding: .25rem; min-height: 0; }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 3px solid var(--chaji-iro); outline-offset: 2px; }
input, select, textarea { width: 100%; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; min-height: 44px; }
label { display: block; font-size: .9rem; color: var(--ai-nezumi); margin: .8rem 0 .25rem; }
.card { background: var(--shiro-neri); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.auth { max-width: 420px; margin: 8vh auto; padding: 0 1rem; }
.auth h1 { color: var(--chitose-midori); font-size: 2rem; text-align: center; }
.auth .sub { text-align: center; color: var(--ai-nezumi); margin-bottom: 1.2rem; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.stack > * + * { margin-top: .8rem; }
.error { color: var(--danger); min-height: 1.4em; margin: .6rem 0 0; }
.hint { color: var(--ai-nezumi); font-size: .9rem; }
header.top { display: flex; gap: .8rem; align-items: center; padding: .7rem 1rem; background: var(--chitose-midori); color: var(--shiro-neri); position: sticky; top: 0; z-index: 2; }
header.top h1 { font-size: 1.2rem; margin: 0; flex: 1; }
header.top select { width: auto; min-height: 36px; padding: .2rem .4rem; background: var(--shiro-neri); }
.badge { font-size: .8rem; padding: .15rem .6rem; border-radius: 99px; background: rgba(255,255,255,.18); white-space: nowrap; }
nav.tabs { display: flex; gap: .4rem; padding: .6rem 1rem 0; max-width: 880px; margin: 0 auto; }
nav.tabs button { background: transparent; color: var(--text); border-color: var(--line); }
nav.tabs button[aria-current="page"] { background: var(--shiro-neri); border-color: var(--chitose-midori); color: var(--chitose-midori); font-weight: 600; }
main { max-width: 880px; margin: 0 auto; padding: 1rem; }
.note { margin-top: .8rem; }
.note h3 { color: var(--chitose-midori); }
.note .meta { color: var(--ai-nezumi); font-size: .8rem; }
.note.conflict { border-left: 4px solid var(--chaji-iro); }
.secret { font-family: ui-monospace, monospace; letter-spacing: .1em; word-break: break-all; background: #fff; border: 1px dashed var(--chaji-iro); padding: .5rem; border-radius: 8px; }
.devices li { display: flex; justify-content: space-between; gap: .5rem; align-items: center; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.devices { list-style: none; padding: 0; margin: 0; }
@media (max-width: 520px) { main { padding: .7rem; } }

/* ---------- Phase 2: Planung ---------- */
:root { --c-green: #365D48; --c-green-bg: #dfe8e2; --c-brown: #886655; --c-brown-bg: #efe4de; --c-slate: #5C6B73; --c-slate-bg: #e1e6e9; --c-ochre: #9a7b1c; --c-ochre-bg: #f1e8cf; --c-rose: #a35656; --c-rose-bg: #f0dcdc; }
.c-green { background: var(--c-green-bg); border-left: 4px solid var(--c-green); }
.c-brown { background: var(--c-brown-bg); border-left: 4px solid var(--c-brown); }
.c-slate { background: var(--c-slate-bg); border-left: 4px solid var(--c-slate); }
.c-ochre { background: var(--c-ochre-bg); border-left: 4px solid var(--c-ochre); }
.c-rose { background: var(--c-rose-bg); border-left: 4px solid var(--c-rose); }
.c-green-edge { border-left: 6px solid var(--c-green); } .c-brown-edge { border-left: 6px solid var(--c-brown); }
.c-slate-edge { border-left: 6px solid var(--c-slate); } .c-ochre-edge { border-left: 6px solid var(--c-ochre); } .c-rose-edge { border-left: 6px solid var(--c-rose); }
main { max-width: 1100px; } nav.tabs { max-width: 1100px; flex-wrap: wrap; }
.scroll { overflow-x: auto; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .2rem .8rem; }
label.inline { display: inline-flex; gap: .3rem; align-items: center; color: var(--text); margin: .3rem 0; }
label.inline input { width: auto; min-height: 0; }
table.tt { border-collapse: separate; border-spacing: 4px; width: 100%; min-width: 560px; }
table.tt th { font-weight: 600; color: var(--ai-nezumi); text-align: center; }
table.tt th.time { width: 54px; line-height: 1.2; }
table.tt td { vertical-align: top; background: var(--shiro-neri); border: 1px solid var(--line); border-radius: 8px; padding: 3px; min-width: 90px; height: 58px; }
table.tt td.covered { background: transparent; border-style: dashed; color: var(--ai-nezumi); text-align: center; }
button.slot { display: block; width: 100%; text-align: left; color: var(--text); min-height: 48px; padding: .3rem .5rem; border-radius: 6px; border-top: 0; border-right: 0; border-bottom: 0; font-size: .85rem; line-height: 1.25; margin-bottom: 3px; }
button.add { width: 100%; background: transparent; color: var(--ai-nezumi); border: 1px dashed var(--line); min-height: 40px; }
.tag { display: inline-block; font-size: .7rem; background: var(--shiro-neri); border: 1px solid var(--line); border-radius: 99px; padding: 0 .4rem; margin: 0 .2rem; color: var(--ai-nezumi); }
.tag.exam { border-color: var(--danger); color: var(--danger); }
.wgrid { display: grid; gap: 4px; min-width: 600px; }
.wh { text-align: center; padding: .3rem; color: var(--ai-nezumi); font-size: .9rem; }
.wh.today { color: var(--chitose-midori); font-weight: 700; border-bottom: 3px solid var(--chitose-midori); }
.wt { font-size: .75rem; color: var(--ai-nezumi); text-align: right; padding-right: .3rem; line-height: 1.2; }
.wc { background: var(--shiro-neri); border: 1px solid var(--line); border-radius: 6px; }
button.wl { text-align: left; color: var(--text); font-size: .85rem; line-height: 1.25; padding: .3rem .5rem; margin: 2px; min-height: 0; border-top: 0; border-right: 0; border-bottom: 0; border-radius: 6px; z-index: 1; }
button.wl .lt { color: var(--ai-nezumi); font-size: .8rem; }
.whol { background: repeating-linear-gradient(45deg, #ecece2, #ecece2 8px, #f6f6ef 8px, #f6f6ef 16px); border-radius: 6px; padding: .5rem; text-align: center; color: var(--ai-nezumi); z-index: 1; margin: 2px; }
.whol.k-pflichttag, .card.k-pflichttag { background: var(--c-ochre-bg); color: var(--text); }
button.pill { color: var(--text); border-radius: 99px; min-height: 36px; padding: .2rem .8rem; border-top: 0; border-right: 0; border-bottom: 0; }
button.pill.on { outline: 2px solid var(--chitose-midori); }

/* ---------- Phase 4: Klassen ---------- */
table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; color: var(--ai-nezumi); font-weight: 600; font-size: .85rem; padding: .4rem .5rem; border-bottom: 1px solid var(--line); }
table.list td { padding: .55rem .5rem; border-bottom: 1px solid var(--line); }
table.list tr.click { cursor: pointer; } table.list tr.click:hover, table.list tr.click:focus-visible { background: #fff; }
.avatar { display: inline-flex; width: 2rem; height: 2rem; border-radius: 50%; background: var(--chitose-midori); color: var(--shiro-neri); align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; }
button.left { text-align: left; width: 100%; color: var(--text); border-color: var(--line); background: transparent; }
button.left.on, button.secondary.on { border-color: var(--chitose-midori); background: var(--shiro-neri); font-weight: 600; }
.guardian > * { flex: 1 1 140px; width: auto; }
.guardian > button { flex: 0 0 44px; }
.note-row { border-bottom: 1px solid var(--line); padding-bottom: .4rem; } .note-row p { margin: .2rem 0; white-space: pre-wrap; }
.strike { text-decoration: line-through; color: var(--ai-nezumi); }
.agreement { justify-content: space-between; border-bottom: 1px solid var(--line); padding: .2rem 0; }
.room { position: relative; width: 100%; max-width: 820px; margin: 0 auto; background: var(--shiro-neri); border: 2px solid var(--ai-nezumi); border-radius: 10px; min-height: 260px; }
.rel { position: absolute; background: var(--c-slate-bg); border: 1px solid var(--ai-nezumi); border-radius: 4px; font-size: .7rem; display: flex; align-items: center; justify-content: center; color: var(--ai-nezumi); overflow: hidden; }
.rel-board { background: #2f4a3c; color: #FBFBF7; border-color: #2f4a3c; } .rel-window { background: #cfe3ee; } .rel-door { background: var(--c-brown-bg); border-color: var(--chaji-iro); }
button.seat { position: absolute; transform: translate(-50%, -50%); min-height: 34px; min-width: 68px; padding: .2rem .4rem; font-size: .75rem; line-height: 1.1; background: #fff; color: var(--text); border: 1px solid var(--chitose-midori); border-radius: 6px; display: flex; flex-direction: column; align-items: center; }
button.seat.empty { border-style: dashed; color: var(--ai-nezumi); border-color: var(--line); }
button.seat.sel { background: var(--chitose-midori); color: var(--shiro-neri); }
button.seat.absent { border-color: var(--danger); } button.seat .abs { color: var(--danger); font-size: .65rem; } button.seat.sel .abs { color: #ffd9d9; }
@media print { header.top, nav.tabs, #class-bar, .row, .card:not(:has(.room)) { display: none !important; } .card:has(.room) { border: 0; } .card:has(.room) .row, .card:has(.room) h2, .card:has(.room) .hint { display: block !important; } button.seat { color: #000 !important; } }

button.pill:not([class*="c-"]) { background: var(--shiro-neri); color: var(--text); border: 1px solid var(--line); }
button.pill:not([class*="c-"]).on { border-color: var(--chitose-midori); color: var(--chitose-midori); font-weight: 600; }
#class-bar { align-items: center; } #class-bar select { width: auto; min-width: 8rem; } #class-bar form { flex: 1 1 260px; flex-wrap: nowrap; } #class-bar form input { flex: 1; }
.room { max-width: 720px; }

/* Phase 3: Handschrift, Anhänge, Suche */
.thumbs{display:flex;flex-wrap:wrap;gap:.6rem}
.thumb{display:flex;flex-direction:column;align-items:center;gap:.2rem;width:96px;padding:.3rem;background:var(--shiro-neri);color:var(--text);border:1px solid #c9c9bd;border-radius:8px;font-size:.78rem;min-height:0}
.thumb.on{border:2px solid var(--chitose-midori)}
.thumb img{width:84px;height:84px;object-fit:cover;object-position:top;background:#fff;border:1px solid #ddd}
.thumb .noimg{display:grid;place-items:center;width:84px;height:84px;background:#fff;font-size:1.6rem;color:var(--ai-nezumi)}
.ink-editor{border:2px solid var(--chitose-midori)}
.ink-bar{align-items:center;gap:.5rem}
.ink-bar button.tool.on{background:var(--chitose-midori);color:var(--shiro-neri)}
.swatch{width:34px;height:34px;min-height:0;padding:0;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #888}
.swatch.on{box-shadow:0 0 0 3px var(--chitose-midori)}
.ink-scroll{max-height:70vh;overflow:auto;border:1px solid #c9c9bd;background:#fff;border-radius:6px;touch-action:pan-y}
.ink-canvas{display:block;width:100%;height:auto;touch-action:none;background:#fff;cursor:crosshair}
.attachment{align-items:center;gap:.6rem;border-bottom:1px solid #e2e2d8;padding:.4rem 0}
.attachment .grow{flex:1;min-width:140px}
.attachment .kind{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:6px;background:var(--ai-nezumi);color:#fff;font-size:.75rem;font-weight:700}
.attachment .kw{max-width:180px}
button.result{display:block;width:100%;text-align:left;background:var(--shiro-neri);color:var(--text);border:1px solid #d6d6ca}
.result .tag{background:var(--chitose-midori);color:#fff;border-radius:4px;padding:0 .4rem;font-size:.75rem}
.snippet{margin-top:.25rem;color:var(--ai-nezumi);font-size:.9rem}
mark{background:#f3e3a0;color:inherit;padding:0 1px;border-radius:2px}
@media print{.ink-bar,#file-section,#search-q{display:none}}

/* Phase 5: Schule */
button.result.on{border-color:var(--chitose-midori);border-width:2px}
.task{align-items:center;gap:.6rem;border-bottom:1px solid #e2e2d8;padding:.3rem 0}
.task .tk-title{flex:1;min-width:160px}
.hint.overdue{color:#b3261e;font-weight:600}
.thought.pinned{border-left:4px solid var(--chaji-iro)}
.pre{white-space:pre-wrap;margin:0}
.strike{text-decoration:line-through;color:var(--ai-nezumi)}

/* Phase 6: Austausch */
a.button{display:inline-block;padding:.55rem 1rem;border-radius:8px;background:var(--chitose-midori);color:var(--shiro-neri);text-decoration:none;font-weight:600;min-height:44px;box-sizing:border-box}
label.button.secondary{background:transparent;color:var(--chitose-midori);border:1px solid var(--chitose-midori);cursor:pointer}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.hint.warn{color:#8a5a00}
.big{font-size:1.8rem;font-weight:700;margin:.2rem 0}
.pos{color:var(--chitose-midori);font-weight:600}.neg{color:#b3261e;font-weight:600}
.tag.none{background:var(--ai-nezumi)}
.chip{padding:.2rem .5rem;border:1px solid #d6d6ca;border-radius:999px;background:var(--shiro-neri)}
.rep-row{display:grid;grid-template-columns:minmax(120px,1fr) minmax(160px,1fr) 2fr;gap:.5rem;align-items:center;padding:.2rem 0}
@media(max-width:640px){.rep-row{grid-template-columns:1fr}}
.print-only{display:none}
@media print{.report-view>:not(.print-only){display:none!important}.print-only{display:block!important}.print-only h1{font-size:1.4rem}.print-only table td{padding:.25rem .5rem;border:1px solid #999}}

/* Phase 7: Datenschutz */
.codes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .4rem; font-family: ui-monospace, monospace; }
.codes li { background: var(--bg); padding: .4rem .6rem; border-radius: 6px; }
label.check { display: flex; gap: .5rem; align-items: center; }
label.check input { width: auto; min-height: 0; }
#recovery-key { word-break: break-all; }
.badge[data-status="locked"], .badge[data-status="expired"] { background: var(--chaji-iro); color: var(--shiro-neri); }
#sub-line.error { color: var(--chaji-iro); }

/* Phase 9: Community */
.rules { margin: 0; padding-left: 1.2rem; }
.row.wrap { flex-wrap: wrap; }
.post-body { white-space: pre-wrap; word-break: break-word; }
.reply { border-top: 1px solid var(--bg); padding-top: .6rem; }
.card.warn { border-left: 4px solid var(--chaji-iro); }
details.report summary { cursor: pointer; color: var(--ai-nezumi); }

/* ---------- Phase 10: Design nach Mockups (Seitenleiste) ---------- */
body { font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif; }
.app { display: grid; grid-template-columns: 204px 1fr; min-height: 100vh; }
.side { background: var(--chitose-midori); color: var(--shiro-neri); display: flex; flex-direction: column; padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; padding: 4px 8px 16px; }
.side .logo { width: 32px; height: 32px; border-radius: 10px; background: var(--shiro-neri); color: var(--chitose-midori); display: grid; place-items: center; }
.ic { display: inline-flex; width: 18px; height: 18px; flex: none; }
.ic svg { width: 100%; height: 100%; }
.side nav.tabs { display: flex; flex-direction: column; gap: 2px; padding: 0; margin: 0; max-width: none; flex: 1; }
.side .nsec { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; opacity: .65; padding: 14px 10px 4px; }
.side nav.tabs button { display: flex; align-items: center; gap: 10px; text-align: left; min-height: 34px; height: 34px; padding: 0 10px; border: 0; border-radius: 11px; background: transparent; color: var(--shiro-neri); font-size: .9rem; font-weight: 500; }
.side nav.tabs button:hover { background: rgba(251,251,247,.12); }
.side nav.tabs button[aria-current="page"] { background: var(--shiro-neri); color: var(--chitose-midori); font-weight: 700; }
.side .foot { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.side .badge { display: block; background: #2B4B3A; color: var(--shiro-neri); border-radius: 10px; padding: 6px 10px; font-size: .75rem; }
.side .me { display: flex; align-items: center; gap: 8px; }
.side .av { width: 30px; height: 30px; border-radius: 50%; background: var(--chaji-iro); display: grid; place-items: center; font-weight: 700; flex: none; }
.side .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; }
.side button.logout { background: transparent; border: 0; color: var(--shiro-neri); min-height: 34px; min-width: 34px; padding: 6px; border-radius: 10px; }
.side button.logout:hover { background: rgba(251,251,247,.12); }
.side button.logout .lbl { display: none; }
.content { min-width: 0; }
.content main { max-width: 1500px; margin: 0; padding: 24px; }
.card { border-radius: 16px; border-color: #DEDED4; }
@media (max-width: 899px) {
  .app { display: block; padding-bottom: 64px; }
  .side { position: static; height: auto; flex-direction: row; align-items: center; padding: 8px 12px; overflow: visible; }
  .side .brand { padding: 0; flex: 1; }
  .side .foot { margin: 0; flex-direction: row; align-items: center; }
  .side .who, .side .av { display: none; }
  .side nav.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; flex-direction: row; overflow-x: auto; background: var(--chitose-midori); padding: 6px 8px; gap: 4px; flex: none; }
  .side .nsec { display: none; }
  .side nav.tabs button { flex-direction: column; justify-content: center; gap: 2px; height: 48px; min-width: 64px; font-size: .65rem; padding: 0 6px; }
  .content main { padding: 12px; }
}

/* ---------- Phase 10: Wochenraster, Segmente, Chips nach Mockup ---------- */
.wgrid { gap: 6px; }
.wh { background: transparent; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; padding: .4rem; }
.wh b { display: block; font-size: 1.1rem; color: var(--text); text-transform: none; letter-spacing: 0; }
.wh.today { border: 0; color: var(--chitose-midori); }
.wh.today b { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 50%; background: var(--chitose-midori); color: var(--shiro-neri); }
.wt { padding: .3rem .6rem 0 0; font-size: .75rem; }
.wt b { color: var(--text); font-size: .85rem; }
.wc { border-color: #E6E6DC; border-radius: 12px; background: #FDFDFA; }
button.wl, .whol { border-radius: 12px; margin: 0; }
button.wl { border: 0; padding: .5rem .65rem; font-size: .8rem; line-height: 1.3; }
button.wl b { font-size: .9rem; }
.c-green { background: #DCE9E1; color: #1F3D2E; } .c-green .lt { color: #1F3D2E; }
.c-brown { background: #F4E4DB; color: #5E4435; } .c-brown .lt { color: #5E4435; }
.c-slate { background: #E3E8EA; color: #3B464C; } .c-slate .lt { color: #3B464C; }
.c-ochre { background: #F8F0DC; color: #7A5A10; } .c-ochre .lt { color: #7A5A10; }
.c-rose { background: #F0DCDC; color: #6B2F2F; } .c-rose .lt { color: #6B2F2F; }
button.wl[class*="c-"] { border-left: 0; }
.tag.exam { background: #1F3D2E; border-color: #1F3D2E; color: #FBFBF7; }
.whol.k-pflichttag { background: repeating-linear-gradient(135deg, #F8F0DC, #F8F0DC 10px, #EBD9A6 10px, #EBD9A6 20px); color: #7A5A10; }
.content main h2 { font-size: 1.05rem; margin: 0 0 .4rem; }
.content main .ttl h2 { font-size: 1.5rem; margin: 0; }
.content main button.secondary { border-color: #CFCFC4; color: var(--text); border-radius: 12px; min-height: 40px; background: var(--shiro-neri); }
.content main button.secondary:hover { background: #fff; }
.content main #prev, .content main #next, .content main #dprev, .content main #dnext { min-width: 40px; padding: 0; font-size: 1.2rem; }
button.pill { min-height: 32px; font-size: .85rem; }
.side .logo { border-radius: 9px; }
.logo-lg { width: 64px; height: 64px; margin: 0 auto .6rem; border-radius: 16px; background: var(--chitose-midori); color: var(--shiro-neri); display: grid; place-items: center; }
.logo-lg .ic { width: 36px; height: 36px; }
.auth h1 { margin-top: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8rem; color: var(--ai-nezumi); }
.legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; border: 1px solid rgba(0,0,0,.08); }
/* Segment-Umschalter */
.seg { display: inline-flex; background: #E8E8DE; border-radius: 12px; padding: 3px; gap: 0; }
.content main .seg button { min-height: 34px; height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: #424D54; font-weight: 600; font-size: .875rem; }
.content main .seg button.on { background: var(--shiro-neri); color: var(--text); box-shadow: 0 1px 2px rgba(43,52,58,.14); }
/* Lektionsformular und Karten */
#lesson-form { border-radius: 16px; background: var(--shiro-neri); border-color: #DEDED4; border-left-width: 1px; }
#lesson-form h2 { font-size: 1.25rem; }
button.pill { border: 1px solid #DADACF; }
button.pill.on { background: #2B343A; border-color: #2B343A; color: #FBFBF7; outline: 0; }

/* ---------- Mockup v2: Logo und farbige Symbol-Kacheln ---------- */
:root { --sammeln: #009FE3; --gestalten: #683B10; --praesentieren: #BE1522; --archivieren: #FFED00; --schueler: #F9B233; }
.b-sammeln { --b: var(--sammeln); --on: #1B2329; } .b-gestalten { --b: var(--gestalten); --on: #fff; } .b-praesentieren { --b: var(--praesentieren); --on: #fff; }
.b-archivieren { --b: var(--archivieren); --on: #2B343A; } .b-schueler { --b: var(--schueler); --on: #2B343A; }
.side .brand { font-size: 19px; }
.side .logo { width: 34px; height: 34px; border-radius: 0; background: none; display: block; flex: none; }
.logo-lg { display: block; width: 72px; height: 72px; margin: 0 auto .6rem; border-radius: 0; background: none; }
.side nav.tabs button { gap: 12px; padding: 0 12px; color: #E6EBE2; }
.side nav.tabs .ic { width: 28px; height: 28px; margin-left: -6px; }
.side nav.tabs .ic svg { box-sizing: border-box; padding: 5px; border-radius: 8px; background: var(--b); color: var(--on); stroke-width: 2.2; }
.side nav.tabs button[aria-current="page"] { color: var(--chitose-midori); }
.side .nsec { color: #C8D8CE; font-weight: 600; font-size: 11px; padding: 8px 12px 4px; }
@media (max-width: 899px) { .side nav.tabs .ic { margin-left: 0; width: 26px; height: 26px; } }

/* ---------- Mockup v2: Wochenansicht ---------- */
.topbar { display: flex; align-items: center; gap: 12px; }
.topbar .ttl h2 { font-size: 1.5rem; line-height: 1.2; } .topbar .ttl .hint { font-size: .875rem; }
.content main button.secondary.ib { width: 40px; min-width: 40px; padding: 0; display: inline-grid; place-items: center; }
.content main button.secondary.ib .ic { width: 18px; height: 18px; }
.topbar .sp, .tools .sp, .legend .sp { flex: 1; }
.sbox { display: flex; align-items: center; gap: 8px; margin: 0; height: 40px; width: 250px; padding: 0 12px; border: 1px solid #CFCFC4; border-radius: 12px; background: var(--shiro-neri); color: var(--ai-nezumi); }
.sbox .ic { width: 18px; height: 18px; flex: none; }
.sbox input.tsearch { border: 0; background: transparent; min-height: 0; height: 100%; padding: 0; outline: 0; font: inherit; }
.tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.chip.grey { background: #E8E8DE; color: #424D54; } .chip .ic { width: 14px; height: 14px; }
.scroll.wrap { border: 1px solid #DEDED4; border-radius: 20px; background: #FDFDFA; overflow-x: auto; }
.wgrid { gap: 0; min-width: 640px; }
.wh { text-align: center; padding: 10px 4px 6px; border-bottom: 1px solid #E6E6DC; border-left: 1px solid #E6E6DC; display: flex; flex-direction: column; align-items: center; }
.wh:first-child { border-left: 0; }
.wh .wd { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ai-nezumi); font-weight: 600; }
.wh b { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 15px; font-size: 1.25rem; }
.wh.today b { background: #1F3D2E; color: var(--shiro-neri); }
.wt { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 4px; line-height: 1.25; }
.wt b { font-size: 1rem; color: var(--text); } .wt span { font-size: .7rem; color: var(--ai-nezumi); }
.wc { background: transparent; border: 0; border-left: 1px solid #E6E6DC; border-radius: 0; }
.wbr { background: #EDEDE4; color: var(--ai-nezumi); font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; display: flex; align-items: center; padding-left: 10px; z-index: 0; }
button.wl { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin: 3px; padding: 9px 12px; border-radius: 14px; font-size: .75rem; z-index: 1; min-height: 0; }
button.wl b { font-size: .875rem; } button.wl .lm { opacity: .85; } button.wl .lt { font-size: .75rem; margin-top: 4px; }
button.wl .lf { display: flex; gap: 8px; align-items: center; margin-top: auto; padding-top: 6px; } button.wl .lf .ic { width: 14px; height: 14px; }
button.wl .tag { margin: 6px 0 0; }
.tag.exam { border-radius: 14px; padding: 3px 10px; font-size: .75rem; font-weight: 600; }
.whol { margin: 3px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: .75rem; }
.whol b { font-size: .95rem; color: #5E4435; } .whol .ic { width: 22px; height: 22px; color: #7A5A10; }
.c-rose { background: #EAF1E6; color: #3F6B3A; } .c-rose .lt { color: #3F6B3A; }
.legend { align-items: center; } .legend i.pflicht { background: repeating-linear-gradient(135deg, #F8F0DC, #F8F0DC 3px, #EBD9A6 3px, #EBD9A6 6px); } .legend i.frei { background: #EDEDE4; } .legend i.exam { background: #1F3D2E; }
.legend .ic { width: 14px; height: 14px; }
@media (max-width: 899px) { .sbox { width: 100%; order: 9; } .topbar { flex-wrap: wrap; } }

/* ---------- Mockup v2: Stundenplan ---------- */
.tt2 { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: 16px; align-items: start; }
.tt-side { display: flex; flex-direction: column; gap: 12px; }
.tt-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; } .tt-head h2 { margin: 0; font-size: 1rem; }
.tt-head .sp { flex: 1; }
.tt-grid { padding: 14px 16px; }
table.tt { border-collapse: collapse; width: 100%; }
table.tt th { color: var(--ai-nezumi); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; padding: 6px; border-bottom: 1px solid #E6E6DC; }
table.tt td { background: transparent; border: 0; border-left: 1px solid #E6E6DC; border-radius: 0; padding: 3px; height: 58px; min-width: 90px; vertical-align: top; }
table.tt th.time { border: 0; text-align: center; width: 60px; } table.tt th.time b { display: block; color: var(--text); } table.tt th.time .hint { font-size: .7rem; }
table.tt tr.brk td { background: #EDEDE4; color: var(--ai-nezumi); height: 24px; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border-left: 0; padding: 0 10px; }
button.slot { border: 0; border-radius: 12px; padding: 8px 10px; min-height: 52px; height: 100%; margin: 0; display: flex; flex-direction: column; gap: 2px; }
button.slot b { font-size: .85rem; } button.slot span { font-size: .75rem; opacity: .85; }
button.slot.sel { outline: 2.5px solid var(--chitose-midori); outline-offset: 1px; }
button.add { border: 1px dashed #CFCFC4; border-radius: 12px; background: transparent; color: var(--ai-nezumi); min-height: 48px; }
.ttl { display: flex; flex-direction: column; } .ttl h2 { font-size: 1.5rem; }
@media (max-width: 1099px) { .tt2 { grid-template-columns: 1fr; } }
.span2 { grid-column: 1 / -1; } .lb { display: block; font-size: .9rem; color: var(--ai-nezumi); margin: .2rem 0 .3rem; }
.swatches { display: flex; gap: 10px; }
.content main button.sw { width: 26px; min-width: 26px; height: 26px; min-height: 26px; padding: 0; border-radius: 13px; border: 0; }
.sw-green { background: #7DB596; } .sw-brown { background: #C49479; } .sw-slate { background: #9AA8AF; } .sw-rose { background: #8DB985; } .sw-ochre { background: #DDBC5C; }
.content main button.sw.on { box-shadow: 0 0 0 2px #FBFBF7, 0 0 0 4px #2B343A; }
.seg.full { display: flex; } .content main .seg.full button { flex: 1; justify-content: center; }
ul.hol li { justify-content: flex-start; gap: 10px; } ul.hol li .hl { flex: 1; display: flex; flex-direction: column; } ul.hol small { color: var(--ai-nezumi); font-size: .75rem; }
.sq { width: 22px; height: 22px; border-radius: 7px; flex: none; background: #E6E6DC; }
.sq.k-pflichttag { background: repeating-linear-gradient(135deg, #EBD9A6 0 4px, #F8F0DC 4px 8px); }
.b-none { --b: transparent; --on: currentColor; }
.side nav.tabs button.b-none .ic svg { background: transparent; }
button.pill.on, button.pill:not([class*="c-"]).on { background: #2B343A; border-color: #2B343A; color: #FBFBF7; }
@media (min-width: 900px) { .side { overflow: hidden; } .side nav.tabs { overflow-y: auto; min-height: 0; } .side .brand, .side .foot { flex: none; } }

/* ---------- Mockup v2: gemeinsame Bausteine für alle Seiten ---------- */
.pagehead { margin: 0 0 16px; } .pagehead h1 { margin: 0; font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; } .pagehead .sub { color: var(--ai-nezumi); font-size: .875rem; margin: 0; text-align: left; }
.content main input, .content main select, .content main textarea { background: var(--shiro-neri); border: 1px solid #CFCFC4; border-radius: 12px; min-height: 40px; padding: 8px 12px; font: inherit; }
.content main textarea { min-height: 88px; }
.content main input[type=checkbox], .content main input[type=radio] { min-height: 0; width: auto; accent-color: var(--chitose-midori); }
.content main label { font-size: .8125rem; font-weight: 600; color: var(--ai-nezumi); margin: .7rem 0 .25rem; }
.content main label.inline, .content main label.check { font-weight: 500; color: var(--text); }
.content main button { min-height: 40px; border-radius: 12px; padding: 0 14px; font-weight: 600; font-size: .875rem; }
.content main button.secondary, .content main button.danger { background: var(--shiro-neri); border-color: #CFCFC4; color: var(--text); }
.content main button.danger { color: #9b2c2c; border-color: #E2C4C4; }
.content main button.link { background: none; border: 0; color: var(--chitose-midori); min-height: 0; padding: .25rem; font-weight: 600; text-decoration: underline; }
.content main .card { border-radius: 16px; padding: 16px; box-shadow: none; }
.content main .card h2, .content main .card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 8px; }
.content main .card h3 { font-size: .9375rem; }
.content main .hint, .content main .meta { color: var(--ai-nezumi); font-size: .8125rem; }
/* Unterseiten-Leiste als Segment-Umschalter */
.content main .row[role=tablist] { display: inline-flex; flex-wrap: wrap; gap: 0; background: #E8E8DE; border-radius: 12px; padding: 3px; align-self: flex-start; }
.content main .row[role=tablist] button.pill { background: transparent; border: 0; color: #424D54; height: 34px; min-height: 34px; padding: 0 14px; border-radius: 9px; font-size: .8125rem; font-weight: 600; outline: 0; }
.content main .row[role=tablist] button.pill.on { background: var(--shiro-neri); color: var(--text); box-shadow: 0 1px 2px rgba(43,52,58,.14); }
/* Tabellen */
.content main table { border-collapse: collapse; width: 100%; font-size: .875rem; }
.content main table:not(.tt) th { text-align: left; color: var(--ai-nezumi); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; padding: 8px 10px; border-bottom: 1px solid #E6E6DC; }
.content main table:not(.tt) td { padding: 10px; border-bottom: 1px solid #EEEEE6; }
.content main tr.click:hover { background: #F3F3EC; cursor: pointer; }
/* Chips */
.tag, .chip { border-radius: 13px; } .tag { background: #EFEFE7; border: 0; color: #424D54; font-weight: 600; padding: 2px 10px; font-size: .75rem; }
/* Fortschritt, Listen */
.content main ul.devices li { border-bottom: 1px solid #EEEEE6; padding: 10px 0; }
.content main .error { color: #9b2c2c; }
.content main article.card, .content main li.card { padding: 14px 16px; }

/* ---------- Community: Beitragskarten ---------- */
.content main .seg.wrapseg { flex-wrap: wrap; align-self: flex-start; margin: 8px 0; }
ul.devices li.com-post { display: grid; grid-template-columns: 42px 1fr; column-gap: 14px; align-items: start; justify-content: stretch; padding: 14px 0; }
ul.devices li.com-post .pa { grid-row: 1 / span 2; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: .875rem; font-weight: 700; }
.pa0 { background: #DCE9E1; color: #1F3D2E; } .pa1 { background: #F4E4DB; color: #5E4435; } .pa2 { background: #E3E8EA; color: #3B464C; } .pa3 { background: #EAF1E6; color: #3F6B3A; }
ul.devices li.com-post button.link { text-align: left; font-size: 1.0625rem; font-weight: 700; color: var(--text); text-decoration: none; min-height: 0; padding: 0; justify-self: start; }
ul.devices li.com-post .hint { grid-column: 2; }
@media (max-width: 899px) { .side nav.tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; } .side nav.tabs button { flex: none; } .side nav.tabs button .lbl { white-space: nowrap; } }

/* Konferenzen / Weiterbildung: Liste links, Details rechts */
.cv-split { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.cv-aside { display: flex; flex-direction: column; gap: 12px; padding: 14px; position: sticky; top: 12px; }
.cv-search { width: 100%; height: 38px; border-radius: 10px; }
.cv-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { height: 28px; padding: 0 12px; border-radius: 14px; border: 1px solid #DEDED4; background: var(--shiro-neri); color: #424D54; font-size: .8125rem; font-weight: 600; cursor: pointer; }
.pill.on { background: var(--chitose-midori); border-color: var(--chitose-midori); color: #fff; }
.cv-list { display: flex; flex-direction: column; gap: 6px; }
.gi { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--text); cursor: pointer; font: inherit; }
.gi:hover { background: #F3F3EC; } .gi.on { background: #EAF1E6; border-color: #C9DCC2; }
.gi small { color: var(--ai-nezumi); font-size: .75rem; }
.st { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; font-size: .6875rem; font-weight: 600; }
.st.wa { background: #EFE6E1; color: #5C4033; } .st.ok { background: #EAF1E6; color: #3F6B3A; } .st.ne { background: #EFEFE7; color: #3B464C; }
.cv-hint { margin: 0; font-size: .75rem; color: var(--ai-nezumi); }
.pagehead { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 16px; }
.pagehead .sub { grid-column: 1; } .pagehead > button, .pagehead > .ha { grid-column: 2; grid-row: 1 / span 2; }
.primary-act { height: 40px; border-radius: 12px; padding: 0 16px; font-weight: 600; }
@media (max-width: 899px) { .cv-split { grid-template-columns: 1fr; } .cv-aside { position: static; } }

/* angeheftete Gedanken */
article.pinned { border-left: 4px solid var(--chaji-iro); background: #F6F1EC; }
.pinmark { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; padding: 2px 8px 2px 6px; border-radius: 12px; background: #EFE6E1; color: #5C4033; font-size: .75rem; font-weight: 600; vertical-align: middle; }
.pinmark svg { width: 16px; height: 16px; }
h3 .pinmark { padding: 3px 6px; }

/* Woche: wie Mockup (Hinweis, Sync-Chip, Schaltflächen) */
.lnk { color: var(--chitose-midori); font-weight: 600; text-decoration: underline; }
.chip.ok { background: #EAF1E6; color: #3F6B3A; } .chip .dot { width: 8px; height: 8px; border-radius: 4px; background: currentColor; display: inline-block; }
.tools button { display: inline-flex; align-items: center; gap: 8px; } .tools button .ic { width: 18px; height: 18px; }
.whol b { font-size: .9375rem; } .whol.k-pflichttag span { font-size: .8125rem; font-weight: 500; }
.whol.k-pflichttag .ic { width: 26px; height: 26px; }
.side .badge[data-status="offline"] { padding: 9px 10px; font-size: .8125rem; font-weight: 600; border-radius: 11px; line-height: 1.25; }

/* Jahresplanung */
.ygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }

.yg { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.yw { font-size: .6875rem; color: var(--ai-nezumi); text-align: center; font-weight: 600; text-transform: uppercase; }
.yd { height: 26px; border: 0; border-radius: 7px; background: transparent; color: var(--text); font-size: .75rem; padding: 0; min-height: 0; cursor: pointer; display: block; }
.yd.none { visibility: hidden; } .yd.we { color: #9AA5AB; } .yd:hover { background: #E8E8DE; }
.yd.k-ferien, .yd.k-frei { background: #E6E6DC; color: #5C6B73; } .yd.k-pflichttag { background: #EBD9A6; color: #7A5A10; }
.yd.ex { background: #1F3D2E; color: #FBFBF7; } .yd.today { outline: 2px solid var(--chitose-midori); outline-offset: -2px; font-weight: 700; }




/* Jahresplanung wie Mockup: Wochen als Zeilen, Fächer als Spalten */
.ha { display: flex; gap: 10px; align-items: center; }
.ha button, .tb button { display: inline-flex; align-items: center; gap: 8px; } .ha .ic, .tb .ic { width: 18px; height: 18px; }
.tb { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tb .ytitle { font-size: 1.0625rem; } .tb select { width: auto; min-width: 140px; height: 40px; }
.tb .ib { width: 40px; padding: 0; justify-content: center; }
.tw { padding: 0; overflow: hidden; } .tscroll { overflow-x: auto; }
.content main table.jp { border-collapse: separate; border-spacing: 0; table-layout: fixed; width: 100%; font-size: .75rem; }
.jp th, .jp td { border-right: 1px solid #E6E6DC; border-bottom: 1px solid #E6E6DC; padding: 0; vertical-align: middle; }
.jp tr > *:last-child { border-right: 0; }
.jp thead th.hd { height: 48px; background: #F1F1EA; font-size: .75rem; font-weight: 700; color: #2B343A; text-align: center; line-height: 1.2; padding: 0 6px; border-bottom: 1.5px solid #CFCFC4; position: relative; }
.jp thead th.w0 { text-align: left; padding-left: 14px; }
.jp th.q.nb { background: #FBFBF7; } .jp thead th.q.nb { border-bottom: 1.5px solid transparent; }
.jp tbody th.q { background: #EDEDE4; color: #424D54; font-size: .75rem; font-weight: 700; border-bottom: 1.5px solid #CFCFC4; width: 34px; }
.jp tbody th.q span { writing-mode: vertical-rl; transform: rotate(180deg); display: block; margin: 0 auto; white-space: nowrap; }
.jp tbody tr.fe th.q.nb { background: #E3E3D9; border-bottom: 1px solid #D6D6CB; }
.jp th.w { background: #FBFBF7; text-align: left; font-weight: 500; height: 36px; }
.jp th.w a { display: flex; align-items: center; gap: 10px; height: 100%; padding: 0 10px; color: #2B343A; text-decoration: none; } .jp th.w a:hover { background: #F1F1EA; }
.jp .n { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 12px; font-size: .8125rem; font-weight: 700; }
.jp th.w .wd { display: flex; flex-direction: column; line-height: 1.2; font-size: .75rem; color: #5C6B73; white-space: nowrap; } .jp th.w .wd em { font-style: normal; font-size: .6875rem; font-weight: 700; color: var(--chitose-midori); }
.jp td.c { background: #FBFBF7; height: 36px; position: relative; }
.jp td.c input { width: 100%; height: 36px; border: 0; border-radius: 0; background: transparent; font-size: .75rem; font-weight: 500; font-family: inherit; color: #2B343A; padding: 0 22px 0 8px; text-overflow: ellipsis; box-shadow: none; }
.jp td.c input:focus { outline: 2px solid var(--chitose-midori); outline-offset: -2px; background: #fff; }
.jp td.tg { background: #DCE9E1; } .jp td.ta { background: #F8F0DC; } .jp td.tr { background: #F4E4DB; }
.jp td.c button.tone { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; min-height: 0; padding: 0; border-radius: 4px; border: 1px solid rgba(43,52,58,.25); background: conic-gradient(#DCE9E1 0 33%, #F8F0DC 0 66%, #F4E4DB 0); opacity: 0; cursor: pointer; }
.jp td.c:hover button.tone, .jp td.c:focus-within button.tone { opacity: 1; }
.jp tr.cur th.w, .jp tr.cur td.c:not(.tg):not(.ta):not(.tr) { background: #EAF1E6; } .jp tr.cur .n { background: var(--chitose-midori); color: #FBFBF7; }
.jp tr.fe th.w, .jp tr.fe td.fz { background: #E3E3D9; height: 30px; } .jp tr.fe th.w { color: #424D54; }
.jp tr.fe .fd { display: block; padding: 0 10px; font-size: .75rem; font-weight: 600; color: #424D54; }
.jp td.fz { text-align: center; } .jp td.fz span { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #424D54; }
.jp tbody tr:last-child > * { border-bottom: 0; }
.jp .xcol { position: absolute; right: 2px; top: 2px; width: 18px; height: 18px; min-height: 0; padding: 0; border: 0; background: transparent; color: #5C6B73; font-size: 1rem; line-height: 1; cursor: pointer; }
.lg2 { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: .75rem; color: #5C6B73; padding: 4px 2px 12px; } .lg2 .sp { flex: 1; }
.lg2 i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 6px; vertical-align: -2px; border: 1px solid rgba(43,52,58,.12); }
.ycn { width: 220px; }
@media print { .side, .tabs, .tb, .ha, .lg2 .lnk { display: none !important; } .app { display: block; } main { padding: 0; } .tw { border: 0; } .jp td.c button.tone, .xcol { display: none; } }
.jp td.c input { margin: 0; min-height: 0; box-sizing: border-box; }
.jp tr.fe .fd { white-space: nowrap; }
.jp th.w { white-space: nowrap; }
.content main table.jp th, .content main table.jp td { padding: 0; }
.content main table.jp thead th.hd { padding: 0 6px; } .content main table.jp thead th.w0 { padding-left: 14px; }
.content main table.jp th, .content main table.jp td { border-right: 1px solid #E6E6DC; border-bottom: 1px solid #E6E6DC; }
.content main table.jp tr > *:last-child { border-right: 0; } .content main table.jp tbody tr:last-child > * { border-bottom: 0; }
.content main table.jp td.fz, .content main table.jp tr.fe th.w { border-bottom: 1px solid #D6D6CB; }

/* Termine wie Mockup */
.termine { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 16px; align-items: start; }
.tlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tlist .tr { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #EEEEE6; } .tlist .tr:last-child { border-bottom: 0; }
.tlist .bar { width: 4px; height: 36px; border-radius: 2px; flex: none; } .bar.f { background: #E3E3D9; box-shadow: inset 0 0 0 1px #CFCFC4; } .bar.h { background: #C79A2B; } .bar.o { background: #365D48; }
.tlist .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; } .tlist .nm b { font-size: .9375rem; } .tlist .nm span { font-size: .75rem; color: var(--ai-nezumi); }
.tlist .du { font-size: .8125rem; color: var(--ai-nezumi); white-space: nowrap; }
.chip.am { background: #F8F0DC; color: #7A5A10; } .chip.pa { background: #DCE9E1; color: #1F3D2E; }
.whol.k-frei, .whol.k-feiertag { background: repeating-linear-gradient(135deg, #EDEDE4, #EDEDE4 10px, #F6F6EF 10px, #F6F6EF 20px); color: #5C6B73; }
@media (max-width: 899px) { .termine { grid-template-columns: 1fr; } }
.dz { border: 1.5px dashed #CFCFC4; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; background: #F8F8F2; } .dz.over { background: #EAF1E6; border-color: var(--chitose-midori); }
.dz span { font-size: .8125rem; color: var(--ai-nezumi); }
.pv { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; } .pv li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid #EEEEE6; }
.pv label { display: flex; align-items: center; gap: 10px; flex: 1; } .pv input { width: auto; min-height: 0; } .pv .nm { display: flex; flex-direction: column; } .pv .nm span { font-size: .75rem; color: var(--ai-nezumi); }
.effects { margin: 0; padding-left: 1.1rem; font-size: .875rem; line-height: 1.6; }
.tr .ib { width: 34px; height: 34px; min-height: 0; padding: 0; display: inline-grid; place-items: center; border-radius: 10px; background: transparent; color: var(--ai-nezumi); border: 1px solid transparent; } .tr .ib:hover { background: #EEEEE6; color: var(--chitose-midori); } .tr .ib .ic svg { width: 18px; height: 18px; }
.termine form button[type=submit], .termine #dates-take, .termine #dates-csv, .termine #dates-ics { display: inline-flex; align-items: center; justify-content: center; gap: 8px; } .effects { list-style: none; padding-left: 0; } .effects li { display: flex; gap: 8px; align-items: baseline; } .effects .ic { color: var(--chitose-midori); }
button.sm { min-height: 34px; height: 34px; padding: 0 12px; font-size: .8125rem; display: inline-flex; align-items: center; gap: 6px; } .row .sp { flex: 1; }
#dates-io h3 { margin: 12px 0 0; } #dates-io .row { margin-top: 4px; }
.tb #year-addcol { margin-left: auto; }

/* Mehr Farben */
:root { --c-blue: #2F6FA8; --c-teal: #2A8C82; --c-violet: #6B4FA3; --c-orange: #D9731A; --c-red: #B3392E; --c-lime: #7E9A2B; }
.c-blue { background: #DDE8F4; color: #1F4E7A; border-left: 4px solid var(--c-blue); } .c-blue .lt { color: #1F4E7A; }
.c-teal { background: #D8EEEC; color: #1C5A57; border-left: 4px solid var(--c-teal); } .c-teal .lt { color: #1C5A57; }
.c-violet { background: #E8E0F2; color: #4B3A7A; border-left: 4px solid var(--c-violet); } .c-violet .lt { color: #4B3A7A; }
.c-orange { background: #F9E3D0; color: #8A4A12; border-left: 4px solid var(--c-orange); } .c-orange .lt { color: #8A4A12; }
.c-red { background: #F6D9D5; color: #8A2B22; border-left: 4px solid var(--c-red); } .c-red .lt { color: #8A2B22; }
.c-lime { background: #E8F0CF; color: #4A5A14; border-left: 4px solid var(--c-lime); } .c-lime .lt { color: #4A5A14; }
.c-blue-edge { border-left: 6px solid var(--c-blue); } .c-teal-edge { border-left: 6px solid var(--c-teal); } .c-violet-edge { border-left: 6px solid var(--c-violet); }
.c-orange-edge { border-left: 6px solid var(--c-orange); } .c-red-edge { border-left: 6px solid var(--c-red); } .c-lime-edge { border-left: 6px solid var(--c-lime); }
.sw-rose { background: #D9A0A0; } .sw-blue { background: #7FA9D1; } .sw-teal { background: #6FBDB5; } .sw-violet { background: #A994D0; } .sw-orange { background: #EFA466; } .sw-red { background: #E08A80; } .sw-lime { background: #B4C86A; }
.swatches { flex-wrap: wrap; }
.jp td.tu { background: #DDE8F4; } .jp td.tt { background: #D8EEEC; } .jp td.tv { background: #E8E0F2; } .jp td.to { background: #F6D9D5; } .jp td.tl { background: #E8F0CF; } .jp td.tk { background: #E3E8EA; }
.jp tr.cur td.c:not(.tg):not(.ta):not(.tr):not(.tu):not(.tt):not(.tv):not(.to):not(.tl):not(.tk) { background: #EAF1E6; }
.jp td.c { position: relative; }
.tonepop { position: absolute; z-index: 20; right: 0; top: 100%; display: grid; grid-template-columns: repeat(5, 24px); gap: 6px; padding: 8px; background: #FBFBF7; border: 1px solid #CFCFC4; border-radius: 12px; box-shadow: 0 6px 18px rgba(43,52,58,.18); }
.content main .tonepop button.tp { width: 24px; height: 24px; min-height: 0; padding: 0; border-radius: 50%; border: 1px solid rgba(43,52,58,.25); } .content main .tonepop button.tp.on { box-shadow: 0 0 0 2px #FBFBF7, 0 0 0 4px #2B343A; }
.tp-none { background: #FFF linear-gradient(135deg, transparent 45%, #B3261E 45% 55%, transparent 55%); } .tp-g { background: #DCE9E1; } .tp-a { background: #F8F0DC; } .tp-r { background: #F4E4DB; } .tp-u { background: #DDE8F4; } .tp-t { background: #D8EEEC; } .tp-v { background: #E8E0F2; } .tp-o { background: #F6D9D5; } .tp-l { background: #E8F0CF; } .tp-k { background: #E3E8EA; }
.jp td.c button.tone { background: conic-gradient(#DCE9E1 0 20%, #F8F0DC 0 40%, #DDE8F4 0 60%, #E8E0F2 0 80%, #F6D9D5 0); }
@media print { .tonepop { display: none !important; } }
.tlist .bar.s { background: var(--chitose-midori); }

.pickbar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 0 0 8px; border-radius: 12px; background: #F8F0DC; color: #7A5A10; font-weight: 600; font-size: .875rem; } .pickbar .ic { width: 18px; height: 18px; }
td.target { background: #EAF1E6; outline: 2px dashed var(--chitose-midori); outline-offset: -3px; } td.over { background: #DCE9E1; outline: 2px solid var(--chitose-midori); outline-offset: -3px; }
.content main button.drop { width: 100%; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--chitose-midori); color: #FBFBF7; border: 0; border-radius: 10px; font-size: .8125rem; padding: 0 8px; } .content main button.drop .ic { width: 16px; height: 16px; }
button.slot.picked { box-shadow: 0 0 0 3px #7A5A10; } button.slot[draggable=true] { cursor: grab; }
#slot-form .row button { display: inline-flex; align-items: center; gap: 6px; } #slot-form .row .ic { width: 16px; height: 16px; }

/* Einstellungen: Fächer und Blattstruktur */
.subjlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.subjlist li { display: flex; align-items: center; gap: .6rem; padding: .35rem .5rem; border: 1px solid var(--line, #d9ddd5); border-radius: 8px; }
.subjlist .nm { flex: 1; font-weight: 500; }
.subjlist .dot { width: 14px; height: 14px; min-height: 0; padding: 0; border-radius: 50%; display: inline-block; flex: none; }
.bgtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem; }
button.bgtile { display: flex; flex-direction: column; gap: .4rem; align-items: stretch; padding: .4rem; background: transparent; color: inherit; border: 1.5px solid var(--line, #d9ddd5); border-radius: 10px; font-weight: 500; text-align: center; }
button.bgtile.on { border-color: #365D48; box-shadow: 0 0 0 2px #365D4833; }
.bgprev { position: relative; display: block; height: 64px; border-radius: 6px; background-color: #fff; border: 1px solid #e3e6df; }
.bgprev svg { position: absolute; right: 4px; top: 4px; width: 16px; height: 16px; color: #fff; background: #365D48; border-radius: 50%; padding: 2px; }
.bg-grid { background-image: linear-gradient(#D5DBD2 1px, transparent 1px), linear-gradient(90deg, #D5DBD2 1px, transparent 1px); background-size: 14px 14px; }
.bg-lined { background-image: linear-gradient(90deg, transparent 22px, #D9A89B 22px 23px, transparent 23px), repeating-linear-gradient(transparent 0 15px, #D5DBD2 15px 16px); }
.bg-dotted { background-image: radial-gradient(#8F9690 1px, transparent 1.5px); background-size: 14px 14px; }
.bg-cornell { background-image: linear-gradient(90deg, transparent 30%, #C0C0B6 30% calc(30% + 1px), transparent calc(30% + 1px)), linear-gradient(transparent 80%, #C0C0B6 80% calc(80% + 1px), transparent calc(80% + 1px)); }

/* Sitzordnung: Elemente per Drag & Drop verschieben */
.room.moving { outline: 2px dashed #365D48; outline-offset: 3px; touch-action: none; }
.room.moving .rel, .room.moving button.seat { cursor: grab; touch-action: none; user-select: none; }
.rel.mv { box-shadow: 0 0 0 2px #365D4866; }
.rel .rh { position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; cursor: nwse-resize; background: #365D48; border-radius: 4px 0 4px 0; touch-action: none; }
.rel.mv { overflow: visible; }
button.secondary.on { background: #365D48; color: #FBFBF7; border-color: #365D48; }

/* Einstellungen: Fächer und Sprache nebeneinander */
.setgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 760px) { .setgrid { grid-template-columns: minmax(0, 1fr); } }
#subjects-card { padding: .8rem 1rem; gap: .5rem; }
#subjects-card h2 { font-size: 1.05rem; margin: 0; }
#subjects-card .subjlist { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .3rem; max-height: 11rem; overflow: auto; }
#subjects-card .subjlist li { padding: .15rem .35rem; font-size: .85rem; }
#subjects-card .subjlist button.ib { min-height: 28px; min-width: 28px; padding: .15rem; }
#sj-form .row { flex-wrap: nowrap; } #sj-form .row input { flex: 1; min-width: 0; } #sj-form .row button { flex: none; }

/* Sync & Backup: Layout und Stil wie im Mockup */
.syncgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 408px); gap: 16px; align-items: start; }
@media (max-width: 960px) { .syncgrid { grid-template-columns: minmax(0, 1fr); } }
.syncgrid .card { padding: 18px; border-radius: 16px; }
.syncgrid .card h2 { font-size: 1rem; font-weight: 700; margin: 0 0 .1rem; }
.syncgrid .card h3 { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5C6B73; margin: .8rem 0 .1rem; }
.syncgrid .hint { font-size: .8rem; line-height: 1.45; color: #5C6B73; }
.syncgrid .chip, #sync-chip { border: 0; }
.chip.er { background: #F4E1DD; color: #8A2B1F; }
.row.between { justify-content: space-between; align-items: center; flex-wrap: nowrap; }
.sechead { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5C6B73; margin: .4rem 0 0; }
.meter-box { padding: 12px 14px; border-radius: 12px; background: #F6F6F0; border: 1px solid #DEDED4; display: grid; gap: 8px; }
.meter { height: 8px; border-radius: 4px; background: #E3E3D9; } .meter i { display: block; height: 8px; border-radius: 4px; background: #365D48; }
ul.rows { list-style: none; margin: 0; padding: 0; }
ul.rows .rw { display: flex; align-items: center; gap: 12px; min-height: 52px; border-top: 1px solid #EDEDE4; } ul.rows .rw:first-child { border-top: 0; }
ul.rows .rw b { display: block; font-size: .9rem; font-weight: 600; } ul.rows .rw .t { font-size: .75rem; color: #5C6B73; } ul.rows .sp { flex: 1; min-width: 0; }
.tile { width: 36px; height: 36px; flex: none; border-radius: 10px; background: #E3E8EA; color: #3B464C; display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.tile svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
button.sm, label.button.sm { min-height: 34px; padding: 0 12px; font-size: .8rem; border-radius: 10px; }
#cal-card .row { gap: 8px; }
#cal-card #cal-link, #cal-card input[readonly] { border-radius: 10px; }
#cal-card h3 { margin-top: .6rem; padding-top: .8rem; border-top: 1px solid #EDEDE4; }
#export-card .row button, #export-card .row .button { border-radius: 999px; background: #FBFBF7; color: #2B343A; border: 1px solid #DADACF; min-height: 36px; padding: 0 14px; font-weight: 600; font-size: .85rem; }
#sub-card { border: 2px solid #365D48; background: #E6EFE9; }
#delete-card { border-color: #E3C9C4; }
#cal-card label.button.secondary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; font-size: .95rem; font-weight: 600; border-radius: 12px; background: #FBFBF7; color: #2B343A; border: 1px solid #CFCFC4; }
.syncgrid .card p:not(.hint):not(.error) { font-size: .9rem; line-height: 1.45; }

/* Einklappbare Menügruppen */
.side .nsec[role=button] { display: flex; align-items: center; justify-content: space-between; cursor: pointer; border-radius: 8px; user-select: none; }
.side .nsec[role=button]:hover { color: #FBFBF7; }
.side .nsec[role=button]:focus-visible { outline: 2px solid #FBFBF7; outline-offset: 1px; }
.side .nsec svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.side .nsec[aria-expanded=false] svg { transform: rotate(-90deg); }
.side nav.tabs button[hidden] { display: none; }
@media (max-width: 899px) { .side nav.tabs button[hidden] { display: flex; } }
.side .nsec svg { width: 22px; height: 22px; stroke-width: 2.6; flex: none; }
.side .nsec[role=button] { min-height: 36px; padding-right: 8px; }
.ink-bar button.icon-only { display: inline-flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px; padding: 0; border-radius: 10px; }
.ink-bar button.icon-only .ic svg { width: 22px; height: 22px; }
/* Handschrift-Leiste: Piktogramm folgt der Textfarbe in allen Zuständen */
.content main .ink-bar button.icon-only { color: var(--text); background: var(--shiro-neri); }
.content main .ink-bar button.icon-only:hover { background: #E6EFE9; color: #365D48; border-color: #365D48; }
.content main .ink-bar button.icon-only.on, .content main .ink-bar button.icon-only.on:hover { background: #365D48; color: #FBFBF7; border-color: #365D48; }
.ink-bar button.icon-only .ic, .ink-bar button.icon-only .ic svg { color: inherit; stroke: currentColor; }
.ink-bar button.icon-only:focus-visible { outline: 2px solid #365D48; outline-offset: 2px; }
.size-box { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.size-box input[type=range] { width: 140px; min-height: 0; padding: 0; accent-color: #365D48; }
.size-prev { width: 36px; height: 36px; display: grid; place-items: center; flex: none; }
.size-dot { display: block; border-radius: 50%; }

/* Lehrstoff wie im Mockup */
.fbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fbar .fl { font-size: .7rem; font-weight: 700; letter-spacing: .08em; color: #5C6B73; margin-right: 2px; }
button.pill.fpill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 19px; font-size: .9rem; font-weight: 600; }
button.pill.fpill .n { font-size: .75rem; font-weight: 600; color: #5C6B73; }
button.pill.fpill.on .n { color: #E6EBE2; }
button.pill.fpill.on { background: #2B343A; border-color: #2B343A; color: #FBFBF7; }
button.pill.fpill .dot { width: 10px; height: 10px; min-height: 0; padding: 0; border-radius: 50%; display: inline-block; flex: none; }
button.pill.fpill.fadd { width: auto; flex: none; border-style: dashed; color: #5C6B73; background: transparent; }
button.pill.fpill .ic svg { width: 14px; height: 14px; }
.ustools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.usearch { width: 100%; max-width: 313px; height: 44px; border-radius: 12px; }
.seg2 { display: inline-flex; background: #E6E6DC; border-radius: 12px; padding: 3px; }
.seg2 button { height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: #3B464C; font-weight: 600; font-size: .85rem; }
.seg2 button.on { background: #FBFBF7; color: #2B343A; box-shadow: 0 1px 2px rgba(43,52,58,.14); }
.ustools .sp { flex: 1; }
.usplit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); gap: 16px; align-items: start; }
@media (max-width: 960px) { .usplit { grid-template-columns: minmax(0, 1fr); } }
.ulist { display: flex; flex-direction: column; gap: 10px; }
button.ucard { display: grid; grid-template-columns: 18px 40px minmax(0, 1fr) auto; align-items: start; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 16px; border: 1px solid #DEDED4; background: #FBFBF7; color: var(--text); cursor: pointer; min-height: 0; font-weight: 400; }
button.ucard:hover { border-color: #C9DCC2; }
button.ucard.on { border: 2px solid #365D48; padding: 13px 15px; box-shadow: 0 0 0 3px rgba(54,93,72,.14); }
button.ucard.drag { opacity: .5; } button.ucard.over { outline: 2px dashed #365D48; outline-offset: 2px; }
button.ucard .grip { color: #8A9189; cursor: grab; padding-top: 8px; } button.ucard .grip svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
button.ucard .no { width: 36px; height: 36px; border-radius: 50%; background: #EAF1E6; color: #365D48; display: grid; place-items: center; font-weight: 700; }
button.ucard .no.act { background: #365D48; color: #FBFBF7; }
button.ucard .ubody { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
button.ucard .ubody b { font-size: 1.02rem; font-weight: 700; }
button.ucard .ubody small { color: #5C6B73; font-size: .85rem; line-height: 1.35; }
button.ucard .ext { display: flex; gap: 14px; } button.ucard .ext span { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; }
button.ucard .ext svg { width: 14px; height: 14px; }
button.ucard .umeta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 150px; }
button.ucard .umeta small { color: #5C6B73; font-size: .8rem; white-space: nowrap; }
button.ucard .meter { width: 136px; }
.st.pa { background: #DCE9E1; color: #1F3D2E; }
.ucol #unit-plan h2 { font-size: 1.05rem; }
.kal-wrap { overflow-x: auto; }
table.kal { width: 100%; border-collapse: separate; border-spacing: 6px; table-layout: fixed; }
table.kal th { font-size: .7rem; font-weight: 700; color: #5C6B73; letter-spacing: .04em; text-align: center; }
table.kal th[scope=row] { text-align: left; width: 64px; } table.kal th[scope=row] b { display: block; font-size: .8rem; color: var(--text); letter-spacing: 0; } table.kal th[scope=row] small { font-weight: 500; font-size: .7rem; letter-spacing: 0; }
table.kal td { padding: 0; }
.kc { display: flex; gap: 3px; height: 40px; }
.k { flex: 1; min-width: 0; height: 100%; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: .9rem; padding: 0; }
button.k.on, .k.on { background: #DCE9E1; color: #1F3D2E; border: 0; min-height: 0; cursor: pointer; }
.k.pv { border: 1.5px dashed #365D48; color: #365D48; background: transparent; }
.k.nil { border: 1.5px dashed #DADACF; }
.k.hol { background: repeating-linear-gradient(45deg, #F5E3B5 0 5px, #FBF3DC 5px 10px); color: #7A5A10; } .k.hol svg { width: 14px; height: 14px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: #5C6B73; } .legend span { display: inline-flex; align-items: center; gap: 6px; }
.k.sm { display: inline-block; width: 14px; height: 14px; border-radius: 4px; flex: none; }
.infobox { padding: 12px 14px; border-radius: 12px; background: #E6EFE9; font-size: .9rem; line-height: 1.45; }
label.chk { display: flex; align-items: center; gap: 8px; } label.chk input { width: 20px; height: 20px; min-height: 0; accent-color: #365D48; }
button.bigbtn { width: 100%; height: 48px; border-radius: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.primary-act .ic { vertical-align: middle; } .primary-act .ic svg { width: 16px; height: 16px; }
