/* NOG-LOG – Gestaltung */
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 400; font-display: swap; src: url('../fonts/atkinson-hyperlegible-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 400; font-display: swap; src: url('../fonts/atkinson-hyperlegible-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 700; font-display: swap; src: url('../fonts/atkinson-hyperlegible-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 700; font-display: swap; src: url('../fonts/atkinson-hyperlegible-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Lexend'; font-weight: 400; font-display: swap; src: url('../fonts/lexend-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC; }
@font-face { font-family: 'Lexend'; font-weight: 500; font-display: swap; src: url('../fonts/lexend-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC; }
@font-face { font-family: 'Lexend'; font-weight: 600; font-display: swap; src: url('../fonts/lexend-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC; }
@font-face { font-family: 'Lexend'; font-weight: 400; font-display: swap; src: url('../fonts/lexend-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+1E00-1E9F, U+A720-A7FF; }
@font-face { font-family: 'Lexend'; font-weight: 500; font-display: swap; src: url('../fonts/lexend-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+1E00-1E9F, U+A720-A7FF; }
@font-face { font-family: 'Lexend'; font-weight: 600; font-display: swap; src: url('../fonts/lexend-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+1E00-1E9F, U+A720-A7FF; }

:root {
  --bg: #F2DCC8; --surface: #FFFFFF; --soft: #F8F2EC; --soft2: #F1EAE3; --track: #ECE1D7; --line: #DDD0C4; --ring: #C9B9AB;
  --ink: #17313F; --ink2: #33474F; --muted: #4E5A60;
  --done: #1D5E8C; --done-tint: #E3EEF5; --work: #E39A2E; --work-tint: #FCEBCF; --warn-ink: #8A5A0E;
  --danger: #A0402A; --danger-tint: #F7E7E2; --ok-tint: #E3F0E8;
  --r-xl: 32px; --r-lg: 24px; --r-md: 18px; --r-sm: 14px;
  --shadow: 0 8px 24px rgba(80, 40, 10, 0.10);
  --body: 'Atkinson Hyperlegible', Verdana, 'Segoe UI', sans-serif;
  --display: 'Lexend', 'Atkinson Hyperlegible', 'Segoe UI', sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-text-size-adjust: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--done); outline-offset: 3px; }
a { color: var(--done); }
#app { min-height: 100%; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout-Helfer */
.row { display: flex; flex-direction: row; }
.col { display: flex; flex-direction: column; }
.wrap { flex-wrap: wrap; }
.center { align-items: center; } .start { align-items: flex-start; } .baseline { align-items: baseline; }
.between { justify-content: space-between; } .end { justify-content: flex-end; } .centerj { justify-content: center; }
.grow { flex: 1 1 auto; } .minw0 { min-width: 0; }
.gap2 { gap: 2px; } .gap4 { gap: 4px; } .gap5 { gap: 5px; } .gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap10 { gap: 10px; } .gap12 { gap: 12px; } .gap14 { gap: 14px; } .gap16 { gap: 16px; } .gap18 { gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.grid5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.lh { line-height: 1.3; } .left { text-align: left; } .center-text { text-align: center; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .nowrap { white-space: nowrap; }
.maxw52 { max-width: 52ch; } .maxw60 { max-width: 60ch; } .maxw64 { max-width: 64ch; }

/* Typografie */
.h1 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1.2; letter-spacing: -0.015em; }
.h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.25; }
.h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 18px; }
.lex { font-family: var(--display); font-weight: 500; }
.big { font-size: 18px; } .count { font-size: 24px; font-weight: 600; } .strong, .strong-s { font-weight: 700; } .strong-s { font-size: 15px; }
.small { font-size: 14px; } .muted { color: var(--muted); } .mono { font-family: var(--mono); font-size: 14px; }
.warn-text { color: var(--warn-ink); font-weight: 700; } .danger-text { color: var(--danger) !important; }
p { margin: 0; }

/* Grundgerüst */
.shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; padding-top: max(14px, env(safe-area-inset-top)); }
.brand { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; }
.role-badge { font-size: 13px; font-weight: 700; color: #FFFFFF; background: var(--ink); border-radius: 999px; padding: 4px 12px; }
.role-badge.admin { background: #7A2E1E; }
.user-chip { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 0; border-radius: 999px; padding: 5px 18px 5px 5px; min-height: 50px; text-align: left; }
.avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: #D7E6F0; color: var(--done); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.avatar-sm { width: 36px; height: 36px; font-size: 13px; background: var(--surface); color: var(--ink); }
.avatar.white { background: var(--surface); color: var(--ink); }
.dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.dot-empty { background: var(--surface); box-shadow: inset 0 0 0 2px var(--ring); }
.page { flex: 1 1 auto; min-height: 0; width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px 24px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.panel { background: var(--surface); border-radius: var(--r-xl); }
.panel.scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.pad { padding: 24px; }
.banner { margin: 0 24px 12px; border-radius: 20px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 700; }
.banner span { flex: 1 1 280px; }
.banner.warn { background: var(--work-tint); color: #6E4A10; }
@media (min-height: 700px) and (min-width: 700px) { .shell { height: 100vh; height: 100dvh; } .page { display: flex; flex-direction: column; } }

/* Schaltflächen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid transparent; border-radius: 999px; padding: 10px 20px; min-height: 48px; font-weight: 700; font-size: 16px; text-decoration: none; background: var(--soft); color: var(--ink); transition: background .2s ease, transform .1s ease; }
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn-primary { background: var(--done); color: #FFFFFF; }
.btn-primary:disabled { background: #E4D8CC; color: var(--muted); }
.btn-dark { background: var(--ink); color: #FFFFFF; }
.btn-ghost { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.btn-ghost:disabled { border-color: var(--line); color: #8C8279; }
.btn-amber { background: var(--work); color: var(--ink); }
.btn-danger { background: var(--danger); color: #FFFFFF; }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.btn-lg { min-height: 54px; font-size: 17px; }
.icon-btn { width: 48px; height: 48px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--soft); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; }
.icon-btn.sm { width: 40px; height: 40px; font-size: 18px; } .icon-btn.xs { width: 32px; height: 32px; background: transparent; }
.icon-btn:disabled { background: var(--soft2); color: #B3A698; }
.white-box .icon-btn { background: var(--soft); }
.round-btn { width: 52px; height: 52px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.link-btn { border: 0; background: transparent; padding: 8px 4px; font-weight: 700; font-size: 14px; align-self: flex-start; min-height: 44px; }
.ico { display: inline-flex; line-height: 0; }
.rot180 svg { transform: rotate(180deg); } .ico svg { transition: transform .25s ease; }
.sep { color: #8C8279; }

/* Reiter */
.tabs { display: flex; gap: 4px; background: rgba(255, 255, 255, 0.6); border-radius: 999px; padding: 5px; align-self: flex-start; flex-wrap: wrap; }
.tab { border: 0; background: transparent; color: #3A464C; border-radius: 999px; padding: 10px 18px; min-height: 44px; font-weight: 700; font-size: 15px; }
.tab.on { background: var(--surface); color: var(--ink); }

/* Segmentierte Auswahl */
.seg { display: inline-flex; gap: 4px; background: var(--soft); border-radius: 999px; padding: 4px; flex-wrap: wrap; }
.seg.wrap { border-radius: 22px; }
.seg-white { background: var(--surface); }
.seg-btn { border: 0; background: transparent; color: var(--ink2); border-radius: 999px; padding: 8px 16px; min-height: 44px; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background .2s ease, color .2s ease; }
.seg-btn:disabled { color: #B3A698; }
.seg-dark .seg-btn.on { background: var(--ink); color: #FFFFFF; }
.seg-full { display: flex; } .seg-full .seg-btn { flex: 1 1 0; }
.seg-status .seg-btn.on { background: var(--track); color: var(--ink); }
.seg-status .seg-btn.o-work.on { background: var(--work); color: var(--ink); }
.seg-status .seg-btn.o-done.on { background: var(--done); color: #FFFFFF; }
.seg-grad { background: var(--surface); flex-wrap: nowrap; }
.seg-grad .seg-btn { min-width: 86px; padding: 6px 12px 6px 8px; font-size: 14px; }
.seg-grad .seg-btn .dot { width: 14px; height: 14px; }
.seg-grad .lvl-rot.on { background: #C4513A; color: #FFFFFF; }
.seg-grad .lvl-gelb.on { background: #E8B83A; color: var(--ink); }
.seg-grad .lvl-gruen.on { background: #347A49; color: #FFFFFF; }
.seg-grad .lvl-blau.on { background: #2A67A0; color: #FFFFFF; }
.seg-grad .seg-btn.on .dot { background: rgba(255, 255, 255, 0.9) !important; }

/* Balken */
.bar { display: flex; height: 10px; border-radius: 999px; background: var(--track); overflow: hidden; width: 100%; }
.bar > span { height: 100%; transition: width .35s ease; }
.bar-done { background: var(--done); } .bar-work { background: var(--work); }
.bar-sm { height: 7px; } .bar-md { height: 10px; } .bar-lg { height: 12px; } .bar.grow { flex: 1 1 auto; width: auto; } .w96 { width: 96px; flex-shrink: 0; }
.pct { font-size: 15px; min-width: 46px; text-align: right; }
.legend { width: 18px; height: 9px; border-radius: 999px; display: inline-block; }
.l-done { background: var(--done); } .l-work { background: var(--work); } .l-open { background: var(--track); }

/* Chips und Hinweise */
.chip { font-size: 13px; font-weight: 700; background: var(--surface); color: var(--ink); border-radius: 999px; padding: 3px 11px; }
.chip-muted { background: #E3E9EC; color: #33474F; } .chip-ok { background: var(--ok-tint); color: #2C5E47; } .chip-warn { background: var(--work-tint); color: #6E4A10; } .chip-info { background: var(--done-tint); color: #154769; }
.chip.white { background: var(--surface); }
.notice { margin: 0; border-radius: 16px; padding: 12px 16px; font-weight: 700; font-size: 15px; }
.notice.error { background: var(--danger-tint); color: #7A2E1E; }
.notice.ok { background: var(--done-tint); color: #154769; }
.notice.warn { background: var(--work-tint); color: #6E4A10; }
.notice.info { background: var(--done-tint); color: #154769; font-weight: 400; }

/* Formulare */
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 14px; font-weight: 700; }
.input { width: 100%; font-size: 17px; color: var(--ink); background: var(--soft); border: 2px solid #E4D8CC; border-radius: 16px; padding: 11px 15px; min-height: 50px; }
.input:focus { border-color: var(--done); outline: none; box-shadow: 0 0 0 3px rgba(29, 94, 140, 0.2); }
.white-box .input, .soft-card .field .input { background: var(--surface); }
.white-box .field .input { background: var(--soft); }
.textarea { min-height: 140px; resize: vertical; line-height: 1.5; }

/* Karten */
.soft-card { background: var(--soft); border-radius: var(--r-lg); padding: 16px; }
.soft-card.white { background: var(--surface); border: 2px solid #EFE6DE; }
.soft-card.off { opacity: 0.75; }
.white-box { background: var(--surface); border-radius: 20px; padding: 14px; }

/* Anmeldung */
.login { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { width: 100%; max-width: 440px; background: var(--surface); border-radius: var(--r-xl); padding: 32px 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow); }

/* SuS: Fächer-Kacheln */
.tiles { display: flex; gap: 10px; overflow-x: auto; padding: 2px; }
.tile { flex: 1 0 168px; border: 0; text-align: left; border-radius: var(--r-lg); padding: 12px 16px 14px; min-height: 76px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; background: rgba(255, 255, 255, 0.55); }
.tile.on { background: var(--surface); box-shadow: 0 6px 18px rgba(120, 70, 30, 0.14), inset 0 0 0 2px var(--ink); }
.tile-name { font-family: var(--display); font-weight: 500; font-size: 17px; }

/* Pfadleiste */
.crumbs { position: sticky; top: 0; z-index: 2; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 12px 20px; border-bottom: 1px solid #EFE6DE; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.crumb { border: 0; background: var(--soft); border-radius: 16px; padding: 6px 13px 7px; min-height: 44px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; line-height: 1.25; max-width: 290px; text-align: left; }
.crumb .small { font-size: 12px; }
.crumb-name { font-family: var(--display); font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 264px; }

.resume { background: var(--work-tint); border-radius: var(--r-lg); padding: 16px 16px 16px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.resume .grow { flex: 1 1 280px; }

/* Lernlandkarten-Karte */
.mapcard { border-radius: 28px; background: var(--soft); transition: background .3s ease; }
.mapcard-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 16px 18px 20px; }
.mapcard-toggle { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; text-align: left; padding: 0; display: flex; flex-direction: column; gap: 6px; border-radius: 20px; }
.mapcard-title { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.25; }
.mapbody { padding: 0 16px 18px; }

/* Weg (Stationen) */
.route { display: flex; gap: 12px; }
.rail { width: 44px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; }
.rail-line { flex: 1 1 auto; width: 4px; border-radius: 2px; margin: 6px 0; background: #DDD0C4; }
.rail-line.done { background: var(--done); } .rail-line.none { background: transparent; }
.route-body { flex: 1 1 auto; min-width: 0; padding-bottom: 12px; }
.stcard { background: var(--surface); border-radius: 22px; box-shadow: 0 1px 3px rgba(23, 49, 63, 0.08); transition: box-shadow .3s ease; }
.stcard.open { box-shadow: 0 10px 28px rgba(23, 49, 63, 0.12); }
.st-toggle { width: 100%; border: 0; background: transparent; text-align: left; border-radius: 22px; padding: 12px 14px 12px 18px; min-height: 64px; display: flex; align-items: center; gap: 12px; }
.st-title { font-family: var(--display); font-weight: 500; font-size: 18px; line-height: 1.3; }
.st-tasks { padding: 0 12px 14px; }
.task-row { border: 0; background: var(--soft); border-radius: 16px; padding: 10px 12px; min-height: 52px; display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; }
.task-name { font-size: 17px; line-height: 1.35; min-width: 0; }
.type-badge { font-size: 13px; font-weight: 700; border-radius: 999px; padding: 3px 10px; flex-shrink: 0; }
.t-text { background: #E3EBDD; color: #34472A; } .t-bild { background: #EFE1EB; color: #5A3450; } .t-video { background: #DCE9F2; color: #1F4A68; }
.status-pill { font-size: 13px; font-weight: 700; border-radius: 999px; padding: 4px 12px; flex-shrink: 0; }
.s-offen { background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 2px var(--line); } .s-arbeit { background: var(--work); color: var(--ink); } .s-fertig { background: var(--done); color: #FFFFFF; }

/* Knoten (Status bzw. Vollständigkeit) */
.node { display: flex; align-items: center; justify-content: center; border-radius: 50%; font-family: var(--display); font-weight: 600; border: 0; padding: 0; }
.node-md { width: 44px; height: 44px; flex-shrink: 0; font-size: 17px; }
.viz .node { position: absolute; transform: translate(-50%, -50%); box-shadow: 0 4px 12px rgba(23, 49, 63, 0.22); }
.node-lg { width: 48px; height: 48px; font-size: 18px; }
.node-sm { width: 44px; height: 44px; font-size: 12px; font-family: var(--body); font-weight: 700; }
.node-arm { width: 56px; height: 56px; font-size: 19px; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 4px var(--ink), 0 4px 12px rgba(23, 49, 63, 0.2) !important; border: 0; }
.st-open, .c-empty { background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 2px var(--ring); }
.st-work { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 4px var(--work); }
.st-done { background: var(--done); color: #FFFFFF; }
.c-ok { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--done); }
.c-bad { background: var(--work-tint); color: var(--ink); box-shadow: inset 0 0 0 3px var(--work); }
.viz .st-open, .viz .c-empty, .viz .st-work, .viz .c-ok, .viz .c-bad { box-shadow: 0 4px 12px rgba(23, 49, 63, 0.22), inset 0 0 0 3px var(--ring); }
.viz .st-work, .viz .c-bad { box-shadow: 0 4px 12px rgba(23, 49, 63, 0.22), inset 0 0 0 4px var(--work); }
.viz .c-ok { box-shadow: 0 4px 12px rgba(23, 49, 63, 0.22), inset 0 0 0 3px var(--done); }
.viz .goal.st-open, .viz .goal.c-empty { background: var(--ink); color: #FFFFFF; }

/* Visualisierungen */
.viz { position: relative; width: 100%; border-radius: 22px; overflow: hidden; background: #F4EDDD; }
.viz-linear { aspect-ratio: 5 / 3; }
.viz-radial { aspect-ratio: 1 / 1; max-width: 640px; align-self: center; border-radius: 28px; }
.viz-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.viz-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.path-halo { fill: none; stroke: #FFFFFF; stroke-width: 20; stroke-linecap: round; opacity: 0.75; }
.path-dots { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 2 14; }
.arm-halo { fill: none; stroke: #FFFFFF; stroke-width: 22; stroke-linecap: round; opacity: 0.8; }
.arm-line { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: round; }
.sub-halo { fill: none; stroke: #FFFFFF; stroke-width: 12; stroke-linecap: round; opacity: 0.8; }
.sub-line { fill: none; stroke: var(--muted); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 2 9; }
.node-label { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; max-width: 170px; overflow: hidden; text-overflow: ellipsis; background: rgba(255, 255, 255, 0.94); border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 700; pointer-events: none; }
.radial-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--ink); color: #FFFFFF; display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px; font-family: var(--display); font-weight: 600; font-size: clamp(13px, 2.4vw, 18px); line-height: 1.2; box-shadow: 0 6px 18px rgba(23, 49, 63, 0.3); overflow: hidden; }

/* Matrix */
.matrix { background: var(--surface); border-radius: var(--r-lg); padding: 12px; display: flex; flex-direction: column; gap: 6px; overflow-x: auto; }
.mx-row { display: grid; grid-template-columns: 108px repeat(5, minmax(96px, 1fr)); gap: 6px; align-items: stretch; }
.mx-label { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 6px 8px; line-height: 1.25; font-size: 15px; }
.mx-cell { border: 0; text-align: left; border-radius: 16px; padding: 9px 9px 8px 10px; min-height: 92px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.mx-title { font-size: 13px; line-height: 1.3; font-weight: 700; }
.mx-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 700; opacity: 0.85; }
.mx-cell.st-open { background: var(--soft); box-shadow: none; color: var(--ink); }
.mx-cell.st-work { background: var(--work-tint); box-shadow: inset 0 0 0 3px var(--work); }

/* Aufgabe (SuS) */
.task-img { width: 100%; max-height: 60vh; object-fit: contain; border-radius: 20px; background: var(--soft); }
.img-ph { height: 220px; border-radius: 20px; background: #F4EDDD; color: #8A6A2E; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.video-card { border-radius: var(--r-lg); background: var(--ink); color: #FFFFFF; padding: 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.play { width: 60px; height: 60px; border-radius: 50%; background: #FFFFFF; color: var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.task-text { background: var(--soft); border-radius: var(--r-lg); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.task-text p { font-size: 19px; line-height: 1.6; max-width: 62ch; white-space: pre-wrap; }

/* Blätter */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; }
.sheet-backdrop { position: absolute; inset: 0; border: 0; padding: 0; margin: 0; background: rgba(23, 49, 63, 0.32); animation: fade .25s ease; }
.sheet { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 900px; max-height: 88vh; max-height: 88dvh; background: var(--surface); border-radius: 36px 36px 0 0; box-shadow: 0 -12px 40px rgba(80, 40, 10, 0.18); display: flex; flex-direction: column; overflow: hidden; animation: up .3s ease; }
.sheet.sm { max-width: 620px; } .sheet.lg { max-width: 1000px; }
.sheet-head { flex-shrink: 0; padding: 10px 24px 14px; border-bottom: 1px solid #EFE6DE; display: flex; flex-direction: column; gap: 8px; }
.sheet-head .h2:focus { outline: none; }
.grab { align-self: center; width: 48px; height: 5px; border-radius: 999px; background: var(--line); }
.sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 18px 24px; }
.sheet-foot { flex-shrink: 0; padding: 12px 24px 24px; padding-bottom: max(24px, env(safe-area-inset-bottom)); border-top: 1px solid #EFE6DE; display: flex; }
@keyframes up { from { transform: translate(-50%, 48px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* LuL: Fortschritt */
.table-scroll { overflow-x: auto; }
.ptable-row { display: grid; gap: 8px; align-items: center; border-radius: 20px; padding: 6px; min-width: 560px; }
.ptable-row.head { align-items: end; }
.pcell { border: 0; text-align: left; border-radius: 16px; padding: 10px 12px; min-height: 56px; display: flex; flex-direction: column; gap: 6px; background: var(--soft); }
.pcell.on { background: var(--done-tint); box-shadow: inset 0 0 0 2px var(--done); }
.detail-task { background: var(--surface); border-radius: 16px; padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; }
.mark { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.mark .ico svg { width: 16px; height: 16px; }
.m-fertig { background: var(--done); color: #FFFFFF; } .m-arbeit { background: var(--work-tint); box-shadow: inset 0 0 0 3px var(--work); } .m-offen { box-shadow: inset 0 0 0 2px var(--ring); }
.meta-fertig { color: var(--done); } .meta-arbeit { color: var(--warn-ink); } .meta-offen { color: var(--muted); }
.grad-row { display: flex; align-items: center; gap: 12px; background: var(--soft); border-radius: 20px; padding: 8px 8px 8px 12px; flex-wrap: wrap; }

/* Editor */
.fmt-card { border: 0; background: var(--soft); border-radius: var(--r-lg); padding: 16px 18px; display: flex; align-items: center; gap: 16px; text-align: left; width: 100%; }
.fmt-ico-box { width: 76px; height: 76px; flex-shrink: 0; border-radius: 22px; background: var(--surface); display: flex; align-items: center; justify-content: center; }
.fmt-ico svg { width: 40px; height: 40px; }
.task-chip { border: 0; text-align: left; border-radius: 16px; padding: 8px 14px; min-height: 52px; max-width: 300px; display: flex; flex-direction: column; justify-content: center; gap: 1px; }
.task-chip.add { border: 2px dashed var(--ring); background: transparent; color: var(--ink2); font-weight: 700; font-size: 14px; }
.chip-title { font-size: 14px; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 270px; }
.chip-meta { font-size: 12px; font-weight: 700; }
.c-ok .chip-meta, .c-ok .mx-meta { color: var(--done); } .c-bad .chip-meta, .c-bad .mx-meta { color: var(--warn-ink); }
.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--soft); border-radius: 999px; padding: 4px; }
.step-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 22px; font-weight: 700; line-height: 1; }
.step-btn:disabled { background: transparent; color: #B3A698; }
.step-val { min-width: 34px; text-align: center; font-family: var(--display); font-weight: 600; font-size: 20px; }
.add-wide { border: 2px dashed var(--ring); background: var(--surface); color: var(--ink); border-radius: 20px; padding: 12px; min-height: 52px; font-weight: 700; font-size: 16px; }
.add-wide.sm { min-height: 44px; font-size: 14px; padding: 8px 12px; }
.add-wide:disabled { color: #8C8279; }
.img-box { background: #F4EDDD; border-radius: 20px; padding: 14px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: #5E4415; }
.thumb { width: 96px; height: 72px; object-fit: cover; border-radius: 12px; }

/* Admin */
.dropzone { border-radius: 28px; padding: 28px 22px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; background: var(--soft); box-shadow: inset 0 0 0 3px var(--line); transition: background .2s ease, box-shadow .2s ease; }
.dropzone.drag { background: var(--done-tint); box-shadow: inset 0 0 0 3px var(--done); }
.list-scroll { max-height: 220px; overflow-y: auto; }
.list-item { background: var(--soft); border-radius: 12px; padding: 7px 10px; font-size: 14px; font-weight: 700; }
.class-head { border: 0; background: var(--surface); border-radius: 16px; padding: 10px 12px 10px 14px; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; }
.lead-row { background: var(--surface); border-radius: 14px; padding: 4px 4px 4px 12px; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pick-card { border: 0; border-radius: 16px; padding: 10px 14px; min-height: 60px; text-align: left; display: flex; flex-direction: column; justify-content: center; gap: 1px; background: var(--soft); color: var(--ink); }
.pick-card:disabled { background: var(--soft2); color: #8C8279; }
.cred-row { display: grid; grid-template-columns: 40px 1.3fr 1.2fr 0.8fr 92px; gap: 10px; align-items: center; background: var(--soft); border-radius: 16px; padding: 8px 12px; min-height: 52px; }
.cred-row.head { background: transparent; min-height: 0; padding: 0 12px; }
.cred-box { background: var(--soft); border-radius: 20px; padding: 16px 18px; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; align-items: baseline; }
.cred-box .mono { font-size: 17px; }
.add-chip { border: 2px dashed var(--ring); background: var(--surface); border-radius: 999px; padding: 6px 14px; min-height: 44px; font-weight: 700; font-size: 14px; }
.toggle-pill { border: 0; background: var(--soft); color: var(--ink2); border-radius: 999px; padding: 8px 16px; min-height: 44px; font-weight: 700; font-size: 15px; }
.toggle-pill.on { background: var(--ink); color: #FFFFFF; }
.toggle-pill:disabled { background: var(--soft2); color: #8C8279; }
.switch { width: 72px; height: 44px; border: 0; padding: 0; border-radius: 999px; position: relative; background: var(--ring); transition: background .2s ease; }
.switch.on { background: var(--done); }
.knob { position: absolute; top: 5px; left: 5px; width: 34px; height: 34px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 2px 6px rgba(23, 49, 63, 0.25); transition: left .2s ease; }
.switch.on .knob { left: 33px; }

/* Ebenen der radialen Karte */
.level-h { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 9px; flex-shrink: 0; letter-spacing: 0.01em; }
.lv-basis { background: var(--ink); color: #FFFFFF; }
.lv-aufbau { background: #DCE9F2; color: #1F4A68; }
.lv-vertiefung { background: #F3E4EF; color: #5A3450; }
.radial-center { border: 0; cursor: pointer; flex-direction: column; gap: 2px; }
.radial-center.st-done { background: var(--done); } .radial-center.st-work { box-shadow: 0 6px 18px rgba(23, 49, 63, 0.3), inset 0 0 0 5px var(--work); }
.radial-center.c-ok { box-shadow: 0 6px 18px rgba(23, 49, 63, 0.3), inset 0 0 0 5px #7FB2D6; } .radial-center.c-bad { box-shadow: 0 6px 18px rgba(23, 49, 63, 0.3), inset 0 0 0 5px var(--work); }
.radial-center.st-open, .radial-center.c-empty { background: var(--ink); color: #FFFFFF; }
.rc-title { font-family: var(--display); font-weight: 600; } .rc-sub { font-family: var(--body); font-size: 11px; font-weight: 700; opacity: 0.85; }
.viz .node-arm.st-done { background: var(--done); color: #FFFFFF; box-shadow: 0 4px 12px rgba(23, 49, 63, 0.2) !important; }
.viz .node-arm.st-work, .viz .node-arm.c-bad { box-shadow: inset 0 0 0 4px var(--work), 0 4px 12px rgba(23, 49, 63, 0.2) !important; }
.viz .node-arm.c-ok { box-shadow: inset 0 0 0 4px var(--done), 0 4px 12px rgba(23, 49, 63, 0.2) !important; }
.node.core { background: var(--ink); color: #FFFFFF; box-shadow: none; }
.node.core.st-done { background: var(--done); }
.mapcard-btn { border: 0; width: 100%; text-align: left; display: flex; align-items: center; gap: 12px; padding: 18px 16px 18px 20px; }
.chip-soft { background: var(--soft); }
.w200 { width: 200px; flex-shrink: 0; }
.bar-empty { background: var(--soft2); }
.empty-state { background: var(--soft); border-radius: var(--r-lg); padding: 28px 22px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

/* Startseite und Kompetenzen */
.page.home { overflow-y: auto; }
.home-card { background: var(--surface); border-radius: var(--r-xl); padding: 16px 18px 18px; flex-shrink: 0; }
.home-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.tile-lg { background: var(--soft); min-height: 104px; gap: 8px; }
.tile-lg:hover { background: var(--soft2); }
.goals-card { flex-shrink: 0; }
.dot-lg { width: 16px; height: 16px; }
.crumb-home { flex-direction: row; align-items: center; gap: 6px; }
.komp-fach { border-top: 1px solid #EFE6DE; padding-top: 10px; }
.komp-raster { background: var(--soft); border-radius: 18px; }
.komp-head { width: 100%; border: 0; background: transparent; border-radius: 18px; padding: 10px 14px; min-height: 56px; display: flex; align-items: center; gap: 10px; text-align: left; }
.komp-body { padding: 0 14px 14px; }
.komp-row { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border-radius: 14px; padding: 8px 10px; }
.komp-chip { background: #EEF3E6; color: #34472A; border-radius: 14px; padding: 6px 6px 6px 12px; font-size: 14px; font-weight: 700; display: block; }

/* Kopfzeile einheitlich, geteilte Reiter */
.top-pill { background: var(--surface); border: 0; border-radius: 999px; min-height: 52px; box-sizing: border-box; box-shadow: 0 1px 3px rgba(80, 40, 10, 0.08); }
.user-chip.top-pill { padding: 5px 18px 5px 5px; }
.ort-pick.top-pill { border-radius: 999px; padding: 5px 16px 5px 18px; }
.logout-btn { padding: 0 20px; font-weight: 700; font-size: 15px; color: var(--ink); }
.logout-btn:hover, .user-chip:hover { background: var(--soft); }
.tabs-split { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.tabs-split .tabs { align-self: auto; }
.minh0 { min-height: 0; }
.time-box { padding: 4px 4px 4px 8px; }
.time-box .input { width: 120px; min-height: 40px; padding: 6px 10px; }
.komp-item { display: flex; flex-direction: column; gap: 6px; }
.komp-row { border: 0; width: 100%; text-align: left; cursor: pointer; align-items: center; }
.komp-item.open .komp-row { box-shadow: inset 0 0 0 2px var(--done); }
.komp-tasks { padding: 0 0 4px 34px; }

/* Lernstraße */
.street { overflow-x: auto; border-radius: 22px; -webkit-overflow-scrolling: touch; }
.street-scene { position: relative; width: max-content; min-width: 100%; background: linear-gradient(#BFDCEB 0%, #DCEEF5 55%, #EAF4F0 100%); padding-top: 70px; }
.sky { position: absolute; inset: 0 0 auto 0; height: 100%; pointer-events: none; overflow: hidden; }
.deco { display: block; line-height: 0; }
.sky .sun { position: absolute; left: 22px; top: 10px; }
.sky .cloud { position: absolute; opacity: 0.95; transform-origin: left top; }
.sky .bird { position: absolute; }
.hills { position: absolute; left: 0; right: 0; bottom: 84px; height: 120px; background: radial-gradient(120px 70px at 10% 100%, #B9D3A6 98%, transparent 100%), radial-gradient(160px 80px at 35% 100%, #C6DCB2 98%, transparent 100%), radial-gradient(140px 70px at 62% 100%, #B9D3A6 98%, transparent 100%), radial-gradient(180px 90px at 88% 100%, #C6DCB2 98%, transparent 100%); }
.street-row { position: relative; display: flex; align-items: flex-end; width: max-content; min-width: 100%; }
.street-row > .street-col:last-child { flex-grow: 1; }
.street-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.house-col > .house { margin: 0 10px; }
.house { width: 150px; position: relative; display: flex; flex-direction: column; filter: drop-shadow(0 4px 6px rgba(60, 40, 20, 0.18)); }
.house.locked { filter: grayscale(0.85) drop-shadow(0 4px 6px rgba(60, 40, 20, 0.12)); opacity: 0.85; }
.roof-wrap { position: relative; height: 54px; margin: 0 -10px; }
.roof { position: absolute; inset: 0; background: var(--roof); clip-path: polygon(50% 0, 100% 100%, 0 100%); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; }
.roof-wrap::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 6px; background: var(--roof); filter: brightness(0.75); border-radius: 2px; }
.chimney { position: absolute; right: 30px; top: 6px; width: 16px; height: 28px; background: var(--roof); filter: brightness(0.8); border-radius: 2px 2px 0 0; }
.roof-badge { color: #FFFFFF; font-family: var(--display); font-weight: 600; font-size: 15px; background: rgba(0, 0, 0, 0.18); border-radius: 999px; min-width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.house.done .roof-badge { background: var(--done); }
.walls { background: var(--wall); border-left: 3px solid rgba(0, 0, 0, 0.06); border-right: 3px solid rgba(0, 0, 0, 0.06); }
.floor { display: flex; align-items: flex-end; gap: 6px; padding: 8px 8px 6px; min-height: 58px; border-bottom: 4px solid rgba(80, 50, 20, 0.12); position: relative; }
.floor-0 { border-bottom: 0; padding-bottom: 0; min-height: 66px; }
.floor-name { position: absolute; left: 6px; top: 3px; font-size: 9px; font-weight: 700; color: rgba(40, 30, 20, 0.55); }
.windows { display: flex; gap: 6px; flex-wrap: wrap; padding-left: 22px; padding-top: 6px; flex: 1 1 auto; }
.floor-0 .windows { padding-bottom: 8px; }
.win { width: 30px; height: 38px; border: 3px solid #FFFFFF; border-radius: 4px 4px 2px 2px; padding: 0; position: relative; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15); background-image: linear-gradient(90deg, transparent 45%, rgba(255, 255, 255, 0.9) 45%, rgba(255, 255, 255, 0.9) 55%, transparent 55%), linear-gradient(transparent 45%, rgba(255, 255, 255, 0.9) 45%, rgba(255, 255, 255, 0.9) 55%, transparent 55%); }
.win-num { position: absolute; right: -6px; top: -8px; background: #FFFFFF; color: var(--ink); border-radius: 999px; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; line-height: 16px; text-align: center; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
.win { border-color: #F4F1EC; }
.win.st-open, .win.c-empty { background-color: #1F262E; }
.win.st-work, .win.c-bad { background-color: #1F262E; background-image: linear-gradient(90deg, transparent 45%, rgba(255, 255, 255, 0.9) 45%, rgba(255, 255, 255, 0.9) 55%, transparent 55%), linear-gradient(transparent 45%, rgba(255, 255, 255, 0.9) 45%, rgba(255, 255, 255, 0.9) 55%, transparent 55%), linear-gradient(to top, #FFD86B 0, #FFE9A8 50%, #1F262E 50%); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15), 0 6px 10px -4px rgba(255, 210, 90, 0.7); }
.win.st-done, .win.c-ok { background-color: #FFE08A; background-image: linear-gradient(90deg, transparent 45%, rgba(255, 255, 255, 0.95) 45%, rgba(255, 255, 255, 0.95) 55%, transparent 55%), linear-gradient(transparent 45%, rgba(255, 255, 255, 0.95) 45%, rgba(255, 255, 255, 0.95) 55%, transparent 55%), radial-gradient(circle at 50% 50%, #FFF6CF 0, #FFD86B 70%); box-shadow: 0 0 12px 3px rgba(255, 210, 90, 0.75); }
.win.st-open, .win.c-empty { background-image: linear-gradient(90deg, transparent 45%, rgba(200, 205, 210, 0.55) 45%, rgba(200, 205, 210, 0.55) 55%, transparent 55%), linear-gradient(transparent 45%, rgba(200, 205, 210, 0.55) 45%, rgba(200, 205, 210, 0.55) 55%, transparent 55%); }
.win:disabled { cursor: not-allowed; }
.win-empty { color: rgba(40, 30, 20, 0.45); font-size: 12px; padding-bottom: 10px; }
.door { width: 30px; height: 46px; background: #8A5A34; border-radius: 15px 15px 0 0; flex-shrink: 0; position: relative; border: 3px solid #6E4526; border-bottom: 0; }
.door .knob { position: absolute; right: 5px; top: 24px; width: 5px; height: 5px; border-radius: 50%; background: #F2C14E; }
.house-sign { font-size: 12px; font-weight: 700; background: #FFFFFF; border-radius: 6px; padding: 3px 8px; max-width: 150px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0 0 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }
.ground { align-self: stretch; display: flex; flex-direction: column; }
.sidewalk { height: 34px; background: #D9D3CC; border-top: 4px solid #BFB6AC; background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.08) 1px, transparent 1px); background-size: 24px 100%; display: flex; align-items: flex-end; justify-content: center; position: relative; }
.road { height: 46px; background-color: #4A4F55; background-image: linear-gradient(90deg, #F2DCC8 50%, transparent 50%); background-size: 28px 3px; background-repeat: repeat-x; background-position: 0 50%; }
.walker { font-size: 34px; line-height: 1; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3)); transform: translateY(-4px) scaleX(-1); animation: walk 1.4s ease-in-out infinite; }
@keyframes walk { 0%, 100% { transform: translateY(-4px) scaleX(-1); } 50% { transform: translateY(-8px) scaleX(-1); } }
.deco-col .deco-stand, .start-col .deco-stand { margin: 0 8px; }
.deco-stand { display: flex; align-items: flex-end; gap: 2px; }
.cp-col { width: 120px; position: relative; }
.ampel-btn { border: 0; background: transparent; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.ampel-sign { font-size: 11px; font-weight: 700; background: #FFFFFF; border-radius: 6px; padding: 3px 7px; max-width: 112px; text-align: center; line-height: 1.2; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); }
.ampel { display: inline-flex; flex-direction: column; gap: 5px; background: #2B3036; border-radius: 12px; padding: 6px; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3), inset 0 0 0 2px #3C434B; flex-shrink: 0; }
.lamp { width: 22px; height: 22px; border-radius: 50%; background: #1A1D21; box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.6); }
.lamp-red { background: #4A1F1C; } .lamp-yellow { background: #4A3D16; } .lamp-green { background: #173A22; }
.lamp-red.on { background: #FF4B3E; box-shadow: 0 0 12px 3px rgba(255, 75, 62, 0.75); }
.lamp-yellow.on { background: #FFC93C; box-shadow: 0 0 12px 3px rgba(255, 201, 60, 0.75); }
.lamp-green.on { background: #3DDC6A; box-shadow: 0 0 12px 3px rgba(61, 220, 106, 0.75); }
.ampel.ampel-sm { padding: 4px; gap: 3px; border-radius: 9px; } .ampel.ampel-sm .lamp { width: 12px; height: 12px; }
.ampel.ampel-lg .lamp { width: 30px; height: 30px; }
.ampel-pole { width: 6px; height: 56px; background: #6E737A; border-radius: 3px 3px 0 0; }
.finish-col { min-width: 110px; }
.goal-flag { font-size: 40px; padding-bottom: 2px; }
@media (prefers-reduced-motion: reduce) { .walker { animation: none; } }
.cp-row .ampel { margin-right: 2px; }
.stcard.locked { opacity: 0.8; }
.cp-row { border: 0; width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: var(--surface); border-radius: 18px; padding: 10px 14px; min-height: 56px; box-shadow: inset 0 0 0 2px var(--line); }
.cp-row.cp-angefragt { box-shadow: inset 0 0 0 2px var(--work); } .cp-row.cp-bestaetigt { box-shadow: inset 0 0 0 2px var(--done); }
.cp-edit { display: flex; flex-direction: column; gap: 8px; padding: 10px 14px; border-left: 4px dashed var(--ring); margin-left: 18px; }
.cp-edit.focus { border-left-color: var(--done); }
.cp-admin { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 14px; padding: 8px 10px; flex-wrap: wrap; }
.req-badge { font-size: 12px; font-weight: 700; color: #6E4A10; }
.lv-floor0 { background: #E3EBDD; color: #34472A; } .lv-floor1 { background: #DCE9F2; color: #1F4A68; } .lv-floor2 { background: #F3E4EF; color: #5A3450; }

/* LuL-Startseite und Bereiche */
.area-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: rgba(255, 255, 255, 0.6); border-radius: 22px; padding: 6px 8px; }
.area-bar .crumb { background: var(--surface); }
.area-bar .tabs { margin-left: auto; background: var(--soft); }
.area-name { font-family: var(--display); font-weight: 600; font-size: 18px; padding: 0 6px; }
.area-tiles { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.area-tile { min-height: 132px; justify-content: flex-start; }
.area-ico { font-size: 28px; line-height: 1; }

/* Termine und Kalender */
.day-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.day-box { background: var(--soft); border-radius: 18px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 110px; }
.day-box.today { background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); }
.ev-chip { border: 0; border-left: 5px solid; border-radius: 10px; padding: 6px 8px; text-align: left; display: flex; flex-direction: column; gap: 1px; width: 100%; min-height: 44px; }
.ev-chip .ev-time { font-size: 11px; font-weight: 700; color: var(--ink2); }
.ev-chip .ev-title { font-size: 13px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.ev-chip.big { flex-direction: column; padding: 8px 12px; }
.ev-chip.big .ev-title { font-size: 15px; } .ev-chip.big .ev-time { font-size: 13px; }
.ev-meta { font-size: 12px; color: var(--muted); }
.ev-detail { border-left: 5px solid; background: var(--soft); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.week-label { min-width: 180px; text-align: center; }
.cal-toggle { border: 0; background: var(--soft); border-radius: 999px; padding: 6px 14px 6px 10px; min-height: 44px; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; color: var(--ink2); }
.cal-day { display: flex; gap: 12px; background: var(--soft); border-radius: 18px; padding: 10px 12px; align-items: flex-start; }
.cal-day.today { background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); }
.cal-day.weekend { opacity: 0.85; }
.cal-day-head { width: 64px; flex-shrink: 0; display: flex; flex-direction: column; line-height: 1.2; padding-top: 4px; }
@media (max-width: 720px) { .day-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Mit Claude erstellen */
.ki-steps { display: flex; gap: 6px; flex-wrap: wrap; }
.ki-step { font-size: 13px; font-weight: 700; background: var(--soft); color: var(--muted); border-radius: 999px; padding: 4px 12px; }
.ki-step.on { background: var(--ink); color: #FFFFFF; } .ki-step.done { background: var(--done-tint); color: #154769; }
.ki-howto { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }
.ki-prompt { font-family: var(--mono); font-size: 13px; line-height: 1.45; min-height: 220px; background: var(--soft2); }
.ki-answer { min-height: 240px; font-size: 15px; }
.ki-komp { text-align: left; line-height: 1.3; min-height: 40px; font-size: 14px; }

/* Coaching */
.coach-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.coach-kid { border: 0; background: var(--soft); border-radius: 18px; padding: 8px 12px; min-height: 60px; display: flex; align-items: center; gap: 10px; text-align: left; }
.coach-kid.on { background: var(--done-tint); box-shadow: inset 0 0 0 2px var(--done); }
.goal-item.coached { box-shadow: inset 0 0 0 2px #E8B83A; }
.coach-tag { font-size: 12px; font-weight: 700; color: #7A5A12; }
.coach-star { width: 36px; text-align: center; color: #B8860B; font-size: 18px; flex-shrink: 0; }
.coach-notes { white-space: pre-wrap; background: var(--surface); border-radius: 14px; padding: 10px 12px; }

/* Lernort */
.ort-pick { display: flex; flex-direction: column; gap: 0; background: var(--surface); border-radius: 18px; padding: 4px 8px 4px 12px; min-height: 50px; justify-content: center; }
.ort-pick.set { box-shadow: inset 0 0 0 2px var(--done); }
.ort-label { font-size: 11px; font-weight: 700; color: var(--muted); }
.ort-select { border: 0; background: transparent; font-weight: 700; font-size: 15px; color: var(--ink); padding: 0 4px 2px 0; max-width: 240px; min-height: 28px; }
.ort-select:focus-visible { outline: 3px solid var(--done); outline-offset: 2px; border-radius: 6px; }
.ort-count { font-family: var(--display); font-weight: 600; font-size: 20px; }
.ort-count.full { color: var(--warn-ink); }
.ort-kid { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 14px; padding: 6px 10px; }

/* Ziele */
.goals-card { background: var(--surface); border-radius: var(--r-xl); padding: 14px 18px 16px; }
.goal-col { background: var(--soft); border-radius: 20px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.goal-col .input { background: var(--surface); min-height: 44px; padding: 8px 12px; font-size: 16px; }
.goal-list, .arch-list, .tip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.goal-item { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 14px; padding: 4px 4px 4px 6px; min-height: 44px; }
.goal-item.done .goal-text { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.goal-check { width: 36px; height: 36px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--ring); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.goal-item.done .goal-check { background: var(--done); box-shadow: none; }
.goal-check .ico svg { width: 18px; height: 18px; }
.arch-list li { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border-radius: 14px; padding: 8px 10px; }
.name-btn { border: 0; background: transparent; padding: 4px; margin: -4px; border-radius: 14px; display: flex; align-items: center; gap: 10px; text-align: left; min-width: 0; }
.name-btn:hover { background: var(--soft); }
.goal-hint { color: var(--done); font-weight: 700; }
.tip-fixed { position: fixed; z-index: 80; max-width: 320px; background: var(--ink); color: #FFFFFF; border-radius: 16px; padding: 12px 14px; box-shadow: 0 10px 30px rgba(23, 49, 63, 0.3); display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.4; pointer-events: none; }
.tip-title { font-family: var(--display); font-size: 15px; }
.tip-h { font-weight: 700; color: #F2DCC8; margin-top: 4px; font-size: 13px; }
.tip-list li { display: flex; gap: 6px; } .tip-list li.done { color: #D7E6F0; }
.tip-mark { width: 14px; flex-shrink: 0; }
.tip-empty { color: #B9C6CC; } .tip-foot { color: #B9C6CC; font-size: 12px; margin-top: 6px; }

/* Verschiebbare Punkte */
.viz.editable .draggable { cursor: grab; }
.viz .draggable.dragging { cursor: grabbing; transform: translate(-50%, -50%) scale(1.12); z-index: 5; }

/* Aktivieren von Karten, Gruppen */
.act-btn { align-self: flex-start; border: 2px solid var(--ink); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 4px 12px 4px 10px; min-height: 40px; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.act-btn.on { background: var(--done); border-color: var(--done); color: #FFFFFF; }
.act-btn .ico svg { width: 16px; height: 16px; }
.group-head { border: 0; background: var(--soft); border-radius: 18px; padding: 10px 14px; min-height: 52px; display: flex; align-items: center; gap: 10px; font-size: 18px; width: 100%; }

/* Admin: Lehrkräfte der Klasse, Fächer */
.kl-toggle { border: 2px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 4px 10px; min-height: 36px; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.kl-toggle.on { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.fach-swatch { width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0; }
.swatch-btn { width: 48px; height: 48px; border: 0; border-radius: 14px; }
.swatch-btn.on { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Drucken der Zugangskarten */
.print-area { display: none; }
@media print {
  body { background: #FFFFFF; }
  .shell > *:not(.page), .page > *:not(.print-area), .sheet-wrap { display: none !important; }
  .print-area { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 10mm; }
  .print-card { border: 1.5px dashed #555; border-radius: 6mm; padding: 6mm; display: flex; flex-direction: column; gap: 2mm; break-inside: avoid; font-size: 12pt; }
  .print-name { font-size: 14pt; font-weight: 700; }
}

/* Kleinere Bildschirme */
@media (max-width: 720px) {
  .topbar { padding: 12px 16px; flex-wrap: wrap; }
  .page { padding: 0 12px 16px; }
  .pad { padding: 18px 14px; }
  .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .grid5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cred-row { grid-template-columns: 1fr 1fr; }
  .cred-row .avatar, .cred-row.head { display: none; }
  .brand { font-size: 18px; }
  .h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.komp-chip.row { display: flex; }

.demo-box { background: var(--work-tint); border-radius: 18px; padding: 12px 14px; }

/* Kompetenzraster: Themen × Niveaustufen */
.raster-wrap { overflow: auto; max-height: 75vh; border-radius: 18px; border: 1px solid #EFE6DE; background: var(--surface); }
.raster { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 560px; }
.raster th, .raster td { border-bottom: 1px solid #EFE6DE; border-right: 1px solid #EFE6DE; padding: 6px; vertical-align: top; text-align: left; }
.raster thead th { position: sticky; top: 0; z-index: 2; font-family: var(--display); font-weight: 600; font-size: 14px; }
.raster .raster-corner { left: 0; z-index: 3; font-size: 12px; color: var(--muted); }
.raster tbody th { position: sticky; left: 0; z-index: 1; width: 150px; min-width: 130px; font-family: var(--display); font-weight: 500; font-size: 14px; }
.raster-wrap.edit tbody th { width: 190px; }
.gk-cell { border: 0; width: 100%; min-height: 96px; border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; text-align: left; cursor: pointer; }
.gk-cell.gk-leer, .gk-cell.gk-offen { background: var(--soft); }
.gk-cell.gk-arbeit { background: var(--work-tint); box-shadow: inset 0 0 0 2px var(--work); }
.gk-cell.gk-fertig { background: #DDF1E3; box-shadow: inset 0 0 0 2px #347A49; }
.gk-cell.gk-bestaetigt { background: #CDEBD6; box-shadow: inset 0 0 0 3px #347A49; }
.gk-state { font-size: 12px; font-weight: 700; color: var(--ink2); display: flex; align-items: center; gap: 4px; }
.gk-fertig .gk-state, .gk-bestaetigt .gk-state { color: #1F5A33; }
.gk-text { font-size: 14px; line-height: 1.35; }
.gk-boxes { display: flex; gap: 3px; flex-wrap: wrap; }
.gk-box { width: 14px; height: 12px; border-radius: 3px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ring); }
.gk-box.b-arbeit { background: linear-gradient(90deg, var(--work) 50%, var(--surface) 50%); box-shadow: inset 0 0 0 1.5px var(--work); }
.gk-box.b-pruefung { background: var(--work); box-shadow: none; }
.gk-box.b-fertig { background: var(--done); box-shadow: none; }
.gk-empty { color: var(--muted); display: block; text-align: center; padding: 30px 0; }
.gk-input { min-height: 84px; font-size: 14px; padding: 8px 10px; }
.crown { font-size: 16px; line-height: 1; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2)); }
.gk-banner { display: flex; align-items: center; gap: 12px; border-radius: 16px; padding: 12px 14px; background: var(--soft); }
.gk-banner.gk-arbeit { background: var(--work-tint); } .gk-banner.gk-fertig, .gk-banner.gk-bestaetigt { background: #DDF1E3; color: #1F5A33; }
.gk-banner .crown { font-size: 28px; }
.legend.l-green { background: #347A49; }
.bar-green { background: #347A49; height: 100%; display: block; transition: width .35s ease; }
.status-pill.s-pruefung { background: var(--work-tint); color: #6E4A10; box-shadow: inset 0 0 0 2px var(--work); }
.lv-niveau { background: #E8E9F7; color: #3A3D78; }
.theme-pick { display: flex; flex-direction: column; gap: 4px; }
.input-sm { min-height: 44px; padding: 8px 12px; font-size: 15px; background: var(--surface); }
.theme-chip { font-size: 12px; font-weight: 700; background: #E8E9F7; color: #3A3D78; border-radius: 999px; padding: 2px 9px; }
.cp-between { margin: 0 0 12px 56px; }
.mx-cp { padding: 4px 0 6px; }
.mx-row.locked .mx-cell { opacity: 0.55; }
.stcard.locked .st-title { color: var(--muted); }
.niv-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.cp-edit .toggle-pill:not(.on) { background: var(--surface); box-shadow: inset 0 0 0 2px var(--line); }
.theme-input { min-height: 56px; font-family: var(--display); font-weight: 500; }
.raster-wrap.edit tbody th { width: 200px; min-width: 180px; }

/* Lernnetz (Skilltree) */
.netz-wrap { overflow-x: auto; border-radius: 22px; background: radial-gradient(ellipse at 50% 0%, #2F3A48 0%, #1E252E 70%); padding: 6px 0; }
.netz { position: relative; min-width: 560px; }
.netz-row { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(255, 255, 255, 0.08); }
.netz-row:first-child { border-top: 0; }
.netz-row-label { position: absolute; left: 10px; top: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.netz-row.goal .netz-row-label { color: #F2C14E; }
.netz-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.netz-lines .edge { fill: none; stroke: rgba(255, 255, 255, 0.18); stroke-width: 3; }
.netz-lines .edge.e-active { stroke: #F2C14E; stroke-width: 3.5; stroke-dasharray: 6 5; }
.netz-lines .edge.e-done { stroke: #6FB1E0; stroke-width: 4; }
.netz-lines .edge.e-sel { stroke: #FFFFFF; stroke-width: 4; }
.netz-node { position: absolute; transform: translate(-50%, -29px); border: 0; background: transparent; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 112px; cursor: pointer; }
.netz-icon { width: 58px; height: 58px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 600; font-size: 20px; color: #FFFFFF; background: #3A4552; box-shadow: inset 0 0 0 3px #59687A, 0 4px 10px rgba(0, 0, 0, 0.4); transition: transform .15s ease; }
.netz-node:hover .netz-icon { transform: scale(1.06); }
.netz-name { font-size: 12px; font-weight: 700; color: #E9EEF3; text-align: center; line-height: 1.2; max-height: 2.4em; overflow: hidden; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.n-locked .netz-icon { background: #262D36; box-shadow: inset 0 0 0 3px #3A4552; color: #8A96A3; font-size: 18px; }
.n-locked .netz-name { color: #8A96A3; }
.n-open .netz-icon { background: #3A4552; box-shadow: inset 0 0 0 3px #F2C14E, 0 0 16px 3px rgba(242, 193, 78, 0.55); animation: netzglow 1.8s ease-in-out infinite; }
.n-work .netz-icon, .n-pruefung .netz-icon { background: linear-gradient(to top, #E39A2E 50%, #3A4552 50%); box-shadow: inset 0 0 0 3px #F2C14E, 0 0 12px 2px rgba(242, 193, 78, 0.45); }
.n-done .netz-icon { background: linear-gradient(145deg, #2E7DB8, #1D5E8C); box-shadow: inset 0 0 0 3px #8CC6EE, 0 0 14px 3px rgba(111, 177, 224, 0.55); }
.n-goal .netz-icon { border-radius: 50%; }
.n-goal.n-done .netz-icon { background: linear-gradient(145deg, #F6D58A, #E3A92E); color: #3A2A08; box-shadow: inset 0 0 0 3px #FFF1C9, 0 0 18px 4px rgba(242, 193, 78, 0.7); }
.n-edit .netz-icon { background: #3A4552; }
.netz-node.c-empty .netz-icon { background: #262D36; box-shadow: inset 0 0 0 3px #3A4552; }
.netz-node.c-bad .netz-icon { box-shadow: inset 0 0 0 3px #E39A2E; }
.netz-node.c-ok .netz-icon { background: #1D5E8C; box-shadow: inset 0 0 0 3px #8CC6EE; }
.netz-node.n-sel .netz-icon { box-shadow: inset 0 0 0 3px #FFFFFF, 0 0 0 4px rgba(255, 255, 255, 0.35); transform: scale(1.08); }
.netz-lines .edge { stroke-linecap: round; }
@keyframes netzglow { 0%, 100% { box-shadow: inset 0 0 0 3px #F2C14E, 0 0 10px 2px rgba(242, 193, 78, 0.4); } 50% { box-shadow: inset 0 0 0 3px #F2C14E, 0 0 20px 5px rgba(242, 193, 78, 0.7); } }
@media (prefers-reduced-motion: reduce) { .n-open .netz-icon { animation: none; } }
.warn-text { color: #8A5A0E; }
.netz-node.c-empty, .netz-node.c-bad, .netz-node.c-ok { background: transparent; border: 0; box-shadow: none; outline: 0; color: inherit; }

/* Graduierung: Klassenleiste */
.class-dots { display: flex; flex-wrap: wrap; gap: 6px; background: var(--soft); border-radius: 22px; padding: 8px; }
.class-dot { border: 0; min-width: 48px; height: 44px; padding: 0 10px; border-radius: 999px; background: var(--surface); font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--ink2); cursor: pointer; }
.class-dot.mine { box-shadow: inset 0 0 0 2px var(--done); color: var(--done); }
.class-dot.on { background: var(--ink); color: #FFFFFF; box-shadow: none; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }

/* Sprechtag */
.spt-wrap { overflow-x: auto; border: 1px solid #EFE6DE; border-radius: 16px; }
.spt-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.spt-table th { text-align: left; font-size: 12px; color: var(--muted); padding: 8px 10px; background: var(--soft); position: sticky; top: 0; }
.spt-table td { padding: 8px 10px; border-top: 1px solid #EFE6DE; vertical-align: top; }
.spt-table td.spt-time { font-family: var(--display); font-weight: 600; white-space: nowrap; width: 110px; padding-top: 18px; }
.spt-table td:last-child { width: 44px; }
.spt-table td:nth-child(3) { width: 70px; padding-top: 18px; }

.sheet.no-anim, .sheet-backdrop.no-anim { animation: none; }

/* ---------- 0.23: Startauswahl, Kurspaket, Material, Lernbuffet ---------- */
.start-card { padding: 18px 20px; }
.start-ico { width: 60px; height: 60px; flex-shrink: 0; border-radius: 20px; background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 28px; font-family: var(--display); }
.linkish { border: 0; background: none; padding: 4px 0; color: var(--done); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; align-self: flex-start; min-height: 44px; text-align: left; }
.kp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kp-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.kp-check input { width: 22px; height: 22px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--ink); }
.kp-sw { border: 0; background: var(--soft); border-radius: 999px; padding: 6px 14px 6px 8px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.kp-sw .dot { width: 22px; height: 22px; border-radius: 50%; }
.kp-sw.on { background: var(--ink); color: #FFFFFF; }
.upload-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--soft); border: 2px dashed var(--ring); border-radius: var(--r-lg); padding: 16px 18px; }
.upload-box.done { border-style: solid; border-color: var(--done); background: var(--done-tint); }
.upload-box > .grow { flex: 1 1 220px; }
.kp-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.kp-fact { background: var(--soft); border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; }
.kp-fact.skip { opacity: 0.7; }
.kp-num { font-family: var(--display); font-size: 24px; font-weight: 600; line-height: 1.2; }
.kp-map { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; }
.kp-map li { display: flex; align-items: center; gap: 12px; background: var(--soft); border-radius: 16px; padding: 8px 12px; }
.kp-map .node { width: 36px; height: 36px; flex-shrink: 0; }
.kp-toggle { border: 0; background: var(--soft); border-radius: 16px; padding: 10px 14px; display: flex; align-items: flex-start; gap: 12px; text-align: left; width: 100%; min-height: 48px; }
.kp-box { width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--ring); display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.kp-toggle.on .kp-box { background: var(--done); color: #FFFFFF; box-shadow: none; }
.kp-box svg { width: 16px; height: 16px; }
@media (max-width: 720px) { .kp-grid { grid-template-columns: minmax(0, 1fr); } }

.h4 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 17px; }
.block { display: block; } .pre-line { white-space: pre-line; }
.mat { min-width: 0; }
.mat p { margin: 0; max-width: 68ch; }
.mat-kurz { background: var(--done-tint); border-radius: var(--r-md); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.mat-kicker { font-size: 13px; font-weight: 700; color: #154769; text-transform: uppercase; letter-spacing: 0.06em; }
.mat-ziel { background: var(--soft); border-radius: var(--r-md); padding: 10px 14px; }
.mat-sec { background: var(--surface); border: 2px solid #EFE6DE; border-radius: var(--r-md); padding: 14px 16px; min-width: 0; }
.mat-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }
.mat-fig { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.mat-img { max-width: 100%; height: auto; border-radius: 14px; background: var(--soft); align-self: flex-start; }
.mat-ph { background: #F4EDDD; color: #6E4A10; border-radius: 12px; padding: 10px 12px; }
.mat-table-wrap { overflow-x: auto; max-height: 360px; overflow-y: auto; border: 1px solid #EFE6DE; border-radius: 12px; }
.mat-table { border-collapse: collapse; width: 100%; font-size: 15px; }
.mat-table td, .mat-table th { padding: 7px 10px; border-bottom: 1px solid #EFE6DE; text-align: left; vertical-align: top; }
.mat-table tr.head { background: var(--soft); }
.mat-link { display: flex; align-items: center; gap: 10px; background: var(--soft); border-radius: 14px; padding: 10px 14px; color: var(--ink); text-decoration: none; min-height: 48px; }
.mat-link:hover, .mat-link:focus-visible { background: var(--soft2); }
.mat-link strong { text-decoration: underline; text-underline-offset: 3px; }
details.help { background: var(--work-tint); border-radius: var(--r-md); padding: 0 16px; }
details.help > summary { cursor: pointer; font-weight: 700; padding: 12px 0; min-height: 44px; display: list-item; }
details.help[open] { padding-bottom: 14px; }
details.help .mat-table-wrap { background: var(--surface); }
.solution { background: var(--ok-tint); border-radius: var(--r-md); padding: 14px 16px; color: #1F4D38; display: flex; flex-direction: column; gap: 6px; }
.link-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--soft); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 14px; max-width: 100%; }
.link-chip .ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.chip-x { border: 0; background: var(--surface); width: 32px; height: 32px; border-radius: 50%; font-size: 18px; line-height: 1; flex-shrink: 0; }
.sec-links { padding-top: 6px; }
.intro-btn { border: 0; background: var(--done-tint); color: #154769; border-radius: var(--r-lg); padding: 14px 18px; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; }
.intro-btn strong { color: var(--ink); }

/* Lernbuffet */
.buffet-tools { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; background: var(--soft); border-radius: var(--r-lg); padding: 12px 14px; }
.buffet-tools .btn { display: inline-flex; align-items: center; gap: 8px; }
.theke { background: var(--soft); border-radius: var(--r-lg); padding: 14px; }
.theke-head { padding: 0 4px; }
.plates { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.plate { border: 0; text-align: left; background: var(--surface); border-radius: 22px; padding: 12px 14px 12px; min-height: 120px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; box-shadow: 0 1px 3px rgba(23, 49, 63, 0.10); }
.plate.st-open { color: var(--ink); box-shadow: 0 1px 3px rgba(23, 49, 63, 0.10); }
.plate.st-work { background: var(--surface); box-shadow: inset 0 0 0 3px var(--work); }
.plate.st-done { background: var(--done-tint); color: var(--ink); box-shadow: inset 0 0 0 2px var(--done); }
.plate-title { font-family: var(--display); font-weight: 500; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.plate-done { width: 28px; height: 28px; border-radius: 50%; background: var(--done); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.plate-done svg { width: 16px; height: 16px; }
.plate:hover { transform: translateY(-1px); }
@media (max-width: 720px) { .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plate { min-height: 110px; padding: 10px 12px; } .plate-title { font-size: 15px; } }
@media (max-width: 380px) { .plates { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .topbar > div:last-child { flex-wrap: wrap; min-width: 0; max-width: 100%; } .ort-select { max-width: 180px; } }
.rc-title.long { font-size: 13px; line-height: 1.2; padding: 0 10px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 720px) { .rc-title.long { font-size: 10px; -webkit-line-clamp: 3; } }

/* ---------- Fachfarben: Kästen, Banner und Aufgaben in derselben gedämpften Farbe ---------- */
.tile-fach { background: var(--f-mid); color: var(--f-mid-ink); box-shadow: 0 1px 3px rgba(23, 49, 63, 0.10); }
.tile-fach:hover { background: var(--f-mid); filter: brightness(0.97); }
.tile-fach .muted { color: inherit; opacity: 0.88; }
.tile-fach .bar, .fach-band .bar, .fach-theme .mapcard .bar { background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 0 0 1px rgba(23, 49, 63, 0.12); }
.tile-fach .bar-empty { background: rgba(255, 255, 255, 0.35); }
.fach-band { background: var(--f-mid); color: var(--f-mid-ink); border-radius: var(--r-lg); padding: 18px 20px; }
.fach-band .muted { color: inherit; opacity: 0.88; }
.fach-band .chip-soft, .fach-band .chip { background: rgba(255, 255, 255, 0.85); color: var(--ink); }
.fach-band .pct { color: inherit; }
.fach-theme .mapcard { background: var(--f-mid); color: var(--f-mid-ink); }
.fach-theme .mapcard .muted { color: inherit; opacity: 0.88; }
.fach-theme .mapcard .chip { background: rgba(255, 255, 255, 0.85); color: var(--ink); }
.fach-theme .mapcard .round-btn { background: rgba(255, 255, 255, 0.9); }
.fach-theme .task-row { background: var(--f-mid); color: var(--f-mid-ink); }
.fach-theme .task-row:hover:not(:disabled) { filter: brightness(0.97); }
.fach-theme .stcard { background: var(--f-soft); box-shadow: inset 0 0 0 2px var(--f-line); }
.fach-theme .stcard.open { box-shadow: inset 0 0 0 2px var(--f-line), 0 10px 28px rgba(23, 49, 63, 0.12); }
.fach-theme .resume { background: var(--f-soft); box-shadow: inset 0 0 0 2px var(--f-line); }
.fach-theme .task-text { background: var(--f-mid); color: var(--f-mid-ink); }
.fach-theme .task-text .muted { color: inherit; opacity: 0.85; }
.fach-theme .theke, .fach-theme .buffet-tools { background: var(--f-soft); }
.fach-theme .plate.st-open { background: var(--f-mid); color: var(--f-mid-ink); }
.fach-theme .plate.st-work { background: var(--f-mid); color: var(--f-mid-ink); }
.fach-theme .mx-cell.st-open { background: var(--f-mid); color: var(--f-mid-ink); }
.fach-theme .mx-label { background: var(--f-mid); color: var(--f-mid-ink); border-radius: 14px; padding: 8px 10px; }
.fach-theme .mx-label .muted { color: inherit; opacity: 0.88; }
.fach-theme .intro-btn { background: var(--f-soft); color: var(--ink); box-shadow: inset 0 0 0 2px var(--f-line); }
.group-head-fach { background: var(--f-mid); color: var(--f-mid-ink); }
.group-head-fach .muted { color: inherit; opacity: 0.88; }
.map-card-fach { background: var(--f-soft); box-shadow: inset 6px 0 0 var(--f-mid); }
.fach-swatch-demo { display: flex; overflow: hidden; width: 72px; }
.fach-swatch-demo > span { flex: 1; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.color-input { width: 52px; height: 44px; border: 0; padding: 0; background: none; cursor: pointer; }

/* Material im Lernpfad */
.path-mat, .path-page { background: var(--surface); border-radius: 18px; padding: 12px 14px; box-shadow: 0 1px 3px rgba(23, 49, 63, 0.08); }
.path-mat-kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 500; font-size: 16px; }
.path-text { background: var(--soft); border-radius: 14px; padding: 10px 12px; }
.path-text p { margin: 0; max-width: 68ch; }
.path-tasks { padding-top: 2px; }
.mat-link-ico { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; }
.mat-link-ico svg { width: 18px; height: 18px; }
.mat-link.is-video { background: var(--ink); color: #FFFFFF; }
.mat-link.is-video .muted { color: #D7E6F0; }
.mat-link.is-video .mat-link-ico { background: var(--work); color: var(--ink); }
.mat-link.is-video:hover, .mat-link.is-video:focus-visible { background: #22465A; }
.mat-edit { border-top: 2px dashed var(--line); padding-top: 10px; }
.mat-edit-item { background: var(--soft); border-radius: 16px; padding: 10px 12px; }
.mat-edit-item .input { background: var(--surface); }
.task-chip.mat-add { min-height: 44px; }
.crumb.current .muted { color: inherit; opacity: 0.85; }
@media (max-width: 720px) { .path-mat, .path-page { padding: 10px; margin: 0 -4px; } .stcard .st-tasks { padding-left: 8px; padding-right: 8px; } }
/* Fach-Kacheln auf der Startseite wie Kalendereinträge: kräftiger Rand links, Rest pastell */
.tile-fach { background: var(--f-soft); color: var(--ink); border-left: 7px solid var(--f); box-shadow: 0 1px 3px rgba(23, 49, 63, 0.08); }
.tile-fach:hover { background: var(--f-soft); filter: brightness(0.98); }
.tile-fach .muted { color: var(--muted); opacity: 1; }
.tile-fach .bar { background: rgba(255, 255, 255, 0.85); box-shadow: inset 0 0 0 1px rgba(23, 49, 63, 0.10); }
.tile-fach .bar-empty { background: rgba(255, 255, 255, 0.6); }
/* Fachfarben überall im Kalender-Stil: kräftiger Streifen links, Rest pastell */
.fach-band, .fach-theme .mapcard, .fach-theme .task-row, .fach-theme .plate.st-open, .fach-theme .plate.st-work,
.fach-theme .mx-cell.st-open, .fach-theme .mx-label, .fach-theme .task-text, .group-head-fach, .fach-stripe-head,
.fach-theme .komp-raster, .fach-theme .crumb.current {
  background: var(--f-soft) !important; color: var(--ink) !important; border-left: 6px solid var(--f);
}
.fach-band .muted, .fach-theme .mapcard .muted, .fach-theme .mx-label .muted, .fach-theme .task-text .muted, .group-head-fach .muted, .fach-theme .crumb.current .muted { color: var(--muted); opacity: 1; }
.fach-band .bar, .fach-theme .mapcard .bar { background: rgba(255, 255, 255, 0.85); box-shadow: inset 0 0 0 1px rgba(23, 49, 63, 0.10); }
.fach-theme .mapcard .chip, .fach-band .chip, .fach-band .chip-soft { background: var(--surface); }
.fach-theme .mapcard .round-btn { background: var(--surface); }
.fach-theme .task-row:hover:not(:disabled) { filter: brightness(0.98); }
.fach-theme .stcard, .fach-theme .theke { background: var(--surface); box-shadow: inset 0 0 0 2px var(--f-line); }
.fach-theme .stcard.open { box-shadow: inset 0 0 0 2px var(--f-line), 0 10px 28px rgba(23, 49, 63, 0.12); }
.fach-theme .buffet-tools { background: var(--f-soft); }
.fach-theme .resume { background: var(--f-soft); box-shadow: none; border-left: 6px solid var(--f); }
.fach-theme .mx-cell.st-open { border-left-width: 4px; }
.fach-stripe-head { border-radius: 12px; padding: 8px 14px; }
.group-head-fach { border-radius: 18px; }
.map-card-fach { box-shadow: none; border-left: 6px solid var(--f); }
.fach-band { justify-content: space-between; } .fach-band > :first-child { flex: 1 1 260px; min-width: 0; }

/* SuS-Kopfleiste: eingerastet, Logo mit Menü, drei gleich große Ovale */
.topbar-sus-wrap { position: sticky; top: 0; z-index: 30; padding: 10px 24px 12px; padding-top: max(10px, env(safe-area-inset-top)); background: linear-gradient(var(--bg) 75%, rgba(242, 220, 200, 0)); }
.topbar-sus { max-width: 1052px; margin: 0 auto; display: flex; align-items: center; gap: 14px; background: #EED3BC; border-radius: 28px; padding: 10px 12px 10px 16px; box-shadow: 0 6px 18px rgba(80, 40, 10, 0.16); }
.brand-wrap { position: relative; flex-shrink: 0; }
.brand-btn { border: 0; background: transparent; display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 4px; border-radius: 18px; min-height: 48px; color: var(--ink); }
.brand-btn:hover, .brand-btn[aria-expanded="true"] { background: rgba(255, 255, 255, 0.55); }
.menu-backdrop { position: fixed; inset: 0; border: 0; background: transparent; z-index: 40; cursor: default; }
.brand-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 41; min-width: 220px; background: var(--surface); border-radius: 18px; padding: 6px; box-shadow: 0 12px 30px rgba(23, 49, 63, 0.22); display: flex; flex-direction: column; gap: 2px; }
.menu-item { border: 0; background: transparent; text-align: left; padding: 12px 14px; border-radius: 12px; font-weight: 700; color: var(--ink); text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.menu-item:hover, .menu-item:focus-visible { background: var(--soft); }
.sus-ovals { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sus-ovals > * { min-width: 0; min-height: 56px; border-radius: 999px !important; }
.sus-ovals .user-chip { width: 100%; }
.sus-ovals .user-chip .lh { min-width: 0; }
.sus-ovals .user-chip strong, .sus-ovals .user-chip .small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge-field { display: flex; align-items: center; gap: 12px; padding: 6px 18px; }
.badge-label { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.badge-slots { display: flex; gap: 8px; overflow: hidden; }
.badge-slot { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; border: 2px dashed var(--ring); }
.sus-ovals .ort-pick { padding: 5px 20px; }
.sus-ovals .ort-select { max-width: 100%; width: 100%; }
@media (max-width: 900px) {
  .topbar-sus-wrap { padding: 8px 12px 10px; }
  .topbar-sus { flex-wrap: wrap; gap: 8px; padding: 8px; border-radius: 24px; }
  .topbar-sus .brand { display: none; }
  .sus-ovals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; flex-basis: 0; }
  .sus-ovals .user-chip { grid-column: 1 / -1; }
  .sus-ovals > * { min-height: 50px; }
  .badge-field { padding: 6px 12px; gap: 8px; }
  .badge-label { font-size: 12px; }
  .badge-slot { width: 22px; height: 22px; }
}
@media (max-width: 480px) {
  .badge-label { display: none; }
  .badge-field { justify-content: center; }
  .sus-ovals .ort-pick { padding: 4px 12px; }
  .sus-ovals .ort-select { font-size: 13px; text-overflow: ellipsis; }
}
/* 0.26: Kopfleiste ohne Badges, Stundenplan rechts */
.sus-ovals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plan-btn { flex-shrink: 0; }
.plan-btn.on { background: rgba(255, 255, 255, 0.7); }
@media (max-width: 900px) {
  .topbar-sus { flex-wrap: nowrap; }
  .sus-ovals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sus-ovals .user-chip { grid-column: auto; }
  .topbar-sus .brand-btn { padding: 6px; }
}
@media (max-width: 560px) {
  .sus-ovals .user-chip { padding: 4px 10px 4px 4px; gap: 6px; }
  .sus-ovals .user-chip .avatar { width: 34px; height: 34px; font-size: 12px; }
  .sus-ovals .user-chip strong { font-size: 14px; }
  .sus-ovals .ort-pick { padding: 4px 10px; }
  .sus-ovals .ort-select { font-size: 13px; }
  .topbar-sus { gap: 4px; padding: 6px; }
  .topbar-sus .brand-btn svg { width: 30px; height: 30px; }
}
/* Ziele mit Fach */
.fach-select { width: auto; max-width: 170px; min-height: 44px; background: var(--surface); padding: 8px 10px; font-size: 15px; }
.goal-form .input:not(select) { flex: 1 1 160px; min-width: 0; }
.fach-tag { display: inline-block; background: var(--f-soft); border-left: 4px solid var(--f); border-radius: 8px; padding: 0 8px; margin-right: 6px; font-size: 12px; font-weight: 700; color: var(--ink); vertical-align: 1px; text-decoration: none; }
/* Stundenplan */
.plan-week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.plan-day { background: var(--soft); border-radius: 18px; padding: 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.plan-day.today { box-shadow: inset 0 0 0 2px var(--ink); }
.plan-day-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 2px 4px; }
.lesson { background: var(--surface); border-radius: 10px; border-left: 5px solid var(--ring); padding: 6px 8px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.lesson.has-fach { background: var(--f-soft); border-left-color: var(--f); }
.lesson-time { font-size: 12px; font-weight: 700; color: var(--ink2); }
.lesson-title { font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.plan-nav .icon-btn { font-size: 22px; }
@media (max-width: 720px) { .plan-week { grid-template-columns: minmax(0, 1fr); } }
/* Tagesziel zuerst (ab 3 Uhr) */
.locked-card { border: 0; display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; min-height: 72px; opacity: 0.85; }
.locked-card:hover { opacity: 1; }
.lock-ico { font-size: 22px; flex-shrink: 0; }
.goal-col.attn { box-shadow: inset 0 0 0 3px var(--work); }
.goal-col.pulse { animation: goalPulse 1.2s ease-in-out 2; }
@keyframes goalPulse { 50% { box-shadow: inset 0 0 0 3px var(--work), 0 0 0 8px rgba(227, 154, 46, 0.25); } }
.gate-note { font-weight: 700; }
/* Wochenplan im Stundenraster */
.wk-grid { display: grid; grid-template-columns: 96px repeat(5, minmax(0, 1fr)); gap: 6px; }
.wk-day { text-align: center; padding: 6px 4px; border-radius: 12px; background: var(--soft); display: flex; flex-direction: column; }
.wk-day.today { box-shadow: inset 0 0 0 2px var(--ink); }
.wk-time { display: flex; flex-direction: column; justify-content: center; font-size: 12px; color: var(--ink2); padding-left: 4px; }
.wk-time strong { font-size: 15px; color: var(--ink); }
.wk-cell { min-height: 46px; border-radius: 10px; }
.wk-cell.empty { background: var(--soft); opacity: 0.6; }
.wk-cell.lesson { justify-content: center; }
.wk-break { grid-column: 1 / -1; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 2px 0; border-top: 2px dashed var(--line); border-bottom: 2px dashed var(--line); }
.wk-list { display: none; }
@media (max-width: 720px) { .wk-grid { display: none; } .wk-list { display: grid; } }
.wk-ed-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1fr) 52px; gap: 8px; align-items: center; background: var(--soft); border-radius: 14px; padding: 6px 8px; }
.wk-ed-row.filled { background: var(--f-soft); box-shadow: inset 5px 0 0 var(--f); }
.wk-ed-slot { display: flex; flex-direction: column; line-height: 1.2; padding-left: 4px; }
.wk-ed-select, .wk-ed-text { min-height: 44px; background: var(--surface); padding: 8px 10px; font-size: 15px; }
.wk-ed-break { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 2px 0; }
@media (max-width: 560px) {
  .wk-ed-row { grid-template-columns: 70px minmax(0, 1fr) 48px; }
  .wk-ed-text { grid-column: 2 / 3; grid-row: 2; }
  .wk-ed-gap { display: none; }
}

/* Server-Fassung: Knöpfe unten in Fenstern brechen auf schmalen Handys um, statt aus dem Bild zu rutschen */
@media (max-width: 600px) {
  .sheet-foot > .row { flex-wrap: wrap; min-width: 0; }
  .sheet-foot > .row > .btn { flex: 1 1 auto; }
}
