/* Cockpit · Feedback / Wunschknopf-Triage */
.fb-wrap { padding: 4px 0 40px; }
.fb-empty { padding: 40px; text-align: center; color: var(--muted, #64748b); }

.fb-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 16px; }
.fb-search {
  padding: 8px 12px; border: 1px solid var(--border, #e2e8f0); border-radius: 9px;
  font-size: 14px; min-width: 220px; flex: 0 0 auto;
}
.fb-seg { display: inline-flex; border: 1px solid var(--border, #e2e8f0); border-radius: 9px; overflow: hidden; }
.fb-seg button {
  padding: 7px 12px; border: none; background: #fff; font-size: 13px; cursor: pointer;
  border-right: 1px solid var(--border, #e2e8f0); color: var(--text, #1e293b);
}
.fb-seg button:last-child { border-right: none; }
.fb-seg button.on { background: var(--brand, #0099CC); color: #fff; }

.fb-card { border: 1px solid var(--border, #e2e8f0); border-radius: 11px; margin-bottom: 8px; background: #fff; overflow: hidden; }
.fb-card.open { box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.fb-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.fb-row:hover { background: #f8fafc; }
.fb-kat { font-size: 17px; flex: 0 0 auto; }
.fb-st {
  flex: 0 0 auto; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.st-neu       { background: #dbeafe; color: #1d4ed8; }
.st-gesichtet { background: #fef3c7; color: #92400e; }
.st-geplant   { background: #e0e7ff; color: #4338ca; }
.st-umgesetzt { background: #dcfce7; color: #166534; }
.st-abgelehnt { background: #f1f5f9; color: #64748b; }
.fb-text { flex: 1 1 auto; font-size: 14px; color: var(--text, #1e293b); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-fotoc { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--muted, #64748b); }
.fb-fotoc .icon { width: 14px; height: 14px; }
.fb-meta { flex: 0 0 auto; font-size: 12px; color: var(--muted, #64748b); max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-date { flex: 0 0 auto; font-size: 12px; color: var(--muted, #94a3b8); font-variant-numeric: tabular-nums; }
.fb-chev { width: 16px; height: 16px; color: #94a3b8; transition: transform 0.15s; flex: 0 0 auto; }
.fb-card.open .fb-chev { transform: rotate(180deg); }

/* Triage-Notiz immer sichtbar, wenn vorhanden (auch zugeklappt) — analog ZVL/Mahnliste */
.fb-note-inline {
  display: flex; align-items: flex-start; gap: 6px;
  padding: 0 14px 11px 44px; margin-top: -4px;
  font-size: 12.5px; line-height: 1.35; color: var(--muted, #64748b);
}
.fb-note-inline .icon { width: 13px; height: 13px; flex: 0 0 auto; margin-top: 2px; }
/* Delegieren an Kadersitzung — Platzhalter, absichtlich deaktiviert (Funktion kommt später) */
.fb-delegate[disabled] { opacity: .5; cursor: not-allowed; }

.fb-detail { padding: 4px 16px 16px; border-top: 1px solid #f1f5f9; }
.fb-full { font-size: 14px; line-height: 1.55; color: var(--text, #1e293b); white-space: pre-wrap; margin: 12px 0; }
.fb-fotos { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.fb-fotos img { width: 90px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border, #e2e8f0); }
.fb-foto-hint { font-size: 12px; color: var(--muted, #94a3b8); }

.fb-triage { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.fb-triage label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted, #64748b); }
.fb-triage select, .fb-triage textarea {
  padding: 7px 10px; border: 1px solid var(--border, #e2e8f0); border-radius: 8px; font-size: 13px; font-family: inherit;
}
.fb-triage .fb-notiz { flex: 1 1 280px; }
.fb-triage textarea { resize: vertical; }
.fb-actions { display: flex; gap: 8px; }
.fb-tr-by { margin-top: 10px; font-size: 11px; color: var(--muted, #94a3b8); }
.fb-chk { display: flex; flex-direction: row; align-items: center; gap: 7px; font-size: 13px; color: var(--text, #1e293b); cursor: pointer; flex: 1 1 100%; }
.fb-chk input { width: 15px; height: 15px; cursor: pointer; }

.btn.danger { color: #b91c1c; }

.fb-form { border: 1px solid var(--brand, #0099CC); border-radius: 11px; padding: 16px; margin-bottom: 16px; background: #f8fdff; }
.fb-form-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.fb-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted, #64748b); margin-bottom: 12px; }
.fb-form select, .fb-form input, .fb-form textarea {
  padding: 8px 11px; border: 1px solid var(--border, #e2e8f0); border-radius: 8px; font-size: 14px; font-family: inherit;
}
.fb-form textarea { resize: vertical; }
.fb-x { background: none; border: none; font-size: 16px; cursor: pointer; color: var(--muted, #64748b); }

/* Header-Icon-Badge «neu» */
.fb-icon-btn { position: relative; }
.fb-badge {
  position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 9px; background: #e11d48; color: #fff; font-size: 10px; font-weight: 700;
  line-height: 16px; text-align: center; box-shadow: 0 0 0 2px var(--surface, #fff);
}

/* ===== Wunsch-FAB (wie Handy-App) ===== */
#wunsch-fab-root { position: fixed; inset: 0; pointer-events: none; z-index: 9000; }
#wunsch-fab-root > * { pointer-events: auto; }
.wkc-fab {
  position: fixed; right: 22px; bottom: 22px; width: 54px; height: 54px; border-radius: 50%;
  background: var(--brand, #0099CC); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22); transition: transform 0.1s;
}
.wkc-fab:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.26); }
.wkc-fab:active { transform: scale(0.95); }
.wkc-backdrop { position: fixed; inset: 0; background: rgba(15,30,40,0.42); z-index: 9100; }
.wkc-sheet {
  position: fixed; right: 22px; bottom: 88px; z-index: 9200; width: 420px; max-width: calc(100vw - 32px);
  background: #fff; border-radius: 14px; padding: 16px 18px 18px; box-shadow: 0 12px 40px rgba(0,0,0,0.28);
  animation: wkc-in 0.16s ease-out;
}
@keyframes wkc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.wkc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.wkc-head b { font-size: 15px; color: var(--text, #1e293b); }
.wkc-close { background: none; border: none; font-size: 17px; color: var(--muted, #64748b); cursor: pointer; }
.wkc-l { display: block; font-size: 12px; color: var(--muted, #64748b); margin-bottom: 12px; }
.wkc-l textarea, .wkc-l select {
  width: 100%; box-sizing: border-box; margin-top: 5px; padding: 9px 11px;
  border: 1px solid var(--border, #e2e8f0); border-radius: 9px; font-size: 14px; font-family: inherit; color: var(--text, #1e293b);
}
.wkc-l textarea { resize: vertical; line-height: 1.45; }
.wkc-fotos { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 14px; }
.wkc-thumb { position: relative; width: 58px; height: 58px; border-radius: 9px; overflow: hidden; border: 1px solid var(--border, #e2e8f0); }
.wkc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wkc-thumb-x { position: absolute; top: 2px; right: 2px; width: 19px; height: 19px; border-radius: 50%; background: rgba(0,0,0,0.55); color: #fff; border: none; font-size: 10px; cursor: pointer; }
.wkc-add { width: 58px; height: 58px; border-radius: 9px; border: 1px dashed var(--border, #cbd5e1); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted, #64748b); cursor: pointer; }
.wkc-add span { font-size: 20px; color: var(--brand, #0099CC); line-height: 1; }
.wkc-add small { font-size: 10px; }
.wkc-msg { font-size: 13px; color: #b91c1c; margin-bottom: 10px; }
.wkc-submit { width: 100%; padding: 11px; border: none; border-radius: 10px; background: var(--brand, #0099CC); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.wkc-submit:disabled { opacity: 0.7; }
.wkc-done { text-align: center; padding: 22px 8px; font-size: 15px; color: #166534; line-height: 1.5; }
.wkc-spin { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.5); border-top-color: #fff; border-radius: 50%; display: inline-block; animation: wkc-rot 0.7s linear infinite; }
@keyframes wkc-rot { to { transform: rotate(360deg); } }
