{"id":4592,"date":"2025-09-11T14:16:31","date_gmt":"2025-09-11T12:16:31","guid":{"rendered":"https:\/\/m-petfilm.belowski.com\/film-calculator\/"},"modified":"2026-02-26T09:31:27","modified_gmt":"2026-02-26T08:31:27","slug":"film-calculator","status":"publish","type":"page","link":"https:\/\/www.m-petfilm.de\/en\/service\/film-calculator\/","title":{"rendered":"Film calculator"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"4592\" class=\"elementor elementor-4592 elementor-1566\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-e966c90 e-flex e-con-boxed e-con e-parent\" data-id=\"e966c90\" 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-8134778 elementor-widget elementor-widget-html\" data-id=\"8134778\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<script>document.getElementById(\"barrierefolien\").setAttribute(\"aria-selected\", \"true\");\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-bf94317 e-flex e-con-boxed e-con e-parent\" data-id=\"bf94317\" 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\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-7f48dd2 e-flex e-con-boxed e-con e-parent\" data-id=\"7f48dd2\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<!-- hidden widget 4592-87a1a20 -->\t\t<div class=\"elementor-element elementor-element-6b20665 dc-has-condition dc-condition-contains elementor-widget elementor-widget-shortcode\" data-id=\"6b20665\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">\t<div class=\"folienrechner-wrapper\" data-lang=\"en\">\n\t\t<form class=\"folienrechner-form\" onsubmit=\"return false;\">\n\t\t\t<fieldset>\n\t\t\t\t<div class=\"fr-row\">\n\t\t\t\t\t<div class=\"fr-col-label\">\n\t\t\t\t\t\t<label for=\"type\">Value to calculate:<\/label>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div class=\"fr-col-input\">\n\t\t\t\t\t\t<select id=\"type\" name=\"type\" onchange=\"fr_load_mask(this.value, document.getElementById('units').value)\">\n\t\t\t\t\t\t\t<option value=\"rollengewicht\" selected>Rollweight<\/option>\n\t\t\t\t\t\t\t<option value=\"folienlaenge\">Filmlength (over Width\/Weight)<\/option>\n\t\t\t\t\t\t\t<option value=\"folienlaenge-via-durchmesser\">Filmlength (over Rolldiameter)<\/option>\n\t\t\t\t\t\t\t<option value=\"folienflaeche\">Filmarea<\/option>\n\t\t\t\t\t\t\t<option value=\"foliendicke\">Filmthickness<\/option>\n\t\t\t\t\t\t\t<option value=\"rollenbreite\">Rollwidth<\/option>\n\t\t\t\t\t\t\t<option value=\"rollendurchmesser\">Rolldiameter<\/option>\n\t\t\t\t\t\t<\/select>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"fr-row\">\n\t\t\t\t\t<div class=\"fr-col-label\">\n\t\t\t\t\t\t<label for=\"units\">Units:<\/label>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div class=\"fr-col-input\">\n\t\t\t\t\t\t<select id=\"units\" name=\"units\" onchange=\"fr_load_units(this.value)\">\n\t\t\t\t\t\t\t<option value=\"euro\" >European units<\/option>\n\t\t\t\t\t\t\t<option value=\"american\"  selected='selected'>American units<\/option>\n\t\t\t\t\t\t<\/select>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/fieldset>\n\n\t\t\t<fieldset>\n\t\t\t\t<div class=\"fr-row fr-row-title\">\n\t\t\t\t\t<div class=\"fr-col-full\">\n\t\t\t\t\t\t<label>Your values:<\/label>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\n\t\t\t\t<div class=\"fr-row\" id=\"folienlaenge-text\">\n\t\t\t\t\t<div class=\"fr-col-label\">\n\t\t\t\t\t\t<label for=\"folienlaenge\">Filmlength (<span class=\"m\">m<\/span>)<\/label>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div class=\"fr-col-input\">\n\t\t\t\t\t\t<input type=\"text\" id=\"folienlaenge\" name=\"folienlaenge\">\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\n\t\t\t\t<div class=\"fr-row\" id=\"rollenbreite-text\">\n\t\t\t\t\t<div class=\"fr-col-label\">\n\t\t\t\t\t\t<label for=\"rollenbreite\">Rollwidth (<span class=\"mm\">mm<\/span>)<\/label>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div class=\"fr-col-input\">\n\t\t\t\t\t\t<input type=\"text\" id=\"rollenbreite\" name=\"rollenbreite\">\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\n\t\t\t\t<div class=\"fr-row\" id=\"rollengewicht-text\">\n\t\t\t\t\t<div class=\"fr-col-label\">\n\t\t\t\t\t\t<label for=\"rollengewicht\">Rollweight (<span class=\"kg\">kg<\/span>)<\/label>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div class=\"fr-col-input\">\n\t\t\t\t\t\t<input type=\"text\" id=\"rollengewicht\" name=\"rollengewicht\">\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\n\t\t\t\t<div class=\"fr-row\" id=\"foliendicke-text\">\n\t\t\t\t\t<div class=\"fr-col-label\">\n\t\t\t\t\t\t<label for=\"foliendicke\">Filmthickness (<span class=\"mu\">\u00b5m<\/span>)<\/label>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div class=\"fr-col-input\">\n\t\t\t\t\t\t<input type=\"text\" id=\"foliendicke\" name=\"foliendicke\">\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\n\t\t\t\t<div class=\"fr-row\" id=\"rollendurchmesser-text\">\n\t\t\t\t\t<div class=\"fr-col-label\">\n\t\t\t\t\t\t<label for=\"rollendurchmesser\">Rolldiameter (<span class=\"mm\">mm<\/span>)<\/label>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div class=\"fr-col-input\">\n\t\t\t\t\t\t<input type=\"text\" id=\"rollendurchmesser\" name=\"rollendurchmesser\">\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\n\t\t\t\t<div class=\"fr-row\" id=\"kernaussendurchmesser-text\">\n\t\t\t\t\t<div class=\"fr-col-label\">\n\t\t\t\t\t\t<label for=\"kernaussendurchmesser\">Outer Core Diameter (<span class=\"mm\">mm<\/span>)<\/label>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div class=\"fr-col-input\">\n\t\t\t\t\t\t<input type=\"text\" id=\"kernaussendurchmesser\" name=\"kernaussendurchmesser\">\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\n\t\t\t\t<div class=\"fr-row\" id=\"folienflaeche-text\">\n\t\t\t\t\t<div class=\"fr-col-label\">\n\t\t\t\t\t\t<label for=\"folienflaeche\">Filmarea (<span class=\"m2\">m\u00b2<\/span>)<\/label>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div class=\"fr-col-input\">\n\t\t\t\t\t\t<input type=\"text\" id=\"folienflaeche\" name=\"folienflaeche\">\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\n\t\t\t\t<div class=\"fr-row\" id=\"foliendichte-text\">\n\t\t\t\t\t<div class=\"fr-col-label\">\n\t\t\t\t\t\t<label for=\"dichte\">Filmdensity (<span class=\"gcm3\">g\/cm\u00b3<\/span>)<\/label>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div class=\"fr-col-input\">\n\t\t\t\t\t\t<input type=\"text\" id=\"dichte\" name=\"dichte\" value=\"1.4\">\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\n\t\t\t\t<div class=\"fr-row fr-row-button\">\n\t\t\t\t\t<div class=\"fr-col-full fr-right\">\n\t\t\t\t\t\t<button class=\"button small radius btn-gradient\"\n\t\t\t\t\t\t\t\tonclick=\"fr_calc_result(document.getElementById('type').value); return false;\">\n\t\t\t\t\t\t\tCalculate\t\t\t\t\t\t<\/button>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/fieldset>\n\n\t\t\t<fieldset>\n\t\t\t\t<div class=\"fr-row fr-row-title\">\n\t\t\t\t\t<div class=\"fr-col-full\">\n\t\t\t\t\t\t<label>Result:<\/label>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"fr-row\">\n\t\t\t\t\t<div class=\"fr-col-label\">\n\t\t\t\t\t\t<label id=\"result-text\">Please select the value to be determined.<\/label>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div class=\"fr-col-input\">\n\t\t\t\t\t\t<input type=\"text\" id=\"result\" name=\"solution\" readonly>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/fieldset>\n\n\t\t\t<input type=\"hidden\" id=\"units_select\" name=\"units_select\" value=\"american\">\n\t\t\t<input type=\"hidden\" id=\"ui_lang\" value=\"en\">\n\t\t<\/form>\n\n\t\t<script>\n\t\t\t\/\/ --- Texte f\u00fcr dynamische Ergebniszeile ---\n\t\t\tvar FR_TX = {\"de\":{\"res_folienlaenge\":\"Filmlength (<span class=\\\"m\\\">m<\\\/span>)\",\"res_rollengewicht\":\"Rollweight (<span class=\\\"kg\\\">kg<\\\/span>)\",\"res_folienflaeche\":\"Filmarea (<span class=\\\"m2\\\">m\u00b2<\\\/span>)\",\"res_foliendicke\":\"Filmthickness (<span class=\\\"mu\\\">\u00b5m<\\\/span>)\",\"res_rollenbreite\":\"Rollwidth (<span class=\\\"mm\\\">mm<\\\/span>)\",\"res_rollendurchmesser\":\"Rolldiameter (<span class=\\\"mm\\\">mm<\\\/span>)\"},\"en\":{\"res_folienlaenge\":\"Filmlength (<span class=\\\"m\\\">m<\\\/span>)\",\"res_rollengewicht\":\"Rollweight (<span class=\\\"kg\\\">kg<\\\/span>)\",\"res_folienflaeche\":\"Filmarea (<span class=\\\"m2\\\">m\u00b2<\\\/span>)\",\"res_foliendicke\":\"Filmthickness (<span class=\\\"mu\\\">\u00b5m<\\\/span>)\",\"res_rollenbreite\":\"Rollwidth (<span class=\\\"mm\\\">mm<\\\/span>)\",\"res_rollendurchmesser\":\"Rolldiameter (<span class=\\\"mm\\\">mm<\\\/span>)\"}};\n\n\t\t\tfunction fr_round_result(result, digits) {\n\t\t\t\tresult = (Math.round(result * 100) \/ 100).toFixed(digits);\n\t\t\t\treturn result;\n\t\t\t}\n\n\t\t\tfunction fr_disable_all() {\n\t\t\t\tvar fields = [\"folienlaenge\",\"rollenbreite\",\"rollengewicht\",\"foliendicke\",\"rollendurchmesser\",\"kernaussendurchmesser\",\"folienflaeche\",\"foliendichte\"];\n\t\t\t\tfor (var i=0;i<fields.length;i++){\n\t\t\t\t\tvar row = document.getElementById(fields[i] + \"-text\");\n\t\t\t\t\tif (row) row.classList.add(\"off\");\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tfunction fr_enable(fields) {\n\t\t\t\tfor (var i=0;i<fields.length;i++){\n\t\t\t\t\tvar row = document.getElementById(fields[i] + \"-text\");\n\t\t\t\t\tif (row) row.classList.remove(\"off\");\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tfunction fr_get_fields(selection) {\n\t\t\t\tvar lang = document.getElementById('ui_lang').value || 'de';\n\t\t\t\tvar resMap = {\n\t\t\t\t\t'folienlaenge'         : 'res_folienlaenge',\n\t\t\t\t\t'folienlaenge-via-durchmesser' : 'res_folienlaenge',\n\t\t\t\t\t'rollengewicht'        : 'res_rollengewicht',\n\t\t\t\t\t'folienflaeche'        : 'res_folienflaeche',\n\t\t\t\t\t'foliendicke'          : 'res_foliendicke',\n\t\t\t\t\t'rollenbreite'         : 'res_rollenbreite',\n\t\t\t\t\t'rollendurchmesser'    : 'res_rollendurchmesser'\n\t\t\t\t};\n\n\t\t\t\tvar fields;\n\t\t\t\tswitch (selection) {\n\t\t\t\t\tcase \"folienlaenge\": fields = [\"rollenbreite\",\"rollengewicht\",\"foliendicke\",\"foliendichte\"]; break;\n\t\t\t\t\tcase \"folienlaenge-via-durchmesser\": fields = [\"foliendicke\",\"rollendurchmesser\",\"kernaussendurchmesser\"]; break;\n\t\t\t\t\tcase \"rollengewicht\": fields = [\"folienlaenge\",\"rollenbreite\",\"foliendicke\",\"foliendichte\"]; break;\n\t\t\t\t\tcase \"folienflaeche\": fields = [\"rollengewicht\",\"foliendicke\",\"foliendichte\"]; break;\n\t\t\t\t\tcase \"foliendicke\": fields = [\"rollengewicht\",\"folienlaenge\",\"rollenbreide\",\"foliendichte\"]; break;\n\t\t\t\t\tcase \"rollenbreite\": fields = [\"rollengewicht\",\"folienlaenge\",\"foliendicke\",\"foliendichte\"]; break;\n\t\t\t\t\tcase \"rollendurchmesser\": fields = [\"folienlaenge\",\"foliendicke\",\"kernaussendurchmesser\"]; break;\n\t\t\t\t\tdefault: fields = [\"folienlaenge\",\"rollenbreite\",\"foliendicke\",\"foliendichte\"]; break;\n\t\t\t\t}\n\t\t\t\t\/\/ Tippfehler-Korrektur (rollenbreide -> rollenbreite)\n\t\t\t\tfor (var j=0;j<fields.length;j++){ if(fields[j]==='rollenbreide') fields[j]='rollenbreite'; }\n\n\t\t\t\tvar key = resMap[selection] || 'res_rollengewicht';\n\t\t\t\tvar text = (FR_TX[lang] && FR_TX[lang][key]) ? FR_TX[lang][key] : '';\n\t\t\t\tif (text) document.getElementById(\"result-text\").innerHTML = text;\n\n\t\t\t\tdocument.getElementById(\"result\").value = \"\";\n\t\t\t\treturn fields;\n\t\t\t}\n\n\t\t\tfunction fr_calc_result(selection) {\n\t\t\t\tvar DICHTE = document.getElementById(\"dichte\").value.replace(\",\", \".\");\n\t\t\t\tDICHTE = parseFloat(DICHTE);\n\t\t\t\tvar UNIT = document.getElementById(\"units\").value;\n\t\t\t\tvar lang = document.getElementById('ui_lang').value || 'de';\n\n\t\t\t\tfunction v(id){\n\t\t\t\t\tvar val = (document.getElementById(id).value || '').replace(\",\", \".\");\n\t\t\t\t\treturn parseFloat(val || '0');\n\t\t\t\t}\n\n\t\t\t\tvar RESULT = 0;\n\n\t\t\t\tswitch (selection) {\n\t\t\t\t\tcase \"folienflaeche\":\n\t\t\t\t\t\tvar GEWICHT = v(\"rollengewicht\");\n\t\t\t\t\t\tvar DICKE   = v(\"foliendicke\");\n\t\t\t\t\t\tRESULT = ((GEWICHT * 1000) \/ (DICKE * DICHTE));\n\t\t\t\t\t\tif (UNIT == \"american\") RESULT = RESULT * 0.836;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"folienlaenge\":\n\t\t\t\t\t\tvar LENGTH = v(\"rollenbreite\");\n\t\t\t\t\t\tGEWICHT = v(\"rollengewicht\");\n\t\t\t\t\t\tDICKE   = v(\"foliendicke\");\n\t\t\t\t\t\tRESULT = ((GEWICHT * 1000000) \/ (LENGTH * DICKE * DICHTE));\n\t\t\t\t\t\tif (UNIT == \"american\") RESULT = RESULT \/ 36;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"foliendicke\":\n\t\t\t\t\t\tvar LAENGE = v(\"folienlaenge\");\n\t\t\t\t\t\tvar BREITE = v(\"rollenbreite\");\n\t\t\t\t\t\tGEWICHT = v(\"rollengewicht\");\n\t\t\t\t\t\tif (UNIT == \"american\") LAENGE = LAENGE * 36;\n\t\t\t\t\t\tRESULT = ((GEWICHT * 1000000) \/ (BREITE * LAENGE * DICHTE));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"rollengewicht\":\n\t\t\t\t\t\tvar WIDTH = v(\"rollenbreite\");\n\t\t\t\t\t\tvar LENGTH2 = v(\"folienlaenge\");\n\t\t\t\t\t\tDICKE = v(\"foliendicke\");\n\t\t\t\t\t\tif (UNIT == \"american\") WIDTH = WIDTH * 36;\n\t\t\t\t\t\tRESULT = (WIDTH * LENGTH2 * DICKE * DICHTE \/ 1000000);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"rollenbreite\":\n\t\t\t\t\t\tGEWICHT = v(\"rollengewicht\");\n\t\t\t\t\t\tLAENGE = v(\"folienlaenge\");\n\t\t\t\t\t\tDICKE = v(\"foliendicke\");\n\t\t\t\t\t\tif (UNIT == \"american\") LAENGE = LAENGE * 36;\n\t\t\t\t\t\tRESULT = ((GEWICHT * 1000000) \/ (LAENGE * DICKE * DICHTE));\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"rollendurchmesser\":\n\t\t\t\t\t\tLAENGE = v(\"folienlaenge\");\n\t\t\t\t\t\tDICKE = v(\"foliendicke\");\n\t\t\t\t\t\tvar KERNAUSSENDURCHMESSER = v(\"kernaussendurchmesser\");\n\t\t\t\t\t\tif (UNIT == \"american\") {\n\t\t\t\t\t\t\tLAENGE = LAENGE * 36;\n\t\t\t\t\t\t\tDICKE = DICKE \/ 1000000;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tRESULT = ((KERNAUSSENDURCHMESSER * KERNAUSSENDURCHMESSER) + ((4 * LAENGE * DICKE * 1.025) \/ Math.PI));\n\t\t\t\t\t\tRESULT = Math.sqrt(RESULT);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"folienlaenge-via-durchmesser\":\n\t\t\t\t\t\tDICKE = v(\"foliendicke\");\n\t\t\t\t\t\tvar DURCHMESSER = v(\"rollendurchmesser\");\n\t\t\t\t\t\tKERNAUSSENDURCHMESSER = v(\"kernaussendurchmesser\");\n\t\t\t\t\t\tif (UNIT == \"american\") DICKE = DICKE \/ 1000000;\n\t\t\t\t\t\tRESULT = (Math.PI \/ (4 * DICKE * 1.025)) * ((DURCHMESSER * DURCHMESSER) - (KERNAUSSENDURCHMESSER * KERNAUSSENDURCHMESSER));\n\t\t\t\t\t\tif (UNIT == \"american\") RESULT = RESULT \/ 36;\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tRESULT = fr_round_result(RESULT, 1);\n\n\t\t\t\t\/\/ Ausgabeformat: Deutsch = Komma, Englisch = Punkt (wie im alten Rechner)\n\t\t\t\tif (lang === 'de') {\n\t\t\t\t\tRESULT = RESULT.replace(\".\", \",\");\n\t\t\t\t}\n\t\t\t\tdocument.getElementById(\"result\").value = RESULT;\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\t\/\/ Unit-Spans umschalten (ohne jQuery)\n\t\t\tfunction fr_swap_unit(oldClass, newClass, text) {\n\t\t\t\tvar spans = document.querySelectorAll(\".folienrechner-wrapper span.\" + oldClass);\n\t\t\t\tspans.forEach(function (el) {\n\t\t\t\t\tel.className = newClass;\n\t\t\t\t\tel.textContent = text;\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tfunction fr_set_units(selection) {\n\t\t\t\tif (selection === \"euro\") {\n\t\t\t\t\tfr_swap_unit(\"yd\",\"m\",\"m\");\n\t\t\t\t\tfr_swap_unit(\"in\",\"mm\",\"mm\");\n\t\t\t\t\tfr_swap_unit(\"lb\",\"kg\",\"kg\");\n\t\t\t\t\tfr_swap_unit(\"yd2\",\"m2\",\"m\u00b2\");\n\t\t\t\t\tfr_swap_unit(\"lbin3\",\"gcm3\",\"g\/cm\u00b3\");\n\t\t\t\t\tfr_swap_unit(\"mi\",\"mu\",\"\u00b5m\");\n\t\t\t\t} else {\n\t\t\t\t\tfr_swap_unit(\"m\",\"yd\",\"yd\");\n\t\t\t\t\tfr_swap_unit(\"mm\",\"in\",\"in\");\n\t\t\t\t\tfr_swap_unit(\"kg\",\"lb\",\"lb\");\n\t\t\t\t\tfr_swap_unit(\"m2\",\"yd2\",\"yd\u00b2\");\n\t\t\t\t\tfr_swap_unit(\"gcm3\",\"lbin3\",\"lb\/in\u00b3\");\n\t\t\t\t\tfr_swap_unit(\"mu\",\"mi\",\"\u00b5in\");\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tfunction fr_load_units(selection) {\n\t\t\t\tfr_set_units(selection);\n\t\t\t\tif (document.getElementById(\"units_select\").value !== selection) {\n\t\t\t\t\tvar dichte = parseFloat((document.getElementById(\"dichte\").value || '').replace(\",\", \".\"));\n\t\t\t\t\tif (!isNaN(dichte)) {\n\t\t\t\t\t\tif (selection === \"euro\")      dichte = dichte \/ 0.036127298147753;\n\t\t\t\t\t\telse if (selection === \"american\") dichte = dichte * 0.036127298147753;\n\t\t\t\t\t\t\/\/ Dichte immer mit Punkt (sprachneutral), der Nutzer kann in DE weiterhin Komma tippen\n\t\t\t\t\t\tdocument.getElementById(\"dichte\").value = dichte.toString();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdocument.getElementById(\"units_select\").value = selection;\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tfunction fr_load_mask(selection, units) {\n\t\t\t\tfr_disable_all();\n\t\t\t\tfr_enable(fr_get_fields(selection));\n\t\t\t\tfr_set_units(units || document.getElementById(\"units\").value);\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tdocument.addEventListener(\"DOMContentLoaded\", function(){\n\t\t\t\t\/\/ Startwerte aus Shortcode anwenden\n\t\t\t\tvar startUnits = \"american\";\n\t\t\t\tdocument.getElementById('units').value = startUnits;\n\t\t\t\tfr_load_mask(document.getElementById('type').value, startUnits);\n\t\t\t\t\/\/ Start-Dichte \u00fcbernehmen (kommt bereits aus PHP)\n\t\t\t});\n\t\t<\/script>\n\n\t\t<style>\n\t\t\t\/* --- Layout & Optik (kapselt alles unter .folienrechner-wrapper) --- *\/\n\t\t\t.folienrechner-wrapper { max-width: 700px; margin: 0 auto 2rem; }\n\t\t\t.folienrechner-form fieldset { border: 1px solid #d6d6d6; margin: 1.2857142857rem 0; padding: 1.4285714286rem; }\n\t\t\t.folienrechner-form .fr-row { display:flex; flex-wrap:wrap; margin-bottom:10px; }\n\t\t\t.folienrechner-form .fr-row-title { margin-bottom:6px; }\n\t\t\t.folienrechner-form .fr-col-label { flex:0 0 45%; max-width:45%; padding-right:10px; box-sizing:border-box; }\n\t\t\t.folienrechner-form .fr-col-input { flex:0 0 55%; max-width:55%; box-sizing:border-box; }\n\t\t\t.folienrechner-form .fr-col-full { flex:0 0 100%; max-width:100%; }\n\t\t\t.folienrechner-form .fr-right { text-align:right; }\n\t\t\t@media (max-width:600px) {\n\t\t\t\t.folienrechner-form .fr-col-label, .folienrechner-form .fr-col-input { flex:0 0 100%; max-width:100%; }\n\t\t\t\t.folienrechner-form .fr-right { text-align:left; margin-top:.5rem; }\n\t\t\t}\n\t\t\t.folienrechner-form label { font-size:1rem; display:block; padding:5px 0; margin:0; line-height:1.2; }\n\t\t\t.folienrechner-form input[type=\"text\"], .folienrechner-form select {\n\t\t\t\t-webkit-appearance:none; -moz-appearance:none; border-radius:0;\n\t\t\t\tbackground:#efefef; border:1px solid #e1e1e1; color:#333; display:block;\n\t\t\t\tfont:inherit; font-size:1rem; height:2.6428571429rem; margin:0 0 1.1428571429rem 0;\n\t\t\t\tpadding:.5714285714rem; width:100%; box-sizing:border-box; transition: border-color .15s, background .15s;\n\t\t\t}\n\t\t\t.folienrechner-form input[type=\"text\"]:focus, .folienrechner-form select:focus { background:#eaeaea; border-color:#b4b4b4; outline:0; }\n\t\t\t.folienrechner-form select {\n\t\t\t\tbackground-color:#fafafa;\n\t\t\t\tbackground-image:url(data:image\/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMTJweCIgeT0iMHB4IiB3aWR0aD0iMjRweCIgaGVpZ2h0PSIzcHgiIHZpZXdCb3g9IjAgMCA2IDMiPjxwb2x5Z29uIHBvaW50cz0iNS45OTIsMCAyLjk5MiwzIC0wLjAwOCwwIi8+PC9zdmc+);\n\t\t\t\tbackground-position:100% center; background-repeat:no-repeat; padding-right:2.5rem;\n\t\t\t}\n\t\t\t.folienrechner-form .button {\n\t\t\t\tpadding: 2px 13px; font-size:1rem; border-radius:3px; border:1px solid #00527a;\n\t\t\t\tbackground:linear-gradient(45deg, #0075b0 0, #01a07e 100%); color:#fff; cursor:pointer;\n\t\t\t}\n\t\t\t.folienrechner-form .button:hover { background:linear-gradient(45deg, #005e8d 0, #018065 100%); }\n\t\t\t.folienrechner-wrapper .off { display:none; }\n\t\t<\/style>\n\t<\/div>\n\t<\/div>\n\t\t\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":4601,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-4592","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.m-petfilm.de\/en\/wp-json\/wp\/v2\/pages\/4592","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.m-petfilm.de\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.m-petfilm.de\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.m-petfilm.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.m-petfilm.de\/en\/wp-json\/wp\/v2\/comments?post=4592"}],"version-history":[{"count":3,"href":"https:\/\/www.m-petfilm.de\/en\/wp-json\/wp\/v2\/pages\/4592\/revisions"}],"predecessor-version":[{"id":5067,"href":"https:\/\/www.m-petfilm.de\/en\/wp-json\/wp\/v2\/pages\/4592\/revisions\/5067"}],"up":[{"embeddable":true,"href":"https:\/\/www.m-petfilm.de\/en\/wp-json\/wp\/v2\/pages\/4601"}],"wp:attachment":[{"href":"https:\/\/www.m-petfilm.de\/en\/wp-json\/wp\/v2\/media?parent=4592"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}