Beispiel für fortgeschrittenes Event-Handling