:root { --sel: #e3ecff; --line: #e6e8ee; --muted: #6b7280; --sum: #1f2937; --akzent: #3f51b5; }
[v-cloak], [hidden] { display: none !important; }
body { background: #f6f7fb;font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

/* Anmeldung */
body.anmelden { display: flex; min-height: 100vh; align-items: center; justify-content: center; margin: 0; }
.anmelde-karte { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 28px 28px 20px;
                 width: min(360px, calc(100vw - 32px)); box-sizing: border-box; }
.anmelde-karte h1 { font-size: 20px; font-weight: 600; margin: 0 0 18px; }
.anmelde-karte label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.anmelde-karte input { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 9px 10px;
                       font-size: 16px; border: 1px solid #cfd4dc; border-radius: 6px; }
.anmelde-karte button { width: 100%; padding: 10px; font-size: 15px; background: var(--akzent); color: #fff;
                        border: 0; border-radius: 6px; cursor: pointer; }
.anmelde-karte button:disabled { opacity: .6; }
#meldung { color: #c62828; font-size: 13px; min-height: 1.2em; margin: 12px 0 0; }

/* Anwendung */
.wrap { max-width: 1500px; margin: 0 auto; padding: 12px 16px; }
.hint { color: var(--muted); font-size: 12px; }
table.tree { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
table.tree th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 6px 8px;
                border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
table.tree td { padding: 5px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.tree tr.sel td { background: var(--sel); }
table.tree tr.done td.t { text-decoration: line-through; color: var(--muted); }
td.t { width: 100%; white-space: normal !important; }
td.t .sum { font-weight: 600; color: var(--sum); }
td.wbs { color: var(--muted); font-variant-numeric: tabular-nums; }
td.desk { color: var(--akzent); font-weight: 600; cursor: pointer; }
.over { color: #c62828; font-weight: 500; }
.prio-Hoch { color: #c62828; } .prio-Niedrig { color: var(--muted); }
.tablebox { max-height: calc(100vh - 150px); overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.weekgrid { display: grid; grid-template-columns: 280px 1fr; gap: 12px; }
.side { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; max-height: calc(100vh - 130px); overflow: auto; }
.ext-task { padding: 6px 8px; margin: 4px 0; border: 1px solid var(--line); border-left: 4px solid #5c6bc0;
            border-radius: 6px; background: #fafbff; cursor: grab; font-size: 13px; }
.ext-task.p-Hoch { border-left-color: #c62828; } .ext-task.p-Niedrig { border-left-color: #9e9e9e; }
.ext-task small { color: var(--muted); display: block; }
.calbox { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.load { height: 6px; border-radius: 3px; background: #eceff1; margin: 3px 6px 0; overflow: hidden; }
.load > div { height: 100%; background: #5c6bc0; }
.load.warn > div { background: #ef6c00; } .load.crit > div { background: #c62828; }
.dayhead { line-height: 1.2; padding: 2px 0; }
.dayhead .h { font-size: 11px; color: var(--muted); font-weight: 400; }
.fc .fc-event.prio-Hoch { font-weight: 600; }
.fc .fc-event.prio-Niedrig { font-style: italic; opacity: .85; }
.fc .fc-event.done { opacity: .45; text-decoration: line-through; }
.fc .fc-event.deadline { font-weight: 500; }
.fc .fc-timegrid-slot { height: 1.6em; }
.kopfzeile { gap: 12px; }
.f-suche { width: 220px; } .f-sel { min-width: 140px; }
.filterleiste .q-btn-toggle { border: 1px solid #cfd4dc; }
.fokusleiste { background: #fff8e1; border: 1px solid #ffe082; border-radius: 6px; padding: 4px 10px; font-size: 13px; }
table.tree tr.kontext td { color: #9aa0a6; }
table.tree tr.kontext td.t .sum { color: #9aa0a6; }
.bereich { margin-left: 8px; font-size: 11px; color: #5c6bc0; background: #eef0fb; border-radius: 8px; padding: 1px 6px; }
.links { border-top: 1px solid var(--line); padding-top: 6px; }
.link-zeile a { color: var(--akzent); text-decoration: none; } .link-zeile a:hover { text-decoration: underline; }
table.picker tr.waehlbar { cursor: pointer; } table.picker tr.waehlbar:hover td { background: var(--sel); }
.kontextmenue { position: fixed; z-index: 7000; background: #fff; border: 1px solid #cfd4dc; border-radius: 8px;
                box-shadow: 0 6px 24px rgba(0,0,0,.15); padding: 4px; min-width: 210px; }
.kontextmenue .km-titel { font-size: 12px; color: var(--muted); padding: 4px 10px; max-width: 260px; }
.kontextmenue button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 7px 10px;
                       font: inherit; font-size: 14px; border-radius: 5px; cursor: pointer; }
.kontextmenue button:hover { background: var(--sel); }
@media (max-width: 700px) {
  .f-suche { width: 100%; }
  .wrap { padding: 8px; }
  .tablebox { max-height: none; }
  table.tree:not(.picker) td:nth-child(1), table.tree:not(.picker) th:nth-child(1),
  table.tree td:nth-child(5), table.tree th:nth-child(5), table.tree td:nth-child(6), table.tree th:nth-child(6) { display: none; }
  table.tree td, table.tree th { padding: 5px 4px; }
  .fc .fc-toolbar { flex-wrap: wrap; gap: 6px; }
  .fc .fc-toolbar-title { font-size: 16px; }
  .calbox .hint { display: none; }
  .calbox { padding: 4px; }
}
.sicherung { font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .weekgrid { grid-template-columns: 1fr; } .hint.tasten { display: none; } .side { max-height: 30vh; } }
