... except Exception as e:
            err_file.write_text(f"READ_ERROR: {e}\n", encoding="utf-8")
            continue

        prompt = PROMPT_FIXED + "\n\nTEXT ZUR ANALYSE:\n" + text

        print(f"Analysiere: {rel}")
        last_err = None

        for attempt in range(1, MAX_RETRIES + 1):
            try:
                result = call_ollama(prompt)
                out_file.write_text(result, encoding=...