@import url("/vendor/fonts/fonts.css");
/* Schulheft – Oberfläche der Schul-App. Aufbau: Tokens, Grundgerüst, Bausteine, dann je Ansicht (Chat, Tafel, Aufgaben, Karten, Dateien, Formeln, Plan). */
:root {
  --bg: #f5f3ec; --card: #ffffff; --card2: #faf9f4; --ink: #1c2230; --mut: #667085; --line: #e3dfd2; --acc: #2f5bd3; --acc-ink: #fff; --acc-soft: #e8eefc;
  --red: #d64550; --ok: #1f9d6b; --warn: #d98e04; --shadow: 0 1px 2px #1c223012, 0 6px 18px #1c22300d; --r: 14px;
  --mine: #2f5bd3; --mine-ink: #fff; --other: #ffffff; --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --head: "Bricolage Grotesque", var(--font);
  --safe-b: env(safe-area-inset-bottom, 0px); --tabh: 58px; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #12151c; --card: #1b202b; --card2: #171b24; --ink: #e8ebf2; --mut: #98a2b3; --line: #2b3242; --acc: #7ea2ff; --acc-ink: #0f1626; --acc-soft: #222b47; --red: #ff7b84; --ok: #4cc79a; --warn: #f0b54a; --shadow: 0 1px 2px #0006, 0 8px 22px #0004; --mine: #3b5fc7; --mine-ink: #fff; --other: #232a38; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #12151c; --card: #1b202b; --card2: #171b24; --ink: #e8ebf2; --mut: #98a2b3; --line: #2b3242; --acc: #7ea2ff; --acc-ink: #0f1626; --acc-soft: #222b47; --red: #ff7b84; --ok: #4cc79a; --warn: #f0b54a; --shadow: 0 1px 2px #0006, 0 8px 22px #0004; --mine: #3b5fc7; --mine-ink: #fff; --other: #232a38; color-scheme: dark; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.45 var(--font); overflow: hidden; overscroll-behavior: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--head); margin: 0; line-height: 1.15; letter-spacing: -.01em; }
a { color: var(--acc); }
[hidden] { display: none !important; }
svg.i { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.22em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--acc) 60%, transparent); outline-offset: 2px; }

/* ---------- Grundgerüst ---------- */
#app { height: 100dvh; }
.shell { height: 100%; display: grid; grid-template-columns: 1fr; }
.side { background: var(--card2); border-right: 1px solid var(--line); overflow-y: auto; padding: 18px 16px calc(24px + var(--safe-b)); display: flex; flex-direction: column; gap: 18px; }
.main { min-width: 0; display: flex; flex-direction: column; height: 100dvh; position: relative; }
.shell:not(.home) .side { display: none; }
.shell.home .main { display: none; }
@media (min-width: 900px) {
  .shell, .shell.home { grid-template-columns: 300px 1fr; }
  .shell:not(.home) .side, .shell.home .main { display: flex; }
  .shell.home .main .top .back { display: none; }
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo { width: 40px; height: 40px; border-radius: 12px; background: var(--acc); color: var(--acc-ink); display: grid; place-items: center; font: 800 1.35rem var(--head); box-shadow: var(--shadow); transform: rotate(-4deg); }
.brand h1 { font-size: 1.35rem; } .brand small { display: block; color: var(--mut); font-size: .8rem; margin-top: 1px; }
.sec h2 { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); margin: 0 4px 8px; font-family: var(--font); font-weight: 700; display: flex; align-items: center; justify-content: space-between; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a, .nav button { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); background: none; border: 0; text-align: left; width: 100%; }
.nav a:hover, .nav button:hover { background: var(--acc-soft); }
.nav a.on { background: var(--acc-soft); color: var(--acc); font-weight: 650; }
.nav .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font: 700 .95rem var(--head); flex: none; }
.nav .sub { display: block; color: var(--mut); font-size: .8rem; font-weight: 400; }
.nav .grow { flex: 1; min-width: 0; } .nav .grow b { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav.tools .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc); flex: none; }
.me { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.me .av { width: 38px; height: 38px; font-size: 1rem; }
.me .nm { flex: 1; min-width: 0; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.top { order: -2; display: flex; align-items: center; gap: 10px; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); background: var(--card); min-height: 58px; flex: none; }
.top h2 { font-size: 1.12rem; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top small { display: block; font: 400 .78rem var(--font); color: var(--mut); }
.view { flex: 1; min-height: 0; overflow-y: auto; position: relative; }
.pad { padding: 18px 16px 28px; max-width: 920px; margin: 0 auto; }
.tabs { display: flex; background: var(--card); border-top: 1px solid var(--line); order: 3; padding-bottom: var(--safe-b); flex: none; overflow-x: auto; scrollbar-width: none; }
.tabs a { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 7px 8px; min-height: var(--tabh); color: var(--mut); text-decoration: none; font-size: .66rem; font-weight: 600; position: relative; }
.tabs a.on { color: var(--acc); } .tabs a.on::after { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; border-radius: 0 0 3px 3px; background: var(--acc); }
.tabs svg.i { width: 1.5em; height: 1.5em; }
@media (min-width: 900px) {
  .tabs { order: -1; border-top: 0; border-bottom: 1px solid var(--line); padding: 0 12px; }
  .tabs a { flex: 0 0 auto; flex-direction: row; gap: 8px; font-size: .92rem; min-height: 46px; padding: 0 16px; }
  .tabs a.on::after { top: auto; bottom: 0; left: 8px; right: 8px; height: 3px; border-radius: 3px 3px 0 0; }
}

/* ---------- Bausteine ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-weight: 650; min-height: 42px; }
.btn:hover { border-color: color-mix(in srgb, var(--acc) 50%, var(--line)); }
.btn.pri { background: var(--acc); color: var(--acc-ink); border-color: transparent; }
.btn.pri:hover { filter: brightness(1.06); }
.btn.danger { color: var(--red); } .btn.danger.pri { background: var(--red); color: #fff; }
.btn.sm { padding: 6px 12px; min-height: 34px; font-size: .9rem; border-radius: 10px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.ibtn { width: 42px; height: 42px; border-radius: 12px; border: 0; background: none; display: inline-grid; place-items: center; color: var(--ink); flex: none; }
.ibtn:hover { background: var(--acc-soft); } .ibtn.on { background: var(--acc-soft); color: var(--acc); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 650; background: var(--acc-soft); color: var(--acc); white-space: nowrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: .9rem; }
.chips button.on { background: var(--acc); color: var(--acc-ink); border-color: transparent; }
.fld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; } .fld > span { font-size: .82rem; font-weight: 650; color: var(--mut); }
input[type=text], input[type=search], input[type=date], input:not([type]), select, textarea { width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); min-height: 44px; }
textarea { resize: vertical; min-height: 88px; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.seg button { flex: 1; padding: 10px 6px; border: 0; background: none; font-weight: 600; font-size: .9rem; }
.seg button.on { background: var(--acc); color: var(--acc-ink); }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 .9rem var(--head); flex: none; text-transform: uppercase; user-select: none; }
.empty { text-align: center; color: var(--mut); padding: 44px 20px; } .empty b { display: block; color: var(--ink); font: 700 1.1rem var(--head); margin-bottom: 4px; }
.empty .big { font-size: 2.6rem; display: block; margin-bottom: 8px; }
.row { display: flex; align-items: center; gap: 10px; } .grow { flex: 1; min-width: 0; }
.mut { color: var(--mut); } .sm { font-size: .86rem; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--acc); border-radius: 50%; animation: sp 0.8s linear infinite; margin: 60px auto; } @keyframes sp { to { transform: rotate(1turn); } }
.bar { height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; } .bar > i { display: block; height: 100%; background: var(--acc); border-radius: 8px; transition: width .3s; }

dialog { border: 0; padding: 0; border-radius: 18px; background: var(--card); color: var(--ink); box-shadow: 0 24px 60px #0006; width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; }
dialog::backdrop { background: #0b0e1499; backdrop-filter: blur(2px); }
dialog .dh { padding: 18px 20px 4px; } dialog .dh h3 { font-size: 1.2rem; } dialog .db { padding: 12px 20px; } dialog .da { padding: 8px 20px 18px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.menu { position: fixed; z-index: 50; min-width: 180px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 34px #0004; padding: 6px; }
.menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border: 0; background: none; border-radius: 9px; text-align: left; }
.menu button:hover { background: var(--acc-soft); } .menu button.danger { color: var(--red); }
#toast { position: fixed; left: 50%; bottom: calc(76px + var(--safe-b)); transform: translate(-50%, 20px); background: #1c2230; color: #fff; padding: 10px 18px; border-radius: 99px; opacity: 0; pointer-events: none; transition: .25s; z-index: 99; max-width: calc(100vw - 32px); text-align: center; font-weight: 600; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
.conn { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 20; background: var(--warn); color: #fff; padding: 4px 14px; border-radius: 99px; font-size: .8rem; font-weight: 700; box-shadow: var(--shadow); }

/* Startseite */
.hello h2 { font-size: 1.7rem; margin-bottom: 4px; }
.today { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-top: 10px; }
.today .l { flex: none; padding: 8px 12px; border-radius: 12px; color: #fff; font-weight: 650; font-size: .9rem; min-width: 96px; } .today .l small { display: block; opacity: .85; font-weight: 500; }
.onboard { max-width: 440px; margin: 0 auto; padding: 8vh 22px 30px; }
.onboard h1 { font-size: 2rem; margin: 18px 0 8px; }
.cols { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.gcard { padding: 16px; display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); }
.gcard:hover { border-color: var(--acc); }

/* ---------- Chat ---------- */
.chat { display: flex; flex-direction: column; height: 100%; }
.msgs { flex: 1; overflow-y: auto; padding: 14px 12px 6px; display: flex; flex-direction: column; gap: 3px; scroll-behavior: auto; }
.msgs .day { align-self: center; font-size: .74rem; font-weight: 700; color: var(--mut); background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 2px 12px; margin: 12px 0 6px; }
.m { display: flex; gap: 8px; max-width: min(86%, 620px); align-items: flex-end; margin-top: 8px; } .m.cont { margin-top: 0; }
.m.me { align-self: flex-end; flex-direction: row-reverse; }
.m .av { width: 30px; height: 30px; font-size: .78rem; } .m.cont .av { visibility: hidden; }
.bub { background: var(--other); border: 1px solid var(--line); padding: 7px 12px 6px; border-radius: 16px 16px 16px 5px; position: relative; min-width: 56px; overflow-wrap: anywhere; box-shadow: 0 1px 1px #0000000a; }
.m.me .bub { background: var(--mine); color: var(--mine-ink); border-color: transparent; border-radius: 16px 16px 5px 16px; }
.m.cont .bub { border-radius: 16px 16px 16px 16px; } .m.me.cont .bub { border-radius: 16px; }
.bub .who { font-size: .76rem; font-weight: 700; margin-bottom: 1px; }
.bub .t { white-space: pre-wrap; } .bub a { color: inherit; text-decoration: underline; }
.bub time { display: block; text-align: right; font-size: .68rem; opacity: .65; margin-top: 2px; }
.bub .more { position: absolute; top: 2px; right: 2px; width: 26px; height: 26px; border-radius: 8px; border: 0; background: none; color: inherit; opacity: 0; display: grid; place-items: center; }
.bub:hover .more, .bub:focus-within .more { opacity: .7; } @media (hover: none) { .bub .more { opacity: .45; } }
.bub.del { font-style: italic; opacity: .6; }
.quote { border-left: 3px solid color-mix(in srgb, currentColor 50%, transparent); padding: 2px 8px; margin: 2px 0 5px; font-size: .84rem; opacity: .85; border-radius: 3px; background: #00000010; cursor: pointer; }
.quote b { display: block; font-size: .74rem; }
.m.me .quote { background: #ffffff1c; }
.fileb { display: flex; gap: 10px; align-items: center; min-width: 200px; max-width: 320px; cursor: pointer; }
.fileb .ic { width: 42px; height: 42px; border-radius: 11px; background: color-mix(in srgb, currentColor 14%, transparent); display: grid; place-items: center; flex: none; font-weight: 800; font-size: .72rem; letter-spacing: .03em; }
.fileb .nm { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .fileb small { opacity: .75; }
.imgb { display: block; max-width: min(300px, 70vw); border-radius: 10px; margin: 2px 0; cursor: zoom-in; background: #0001; } .imgb img { display: block; width: 100%; height: auto; border-radius: 10px; }
.calcb { font-size: .95rem; min-width: 190px; } .calcb .r { padding: 4px 0; border-bottom: 1px dashed color-mix(in srgb, currentColor 25%, transparent); } .calcb .r:last-child { border: 0; }
.calcb .i { font: 500 .85rem ui-monospace, Menlo, monospace; opacity: .85; overflow-x: auto; } .calcb .o { overflow-x: auto; } .calcb .hd { font-size: .72rem; font-weight: 700; opacity: .7; margin-bottom: 2px; }
.prog { height: 4px; border-radius: 4px; background: #fff4; overflow: hidden; margin-top: 6px; } .prog > i { display: block; height: 100%; background: #fff; width: 0; }
.composer { border-top: 1px solid var(--line); background: var(--card); padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); flex: none; }
.composer .reply { display: flex; align-items: center; gap: 8px; background: var(--acc-soft); border-left: 3px solid var(--acc); border-radius: 8px; padding: 4px 6px 4px 10px; margin-bottom: 6px; font-size: .86rem; }
.composer .box { display: flex; gap: 6px; align-items: flex-end; }
.composer textarea { min-height: 42px; max-height: 140px; resize: none; overflow-y: hidden; border-radius: 22px; padding: 10px 16px; line-height: 1.35; }
.composer .send { width: 44px; height: 44px; border-radius: 50%; background: var(--acc); color: var(--acc-ink); border: 0; display: grid; place-items: center; flex: none; }
.composer .send[disabled] { opacity: .4; }
.drop { position: absolute; inset: 0; z-index: 30; background: color-mix(in srgb, var(--acc) 16%, transparent); border: 3px dashed var(--acc); border-radius: 14px; display: grid; place-items: center; font: 700 1.3rem var(--head); color: var(--acc); pointer-events: none; margin: 8px; backdrop-filter: blur(2px); }
.lb { position: fixed; inset: 0; z-index: 80; background: #05070bee; display: flex; flex-direction: column; }
.lb .bar2 { display: flex; gap: 8px; padding: 10px 12px; padding-top: max(10px, env(safe-area-inset-top)); color: #fff; align-items: center; } .lb .bar2 b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb .bar2 .ibtn { color: #fff; } .lb .bar2 .ibtn:hover { background: #ffffff22; }
.lb .st { flex: 1; min-height: 0; display: grid; place-items: center; padding: 8px; } .lb img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }

/* ---------- Tafel ---------- */
.board { display: flex; flex-direction: column; height: 100%; background: var(--bg); }
.tb { display: flex; gap: 6px; align-items: center; padding: 8px 10px; background: var(--card); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; flex: none; }
.tb::-webkit-scrollbar { display: none; }
.tb .sep { width: 1px; height: 26px; background: var(--line); flex: none; margin: 0 4px; }
.tb .ibtn { width: 40px; height: 40px; }
.sw { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--line); flex: none; padding: 0; } .sw.on { box-shadow: 0 0 0 2.5px var(--acc); }
.szb { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 0; background: none; flex: none; } .szb i { display: block; border-radius: 50%; background: var(--ink); } .szb.on { background: var(--acc-soft); } .szb.on i { background: var(--acc); }
.pg { display: flex; gap: 4px; padding: 6px 10px; background: var(--card2); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; flex: none; align-items: center; }
.pg button { padding: 4px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); font-size: .84rem; font-weight: 650; flex: none; } .pg button.on { background: var(--acc); color: var(--acc-ink); border-color: transparent; }
.bwrap { flex: 1; min-height: 0; display: grid; place-items: center; padding: 10px; position: relative; }
.bwrap canvas { background: #fff; border-radius: 10px; box-shadow: var(--shadow); touch-action: none; cursor: crosshair; display: block; }
.btxt { position: absolute; z-index: 5; border: 2px solid var(--acc); border-radius: 6px; padding: 0 4px; background: #fffd; color: #000; min-height: 0; line-height: 1.1; width: auto; min-width: 80px; }
.bwho { position: absolute; right: 16px; bottom: 16px; font-size: .78rem; background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 3px 12px; color: var(--mut); }

/* ---------- Aufgaben ---------- */
.cd { padding: 16px 18px; background: linear-gradient(135deg, var(--acc), color-mix(in srgb, var(--acc) 55%, #7a3fd0)); color: #fff; border-radius: var(--r); display: flex; gap: 14px; align-items: center; margin-bottom: 16px; box-shadow: var(--shadow); }
.cd .n { font: 800 2.4rem var(--head); line-height: 1; min-width: 56px; text-align: center; } .cd small { opacity: .85; display: block; }
.grp > h3 { font: 700 .78rem var(--font); letter-spacing: .07em; text-transform: uppercase; color: var(--mut); margin: 18px 4px 8px; }
.grp > h3.late { color: var(--red); }
.task { display: flex; gap: 12px; padding: 12px 14px; margin-bottom: 8px; align-items: flex-start; }
.task .ck { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line); background: var(--card); display: grid; place-items: center; flex: none; color: transparent; margin-top: 1px; padding: 0; }
.task .ck.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.task.dn .ti { text-decoration: line-through; color: var(--mut); }
.task .ti { font-weight: 650; } .task .nt { color: var(--mut); font-size: .9rem; white-space: pre-wrap; margin-top: 2px; }
.task .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; align-items: center; font-size: .8rem; color: var(--mut); }
.task .kind { font-size: 1.15rem; }
.due.late { color: var(--red); font-weight: 700; } .due.soon { color: var(--warn); font-weight: 700; }

/* ---------- Karteikarten ---------- */
.deck { padding: 16px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; border-left: 6px solid var(--c, var(--acc)); }
.deck:hover { border-color: var(--c, var(--acc)); } .deck h3 { font-size: 1.1rem; }
.cardrow { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; padding: 10px 12px; align-items: start; margin-bottom: 6px; }
.cardrow div { white-space: pre-wrap; overflow-wrap: anywhere; } .cardrow .b { color: var(--mut); }
@media (max-width: 560px) { .cardrow { grid-template-columns: 1fr auto; } .cardrow .b { grid-column: 1; grid-row: 2; } .cardrow .act { grid-row: 1 / 3; grid-column: 2; } }
.study { display: flex; flex-direction: column; height: 100%; max-width: 640px; margin: 0 auto; padding: 14px 16px calc(18px + var(--safe-b)); gap: 14px; }
.flip { flex: 1; min-height: 220px; max-height: 460px; perspective: 1200px; cursor: pointer; }
.flip > div { position: relative; width: 100%; height: 100%; transition: transform .45s cubic-bezier(.3, .7, .3, 1); transform-style: preserve-3d; }
.flip.f > div { transform: rotateY(180deg); }
.flip .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; padding: 26px; text-align: center; font: 600 clamp(1.2rem, 4.2vw, 1.7rem)/1.3 var(--head); border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.flip .face.bk { transform: rotateY(180deg); background: var(--acc-soft); } .flip .face small { position: absolute; top: 12px; left: 16px; font: 700 .7rem var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.study .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .study .acts .btn { min-height: 52px; font-size: 1.02rem; }
.study .acts .no { color: var(--red); } .study .acts .yes { background: var(--ok); color: #fff; border-color: transparent; }
@media (prefers-reduced-motion: reduce) { .flip > div { transition: none; } }

/* ---------- Dateien ---------- */
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.file { overflow: hidden; display: flex; flex-direction: column; cursor: pointer; }
.file .pv { aspect-ratio: 4 / 3; background: var(--acc-soft); display: grid; place-items: center; color: var(--acc); font: 800 1.1rem var(--head); overflow: hidden; } .file .pv img { width: 100%; height: 100%; object-fit: cover; }
.file .in { padding: 8px 10px; } .file .nm { font-weight: 650; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .file small { color: var(--mut); display: block; }

/* ---------- Mitglieder ---------- */
.code { font: 800 2rem/1 ui-monospace, Menlo, monospace; letter-spacing: .18em; padding: 14px 18px; background: var(--acc-soft); color: var(--acc); border-radius: 14px; text-align: center; user-select: all; }
.mem { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.mem .on { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; } .mem .on.y { background: var(--ok); }

/* ---------- Formeln ---------- */
.fcat { margin-top: 22px; } .fcat h3 { font-size: 1.15rem; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.fgrid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.fm { padding: 12px 14px; } .fm b { display: block; font-size: .84rem; color: var(--mut); font-weight: 650; margin-bottom: 4px; } .fm .k { overflow-x: auto; padding: 4px 0; font-size: 1.08rem; }

/* ---------- Stundenplan ---------- */
.plan { display: grid; grid-template-columns: 40px repeat(5, minmax(0, 1fr)); gap: 6px; }
.plan .hd { text-align: center; font-weight: 700; font-size: .84rem; padding: 4px 0; color: var(--mut); } .plan .hd.td { color: var(--acc); }
.plan .no { text-align: center; color: var(--mut); font-size: .8rem; display: grid; place-items: center; line-height: 1.1; } .plan .no small { display: block; font-size: .64rem; }
.plan .c { min-height: 58px; border-radius: 12px; border: 1px dashed var(--line); background: var(--card); padding: 6px; font-size: .82rem; font-weight: 650; text-align: left; overflow: hidden; color: inherit; } .plan .c small { display: block; font-weight: 500; opacity: .85; }
.plan .c.f { border-style: solid; border-color: transparent; color: #fff; }
@media (max-width: 560px) { .plan { gap: 4px; } .plan .c { padding: 4px; font-size: .7rem; min-height: 52px; } }
@media print { .side, .tabs, .top { display: none !important; } }
