{"id":21,"date":"2023-12-26T13:57:58","date_gmt":"2023-12-26T12:57:58","guid":{"rendered":"https:\/\/stichtingdiva.nl\/?page_id=21"},"modified":"2025-02-18T10:49:38","modified_gmt":"2025-02-18T09:49:38","slug":"reserveren","status":"publish","type":"page","link":"https:\/\/hanninkhof.de\/?page_id=21&lang=nl","title":{"rendered":"Reserveren"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"21\" class=\"elementor elementor-21\">\n\t\t\t\t<div class=\"elementor-element elementor-element-75326578 e-flex e-con-boxed e-con e-parent\" data-id=\"75326578\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-6eef8e96 elementor-widget elementor-widget-text-editor\" data-id=\"6eef8e96\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>\n    <link href=\"https:\/\/cdn.jsdelivr.net\/npm\/bootstrap@5.2.3\/dist\/css\/bootstrap.min.css\" rel=\"stylesheet\"\n          integrity=\"sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65\" crossorigin=\"anonymous\">\n    <link rel=\"stylesheet\" href=\"css\/style.css\">\n<p>    <input type=\"hidden\" id=\"current_lang\" name=\"current_lang\" value=\"de\" ><\/p>\n<div class=\"container custom-vertical-lines mt-3 p-2\" style=\"max-width: 700px; background-color: #f1ffec; border-width: 2px;\">\n<form action=\"\" method=\"POST\" id=\"booking-form\">\n            <input type=\"hidden\" name=\"action\" value=\"booking_form_handler\"><br \/>\n            <input type=\"hidden\" name=\"options\" id=\"options-json\"><\/p>\n<div class=\"mb-3\">\n<style>\n                    .success {\n                        color: green;\n                        padding: 10px;\n                        border: 1px solid green;\n                        background-color: #eaffea;\n                        margin-bottom: 15px;\n                    }<\/p>\n<p>                    .error {\n                        color: red;\n                        padding: 10px;\n                        border: 1px solid red;\n                        background-color: #ffeaea;\n                        margin-bottom: 15px;\n                    }\n                <\/style>\n<h1>\n                    Ferienwohnung                <\/h1>\n<p>                <select class=\"form-select\" aria-label=\"\" id=\"home\" name=\"home\" onchange=\"changePrice(event); changeOptions(event);\" required><option value=\"\" selected disabled><br \/>\n                        Wahlen                    <\/option><option value=\"Rotes Moor\"\n                            data-animals-allowed=\"0\"\n                            data-child-bed-allowed=\"0\"\n                            data-child-chair-allowed=\"0\"\n                            data-persons=\"5\"\n                            data-price=\"69\"\n                            data-options='[{&quot;name_nl&quot;:&quot;Een Hond&quot;,&quot;name_de&quot;:&quot;Ein Hund&quot;,&quot;price&quot;:5.5,&quot;type&quot;:&quot;per_night&quot;},{&quot;name_nl&quot;:&quot;Kinderbed&quot;,&quot;name_de&quot;:&quot;Kinderbett&quot;,&quot;price&quot;:5,&quot;type&quot;:&quot;whole_stay&quot;},{&quot;name_nl&quot;:&quot;Kinderstoel&quot;,&quot;name_de&quot;:&quot;Kinderstuhl&quot;,&quot;price&quot;:5,&quot;type&quot;:&quot;whole_stay&quot;}]'><br \/>\n                            Rotes Moor                        <\/option><option value=\"Feldberg\"\n                            data-animals-allowed=\"0\"\n                            data-child-bed-allowed=\"0\"\n                            data-child-chair-allowed=\"0\"\n                            data-persons=\"6\"\n                            data-price=\"79\"\n                            data-options='[{&quot;name_nl&quot;:&quot;Kinderbed&quot;,&quot;name_de&quot;:&quot;Kinderbett&quot;,&quot;price&quot;:5,&quot;type&quot;:&quot;whole_stay&quot;},{&quot;name_nl&quot;:&quot;Kinderstoel&quot;,&quot;name_de&quot;:&quot;Kinderstuhl&quot;,&quot;price&quot;:5,&quot;type&quot;:&quot;whole_stay&quot;}]'><br \/>\n                            Feldberg                        <\/option><option value=\"Pferdskopf\"\n                            data-animals-allowed=\"0\"\n                            data-child-bed-allowed=\"0\"\n                            data-child-chair-allowed=\"0\"\n                            data-persons=\"6\"\n                            data-price=\"59\"\n                            data-options='[{&quot;name_nl&quot;:&quot;Kinderbed&quot;,&quot;name_de&quot;:&quot;Kinderbett&quot;,&quot;price&quot;:5,&quot;type&quot;:&quot;whole_stay&quot;},{&quot;name_nl&quot;:&quot;Kinderstoel&quot;,&quot;name_de&quot;:&quot;Kinderstuhl&quot;,&quot;price&quot;:5,&quot;type&quot;:&quot;whole_stay&quot;}]'><br \/>\n                            Pferdskopf                        <\/option><option value=\"Simmelsberg\"\n                            data-animals-allowed=\"0\"\n                            data-child-bed-allowed=\"0\"\n                            data-child-chair-allowed=\"0\"\n                            data-persons=\"4\"\n                            data-price=\"45\"\n                            data-options='[{&quot;name_nl&quot;:&quot;Hond&quot;,&quot;name_de&quot;:&quot;Hund&quot;,&quot;price&quot;:5.5,&quot;type&quot;:&quot;per_night&quot;},{&quot;name_nl&quot;:&quot;Kinderbed&quot;,&quot;name_de&quot;:&quot;Kinderbett&quot;,&quot;price&quot;:5,&quot;type&quot;:&quot;whole_stay&quot;},{&quot;name_nl&quot;:&quot;Kinderstoel&quot;,&quot;name_de&quot;:&quot;Kinderstuhl&quot;,&quot;price&quot;:5,&quot;type&quot;:&quot;whole_stay&quot;}]'><br \/>\n                            Simmelsberg                        <\/option><\/select>\n            <\/div>\n<hr>\n<div class=\"month\">\n<ul>\n<div class=\"row\">\n<div class=\"col-sm\">\n                            <select id=\"month-select\" class=\"form-select\" name=\"month\"><option value=\"none\" selected><br \/>\n                                    Wahlen Sie einen Monat aus                                <\/option><script>\n                                    document.addEventListener('DOMContentLoaded', function() {\n                                        var option = (document.getElementById('month-select')).querySelector('option[value=\"none\"]');\n                                        if (option) {\n                                            option.selected = true;\n                                        }\n                                    });\n                                <\/script><option value=\"1\"><br \/>\n                                    Januar                                <\/option><option value=\"2\"><br \/>\n                                    Februar                                <\/option><option value=\"3\"><br \/>\n                                    Marsch                                <\/option><option value=\"4\"><br \/>\n                                    April                                <\/option><option value=\"5\"><br \/>\n                                    Mai                                <\/option><option value=\"6\"><br \/>\n                                    Juni                                <\/option><option value=\"7\"><br \/>\n                                    Juli                                <\/option><option value=\"8\"><br \/>\n                                    August                                <\/option><option value=\"9\"><br \/>\n                                    September                                <\/option><option value=\"10\"><br \/>\n                                    Oktober                                <\/option><option value=\"11\"><br \/>\n                                    November                                <\/option><option value=\"12\"><br \/>\n                                    Dezember                                <\/option><\/select><\/p><\/div>\n<div class=\"col-sm\">\n                            <select id=\"year-select\" class=\"form-select\" name=\"year\"><br \/>\n                            <\/select>\n                        <\/div>\n<\/p><\/div>\n<p>                    <!--\n\t\t\t  \n\n<li id=\"month-year\" name=\"month-year\">\n\t\t\t\t  November<br \/>\n\t\t\t\t  <span style=\"font-size:18px\" id=\"year\">2025<\/span>\n\t\t\t  <\/li>\n\n\n\t\t\t  -->\n                <\/ul>\n<\/p><\/div>\n<ul class=\"weekdays\">\n<li>\n                    Montag                <\/li>\n<li>\n                    Dienstag                <\/li>\n<li>\n                    Mittwoch                <\/li>\n<li>\n                    Donnerstag                <\/li>\n<li>\n                    Freitag                <\/li>\n<li>\n                    Samstag                <\/li>\n<li>\n                    Sonntag                <\/li>\n<\/ul>\n<ul class=\"days\" id=\"days_to_rent\" name=\"days_to_rent\" style=\"padding-left: 2px;\">\n            <\/ul>\n<p>            <input type=\"hidden\" name=\"days_to_rent\" id=\"selected_days\" value=\"\"><br \/>\n            <input type=\"hidden\" name=\"start_date\" id=\"start_date\" value=\"\"><br \/>\n            <input type=\"hidden\" name=\"end_date\" id=\"end_date\" value=\"\"><\/p>\n<p>\n                Gebucht:                <span class=\"badge text-bg-danger p-2 mr-2\">&nbsp;<\/span><\/p>\n<p id=\"extra_cleaning_cost_popup\" style=\"display: none\">\n                Zus\u00e4tzliche Reinigungskosten: \u20ac  0,-            <\/p>\n<hr>\n<div class=\"row\">\n<h1>\n                    Personalia:                <\/h1>\n<div class=\"col\">\n<div class=\"mb-3\">\n                        <label for=\"first_name\" class=\"form-label\"><br \/>\n                            Vorname                        <\/label><br \/>\n                        <input type=\"text\" class=\"form-control bg-white\" id=\"first_name\" name=\"first_name\" aria-describedby=\"\"\n                               placeholder=\"\" required>\n                    <\/div>\n<div class=\"mb-3\">\n                        <label for=\"last_name\" class=\"form-label\"><br \/>\n                            Nachname                        <\/label><br \/>\n                        <input type=\"text\" class=\"form-control bg-white\" id=\"last_name\" name=\"last_name\" required>\n                    <\/div>\n<\/p><\/div>\n<div class=\"col\">\n<div class=\"mb-3\">\n                        <label for=\"birthdate\" class=\"form-label\"><br \/>\n                            Geburtsdatum                        <\/label><br \/>\n                        <input type=\"date\" class=\"form-control bg-white\" id=\"birthdate\" name=\"birthdate\" aria-describedby=\"\" required>\n                    <\/div>\n<div class=\"mb-3\">\n                        <label for=\"nationality\" class=\"form-label\"><br \/>\n                            Nationalit\u00e4t                        <\/label><br \/>\n                        <select class=\"form-select bg-white\" aria-label=\"Default select example\" id=\"nationality\" name=\"nationality\"\n                                onchange=\"showHideIdFirst()\" required><option selected disabled><br \/>\n                                Wahlen                            <\/option><option value=\"NL\"><br \/>\n                                Niederlande                            <\/option><option value=\"GE\"><br \/>\n                                Deutschland                            <\/option><option value=\"RU\"><br \/>\n                                Russland                            <\/option><option value=\"BG\"><br \/>\n                                Bulgarien                            <\/option><option value=\"BE\"><br \/>\n                                Belgien                            <\/option><option value=\"RO\"><br \/>\n                                Rum\u00e4nien                            <\/option><option value=\"NO\"><br \/>\n                                Norwegen                            <\/option><option value=\"DK\"><br \/>\n                                D\u00e4nemark                            <\/option><option value=\"LU\"><br \/>\n                                Luxemburg                            <\/option><option value=\"SE\"><br \/>\n                                Schweden                            <\/option><option value=\"IT\"><br \/>\n                                Italien                            <\/option><option value=\"FR\"><br \/>\n                                Frankreich                            <\/option><\/select>\n                    <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"row\">\n<div class=\"col\">\n<div class=\"mb-3\">\n                        <label for=\"address\" class=\"form-label\"><br \/>\n                            Adresse                        <\/label><br \/>\n                        <input type=\"text\" class=\"form-control bg-white\" id=\"address\" name=\"address\" aria-describedby=\"\" required>\n                    <\/div>\n<\/p><\/div>\n<div class=\"col\">\n<div class=\"mb-3\">\n                        <label for=\"city\" class=\"form-label\"><br \/>\n                            Wohnort                        <\/label><br \/>\n                        <input type=\"text\" class=\"form-control bg-white\" id=\"city\" name=\"city\" aria-describedby=\"\" required>\n                    <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"row\">\n<div class=\"col\">\n<div class=\"mb-3\">\n                        <label for=\"zipcode\" class=\"form-label\"><br \/>\n                            PLZ                        <\/label><br \/>\n                        <input type=\"text\" class=\"form-control  bg-white\" id=\"zipcode\" name=\"zipcode\" aria-describedby=\"\" required>\n                    <\/div>\n<\/p><\/div>\n<div class=\"col\">\n<div class=\"mb-3\" style=\"display: none;\" id=\"id_number_first\">\n                        <label for=\"id_number_first\" class=\"form-label\"><br \/>\n                            ID\/Passnummer                        <\/label><br \/>\n                        <input type=\"text\" class=\"form-control bg-white\" id=\"id_number_first\" name=\"id_number_first\" aria-describedby=\"\">\n                    <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"row\">\n<div class=\"col\">\n<div class=\"mb-3\">\n                        <label for=\"country\" class=\"form-label\"><br \/>\n                            Land                        <\/label><br \/>\n                        <select class=\"form-select\" aria-label=\"Default select example\" id=\"country\"\n                                name=\"country\" required><option selected disabled><br \/>\n                                Wahlen                            <\/option><option value=\"Nederland\"><br \/>\n                                Niederlande                            <\/option><option value=\"Deutschland\"><br \/>\n                                Deutschland                            <\/option><option value=\"Rusland\"><br \/>\n                                Russland                            <\/option><option value=\"Bulgarije\"><br \/>\n                                Bulgarien                            <\/option><option value=\"Belgi\u00eb\"><br \/>\n                                Belgien                            <\/option><option value=\"Roemeni\u00eb\"><br \/>\n                                Rum\u00e4niennien                            <\/option><option value=\"Noorwegen\"><br \/>\n                                Norwegen                            <\/option><option value=\"Denemarken\"><br \/>\n                                D\u00e4nemark                            <\/option><option value=\"Luxemburg\"><br \/>\n                                Luxemburg                            <\/option><option value=\"Zweden\"><br \/>\n                                Schweden                            <\/option><option value=\"Itali?\"><br \/>\n                                Italien                            <\/option><option value=\"Frankrijk\"><br \/>\n                                Frankreich                            <\/option><\/select>\n                    <\/div>\n<\/p><\/div>\n<div class=\"col\">\n<div class=\"mb-3\">\n                        <label for=\"phone\" class=\"form-label\"><br \/>\n                            Telefonnummer                        <\/label><br \/>\n                        <input type=\"text\" class=\"form-control bg-white\" id=\"phone\" name=\"phone\" aria-describedby=\"\" required>\n                    <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"row\">\n<div class=\"col-6\">\n<div class=\"mb-3\">\n                        <label for=\"email\" class=\"form-label\"><br \/>\n                            E-Mail-Adresse                        <\/label><br \/>\n                        <input type=\"email\" class=\"form-control bg-white\" id=\"email\" name=\"email\" aria-describedby=\"\" required>\n                    <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"row\">\n<div class=\"col\">\n<h4>\n                        Optionen                    <\/h4>\n<div id=\"dynamic-options\"><\/div>\n<\/p><\/div>\n<div class=\"col\">\n<div class=\"mb-3\">\n                        <label for=\"comments\" class=\"form-label\"><br \/>\n                            Bemerkung                        <\/label><br \/>\n                        <textarea class=\"form-control bg-white\" aria-label=\"With textarea\" id=\"comments\" name=\"comments\"><\/textarea>\n                    <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<p>\n                Zus\u00e4tzliche Heizkosten ab: 1. Oktober bis 30. April  10,- \u20ac pro Nacht und Apartment.<br \/>\nTourismusbeitrag: 2,10 \u20ac p.P. pro Nacht ab 14 Jahren.<br \/>\nDie Preise sind ab 2 Personen pro Nacht.<br \/>\nZus\u00e4tzliche Personen 10,- \u20ac p.P. pro nacht.<br \/>\nKinder unter 3 Jahren Gratis, und ab 3 bis 14 Jahre berechnen wir 5,- \u20ac pro Nacht und Person.            <\/p>\n<hr>\n<h2>\n                Anzahl Personen            <\/h2>\n<div class=\"mb-3\">\n                <label for=\"amount_persons\" class=\"form-label\"><br \/>\n                    Anzahl Personen                <\/label><br \/>\n                <select class=\"form-select  bg-white\" aria-label=\"Default select example\" id=\"amount_persons\" name=\"amount_persons\"\n                        onchange=\"changeExtraPersons(event)\"><option selected disabled><br \/>\n                        Wahlen                    <\/option><option value=\"1\">1<\/option><option value=\"2\">2<\/option><option value=\"3\">3<\/option><option value=\"4\">4<\/option><option value=\"5\">5<\/option><option value=\"6\">6<\/option><\/select>\n            <\/div>\n<div class=\"mb-3\" style=\"display: none\" id=\"person_2\">\n<p>\n                    Person 2                <\/p>\n<div class=\"row\">\n<div class=\"col\">\n<div class=\"mb-3\">\n                            <label for=\"first_name\" class=\"form-label\"><br \/>\n                                Vorname                            <\/label><br \/>\n                            <input type=\"text\" class=\"form-control  bg-white\" id=\"name_first_second\" name=\"name_first_second\"\n                                   aria-describedby=\"\">\n                        <\/div>\n<\/p><\/div>\n<div class=\"col\">\n<div class=\"mb-3\">\n                            <label for=\"name_last_second\" class=\"form-label\"><br \/>\n                                Nachname                            <\/label><br \/>\n                            <input type=\"text\" class=\"form-control  bg-white\" id=\"name_last_second\" name=\"name_last_second\"\n                                   aria-describedby=\"\">\n                        <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"row\">\n<div class=\"col\">\n<div class=\"mb-3\">\n                            <label for=\"city_second\" class=\"form-label\"><br \/>\n                                Wohnort                            <\/label><br \/>\n                            <input type=\"text\" class=\"form-control  bg-white\" id=\"city_second\" name=\"city_second\" aria-describedby=\"\">\n                        <\/div>\n<\/p><\/div>\n<div class=\"col\">\n<div class=\"mb-3\">\n                            <label for=\"nationality_person_2\" class=\"form-label\"><br \/>\n                                Nationalit\u00e4t                            <\/label><br \/>\n                            <select class=\"form-select\" aria-label=\"Default select example\" id=\"nationality_person_2\"\n                                    name=\"nationality_person_2\" onchange=\"showHideIdSecond()\"><option selected disabled><br \/>\n                                    Wahlen                                <\/option><option value=\"NL\"><br \/>\n                                    Niederlande                                <\/option><option value=\"GE\"><br \/>\n                                    Deutschland                                <\/option><option value=\"RU\"><br \/>\n                                    Russland                                <\/option><option value=\"BG\"><br \/>\n                                    Bulgarien                                <\/option><option value=\"BE\"><br \/>\n                                    Belgien                                <\/option><option value=\"RO\"><br \/>\n                                    Rum\u00e4niennien                                <\/option><option value=\"NO\"><br \/>\n                                    Norwegen                                <\/option><option value=\"DK\"><br \/>\n                                    D\u00e4nemark                                <\/option><option value=\"LU\"><br \/>\n                                    Luxemburg                                <\/option><option value=\"SE\"><br \/>\n                                    Schweden                                <\/option><option value=\"IT\"><br \/>\n                                    Italien                                <\/option><option value=\"FR\"><br \/>\n                                    Frankreich                                <\/option><\/select>\n                        <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"row\">\n<div class=\"col\">\n<div class=\"mb-3\">\n                            <label for=\"birthdate_second\" class=\"form-label\"><br \/>\n                                Geburtsdatum                            <\/label><br \/>\n                            <input type=\"date\" class=\"form-control  bg-white\" id=\"birthdate_second\" name=\"birthdate_second\" onchange=\"changePrice()\">\n                        <\/div>\n<\/p><\/div>\n<div class=\"col\">\n<div class=\"mb-3\" style=\"display: none;\" id=\"id_number_second\">\n                            <label for=\"id_number_second\" class=\"form-label\"><br \/>\n                                                            <\/label><br \/>\n                            <input type=\"text\" class=\"form-control bg-white\" id=\"id_number_second\" name=\"id_number_second\"\n                                   aria-describedby=\"\">\n                        <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"row\">\n<div class=\"col-6\">\n<div class=\"mb-3\">\n                            <label for=\"country_second\" class=\"form-label\"><br \/>\n                                Land                            <\/label><br \/>\n                            <select class=\"form-select\" aria-label=\"Default select example\" id=\"country\"\n                                    name=\"country_second\"><option selected disabled><br \/>\n                                    Wahlen                                <\/option><option value=\"Nederland\"><br \/>\n                                    Niederlande                                <\/option><option value=\"Deutschland\"><br \/>\n                                    Deutschland                                <\/option><option value=\"Rusland\"><br \/>\n                                    Russland                                <\/option><option value=\"Bulgarije\"><br \/>\n                                    Bulgarien                                <\/option><option value=\"Belgi\u00eb\"><br \/>\n                                    Belgien                                <\/option><option value=\"Roemeni\u00eb\"><br \/>\n                                    Rum\u00e4niennien                                <\/option><option value=\"Noorwegen\"><br \/>\n                                    Norwegen                                <\/option><option value=\"Denemarken\"><br \/>\n                                    D\u00e4nemark                                <\/option><option value=\"Luxemburg\"><br \/>\n                                    Luxemburg                                <\/option><option value=\"Zweden\"><br \/>\n                                    Schweden                                <\/option><option value=\"Itali?\"><br \/>\n                                    Italien                                <\/option><option value=\"Frankrijk\"><br \/>\n                                    Frankreich                                <\/option><\/select>\n                        <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"mb-3\" style=\"display: none\" id=\"person_3\">\n<p>\n                    Person 3                <\/p>\n<div class=\"row\">\n<div class=\"col\">\n<div class=\"mb-3\">\n                            <label for=\"first_name_thirth\" class=\"form-label\"><br \/>\n                                Vorname                            <\/label><br \/>\n                            <input type=\"text\" class=\"form-control bg-white\" id=\"first_name_thirth\" name=\"first_name_thirth\"\n                                   aria-describedby=\"\">\n                        <\/div>\n<\/p><\/div>\n<div class=\"col\">\n<div class=\"mb-3\">\n                            <label for=\"last_name_thirth\" class=\"form-label\"><br \/>\n                                Nachname                            <\/label><br \/>\n                            <input type=\"text\" class=\"form-control bg-white\" id=\"last_name_thirth\" name=\"last_name_thirth\"\n                                   aria-describedby=\"\">\n                        <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"row\">\n<div class=\"col\">\n<div class=\"mb-3\">\n                            <label for=\"city_thirth\" class=\"form-label\"><br \/>\n                                Wohnort                            <\/label><br \/>\n                            <input type=\"text\" class=\"form-control bg-white\" id=\"city_thirth\" name=\"city_thirth\" aria-describedby=\"\">\n                        <\/div>\n<\/p><\/div>\n<div class=\"col\">\n<div class=\"mb-3\">\n                            <label for=\"nationality_person_3\" class=\"form-label\"><br \/>\n                                Nationalit\u00e4t                            <\/label><br \/>\n                            <select class=\"form-select\" aria-label=\"Default select example\" id=\"nationality_person_3\"\n                                    name=\"nationality_person_3\" onchange=\"showHideIdThirth()\"><option selected disabled><br \/>\n                                    Wahlen                                <\/option><option value=\"NL\"><br \/>\n                                    Niederlande                                <\/option><option value=\"GE\"><br \/>\n                                    Deutschland                                <\/option><option value=\"RU\"><br \/>\n                                    Russland                                <\/option><option value=\"BG\"><br \/>\n                                    Bulgarien                                <\/option><option value=\"BE\"><br \/>\n                                    Belgien                                <\/option><option value=\"RO\"><br \/>\n                                    Rum\u00e4niennien                                <\/option><option value=\"NO\"><br \/>\n                                    Norwegen                                <\/option><option value=\"DK\"><br \/>\n                                    D\u00e4nemark                                <\/option><option value=\"LU\"><br \/>\n                                    Luxemburg                                <\/option><option value=\"SE\"><br \/>\n                                    Schweden                                <\/option><option value=\"IT\"><br \/>\n                                    Italien                                <\/option><option value=\"FR\"><br \/>\n                                    Frankreich                                <\/option><\/select>\n                        <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"row\">\n<div class=\"col\">\n<div class=\"mb-3\">\n                            <label for=\"birthdate_thirth\" class=\"form-label\"><br \/>\n                                Geburtsdatum                            <\/label><br \/>\n                            <input type=\"date\" class=\"form-control bg-white\" id=\"birthdate_thirth\" name=\"birthdate_thirth\" oninput=\"changePrice()\"\n                                   aria-describedby=\"\">\n                        <\/div>\n<\/p><\/div>\n<div class=\"col\">\n<div class=\"mb-3\" style=\"display: none;\" id=\"id_number_thirth\">\n                            <label for=\"id_number_thirth\" class=\"form-label\"><br \/>\n                                                            <\/label><br \/>\n                            <input type=\"text\" class=\"form-control bg-white\" id=\"id_number_thirth\" name=\"id_number_thirth\"\n                                   aria-describedby=\"\">\n                        <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"row\">\n<div class=\"col-6\">\n<div class=\"mb-3\">\n                            <label for=\"country_thirth\" class=\"form-label\"><br \/>\n                                Land                            <\/label><br \/>\n                            <select class=\"form-select\" aria-label=\"Default select example\" id=\"country\"\n                                    name=\"country_thirth\"><option selected disabled><br \/>\n                                    Wahlen                                <\/option><option value=\"Nederland\"><br \/>\n                                    Niederlande                                <\/option><option value=\"Deutschland\"><br \/>\n                                    Deutschland                                <\/option><option value=\"Rusland\"><br \/>\n                                    Russland                                <\/option><option value=\"Bulgarije\"><br \/>\n                                    Bulgarien                                <\/option><option value=\"Belgi\u00eb\"><br \/>\n                                    Belgien                                <\/option><option value=\"Roemeni\u00eb\"><br \/>\n                                    Rum\u00e4niennien                                <\/option><option value=\"Noorwegen\"><br \/>\n                                    Norwegen                                <\/option><option value=\"Denemarken\"><br \/>\n                                    D\u00e4nemark                                <\/option><option value=\"Luxemburg\"><br \/>\n                                    Luxemburg                                <\/option><option value=\"Zweden\"><br \/>\n                                    Schweden                                <\/option><option value=\"Itali?\"><br \/>\n                                    Italien                                <\/option><option value=\"Frankrijk\"><br \/>\n                                    Frankreich                                <\/option><\/select>\n                        <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"mb-3\" style=\"display: none\" id=\"person_4\">\n<p>\n                    Person 4:                <\/p>\n<div class=\"row\">\n<div class=\"col\">\n<div class=\"mb-3\">\n                            <label for=\"first_name_fourth\" class=\"form-label\"><br \/>\n                                Vorname                            <\/label><br \/>\n                            <input type=\"text\" class=\"form-control bg-white\" id=\"first_name_fourth\" name=\"first_name_fourth\"\n                                   aria-describedby=\"\">\n                        <\/div>\n<\/p><\/div>\n<div class=\"col\">\n<div class=\"mb-3\">\n                            <label for=\"last_name_fourth\" class=\"form-label\"><br \/>\n                                Nachname                            <\/label><br \/>\n                            <input type=\"text\" class=\"form-control bg-white\" id=\"last_name_fourth\" name=\"last_name_fourth\"\n                                   aria-describedby=\"\">\n                        <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"row\">\n<div class=\"col\">\n<div class=\"mb-3\">\n                            <label for=\"city_fourth\" class=\"form-label\"><br \/>\n                                Wohnort                            <\/label><br \/>\n                            <input type=\"text\" class=\"form-control bg-white\" id=\"city_fourth\" name=\"city_fourth\" aria-describedby=\"\">\n                        <\/div>\n<\/p><\/div>\n<div class=\"col\">\n<div class=\"mb-3\">\n                            <label for=\"nationality_person_4\" class=\"form-label\"><br \/>\n                                Nationalit\u00e4t                            <\/label><br \/>\n                            <select class=\"form-select\" aria-label=\"Default select example\" id=\"nationality_person_4\"\n                                    name=\"nationality_person_4\" onchange=\"showHideIdFourth()\"><option selected disabled><br \/>\n                                    Wahlen                                <\/option><option value=\"NL\"><br \/>\n                                    Niederlande                                <\/option><option value=\"GE\"><br \/>\n                                    Deutschland                                <\/option><option value=\"RU\"><br \/>\n                                    Russland                                <\/option><option value=\"BG\"><br \/>\n                                    Bulgarien                                <\/option><option value=\"BE\"><br \/>\n                                    Belgien                                <\/option><option value=\"RO\"><br \/>\n                                    Rum\u00e4niennien                                <\/option><option value=\"NO\"><br \/>\n                                    Norwegen                                <\/option><option value=\"DK\"><br \/>\n                                    D\u00e4nemark                                <\/option><option value=\"LU\"><br \/>\n                                    Luxemburg                                <\/option><option value=\"SE\"><br \/>\n                                    Schweden                                <\/option><option value=\"IT\"><br \/>\n                                    Italien                                <\/option><option value=\"FR\"><br \/>\n                                    Frankreich                                <\/option><\/select>\n                        <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"row\">\n<div class=\"col\">\n<div class=\"mb-3\">\n                            <label for=\"birthdate_fourth\" class=\"form-label\"><br \/>\n                                Geburtsdatum                            <\/label><br \/>\n                            <input type=\"date\" class=\"form-control bg-white\" id=\"birthdate_fourth\" name=\"birthdate_fourth\" oninput=\"changePrice()\"\n                                   aria-describedby=\"\">\n                        <\/div>\n<\/p><\/div>\n<div class=\"col\">\n<div class=\"mb-3\" style=\"display: none;\" id=\"id_number_fourth\">\n                            <label for=\"id_number_fourth\" class=\"form-label\"><br \/>\n                                                            <\/label><br \/>\n                            <input type=\"text\" class=\"form-control bg-white\" id=\"id_number_fourth\" name=\"id_number_fourth\"\n                                   aria-describedby=\"\">\n                        <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"row\">\n<div class=\"col-6\">\n<div class=\"mb-3\">\n                            <label for=\"country_fourth\" class=\"form-label\"><br \/>\n                                Land                            <\/label><br \/>\n                            <select class=\"form-select\" aria-label=\"Default select example\" id=\"country\"\n                                    name=\"country_fourth\"><option selected disabled><br \/>\n                                    Wahlen                                <\/option><option value=\"Nederland\"><br \/>\n                                    Niederlande                                <\/option><option value=\"Deutschland\"><br \/>\n                                    Deutschland                                <\/option><option value=\"Rusland\"><br \/>\n                                    Russland                                <\/option><option value=\"Bulgarije\"><br \/>\n                                    Bulgarien                                <\/option><option value=\"Belgi\u00eb\"><br \/>\n                                    Belgien                                <\/option><option value=\"Roemeni\u00eb\"><br \/>\n                                    Rum\u00e4niennien                                <\/option><option value=\"Noorwegen\"><br \/>\n                                    Norwegen                                <\/option><option value=\"Denemarken\"><br \/>\n                                    D\u00e4nemark                                <\/option><option value=\"Luxemburg\"><br \/>\n                                    Luxemburg                                <\/option><option value=\"Zweden\"><br \/>\n                                    Schweden                                <\/option><option value=\"Itali?\"><br \/>\n                                    Italien                                <\/option><option value=\"Frankrijk\"><br \/>\n                                    Frankreich                                <\/option><\/select>\n                        <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"mb-3\" style=\"display: none\" id=\"person_5\">\n<p>Persoon 5:<\/p>\n<div class=\"row\">\n<div class=\"col\">\n<div class=\"mb-3\">\n                            <label for=\"first_name\" class=\"form-label\">Voornaam<\/label><br \/>\n                            <input type=\"text\" class=\"form-control bg-white\" id=\"name_first_fifth\" name=\"name_first_fifth\"\n                                   aria-describedby=\"\">\n                        <\/div>\n<\/p><\/div>\n<div class=\"col\">\n<div class=\"mb-3\">\n                            <label for=\"name_last_fifth\" class=\"form-label\">Achternaam<\/label><br \/>\n                            <input type=\"text\" class=\"form-control bg-white\" id=\"name_last_fifth\" name=\"name_last_fifth\"\n                                   aria-describedby=\"\">\n                        <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"row\">\n<div class=\"col\">\n<div class=\"mb-3\">\n                            <label for=\"city_fifth\" class=\"form-label\">Woonplaats<\/label><br \/>\n                            <input type=\"text\" class=\"form-control bg-white\" id=\"city_fifth\" name=\"city_fifth\" aria-describedby=\"\">\n                        <\/div>\n<\/p><\/div>\n<div class=\"col\">\n<div class=\"mb-3\">\n                            <label for=\"nationality_person_5\" class=\"form-label\">Nationaliteit<\/label><br \/>\n                            <select class=\"form-select\" aria-label=\"Default select example\" id=\"nationality_person_5\"\n                                    name=\"nationality_person_5\" onchange=\"showHideIdFifth()\"><option selected disabled>Selecteer<\/option><option value=\"NL\">Nederland<\/option><option value=\"GE\">Duitsland<\/option><option value=\"RU\">Rusland<\/option><option value=\"BG\">Bulgarije<\/option><option value=\"BE\">Belgi\u00eb<\/option><option value=\"RO\">Roemeni\u00eb<\/option><option value=\"NO\">Noorwegen<\/option><option value=\"DK\">Denemarken<\/option><option value=\"LU\">Luxemburg<\/option><option value=\"SE\">Zweden<\/option><option value=\"IT\">Itali?<\/option><option value=\"FR\">Frankrijk<\/option><\/select>\n                        <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"row\">\n<div class=\"col\">\n<div class=\"mb-3\" style=\"display: none;\" id=\"id_number_fifth\">\n                            <label for=\"id_number_fifth\" class=\"form-label\">ID\/paspoort nummer<\/label><br \/>\n                            <input type=\"text\" class=\"form-control bg-white\" id=\"id_number_fifth\" name=\"id_number_fifth\"\n                                   aria-describedby=\"\">\n                        <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"row\">\n<div class=\"col\">\n<div class=\"mb-3\">\n                            <label for=\"birthdate_fifth\" class=\"form-label\"><br \/>\n                                Geburtsdatum                            <\/label><br \/>\n                            <input type=\"date\" class=\"form-control bg-white\" id=\"birthdate_fifth\" name=\"birthdate_fifth\" onchange=\"changePrice()\"\n                                   aria-describedby=\"\">\n                        <\/div>\n<\/p><\/div>\n<div class=\"col\">\n<div class=\"mb-3\" style=\"display: none;\" id=\"id_number_fifth\">\n                            <label for=\"id_number_fifth\" class=\"form-label\"><br \/>\n                                                            <\/label><br \/>\n                            <input type=\"text\" class=\"form-control bg-white\" id=\"id_number_fifth\" name=\"id_number_fifth\"\n                                   aria-describedby=\"\">\n                        <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"row\">\n<div class=\"col-6\">\n<div class=\"mb-3\">\n                            <label for=\"country_fifth\" class=\"form-label\"><br \/>\n                                Land                            <\/label><br \/>\n                            <select class=\"form-select\" aria-label=\"Default select example\" id=\"country\"\n                                    name=\"country_fifth\"><option selected disabled><br \/>\n                                    Wahlen                                <\/option><option value=\"Nederland\"><br \/>\n                                    Niederlande                                <\/option><option value=\"Deutschland\"><br \/>\n                                    Deutschland                                <\/option><option value=\"Rusland\"><br \/>\n                                    Russland                                <\/option><option value=\"Bulgarije\"><br \/>\n                                    Bulgarien                                <\/option><option value=\"Belgi\u00eb\"><br \/>\n                                    Belgien                                <\/option><option value=\"Roemeni\u00eb\"><br \/>\n                                    Rum\u00e4niennien                                <\/option><option value=\"Noorwegen\"><br \/>\n                                    Norwegen                                <\/option><option value=\"Denemarken\"><br \/>\n                                    D\u00e4nemark                                <\/option><option value=\"Luxemburg\"><br \/>\n                                    Luxemburg                                <\/option><option value=\"Zweden\"><br \/>\n                                    Schweden                                <\/option><option value=\"Itali?\"><br \/>\n                                    Italien                                <\/option><option value=\"Frankrijk\"><br \/>\n                                    Frankreich                                <\/option><\/select>\n                        <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"mb-3\" style=\"display: none\" id=\"person_6\">\n<p>\n                    Person 6                <\/p>\n<div class=\"row\">\n<div class=\"col\">\n<div class=\"mb-3\">\n                            <label for=\"first_name\" class=\"form-label\"><br \/>\n                                Vorname                            <\/label><br \/>\n                            <input type=\"text\" class=\"form-control bg-white\" id=\"name_first_sixth\" name=\"name_first_sixth\"\n                                   aria-describedby=\"\">\n                        <\/div>\n<\/p><\/div>\n<div class=\"col\">\n<div class=\"mb-3\">\n                            <label for=\"name_last_sixth\" class=\"form-label\"><br \/>\n                                Nachname                            <\/label><br \/>\n                            <input type=\"text\" class=\"form-control bg-white\" id=\"name_last_sixth\" name=\"name_last_sixth\"\n                                   aria-describedby=\"\">\n                        <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"row\">\n<div class=\"col\">\n<div class=\"mb-3\">\n                            <label for=\"city_sixth\" class=\"form-label\"><br \/>\n                                Wohnort                            <\/label><br \/>\n                            <input type=\"text\" class=\"form-control bg-white\" id=\"city_sixth\" name=\"city_sixth\" aria-describedby=\"\">\n                        <\/div>\n<\/p><\/div>\n<div class=\"col\">\n<div class=\"mb-3\">\n                            <label for=\"nationality_person_6\" class=\"form-label\"><br \/>\n                                Nationalit\u00e4t                            <\/label><br \/>\n                            <select class=\"form-select\" aria-label=\"Default select example\" id=\"nationality_person_6\"\n                                    name=\"nationality_person_6\" onchange=\"showHideIdSix()\"><option selected disabled><br \/>\n                                    Wahlen                                <\/option><option value=\"NL\"><br \/>\n                                    Niederlande                                <\/option><option value=\"GE\"><br \/>\n                                    Deutschland                                <\/option><option value=\"RU\"><br \/>\n                                    Russland                                <\/option><option value=\"BG\"><br \/>\n                                    Bulgarien                                <\/option><option value=\"BE\"><br \/>\n                                    Belgien                                <\/option><option value=\"RO\"><br \/>\n                                    Rum\u00e4niennien                                <\/option><option value=\"NO\"><br \/>\n                                    Norwegen                                <\/option><option value=\"DK\"><br \/>\n                                    D\u00e4nemark                                <\/option><option value=\"LU\"><br \/>\n                                    Luxemburg                                <\/option><option value=\"SE\"><br \/>\n                                    Schweden                                <\/option><option value=\"IT\"><br \/>\n                                    Italien                                <\/option><option value=\"FR\"><br \/>\n                                    Frankreich                                <\/option><\/select>\n                        <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"row\">\n<div class=\"col\">\n<div class=\"mb-3\">\n                            <label for=\"birthdate_sixth\" class=\"form-label\"><br \/>\n                                Geburtsdatum                            <\/label><br \/>\n                            <input type=\"date\" class=\"form-control\" id=\"birthdate_sixth\" name=\"birthdate_sixth\" onchange=\"changePrice()\"\n                                   aria-describedby=\"\">\n                        <\/div>\n<\/p><\/div>\n<div class=\"col\">\n<div class=\"mb-3\" style=\"display: none;\" id=\"id_number_sixth\">\n                            <label for=\"id_number_sixth\" class=\"form-label\"><br \/>\n                                                            <\/label><br \/>\n                            <input type=\"text\" class=\"form-control\" id=\"id_number_sixth\" name=\"id_number_sixth\"\"\n                            aria-describedby=\"\">\n                        <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"row\">\n<div class=\"col-6\">\n<div class=\"mb-3\">\n                            <label for=\"country_sixth\" class=\"form-label\"><br \/>\n                                Land                            <\/label><br \/>\n                            <select class=\"form-select\" aria-label=\"Default select example\" id=\"country\"\n                                    name=\"country_sixth\"><option selected disabled><br \/>\n                                    Wahlen                                <\/option><option value=\"Nederland\"><br \/>\n                                    Niederlande                                <\/option><option value=\"Deutschland\"><br \/>\n                                    Deutschland                                <\/option><option value=\"Rusland\"><br \/>\n                                    Russland                                <\/option><option value=\"Bulgarije\"><br \/>\n                                    Bulgarien                                <\/option><option value=\"Belgi\u00eb\"><br \/>\n                                    Belgien                                <\/option><option value=\"Roemeni\u00eb\"><br \/>\n                                    Rum\u00e4niennien                                <\/option><option value=\"Noorwegen\"><br \/>\n                                    Norwegen                                <\/option><option value=\"Denemarken\"><br \/>\n                                    D\u00e4nemark                                <\/option><option value=\"Luxemburg\"><br \/>\n                                    Luxemburg                                <\/option><option value=\"Zweden\"><br \/>\n                                    Schweden                                <\/option><option value=\"Itali?\"><br \/>\n                                    Italien                                <\/option><option value=\"Frankrijk\"><br \/>\n                                    Frankreich                                <\/option><\/select>\n                        <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<hr>\n<h1>\n                Preis            <\/h1>\n<div class=\"d-flex align-items-center\">\n<h2>\u20ac<\/h2>\n<h2 id=\"total_price\" name=\"total_price\" class=\"ms-2\"><\/h2>\n<p>                <input type=\"hidden\" id=\"total_price_hidden\" name=\"total_price_hidden\" value=\"\">\n            <\/div>\n<p>            <button type=\"submit\" name=\"booking_form_submit\" class=\"btn btn-primary\" style=\"background-color: #0E3E1A\"><br \/>\n                Senden            <\/button><br \/>\n            <input type=\"hidden\" id=\"extra_cost_heating\" name=\"extra_cost_heating\"><\/input><br \/>\n            <input type=\"hidden\" id=\"extra_cost_tax\" name=\"extra_cost_tax\"><\/input><br \/>\n            <input type=\"hidden\" id=\"extra_cost_cleaning\" name=\"extra_cost_cleaning\"><\/input><br \/>\n            <input type=\"hidden\" id=\"amount_days\" name=\"amount_days\"><\/input><\/p><\/form>\n<\/p><\/div>\n<pre hidden>\n      <style>\n        .month {\n            padding: 10px 25px;\n            width: 100%;\n            background: #0E3E1A;\n            text-align: center;\n        }\n\n        .month ul {\n            margin: 0;\n            padding: 0;\n        }\n\n        .month ul li {\n            color: white;\n            font-size: 20px;\n            text-transform: uppercase;\n            letter-spacing: 3px;\n        }\n\n        .month .prev {\n            float: left;\n            padding-top: 10px;\n        }\n\n        .month .next {\n            float: right;\n            padding-top: 10px;\n        }\n\n        .custom-vertical-lines {\n            border-left: 3px solid black;\n            border-right: 3px solid black;\n            border-radius: 0px;\n            border-top: none;\n            border-bottom: none;\n        }\n\n        \/* Basisstijl voor de weekdays *\/\n        .weekdays {\n            margin: 0;\n            padding: 10px 0;\n            background-color: #0E3E1A;\n            display: flex;\n            flex-wrap: wrap;\n            justify-content: space-between;\n            list-style: none;\n            color: white;\n        }\n\n        .weekdays li {\n            flex: 1 0 14%;\n            color: white;\n            text-align: center;\n            padding: 5px 0;\n            font-size: 14px;\n        }\n\n        @media (max-width: 768px) {\n            .weekdays {\n                justify-content: space-around;\n            }\n\n            .weekdays li {\n                font-size: 12px;\n                flex: 1 0 13%;\n            }\n        }\n\n        .next-month {\n            color: gray;\n            opacity: 0.6;\n        }\n\n        .days_to_rent {\n            display: grid;\n            grid-template-columns: repeat(7, 1fr);\n            gap: 5px;\n        }\n\n        .days_to_rent li {\n            text-align: center;\n            padding: 10px;\n            border: 1px solid #ccc;\n            list-style: none;\n        }\n\n        .days-to-rent {\n            display: grid;\n            grid-template-columns: repeat(7, 1fr);\n            gap: 5px;\n        }\n\n        .days-to-rent li {\n            text-align: center;\n            padding: 10px;\n            border: 1px solid #ccc;\n            list-style: none;\n        }\n\n        .days {\n            padding: 10px 0;\n            background: #eee;\n            margin: 2px;\n            color: white;\n            max-height: 175px;\n            overflow-y: auto;\n            overflow-x: hidden;\n        }\n\n        .days li {\n            list-style-type: none;\n            display: inline-block;\n            width: 13.6%;\n            text-align: center;\n            margin-bottom: 5px;\n            margin-left: 2px;\n            margin-right: 2px;\n            font-size: 12px;\n            color: black;\n        }\n\n        .days li .active {\n            padding: 5px;\n            background: #1abc9c;\n            color: black; !important\n        }\n\n        .selected {\n            background-color: green;\n            color: white !important;\n            border-radius: 5px;\n        }\n\n        .booked {\n            background-color: red;\n            color: white !important;\n            border-radius: 5px;\n        }\n\n        @media screen and (max-width: 720px) {\n            .weekdays li, .days li {\n                width: 13.1%;\n            }\n        }\n\n        @media screen and (max-width: 420px) {\n            .weekdays li, .days li {\n                width: 12.5%;\n            }\n\n            .days li .active {\n                padding: 2px;\n            }\n        }\n\n        @media screen and (max-width: 290px) {\n            .weekdays li, .days li {\n                width: 12.2%;\n            }\n        }\n      <\/style>\n\n    <\/pre>\n<pre hidden>\n        <script>\n        function prepareOptionsJson() {\n            const optionsContainer = document.getElementById('dynamic-options');\n            const checkboxes = optionsContainer.querySelectorAll('input.form-check-input');\n            const optionsArray = [];\n\n            checkboxes.forEach((cb) => {\n                if (cb.checked) {\n                    optionsArray.push({\n                        name_nl: cb.dataset.nameNl || \"\",\n                        name_de: cb.dataset.nameDe || \"\",\n                        price: parseFloat(cb.value),\n                        type: cb.dataset.type\n                    });\n                }\n            });\n\n            document.getElementById('options-json').value = JSON.stringify(optionsArray);\n        }\n\n        document.getElementById('booking-form').addEventListener('submit', function(e) {\n            prepareOptionsJson();\n        });\n        function changeOptions(event) {\n            const selectHome = document.getElementById('home');\n            const selectedOption = selectHome.options[selectHome.selectedIndex];\n\n            console.log(\"SELECTED OPTION:\", selectedOption);\n            const animalsAllowed = selectedOption.dataset.animalsAllowed;\n            const childBedAllowed = selectedOption.dataset.childBedAllowed;\n            const childChairAllowed = selectedOption.dataset.childChairAllowed;\n\n            const optionsContainer = document.getElementById('dynamic-options');\n\n            optionsContainer.innerHTML = '';\n\n            let optionsJson = selectedOption.getAttribute('data-options');\n\n            console.log(\"OPTIONS JSON:\", optionsJson);\n\n            if (!optionsJson) return;\n\n            let options;\n            try {\n                options = JSON.parse(optionsJson);\n            } catch (e) {\n                console.error(\"Fout bij parsen van opties\", e);\n                return;\n            }\n\n            let currentLanguage = \"de\"; \/\/ 'nl' of 'de'\n\n            options.forEach((opt, index) => {\n                let labelText = (currentLanguage === 'nl') ? opt.name_nl : opt.name_de;\n                let price = opt.price;\n                let type = opt.type;\n\n                let wrapper = document.createElement('div');\n                wrapper.className = 'form-check d-flex align-items-center gap-2';\n\n                wrapper.innerHTML = `\n                    <input class=\"form-check-input\" type=\"checkbox\"\n                        value=\"${price}\"\n                        id=\"paid_option_${index}\"\n                        data-type=\"${type}\"\n                        data-name-nl=\"${(opt.name_nl || '').trim()}\"\n                        data-name-de=\"${(opt.name_de || '').trim()}\"\n                        name=\"paid_options[]\"\n                        onchange=\"changePrice()\">\n                    <label class=\"form-check-label\" for=\"paid_option_${index}\">\n                        ${labelText} (\u20ac ${price} ${type === 'per_night'\n                            ? (currentLanguage === 'nl' ? 'per nacht' : 'pro Nacht')\n                            : (currentLanguage === 'nl' ? 'eenmalig' : 'einmalig')})\n                    <\/label>\n                `;\n\n                optionsContainer.appendChild(wrapper);\n            });\n        }\n\n\n\n          const daysToRentSecond = document.getElementById(\"days_to_rent\");\n          const selectedDaysInput = document.getElementById('selected_days');\n\n          var ajaxurl = \"https:\/\/hanninkhof.de\/wp-admin\/admin-ajax.php\";\n\n          daysToRentSecond.addEventListener('click', function (event) {\n              if (event.target.tagName === 'LI') {\n                  const dayElement = event.target;\n\n                  \/\/ Get month and year from the clicked day\n                  const selectedMonth = parseInt(dayElement.getAttribute('data-month'));  \/\/ Month as integer (1-12)\n                  const selectedYear = parseInt(dayElement.getAttribute('data-year'));   \/\/ Full year (e.g., 2025)\n                  const selectedDay = parseInt(dayElement.getAttribute('data-day'));\n\n                  if (!dayElement.classList.contains(\"booked\")) {\n                      dayElement.classList.toggle('selected');\n                  }\n\n                  \/\/ Gather selected days with their month & year\n                  const selectedDates = [];\n                  document.querySelectorAll('#days_to_rent li.selected').forEach(selectedDay => {\n                      selectedDates.push({\n                          year: parseInt(selectedDay.getAttribute('data-year')),\n                          month: parseInt(selectedDay.getAttribute('data-month')),\n                          day: parseInt(selectedDay.getAttribute('data-day'))\n                      });\n                  });\n\n                  \/\/ Sort selected days across months\n                  selectedDates.sort((a, b) =>\n                      a.year !== b.year ? a.year - b.year :\n                          a.month !== b.month ? a.month - b.month :\n                              a.day - b.day\n                  );\n\n                  \/\/ Check for gaps between selected days\n                  let hasGap = false;\n                  for (let i = 1; i < selectedDates.length; i++) {\n                      const prev = selectedDates[i - 1];\n                      const current = selectedDates[i];\n\n                      const prevDate = new Date(prev.year, prev.month - 1, prev.day);\n                      const currentDate = new Date(current.year, current.month - 1, current.day);\n\n                      const differenceInDays = (currentDate - prevDate) \/ (1000 * 60 * 60 * 24);\n                      if (differenceInDays > 1) {\n                          hasGap = true;\n                          break;\n                      }\n                  }\n\n                  if (hasGap) {\n                      dayElement.classList.remove('selected');\n                      return;\n                  }\n\n                  \/\/ Extract min and max dates\n                  const startDate = new Date(Date.UTC(selectedDates[0].year, selectedDates[0].month - 1, selectedDates[0].day));\n                  const endDate = new Date(Date.UTC(selectedDates[selectedDates.length - 1].year, selectedDates[selectedDates.length - 1].month - 1, selectedDates[selectedDates.length - 1].day));\n\n                  document.getElementById('start_date').value = startDate.toISOString();\n                  document.getElementById('end_date').value = endDate.toISOString();\n\n                  console.log(\"DEBUG START \", document.getElementById('start_date').value);\n                  console.log(\"DEBUG END \", document.getElementById('end_date').value);\n\n                  changePrice();\n              }\n          });\n\n          const monthSelect = document.getElementById(\"month-select\");\n          const yearSelect = document.getElementById(\"year-select\");\n          const daysToRent = document.getElementById(\"days_to_rent\");\n\n          const currentYear = new Date().getFullYear();\n          const currentMonth = new Date().getMonth();\n\n          const homeSelect = document.getElementById('home');\n\n          homeSelect.addEventListener('change', function () {\n              const selectedHome = this.value;\n              if (typeof ajaxurl === 'undefined') {\n                  console.error('ajaxurl is niet gedefinieerd');\n                  return;\n              }\n\n              fetch(ajaxurl, {\n                  method: 'POST',\n                  headers: {'Content-Type': 'application\/x-www-form-urlencoded'},\n                  body: new URLSearchParams({\n                      action: 'fetch_bookings_for_home',\n                      home: selectedHome,\n                  }),\n              })\n                  .then((response) => response.json())\n                  .then((data) => {\n                      console.log(data);\n                      if (data.success) {\n                          const bookings = data.data;\n                          updateCalendarWithBookings(bookings);\n                      } else {\n                          console.error(data.data || 'Geen boekingen gevonden.');\n                      }\n                  })\n                  .catch((error) => console.error('Fout:', error));\n\n              updateCalendar();\n          });\n\n          function updateCalendarWithBookings(bookings) {\n              console.log('updateCalendarWithBookings call');\n              console.log(bookings)\n              const selectedMonth = parseInt(monthSelect.value);\n              const selectedYear = parseInt(yearSelect.value);\n              const daysInMonth = new Date(selectedYear, selectedMonth, 0).getDate();\n\n              var bookedGoogleCalendarDays = [];\n\n              fetchBookingsFromGoogleCalendar().then(bookedDats => {\n                      bookedGoogleCalendarDays.push(bookedDats)\n                      var bookedCalenderDaysFlat = bookedGoogleCalendarDays.flat();\n\n                      daysToRent.innerHTML = \"\";\n\n                      for (let day = 1; day <= daysInMonth; day++) {\n                          const li = document.createElement(\"li\");\n                          const yearMonthDay = `${selectedYear}-${selectedMonth.toString().padStart(2, '0')}-${day.toString().padStart(2, '0')}`;\n\n                          li.setAttribute(\"data-day\", day);\n                          li.setAttribute(\"data-month\", selectedMonth);\n                          li.setAttribute(\"data-year\", selectedYear);\n\n                          li.textContent = day;\n                          const currentDate = new Date(selectedYear, selectedMonth - 1, day);\n                          currentDate.setHours(0, 0, 0, 0);\n\n                          const isBooked = bookings.some((booking) => {\n                              const startDate = new Date(booking.start_date);\n                              const endDate = new Date(booking.end_date);\n                              startDate.setHours(0, 0, 0, 0);\n                              endDate.setHours(23, 59, 59, 999);\n\n                              const currentTime = currentDate.getTime();\n                              const startTime = startDate.getTime();\n                              const endTime = endDate.getTime();\n\n                              const checkDate = new Date(startDate);\n                              const checkDay = checkDate.getDate();\n\n                              if (day == checkDay) {\n                                  return false;\n                              }\n\n                              const checkDatetwo = new Date(endDate);\n                              const checkDaytwo = checkDatetwo.getDate();\n                              if (day == checkDaytwo) {\n                                  return false;\n                              }\n\n                              if (currentTime > startTime) {\n                                  if (currentTime < endTime) {\n                                      if (currentTime !== startTime) {\n                                          if (currentTime !== endTime) {\n                                              return true;\n                                          }\n                                      }\n                                  }\n                              }\n\n                              return false;\n                          });\n\n                          if (isBooked) {\n                              li.classList.add('booked');\n                          }\n\n                          try {\n                              \/\/ If date is alreate booked inside Google Calendar, add class booked\n                              if (bookedCalenderDaysFlat.includes(yearMonthDay)) {\n                                  li.classList.add('booked');\n                              }\n                          } catch (error) {\n                              console.error('Error while checking if date is booked in Google Calendar:', error);\n                          }\n\n                          daysToRent.appendChild(li);\n                      }\n                  }\n              );\n          }\n\n          for (let i = currentYear; i <= currentYear + 3; i++) {\n              const option = document.createElement(\"option\");\n              option.value = i;\n              option.textContent = i;\n              yearSelect.appendChild(option);\n          }\n\n          monthSelect.value = currentMonth;\n          yearSelect.value = currentYear;\n\n          function getDaysInMonth(month, year) {\n              return new Date(year, month, 0).getDate();\n          }\n\n\n          function updateCalendar() {\n              console.log('updateCalendar call');\n              const selectedMonth = parseInt(monthSelect.value);\n              const selectedYear = parseInt(yearSelect.value);\n              const selectedHome = homeSelect.value;\n\n              if (typeof ajaxurl === 'undefined') {\n                  console.error('ajaxurl is niet gedefinieerd');\n                  return;\n              }\n\n              var bookedGoogleCalendarDays = [];\n\n              fetchBookingsFromGoogleCalendar().then(bookedDates => {\n                  bookedGoogleCalendarDays = bookedDates;\n\n                  fetch(ajaxurl, {\n                      method: 'POST',\n                      headers: { 'Content-Type': 'application\/x-www-form-urlencoded' },\n                      body: new URLSearchParams({\n                          action: 'fetch_bookings_for_home',\n                          home: selectedHome,\n                          year: selectedYear,\n                          month: selectedMonth,\n                      }),\n                  })\n                      .then((response) => response.json())\n                      .then((data) => {\n                          if (data.success) {\n                              const bookings = data.data;\n                              const daysInMonth = new Date(selectedYear, selectedMonth, 0).getDate(); \/\/ Get days in selected month\n                              const nextMonth = selectedMonth === 12 ? 1 : selectedMonth + 1;\n                              const nextYear = selectedMonth === 12 ? selectedYear + 1 : selectedYear;\n\n                              \/\/ Fetch bookings for the next month\n                              fetch(ajaxurl, {\n                                  method: 'POST',\n                                  headers: { 'Content-Type': 'application\/x-www-form-urlencoded' },\n                                  body: new URLSearchParams({\n                                      action: 'fetch_bookings_for_home',\n                                      home: selectedHome,\n                                      year: nextYear,\n                                      month: nextMonth,\n                                  }),\n                              })\n                                  .then((response) => response.json())\n                                  .then((nextMonthData) => {\n                                      if (nextMonthData.success) {\n                                          const nextMonthBookings = nextMonthData.data;\n                                          const allBookings = [...bookings, ...nextMonthBookings];\n                                          daysToRent.innerHTML = \"\";\n\n                                          \/\/ Determine first day of the current month\n                                          const firstDayOfMonth = new Date(selectedYear, selectedMonth - 1, 1);\n                                          const firstWeekday = firstDayOfMonth.getDay(); \/\/ Get the starting day (0 = Sunday)\n\n                                          \/\/ Adjust to make Monday the first day of the week\n                                          const adjustedFirstWeekday = firstWeekday === 0 ? 6 : firstWeekday - 1;\n\n                                          \/\/ Insert empty placeholders for alignment\n                                          for (let i = 0; i < adjustedFirstWeekday; i++) {\n                                              const emptyLi = document.createElement(\"li\");\n                                              emptyLi.classList.add(\"empty\");\n                                              daysToRent.appendChild(emptyLi);\n                                          }\n\n                                          \/\/ Loop through the days of the current month\n                                          for (let day = 1; day <= daysInMonth; day++) {\n                                              const li = document.createElement(\"li\");\n                                              const yearMonthDay = `${selectedYear}-${selectedMonth.toString().padStart(2, '0')}-${day.toString().padStart(2, '0')}`;\n                                              li.setAttribute(\"data-day\", day);\n                                              li.setAttribute(\"data-month\", selectedMonth);\n                                              li.setAttribute(\"data-year\", selectedYear);\n                                              li.textContent = day;\n\n                                              const currentDate = new Date(selectedYear, selectedMonth - 1, day);\n                                              currentDate.setHours(0, 0, 0, 0);\n\n                                              \/\/ Check if the day is booked from the DB (for both current and next month)\n                                              const isBooked = allBookings.some((booking) => {\n                                                  const startDate = new Date(booking.start_date);\n                                                  const endDate = new Date(booking.end_date);\n                                                  startDate.setHours(0, 0, 0, 0);\n                                                  endDate.setHours(23, 59, 59, 999);\n\n                                                  return currentDate >= startDate && currentDate <= endDate;\n                                              });\n\n                                              if (isBooked) {\n                                                  li.classList.add(\"booked\");\n                                              }\n\n                                              \/\/ Check if the day is booked from Google Calendar\n                                              if (bookedGoogleCalendarDays.includes(yearMonthDay)) {\n                                                  li.classList.add(\"booked\");\n                                              }\n\n                                              daysToRent.appendChild(li);\n                                          }\n\n                                          \/\/ Handle the next month's days (display them)\n                                          const nextMonthDaysInMonth = new Date(nextYear, nextMonth, 0).getDate(); \/\/ Get days in next month\n                                          const nextMonthFirstDay = new Date(nextYear, nextMonth - 1, 1);\n                                          const nextMonthFirstWeekday = nextMonthFirstDay.getDay();\n                                          const adjustedNextMonthFirstWeekday = nextMonthFirstWeekday === 0 ? 6 : nextMonthFirstWeekday - 1;\n\n                                          \/\/ Loop through the next month's days\n                                          for (let day = 1; day <= nextMonthDaysInMonth; day++) {\n                                              const li = document.createElement(\"li\");\n                                              const yearMonthDay = `${nextYear}-${nextMonth.toString().padStart(2, '0')}-${day.toString().padStart(2, '0')}`;\n                                              li.setAttribute(\"data-day\", day);\n                                              li.setAttribute(\"data-month\", selectedMonth + 1);\n                                              li.setAttribute(\"data-year\", selectedYear);\n                                              li.textContent = day;\n\n                                              const currentDate = new Date(nextYear, nextMonth - 1, day);\n                                              currentDate.setHours(0, 0, 0, 0);\n\n                                              \/\/ Check if the day is booked from the DB\n                                              const isBooked = nextMonthBookings.some((booking) => {\n                                                  const startDate = new Date(booking.start_date);\n                                                  const endDate = new Date(booking.end_date);\n                                                  startDate.setHours(0, 0, 0, 0);\n                                                  endDate.setHours(23, 59, 59, 999);\n\n                                                  return currentDate >= startDate && currentDate <= endDate;\n                                              });\n\n                                              if (isBooked) {\n                                                  li.classList.add(\"booked\");\n                                              }\n\n                                              \/\/ Check if the day is booked from Google Calendar\n                                              if (bookedGoogleCalendarDays.includes(yearMonthDay)) {\n                                                  li.classList.add(\"booked\");\n                                              }\n\n                                              daysToRent.appendChild(li);\n                                          }\n                                      } else {\n                                          console.error(nextMonthData.data || \"Geen boekingen voor de volgende maand gevonden.\");\n                                      }\n                                  })\n                                  .catch((error) => console.error(\"Error fetching next month's bookings:\", error));\n                          } else {\n                              console.error(data.data || \"Geen boekingen gevonden.\");\n                          }\n                      })\n                      .catch((error) => console.error(\"Error fetching bookings:\", error));\n              });\n          }\n\n          monthSelect.addEventListener(\"change\", updateCalendar);\n          yearSelect.addEventListener(\"change\", updateCalendar);\n\n          updateCalendar();\n\n          function changeExtraPersons(event) {\n              console.log(event.target.value)\n              if (event.target.value == 1) {\n                  document.getElementById(\"person_2\").style.display = \"none\";\n                  document.getElementById(\"person_3\").style.display = \"none\";\n                  document.getElementById(\"person_4\").style.display = \"none\";\n                  document.getElementById(\"person_5\").style.display = \"none\";\n                  document.getElementById(\"person_6\").style.display = \"none\";\n              }\n\n              if (event.target.value == 2) {\n                  document.getElementById(\"person_2\").style.display = \"block\";\n                  document.getElementById(\"person_3\").style.display = \"none\";\n                  document.getElementById(\"person_4\").style.display = \"none\";\n                  document.getElementById(\"person_5\").style.display = \"none\";\n                  document.getElementById(\"person_6\").style.display = \"none\";\n              }\n\n              if (event.target.value == 3) {\n                  document.getElementById(\"person_2\").style.display = \"block\";\n                  document.getElementById(\"person_3\").style.display = \"block\";\n                  document.getElementById(\"person_4\").style.display = \"none\";\n                  document.getElementById(\"person_5\").style.display = \"none\";\n                  document.getElementById(\"person_6\").style.display = \"none\";\n              }\n\n              if (event.target.value == 4) {\n                  document.getElementById(\"person_2\").style.display = \"block\";\n                  document.getElementById(\"person_3\").style.display = \"block\";\n                  document.getElementById(\"person_4\").style.display = \"block\";\n                  document.getElementById(\"person_5\").style.display = \"none\";\n                  document.getElementById(\"person_6\").style.display = \"none\";\n              }\n\n              if (event.target.value == 5) {\n                  document.getElementById(\"person_2\").style.display = \"block\";\n                  document.getElementById(\"person_3\").style.display = \"block\";\n                  document.getElementById(\"person_4\").style.display = \"block\";\n                  document.getElementById(\"person_5\").style.display = \"block\";\n                  document.getElementById(\"person_6\").style.display = \"none\";\n              }\n\n              if (event.target.value == 6) {\n                  document.getElementById(\"person_2\").style.display = \"block\";\n                  document.getElementById(\"person_3\").style.display = \"block\";\n                  document.getElementById(\"person_4\").style.display = \"block\";\n                  document.getElementById(\"person_5\").style.display = \"block\";\n                  document.getElementById(\"person_6\").style.display = \"block\";\n              }\n\n              changePrice();\n          }\n\n          \/\/\n          \/\/ Calendar\n          \/\/\n          function getMinAndMaxDaysFromString(input) {\n              const numbersFromString = String(input).split(',').map(Number);\n              const minNumber = Math.min(...numbersFromString);\n              const maxNumber = Math.max(...numbersFromString);\n\n              return {minNumber, maxNumber}\n          }\n\n          function calculateHeatingCosts(startDate, endDate, pricePerNight) {\n              const start = new Date(startDate);\n              const end = new Date(endDate);\n              const winterMonths = [10, 11, 12, 1, 2, 3, 4];\n              let totalNights = 0;\n\n              while (start < end) {\n                  const month = start.getMonth() + 1;\n                  if (winterMonths.includes(month)) {\n                      totalNights++;\n                  }\n                  start.setDate(start.getDate() + 1);\n              }\n\n              return totalNights * pricePerNight;\n          }\n\n                    \n            function calculateExtraPriceForChild(birthdate, teenPrice) {\n            if (!birthdate || birthdate === \"0000-00-00\") {\n                return 0; \/\/ fallback\n            }\n\n            const birthDate = new Date(birthdate);\n            const today = new Date();\n            let age = today.getFullYear() - birthDate.getFullYear();\n\n            if (today.getMonth() < birthDate.getMonth()) {\n                age--;\n            } else {\n                if (today.getMonth() === birthDate.getMonth()) {\n                if (today.getDate() < birthDate.getDate()) {\n                    age--;\n                }\n                }\n            }\n\n            if (age <= 3) {\n                return 0; \/\/ Free\n            } else {\n                if (age >= 4) {\n                if (age <= 14) {\n                    return teenPrice; \/\/ Price for child\/teen\n                } else {\n                    return 10; \/\/ Adult price\n                }\n                }\n            }\n\n            return 0; \/\/ fallback, mocht niets matchen\n            }\n\n          function changePrice() {\n              const selectHome = document.getElementById('home');\n              var homeMaxPersons = (selectHome.options[selectHome.selectedIndex]).dataset.persons;\n\n              const selectAmountPersons = document.getElementById('amount_persons');\n              const optionThree = selectAmountPersons.querySelector('option[value=\"3\"]');\n              const optionFour = selectAmountPersons.querySelector('option[value=\"4\"]');\n              const optionFive = selectAmountPersons.querySelector('option[value=\"5\"]');\n              const optionSix = selectAmountPersons.querySelector('option[value=\"6\"]');\n\n              if (optionThree) {\n                  if (homeMaxPersons >= 3) {\n                      optionThree.style.display = 'block';\n                  } else {\n                      optionThree.style.display = 'none';\n                  }\n              }\n\n              if (optionFour) {\n                  if (homeMaxPersons >= 4) {\n                      optionFour.style.display = 'block';\n                  } else {\n                      optionFour.style.display = 'none';\n                  }\n              }\n\n              if (optionFive) {\n                  if (homeMaxPersons >= 5) {\n                      optionFive.style.display = 'block';\n                  } else {\n                      optionFive.style.display = 'none';\n                  }\n              }\n\n              if (optionSix) {\n                  if (homeMaxPersons == 6) {\n                      optionSix.style.display = 'block';\n                  } else {\n                      optionSix.style.display = 'none';\n                  }\n              }\n              var homePrice = (selectHome.options[selectHome.selectedIndex]).dataset.price;\n              var selectedDaysInput = (document.getElementById('selected_days').value).split(',');\n\n              document.getElementById('amount_days').value = selectedDaysInput.length - 1;\n                var animals = 0;\n                var childChair = 0;\n                var childBed = 0;\n            \n\n              if (document.getElementById('amount_persons').value == 3) {\n                  var extraPeoplePrice = 10;\n              } else if (document.getElementById('amount_persons').value == 4) {\n                  var extraPeoplePrice = 20;\n              } else if (document.getElementById('amount_persons').value == 5) {\n                  var extraPeoplePrice = 30;\n              } else if (document.getElementById('amount_persons').value == 6) {\n                  var extraPeoplePrice = 40;\n              } else {\n                  var extraPeoplePrice = 0;\n              }\n\n              function calculateAge(birthdate) {\n                  if (!birthdate) {\n                      return 0;\n                  }\n\n                  if (!birthdate || birthdate === \"0000-00-00\") {\n                    return 15;\n                  }\n\n                  const birthDate = new Date(birthdate);\n                  const today = new Date();\n                  const yearDifference = today.getFullYear() - birthDate.getFullYear();\n                  const monthDifference = today.getMonth() - birthDate.getMonth();\n                  const dayDifference = today.getDate() - birthDate.getDate();\n\n                  return yearDifference;\n              }\n\n              \/\/ Helper function to calculate age reduction\n              function calculateAgeReduction(birthdate) {\n                  if (!birthdate) {\n                      return 0;\n                  }\n\n                  const birthDate = new Date(birthdate);\n                  const today = new Date();\n                  let age = today.getFullYear() - birthDate.getFullYear();\n\n                  \/\/ Adjust age if the birthday hasn't occurred yet this year\n                  if (today.getMonth() < birthDate.getMonth()) {\n                      age--;\n                  } else {\n                      if (today.getMonth() === birthDate.getMonth()) {\n                          if (today.getDate() < birthDate.getDate()) {\n                              age--;\n                          }\n                      }\n                  }\n\n                  if (age < 14) {\n                      return 10; \/\/ TODO make it change to setting child price\n                  } else {\n                      return 0;\n                  }\n              }\n\n              \/\/ Get birthdates\n              const birthdateSecond = document.getElementById('birthdate_second').value;\n              const birthdateThirth = document.getElementById('birthdate_thirth').value;\n              const birthdateFourth = document.getElementById('birthdate_fourth').value;\n              const birthdateFifth = document.getElementById('birthdate_fifth').value;\n              const birthdateSix = document.getElementById('birthdate_sixth').value;\n\n              let ageReductionSecond = calculateAgeReduction(birthdateSecond);\n              let ageReductionThirth = calculateAgeReduction(birthdateThirth);\n              let ageReductionFourth = calculateAgeReduction(birthdateFourth);\n              let ageReductionFifth = calculateAgeReduction(birthdateFifth);\n              let ageReductionSix = calculateAgeReduction(birthdateSix);\n\n              let priceOfTax = 2.1;\n\n              console.log(\"TAX: \" + priceOfTax);\n\n                if (calculateAge(birthdateSecond) >= 14) {\n                    priceOfTax += 2.1;\n                }\n\n                if (calculateAge(birthdateThirth) >= 14) {\n                    priceOfTax += 2.1;\n                }\n\n                if (calculateAge(birthdateFourth) >= 14) {\n                    priceOfTax += 2.1;\n                }\n\n                if (calculateAge(birthdateFifth) >= 14) {\n                    priceOfTax += 2.1;\n                }\n\n                if (calculateAge(birthdateSix) >= 14) {\n                    priceOfTax += 2.1;\n                }\n\n              priceOfTax = priceOfTax.toString().match(\/^-?\\d+(?:\\.\\d{0,2})?\/)[0];\n              console.log('Tax: ' + priceOfTax);\n\n\n              const heatingCost = calculateHeatingCosts(\n                  document.getElementById('start_date').value,\n                  document.getElementById('end_date').value,\n                  10, \/\/ Price\n              );\n\n              document.getElementById('extra_cost_heating').value = heatingCost;\n\n              console.log(`Totale extra stookkosten: ?${heatingCost}`);\n\n              console.log(\"home price: \" + homePrice);\n              var homePricePerDay = homePrice;\n              var selectedDays = selectedDaysInput.length;\n\n              const startDate = new Date(document.getElementById('start_date').value);\n              const endDate = new Date(document.getElementById('end_date').value);\n              startDate.setHours(0, 0, 0, 0);\n              endDate.setHours(0, 0, 0, 0);\n\n              if (startDate > endDate) {\n                  const temp = startDate;\n                  startDate = endDate;\n                  endDate = temp;\n              }\n\n              const timeDifference = endDate - startDate;\n              const dayDifference = timeDifference \/ (1000 * 60 * 60 * 24);\n              const nights = Math.round(Math.max(dayDifference, 0));\n\n              console.log('Nights: ' + nights);\n\n              document.getElementById('amount_days').value = nights;\n              document.getElementById('extra_cost_tax').value = (Number(priceOfTax) * Number(nights));\n\n\n              console.log(\"Dog: \" + animals * nights);\n              console.log(\"Child Bed: \" + Number(childBed));\n              console.log(\"Child Chair: \" + Number(childChair));\n              console.log(\"Home Price total: \" + (Number(homePricePerDay) * Number(nights)));\n              console.log(\"Selected nights: \" + nights);\n              console.log(\"Heating Cost: \" + Number(heatingCost));\n              console.log(\"Extra People Price: \" + Number(extraPeoplePrice));\n              console.log(\"Tax: \" + Number(priceOfTax.toString().match(\/^-?\\d+(?:\\.\\d{0,2})?\/)[0] * (nights)));\n\n              if (nights > 1 && nights <= 2) {\n                  var extraCleaningPrice = 40;\n                  console.log(\"Extra Cleaning: \" + Number(extraCleaningPrice));\n                  document.getElementById('extra_cost_cleaning').value = Number(extraCleaningPrice);\n                  document.getElementById('extra_cleaning_cost_popup').style.display = 'block';\n              }\n\n              if (nights > 2) {\n                  var extraCleaningPrice = 0;\n                  console.log(\"Extra Cleaning: \" + Number(extraCleaningPrice));\n                  document.getElementById('extra_cost_cleaning').value = Number(extraCleaningPrice);\n                  document.getElementById('extra_cleaning_cost_popup').style.display = 'none';\n              }\n              console.log('Extra people price times nights: ' + (Number(extraPeoplePrice) * Number(nights)));\n\n\n                \/\/ Opties prijs\n                const optionCheckboxes = document.querySelectorAll('input[name=\"paid_options[]\"]:checked');\n                let optionsTotal = 0;\n                optionCheckboxes.forEach(cb => {\n                    const price = Number(cb.value);\n                    const type = cb.dataset.type; \/\/ 'per_night' of 'one_time'\n                    if (type === 'per_night') {\n                        optionsTotal += price * nights;\n                    } else {\n                        optionsTotal += price; \n                    }\n                });\n\n              const childPrice = \"5\";\n\n              console.log(\"Kinderen (0 tot 13): \", childPrice);\n\n\n              var adultCount = 0;\n\n              function calculateExtraPriceForPerson(birthdate, teenPrice, nights) {\n                  if (!birthdate || birthdate === \"0000-00-00\") {\n                      return 0;\n                  }\n\n                  var birthDate = new Date(birthdate);\n                  var today = new Date();\n                  var age = today.getFullYear() - birthDate.getFullYear();\n\n                  if (today.getMonth() < birthDate.getMonth()) {\n                      age--;\n                  } else if (today.getMonth() === birthDate.getMonth()) {\n                      if (today.getDate() < birthDate.getDate()) {\n                          age--;\n                      }\n                  }\n\n                  if (age <= 3) {\n                      return 0; \/\/ Gratis\n                  } else if (age >= 4 && age < 18) {\n                      return teenPrice; \/\/ Kind\/teen\n                  } else { \/\/ Volwassene\n                      if (adultCount === 0) {\n                          adultCount++; \/\/ Eerste volwassene gratis\n                          return 0;\n                      } else {\n                          return 10; \/\/ Overige volwassenen\n                      }\n                  }\n              }\n\n              const teenPrice = 10;\n              \/\/ let priceSecond = calculateExtraPriceForChild(birthdateSecond, childPrice);\n              adultCount = 0;\n\n              let priceSecond  = calculateExtraPriceForPerson(birthdateSecond, childPrice, nights);\n              let priceThird   = calculateExtraPriceForPerson(birthdateThirth, childPrice, nights);\n              let priceFourth  = calculateExtraPriceForPerson(birthdateFourth, childPrice, nights);\n              let priceFifth   = calculateExtraPriceForPerson(birthdateFifth, childPrice, nights);\n              let priceSixth   = calculateExtraPriceForPerson(birthdateSix, childPrice, nights);\n\n              console.log(\"============ prijzen ==============\")\n              console.log(\"huis prijs x nachten:\", (Number(homePricePerDay)) * (Number(nights) || 1));\n                console.log(\"belasting x nachten:\", (Number(priceOfTax) || 0) * (Number(nights) || 0));\n                console.log(\"dieren x nachten:\", (Number(animals) || 0) * (Number(nights) || 0));\n                console.log(\"kinderbed:\", Number(childBed) || 0);\n                console.log(\"kinderstoel:\", Number(childChair) || 0);\n                console.log(\"verwarming:\", Number(heatingCost) || 0);\n                \/\/ console.log(\"extra personen x nachten:\", (Number(extraPeoplePrice) || 0) * Number(nights));\n                console.log(\"tweede persoon x nachten:\", (Number(priceSecond || 0)) * Number(nights));\n                console.log(\"derde persoon x nachten:\", (Number(priceThird || 0)) * Number(nights));\n                console.log(\"vierde persoon x nachten:\", (Number(priceFourth || 0)) * Number(nights));\n                console.log(\"vijfde persoon x nachten:\", (Number(priceFifth || 0)) * Number(nights));\n                console.log(\"zesde persoon x nachten:\", (Number(priceSixth || 0)) * Number(nights));\n                console.log(\"extra schoonmaak:\", Number(extraCleaningPrice) || 0);\n                console.log(\"opties totaal:\", optionsTotal);\n                console.log(\"extraCleaningPrice: \", extraCleaningPrice)\n                \n              var totalHomePrice =\n                  (Number(homePricePerDay)) * (Number(nights) || 1) +\n                  (Number(priceOfTax) || 0) * (Number(nights) || 0) +\n                  (Number(animals) || 0) * (Number(nights) || 0) +\n                  (Number(childBed) || 0) +\n                  (Number(childChair) || 0) +\n                  (Number(heatingCost) || 0) +\n                  \/\/(Number(extraPeoplePrice) * Number(nights)) +\n                  (Number(priceSecond || 0) * Number(nights)) +\n                  (Number(priceThird || 0) * Number(nights)) +\n                  (Number(priceFourth || 0) * Number(nights)) +\n                  (Number(priceFifth || 0) * Number(nights)) +\n                  (Number(priceSixth || 0) * Number(nights)) +\n                  (Number(extraCleaningPrice) || 0) +\n                  optionsTotal;\n\n              totalHomePrice = totalHomePrice.toString();\n              totalHomePrice = totalHomePrice.replace('.', ',');\n\n              if (totalHomePrice.includes(',')) {\n                  let parts = totalHomePrice.split(',');\n                  parts[1] = parts[1].padEnd(2, '0');\n                  totalHomePrice = parts.join(',');\n              } else {\n                  totalHomePrice = totalHomePrice + ',-';\n              }\n\n              document.getElementById('total_price').innerHTML = totalHomePrice;\n              document.getElementById('total_price_hidden').value = totalHomePrice;\n          }\n\n          function showHideIdFirst() {\n              if (document.getElementById('nationality').value != 'GE') {\n                  document.getElementById('id_number_first').style.display = 'block';\n              } else {\n                  document.getElementById('id_number_first').style.display = 'none';\n              }\n          }\n\n          function showHideIdSecond() {\n              if (document.getElementById('nationality_person_2').value != 'GE') {\n                  document.getElementById('id_number_second').style.display = 'block';\n              } else {\n                  document.getElementById('id_number_second').style.display = 'none';\n              }\n          }\n\n          function showHideIdThirth() {\n              if (document.getElementById('nationality_person_3').value != 'GE') {\n                  document.getElementById('id_number_thirth').style.display = 'block';\n              } else {\n                  document.getElementById('id_number_thirth').style.display = 'none';\n              }\n          }\n\n          function showHideIdFourth() {\n              if (document.getElementById('nationality_person_4').value != 'GE') {\n                  document.getElementById('id_number_fourth').style.display = 'block';\n              } else {\n                  document.getElementById('id_number_fourth').style.display = 'none';\n              }\n          }\n\n          function showHideIdFifth() {\n              if (document.getElementById('nationality_person_5').value != 'GE') {\n                  document.getElementById('id_number_fourth').style.display = 'block';\n              } else {\n                  document.getElementById('id_number_fourth').style.display = 'none';\n              }\n          }\n\n          function showHideIdSix() {\n              if (document.getElementById('nationality_person_6').value != 'GE') {\n                  document.getElementById('id_number_fourth').style.display = 'block';\n              } else {\n                  document.getElementById('id_number_fourth').style.display = 'none';\n              }\n          }\n\n          \/\/ On booking form submit\n          \/\/\n          document.addEventListener(\"DOMContentLoaded\", function () {\n              const bookingForm = document.querySelector(\"form\");\n              const submitButton = document.querySelector(\"button[name='booking_form_submit']\");\n              const startDateInput = document.getElementById(\"start_date\");\n              const endDateInput = document.getElementById(\"end_date\");\n              const currentLang = document.getElementById('current_lang');\n\n              submitButton.addEventListener(\"click\", function (event) {\n                  const startDate = new Date(startDateInput.value);\n                  const endDate = new Date(endDateInput.value);\n                  const home = document.getElementById('home');\n\n                  if (home.value === '') {\n                      alert('Please select a home!');\n                      event.preventDefault();\n                      return;\n                  }\n\n                  if (isNaN(startDate) || isNaN(endDate)) {\n                      if (currentLang === 'nl') {\n                          alert('Please select both a start and end date.');\n                      } else {\n                          alert('Please select both a start and end date.');\n                      }\n                      event.preventDefault();\n                      return;\n                  }\n\n                  console.log(startDate, endDate);\n                  startDate.setHours(0, 0, 0, 0);\n                  endDate.setHours(0, 0, 0, 0);\n\n                  if (startDate.getTime() === endDate.getTime()) {\n                      console.log('debug 1')\n                      if (currentLang === 'nl') {\n                          alert('Incorrecte datum ingevuld!');\n                      } else {\n                          alert('Datum falsch eingegeben!');\n                      }\n                      event.preventDefault();\n                  }\n\n                  const timeDifference = endDate - startDate;\n                  const dayDifference = timeDifference \/ (1000 * 60 * 60 * 24); \/\/ Convert ms to days\n\n                  \/\/ It's cringe because WordPress f*cks up the AND operator in this codebase\n                  if (startDate < new Date()) {\n                      if (endDate <= new Date()) {\n                          console.log('debug 2')\n                          if (currentLang === 'nl') {\n                              alert('Incorrecte datum ingevuld!');\n                          } else {\n                              alert('Datum falsch eingegeben!');\n                          }\n                          event.preventDefault();\n                          return;\n                      }\n                  }\n                  const nights = Math.max(Math.round(dayDifference), 0);\n                  if (nights < 2 ) {\n                      console.log('debug 3')\n                      if (currentLang === 'nl') {\n                          alert('Incorrecte datum ingevuld!');\n                      } else {\n                          alert('Datum falsch eingegeben!');\n                      }\n                      event.preventDefault();\n                  }\n              });\n          });\n\n          function fetchBookingsFromGoogleCalendar() {\n              const home = document.getElementById('home').value;\n              const selectedYear = document.getElementById('year-select').value;\n              const selectedMonth = document.getElementById('month-select').value;\n              const ajaxurl = \"https:\/\/hanninkhof.de\/wp-admin\/admin-ajax.php\";\n\n              return fetch(ajaxurl, {\n                  method: 'POST',\n                  headers: {'Content-Type': 'application\/x-www-form-urlencoded'},\n                  body: new URLSearchParams({\n                      action: 'fetch_bookings_from_calendar_by_home_name',\n                      home: `${home}`,\n                      year: selectedYear,\n                      month: selectedMonth,\n                  }),\n              })\n                  .then(response => {\n                      if (!response.ok) {\n                          throw new Error('Network response was not ok');\n                      }\n                      return response.json();\n                  })\n                  .then(data => {\n                      console.log(data)\n                      if (data.success) {\n                          var bookedDates = [];\n                          for (let date of data.data) {\n                              bookedDates.push(date);\n                          }\n                          return bookedDates;\n                      } else {\n                          return [];\n                      }\n                  })\n                  .catch(error => {\n                      console.error('Error fetching bookings:', error);\n                      throw error;\n                  });\n          }\n\n          document.getElementById('booking-form').addEventListener('submit', function (e) {\n              const amount = parseInt(document.getElementById('amount_persons').value, 10);\n\n              if (isNaN(amount) || amount < 2) return;\n\n              const birthdateIds = [\n                  'birthdate_second',\n                  'birthdate_thirth',\n                  'birthdate_fourth',\n                  'birthdate_fifth',\n                  'birthdate_sixth'\n              ];\n\n              for (let i = 0; i < amount - 1; i++) {\n                  const input = document.getElementById(birthdateIds[i]);\n                  if (!input || input.value.trim() === '') {\n                      e.preventDefault();\n                      alert(`Vul alstublieft geboortedatum in voor persoon ${i + 2}.`);\n                      input.focus();\n                      return;\n                  }\n              }\n          });\n      <\/script>\n    <\/pre>\n<p>    <script src=\"https:\/\/cdn.jsdelivr.net\/npm\/bootstrap@5.2.3\/dist\/js\/bootstrap.bundle.min.js\"\n            integrity=\"sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK\/7HAuoJl+0I4\"\n            crossorigin=\"anonymous\"><\/script>\n    <\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-21","page","type-page","status-publish","hentry"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/hanninkhof.de\/index.php?rest_route=\/wp\/v2\/pages\/21","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hanninkhof.de\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/hanninkhof.de\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/hanninkhof.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hanninkhof.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=21"}],"version-history":[{"count":6,"href":"https:\/\/hanninkhof.de\/index.php?rest_route=\/wp\/v2\/pages\/21\/revisions"}],"predecessor-version":[{"id":2088,"href":"https:\/\/hanninkhof.de\/index.php?rest_route=\/wp\/v2\/pages\/21\/revisions\/2088"}],"wp:attachment":[{"href":"https:\/\/hanninkhof.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}