* { box-sizing: border-box; }

/* Vue-Template bis zum Mount ausblenden – verhindert das kurze Aufblitzen von
   Roh-Markup (z.B. der Reset-Dialog/Modals) beim Browser-Refresh. */
[v-cloak] { display: none !important; }

/* Farbschema wie WhatsApp (Allgemeine Regel); Symbole bleiben Schwarz/Weiß-SVG. */
:root {
  --bg: #eae6df;            /* WhatsApp Chat-Hintergrund */
  --panel: #ffffff;
  --line: #e4e6eb;
  --header: #075e54;        /* WhatsApp Kopfzeile (Teal) */
  --accent: #00a884;        /* WhatsApp Grün (Aktionen/aktiv) */
  --accent-dark: #008069;
  --muted: #667781;
  --text: #111b21;
}

/* Schriftart immer Roboto (Allgemeine Regel); Emojis kommen direkt vom Font. */
body {
  margin: 0;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Symbole ausschliesslich Schwarz/Weiss im SVG-Format; Farbe folgt currentColor. */
.icon {
  width: 18px; height: 18px;
  vertical-align: -3px;
  color: currentColor; flex: 0 0 auto;
}

.topbar {
  display: flex; align-items: center; gap: 16px;
  background: var(--header); color: #ffffff;
  padding: 12px 20px; position: sticky; top: 0; z-index: 10;
}
/* Logo (Symbol + Text) ist klickbar: laedt die Organisationsdaten neu (wie der fruehere
   Aktualisieren-Button). */
.topbar .logo { font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 8px; flex: 0 0 auto; cursor: pointer; }
.topbar .logo:hover { opacity: .85; }
.topbar .reload {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  background: rgba(255,255,255,.15); color: #ffffff; border: none;
  padding: 8px 14px; border-radius: 6px; cursor: pointer; font: inherit; font-size: 14px;
}
.topbar .reload:hover { background: rgba(255,255,255,.28); }
.topbar-user {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  /* Haelt E-Mail/Abmelden rechtsbuendig, auch wenn kein Breadcrumb (flex:1) den Platz fuellt. */
  margin-left: auto;
  color: rgba(255,255,255,.85); font-size: 13px;
  max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Anmeldeseite (Google Identity Platform) */
.login-screen {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  /* Teal-Banner oben wie beim WhatsApp-Web-Login */
  background: linear-gradient(var(--header) 0 220px, var(--bg) 220px);
}
.login-card {
  background: var(--panel); border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
  padding: 36px 40px; max-width: 380px; width: 100%; text-align: center;
}
.login-logo {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 20px; margin-bottom: 12px;
}
.login-card h1 { font-size: 17px; font-weight: 500; margin: 0 0 8px; }
.login-text { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.login-btn { width: 100%; justify-content: center; font-size: 15px; padding: 10px 14px; }
.login-fehler { color: #d33a3a; font-size: 13px; margin: 14px 0 0; }

/* Rein lesender Chat-Verlauf (Mitarbeiter) */
.chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 4px 8px; font-size: 13px;
}
.chat-verlauf { padding: 12px 14px; max-height: 60vh; overflow-y: auto; background: var(--bg); border-radius: 6px; }
.cv-row { display: flex; margin: 6px 0; }
.cv-row-user { justify-content: flex-end; }
.cv-row-assistant, .cv-row-tool, .cv-row-contact { justify-content: flex-start; }
.cv-row-system { justify-content: center; }
.cv-bubble { max-width: 80%; padding: 8px 12px; border-radius: 8px; font-size: 14px; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.cv-bubble .cv-rolle { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.cv-bubble .cv-text { white-space: pre-wrap; word-break: break-word; }
.cv-user { background: #d9fdd3; }                 /* WhatsApp-Grün (gesendet) */
.cv-assistant, .cv-tool, .cv-contact { background: var(--panel); }
.cv-system { background: transparent; box-shadow: none; max-width: 100%; text-align: center; color: var(--muted); font-size: 12px; }
.cv-system .cv-rolle { display: none; }
/* Function-Call als kleines Symbol/Chip */
.cv-fc {
  display: inline-flex; align-items: center; gap: 6px;
  background: #eef1f4; color: #334; border: 1px solid var(--line);
  padding: 4px 8px; border-radius: 12px; cursor: pointer; font: inherit; font-size: 12px;
}
.cv-fc:hover { background: #e2e7ec; }
.cv-fc .icon { width: 15px; height: 15px; }

/* JSON-Overlay (Function-Call-Kommunikation) */
.modal-json { max-width: 1120px; width: 100%; }
.json-pre {
  margin: 8px 0 0; padding: 12px; max-height: 84vh; overflow: auto;
  background: #0f1720; color: #e6edf3; border-radius: 6px;
  font-family: "Roboto Mono", Consolas, monospace; font-size: 12.5px; line-height: 1.45;
  white-space: pre; word-break: normal;
}

/* Leeres Dashboard (kein Mitarbeiter zur angemeldeten E-Mail) */
.empty-dashboard {
  max-width: 960px; margin: 64px auto; padding: 32px 16px;
  text-align: center; color: var(--muted);
}
.empty-dashboard .icon.big { width: 56px; height: 56px; color: var(--line); }
.empty-dashboard h2 { font-size: 18px; margin: 12px 0 6px; color: var(--text); font-weight: 500; }
.empty-dashboard p { margin: 0; font-size: 14px; }
.login-info { color: var(--accent-dark); font-size: 13px; margin: 14px 0 0; }

/* E-Mail/Passwort-Formular */
.login-form { display: flex; flex-direction: column; gap: 10px; }
.login-input {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 6px;
  font: inherit; font-size: 14px; color: var(--text); background: var(--panel);
}
.login-input:focus { outline: none; border-color: var(--accent); }
.login-link {
  background: none; border: none; padding: 0; margin: 10px 0 0;
  color: var(--accent-dark); font: inherit; font-size: 13px; cursor: pointer;
}
.login-link:hover { text-decoration: underline; }

/* Trenner „oder" zwischen E-Mail/Passwort und Google-Anmeldung */
.login-trenner {
  display: flex; align-items: center; gap: 10px;
  margin: 16px 0; color: var(--muted); font-size: 12px;
}
.login-trenner::before, .login-trenner::after {
  content: ""; flex: 1; border-top: 1px solid var(--line);
}

/* Breadcrumb im Header */
.breadcrumb {
  flex: 1; min-width: 0;
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
  font-size: 14px; color: rgba(255,255,255,.75);
}
.breadcrumb .crumb { cursor: pointer; color: rgba(255,255,255,.85); }
.breadcrumb .crumb:hover { text-decoration: underline; }
.breadcrumb .crumb.current { color: #ffffff; font-weight: 500; cursor: default; text-decoration: none; }
.breadcrumb .sep { width: 14px; height: 14px; color: rgba(255,255,255,.5); }

.content { max-width: 960px; margin: 0 auto; padding: 16px; }

/* Dashboard-Kopf mit Bearbeiten/Abbrechen/Speichern */
.dash { margin-bottom: 18px; }
/* Aktionen zentriert UNTER dem Inhalt im card-Div (frueher rechts oben in der dash-head). */
.dash-actions {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin: 14px 0 4px; padding: 6px; border-radius: 8px; background: #f7f8fa;
}

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--panel); color: var(--text); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 6px; cursor: pointer; font: inherit; font-size: 14px;
}
.btn:hover { background: #f5f6f6; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #ffffff; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.ghost { background: transparent; }
.btn.danger { background: #d33a3a; border-color: #d33a3a; color: #ffffff; }
.btn.danger:hover { background: #b92e2e; }

/* Lösch-Nachfrage als Overlay (Modal) */
.modal-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal {
  background: var(--panel); border-radius: 10px; width: 100%; max-width: 380px;
  padding: 20px; box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.modal-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.modal-body { font-size: 14px; color: var(--text); margin-bottom: 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; margin-bottom: 0; padding: 8px 22px; overflow: visible;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

/* Reiter (Listen der untergeordneten Klassen) innerhalb des Dashboards */
.tabs {
  display: flex; flex-wrap: wrap; gap: 0; background: var(--panel);
  border: 1px solid var(--line); border-radius: 8px 8px 0 0; border-bottom: none;
  overflow: hidden;
}
.tabs button {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; border-bottom: 3px solid transparent;
  padding: 12px 18px; cursor: pointer; font: inherit; font-size: 15px; color: var(--muted);
}
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--accent-dark); font-weight: 500; border-bottom-color: var(--accent); }
.tabs .count { margin-left: 2px; }

.liste {
  border: 1px solid var(--line); border-top: none; border-radius: 0 0 8px 8px;
  padding: 10px; background: var(--panel);
}
.liste-foot { display: flex; justify-content: flex-end; margin-top: 8px; }

/* Namensfilter; Eingabe links, Aktualisierungsbutton rechtsbündig. */
.liste-filter { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.liste-filter .btn { margin-left: auto; flex: 0 0 auto; }
.filter-input {
  width: 100%; max-width: 320px; font: inherit; font-size: 14px;
  border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; background: #fff;
}
.filter-input:focus { outline: none; border-color: var(--accent); }

/* ArbeitszeitErfassungen als Tabelle (Spaltenheader sortierbar) */
.erf-table { width: 100%; border-collapse: collapse; background: var(--panel); }
.erf-table thead th {
  text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .03em;
  text-transform: uppercase; color: var(--accent-dark);
  background: #eef1f4; padding: 11px 12px; border-bottom: 2px solid var(--line);
}
/* Sortierbare Header klar als klickbar markieren. */
.erf-table th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.erf-table th.sortable:hover { background: #e3e7ec; color: var(--text); }
.erf-table th.sortable:first-child { border-top-left-radius: 8px; }
/* Sortier-Indikator: gemeinsam fuer beide Tabellen-Varianten (erf-table = list-table, arr-table). */
.erf-table th .sort, .arr-table th .sort { margin-left: 4px; font-size: 11px; color: #9aa3ad; }
.erf-table th .sort.aktiv, .arr-table th .sort.aktiv { color: var(--accent); }
.erf-table .col-aktion { cursor: default; }

/* Abschnitts-Ueberschrift im Details-Reiter (Adressen / Bankverbindungen) */
.details-titel {
  margin: 14px 0 2px; font-size: 13px; font-weight: 600; color: var(--text);
  text-transform: uppercase; letter-spacing: .04em;
}
.details-titel:first-child { margin-top: 4px; }

/* Array-Felder als sortierbare Tabelle (Adressen, Bankverbindungen) */
.arr-table {
  width: 100%; border-collapse: collapse; background: #fff;
  margin: 6px 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.arr-table thead th {
  text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .03em;
  text-transform: uppercase; color: var(--accent-dark);
  background: #eef1f4; padding: 9px 12px; border-bottom: 2px solid var(--line);
  cursor: pointer; user-select: none; white-space: nowrap;
}
.arr-table thead th:hover { background: #e3e7ec; color: var(--text); }
.arr-table td { padding: 9px 12px; font-size: 14px; border-bottom: 1px solid #eef0f2; vertical-align: top; }
.arr-table tbody tr:last-child td { border-bottom: none; }
.arr-table .edit-input { max-width: 220px; }
.arr-table .col-aktion { width: 44px; text-align: right; background: #eef1f4; cursor: default; }
.arr-table td.col-aktion { background: transparent; }
.arr-foot { display: flex; justify-content: flex-end; margin: 6px 0 2px; }
.hinweis { margin: 8px 2px 0; }

/* Lokations-Link (öffnet die Karte) */
.map-link { color: var(--accent-dark); text-decoration: underline; cursor: pointer; }
.map-link:hover { color: var(--accent); }

/* Eingebettete Karte als letzte (volle Breite) Zeile der Metadaten-Tabelle */
.map-embed {
  width: 100%; height: 280px;
  border: 1px solid var(--line); border-radius: 10px; display: block;
}
table.meta tr.map-row td { padding-top: 4px; }

/* Obere Reiter (Metadaten/Adressen/Bankverbindungen), direkt mit der Karte verbunden. */
.tabs.ober { border-radius: 10px 10px 0 0; }
.card.untertabs { border-top: none; border-top-left-radius: 0; border-top-right-radius: 0; }
.erf-table td { padding: 8px 10px; font-size: 14px; border-bottom: 1px solid #eef0f1; }
.erf-table tbody tr { cursor: pointer; }
.erf-table tbody tr:hover td { background: #f5f6f6; }
.erf-table .col-aktion { width: 44px; text-align: right; }

/* Listenzeilen */
.list-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px 8px 14px; margin-bottom: 8px;
}
.list-row:last-child { margin-bottom: 0; }
.list-row:hover { background: #f5f6f6; }
.list-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; cursor: pointer; }
.list-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.list-text strong { font-weight: 500; }
.list-main .chev { margin-left: auto; color: #aab; }

/* Runder Icon-Button (z.B. Entfernen) – Symbol bleibt Schwarz/Weiß. */
.icon-btn {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 34px; height: 34px; border: none; border-radius: 50%;
  background: transparent; color: var(--text); cursor: pointer;
}
.icon-btn:hover { background: #ececec; }

/* Generische Metadaten-Tabelle (auch verschachtelt). */
table.meta { width: 100%; border-collapse: collapse; }
/* Luftigere Metadaten: mehr vertikale Polster, ruhige Zeilen-Trenner. */
table.meta th, table.meta td {
  text-align: left; vertical-align: top;
  padding: 11px 0; font-size: 14.5px; line-height: 1.55;
  border-top: 1px solid #eef0f2;
}
table.meta > tbody > tr:first-child > th,
table.meta > tbody > tr:first-child > td { border-top: none; }
table.meta th {
  white-space: nowrap; width: 1%; padding-right: 28px;
  color: var(--muted); font-weight: 500; font-size: 13px;
}
/* overflow-wrap:anywhere (statt word-break:break-word) verkleinert auch die intrinsische
   Mindestbreite -> lange, ununterbrochene Strings (z.B. die objID/ULID) brechen um und die
   Tabelle bleibt bei 100% (kein horizontaler Ueberlauf, v.a. auf schmalen Viewports). */
table.meta td { overflow-wrap: anywhere; }
/* Member-Felder der MCP-ID (objID/objNAME/objTYPE) sind label-los -> Wert zentriert;
   nur der Objektname (objNAME) zusaetzlich fett. */
table.meta td.id-cell { text-align: center; }
table.meta td.id-cell.id-name { font-weight: 700; }
/* Zweites Label in Paar-Zeilen etwas einrücken. */
table.meta td + th { padding-left: 28px; }
/* Verschachtelte Objekte: eigene, weiche Karte mit etwas mehr Luft.
   Horizontales Padding über die Zellen, da table-padding bei border-collapse ignoriert wird. */
table.meta table.meta {
  margin: 6px 0; border: 1px solid #fff; border-radius: 8px; background: #f7f8fa;
  /* border-collapse:separate (statt des geerbten collapse), damit der Radius gerendert
     wird; overflow:hidden klippt die Ecken sauber. */
  border-collapse: separate; border-spacing: 0; overflow: hidden;
}
table.meta table.meta th { padding-left: 14px; }
table.meta table.meta td:last-child { padding-right: 14px; }
/* MCP-ID-Block im Formular: deutlich sichtbarer Rahmen und grauer Hintergrund. */
table.meta table.meta.meta-mcpid, table.meta.meta-mcpid {
  border: 1px solid #c4c9d0; background: #e9ebef;
}
/* Verschachtelte Tabelle nimmt die volle Breite der aeusseren Tabelle ein (eigene Karte,
   daher keine zusaetzliche obere Trennlinie der aeusseren Zeile). */
table.meta td.obj-cell { padding: 4px 0; border-top: none; }
/* Titel (Feld-Label) einer verschachtelten Tabelle: rechts oben, dezent und flach. */
table.meta td.meta-titel {
  text-align: right; color: var(--muted); font-weight: 500; font-size: 13px;
  padding: 4px 14px 0;
}
/* Keine Trennlinie und kein oberer Abstand in der Zeile direkt unter der Titel-Zeile. */
table.meta tr.titel-zeile + tr > th,
table.meta tr.titel-zeile + tr > td { border-top: none; padding-top: 0; }
.arr-item { padding: 6px 0; }
.arr-item + .arr-item { border-top: 1px dashed var(--line); }

/* Inline-Eingabefelder im Bearbeitungsmodus */
.edit-input {
  font: inherit; font-size: 14.5px; color: var(--text);
  border: 1px solid var(--line); border-radius: 6px; padding: 7px 11px;
  width: 100%; max-width: 400px; min-width: 0; background: #fff;
}
.edit-input:focus { outline: none; border-color: var(--accent); }
/* Allein in der Zeile stehende Bearbeitenfelder (colspan-Zelle) nutzen die volle Breite. */
table.meta td[colspan="3"] .edit-input { max-width: none; }
/* MCP-ID-Referenzfelder (Ansprechperson, Arbeitszeitmodell): Rahmen + grauer Hintergrund. */
.mcpid-ref { border: 1px solid #c4c9d0; background: #e9ebef; border-radius: 6px; }
span.ref-read { display: inline-block; padding: 6px 11px; }
/* Allein in der Zeile (colspan-Zelle) stehende McpID-Referenz: volle Breite auch in der Leseansicht. */
table.meta td[colspan="3"] span.ref-read { display: block; }
/* Die Box der Lese-Referenz bringt eigenes Polster + Rahmen mit -> td-Polster entsprechend
   reduzieren, damit die Gesamthoehe der Zeile derjenigen normaler Felder entspricht. */
table.meta td:has(> span.ref-read) { padding-top: 4px; padding-bottom: 4px; }
/* Eigenes, durchsuchbares McpID-Referenz-Dropdown (Combobox). */
.ref-combo { position: relative; }
.ref-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 2px); z-index: 40;
  max-height: 240px; overflow-y: auto;
  background: #fff; border: 1px solid #c4c9d0; border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}
.ref-option { padding: 7px 11px; cursor: pointer; font-size: 14.5px; line-height: 1.4; }
.ref-option:hover { background: #eef1f5; }
.ref-leer { padding: 7px 11px; color: var(--muted); font-size: 13.5px; }

.muted { color: var(--muted); font-size: 13px; }
.loading { text-align: center; color: var(--muted); padding: 80px 0; }

/* --- Kalender-Reiter (Mitarbeiter): Urlaube + erfasste Zeiten ------------- */
.kal-wrap { padding: 4px 2px; }
.kal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.kal-nav .icon { width: 18px; height: 18px; }
.kal-prev .icon { transform: rotate(180deg); }
.kal-monat { font-size: 15px; font-weight: 500; color: var(--text); min-width: 130px; text-align: center; }
.kal-legende { display: flex; gap: 14px; margin-left: auto; }
.kal-leg { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.kal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.kal-kopf { margin-bottom: 4px; }
.kal-wt { text-align: center; font-size: 12px; color: var(--muted); font-weight: 500; padding: 2px 0; }
.kal-cell {
  min-height: 52px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--panel); padding: 4px 5px; display: flex; flex-direction: column;
}
.kal-leer { border-color: transparent; background: transparent; }
.kal-heute { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.kal-arbeit-bg { background: rgba(0, 168, 132, 0.12); }
.kal-urlaub-bg { background: rgba(240, 160, 32, 0.16); }
.kal-arbeit-bg.kal-urlaub-bg {
  background: linear-gradient(135deg, rgba(0, 168, 132, 0.16) 50%, rgba(240, 160, 32, 0.18) 50%);
}
.kal-tagnr { font-size: 12px; color: var(--text); }
.kal-marker { margin-top: auto; display: flex; gap: 4px; }
.kal-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.kal-dot-arbeit { background: var(--accent); }
.kal-dot-urlaub { background: #f0a020; }

/* --- Mobil: Breadcrumb von Beginn an eine eigene (scrollbare) Header-Zeile ---- */
/* Auf schmalen Viewports liegt der Breadcrumb IMMER (unabhaengig von der Pfadtiefe) in
   einer eigenen vollen Zeile unter den Bedienelementen (Aktualisieren/E-Mail/Abmelden)
   und scrollt bei tiefen Pfaden horizontal (statt mehrzeilig umzubrechen / zu ueberlappen).
   Das erste Element (Organisation) bleibt dabei links fixiert und damit immer sicht- und
   anklickbar. */
@media (max-width: 768px) {
  .topbar { flex-wrap: wrap; row-gap: 8px; column-gap: 12px; }
  .topbar .breadcrumb {
    order: 10;            /* unter die Bedienelemente der ersten Zeile */
    flex: 1 0 100%;       /* volle Breite -> eigene Zeile (von Beginn an) */
    flex-wrap: nowrap;    /* nicht mehrzeilig umbrechen ... */
    overflow-x: auto;     /* ... sondern bei Bedarf horizontal scrollen */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .topbar .breadcrumb .crumb { white-space: nowrap; }
  /* Organisation (erstes Element) beim horizontalen Scrollen links fixieren. */
  .topbar .breadcrumb .crumb:first-child {
    position: sticky; left: 0; z-index: 1;
    background: var(--header); padding-right: 6px;
    box-shadow: 6px 0 6px -4px var(--header);
  }
  /* E-Mail rechtsbuendig und nicht kuenstlich kuerzen (genug Platz); Ellipsis nur als
     Fallback bei sehr langen Adressen. */
  .topbar-user { margin-left: auto; flex: 0 1 auto; min-width: 0; max-width: none; }
  /* Abmelden rechtsbuendig – auch wenn es auf eine eigene Zeile unter die E-Mail rutscht. */
  .topbar .reload { margin-left: auto; }
}

/* Das erste Breadcrumb-Element (Organisation) bleibt IMMER anklickbar – auch wenn es
   zugleich das aktuelle (current) Element ist (z.B. im Organisations-Dashboard). */
.breadcrumb .crumb:first-child { cursor: pointer; }
.breadcrumb .crumb:first-child:hover { text-decoration: underline; }
