# Ersetze alle problematischen Zeichen, um die PDF-Erstellung zu ermöglichen
def sanitize_full_text(text):
    replacements = {
        "–": "-", "“": "\"", "”": "\"", "’": "'", " ": " ", "…": "...",
        "•": "-", "„": "\"", "“": "\"", "”": "\"", "ä": "ae", "ö": "oe", "ü": "ue", "ß": "ss"
    }
    for orig, repl in replacements.items():
        text = text.replace(orig, repl)
    return te...