@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans.woff2') format('woff2-variations'),
       url('/assets/fonts/plus-jakarta-sans.woff2') format('woff2');
}

:root {
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --brand: #0e7c86;
  --brand-dark: #0a5b63;
  --brand-bright: #17b8ac;
  --brand-light: #e2f3f1;
  --brand-gradient: linear-gradient(135deg, #17b8ac 0%, #0a5b63 100%);
  --bg: #e9f0ee;
  --surface: #ffffff;
  --surface-2: #f4f8f7;
  --border: #dbe5e2;
  --text: #10181c;
  --text-muted: #3a4a4d;
  --text-faint: #6b7a7d;
  --neutral: #6b7a7d;
  --neutral-bg: #e9edec;
  --danger: #c1352f;
  --danger-bg: #fdecea;
  --success: #217a45;
  --success-bg: #e7f7ec;
  --warning: #b85c07;
  --warning-bg: #fdf1e0;
  --info: #2b5fd9;
  --info-bg: #eaf1ff;
  --shadow-sm: 0 1px 2px rgba(9, 20, 22, 0.06);
  --shadow-md: 0 4px 14px rgba(9, 20, 22, 0.09);
  --shadow-lg: 0 14px 34px rgba(9, 20, 22, 0.16);
  --radius: 16px;
  --radius-sm: 8px;
  --sidebar-w: 248px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }

h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; }
h2, h3 { font-weight: 800; letter-spacing: -0.01em; }

/* ---------- App shell (sidebar + main) ---------- */
.app-shell {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

.app-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  padding: 6px 10px 22px;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--brand-gradient);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.sidebar-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.12s ease, color 0.12s ease;
}
.sidebar-nav a i { font-size: 1.2rem; width: 20px; text-align: center; flex-shrink: 0; }
.sidebar-nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.sidebar-nav a.active { background: var(--brand-light); color: var(--brand-dark); }

.sidebar-user {
  border-top: 1px solid var(--border);
  margin-top: 14px;
  padding-top: 14px;
  padding-left: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-user .name { font-weight: 700; font-size: 0.85rem; color: var(--text); line-height: 1.3; }
.sidebar-user .logout-link {
  font-size: 0.76rem;
  color: var(--text-faint);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sidebar-user .logout-link:hover { color: var(--danger); text-decoration: none; }

.app-main { flex: 1; min-width: 0; }

.app-topbar { display: none; }
.sidebar-toggle { display: none; }
.sidebar-backdrop { display: none; }

@media (max-width: 900px) {
  .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 264px;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 40;
    box-shadow: var(--shadow-lg);
  }
  .app-sidebar.is-open { transform: translateX(0); }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(9, 20, 22, 0.4);
    z-index: 35;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  .sidebar-backdrop.is-open { opacity: 1; pointer-events: auto; }

  .app-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
  }
  .app-topbar .brand-mark { width: 28px; height: 28px; font-size: 0.9rem; }
  .app-topbar .topbar-title { font-weight: 800; font-size: 0.95rem; }

  .sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 1.2rem;
    color: var(--text);
    cursor: pointer;
    flex-shrink: 0;
  }
}

.container { max-width: 1120px; margin: 0 auto; padding: 28px 24px 60px; }

@media (max-width: 640px) {
  .container { padding: 20px 16px 48px; }
  h1 { font-size: 1.25rem; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.card-header h2 { margin: 0; font-size: 0.95rem; }

/* ---------- Avatars ---------- */
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.avatar-muted { background: #eceef4; color: var(--text-muted); }
.avatar-note { background: linear-gradient(135deg, #f3b65a, var(--warning)); }

/* ---------- Icons ---------- */
.icon { font-size: 1.05rem; line-height: 1; vertical-align: -0.14em; }
.btn i, .tab-btn i, .sidebar-nav a i, .empty-icon i { line-height: 1; }

.input-icon { position: relative; }
.input-icon i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  font-size: 1.05rem;
  pointer-events: none;
}
.input-icon input { padding-left: 36px; }

/* ---------- Table (generic, admin lists) ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
td { padding: 14px; border-top: 1px solid var(--border); vertical-align: middle; }
tbody tr { transition: background 0.12s ease; }
tbody tr:hover td { background: var(--surface-2); }
td a { font-weight: 600; color: var(--text); }
td a:hover { color: var(--brand); text-decoration: none; }

/* ---------- Ticket rows (responsive card-list, replaces plain table on the case overview) ---------- */
.ticket-list { display: flex; flex-direction: column; }
.ticket-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-top: 1px solid var(--border);
  color: var(--text);
  transition: background 0.12s ease;
}
.ticket-row:first-child { border-top: none; }
.ticket-row:hover, .ticket-row:focus-visible { background: var(--surface-2); text-decoration: none; }
.ticket-row:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }

.ticket-row-main { flex: 1 1 auto; min-width: 0; }
.ticket-row-title {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ticket-row-title .ticket-num { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-muted); font-weight: 700; margin-right: 8px; }
.ticket-row-sub {
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticket-row-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: 0 0 auto; }
.ticket-row-time { flex: 0 0 auto; font-family: var(--font-mono); white-space: nowrap; min-width: 118px; text-align: right; }

@media (max-width: 720px) {
  .ticket-row { flex-wrap: wrap; padding: 14px 16px; }
  .ticket-row-badges { flex-basis: 100%; justify-content: flex-start; margin-top: 8px; order: 2; }
  .ticket-row-time { flex-basis: 100%; text-align: left; margin-top: 6px; order: 3; }
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.badge-open { background: var(--info-bg); color: var(--info); }
.badge-pending { background: var(--warning-bg); color: var(--warning); }
.badge-resolved { background: var(--success-bg); color: var(--success); }
.badge-closed { background: var(--neutral-bg); color: var(--neutral); }
.badge-low { background: var(--neutral-bg); color: var(--neutral); }
.badge-medium { background: var(--info-bg); color: var(--info); }
.badge-high { background: #ffe8d6; color: #d9622b; }
.badge-urgent { background: var(--danger-bg); color: var(--danger); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--brand-gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.btn:hover { filter: brightness(1.06); box-shadow: var(--shadow-md); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-secondary { background: #eceef2; color: var(--text); box-shadow: none; }
.btn-secondary:hover { background: #dde1e8; filter: none; box-shadow: none; }
.btn-danger { background: var(--danger-bg); color: var(--danger); box-shadow: none; }
.btn-danger:hover { background: #ffe0e0; filter: none; box-shadow: none; }
.btn-warn { background: var(--warning); }
.btn-warn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- Forms ---------- */
input[type=text], input[type=email], input[type=password], input[type=search], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
}
label { display: block; font-size: 0.78rem; font-weight: 700; color: var(--text-muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.03em; }
.field { margin-bottom: 16px; }

/* Verhindert automatisches Hineinzoomen von iOS Safari bei Fokus auf Formularfelder. */
@media (max-width: 640px) {
  input[type=text], input[type=email], input[type=password], input[type=search], select, textarea {
    font-size: 16px;
  }
}

/* ---------- Login ---------- */
.login-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-brand {
  background: radial-gradient(120% 140% at 15% 15%, var(--brand-bright), var(--brand-dark) 45%, var(--text) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
}
.login-brand .brand-icon {
  font-size: 1.9rem;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  border-radius: 16px;
  margin-bottom: 24px;
}
.login-brand h1 { font-size: 2rem; margin: 0 0 12px; }
.login-brand p { font-size: 1rem; opacity: 0.85; max-width: 380px; line-height: 1.5; margin: 0; }
.login-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--surface);
}
.login-card { width: 100%; max-width: 380px; border: none; box-shadow: none; padding: 0; }
.login-card h1 { margin: 0 0 4px; font-size: 1.6rem; }
.login-card > p { color: var(--text-muted); margin-top: 0; margin-bottom: 28px; }

@media (max-width: 860px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-brand { display: none; }
}

/* ---------- Alerts ---------- */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.85rem; margin-bottom: 16px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.alert-error { background: var(--danger-bg); color: var(--danger); }
.alert-success { background: var(--success-bg); color: var(--success); }

/* ---------- Filters ---------- */
.filters { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; align-items: flex-end; }
.filters > * { max-width: 220px; }

@media (max-width: 640px) {
  .filters { flex-direction: column; align-items: stretch; }
  .filters > * { max-width: none; }
  .filters .btn { width: 100%; }
}

.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Case header stub ---------- */
.ticket-stub {
  position: relative;
  background: linear-gradient(135deg, var(--brand-light), var(--surface) 55%);
  overflow: hidden;
  margin-bottom: 20px;
}
.ticket-stub::before, .ticket-stub::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg);
  top: 50%;
  transform: translateY(-50%);
}
.ticket-stub::before { left: -11px; }
.ticket-stub::after { right: -11px; }
.ticket-stub .stub-id {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--brand-dark);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.ticket-stub h1 { font-size: 1.25rem; margin: 0 0 6px; }
.ticket-stub .req { margin: 0; color: var(--text-muted); font-size: 0.87rem; }

/* ---------- Case thread / messages ---------- */
.thread { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.message {
  display: flex;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.message-incoming { background: var(--surface); }
.message-outgoing { background: var(--brand-light); border-color: #bfe4e0; }
.message-note { background: var(--surface); border: 1px dashed var(--warning); }
.message-content { flex: 1; min-width: 0; }
.message-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; flex-wrap: wrap; }
.message-meta strong { color: var(--text); font-weight: 700; }
.message-meta .tag { font-weight: 800; display: inline-flex; align-items: center; gap: 4px; }
.message-meta .time { font-family: var(--font-mono); }
.message-body { white-space: pre-wrap; font-size: 0.92rem; line-height: 1.55; word-wrap: break-word; }
.message-body.rich-text { white-space: normal; }

@media (max-width: 640px) {
  .message { padding: 12px; gap: 10px; }
  .message .avatar { width: 28px; height: 28px; font-size: 0.7rem; }
  .message-meta { font-size: 0.74rem; }
}

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.tab-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: #fff; font-family: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; color: var(--text-muted);
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.tab-btn:hover { border-color: var(--brand); color: var(--brand); }
.tab-btn.active-reply { background: var(--brand-gradient); color: #fff; border-color: transparent; }
.tab-btn.active-reply:hover { color: #fff; }
.tab-btn.active-note { background: linear-gradient(135deg, #f3b65a, var(--warning)); color: #4a2c00; border-color: transparent; }
.tab-btn.active-note:hover { color: #4a2c00; }

@media (max-width: 640px) {
  .tabs { flex-wrap: wrap; }
  .tab-btn { flex: 1 1 auto; justify-content: center; }
  #reply-form > .btn, #note-form > .btn { width: 100%; }
}

/* ---------- Sidebar (case detail meta panels) ---------- */
.side-stack { display: flex; flex-direction: column; gap: 14px; }
.side-stack form { display: contents; }
.side-card { padding: 18px; }
.side-card .eyebrow {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.list-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); }
.list-item:first-child { border-top: none; }

@media (max-width: 640px) {
  .list-item { flex-wrap: wrap; }
}

.empty-state { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.empty-state .empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.text-muted { color: var(--text-muted); }
.small { font-size: 0.8rem; }
.mt-0 { margin-top: 0; }
.mb-16 { margin-bottom: 16px; }

/* ---------- Analytics ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.stat-tile .stat-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.05rem; color: #fff; margin-bottom: 14px;
}
.stat-icon.c-brand { background: var(--brand-gradient); }
.stat-icon.c-info { background: var(--info); }
.stat-icon.c-warn { background: var(--warning); }
.stat-icon.c-success { background: var(--success); }
.stat-icon.c-danger { background: var(--danger); }
.stat-tile .stat-value { font-size: 1.6rem; font-weight: 800; font-family: var(--font-mono); letter-spacing: -0.01em; }
.stat-tile .stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; margin-top: 3px; }

.analytics-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) {
  .analytics-grid { grid-template-columns: 1fr; }
}

.chart-card h3 { margin: 0 0 4px; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.chart-card .chart-sub { margin: 0 0 18px; font-size: 0.78rem; color: var(--text-faint); }
.chart-card + .chart-card { margin-top: 20px; }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; height: 100%; }
.bar-col .bar {
  width: 100%;
  max-width: 24px;
  border-radius: 5px 5px 2px 2px;
  background: var(--brand-gradient);
  min-height: 3px;
}
.bar-col .bar-day { font-size: 0.62rem; color: var(--text-faint); font-family: var(--font-mono); white-space: nowrap; }

.bar-list { display: flex; flex-direction: column; gap: 13px; }
.bar-list-row { display: grid; grid-template-columns: 132px 1fr 38px; align-items: center; gap: 10px; font-size: 0.82rem; }
.bar-list-row .bl-label { display: flex; align-items: center; gap: 7px; min-width: 0; font-weight: 600; color: var(--text-muted); }
.bar-list-row .bl-label .bl-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-list-row .track { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar-list-row .fill { height: 100%; border-radius: 999px; }
.bar-list-row .fill.f-info { background: var(--info); }
.bar-list-row .fill.f-warn { background: var(--warning); }
.bar-list-row .fill.f-success { background: var(--success); }
.bar-list-row .fill.f-danger { background: var(--danger); }
.bar-list-row .fill.f-neutral { background: var(--neutral); }
.bar-list-row .fill.f-brand { background: var(--brand-gradient); }
.bar-list-row .count { text-align: right; font-family: var(--font-mono); color: var(--text-muted); }

/* ---------- Rich-text editor (Quill) ---------- */
.editor-wrap { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.editor-wrap:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.editor-wrap .ql-toolbar.ql-snow {
  border: none;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  padding: 8px 10px;
  font-family: var(--font-body);
}
.editor-wrap .ql-container.ql-snow { border: none; font-family: var(--font-body); font-size: 0.9rem; }
.editor-wrap .ql-editor { min-height: 160px; padding: 12px 14px; color: var(--text); line-height: 1.55; }
.editor-wrap .ql-editor.ql-blank::before { color: var(--text-faint); font-style: normal; }
.editor-wrap .ql-snow .ql-stroke { stroke: var(--text-muted); }
.editor-wrap .ql-snow .ql-fill { fill: var(--text-muted); }
.editor-wrap .ql-snow .ql-picker { color: var(--text-muted); }
.editor-wrap .ql-snow.ql-toolbar button:hover .ql-stroke,
.editor-wrap .ql-snow.ql-toolbar button.ql-active .ql-stroke { stroke: var(--brand); }
.editor-wrap .ql-snow.ql-toolbar button:hover .ql-fill,
.editor-wrap .ql-snow.ql-toolbar button.ql-active .ql-fill { fill: var(--brand); }
.editor-wrap .ql-snow.ql-toolbar button:hover,
.editor-wrap .ql-snow.ql-toolbar button.ql-active { color: var(--brand); }
.editor-wrap.is-compact .ql-editor { min-height: 110px; }

/* Vom Editor gespeichertes HTML im Fall-Verlauf und in der Vorlagen-Vorschau */
.rich-text { font-size: 0.92rem; line-height: 1.55; word-wrap: break-word; }
.rich-text p { margin: 0 0 10px; }
.rich-text p:last-child { margin-bottom: 0; }
.rich-text ul, .rich-text ol { margin: 0 0 10px; padding-left: 22px; }
.rich-text a { color: var(--brand); }
.rich-text blockquote { margin: 0 0 10px; padding-left: 12px; border-left: 3px solid var(--border); color: var(--text-muted); }
