#fp-einstellungen, #fp-editor-hinweis, #fp-verlauf-oeffnen, #fp-einreichen {
  min-width: 0;
  overflow-wrap: anywhere;
}
#fp-einstellungen [hidden], #fp-editor-hinweis[hidden], #fp-einreichen[hidden],
#fp-verlauf-oeffnen[hidden], #fp-vorschau-zurueck[hidden] { display: none !important; }
#fp-einstellungen label { display: flex; gap: 10px; align-items: flex-start; }
#fp-einstellungen input[type="checkbox"] { flex-shrink: 0; margin-top: 4px; }
#fp-einstellungen label span { min-width: 0; }
#fp-einstellungen button, #fp-einreichen, #fp-verlauf-oeffnen, #fp-vorschau-zurueck {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
#fp-dialog, #fp-entscheidung-dialog {
  width: min(860px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  box-sizing: border-box;
  min-width: 0;
  margin: auto;
  padding: 24px;
  overflow: auto;
  overflow-wrap: anywhere;
}
#fp-pdf-dialog {
  width: min(1100px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  box-sizing: border-box;
  min-width: 0;
  margin: auto;
  padding: 20px;
  overflow: auto;
  overflow-wrap: anywhere;
}
#fp-pdf-dialog [hidden] { display: none !important; }
#fp-pdf-dialog .fp-kopf { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; min-width:0; margin-bottom:12px; }
#fp-pdf-dialog button, #fp-pdf-dialog a { min-width:0; max-width:100%; white-space:normal; overflow-wrap:anywhere; }
#fp-pdf-fallback { margin-bottom:12px; }
#fp-pdf-rahmen { display:block; width:100%; min-width:0; height:min(68dvh,720px); border:1px solid var(--linie); border-radius:8px; margin-bottom:12px; background:#fff; }
#fp-entscheidung-dialog { width: min(620px, calc(100vw - 24px)); }
#fp-dialog [hidden], #fp-entscheidung-dialog [hidden] { display: none !important; }
#fp-dialog .fp-kopf, #fp-entscheidung-dialog .fp-aktionen, #fp-dialog .fp-aktionen {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
#fp-dialog .fp-kopf { justify-content: space-between; margin-bottom: 16px; }
#fp-dialog button, #fp-entscheidung-dialog button, #fp-dialog a {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
#fp-dialog .fp-eintrag { border: 1px solid var(--linie); border-radius: 12px; padding: 16px; margin-bottom: 12px; min-width: 0; }
#fp-dialog .fp-stand { overflow-wrap: anywhere; }
#fp-entscheidung-dialog textarea { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; min-height: 100px; }
#fp-dialog .fp-ergebnis { border: 1px solid var(--linie); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
#fp-editor-hinweis { border-left: 3px solid var(--akzent, #1b8073); }
.fp-status { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 390px) {
  #fp-dialog, #fp-entscheidung-dialog, #fp-pdf-dialog { padding: 16px; }
  #fp-dialog .fp-aktionen { align-items: stretch; }
  #fp-dialog .fp-aktionen button { flex: 1 1 120px; }
}
