#tarifrechner {
font-family: ‚Droid Sans‘,Arial,serif;
font-size: 14px;
color: #58585A;
position: relative;
width: 100%;
margin: 0;
padding: 0;
float: left;
margin-right: -1em;
}
#tarifrechner #col2,
#tarifrechner #col1 {
float: left;
width: 50%;
position: relative;
}
#tarifrechner #col2 {
margin-right: -1em;
}
#tarifrechner fieldset {
margin-bottom: 0.5em !important;
padding: 0 0 1em 0;
z-index: 0;
border: 1px solid #aaa;
width: 100%;
-moz-border-radius: 0.5em;
-ms-border-radius: 0.5em;
-webkit-border-radius: 0.5em;
border-radius: 0.5em;
}
#tarifrechner #col1 fieldset,
#tarifrechner #col2 fieldset {
width: auto;
margin: 1em;
padding: 0.5em 0;
}
#tarifrechner #col2 fieldset {
margin-left: 0;
}
#tarifrechner legend {
color: #58585A;
font-size: 18px;
font-weight: bold;
margin-left: 1em;
overflow: hidden;
}
#tarifrechner legend a {
float: right;
font-weight: normal;
font-size: 12px;
margin-left: 0.25em;
padding-right: 0.25em;
cursor: pointer;
}
#tarifrechner legend input {
float: none;
width: auto;
height: auto;
border: 0 solid;
display: inline;
vertical-align: middle;
}
#tarifrechner legend input.submit {
background-color: #00a13b;
color: white;
width: 20px;
height: 20px;
padding: 3px;
line-height: 14px;
font-weight: bold;
text-align: center;
display: inline-block;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
-ms-border-radius: 10px;
border-radius: 10px;
}
#tarifrechner div.info {
display: none;
border: 1px solid #00a13b;
background-color: white;
-moz-border-radius: 0.5em;
-webkit-border-radius: 0.5em;
-ms-border-radius: 0.5em;
border-radius: 0.5em;
-moz-box-shadow: 10px 10px 5px #888;
-webkit-box-shadow: 10px 10px 5px #888;
-ms-box-shadow: 10px 10px 5px #888;
box-shadow: 10px 10px 5px #888;
box-sizing: border-box;
font-size: 13px;
line-height: 1.25em;
overflow: hidden;
margin: 1em;
margin-top: 0;
padding: 1em;
}
#tarifrechner fieldset:hover {
z-index: 100;
border-color: #00a13b;
}
#tarifrechner #col2 fieldset:hover select,
#tarifrechner #col1 fieldset:hover select,
#tarifrechner #col2 fieldset:hover input,
#tarifrechner #col1 fieldset:hover input {
border: 1px solid #00a13b;
}
#tarifrechner #col2 fieldset:hover input.disabled,
#tarifrechner #col1 fieldset:hover input.disabled {
border: 0 solid;
}
#tarifrechner div.info h2 {
font-size: 18px;
margin-top: 0;
}
#tarifrechner div.info ul {
margin: 0;
padding: 0;
margin-top: 1em;
margin-bottom: 1em;
list-style: disc outside;
}
#tarifrechner div.info ul li {
margin: 0;
padding: 0;
margin-left: 1.5em;
list-style: disc outside;
}
#tarifrechner div.info td {
vertical-align: top;
padding: 0.25em;
}
#tarifrechner div.info th {
text-align: center;
font-weight: bold;
padding: 0.25em;
}
#tarifrechner div.info p {
margin-bottom: 0.5em;
}
#tarifrechner label {
display: block;
overflow: hidden;
text-align: right;
line-height: 25px;
padding: 0 1em;
}
#tarifrechner select {
border: 1px solid #ccc;
padding: 0.25em 0.5em;
padding: 0;
-moz-border-radius: 0.5em;
-webkit-border-radius: 0.5em;
-ms-border-radius: 0.5em;
border-radius: 0.5em;
font-family: ‚Droid Sans‘,arial,serif;
font-size: 14px;
}
#tarifrechner select option {
padding: 0 0.25em;
}
#tarifrechner input {
text-align: right;
font-family: ‚Droid Sans‘,arial,serif;
font-size: 14px;
width: 6em;
margin-left: 0.5em;
color: black;
padding: 2px;
xheight: 22px;
margin: 0 2px;
border: 1px solid #ccc;
-moz-border-radius: 0.5em;
-webkit-border-radius: 0.5em;
-ms-border-radius: 0.5em;
border-radius: 0.5em;
}
#tarifrechner input.checkbox {
cursor: pointer;
height: 1em;
width: 1em;
margin-right: 5em;
margin-bottom: 0;
padding-bottom: 0;
position: relative;
top: 0.1em;
}
#tarifrechner input.submit {
width: auto;
padding: 0.25em 1em;
font-weight: bold;
text-align: center;
margin: 0;
height: auto;
background-color: #00a13b;
color: white;
-moz-border-radius: 0.5em;
-webkit-border-radius: 0.5em;
-ms-border-radius: 0.5em;
border-radius: 0.5em;
border: 1px solid #777;
cursor: pointer;
}
#tarifrechner input.submit:hover {
border: 1px solid black;
}
#xtarifrechner input:after {
content: “ €“
}
#tarifrechner .disabled {
background-color: white;
color: black;
border: 0 solid;
padding: 3px;
line-height: 1em;
}
#tarifrechner b input,
#tarifrechner b input.disabled {
font-weight: bold;
color: #00a13b;
}
@media(max-width:767px) {
#col1, #col2 {
width: 100% !important;
float: none !important;
}
}
#tarifrechner fieldset {
padding-top: 0em;
}
#tarifrechner legend {
margin-bottom: 1em;
}
#tarifrechner div.info {
margin-top: 3em;
}
#tarifrechner input.submit {
padding: 0.25em;
}
#tarifrechner input.checkbox {
margin-right: 5.15em;
}
#tarifrechner legend span {
}
#tarifrechner input.checkbox {
margin-right: 5.6em;
position: static;
margin-top: 0.5em;
}
<!–
function betrag (n, nk, empty) {
if (typeof empty == 'undefined')
empty = true;
if (n == 0 && empty) {
return '';
}
if (!nk)
nk = 2;
var neg = n = 0; i–) {
vkn = vk.substr (i, 1) + vkn;
if (i > 0 && i % 3 == vk.length % 3)
vkn = sep1000 + vkn;
}
h = vkn + (nk ? sepDec + h [1] : “);
// window.status = ‚parse ‚ + n + ‚: ‚ + h;
if (neg) {
h = ‚-‚ + h;
}
h += ‚ €‘;
return h;
}
function parseBetrag (s) {
if (s == “)
return 0;
h = s.replace (sep1000, “);
h = h.replace (‚ €‘, “);
h = h.split (sepDec, 2);
var v = parseInt (h [0]);
if (isNaN (v)) {
return 0;
}
if (h.length > 1) {
nk = parseFloat (‚0.‘ + h [1]);
if (!isNaN (nk))
v += parseFloat (‚0.‘ + h [1]);
}
// window.status = ‚parse ‚ + s + ‚: ‚ + v;
return v;
}
var inCalculate = false;
function calculate () {
if (inCalculate) {
// console.log (‚in calculate‘);
return true;
}
inCalculate = true;
var f = document.forms.tarifrechner;
function gps (fn, empty) {
f [fn].inputted = f [fn].value;
var v = parseBetrag (f [fn].value);
f [fn].value = betrag (v, 2, !f [fn].inputted);
return v;
}
var sEinkommen = 0;
sEinkommen += gps (‚einkommen‘);
sEinkommen += gps (‚einkommenPartner‘);
sEinkommen += gps (‚einkommenSonst‘);
var inputted = f.einkommen.inputted || f.einkommenPartner.inputted || f.einkommenSonst.inputted;
f.sEinkommen.value = betrag (sEinkommen, 2, !inputted);
var sUnterhalt = gps (‚unterhalt‘);
f.sUnterhalt.value = betrag (inputted ? -sUnterhalt : 0);
var sLeben = 0;
var anzErwachsene = parseInt (f.anzErwachsene.selectedIndex + 1);
if(anzErwachsene > 1 && anzErwachsene = 3) {
var anzErwachsene2 = anzErwachsene – 2;
var luErwachsene = (pauschalen [1] * 2) + (pauschalen [6] * anzErwachsene2);
} else {
var luErwachsene = (pauschalen [0] * anzErwachsene)
}
// var luErwachsene = pauschalen [0] + (anzErwachsene – 1) * pauschalen [1];
f.luErwachsene.value = betrag (inputted ? luErwachsene : 0);
sLeben += luErwachsene;
var anzKinder = parseInt (f.anzKinder.selectedIndex);
// Kinder berechnen
if(anzKinder 3 && anzKinder = 7) {
var anzKinderMinus = anzKinder – 6;
var luKinder = (2 * pauschalen [2]) + (1 * pauschalen [3]) + (3 * pauschalen [4]) + (anzKinderMinus * pauschalen [5])
}
f.luKinder.value = betrag (inputted ? luKinder : 0);
sLeben += luKinder;
f.sLeben.value = betrag (inputted ? -sLeben : 0);
var sWohnen = gps (‚miete‘);
sWohnen += gps (‚rueckzahlung‘);
var anzPersonen = anzErwachsene + anzKinder;
var wohnenNachweisbar = f.wohnenNachweisbar.checked;
if (!wohnenNachweisbar) {
var wMax = wohnenMax [0];
if (anzPersonen > 1)
wMax += wohnenMax [1];
if (anzPersonen > 2)
wMax += wohnenMax [2] * (anzPersonen – 2);
} else {
var wMax = wohnenMaxNW [0];
if (anzPersonen > 1)
wMax += wohnenMaxNW [1];
if (anzPersonen > 2)
wMax += wohnenMaxNW [2] * (anzPersonen – 2);
}
sWohnenMax = Math.min (wMax, sWohnen);
f.sWohnen.value = betrag (inputted ? -sWohnenMax : 0);
var sBetrieb =
gps (‚betriebskosten‘) +
gps (‚heizung‘) +
gps (’strom‘) +
gps (‚kanal‘) +
gps (‚versicherung‘) +
gps (‚abgaben‘) +
gps (‚verwaltung‘) +
gps (‚betreuung‘);
var betriebNachweisbar = f.betriebNachweisbar.checked;
if (!betriebNachweisbar) {
var bMax = betriebMax [0];
if (anzPersonen > 1)
bMax += betriebMax [1];
if (anzPersonen > 2)
bMax += betriebMax [2] * (anzPersonen – 2);
} else {
var bMax = betriebMaxNW [0];
if (anzPersonen > 1)
bMax += betriebMaxNW [1];
if (anzPersonen > 2)
bMax += betriebMaxNW [2] * (anzPersonen – 2);
}
sBetriebMax = Math.min (bMax, sBetrieb);
f.sBetrieb.value = betrag (inputted ? -sBetriebMax : 0);
var sZwischenSumme =
sEinkommen –
sWohnenMax –
sBetriebMax –
sLeben –
sUnterhalt;
f.sZwischenSumme.value = betrag (inputted ? sZwischenSumme: 0);
var anzPflege = parseInt (f.anzPflege.selectedIndex + 1);
var sZwischenSumme2 = sZwischenSumme / anzPflege;
f.sZwischenSumme2.value = betrag (inputted ? sZwischenSumme2: 0);
var pflegeGeldStufe = f.pflegeGeldStufe.selectedIndex;
var pflegeGeld = pflegeGeldStufe ? pflegegelder [pflegeGeldStufe – 1] : 0;
f.pflegeGeld.value = betrag (pflegeGeld);
// sEinkommen += pflegegeld;
var sSumme =
sZwischenSumme2 +
pflegeGeld;
f.sSumme.value = betrag (inputted ? sSumme: 0);
sSumme = Math.max (0, sSumme);
var index = bemess.length – 1;
if (inputted) {
for (var i = 0; i < bemess.length; i++) {
if (sSumme <= bemess [i]) {
index = i;
break;
}
}
}
var rPflege = staffeln [index][0][pflegeGeldStufe];
var rHilfe = staffeln [index][1][pflegeGeldStufe];
if (pflegeGeldStufe === 0 && f.ausgleichsZulage.checked && sSumme <= 0) {
var rPflege = staffeln [0][0][pflegeGeldStufe] * 0.5;
var rHilfe = staffeln [0][1][pflegeGeldStufe] * 0.5;
}
f.rPflege.value = betrag (rPflege);
f.rPflegeSF.value = betrag (rPflege * (1 + sonnFeiertagsZuschlag));
f.rHilfe.value = betrag (rHilfe);
var sTPflegeEinkommen = 0;
sTPflegeEinkommen += gps ('einkommen');
sTPflegeEinkommen += gps ('einkommenSonst');
var index = tPflegeBemess.length;
if (inputted) {
for (var i = 0; i < tPflegeBemess.length; i++) {
if (sTPflegeEinkommen <= tPflegeBemess [i]) {
index = i;
break;
}
}
}
f.rTPflege.value = betrag (tPflegeSatz [0] * (100 – tPflegeFoerderProz [index]) / 100);
f.rTPflege2.value = betrag (tPflegeSatz [1] * (100 – tPflegeFoerderProz [index]) / 100);
inCalculate = false;
return true;
}
function show (o) {
var div = o.parentNode.parentNode.getElementsByTagName('DIV')[0];
div.style.display = 'block';
}
function hide (o) {
var div = o.parentNode.parentNode.getElementsByTagName('DIV')[0];
div.style.display = 'none';
}
function toggle(o) {
var div = o.parentNode.parentNode.getElementsByTagName('DIV')[0];
if(div.style.display === '') {div.style.display = 'block';}
else if(div.style.display === 'block') {div.style.display = '';}
}
window.onload = function () {
var f = document.forms.tarifrechner;
for (var i = 0; i
* unverbindliche Berechnung der voraussichtlichen Klientenselbstbehalte