/* Gemeinsame Gestaltung von Anmeldung und Anwendung.
   Farben, Abstände und Radien der Minerva Platform. */
:root {
  --bg: #f6f7f9; --card: #fff; --line: #e6e9ef; --line-soft: #f0f2f6;
  --text: #0f172a; --muted: #64748b; --faint: #94a3b8;
  --side: #0f172a; --side-active: #1e293b; --side-text: #94a3b8;
  --accent: #4f46e5; --accent-dark: #4338ca; --accent-soft: #eef2ff;
  --critical: #e11d48; --critical-soft: #fff1f2; --done: #10b981;
  --milestone: #7c3aed; --summary: #334155; --weekend: #f8fafc;
  --radius: 10px; --shadow: 0 1px 2px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.06);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.5 Inter, "SF Pro Text", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }

/* -- Anmeldung ---------------------------------------------------------- */
.auth { min-height: 100%; display: grid; grid-template-columns: 1fr 1fr; }
.auth__side {
  background: var(--side); color: #fff; padding: 56px 48px;
  display: flex; flex-direction: column; justify-content: center;
}
.auth__side h1 { font-size: 34px; margin: 0 0 12px; letter-spacing: -.02em; }
.auth__side p { color: var(--side-text); max-width: 42ch; margin: 0 0 28px; }
.auth__list { list-style: none; padding: 0; margin: 0; color: var(--side-text); }
.auth__list li { padding: 7px 0 7px 26px; position: relative; }
.auth__list li::before {
  content: "→"; position: absolute; left: 0; color: var(--accent);
}
.auth__form { display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth__box { width: min(400px, 100%); }
.auth__box h2 { margin: 0 0 4px; font-size: 22px; }
.auth__box .sub { color: var(--muted); margin: 0 0 24px; }
.tabs { display: flex; gap: 4px; background: var(--line-soft); padding: 4px;
  border-radius: var(--radius); margin-bottom: 20px; }
.tabs button {
  flex: 1; border: 0; background: none; padding: 9px; border-radius: 7px;
  cursor: pointer; color: var(--muted); font-weight: 600;
}
.tabs button[aria-selected="true"] { background: var(--card); color: var(--text);
  box-shadow: 0 1px 2px rgba(15,23,42,.08); }

label { display: block; font-size: 12px; font-weight: 600; color: var(--muted);
  margin: 14px 0 5px; }
input[type=text], input[type=email], input[type=password], input[type=date],
input[type=number], input[type=time], input[type=datetime-local], input[type=file],
select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--card); outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.btn {
  border: 0; border-radius: 8px; padding: 10px 16px; cursor: pointer;
  background: var(--line-soft); color: var(--text); font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px; line-height: 1.2;
}
.btn i { font-size: .92em; opacity: .85; }
.btn[hidden], [hidden] { display: none !important; }
.btn--primary i, .btn--danger i { opacity: 1; }
.btn:hover { background: #e4e7ee; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; color: var(--muted); }
.btn--ghost:hover { background: var(--line-soft); }
.btn--wide { width: 100%; margin-top: 22px; padding: 12px; }
.btn--danger { background: var(--critical-soft); color: var(--critical); }
.alert { background: var(--critical-soft); color: var(--critical); padding: 10px 12px;
  border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.note { background: var(--accent-soft); color: var(--accent-dark); padding: 10px 12px;
  border-radius: 8px; font-size: 13px; margin-bottom: 14px; }

/* -- Rahmen der Anwendung ------------------------------------------------ */
.shell { display: grid; grid-template-columns: 244px 1fr; height: 100vh; }
.shell.mit-assistent { grid-template-columns: 244px 1fr 380px; }
.side { background: var(--side); color: #fff; display: flex; flex-direction: column;
  overflow: hidden; }
.side__brand { padding: 22px 20px 18px; }
.side__brand b { font-size: 17px; letter-spacing: -.01em; }
.side__brand span { display: block; color: var(--side-text); font-size: 12px; }
.side__label { color: var(--side-text); font-size: 11px; font-weight: 700; letter-spacing: .08em;
  padding: 22px 20px 8px; display: flex; justify-content: space-between;
  align-items: center; }
.side__label button { background: none; border: 0; color: var(--side-text);
  cursor: pointer; font-size: 15px; line-height: 1; }
.side__label > span + span { display: inline-flex; gap: 12px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 20px; color: var(--side-text);
  text-decoration: none; border-left: 3px solid transparent; cursor: pointer;
}
.nav a i { width: 17px; text-align: center; font-size: 14px; opacity: .85; }
.nav__zahl { margin-left: auto; background: var(--accent); color: #fff; font-size: 11px;
  font-weight: 700; min-width: 19px; padding: 1px 6px; border-radius: 999px;
  text-align: center; }
.nav a.is-active i { opacity: 1; color: var(--accent-icon, #a5b4fc); }
.nav a:hover { background: var(--side-active); color: #fff; }
.nav a.is-active { background: var(--side-active); color: #fff;
  border-left-color: var(--accent); font-weight: 600; }
.projects { overflow-y: auto; flex: 1; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.side__foot { padding: 14px 20px; border-top: 1px solid #1e293b; font-size: 12px;
  color: var(--side-text); display: flex; justify-content: space-between; align-items: center; }
.side__foot a { color: var(--side-text); text-decoration: none; margin-left: 10px; }
.side__foot a:hover, .side__foot button:hover { color: #fff; }
/* Abmelden ist ein Formular (POST), soll aber aussehen wie die Verweise daneben. */
.side__foot form { display: inline; }
.side__foot button { background: none; border: 0; padding: 0; margin-left: 10px;
  font: inherit; color: var(--side-text); cursor: pointer; }
.side__brand b i { color: var(--accent); margin-right: 2px; }

.main { display: flex; flex-direction: column; overflow: hidden; }
.head { background: var(--card); border-bottom: 1px solid var(--line); padding: 16px 24px;
  display: flex; align-items: center; gap: 26px;
  /* Mit offener Assistentenleiste wird die Mitte schmal: lieber umbrechen als
     die hinteren Knöpfe abschneiden. */
  flex-wrap: wrap; }
.head__crumb { color: var(--faint); font-size: 12px; }
.head h1 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.kpis { display: flex; gap: 26px; margin-left: auto; }
.kpi b { display: block; font-size: 16px; }
.kpi span { font-size: 10px; color: var(--faint); letter-spacing: .06em; }
.head__actions { display: flex; gap: 8px; }
.content { flex: 1; overflow: auto; padding: 18px 24px 28px; }
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  flex-wrap: wrap; }
.toolbar h2 { margin: 0; font-size: 17px; }
.toolbar select { width: auto; min-width: 190px; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.empty { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 46px; text-align: center; color: var(--muted); }
.empty .btn { margin-top: 16px; }
/* Börse: Beschreibung im Fließtext, nicht als Tabellenzelle gequetscht */
.karte p { margin: 8px 0 0; color: var(--muted); }

/* -- Assistent ------------------------------------------------------------ */
.assistent { display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border-left: 1px solid var(--line); }
.assistent__kopf { display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid var(--line); }
.assistent__kopf button { background: none; border: 0; padding: 0 0 0 12px;
  color: var(--faint); cursor: pointer; font: inherit; }
.assistent__kopf button:hover { color: var(--text); }
.assistent__schnell { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 0; }
.assistent__verlauf { flex: 1; overflow-y: auto; padding: 12px 16px;
  display: flex; flex-direction: column; gap: 10px; }
.assistent__frage, .assistent__antwort { white-space: pre-wrap; font-size: 13px;
  border-radius: 10px; padding: 9px 12px; }
.assistent__frage { background: var(--accent-soft); align-self: flex-end; max-width: 90%; }
.assistent__antwort { background: var(--line-soft); }
.assistent__vorschlaege { border-top: 1px solid var(--line); padding: 10px 16px;
  max-height: 40%; overflow-y: auto; font-size: 13px; }
.assistent__vorschlaege label { display: flex; gap: 8px; align-items: flex-start;
  padding: 4px 0; font-weight: 400; }
.assistent__eingabe { display: flex; gap: 8px; align-items: flex-end;
  padding: 12px 16px; border-top: 1px solid var(--line); }
.assistent__eingabe textarea { resize: none; }
#b-text { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; }

/* -- Kanban -------------------------------------------------------------- */
.board { display: flex; gap: 14px; align-items: flex-start; }
.col { background: var(--card); border-radius: var(--radius); flex: 1 1 0; min-width: 230px;
  padding: 12px; box-shadow: var(--shadow); min-height: 320px; }
.col.is-over { outline: 2px dashed var(--accent); outline-offset: -4px; }
.col__head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.col__head b { flex: 1; }
.col__head .count { color: var(--faint); font-size: 12px; }
.card { border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px;
  margin-bottom: 10px; cursor: grab; background: var(--card); }
.card:hover { border-color: var(--accent); }
.card.is-critical { border-left: 3px solid var(--critical); }
.card__parent { font-size: 10px; color: var(--faint); text-transform: uppercase;
  letter-spacing: .05em; }
.card__title { font-weight: 600; margin: 3px 0 8px; }
.card__meta { display: flex; align-items: center; gap: 8px; font-size: 11px;
  color: var(--muted); }
.avatar { margin-left: auto; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); display: grid;
  place-items: center; font-size: 10px; font-weight: 700; }
.bar { height: 4px; border-radius: 2px; background: var(--line); margin-top: 9px; }
.bar > i { display: block; height: 100%; border-radius: 2px; background: var(--accent); }

/* -- Gantt --------------------------------------------------------------- */
.gantt { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; grid-template-columns: 300px 1fr; overflow: hidden; }
.gantt__names { border-right: 1px solid var(--line); }
.gantt__scroll { overflow-x: auto; position: relative; }
.gantt__row { height: 30px; display: flex; align-items: center; padding: 0 12px;
  border-bottom: 1px solid var(--line-soft); font-size: 13px; white-space: nowrap;
  overflow: hidden; }
.gantt__row.is-summary { font-weight: 700; }
.gantt__row .who { margin-left: auto; color: var(--faint); font-size: 11px; }
.gantt__head { height: 46px; border-bottom: 1px solid var(--line); position: relative; }
.gantt__month { position: absolute; top: 6px; font-size: 11px; font-weight: 700;
  padding-left: 5px; border-left: 1px solid var(--line); }
.gantt__day { position: absolute; top: 26px; font-size: 10px; color: var(--faint);
  text-align: center; }
.gantt__canvas { position: relative; }
.gantt__weekend { position: absolute; top: 0; bottom: 0; background: var(--weekend); }
.gantt__today { position: absolute; top: -18px; bottom: 0; width: 0;
  border-left: 2px dashed var(--critical); }
.gantt__line { position: absolute; left: 0; right: 0; height: 30px;
  border-bottom: 1px solid var(--line-soft); }
.gantt__bar { position: absolute; height: 18px; border-radius: 5px; top: 6px;
  background: #c7d2fe; overflow: hidden; }
.gantt__bar i { display: block; height: 100%; background: var(--accent); }
.gantt__bar.is-critical { background: #fecdd3; }
.gantt__bar.is-critical i { background: var(--critical); }
.gantt__sum { position: absolute; height: 5px; top: 12px; background: var(--summary);
  border-radius: 2px; }
.gantt__ms { position: absolute; width: 14px; height: 14px; top: 8px;
  background: var(--milestone); transform: rotate(45deg); border-radius: 2px; }
.gantt__tag { position: absolute; top: 8px; font-size: 10px; color: var(--faint);
  white-space: nowrap; }

/* -- Kalender ------------------------------------------------------------ */
.cal { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal__dow { padding: 10px 12px; font-size: 11px; font-weight: 700; color: var(--faint);
  letter-spacing: .06em; border-bottom: 1px solid var(--line); }
.cal__cell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  min-height: 108px; padding: 6px; position: relative; }
.cal__cell.is-out { background: var(--line-soft); }
.cal__cell.is-weekend { background: var(--weekend); }
.cal__num { font-size: 12px; font-weight: 700; color: var(--text); }
.cal__cell.is-out .cal__num { color: var(--faint); font-weight: 400; }
.cal__today { display: inline-grid; place-items: center; width: 22px; height: 22px;
  border-radius: 50%; background: var(--accent); color: #fff; }
.cal__lanes { position: absolute; left: 0; right: 0; top: 30px; }
.chip { position: absolute; height: 22px; border-radius: 5px; padding: 0 8px;
  font-size: 11px; font-weight: 600; line-height: 22px; white-space: nowrap;
  overflow: hidden; cursor: pointer; border-left: 3px solid; }
.legend { display: flex; gap: 14px; align-items: center; font-size: 12px;
  color: var(--muted); }
.legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block;
  margin-right: 5px; }

/* -- Tabellen ------------------------------------------------------------ */
table.grid { width: 100%; border-collapse: collapse; background: var(--card);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.grid th { text-align: left; font-size: 11px; color: var(--faint); font-weight: 700;
  padding: 12px 10px; border-bottom: 1px solid var(--line); letter-spacing: .04em; }
.grid td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.grid tbody tr:hover { background: var(--accent-soft); cursor: pointer; }
.grid tr.is-critical td { background: var(--critical-soft); }
.grid tr.is-summary td { font-weight: 700; }
.num { text-align: right; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px;
  background: var(--line-soft); color: var(--muted); }

/* -- Dialoge ------------------------------------------------------------- */
dialog { border: 0; border-radius: 14px; padding: 0; box-shadow: var(--shadow);
  width: min(560px, 92vw); }
dialog::backdrop { background: rgba(15,23,42,.45); }
.modal { padding: 22px 24px 20px; max-height: 88vh; overflow: auto; }
.modal h3 { margin: 0 0 4px; font-size: 19px; }
.modal .sub { color: var(--muted); margin: 0 0 12px; font-size: 13px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal__foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }
.modal__foot .left { margin-right: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 128px; overflow: auto;
  border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.chips label { margin: 0; display: inline-flex; align-items: center; gap: 5px;
  background: var(--line-soft); border-radius: 999px; padding: 4px 10px; font-size: 12px;
  cursor: pointer; color: var(--text); font-weight: 500; }
.chips input { accent-color: var(--accent); }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line);
  border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite;
  vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
#meldungen { position: fixed; right: 22px; bottom: 22px; z-index: 100;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.toast { background: var(--side); color: #fff; padding: 12px 16px; border-radius: 10px;
  box-shadow: var(--shadow); font-size: 13px; max-width: 380px; }
.toast.is-error { background: var(--critical); }

@media (max-width: 900px) {
  .shell { grid-template-columns: 64px 1fr; }
  /* Nur die Beschriftungen ausblenden. Die alte Regel zielte auf eine Klasse,
     die der Baum gar nicht mehr zeichnet, und nahm mit .side__label die Knöpfe
     zum Anlegen mit - auf dem Handy ließ sich damit nichts mehr anlegen. */
  .side__brand span, .nav a span, .tree__row > span:not(.kind),
  .side__label > span:first-child { display: none; }
  .auth { grid-template-columns: 1fr; } .auth__side { display: none; }
  .kpis { display: none; }
}

/* -- Organisationsbaum in der Seitenleiste -------------------------------- */
.tree { padding: 2px 0 10px; }
.tree__row { display: flex; align-items: center; gap: 7px; padding: 5px 10px 5px 0;
  color: var(--side-text); cursor: pointer; border-left: 3px solid transparent;
  font-size: 13px; }
.tree__row:hover { background: var(--side-active); color: #fff; }
.tree__row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tree__row.is-active { background: var(--side-active); color: #fff;
  border-left-color: var(--accent); font-weight: 600; }
.tree__row .kind { width: 15px; text-align: center; font-size: 11px; color: #64748b;
  flex: none; }
.tree__row.is-active .kind, .tree__row:hover .kind { color: #cbd5e1; }
.tree__add { margin-left: auto; opacity: 0; padding: 0 6px; font-size: 13px; }
.tree__row:hover .tree__add { opacity: .8; }
.tree__row .tree__add:hover { opacity: 1; color: #fff; }
/* #kontoname ist ein Knopf (Tastaturbedienung), soll aber Text bleiben. */
.klickbar { cursor: pointer; text-decoration: underline dotted; background: none;
  border: 0; padding: 0; font: inherit; color: inherit; }

/* -- Dialoge: breite Fassung mit Kommentarspalte -------------------------- */
dialog.weit { width: min(1040px, 95vw); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.komm { display: flex; flex-direction: column; min-height: 0; }
.komm__liste { flex: 1; overflow: auto; max-height: 380px; min-height: 160px; border: 1px solid var(--line);
  border-radius: 8px; padding: 10px; background: var(--bg); margin-bottom: 10px; }
.komm__leer { color: var(--faint); font-size: 13px; padding: 10px; text-align: center; }
.komm__item { background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 11px; margin-bottom: 8px; }
.komm__kopf { display: flex; align-items: center; gap: 8px; font-size: 11px;
  color: var(--muted); margin-bottom: 5px; }
.komm__kopf b { color: var(--text); font-size: 12px; }
.komm__kopf .weg { margin-left: auto; cursor: pointer; color: var(--faint); }
.komm__kopf .weg:hover { color: var(--critical); }
.komm__text { font-size: 13px; white-space: pre-wrap; }
.komm__check { display: flex; align-items: flex-start; gap: 7px; font-size: 13px;
  padding: 3px 0; cursor: pointer; }
.komm__check input { margin-top: 3px; accent-color: var(--accent); }
.komm__check.is-done span { text-decoration: line-through; color: var(--faint); }
.komm__fort { font-size: 11px; color: var(--muted); margin-top: 6px; }
.komm__foot { display: flex; gap: 8px; justify-content: space-between; margin-top: 8px; }

/* -- Anhänge, Dokumente -------------------------------------------------- */
.anhang { display: flex; flex-wrap: wrap; gap: 6px; }
.anhang__item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px;
  background: var(--line-soft); border-radius: 999px; padding: 4px 11px; }
.anhang__item a { color: var(--text); text-decoration: none; }
.anhang__item a:hover { color: var(--accent); }
.dropzone { border: 2px dashed var(--line); border-radius: var(--radius); padding: 26px;
  text-align: center; color: var(--muted); background: var(--card); margin-bottom: 14px; }
.dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }

/* -- Tagesplan ----------------------------------------------------------- */
.tag { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.zeitstrahl { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 16px; }
.slot { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.slot:last-child { border-bottom: 0; }
.slot__zeit { width: 104px; flex: none; font-variant-numeric: tabular-nums;
  color: var(--muted); font-size: 12px; }
.slot__inhalt { flex: 1; }
.slot__inhalt b { display: block; }
.slot--meeting { border-left: 3px solid var(--milestone); padding-left: 10px; }
.slot--arbeit { border-left: 3px solid var(--accent); padding-left: 10px; }
.slot--arbeit.is-critical { border-left-color: var(--critical); }
.slot--frei { border-left: 3px solid var(--line); padding-left: 10px; color: var(--faint); }
.karte { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 16px; margin-bottom: 14px; }
.karte h3 { margin: 0 0 10px; font-size: 14px; }
.meter { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden;
  margin: 8px 0 4px; }
.meter i { display: block; height: 100%; background: var(--accent); }
.vorschlag { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.vorschlag button { border: 1px solid var(--line); background: var(--card);
  border-radius: 999px; padding: 6px 12px; font-size: 12px; cursor: pointer; }
.vorschlag button:hover { border-color: var(--accent); color: var(--accent); }

/* -- Installationsseite --------------------------------------------------- */
body.doc { background: var(--bg); }
.doc__wrap { max-width: 820px; margin: 0 auto; padding: 42px 24px 80px; }
.doc__back { display: inline-block; margin-bottom: 18px; color: var(--muted);
  text-decoration: none; font-size: 13px; }
.doc__wrap h1 { font-size: 30px; margin: 0 0 10px; letter-spacing: -.02em; }
.doc__wrap h2 { font-size: 17px; margin: 30px 0 8px; }
.doc__wrap .lead { color: var(--muted); font-size: 15px; }
.doc__wrap pre { background: var(--side); color: #e2e8f0; padding: 14px 16px;
  border-radius: 10px; overflow-x: auto; font-size: 13px; }
.doc__wrap code { background: var(--line-soft); padding: 1px 6px; border-radius: 5px;
  font-size: 13px; }
.doc__wrap pre code { background: none; padding: 0; }
.doc__wrap .hinweis { background: var(--accent-soft); color: var(--accent-dark);
  padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.doc__wrap table.grid { margin: 12px 0; }
.doc__wrap .btn { text-decoration: none; display: inline-block; }


/* -- Profil, Erweiterungen, Einstellungen --------------------------------- */
img.avatar { object-fit: cover; }
.avatar--gross { width: 64px; height: 64px; font-size: 20px; margin: 0; }
.person { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.person .avatar { margin: 0; }
.person:hover span:last-child { color: var(--accent); text-decoration: underline dotted; }
.person:focus-visible { outline: 2px solid var(--accent); border-radius: 6px; }
.profil__kopf { display: flex; align-items: center; gap: 16px; margin: 6px 0 12px; }
.profil__kopf .btn { margin-right: 6px; }
.einstellungen { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px; align-items: start; }
.einstellungen .karte { margin: 0; }
.module { display: grid; gap: 8px; }
.modul { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 9px; margin: 0; cursor: pointer;
  font-weight: 400; color: var(--text); font-size: 13px; }
.modul:hover { border-color: var(--accent); }
.modul.is-bald { opacity: .6; cursor: default; }
.modul input { margin-top: 3px; accent-color: var(--accent); }
.modul b { font-size: 13px; }
.pill--extern { background: #fef3c7; color: #92400e; }
.wahl { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 9px; margin: 6px 0; cursor: pointer;
  font-weight: 400; color: var(--text); font-size: 13px; }
.wahl:hover { border-color: var(--accent); }
.wahl input { accent-color: var(--accent); margin-top: 3px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; margin: 8px 0 4px; padding: 0; }

/* -- Symbole (Font Awesome, lokal ausgeliefert) --------------------------- */
h1 i, h2 i, h3 i { color: var(--accent); margin-right: 6px; }
.doc__wrap h2 i { font-size: .85em; }
.auth__list li { padding-left: 30px; }
.auth__list li::before { content: none; }
.auth__list li i { position: absolute; left: 0; top: 9px; color: var(--accent);
  width: 20px; text-align: center; }
.alert i, .note i, .hinweis i { margin-right: 6px; }
.kpi__zeile { display: flex; align-items: center; gap: 6px; }
.kpi i { color: var(--faint); font-size: 11px; }
.empty i.gross, .dropzone i.gross { display: block; font-size: 28px;
  color: var(--faint); opacity: .55; margin: 0 auto 12px; }
.card__meta i, .slot__inhalt i, .grid td i { color: var(--faint); }
.grid td i.datei { font-size: 15px; margin-right: 8px; color: var(--muted); }
.pill i { margin-right: 5px; opacity: .7; }
.rolle { display: inline-flex; align-items: center; gap: 6px; }
.rolle i { color: var(--accent); font-size: 11px; }
.slot__inhalt .marke { display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 12px; }
.komm__kopf i { color: var(--faint); }
.chip i { margin-right: 4px; font-size: .9em; }
.anhang__item i { color: var(--muted); }
.tree__add i { pointer-events: none; }

/* -- Landung -------------------------------------------------------------- */
.auth__logo { width: 40px; height: 40px; border-radius: 9px; vertical-align: -9px; margin-right: 6px; }
.auth__slogan { color: #fff; font-size: 18px; font-weight: 600; margin: 0 0 12px; }
.auth__wege { margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid #1e293b; }
.auth__wege a { color: #a5b4fc; text-decoration: none; }
.auth__wege a:hover { text-decoration: underline; }

/* -- Chat ------------------------------------------------------------------ */
.chat { display: grid; grid-template-columns: 260px 1fr; gap: 14px; height: calc(100vh - 150px); }
.chat__liste { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 10px; overflow-y: auto; }
.chat__liste input[type=search] { width: 100%; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 8px; margin-bottom: 8px; }
.chat__gruppe { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--faint);
  padding: 12px 8px 4px; display: flex; align-items: center; justify-content: space-between; }
.chat__gruppe .btn { padding: 2px 6px; }
.chat__kanal { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px;
  cursor: pointer; font-size: 13px; }
.chat__kanal i { color: var(--faint); width: 16px; text-align: center; }
.chat__kanal:hover { background: var(--line-soft); }
.chat__kanal.is-active { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.chat__kanal .nav__zahl { margin-left: auto; }
.chat__kanal .avatar { margin: 0; }
.chat__raum { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.chat__raum > h3 { margin: 14px 16px; }
.chat__raum > .chat__kanal { margin: 0 10px; }
.chat__kopf { display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); }
.chat__verlauf { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex;
  flex-direction: column; gap: 10px; }
.chat__nachricht { display: flex; gap: 10px; align-items: flex-start; }
.chat__nachricht .avatar { margin: 2px 0 0; flex: none; }
.chat__inhalt { flex: 1; min-width: 0; }
.chat__inhalt .komm__kopf { margin-bottom: 2px; }
.chat__text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
.chat__ich { background: #fef3c7; border-radius: 4px; padding: 0 3px; }
.chat__aktionen { margin-left: auto; display: none; gap: 8px; }
.chat__nachricht:hover .chat__aktionen { display: inline-flex; }
.chat__aktionen .weg { cursor: pointer; color: var(--faint); }
.chat__aktionen .weg:hover { color: var(--accent); }
.chat__eingabe { display: flex; gap: 8px; align-items: flex-end; padding: 10px 16px;
  border-top: 1px solid var(--line); }
.chat__eingabe textarea { resize: none; }

/* -- Agenten-Zentrale ----------------------------------------------------- */
.hub { display: grid; gap: 14px; }
.hub__detail { margin: 0; }
.hub__log { background: var(--side); color: #e2e8f0; padding: 12px 14px; border-radius: 8px;
  font-size: 12px; max-height: 260px; overflow: auto; white-space: pre-wrap; margin: 4px 0 0; }
.pill--queued { background: var(--line-soft); }
.pill--running { background: #dbeafe; color: #1e40af; }
.pill--wartet { background: #fef3c7; color: #92400e; }
.pill--done { background: #d1fae5; color: #065f46; }
.pill--failed { background: var(--critical-soft); color: var(--critical); }
.pill--cancelled { background: var(--line-soft); color: var(--faint); }
.grid tr.is-out td { color: var(--faint); }
