{"id":1213,"date":"2026-07-15T12:55:58","date_gmt":"2026-07-15T12:55:58","guid":{"rendered":"https:\/\/mongers.de\/?page_id=1213"},"modified":"2026-07-15T13:01:41","modified_gmt":"2026-07-15T13:01:41","slug":"altersnachweis","status":"publish","type":"page","link":"https:\/\/mongers.de\/?page_id=1213","title":{"rendered":"Altersnachweis"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"1213\" class=\"elementor elementor-1213\">\n\t\t\t\t<div class=\"elementor-element elementor-element-a0cf283 e-flex e-con-boxed e-con e-parent\" data-id=\"a0cf283\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-09c4505 elementor-widget elementor-widget-html\" data-id=\"09c4505\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<div class=\"age-check\">\r\n  <h2>Alterspr\u00fcfung<\/h2>\r\n  <p>Bitte gib dein Geburtsdatum ein.<\/p>\r\n\r\n  <form id=\"age-check-form\">\r\n    <label for=\"birthdate\">Geburtsdatum<\/label>\r\n    <input\r\n      type=\"date\"\r\n      id=\"birthdate\"\r\n      name=\"birthdate\"\r\n      required\r\n    >\r\n\r\n    <button type=\"submit\">Alter best\u00e4tigen<\/button>\r\n  <\/form>\r\n\r\n  <p id=\"age-message\" role=\"alert\"><\/p>\r\n<\/div>\r\n\r\n<style>\r\n  .age-check {\r\n    max-width: 420px;\r\n    margin: 40px auto;\r\n    padding: 30px;\r\n    border: 1px solid #ddd;\r\n    border-radius: 12px;\r\n    background: #fff;\r\n    font-family: Arial, sans-serif;\r\n  }\r\n\r\n  .age-check h2 {\r\n    margin-top: 0;\r\n  }\r\n\r\n  .age-check label {\r\n    display: block;\r\n    margin-bottom: 8px;\r\n    font-weight: 600;\r\n  }\r\n\r\n  .age-check input,\r\n  .age-check button {\r\n    box-sizing: border-box;\r\n    width: 100%;\r\n    padding: 12px;\r\n    border-radius: 6px;\r\n  }\r\n\r\n  .age-check input {\r\n    margin-bottom: 15px;\r\n    border: 1px solid #bbb;\r\n  }\r\n\r\n  .age-check button {\r\n    border: 0;\r\n    cursor: pointer;\r\n    background: #222;\r\n    color: #fff;\r\n    font-weight: 600;\r\n  }\r\n\r\n  #age-message {\r\n    margin-bottom: 0;\r\n    font-weight: 600;\r\n  }\r\n<\/style>\r\n\r\n<script>\r\n  const form = document.getElementById(\"age-check-form\");\r\n  const birthdateInput = document.getElementById(\"birthdate\");\r\n  const message = document.getElementById(\"age-message\");\r\n\r\n   const todayForInput = new Date();\r\n  birthdateInput.max = [\r\n    todayForInput.getFullYear(),\r\n    String(todayForInput.getMonth() + 1).padStart(2, \"0\"),\r\n    String(todayForInput.getDate()).padStart(2, \"0\")\r\n  ].join(\"-\");\r\n\r\n  form.addEventListener(\"submit\", function (event) {\r\n    event.preventDefault();\r\n\r\n    if (!birthdateInput.value) {\r\n      message.textContent = \"Bitte gib dein Geburtsdatum ein.\";\r\n      return;\r\n    }\r\n\r\n    const [year, month, day] = birthdateInput.value\r\n      .split(\"-\")\r\n      .map(Number);\r\n\r\n    const birthdate = new Date(year, month - 1, day);\r\n    const today = new Date();\r\n\r\n    const cutoffDate = new Date(\r\n      today.getFullYear() - 18,\r\n      today.getMonth(),\r\n      today.getDate()\r\n    );\r\n\r\n    if (birthdate <= cutoffDate) {\r\n      message.textContent = \"Alterspr\u00fcfung erfolgreich. Du wirst weitergeleitet.\";\r\n\r\n  \r\n   window.location.href = \"https:\/\/mongers.de\/\";\r\n    } else {\r\n      message.textContent =\r\n        \"Der Zugriff ist erst ab einem Alter von 18 Jahren gestattet.\";\r\n    }\r\n  });\r\n<\/script>\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":"<p>Alterspr\u00fcfung Bitte gib dein Geburtsdatum ein. Geburtsdatum Alter best\u00e4tigen<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_canvas","meta":{"footnotes":""},"class_list":["post-1213","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mongers.de\/index.php?rest_route=\/wp\/v2\/pages\/1213","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mongers.de\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/mongers.de\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/mongers.de\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/mongers.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1213"}],"version-history":[{"count":10,"href":"https:\/\/mongers.de\/index.php?rest_route=\/wp\/v2\/pages\/1213\/revisions"}],"predecessor-version":[{"id":1225,"href":"https:\/\/mongers.de\/index.php?rest_route=\/wp\/v2\/pages\/1213\/revisions\/1225"}],"wp:attachment":[{"href":"https:\/\/mongers.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}