/* Teamboard – Gestaltung nach dem Brand Board Yvonne Kraus.
   Farben, Schriften und die Regel „gerade Kanten" stehen ganz oben;
   alles Weitere leitet sich daraus ab. */

:root {
  /* --- Markenfarben ------------------------------------------------------ */
  --petrol: #0D3A3E;        /* Primärfarbe: Flächen, Buttons, Headlines */
  --petrol-tief: #082A2D;   /* Dunkler Grund */
  --petrol-hell: #2E6B6E;
  --bordeaux: #3A1223;      /* Akzent, nur auf Creme/Stein */
  --bordeaux-hell: #7A3A4C;
  --salbei: #9BAA9A;        /* Akzent auf dunklem Grund, Hervorhebung */
  --salbei-tief: #5F7361;   /* Salbei, dunkel genug für Schrift auf Creme */
  --creme: #F6F3EE;         /* Heller Hintergrund („Papier") */
  --creme-2: #EFEAE2;       /* Leicht abgesetzte Flächen */
  --stein: #DAD6CF;         /* Linien, Rahmen, Chips */
  --ink: #14191A;           /* Fließtext auf hell */
  --ink-soft: #4A5252;      /* Nebentext, Labels */

  /* --- Ebenen ------------------------------------------------------------
     Drei Stufen, damit es eine Rangfolge gibt: der Grund liegt hinten,
     Papier hebt sich davon ab, Vertiefungen liegen darunter. */
  --ground: var(--creme-2);                                   /* Schreibtisch */
  --paper: var(--creme);                                      /* Blatt darauf */
  --sunken: color-mix(in srgb, var(--stein) 55%, var(--creme-2));

  --bg: var(--ground);
  --surface: var(--paper);
  --surface-2: var(--sunken);
  --border: var(--stein);
  --border-strong: color-mix(in srgb, var(--ink-soft) 32%, var(--stein));
  --text: var(--ink);
  --text-dim: var(--ink-soft);
  --text-faint: color-mix(in srgb, var(--ink-soft) 62%, var(--creme));
  --accent: var(--petrol);
  --accent-soft: color-mix(in srgb, var(--petrol) 10%, var(--creme));
  --accent-contrast: var(--creme);

  /* --- Ampel -------------------------------------------------------------
     Hier verlässt die Anwendung bewusst die Markenpalette: Termine und
     Fortschritt brauchen Signalfarben, die jeder sofort liest. Gedämpft
     gehalten, damit sie neben Petrol und Creme nicht schreien. */
  --ampel-rot: #B3402F;        /* überfällig */
  --ampel-bernstein: #C68A2E;  /* fällig in den nächsten drei Tagen */
  --ampel-gruen: #3E7D53;      /* erledigt */

  --status-urgent: var(--ampel-rot);
  --status-urgent-soft: color-mix(in srgb, var(--ampel-rot) 13%, var(--creme));
  --status-soon: var(--ampel-bernstein);
  --status-soon-soft: color-mix(in srgb, var(--ampel-bernstein) 18%, var(--creme));
  --status-active: var(--petrol);        /* läuft gerade – bleibt Marke */
  --status-active-soft: color-mix(in srgb, var(--petrol) 12%, var(--creme));
  --status-done: var(--ampel-gruen);
  --status-done-soft: color-mix(in srgb, var(--ampel-gruen) 15%, var(--creme));
  --status-idle: var(--ink-soft);        /* neutral, pausiert, niedrig */
  --status-idle-soft: color-mix(in srgb, var(--stein) 60%, var(--creme));
  /* Priorität bleibt Marke – so kollidiert sie nicht mit der Ampel. */
  --priority-high: var(--bordeaux);
  --priority-high-text: var(--creme);

  /* Kanten an Karten */
  --edge-urgent: var(--ampel-rot);
  --edge-soon: var(--ampel-bernstein);
  --edge-active: var(--petrol);
  --edge-done: var(--ampel-gruen);
  --edge-idle: var(--stein);

  --danger: var(--status-urgent);
  --danger-soft: var(--status-urgent-soft);
  --success: var(--status-done);

  /* --- Form -------------------------------------------------------------- */
  --radius: 0;              /* Gerade Kanten, keine Rundungen */
  --edge: 3px;              /* Breite der Statuskante an Karten */
  --shadow-sm: 0 1px 2px rgba(20, 25, 26, .06);
  --shadow-md: 0 3px 12px rgba(20, 25, 26, .11);
  --shadow-lg: 0 24px 60px rgba(8, 42, 45, .3);

  /* --- Schrift ----------------------------------------------------------- */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --tracking-label: .18em;  /* Versalien mit 18 % Laufweite */
  --topbar-h: 62px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: var(--petrol-tief);
    --paper: var(--petrol);
    --sunken: color-mix(in srgb, #000 22%, var(--petrol-tief));
    --bg: var(--ground);
    --surface: var(--paper);
    --surface-2: var(--sunken);
    --border: color-mix(in srgb, var(--salbei) 22%, var(--petrol));
    --border-strong: color-mix(in srgb, var(--salbei) 42%, var(--petrol));
    --text: var(--creme);
    --text-dim: color-mix(in srgb, var(--salbei) 78%, var(--creme));
    --text-faint: var(--salbei);
    /* Auf dunklem Grund führt Salbei, nicht Bordeaux. */
    --accent: var(--salbei);
    --accent-soft: color-mix(in srgb, var(--salbei) 18%, var(--petrol));
    --accent-contrast: var(--petrol-tief);

    /* Die Ampel bleibt eine Ampel, nur aufgehellt für den dunklen Grund. */
    --status-urgent: #E4715C;
    --status-urgent-soft: color-mix(in srgb, #E4715C 20%, var(--petrol));
    --status-soon: #E0AC5B;
    --status-soon-soft: color-mix(in srgb, #E0AC5B 20%, var(--petrol));
    --status-active: var(--salbei);
    --status-active-soft: color-mix(in srgb, var(--salbei) 20%, var(--petrol));
    --status-done: #6FBF8B;
    --status-done-soft: color-mix(in srgb, #6FBF8B 18%, var(--petrol));
    --status-idle: var(--salbei);
    --status-idle-soft: color-mix(in srgb, var(--creme) 8%, var(--petrol));
    --priority-high: var(--creme);
    /* Auf dunklem Grund ist die Marke hell – dann muss die Schrift dunkel sein,
       sonst steht Creme auf Creme und die Marke ist ein leerer Kasten. */
    --priority-high-text: var(--petrol-tief);

    --edge-urgent: #E4715C;
    --edge-soon: #E0AC5B;
    --edge-active: var(--salbei);
    --edge-done: #6FBF8B;
    --edge-idle: color-mix(in srgb, var(--salbei) 30%, var(--petrol));

    --danger: var(--status-urgent);
    --danger-soft: var(--status-urgent-soft);
    --success: var(--status-done);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-md: 0 3px 12px rgba(0, 0, 0, .5);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .65);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font-family: var(--font-body); font-size: inherit; color: inherit; }

h1, h2, h3, .font-display { font-family: var(--font-display); font-weight: 500; }

em, .accent-italic {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--danger);
}

.app-loading {
  display: grid;
  place-items: center;
  min-height: 100vh;
  color: var(--text-faint);
  font-family: var(--font-display);
  font-style: italic;
}

/* --- Grundelemente -------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 500;
  letter-spacing: .01em;
  transition: background .12s, border-color .12s, color .12s;
}
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
/* Die eine Hauptaktion je Seite trägt Bordeaux. */
.btn-primary {
  background: var(--bordeaux);
  border-color: var(--bordeaux);
  color: var(--creme);
}
.btn-primary:hover { background: color-mix(in srgb, var(--bordeaux) 82%, var(--creme)); }
.btn-ghost { border-color: transparent; color: var(--text-dim); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { color: var(--danger); border-color: transparent; background: transparent; }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger); }
.btn-sm { padding: 4px 10px; font-size: 12.5px; }

.input, .textarea, .select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  outline: none;
  font-weight: 400;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.textarea { resize: vertical; min-height: 88px; line-height: 1.6; }
.field { margin-bottom: 16px; }
.field label {
  display: block; margin-bottom: 6px;
  font-weight: 500; font-size: 11px; text-transform: uppercase;
  letter-spacing: var(--tracking-label); color: var(--text-dim);
}
.hint { font-size: 12.5px; color: var(--text-faint); margin-top: 6px; line-height: 1.55; }
.error-box {
  background: var(--danger-soft);
  color: var(--danger);
  border-left: 3px solid var(--danger);
  padding: 10px 13px;
  margin-bottom: 16px;
  font-size: 13px;
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: var(--radius);
  color: var(--creme);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .04em;
  flex: none;
}
.avatar-sm { width: 21px; height: 21px; font-size: 9.5px; }
.avatar-lg { width: 32px; height: 32px; font-size: 12px; }
.avatar-stack { display: flex; gap: 2px; }

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  font-size: 10.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em;
  background: var(--surface-2); color: var(--text-dim);
  border: 1px solid var(--border);
}
.tag-high { background: var(--priority-high); color: var(--priority-high-text); border-color: var(--priority-high); }
.tag-low { background: var(--status-idle-soft); color: var(--status-idle); border-color: var(--border); }
.tag-live { background: var(--status-active-soft); color: var(--status-active); border-color: var(--status-active); }
.tag-overdue { background: var(--status-urgent); color: var(--creme); border-color: var(--status-urgent); font-weight: 500; }
.tag-soon { background: var(--status-soon); color: #14191A; border-color: var(--status-soon); font-weight: 500; }
.tag-done { background: var(--status-done-soft); color: var(--status-done); border-color: var(--status-done); }

.empty {
  text-align: center;
  padding: 52px 20px;
  color: var(--text-faint);
}
.empty p:first-child { font-family: var(--font-display); font-size: 17px; color: var(--text-dim); }

/* --- Kopfzeile ------------------------------------------------------------ */

.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  height: var(--topbar-h);
  /* Die eine dunkle Fläche, die der Anwendung Halt gibt. */
  background: var(--petrol);
  color: var(--creme);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
/* Das Logo darf quadratisch oder breit sein – begrenzt wird beides, damit
   ein Austausch der Datei die Kopfzeile nicht sprengt. */
.brand img { max-height: 34px; max-width: 160px; height: auto; width: auto; display: block; }
.topbar .avatar { box-shadow: 0 0 0 1px color-mix(in srgb, var(--creme) 45%, transparent); }
.topbar .nav-unread { background: var(--creme); color: var(--petrol); }
.brand-wordmark {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 600; letter-spacing: .01em;
  color: var(--creme);
}
.brand-sub {
  font-size: 10px; text-transform: uppercase; letter-spacing: var(--tracking-label);
  color: var(--salbei); font-weight: 400;
  padding-left: 12px; margin-left: 2px;
  border-left: 1px solid color-mix(in srgb, var(--salbei) 40%, transparent);
}
.nav { display: flex; gap: 4px; margin-left: 14px; }
.nav a {
  padding: 21px 12px;
  color: var(--salbei); text-decoration: none;
  font-weight: 400; font-size: 13px;
  white-space: nowrap;
  box-shadow: inset 0 -2px 0 transparent;
}
.nav a:hover { color: var(--creme); }
.nav a.active { color: var(--creme); box-shadow: inset 0 -2px 0 var(--creme); font-weight: 500; }
.topbar-spacer { flex: 1; }

.timer-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: color-mix(in srgb, var(--creme) 14%, transparent); color: var(--creme);
  border: 1px solid color-mix(in srgb, var(--creme) 45%, transparent);
  font-weight: 500; font-size: 12.5px; cursor: pointer;
  max-width: 320px;
}
.timer-pill .dot {
  width: 6px; height: 6px; background: currentColor;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .3 } }
.timer-pill .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timer-pill .clock { font-variant-numeric: tabular-nums; }

.user-menu { position: relative; }
.user-menu > button { border: none; background: none; cursor: pointer; padding: 0; display: flex; }
.menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  background: var(--bg); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  min-width: 220px; padding: 6px; z-index: 30;
  /* Das Menü hängt in der dunklen Kopfzeile – ohne eigene Schriftfarbe
     erbte es deren Creme und stünde hell auf hell. */
  color: var(--text);
}
.menu-head { padding: 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.menu-head strong { display: block; font-family: var(--font-display); font-weight: 500; }
.menu-head span { color: var(--text-faint); font-size: 12.5px; }
.menu button {
  display: block; width: 100%; text-align: left;
  padding: 8px 10px; border: none; background: none; cursor: pointer;
}
.menu button:hover { background: var(--surface-2); }

/* --- Layout --------------------------------------------------------------- */

.page { padding: 26px 24px 48px; }
.page-narrow { max-width: 880px; margin: 0 auto; }
.page-wide { max-width: 1140px; margin: 0 auto; }
.page-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.page-head h1 {
  font-size: 34px; margin: 0; letter-spacing: -.015em; line-height: 1.05;
  color: var(--accent);
}
/* Der eine Bordeaux-Moment je Seite: ein kurzer Strich unter dem Titel. */
.page-head h1::after {
  content: ''; display: block;
  width: 46px; height: 3px; margin-top: 11px;
  background: var(--bordeaux);
}
.page-head .spacer { flex: 1; }
/* Farbmarke des Projekts: ein kleines Quadrat statt einer Linie – dezent,
   aber es zeigt weiterhin, in welchem Projekt man ist. */
.project-mark {
  width: 13px; height: 13px; flex: none;
  align-self: center; margin-bottom: 4px; display: inline-block;
}
.subtle { color: var(--text-dim); }

.card-surface {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.section-title {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 500;
  color: var(--text-dim);
  margin: 0 0 10px;
}

/* Versalien-Kicker bleiben – aber nur dort, wo sie etwas benennen:
   Spaltenköpfe, Tabellenköpfe, Feldbeschriftungen. */
.kicker {
  font-family: var(--font-body);
  font-size: 10.5px; font-weight: 500; text-transform: uppercase;
  letter-spacing: var(--tracking-label); color: var(--text-faint);
}

/* --- Projektliste --------------------------------------------------------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.project-tile {
  padding: 18px;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.project-tile:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.project-tile .swatch { width: 34px; height: 3px; margin-bottom: 13px; }
.project-tile h3 { margin: 0 0 5px; font-size: 18px; line-height: 1.25; }
.project-tile p { margin: 0; color: var(--text-dim); font-size: 13px; }
.project-tile .meta {
  margin-top: 13px; color: var(--text-faint); font-size: 11px;
  text-transform: uppercase; letter-spacing: .1em;
}

/* --- Board ---------------------------------------------------------------- */

.board {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  overflow-x: auto;
  padding: 4px 24px 34px;
  min-height: calc(100vh - 170px);
}
.column {
  flex: 0 0 292px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 150px);
}
.column.is-work .column-head { box-shadow: inset 0 3px 0 var(--salbei); }
.column.drag-over { background: var(--accent-soft); border-color: var(--accent); }
.column-head {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 13px;
  background: var(--petrol); color: var(--creme);
}
.column-head h2 {
  margin: 0; font-family: var(--font-body);
  font-size: 11px; font-weight: 500; text-transform: uppercase;
  letter-spacing: var(--tracking-label);
}
.column-head .count { color: var(--salbei); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.column-head .spacer { flex: 1; }
.column-badge {
  font-size: 9.5px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--petrol); background: var(--salbei);
  padding: 2px 6px;
}
.column-body { padding: 10px; overflow-y: auto; flex: 1; min-height: 44px; }
.column-foot { padding: 0 10px 12px; }
.column-foot .btn {
  width: 100%; justify-content: center;
  border-style: dashed; color: var(--text-dim);
}

.kcard {
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 5px solid var(--edge-idle);
  padding: 11px 13px;
  margin-bottom: 7px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .12s, transform .08s;
}
.kcard:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.kcard.is-done { border-left-color: var(--edge-done); }
.kcard.is-soon { border-left-color: var(--edge-soon); }
.kcard.is-high { border-left-color: var(--edge-urgent); }
/* Überfälliges bekommt den ganzen Rahmen, nicht nur die Kante: Eine Karte,
   deren Termin verstrichen ist, soll man im Board von weitem sehen. */
.kcard.is-overdue { border-color: var(--edge-urgent); }
.kcard.dragging { opacity: .35; }
.kcard.is-running { border-left-color: var(--edge-active); }
.kcard h4 {
  margin: 0 0 8px; font-family: var(--font-display);
  font-size: 16px; font-weight: 500; line-height: 1.3; color: var(--text);
}
.kcard-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  color: var(--text-faint); font-size: 11.5px;
}
.kcard-meta .spacer { flex: 1; }
.kcard-running {
  display: flex; align-items: center; gap: 6px;
  margin-top: 9px; padding-top: 8px;
  border-top: 1px solid var(--border);
  color: var(--status-active); font-size: 11.5px; font-weight: 500;
}
.kcard-running .clock { font-variant-numeric: tabular-nums; }
.drop-placeholder {
  height: 44px; margin-bottom: 8px;
  border: 1px dashed var(--accent);
  background: var(--accent-soft);
}

.compose textarea {
  width: 100%; border: 1px solid var(--accent);
  padding: 10px; resize: vertical; min-height: 60px;
  background: var(--paper); outline: none; font-weight: 400;
}
.compose-actions { display: flex; gap: 6px; margin-top: 6px; align-items: center; }
.compose-actions .hint { font-size: 10.5px; white-space: nowrap; }

/* --- Dialog --------------------------------------------------------------- */

.overlay {
  position: fixed; inset: 0;
  background: color-mix(in srgb, var(--petrol-tief) 62%, transparent);
  display: grid; place-items: center;
  padding: 26px; z-index: 50;
  overflow-y: auto;
}
.dialog {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  width: min(780px, 100%);
  max-height: calc(100vh - 52px);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.dialog-sm { width: min(440px, 100%); }
.dialog-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--border);
}
.dialog-head h2 { margin: 0; font-size: 21px; line-height: 1.25; }
.dialog-head .spacer { flex: 1; }
.dialog-body { padding: 20px 22px; overflow-y: auto; }
.dialog-foot {
  display: flex; gap: 8px; justify-content: flex-end; align-items: center;
  padding: 14px 22px; border-top: 1px solid var(--border);
  background: var(--surface);
}
.icon-btn {
  border: none; background: none; cursor: pointer;
  color: var(--text-faint); font-size: 20px; line-height: 1;
  padding: 2px 8px;
}
.icon-btn:hover { color: var(--text); background: var(--surface-2); }

.card-grid { display: grid; grid-template-columns: 1fr 244px; gap: 26px; }
@media (max-width: 720px) { .card-grid { grid-template-columns: 1fr; } }
.side-section { margin-bottom: 20px; }

.editable {
  border: 1px solid transparent;
  padding: 8px 10px; margin: -8px -10px 6px; cursor: text;
  white-space: pre-wrap; min-height: 26px;
}
.editable:hover { background: var(--surface-2); }
.editable.placeholder { color: var(--text-faint); font-style: italic; }

.comment { display: flex; gap: 10px; margin-bottom: 15px; }
.comment-body { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: baseline; gap: 8px; }
.comment-head strong { font-size: 13px; font-weight: 500; }
.comment-head time { color: var(--text-faint); font-size: 11px; }
.comment-text { white-space: pre-wrap; word-wrap: break-word; margin-top: 3px; }
.comment .btn-danger { visibility: hidden; }
.comment:hover .btn-danger { visibility: visible; }

.person-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 9px; cursor: pointer;
}
.person-row:hover { background: var(--surface-2); }
.person-row .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-row .check { color: var(--accent); font-weight: 500; }

.time-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.time-row:last-child { border-bottom: none; }
.time-row .dur { font-variant-numeric: tabular-nums; font-weight: 500; }
.time-row .when { color: var(--text-faint); font-size: 11.5px; }

/* --- Merkmale (Einordnung von Projekten) ---------------------------------- */

.value-chip {
  display: inline-flex; align-items: center;
  padding: 3px 9px;
  font-size: 10.5px; font-weight: 500; white-space: nowrap;
  text-transform: uppercase; letter-spacing: .08em;
  border: 1px solid transparent;
}
.chip-share {
  margin-left: 7px; padding-left: 7px;
  border-left: 1px solid color-mix(in srgb, currentColor 45%, transparent);
  opacity: .85; font-variant-numeric: tabular-nums;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.project-tile .chip-row { margin-top: 11px; }

.chip-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-option {
  padding: 6px 13px; cursor: pointer;
  border: 1px solid var(--border-strong); background: transparent;
  color: var(--text-dim); font-size: 12px; font-weight: 400;
  text-transform: uppercase; letter-spacing: .08em;
  transition: background .12s, color .12s, border-color .12s;
}
.chip-option:hover { background: var(--surface-2); color: var(--text); }
/* Gewählt heißt gewählt: gefüllt und leicht eingedrückt. Vorher unterschied
   sich der aktive Zustand nur durch die Schriftstärke – das sah niemand. */
.chip-option.is-active {
  background: var(--accent); border-color: var(--accent); color: var(--paper);
  font-weight: 500;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .28);
}
.chip-option.is-active:hover { background: var(--accent); color: var(--paper); }

.filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  padding: 12px 16px; margin-bottom: 18px;
  background: var(--surface); border: 1px solid var(--border);
}
.filter-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.filter-label {
  font-size: 10px; font-weight: 500; letter-spacing: var(--tracking-label);
  text-transform: uppercase; color: var(--text-faint); margin-right: 4px;
}

.value-list { margin-bottom: 4px; }
.value-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.value-row .btn-danger { visibility: hidden; }
.value-row:hover .btn-danger { visibility: visible; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch {
  width: 26px; height: 26px; border: 1px solid var(--border-strong);
  cursor: pointer; outline-offset: -4px;
}

.color-dot {
  width: 18px; height: 18px; flex: none;
  border: 1px solid var(--border-strong); cursor: pointer;
}
.color-dot:hover { border-color: var(--text); }

.share-box {
  margin-top: 10px; padding: 12px 14px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.share-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.share-input { width: 76px; text-align: right; font-variant-numeric: tabular-nums; }
.share-sum {
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em;
}
.share-sum.is-ok { color: var(--accent); }
.share-sum.is-off { color: var(--danger); }

/* --- Prozesse ------------------------------------------------------------- */

.breadcrumb {
  color: var(--text-faint); font-size: 11px; margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: .12em;
}
.breadcrumb a { color: var(--text-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.doc-intro {
  padding: 22px 26px; white-space: pre-wrap;
  line-height: 1.8; color: var(--text-dim);
  font-size: 16.5px; font-weight: 300;
  border-left: 3px solid var(--accent);
}

.step-list { list-style: none; margin: 0; padding: 0; }

.step-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 15px 17px; margin-bottom: 8px;
  background: var(--surface); border: 1px solid var(--border);
}
.step-num {
  flex: none; width: 26px; height: 26px;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-contrast);
  font-family: var(--font-display); font-weight: 500; font-size: 13px;
}
.step-body { flex: 1; min-width: 0; }
.step-head { display: flex; align-items: center; gap: 9px; }
.step-head strong { font-family: var(--font-display); font-weight: 500; font-size: 16px; }
.step-head .spacer { flex: 1; }
.step-desc { white-space: pre-wrap; line-height: 1.65; color: var(--text-dim); margin-top: 6px; }
.step-actions { display: flex; gap: 2px; flex: none; }
.step-item .step-actions .btn { visibility: hidden; }
.step-item:hover .step-actions .btn { visibility: visible; }
.step-item .step-actions .btn:disabled { visibility: visible; opacity: .25; }

.run-step .step-num { background: none; padding: 0; }
.step-check { width: 18px; height: 18px; cursor: pointer; accent-color: var(--accent); }
.run-step.is-done { background: var(--surface-2); }
.run-step.is-done .step-head strong { color: var(--text-faint); font-style: italic; }

.step-controls {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 11px;
}
.step-num-label {
  font-size: 10px; font-weight: 500; letter-spacing: var(--tracking-label);
  text-transform: uppercase; color: var(--text-faint);
}
.input-sm, .select-sm { width: auto; padding: 5px 9px; font-size: 12.5px; }
.step-note { margin-top: 9px; min-height: 42px; font-size: 13px; }

.tag-card {
  background: var(--accent-soft); color: var(--accent);
  border-color: var(--accent); text-decoration: none;
}

.run-summary { padding: 18px 20px; margin-bottom: 22px; }
.run-facts { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 13px; font-size: 13px; }
.run-facts a { color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; }

.origin-note {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; margin-bottom: 14px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  border-left: 3px solid var(--accent);
}
.origin-note a { color: inherit; font-weight: 500; }

.phase {
  background: var(--surface); border: 1px solid var(--border);
  margin-bottom: 10px;
}
.phase-head { display: flex; gap: 14px; align-items: flex-start; padding: 15px 17px 12px; }
.phase-head .step-actions .btn { visibility: hidden; }
.phase:hover .phase-head .step-actions .btn { visibility: visible; }
.phase:hover .phase-head .step-actions .btn:disabled { opacity: .25; }
.phase-tasks { padding: 0 17px 14px 57px; }

.task-row {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; margin-bottom: 6px; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg);
}
.task-row:hover { border-color: var(--accent); }
.task-row .step-actions .btn { visibility: hidden; }
.task-row:hover .step-actions .btn { visibility: visible; }
.task-row:hover .step-actions .btn:disabled { visibility: visible; opacity: .25; }
.task-grip { color: var(--text-faint); font-size: 11px; }
.task-new { display: flex; gap: 7px; margin-top: 4px; }

.run-task-list { margin: 12px 0 4px; border-left: 1px solid var(--border); padding-left: 14px; }
.run-task { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13.5px; }
.run-task-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-task.is-done .run-task-title { color: var(--text-faint); font-style: italic; }

.assign-preview { border: 1px solid var(--border); background: var(--surface-2); padding: 4px 12px; }
.assign-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; font-size: 13px; border-bottom: 1px solid var(--border);
}
.assign-row:last-child { border-bottom: none; }
.assign-row .name { flex: 1; min-width: 0; font-weight: 400; }

/* --- Anhänge & Links ------------------------------------------------------ */

.attach-row {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; margin-bottom: 6px;
  border: 1px solid var(--border); background: var(--surface-2);
}
.attach-icon { font-size: 14px; flex: none; width: 20px; text-align: center; }
.attach-name {
  display: block; font-weight: 400; color: var(--text);
  text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
a.attach-name:hover { color: var(--accent); text-decoration: underline; }
.attach-sub { color: var(--text-faint); font-size: 11.5px; }
.attach-size { color: var(--text-faint); font-size: 11.5px; flex: none; }
.attach-row .btn-danger, .embed-head .btn-danger, .thumb-bar .btn-danger { visibility: hidden; }
.attach-row:hover .btn-danger,
.embed-block:hover .btn-danger,
.thumb:hover .btn-danger { visibility: visible; }

.embed-block {
  border: 1px solid var(--border); margin-bottom: 10px; background: var(--surface-2);
}
.embed-head { display: flex; align-items: center; gap: 10px; padding: 9px 11px; }
.embed-head .attach-name { flex: 1; min-width: 0; }
.embed-frame { position: relative; aspect-ratio: 16 / 9; background: var(--petrol-tief); }
.embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-player { display: block; width: 100%; max-height: 420px; background: var(--petrol-tief); }

.thumb-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px; margin-bottom: 10px;
}
.thumb { border: 1px solid var(--border); background: var(--surface-2); }
.thumb img { display: block; width: 100%; height: 94px; object-fit: cover; }
.thumb-bar { display: flex; align-items: center; gap: 4px; padding: 6px 8px; }
.thumb-bar .attach-name { flex: 1; min-width: 0; font-size: 11.5px; }

.dropzone {
  display: flex; align-items: center; justify-content: center;
  gap: 9px; flex-wrap: wrap;
  padding: 16px; margin-top: 4px;
  border: 1px dashed var(--border-strong);
  color: var(--text-faint); font-size: 13px;
  transition: background .12s, border-color .12s;
}
.dropzone.dragover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* --- Tabellen & Auswertung ------------------------------------------------ */

table.data { width: 100%; border-collapse: collapse; }
table.data th {
  text-align: left; font-size: 10px; text-transform: uppercase;
  letter-spacing: var(--tracking-label); color: var(--text-faint); font-weight: 500;
  padding: 10px; border-bottom: 1px solid var(--border-strong);
}
table.data td { padding: 11px 10px; border-bottom: 1px solid var(--border); }
table.data tbody tr:nth-child(odd) { background: color-mix(in srgb, var(--stein) 26%, transparent); }
table.data tr:last-child td { border-bottom: none; }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }

.bar-track { height: 14px; background: var(--sunken); overflow: hidden; min-width: 90px; }
.bar-fill { height: 100%; background: var(--accent); }

.stat-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.stat {
  flex: 1 1 160px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--border);
}
.stat .k {
  color: var(--text-faint); font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: var(--tracking-label);
}
.stat .v {
  font-family: var(--font-display); font-size: 30px; font-weight: 500; color: var(--accent);
  margin-top: 5px; font-variant-numeric: tabular-nums; line-height: 1.1;
}

/* --- Anmeldung ------------------------------------------------------------ */

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(420px, 100%); padding: 34px; background: var(--surface); }
.auth-card h1 { margin: 0 0 6px; font-size: 27px; }
.auth-card > p { margin: 0 0 24px; color: var(--text-dim); }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.auth-brand img { max-height: 80px; max-width: 240px; height: auto; width: auto; }

/* --- Chat ----------------------------------------------------------------- */

.nav-unread {
  display: inline-grid; place-items: center;
  min-width: 17px; height: 17px; padding: 0 4px; margin-left: 7px;
  background: var(--accent); color: var(--accent-contrast);
  font-size: 10px; font-weight: 500; font-variant-numeric: tabular-nums;
}

.chat {
  display: grid;
  grid-template-columns: 240px 1fr;
  height: calc(100vh - var(--topbar-h));
  /* Ohne das wachsen die Spalten mit ihrem Inhalt und schieben die
     Seitenleiste aus dem Bild. */
  overflow: hidden;
}
/* Schmale Fenster: nur eine Spalte. Die Gesprächsliste kommt bei Bedarf
   darüber – siehe den Abschnitt „Am Handy" am Ende dieser Datei. */
@media (max-width: 760px) { .chat { grid-template-columns: 1fr; } }

.chat-sidebar {
  min-height: 0;
  border-right: 1px solid var(--border);
  padding: 18px 14px;
  overflow-y: auto;
  background: var(--surface);
}
.chat-sidebar-head { display: flex; align-items: center; margin-bottom: 10px; }

.channel-row {
  display: flex; align-items: center; gap: 7px;
  width: 100%; padding: 7px 9px;
  border: none; background: none; cursor: pointer;
  color: var(--text-dim); text-align: left;
}
.channel-row:hover { background: var(--surface-2); color: var(--text); }
.channel-row.is-active {
  background: var(--accent); color: var(--accent-contrast);
}
.channel-hash { opacity: .55; font-weight: 500; }
.channel-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-unread {
  display: inline-grid; place-items: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--accent); color: var(--accent-contrast);
  font-size: 10px; font-weight: 500; font-variant-numeric: tabular-nums;
}
.channel-row.is-active .channel-unread { background: var(--accent-contrast); color: var(--accent); }

.chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 24px 14px; border-bottom: 1px solid var(--border);
}
.chat-head h1 { margin: 0; font-size: 21px; }
.chat-topic { color: var(--text-faint); font-size: 12.5px; margin-top: 2px; }

.chat-messages { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 24px; }
.chat-more { display: block; margin: 0 auto 18px; }

.chat-message {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 5px 8px; margin: 0 -8px;
  position: relative;
}
.chat-message:hover { background: var(--surface); }
.chat-message + .chat-message:not(.is-continuation) { margin-top: 12px; }
.chat-meta { display: flex; align-items: baseline; gap: 9px; }
.chat-meta strong { font-weight: 500; font-size: 13.5px; }
.chat-meta time { color: var(--text-faint); font-size: 11px; }
.chat-body { white-space: pre-wrap; word-wrap: break-word; line-height: 1.6; }
.chat-body a { color: var(--accent); }
.chat-edited { color: var(--text-faint); font-size: 11.5px; }

.chat-message.is-continuation { padding-left: 8px; }
.chat-gutter {
  width: 26px; flex: none; text-align: right;
  color: transparent; font-size: 10.5px; font-variant-numeric: tabular-nums;
  padding-top: 3px;
}
.chat-message.is-continuation:hover .chat-gutter { color: var(--text-faint); }
.chat-message.is-continuation .chat-body { flex: 1; min-width: 0; }

.chat-actions {
  display: none; gap: 2px; flex: none;
  position: absolute; right: 8px; top: 2px;
  background: var(--bg); border: 1px solid var(--border);
}
.chat-message:hover .chat-actions { display: flex; }

.chat-composer {
  display: flex; gap: 10px; align-items: flex-end;
  padding: 14px 24px 18px; border-top: 1px solid var(--border);
}
.chat-input {
  flex: 1; resize: none; overflow-y: auto;
  padding: 11px 13px; line-height: 1.55;
  border: 1px solid var(--border-strong); background: var(--bg);
  outline: none; font-weight: 400; min-height: 44px;
}
.chat-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.chat-archived-note {
  padding: 16px 24px; border-top: 1px solid var(--border);
  color: var(--text-faint); font-style: italic; font-family: var(--font-display);
}


/* Chat-Ausbau: Bereiche, Stränge, Erwähnungen, Anhänge */
.chat.with-thread { grid-template-columns: 240px 1fr 340px; }
/* Ist der Bildschirm zu schmal für drei Spalten, übernimmt der Strang die
   Ansicht – sonst rutscht er unter die Seitenleiste. */
@media (max-width: 1100px) {
  .chat.with-thread { grid-template-columns: 1fr; }
  .chat.with-thread .chat-sidebar,
  .chat.with-thread .chat-main { display: none; }
  .chat.with-thread .chat-thread { border-left: 0; }
}

.chat-tools { display: flex; gap: 6px; }
.chat-section { margin-bottom: 16px; }
.chat-section-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; padding: 0 2px; }
.channel-row.has-unread .channel-name { font-weight: 500; color: var(--text); }
.channel-row.is-active.has-unread .channel-name { color: var(--accent-contrast); }
.channel-mention {
  display: inline-grid; place-items: center;
  width: 17px; height: 17px; flex: none;
  background: var(--status-urgent); color: var(--creme);
  font-size: 10px; font-weight: 500;
}

.chat-thread {
  border-left: 1px solid var(--border);
  background: var(--surface);
  display: flex; flex-direction: column; min-height: 0; min-width: 0;
}
.thread-divider {
  margin: 14px 0 10px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  font-size: 10.5px; text-transform: uppercase; letter-spacing: var(--tracking-label);
  color: var(--text-faint);
}
.thread-hint {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 6px; padding: 3px 9px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--accent); font-size: 12px; font-weight: 500; cursor: pointer;
}
.thread-hint:hover { border-color: var(--accent); }

.chat-message.is-mention { box-shadow: inset 3px 0 0 var(--status-urgent); background: var(--status-urgent-soft); }
.mention { color: var(--accent); font-weight: 500; }
.mention.is-me { background: var(--status-urgent-soft); color: var(--status-urgent); padding: 0 3px; }

.chat-attachments { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.chat-image { display: block; max-width: 340px; border: 1px solid var(--border); }
.chat-image img { display: block; width: 100%; height: auto; max-height: 260px; object-fit: cover; }
.chat-file {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); text-decoration: none; font-size: 13px;
}
.chat-file:hover { border-color: var(--accent); color: var(--accent); }
.chat-attachments .embed-block { max-width: 420px; margin: 0; }

.chat-composer-wrap { position: relative; border-top: 1px solid var(--border); }
.chat-composer-wrap.dragover { background: var(--accent-soft); }
.chat-composer { border-top: 0; }
.chat-pending { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 24px 0; }
.pending-file {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 6px 3px 9px; border: 1px solid var(--border);
  background: var(--surface); font-size: 12.5px;
}

.mention-box {
  position: absolute; bottom: calc(100% + 4px); left: 24px; right: 24px;
  background: var(--bg); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md); z-index: 5; max-height: 220px; overflow-y: auto;
}
.mention-option {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 8px 12px; border: 0; background: none; cursor: pointer;
  text-align: left; font-size: 13.5px;
}
.mention-option:hover { background: var(--surface-2); }

.search-hit {
  display: block; width: 100%; text-align: left; cursor: pointer;
  padding: 11px 13px; margin-bottom: 7px;
  border: 1px solid var(--border); background: var(--surface);
}
.search-hit:hover { border-color: var(--accent); }
.search-hit .chat-body { margin-top: 3px; font-size: 13.5px; color: var(--text-dim); }
/* --- Hinweise ------------------------------------------------------------- */

.toasts {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 8px; z-index: 80;
  pointer-events: none;
}
.toast {
  background: var(--petrol); color: var(--creme);
  padding: 11px 18px;
  box-shadow: var(--shadow-md); font-size: 13px; font-weight: 400;
  animation: toast-in .18s ease-out;
}
.toast.error { background: var(--bordeaux); color: var(--creme); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* --- Meine Aufgaben & wiederkehrende Aufgaben ------------------------------ */

.todo-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }

.todo-row {
  display: flex; align-items: center; gap: 13px; width: 100%;
  padding: 11px 14px; cursor: pointer; text-align: left;
  font: inherit; color: inherit;
  background: var(--surface); border: 1px solid var(--border);
}
.todo-row:hover { border-color: var(--accent); }
/* Woran gerade gearbeitet wird, trägt links die Farbe der laufenden Uhr. */
.todo-row.is-running { border-left: 3px solid var(--status-active); padding-left: 12px; }

.todo-mark { width: 11px; height: 11px; flex: none; display: inline-block; }
.todo-main { flex: 1; min-width: 0; display: block; }
.todo-title {
  display: flex; align-items: center; gap: 7px;
  font-size: 14.5px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.todo-meta { display: block; font-size: 12px; color: var(--text-faint); margin-top: 2px; }
.todo-due { flex: none; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--text-dim); }
.todo-due.is-late { color: var(--status-urgent); font-weight: 500; }
.todo-due.is-soon { color: var(--status-soon); font-weight: 500; }
.todo-time {
  flex: none; width: 74px; text-align: right;
  font-size: 13px; font-variant-numeric: tabular-nums; color: var(--text-faint);
}

.serie-list { display: flex; flex-direction: column; gap: 6px; }
.serie-row {
  display: flex; align-items: center; gap: 13px;
  padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--border);
}
.serie-row.is-off { opacity: .6; }
.serie-main { flex: 1; min-width: 0; }
.serie-title { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.serie-meta { font-size: 12px; color: var(--text-faint); margin-top: 3px; }
.serie-people { display: flex; gap: 3px; flex: none; }
.serie-next { flex: none; text-align: right; min-width: 92px; }
.serie-next .k {
  display: block; font-size: 10px; text-transform: uppercase;
  letter-spacing: var(--tracking-label); color: var(--text-faint);
}
.serie-next .v { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.serie-actions { display: flex; gap: 5px; flex: none; }
.serie-row .serie-actions .btn { visibility: hidden; }
.serie-row:hover .serie-actions .btn { visibility: visible; }

/* Zwei Felder nebeneinander, solange der Platz reicht. */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 620px) { .two-col { grid-template-columns: 1fr; } }

@media (max-width: 820px) {
  .serie-row { flex-wrap: wrap; }
  .serie-actions { visibility: visible; }
  .serie-row .serie-actions .btn { visibility: visible; }
}

/* --- Mitteilungen ---------------------------------------------------------- */

.bell {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-right: 10px;
  background: color-mix(in srgb, var(--creme) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--creme) 30%, transparent);
  color: var(--creme); font-size: 15px; cursor: pointer;
}
.bell:hover { background: color-mix(in srgb, var(--creme) 22%, transparent); }
.bell-count {
  position: absolute; top: -7px; right: -7px;
  display: inline-grid; place-items: center;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--ampel-rot); color: var(--creme);
  font-size: 10px; font-weight: 500; font-variant-numeric: tabular-nums;
}
/* Ohne diese Zeile bliebe ein leeres rotes Kästchen stehen: Ein eigenes
   "display" schlägt das hidden-Attribut, mit dem der Punkt versteckt wird. */
.bell-count[hidden] { display: none; }

.notify-panel { min-width: 360px; max-width: 400px; padding: 6px 6px 4px; }
.notify-panel .menu-head { display: flex; align-items: baseline; gap: 12px; }
.notify-panel .menu-head strong { flex: 1; }
.linklike {
  border: none; background: none; padding: 0; cursor: pointer;
  color: var(--accent); font-size: 12.5px; text-decoration: underline;
  width: auto !important;
}
.notify-list { max-height: 60vh; overflow-y: auto; }
.notify-item {
  display: flex !important; align-items: flex-start; gap: 9px;
  width: 100%; padding: 9px 10px !important; text-align: left;
  border: none; background: none; cursor: pointer;
}
.notify-item:hover { background: var(--surface-2); }
/* Jede Mitteilung trägt einen Punkt – sonst sieht die Liste aus, als fehle
   bei manchen Zeilen etwas. Ungelesene sind gefüllt, gelesene nur umrandet. */
.notify-dot {
  width: 7px; height: 7px; margin-top: 6px; flex: none;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--text-faint);
}
.notify-item.is-new .notify-dot { background: var(--accent); box-shadow: none; }
.notify-item.is-new .notify-text { font-weight: 500; }
.notify-body { flex: 1; min-width: 0; }
.notify-text { display: block; font-size: 13.5px; line-height: 1.4; }
.notify-meta { display: block; font-size: 11.5px; color: var(--text-faint); margin-top: 2px; }

/* --- Suche ----------------------------------------------------------------- */

.search-results { margin-top: 14px; max-height: 58vh; overflow-y: auto; }
.search-group { margin-bottom: 16px; }
.search-group .kicker { margin: 0 0 6px; }
.search-hit {
  display: flex; align-items: flex-start; gap: 11px; width: 100%;
  padding: 9px 10px; text-align: left; cursor: pointer;
  background: none; border: 1px solid transparent;
}
.search-hit:hover, .search-hit:focus-visible {
  background: var(--surface-2); border-color: var(--border);
}
.search-icon { flex: none; width: 18px; text-align: center; color: var(--text-faint); }
.search-body { flex: 1; min-width: 0; }
.search-title { display: block; font-size: 14.5px; }
.search-snippet {
  display: block; font-size: 13px; color: var(--text-dim); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.search-meta { display: block; font-size: 11.5px; color: var(--text-faint); margin-top: 3px; }
.search-hit mark {
  background: var(--status-soon-soft); color: inherit;
  padding: 0 1px; font-weight: 500;
}

/* --- Karte verschieben ohne Ziehen ----------------------------------------- */

.kcard { position: relative; }
.kcard-move {
  position: absolute; top: 4px; right: 4px;
  width: 26px; height: 24px; padding: 0;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-dim); font-size: 13px; line-height: 1; cursor: pointer;
  visibility: hidden;
}
.kcard:hover .kcard-move { visibility: visible; }
.kcard-move:hover { background: var(--surface-2); color: var(--text); }
/* Wo es keinen Mauszeiger gibt, ist dieser Knopf der einzige Weg. */
@media (hover: none) { .kcard-move { visibility: visible; } }
.move-menu { top: 26px; right: 4px; min-width: 190px; }
.move-menu .menu-head { padding: 8px 10px; }

/* Am Rechner braucht es den Knopf für die Gesprächsliste nicht – er steht
   hier vor der Medienabfrage, damit diese ihn überschreiben kann. */
.chat-list-toggle { display: none; }

/* --- Am Handy -------------------------------------------------------------- */

@media (max-width: 760px) {
  body { font-size: 15px; }

  /* Kopfzeile: Die Navigation wird schmal und lässt sich seitlich schieben,
     Glocke und Kürzel bleiben immer erreichbar. */
  .topbar { padding: 0 8px; gap: 4px; }
  .brand-sub { display: none; }
  .nav {
    margin-left: 4px; overflow-x: auto; flex: 1 1 auto; min-width: 0;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 21px 9px; font-size: 12.5px; }
  .topbar-spacer { display: none; }
  /* Die laufende Uhr bleibt sichtbar, der Kartenname weicht dem Platz. */
  .timer-pill { padding: 5px 8px; }
  .timer-pill .label { display: none; }
  .bell { width: 30px; height: 30px; margin-right: 6px; }

  /* Mitteilungen und Menüs passen sich der Fensterbreite an. */
  .menu { position: fixed; top: calc(var(--topbar-h) + 4px); right: 8px; left: 8px; }
  .notify-panel { min-width: 0; max-width: none; }
  .notify-list { max-height: 66vh; }

  .page { padding: 18px 14px 40px; }
  .page-head h1 { font-size: 27px; }
  .page-head { gap: 10px; margin-bottom: 18px; }

  /* Dialoge füllen den Bildschirm – sonst bleibt für Inhalt kaum Platz. */
  .overlay { padding: 0; align-items: stretch; }
  .dialog, .dialog-sm {
    width: 100%; max-width: none; height: 100%; max-height: none;
    border: none;
  }
  .dialog-body { padding: 14px 16px; }
  .two-col { grid-template-columns: 1fr; }

  /* Board: eine Spalte füllt fast den Bildschirm und rastet beim Wischen ein. */
  .board { scroll-snap-type: x mandatory; gap: 10px; padding: 0 14px 18px; }
  .column { flex: 0 0 86vw; max-height: calc(100vh - 190px); scroll-snap-align: start; }
  .kcard-move { visibility: visible; }

  /* Meine Aufgaben: Termin und Zeit rutschen unter den Titel. */
  .todo-row { flex-wrap: wrap; gap: 8px 11px; padding: 10px 12px; }
  .todo-main { flex: 1 1 100%; order: 1; }
  .todo-mark { order: 0; }
  .todo-due { order: 2; }
  .todo-time { order: 3; width: auto; margin-left: auto; }

  .serie-row { flex-wrap: wrap; }
  .serie-main { flex: 1 1 100%; }
  .serie-next { text-align: left; min-width: 0; }
  .serie-actions { flex-wrap: wrap; }

  /* Chat: die Gesprächsliste legt sich bei Bedarf über den Verlauf. */
  .chat-list-toggle { display: inline-flex; }
  .chat-sidebar {
    display: none;
    position: absolute; inset: 0 auto 0 0; z-index: 20;
    width: min(88vw, 340px);
    box-shadow: var(--shadow-md);
  }
  .chat.show-list .chat-sidebar { display: flex; }
  .chat { position: relative; }
  .chat-head h1 { font-size: 17px; }

  /* Auswertung: Tabellen dürfen seitlich scrollen statt zu quetschen. */
  .card-surface > table, .data { display: block; overflow-x: auto; }

  /* Sprint und Stufen-Boards */
  .stage-board { padding: 0 0 12px; }
  .stage-board .column, .stage-board.is-compact .column { flex: 0 0 78vw; }
  .sprint-head { padding: 13px 14px; }
  .sprint-title h2 { font-size: 19px; }
  .kapazitaet-zeile { flex-wrap: wrap; }
  .kapazitaet-zeile .name { min-width: 0; flex: 1; }
  .kapazitaet-zeile .groessen { flex: 1 1 100%; }
  .lane-head { flex-wrap: wrap; }
  .plan-liste { max-height: 60vh; }
}

/* --- Wiederholung an der Karte --------------------------------------------- */

.recurrence-line {
  display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap;
  margin-top: 8px; padding: 9px 10px;
  background: var(--surface-2); border-left: 3px solid var(--accent);
  font-size: 13.5px;
}
.recurrence-mark { color: var(--accent); font-size: 15px; line-height: 1.3; }
.recurrence-line .hint { font-size: 12px; }
.recurrence-line .btn { padding: 3px 8px; font-size: 12.5px; }

/* --- Sprint, Stufen-Boards, Größen ----------------------------------------- */

/* Anders als das Projekt-Board füllt dieses hier nicht den Bildschirm: Auf dem
   Team-Board stehen mehrere davon untereinander. */
.stage-board { padding: 0; margin-top: 14px; min-height: 0; }
.stage-board .column { flex: 0 0 240px; background: var(--surface-2); max-height: 60vh; }
.stage-board .column-body { min-height: 34px; }
.stage-board.is-compact .column { flex: 0 0 200px; max-height: none; }
.stage-board.is-compact .column-head { padding: 6px 10px; }
.stage-board.is-compact .kcard { padding: 8px 10px; }
.kcard-project {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--text-faint); margin-bottom: 4px;
}
.kcard-blocked {
  display: inline-block; margin: 4px 0;
  font-size: 11.5px; font-weight: 500; color: var(--danger);
}

/* Eine Spur je Person auf dem Team-Board. */
.lane { margin-bottom: 20px; }
.lane-head {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 0 6px; border-bottom: 1px solid var(--border);
}
.lane-head strong { font-family: var(--font-display); font-weight: 500; font-size: 16px; }
.lane .spacer { flex: 1; }

.size-chip {
  display: inline-grid; place-items: center;
  min-width: 22px; padding: 0 5px; height: 17px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 10.5px; font-weight: 500; letter-spacing: .04em;
}

.switch { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-dim); }

/* Sprint-Kopf */
.sprint-head { padding: 16px 18px; }
.sprint-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sprint-title h2 { margin: 0; font-size: 22px; }
.sprint-title .spacer { flex: 1; }
.sprint-goal { margin: 8px 0 0; color: var(--text-dim); max-width: 70ch; }
.sprint-stats { display: flex; gap: 16px; margin-top: 8px; font-size: 13px; flex-wrap: wrap; }
.sprint-stats .ist-blockiert { color: var(--danger); font-weight: 500; }

.kapazitaet-zeile {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13.5px;
}
.kapazitaet-zeile:last-child { border-bottom: none; }
.kapazitaet-zeile .name { min-width: 130px; }
.kapazitaet-zeile .groessen { display: flex; gap: 4px; flex-wrap: wrap; }
.kapazitaet-zeile .spacer { flex: 1; }
.auslastung {
  font-variant-numeric: tabular-nums; font-weight: 500;
  min-width: 54px; text-align: right;
}
.auslastung.ist-voll { color: var(--danger); }

/* Planung: der Vorrat zum Auswählen */
.plan-liste { max-height: 46vh; overflow-y: auto; border: 1px solid var(--border); }
.plan-zeile {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 11px; text-align: left; cursor: pointer;
  background: none; border: none; border-bottom: 1px solid var(--border);
}
.plan-zeile:hover { background: var(--surface-2); }
.plan-zeile.is-active { background: var(--accent-soft); }
.plan-haken {
  width: 17px; height: 17px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--border-strong); background: var(--surface);
  font-size: 12px; color: var(--accent);
}

/* „Hier hakt es" im Kartendialog */
.blocked-box {
  padding: 11px 13px; margin-bottom: 16px;
  background: var(--danger-soft); border-left: 3px solid var(--danger);
}
.blocked-head { font-size: 13px; color: var(--danger); margin-bottom: 4px; }
.blocked-reason { margin: 0 0 4px; font-size: 14px; }

.nav-more > a { cursor: pointer; }
.nav-more .menu { top: calc(100% - 8px); }

/* --- Kontextmenü (rechte Maustaste) ---------------------------------------- */

.kontextmenue {
  position: fixed; z-index: 60; min-width: 210px; padding: 5px;
  background: var(--bg); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md); color: var(--text);
}
.kontext-eintrag {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 7px 10px; text-align: left; cursor: pointer;
  background: none; border: none; font-size: 13.5px;
}
.kontext-eintrag:hover:not(:disabled) { background: var(--surface-2); }
.kontext-eintrag:disabled { opacity: .4; cursor: not-allowed; }
.kontext-eintrag.ist-gefahr { color: var(--danger); }
.kontext-hinweis { margin-left: auto; color: var(--text-faint); font-size: 11.5px; }
.kontext-trenner { height: 1px; margin: 4px 6px; background: var(--border); }

/* --- Unteraufgaben (die Liste zum Abhaken in der Karte) --------------------- */

.check-zaehler {
  margin-left: 8px; padding: 1px 7px;
  background: var(--surface-2); color: var(--text-dim);
  font-size: 11.5px; font-weight: 500; font-variant-numeric: tabular-nums;
}
.check-bar { height: 3px; margin: 8px 0 10px; background: var(--surface-2); }
.check-bar-fill { height: 100%; background: var(--accent); transition: width .2s; }

.check-list { display: flex; flex-direction: column; }
.check-row {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 4px; border-bottom: 1px solid var(--border);
}
.check-row:hover { background: var(--surface-2); }
.check-row.dragging { opacity: .4; }
.check-row.ist-fertig .check-text { color: var(--text-faint); text-decoration: line-through; }
.check-row .check-text { flex: 1; min-width: 0; font-size: 13.5px; }
.check-row .check-text .editable { padding: 2px 4px; }
.check-row input[type="checkbox"] {
  width: 16px; height: 16px; flex: none; cursor: pointer;
  accent-color: var(--accent);
}
.check-griff {
  flex: none; width: 14px; cursor: grab;
  color: var(--text-faint); font-size: 13px; line-height: 1;
  opacity: 0; transition: opacity .12s;
}
.check-row:hover .check-griff { opacity: 1; }
.check-wer { flex: none; color: var(--text-faint); font-size: 11.5px; }
.check-row .btn-danger { flex: none; opacity: 0; }
.check-row:hover .btn-danger { opacity: 1; }

.check-neu-zeile { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; }
.check-neu { min-height: 38px; resize: vertical; font-size: 13.5px; }

/* Die Marke auf der Kanban-Karte: wie weit ist die Liste? */
.check-tag { font-variant-numeric: tabular-nums; }
.check-tag.ist-fertig { color: var(--status-done, var(--accent)); }

/* --- Reaktionen unter Kommentaren und Nachrichten -------------------------- */

.reaktionen { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.reaktion {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px; min-height: 24px;
  background: var(--surface-2); border: 1px solid transparent;
  font-size: 13px; line-height: 1; cursor: pointer;
}
.reaktion:hover { border-color: var(--border-strong); }
.reaktion.ist-meine { border-color: var(--accent); background: var(--accent-soft); }
.reaktion-zahl { font-size: 11.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.reaktion-mehr { opacity: 0; color: var(--text-faint); font-size: 12px; }
.comment:hover .reaktion-mehr,
.chat-message:hover .reaktion-mehr,
.reaktionen:hover .reaktion-mehr { opacity: 1; }
.reaktion-auswahl {
  display: flex; gap: 2px; padding: 3px;
  background: var(--bg); border: 1px solid var(--border-strong); box-shadow: var(--shadow-md);
}
.reaktion-wahl {
  padding: 3px 5px; background: none; border: none; cursor: pointer; font-size: 15px; line-height: 1;
}
.reaktion-wahl:hover { background: var(--surface-2); }

/* Zeile mit Haken in Dialogen (Mail-Einstellungen) */
.mail-zeile {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 0; font-size: 13.5px; cursor: pointer;
}
.mail-zeile input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }

/* --- Pinnwand: Kalender ---------------------------------------------------- */

.kal-kopf {
  display: flex; align-items: center; gap: 10px;
  margin: 4px 0 14px;
}
.kal-kopf h2 {
  margin: 0; min-width: 210px;
  font-family: var(--font-display); font-size: 23px; font-weight: 500;
}
.kal-kopf .spacer { flex: 1; }

.kalender { background: var(--paper); border: 1px solid var(--border); }
.kal-namen {
  display: grid; grid-template-columns: repeat(7, 1fr);
  background: var(--petrol); color: var(--creme);
}
.kal-namen span {
  padding: 6px 9px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
}
/* Die Tageszellen liegen als Hintergrund unter der Woche, nicht in ihren
   Zeilen. Sonst verteilt sich die Mindesthöhe auf alle Zeilen und schiebt die
   Balken nach unten – sie stünden dann dichter am nächsten Tag als an ihrem
   eigenen. */
.kal-woche {
  position: relative;
  display: grid; grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: min-content; row-gap: 3px;
  min-height: 104px; padding-bottom: 7px;
  border-bottom: 1px solid var(--border);
}
.kal-woche:last-child { border-bottom: none; }
.kal-zelle {
  position: absolute; top: 0; bottom: 0; width: calc(100% / 7);
  border-right: 1px solid var(--border);
  pointer-events: none;
}
.kal-zelle.ist-fremd { background: var(--surface-2); }
.kal-zelle.ist-heute { background: var(--accent-soft); }
.kal-zahl {
  position: relative; z-index: 1;
  padding: 5px 8px 4px; font-size: 12px; color: var(--text-faint);
  font-variant-numeric: tabular-nums; pointer-events: none;
}
.kal-zelle.ist-letzte { border-right: none; }

.kal-balken {
  position: relative; z-index: 1;
  margin: 0 3px; padding: 3px 7px; min-height: 22px;
  display: flex; flex-direction: column; justify-content: center;
  border: none; border-left: 3px solid var(--petrol);
  background: var(--surface-2); color: var(--text);
  font-size: 12px; line-height: 1.25; text-align: left; cursor: pointer;
  overflow: hidden;
}
.kal-balken:hover { box-shadow: var(--shadow-sm); }
.kal-balken-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kal-balken-wer { color: var(--text-faint); font-size: 10.5px; }
.kal-balken.kommt-vorher { margin-left: 0; border-left: none; }
.kal-balken.geht-weiter { margin-right: 0; }

.kal-balken.ist-termin { border-left-color: var(--petrol); }
.kal-balken.ist-launch {
  border-left-color: var(--bordeaux); background: var(--danger-soft);
}
.kal-balken.ist-veranstaltung {
  border-left-color: var(--status-soon); background: var(--status-soon-soft, var(--surface-2));
}
.kal-balken.ist-urlaub {
  border-left-color: var(--salbei-tief); background: var(--status-done-soft, var(--surface-2));
}

/* Dieselben Termine als Liste – am Handy die einzige lesbare Form. */
.kal-liste { display: none; }
.kal-listenzeile {
  display: flex; align-items: baseline; gap: 9px; width: 100%;
  padding: 10px 4px; border: none; border-bottom: 1px solid var(--border);
  background: none; text-align: left; cursor: pointer; font-size: 14px;
}
.kal-listenzeile:hover { background: var(--surface-2); }
.kal-punkt {
  flex: none; width: 9px; height: 9px; display: inline-block; background: var(--petrol);
}
.kal-punkt.ist-launch { background: var(--bordeaux); }
.kal-punkt.ist-veranstaltung { background: var(--status-soon); }
.kal-punkt.ist-urlaub { background: var(--salbei-tief); }
.kal-listen-datum {
  flex: none; min-width: 132px; color: var(--text-dim); font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.kal-listen-titel { flex: 1; min-width: 0; }
.kal-listen-wer { flex: none; color: var(--text-faint); font-size: 12px; }

/* --- Pinnwand: schwarzes Brett --------------------------------------------- */

.brett-kopf { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.brett-kopf h2 {
  margin: 0; font-family: var(--font-display); font-size: 23px; font-weight: 500;
}
.brett-kopf .spacer { flex: 1; }
.brett-neu {
  padding: 2px 9px; background: var(--accent); color: var(--paper);
  font-size: 11.5px; letter-spacing: .04em;
}

.brett { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.aushang {
  background: var(--paper); border: 1px solid var(--border);
  border-top: 3px solid var(--border-strong);
  padding: 14px 16px;
}
.aushang.ist-neu { border-top-color: var(--accent); }
.aushang.ist-gelesen { opacity: .72; }
.aushang.ist-gelesen:hover { opacity: 1; }
.aushang-kopf { display: flex; align-items: baseline; gap: 8px; }
.aushang-kopf h3 {
  margin: 0; font-family: var(--font-display); font-size: 17px; font-weight: 500;
}
.aushang-kopf .spacer { flex: 1; }
.aushang-nadel { font-size: 13px; }
.aushang-marke {
  flex: none; padding: 1px 7px; background: var(--accent); color: var(--paper); font-size: 10.5px;
  letter-spacing: .08em; text-transform: uppercase;
}
.aushang-text { margin: 9px 0 12px; font-size: 13.5px; white-space: pre-wrap; }
.aushang-fuss {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  padding-top: 9px; border-top: 1px solid var(--border); font-size: 12px;
}
.aushang-fuss .spacer { flex: 1; }

@media (max-width: 860px) {
  .kalender { display: none; }
  .kal-liste { display: block; }
  .kal-kopf h2 { min-width: 0; font-size: 20px; }
  .kal-listen-datum { min-width: 108px; }
}

/* Projektauswahl im Eingabefeld von „Mein Board" – eine Karte gehört immer
   zu einem Projekt, also steht die Frage gleich dabei. */
.compose-projekt {
  display: flex; align-items: center; gap: 8px; margin-top: 7px;
}
.compose-projekt .select { flex: 1; min-width: 0; }

/* Eine Hintergrundkarte, die in Arbeit liegt, deren Uhr aber wartet. */
.tag-wartet {
  background: var(--status-soon-soft); color: var(--status-soon);
  border: 1px solid var(--status-soon);
}

/* --- Tagesverlauf ---------------------------------------------------------- */

.sicht-reiter { display: flex; gap: 6px; margin-bottom: 14px; }

.verlauf-kopf { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; }
.verlauf-kopf h2 {
  margin: 0; min-width: 190px;
  font-family: var(--font-display); font-size: 21px; font-weight: 500;
}
.verlauf-kopf .spacer { flex: 1; }

.verlauf-summe {
  display: flex; gap: 32px; flex-wrap: wrap;
  padding: 14px 18px; margin-bottom: 18px;
  background: var(--surface); border: 1px solid var(--border);
}
.verlauf-zahl { font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; }
.verlauf-doppelt .verlauf-zahl { color: var(--danger); }

.verlauf-strahl {
  position: relative; padding: 22px 0 6px;
  background: var(--paper); border: 1px solid var(--border);
  margin-bottom: 18px; overflow: hidden;
}
.verlauf-stunden { position: relative; height: 16px; margin: 0 12px; }
.verlauf-stunden span {
  position: absolute; top: 0; transform: translateX(-50%);
  font-size: 10.5px; color: var(--text-faint); font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.verlauf-flaeche { position: relative; margin: 6px 12px 0; }
.verlauf-balken {
  position: absolute; height: 28px; padding: 0 7px;
  display: flex; align-items: center; overflow: hidden;
  background: var(--surface-2); border: none; border-left: 3px solid var(--accent);
  color: var(--text); font-size: 12px; text-align: left; cursor: pointer;
  white-space: nowrap;
}
.verlauf-balken:hover { background: var(--accent-soft); }
.verlauf-balken.laeuft { border-left-color: var(--status-active); }
.verlauf-balken span { overflow: hidden; text-overflow: ellipsis; }

.verlauf-liste { background: var(--paper); border: 1px solid var(--border); }
.verlauf-zeile {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 14px; border: none; border-bottom: 1px solid var(--border);
  background: none; text-align: left; font-size: 13.5px; cursor: pointer;
}
.verlauf-zeile:last-child { border-bottom: none; }
.verlauf-zeile:hover { background: var(--surface-2); }
.verlauf-zeit {
  flex: none; width: 116px; color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.verlauf-dauer {
  flex: none; width: 74px; text-align: right;
  font-variant-numeric: tabular-nums; color: var(--text-dim);
}
.verlauf-punkt { flex: none; width: 9px; height: 9px; display: inline-block; }
.verlauf-titel { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.verlauf-projekt { flex: none; color: var(--text-faint); font-size: 12px; }

@media (max-width: 760px) {
  .verlauf-strahl { display: none; }
  .verlauf-zeile { flex-wrap: wrap; }
  .verlauf-projekt { width: 100%; }
}

.verlauf-warnung {
  padding: 11px 16px; margin-bottom: 18px;
  background: var(--danger-soft); border-left: 3px solid var(--danger);
  font-size: 13px;
}

/* Ein Projekt, das jemand angelegt hat und das die Administration noch nicht
   gesehen hat. Gearbeitet wird längst – deshalb dezent, nicht alarmierend. */
.freigabe-marke {
  flex: none; padding: 2px 9px;
  background: var(--status-soon-soft); color: var(--status-soon);
  border: 1px solid var(--status-soon);
  font-size: 11px; letter-spacing: .04em;
}
.project-tile.wartet-auf-freigabe { border-style: dashed; }
.project-tile .freigabe-marke { align-self: flex-start; margin-bottom: 4px; }

/* Chat und Pinnwand stehen rechts bei Suche und Mitteilungen: Sie gehören zu
   dem, was einen erreicht, nicht zu dem, woran man arbeitet. */
.nav-kommunikation { margin-left: 0; margin-right: 4px; }

/* „Mehr ▾" saß 16 Pixel über den übrigen Einträgen: Der Wrapper ist ein
   Flex-Element, der Link darin bekam die Höhe nicht mit. */
.nav-more { display: flex; align-items: stretch; }
.nav-more > a { display: flex; align-items: center; }
