.mpr { max-width: 580px; margin:auto; font-family: Arial, sans-serif; }
.mpr label { display:block; margin-top:10px; }
.mpr input, .mpr select, .mpr button {
width:100%; padding:8px; margin-top:4px;
}
.ok { color:green; font-weight:bold; }
.bad { color:red; font-weight:bold; }
.info { font-size:0.9em; margin-top:10px; color:#555; }
Mietprüfer Jobcenter Landkreis Cloppenburg
Bezugsdatum
Haushaltsmitglieder (max. 20)
Wohnfläche (m²)
Monatliche Kaltmiete (€)
Wohnort (Stadt / Gemeinde)
– bitte wählen –
Barßel
Bösel
Friesoythe
Saterland
Cappeln
Emstek
Essen
Garrel
Lastrup
Lindern
Löningen
Molbergen
Stadt Cloppenburg
Miete prüfen
/* =============================
TABELLENWERTE
============================= */
const table = {
nord: {
baseRent: [443,519,588,732,778],
extraRent: 82,
baseArea: [53,63,75,85,95]
},
sued: {
baseRent: [431,547,621,691,728],
extraRent: 77,
baseArea: [53,63,75,85,95]
},
stadt: {
baseRent: [510,571,687,708,798],
extraRent: 84,
baseArea: [53,63,75,85,95]
}
};
/* =============================
BERECHNUNG
============================= */
function calc(region, persons) {
const r = table[region];
if (!r) return null;
let maxRent, maxArea;
if (persons <= 5) {
maxRent = r.baseRent[persons - 1];
maxArea = r.baseArea[persons - 1];
} else {
maxRent = r.baseRent[4] + (persons - 5) * r.extraRent;
maxArea = r.baseArea[4] + (persons - 5) * 10;
}
return { maxRent, maxArea };
}
/* =============================
PRÜFUNG
============================= */
function check() {
const date = new Date(document.getElementById("date").value);
const persons = +document.getElementById("persons").value;
const area = +document.getElementById("area").value;
const rent = +document.getElementById("rent").value;
const region = document.getElementById("city").value;
const result = document.getElementById("result");
const details = document.getElementById("details");
result.innerHTML = "";
details.innerHTML = "";
if (!date || date <= new Date() || persons 20 || !region) {
result.innerHTML =
"
Bitte alle Felder korrekt ausfüllen. Das Bezugsdatum muss in der Zukunft liegen.
";
return;
}
const limit = calc(region, persons);
const rentOk = rent <= limit.maxRent;
const areaOk = area <= limit.maxArea;
if (rentOk && areaOk) {
result.innerHTML = "
✅ Unterkunft ist angemessen.
";
} else {
result.innerHTML = "
❌ Unterkunft ist nicht angemessen.
";
}
details.innerHTML = `
Zulässige Kaltmiete:
${limit.maxRent.toFixed(2)} €
Zulässige Wohnfläche:
${limit.maxArea} m²
Hinweis: Während der Karenzzeit kann eine höhere Miete ggf. übernommen werden.
`;
}