/* Jour-Fixe-Vorschlag: Kopfleisten-Button mit Hervorhebung, Dialog je Kunde, Einstellungszeile */

/* Button in der Kopfleiste (vor „Verlauf“) */
.page-header .jour-fixe-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #d7d3cf;
  font-size: .82rem;
  font-weight: 500;
}
.page-header .jour-fixe-button[hidden] { display: none; }
.page-header .jour-fixe-button:hover { background: #2e2c2a; color: #fff; }
.jour-fixe-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand, #e9763e);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.jour-fixe-badge[hidden] { display: none; }

/* Am Vortag und am Tag: sanftes Pulsieren, solange berichtenswerte Kunden offen sind */
.page-header .jour-fixe-button.is-pulsing {
  color: #fff;
  animation: jour-fixe-pulse 2.6s ease-in-out infinite;
}
@keyframes jour-fixe-pulse {
  0%, 100% { background-color: transparent; box-shadow: 0 0 0 0 rgba(233, 118, 62, 0); }
  50% { background-color: rgba(233, 118, 62, .28); box-shadow: 0 0 0 4px rgba(233, 118, 62, .16); }
}
/* Ohne Bewegung: statische Akzentfarbe */
@media (prefers-reduced-motion: reduce) {
  .page-header .jour-fixe-button.is-pulsing {
    animation: none;
    background-color: rgba(233, 118, 62, .28);
    box-shadow: inset 0 0 0 1px var(--brand, #e9763e);
  }
}

/* Dialog */
.jour-fixe-dialog {
  width: min(720px, calc(100% - 2rem));
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px 24px 20px;
  border: 1px solid var(--line, #ece8e4);
  border-radius: 16px;
  color: var(--ink, #1c1b1a);
  box-shadow: 0 24px 60px rgba(28, 27, 26, .2);
}
.jour-fixe-dialog::backdrop { background: rgba(28, 27, 26, .35); }
.jf-portal-link { display: inline-block; margin: 2px 0 4px; color: var(--brand-dark, #9c421b); font-size: .82rem; font-weight: 500; }
.jf-meta { margin: 4px 0 8px; }
.jf-meta p { margin: 2px 0; }
.jf-date { font-size: 1rem; font-weight: 600; }
.jf-source,
.jf-notice,
.jf-empty { color: var(--muted, #6b6560); font-size: .78rem; }
.jf-copy-all { margin: 4px 0 2px; min-height: 34px; font-size: .85rem; }
.jf-feedback:empty { display: none; }
.jf-feedback { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; background: #fbf4ee; font-size: .82rem; }
.jf-copy-fallback { width: 100%; min-height: 8rem; margin-top: 6px; font-size: .8rem; }

.jf-block {
  margin: 14px 0;
  padding: 12px 14px 10px;
  border: 1px solid var(--line, #ece8e4);
  border-radius: 12px;
}
.jf-block.is-done { background: #f6faf8; border-color: #cfe6da; }
.jf-block-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.jf-block-head h3 { margin: 0; font-size: .95rem; font-weight: 600; overflow-wrap: anywhere; }
.jf-chip {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 600;
  white-space: nowrap;
}
.jf-chip[hidden] { display: none; }
.jf-chip.is-worthy { background: var(--soft, #fff2e9); color: var(--brand-dark, #9c421b); }
.jf-chip.is-quiet { background: var(--hover, #f3efeb); color: var(--muted, #6b6560); }
.jf-chip.is-done { background: #e5f3ec; color: var(--done, #2f7d5b); }
.jf-origin { margin: 4px 0 6px; color: var(--muted, #6b6560); font-size: .75rem; }
.jf-text {
  width: 100%;
  min-height: 7rem;
  background: #faf8f6;
  color: var(--ink, #1c1b1a);
  font: inherit;
  font-size: .88rem;
  line-height: 1.45;
  resize: vertical;
}
.jf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.jf-actions button { min-height: 32px; font-size: .8rem; }
.jf-saved { color: var(--muted, #6b6560); font-size: .75rem; }
.jf-more { margin: 8px 0 0; padding: 0; border: 0; }
.jf-more > summary { color: var(--muted, #6b6560); font-size: .78rem; font-weight: 500; }
.jf-more ul { margin: 6px 0 0; padding: 0; list-style: none; }
.jf-more li { display: flex; align-items: flex-start; gap: 8px; margin: 3px 0; color: #4a4541; font-size: .8rem; }
.jf-more li span { overflow-wrap: anywhere; }
.jf-take { flex: 0 0 auto; width: 24px; min-height: 24px; height: 24px; padding: 0; font-size: .85rem; line-height: 1; }
.jf-add { margin-top: 12px; padding: 0; border: 0; }
.jf-add > summary { color: var(--brand-dark, #9c421b); font-size: .82rem; font-weight: 500; }
.jf-add select { margin: 8px 8px 0 0; max-width: 100%; }

/* Einstellungen › Arbeitsweise › Jour Fixe */
.jf-settings-form { display: grid; gap: 10px; padding: 4px 20px 16px; }
.jf-settings-form label { display: grid; gap: 4px; color: var(--muted, #6b6560); font-size: .78rem; font-weight: 500; }
.jf-settings-form button { justify-self: start; }
.jf-settings-note { margin: 0; color: var(--muted, #6b6560); font-size: .75rem; line-height: 1.45; }
.jf-settings-feedback:empty { display: none; }
.jf-settings-feedback { margin: 0; font-size: .8rem; color: var(--muted, #6b6560); }

@media (max-width: 520px) {
  .jour-fixe-dialog { padding: 18px 16px 16px; }
  .page-header .jour-fixe-button .jour-fixe-label { display: none; }
}

/* Beta-Kennzeichnung am Button (Portal ist eine Beta-Funktion) */
.jour-fixe-beta {
  padding: 1px 6px;
  border: 1px solid var(--brand, #e9763e);
  border-radius: 999px;
  color: var(--brand, #e9763e);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.4;
  text-transform: uppercase;
}