Is it possible to code a interrupt for the ATMega328P on PD3 and PD4 and on PD5
Yes, read about external interrupts (chapter 13) in the atmega328p datasheet, specifically pin change interrupts.
Note the pins are grouped into three groups for interrupts:
PCIE0 for port B, PB0 ... PB7 -> PCINT0 ... PCINT7
PCIE1 for port C, PC0 .. PC6 -> PCINT8 ... PCINT14
PCIE2 for port D, PD0 ... PD7 -> PCINT16 ... PCINT23
Since you are using pins in port D, you need to write an interrupt handler for PCIE2.
Then set bit PCIE2 in register PCICR
Then set bits PCINT19, PCINT20, PCINT21 in register PCMSK2.
Now you should get an interrupt if any of PD3/4/5 pins change state. To determine which pin changed, you have to store the initial state of the pins you want to monitor, then read the pins when the PCINT2 interrupt fires, then compare this state against the previous state.
As soon the pin changes to HIGH i need to fire a procedure. In total 3 of them.
The pin change mechanism will fire on any change of pin state, so you need to handle this check in code. It may be more convenient to enable the internal pullup resistors, then connect the external encoder and button pins to ground - no need for other external resistors.
Does anybody got example code? As simple as possible ? How to init them. How to formulate the procedures ?
Start by creating a table with all the pins on the port and all possible states of the pins you want to monitor. The values and states from this table is the logic that you should program in the interrupt code.