/* ===========================================
   senvis-hub — Design System
   Akzentfarbe: Petrol/Teal #0d7377
   =========================================== */

/* --- CSS-Variablen --- */
:root {
  --primary:        #0d7377;
  --primary-hover:  #0a5c60;
  --primary-light:  #e6f2f2;
  --primary-mid:    #b3d9da;

  --bg:             #f2f5f7;
  --surface:        #ffffff;
  --surface-2:      #f8fafb;

  --text:           #1a2332;
  --text-muted:     #58697a;
  --text-subtle:    #96aab8;

  --border:         #dde4ea;
  --border-focus:   var(--primary);

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:    0 4px 14px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 8px 28px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;

  --amber:       #f59e0b;
  --amber-light: #fef3c7;
  --green:       #10b981;
  --green-light: #d1fae5;
  --red:         #ef4444;
  --red-light:   #fee2e2;

  --topbar-h:   52px;
  --container:  960px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", "Roboto Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary:        #18b0b6;
    --primary-hover:  #0d7377;
    --primary-light:  #0b2e30;
    --primary-mid:    #103e40;

    --bg:             #0e1822;
    --surface:        #162030;
    --surface-2:      #1b2840;

    --text:           #dde8f0;
    --text-muted:     #7d92a8;
    --text-subtle:    #4e6070;

    --border:         #243040;

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.25);
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.30);
    --shadow:    0 4px 14px rgba(0,0,0,0.35);
    --shadow-lg: 0 8px 28px rgba(0,0,0,0.42);

    --amber-light: #3a2600;
    --green-light: #0c2e1e;
    --red-light:   #2e0d0d;
  }
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

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

/* Alpine: kein FOUC */
[x-cloak] { display: none !important; }

/* --- Topbar --- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
  z-index: 100;
}

.topbar__logo {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
}

.topbar__spacer { flex: 1; }

.topbar__user {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.topbar__logout {
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background 0.14s, color 0.14s;
}
.topbar__logout:hover {
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
}

/* --- Haupt-Container --- */
.main {
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(var(--topbar-h) + 1.5rem) 1.5rem 4.5rem;
}

/* --- Karten-Basis --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 1.5rem;
}

/* --- Live-Call-Banner --- */
.call-banner {
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.call-banner__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
}

/* Pulsierender Punkt */
.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  animation: pulse-anim 1.5s ease-in-out infinite;
}

@keyframes pulse-anim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(0.82); }
}

.call-banner__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--red);
}

.call-banner__number {
  margin-left: auto;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.call-banner__name {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.call-banner__meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.875rem;
}

.call-banner__contact {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* Chips: offene Vorgänge */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-mid);
}

/* --- Post-Call-Karte --- */
.postcall-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.125rem;
}

.postcall-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.postcall-meta {
  margin-left: auto;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Outcome-Buttons (2×3 Raster) */
.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.125rem;
}

@media (max-width: 560px) {
  .outcome-grid { grid-template-columns: repeat(2, 1fr); }
}

.outcome-btn {
  padding: 0.5rem 0.625rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 0.8125rem;
  font-family: var(--font);
  cursor: pointer;
  transition: border-color 0.14s, background 0.14s, color 0.14s;
  text-align: center;
  line-height: 1.3;
}

.outcome-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.outcome-btn--selected {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

/* Kalender-Block */
.calendar-block {
  margin-top: 0.625rem;
  padding: 0.875rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.calendar-block .form-group {
  margin-bottom: 0;
  flex: 1;
  min-width: 140px;
}

/* Erfolgs-Meldung */
.submit-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  font-size: 1.125rem;
  color: var(--green);
  font-weight: 700;
}

/* --- Formular-Elemente --- */
.form-group {
  margin-bottom: 0.875rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.875rem;
  transition: border-color 0.14s, box-shadow 0.14s;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(13,115,119,0.13);
}

.form-textarea {
  resize: vertical;
  min-height: 68px;
}

/* Select-Pfeil */
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%2358697a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text);
}

.form-check input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 1.125rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s, opacity 0.14s;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn--primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn--ghost:hover {
  background: var(--bg);
  color: var(--text);
}

.btn-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.625rem;
  margin-top: 1rem;
}

/* --- Jetzt-Sektion (Next Best Action) --- */
.now-section {
  margin-bottom: 1.5rem;
}

.section-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.now-card {
  background: var(--surface);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 1.125rem 1.375rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.now-card__icon {
  font-size: 1.375rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.now-card__body { flex: 1; min-width: 0; }

.now-card__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.now-card__title a { color: inherit; }

.now-card__sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.now-card__fb {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-subtle);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: color 0.14s, background 0.14s;
  line-height: 1;
  margin-top: 0.125rem;
}
.now-card__fb:hover {
  color: var(--amber);
  background: var(--amber-light);
}

/* --- Aktivitäts-Stream --- */
.stream {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stream-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.stream-group__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.125rem;
  cursor: pointer;
  user-select: none;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.stream-group__header:hover { background: var(--primary-light); }

.chevron {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform 0.2s;
  display: inline-block;
  width: 0.875rem;
  text-align: center;
}
.chevron--open { transform: rotate(90deg); }

.stream-group__title {
  flex: 1;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.stream-group__count {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

/* --- Aktivitäts-Item --- */
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.8rem 1.125rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: var(--surface-2); }

.activity-item__icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  width: 1.375rem;
  text-align: center;
}

.activity-item__body { flex: 1; min-width: 0; }

.activity-item__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.1rem;
}
.activity-item__title a { color: inherit; }

.activity-item__sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-item__time {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  margin-top: 0.2rem;
}

.activity-item__fb {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--text-subtle);
  padding: 0.2rem 0.3rem;
  border-radius: var(--radius-sm);
  transition: color 0.14s, background 0.14s;
  line-height: 1;
  margin-top: 0.15rem;
}
.activity-item__fb:hover {
  color: var(--amber);
  background: var(--amber-light);
}

/* "Mehr anzeigen"-Button */
.more-btn {
  display: block;
  width: 100%;
  padding: 0.6rem;
  font-size: 0.8125rem;
  color: var(--primary);
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.12s;
  text-align: center;
}
.more-btn:hover { background: var(--primary-light); }

/* Leer-Zustand */
.empty-state {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Footer-Leiste --- */
.footer-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  z-index: 90;
}
.footer-bar a { color: var(--primary); }

/* --- Feedback-Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  width: 100%;
  max-width: 440px;
}

.modal__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.feedback-success {
  text-align: center;
  padding: 1rem;
  color: var(--green);
  font-weight: 700;
  font-size: 1rem;
}

/* --- Login-Seite --- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--bg);
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
}

.login-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.04em;
  margin-bottom: 0.25rem;
}

.login-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--text-subtle);
  font-size: 0.8125rem;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.625rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s;
}
.google-btn:hover {
  background: var(--bg);
  border-color: var(--text-muted);
  text-decoration: none;
}

.message-box {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--green-light);
  color: var(--green);
  font-size: 0.875rem;
  border: 1px solid var(--green);
  margin-bottom: 1.25rem;
}

/* --- Feedback-Listenseite --- */
.page-header {
  margin-bottom: 1.5rem;
}

.page-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.page-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feedback-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.feedback-item__row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.375rem;
}

.feedback-item__kind {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.badge--open { background: var(--amber-light); color: var(--amber); }
.badge--done { background: var(--green-light); color: var(--green); }

.feedback-item__meta {
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-bottom: 0.375rem;
}

.feedback-item__message {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Item-Aktionen (Anrufen / Ergebnis / ERPNext) ── */
.item-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.btn--sm {
  padding: 4px 10px;
  font-size: 0.8rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.activity-item__title--link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted var(--border, #ccc);
}
.activity-item__title--link:hover {
  color: var(--primary, #0d7377);
}

/* ── Topbar-Navigation ── */
.topbar__nav { display: flex; gap: 16px; margin-left: 24px; }
.topbar__nav a { color: inherit; text-decoration: none; font-size: 0.9rem; opacity: 0.75; }
.topbar__nav a:hover { opacity: 1; color: var(--primary, #0d7377); }

/* ── Regeln-Seite ── */
.page { max-width: 720px; margin: 24px auto; padding: 0 16px; }
.page-intro { opacity: 0.75; font-size: 0.9rem; }
.rule-form textarea { width: 100%; padding: 10px; border-radius: 8px;
  border: 1px solid var(--border, #ccc); background: var(--card-bg, #fff); color: inherit; }
.rule-form__row { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.rule-form select { padding: 8px; border-radius: 8px; border: 1px solid var(--border, #ccc);
  background: var(--card-bg, #fff); color: inherit; }
.rule-list { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.rule-item { display: flex; gap: 12px; align-items: center; padding: 12px;
  border-radius: 10px; background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e2e2e2); }
.rule-item--inactive { opacity: 0.5; }
.rule-item__text { flex: 1; font-size: 0.92rem; }
.badge { font-size: 0.72rem; padding: 2px 8px; border-radius: 99px;
  background: var(--primary, #0d7377); color: #fff; text-transform: uppercase; }
.hint-card { margin-top: 16px; padding: 12px; border-radius: 10px;
  background: rgba(13,115,119,0.08); border: 1px solid rgba(13,115,119,0.25);
  font-size: 0.9rem; }
.hint-card a { color: var(--primary, #0d7377); font-weight: 600; }
.empty { opacity: 0.6; }

/* ── Auto-Modus ── */
.automode-btn { margin-left: 12px; }
.automode-info { font-size: 0.8rem; opacity: 0.7; margin-left: 8px; }

/* ── Toolbar (Suche, Filter-Chips, Done-Toggle) ── */
.toolbar {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 0.625rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.toolbar__search {
  position: relative;
  flex: 1;
  min-width: 160px;
  display: flex;
  align-items: center;
}

.toolbar__search-input {
  padding-right: 1.75rem;
}

.toolbar__clear {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.125rem;
  line-height: 1;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.1rem 0.25rem;
}
.toolbar__clear:hover { color: var(--text); text-decoration: none; }

/* ── Filter-Chips ── */
.filter-chips {
  display: flex;
  gap: 0.25rem;
}

.filter-chip {
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: var(--font);
  padding: 0.2rem 0.625rem;
  border-radius: 999px;
  transition: background 0.14s, border-color 0.14s, color 0.14s;
  line-height: 1.4;
}
.filter-chip--active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Erledigte Items ── */
.activity-item--done {
  opacity: 0.42;
}
.activity-item--done .activity-item__title,
.activity-item--done .activity-item__title a {
  text-decoration: line-through;
}

/* ── Triage-Buttons (Icon-Buttons) ── */
.triage-btns {
  display: flex;
  align-items: flex-start;
  gap: 0.05rem;
  flex-shrink: 0;
  padding-top: 0.1rem;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--text-subtle);
  padding: 0.2rem 0.3rem;
  border-radius: var(--radius-sm);
  transition: color 0.14s, background 0.14s;
  line-height: 1;
  white-space: nowrap;
  font-family: var(--font);
}
.icon-btn:hover {
  color: var(--primary);
  background: var(--primary-light);
}
/* Feedback-Button behält Amber-Farbe */
.icon-btn.activity-item__fb:hover {
  color: var(--amber);
  background: var(--amber-light);
}

/* ── Gruppen-Aktion "Alle abhaken" ── */
.group-checkall {
  font-size: 0.75rem;
  padding: 0.1rem 0.5rem;
  margin-left: 0.25rem;
}

/* ── Undo-Leiste (fixed, über Footer) ── */
.undo-bar {
  position: fixed;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--surface);
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  z-index: 150;
  white-space: nowrap;
}
.undo-bar .btn--ghost {
  color: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.2);
  padding: 0.15rem 0.5rem;
  font-size: 0.8125rem;
  background: transparent;
}
.undo-bar .btn--ghost:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
