{
 "name": "Betrugs-Live-Karte – Polizeimeldungen als animierte Deutschlandkarte (ohne Zugangsdaten)",
 "nodes": [
  {
   "parameters": {
    "httpMethod": "GET",
    "path": "betrugskarte",
    "responseMode": "responseNode",
    "options": {}
   },
   "name": "Webhook",
   "type": "n8n-nodes-base.webhook",
   "typeVersion": 2,
   "position": [
    0,
    0
   ],
   "webhookId": "df95e00e-5bb0-4b7a-8e71-9aab557aebe3"
  },
  {
   "parameters": {
    "rule": {
     "interval": [
      {
       "field": "hours",
       "hoursInterval": 3
      }
     ]
    }
   },
   "name": "Alle 3 Stunden",
   "type": "n8n-nodes-base.scheduleTrigger",
   "typeVersion": 1.2,
   "position": [
    0,
    200
   ]
  },
  {
   "parameters": {
    "jsCode": "// Node: \"Konfiguration\" – hier alles anpassen (nur dieser Node!)\nreturn [{ json: {\n  title: 'Betrugs-Live-Karte',          // Seitentitel\n  days: 21,                              // wie viele Tage zurück\n  refreshMinutes: 180,                   // Cache: so oft werden Quellen neu abgefragt\n  // Suchbegriffe an Presseportal (je 10 neueste Polizeimeldungen). Gern erweitern.\n  queries: ['Schockanruf', 'Enkeltrick', 'falsche Polizeibeamte', 'Telefonbetrug', 'Phishing', 'Smishing',\n            'WhatsApp Betrug', 'Anlagebetrug', 'Love Scamming', 'Paketbetrug', 'Gewinnversprechen',\n            'falsche Bankmitarbeiter', 'Microsoft Support Betrug', 'Kleinanzeigen Betrug', 'Quishing', 'Callcenter Betrug'],\n  // Direkte RSS-Feeds einzelner Polizeien (zusätzlich zu Presseportal). Gefiltert wird lokal nach Betrugs-Stichwörtern.\n  // Eigene Feeds einfach ergänzen: { name, url }  (Ort steht im Titel in Klammern oder ist fest: fixedOrt)\n  feeds: [\n    { name: 'Polizei Berlin', url: 'https://www.berlin.de/polizei/polizeimeldungen/index.php/rss', fixedOrt: 'Berlin' },\n    { name: 'Polizei Brandenburg', url: 'https://polizei.brandenburg.de/pressemeldungen/rss' },\n  ],\n  // Optional: Links in der Fußzeile / zum Teilen (leer lassen = nichts anzeigen)\n  liveUrl: '',                           // z. B. https://deine-domain.de/webhook/betrugskarte\n  brandName: '', brandUrl: '', workflowUrl: '',\n} }];\n"
   },
   "name": "Konfiguration",
   "type": "n8n-nodes-base.code",
   "typeVersion": 2,
   "position": [
    240,
    100
   ]
  },
  {
   "parameters": {
    "jsCode": "// Node: \"Cache prüfen\" – schützt Presseportal & Geocoding vor Besucheransturm\nconst cfg = $('Konfiguration').first().json;\nconst sd = $getWorkflowStaticData('global');\nconst now = Date.now();\nlet fromWebhook = false;\ntry { fromWebhook = $('Webhook').isExecuted; } catch (e) {}\nconst c = sd.cache;\nconst fresh = !!(c && c.html && now - c.ts < cfg.refreshMinutes * 60000);\nconst locked = !!(sd.lock && now - sd.lock < 120000);   // gerade läuft schon ein Refresh\nconst serve = fromWebhook && !!(c && c.html) && (fresh || locked);\nif (!serve) sd.lock = now;\nreturn [{ json: { serve, fresh, ageMin: c ? Math.round((now - c.ts) / 60000) : null } }];\n"
   },
   "name": "Cache prüfen",
   "type": "n8n-nodes-base.code",
   "typeVersion": 2,
   "position": [
    480,
    100
   ]
  },
  {
   "parameters": {
    "conditions": {
     "options": {
      "caseSensitive": true,
      "leftValue": "",
      "typeValidation": "strict",
      "version": 2
     },
     "conditions": [
      {
       "id": "fb730ac5-332b-489e-82e0-4e9a4c8403b5",
       "leftValue": "={{ $json.serve }}",
       "rightValue": true,
       "operator": {
        "type": "boolean",
        "operation": "true",
        "singleValue": true
       }
      }
     ],
     "combinator": "and"
    },
    "options": {}
   },
   "name": "Cache frisch?",
   "type": "n8n-nodes-base.if",
   "typeVersion": 2.2,
   "position": [
    720,
    100
   ]
  },
  {
   "parameters": {
    "jsCode": "// Node: \"Suchbegriffe & Feeds\" – ein Item pro Abfrage (Presseportal-Suche + direkte Polizei-Feeds)\nconst cfg = $('Konfiguration').first().json;\nconst pp = cfg.queries.map(q => ({ json: { url: 'https://www.presseportal.de/rss/rss2_vts.htx?w=public_service&langid=1&q=' + encodeURIComponent(q) } }));\nconst direct = (cfg.feeds || []).map(f => ({ json: { url: f.url } }));\nreturn [...pp, ...direct];\n"
   },
   "name": "Suchbegriffe & Feeds",
   "type": "n8n-nodes-base.code",
   "typeVersion": 2,
   "position": [
    960,
    260
   ]
  },
  {
   "parameters": {
    "url": "={{ $json.url }}",
    "sendHeaders": true,
    "headerParameters": {
     "parameters": [
      {
       "name": "User-Agent",
       "value": "Mozilla/5.0 (compatible; Betrugskarte-n8n/1.0)"
      }
     ]
    },
    "options": {
     "response": {
      "response": {
       "responseFormat": "text",
       "outputPropertyName": "data"
      }
     },
     "batching": {
      "batch": {
       "batchSize": 4,
       "batchInterval": 700
      }
     },
     "timeout": 20000
    }
   },
   "name": "Polizeimeldungen laden",
   "type": "n8n-nodes-base.httpRequest",
   "typeVersion": 4.2,
   "position": [
    1200,
    260
   ],
   "onError": "continueRegularOutput"
  },
  {
   "parameters": {
    "jsCode": "// Node: \"Meldungen auswerten\" (Code, Run Once for All Items)\n// Input : ein Item pro RSS-Abfrage, Feld `data` = XML-Text von presseportal.de\n// Output: ein Item pro Betrugsmeldung (dedupliziert, klassifiziert, ohne LLM)\nconst cfg = $('Konfiguration').first().json;\nconst DAY = 86400000;\nconst now = Date.now();\n\nconst decode = s => s\n  .replace(/<!\\[CDATA\\[|\\]\\]>/g, '')\n  .replace(/<[^>]+>/g, ' ')\n  .replace(/&nbsp;/g, ' ').replace(/&amp;/g, '&').replace(/&quot;/g, '\"')\n  .replace(/&#39;|&apos;/g, \"'\").replace(/&lt;/g, '<').replace(/&gt;/g, '>')\n  .replace(/&#(\\d+);/g, (_, n) => String.fromCharCode(+n))\n  .replace(/\\s+/g, ' ').trim();\nconst tag = (x, t) => { const m = x.match(new RegExp('<' + t + '[^>]*>([\\\\s\\\\S]*?)</' + t + '>')); return m ? m[1] : ''; };\n\n// Muss nach Betrug aussehen (Presseportal liefert bei Suchbegriffen auch Feuerwehr & Co.)\nconst RELEVANT = /betr[uü]g|schockanruf|enkeltrick|phishing|smishing|quishing|falsche[rn]? (polizei|bankmit|amts|gewinn)|telefonbetr|trickbetr|callcenter|love.?scam|romance.?scam|anlageb|abzock|gewinnvers|fake|gefälschte[rn]? (mail|e-mail|sms|nachricht|webseite|website)/i;\nconst NOISE = /tankbetrug|zechbetrug|schwarzfahr|beförderungserschleichung|leistungserschleichung|^(FW|THW|DRK|BF|LFV)\\b|feuerwehr|verkehrsunfall|brandstift/i;\n\n// Reihenfolge = Priorität\nconst CATS = [\n  { id: 'schock',   label: 'Schockanruf',          color: '#ff3b5c', re: /schockanruf|schock-anruf|unfall.{0,40}(tochter|sohn|enkel|angeh)|kaution/i },\n  { id: 'polizei',  label: 'Falsche Polizei',      color: '#3d8bff', re: /falsche[rn]? (polizei|polizist|polizeibeamt|kriminal|amts|staatsanw)|polizeibeamt\\w+.{0,40}(anruf|telefon)|anrufer.{0,40}(polizei|staatsanw)/i },\n  { id: 'enkel',    label: 'Enkeltrick',           color: '#ff9a1f', re: /enkeltrick|enkel\\b|vermeintlich\\w* (sohn|tochter|enkel)|hallo (mama|papa)|nummer.{0,20}neu/i },\n  { id: 'bank',     label: 'Falsche Bank',         color: '#ffd23f', re: /bankmitarbeit|bankangest|sparkasse|volksbank|kartensperr|giro?card|phototan|\\btan\\b|konto.{0,30}(gehackt|gesperrt|sicher)/i },\n  { id: 'phishing', label: 'Phishing & SMS',       color: '#b46bff', re: /phishing|smishing|quishing|sms|e-?mail|link|qr-?code|gefälscht\\w* (nachricht|mail)|paket/i },\n  { id: 'gewinn',   label: 'Gewinn-Masche',        color: '#ffb36b', re: /gewinnvers|gewinnspiel|lotto|erbschaft|gewonnen/i },\n  { id: 'anlage',   label: 'Anlage & Krypto',      color: '#2ee6a6', re: /anlage|krypto|bitcoin|trading|investition|investment|geld vermehren|rendite/i },\n  { id: 'love',     label: 'Love Scam',            color: '#ff6ad5', re: /love.?scam|romance|liebes|dating|online-?beziehung|partnerb/i },\n  { id: 'handel',   label: 'Online-Handel',        color: '#4de1ff', re: /kleinanzeigen|ebay|verkaufsplattform|online-?shop|fake-?shop|ticket|ferienwohnung|wohnungsbetrug|ware.{0,20}(nicht|nie) (geliefert|erhalten)/i },\n  { id: 'support',  label: 'Tech-Support-Masche',  color: '#9be15d', re: /microsoft|tech.?support|fernwartung|anydesk|teamviewer|virus/i },\n  { id: 'sonst',    label: 'Sonstiger Betrug',     color: '#9aa7c2', re: /./ },\n];\n\nconst WIN = /durchschau|erkannt|bemerkt|nicht (darauf )?ein|legte? (sofort |einfach )?auf|aufgelegt|beendete|rechtzeitig|misstrauisch|stutzig|verhindert|vereitelt|kein(en)? schaden|blieb(en)? (ohne|unbeschadet)|ging(en)? nicht (darauf )?ein|fiel(en)? nicht herein|schöpfte verdacht|alarmierte/i;\nconst LOSS = /übergab|übergeben|überwies|überwiesen|erbeute|schaden|geldübergabe|zahlte|abgehoben|beute|geschädigt|verlor|betrogen um|brachte.{0,15}um/i;\n\nconst cleanTitle = t => t\n  .replace(/\\s*\\([^()]{2,40}\\)\\s*$/, '')                 // „… (Cottbus)“ am Ende\n  .replace(/^\\(?[A-Z]{0,3}\\d[\\d\\/.\\-A-Z]*\\)?\\s*/, '')      // Aktenzeichen (374/2026), 261119.3\n  .replace(/^\\([A-Z]{1,4}\\)\\s*/, '')                       // Kürzel (BC), (KA)\n  .replace(/^\\([^)]{3,60}\\)\\s*/, '')                       // (Ort, Lkr. X)\n  .trim();\nconst items = [];\nconst seen = new Set();\nconst seenTitle = new Set();\nconst feedCfg = cfg.feeds || [];\nfor (const it of $input.all()) {\n  const xml = typeof it.json.data === 'string' ? it.json.data : '';\n  for (const raw of (xml.match(/<item>[\\s\\S]*?<\\/item>/g) || [])) {\n    const link0 = decode(tag(raw, 'link'));\n    const g0 = decode(tag(raw, 'guid'));\n    const id = /^https?:/.test(g0) ? g0 : (link0 || g0);\n    if (!id || seen.has(id)) continue;\n    seen.add(id);\n    const title0 = decode(tag(raw, 'title')).replace(/^[A-ZÄÖÜ]{2,}[A-Za-zÄÖÜäöü\\- ]*\\d*[:,]\\s*/, '');\n    const titleFull = decode(tag(raw, 'title'));\n    const title = title0;\n    const body = decode(tag(raw, 'content:encoded') || tag(raw, 'description'));\n    const date = new Date(tag(raw, 'pubDate')).getTime();\n    if (!date || now - date > cfg.days * DAY) continue;\n    let tf = titleFull;\n    const roundup = /\\+\\+\\+|pressemitteilungen|meldungen aus|einzelmeldung/i.test(tf);\n    if (roundup && tf.includes('+++')) {\n      const seg = tf.split('+++').map(x => x.trim()).find(x => RELEVANT.test(x));\n      if (seg) tf = seg;\n    }\n    const text = tf + ' ' + body;\n    if (!RELEVANT.test(roundup ? tf + ' ' + body.slice(0, 260) : text)) continue;\n    if (roundup && !RELEVANT.test(tf) && !RELEVANT.test(body.slice(0, 260))) continue;\n    if (NOISE.test(titleFull) && !/(?<!tank|zech)betr[uü]g|phishing|schockanruf/i.test(titleFull)) continue;\n\n    // Ort: \"Ort (ots) - …\"\n    const bodyN = body.replace(/^.*?\\[\\s*Newsroom\\s*\\]\\s*/, '');\n    const om = bodyN.match(/(?:^|\\]\\s*|Newsroom\\s*)([A-ZÄÖÜ][^()\\n]{1,60}?)\\s*(?:\\(([^)]*)\\))?\\s*\\(ots\\)/);\n    let ort = om ? om[1] : '';\n    ort = ort.replace(/^[\\]\\s\\-–:]+/, '').split(/\\s+\\/\\s+|,\\s+|;\\s*|-\\s+(?=[A-ZÄÖÜ])/)[0].trim();\n    let hint = ((om && om[2]) || (titleFull.match(/\\(([^)]*)\\)/) || [])[1] || '').trim();\n    if (/\\d/.test(hint) && !/[a-zäöü]{4}/i.test(hint.replace(/\\d+/g, ''))) hint = '';\n    if (/^\\d|\\//.test(hint) && hint.length < 12) hint = '';\n    const dienst = decode((raw.match(/<source[^>]*>([\\s\\S]*?)<\\/source>/) || [])[1] || '');\n    // Direktquellen: Ort fest oder aus Titel „… (Ort)“\n    const fc = feedCfg.find(f => f.url && link0.includes(f.url.replace(/^https?:\\/\\/(www\\.)?/, '').split('/')[0]));\n    const src = fc ? fc.name : 'Presseportal';\n    if (!ort && fc) {\n      if (fc.fixedOrt) ort = fc.fixedOrt;\n      else { const tm = titleFull.match(/\\(([^()]{2,40})\\)\\s*$/); if (tm) ort = tm[1].split(/,|\\//)[0].trim(); }\n    }\n    if (!ort) continue;\n    const tkey = titleFull.toLowerCase().replace(/[^a-zäöüß]/g, '').slice(0, 40);\n    if (seenTitle.has(ort + tkey)) continue;\n    seenTitle.add(ort + tkey);\n\n    const cat = CATS.find(c => c.re.test(tf + ' ' + body.slice(0, 600)));\n    // Alter der Betroffenen (nicht der Täter)\n    let age = null;\n    if (!roundup) for (const m of body.matchAll(/(\\d{2})[- ]?(?:jährig|Jahre alt)/gi)) {\n      const ctx = body.slice(Math.max(0, m.index - 45), m.index + 60);\n      if (/täter|tatverd|abholer|festgenomm|verdächtig|beschuldigt|geldabholer|mutmaßlich/i.test(ctx)) continue;\n      const a = +m[1]; if (a >= 18 && a <= 105) { age = a; break; }\n    }\n    // Beträge\n    let amount = 0;\n    for (const m of body.matchAll(/(\\d{1,3}(?:\\.\\d{3})+|\\d+)(?:,\\d{1,2})?\\s*(?:Euro|€|EUR)\\b/g)) {\n      const v = +m[1].replace(/\\./g, ''); if (v > amount && v < 5e6) amount = v;\n    }\n    const win = WIN.test(text), loss = LOSS.test(text);\n    const status = win ? 'abgewehrt' : (loss || amount > 0) ? 'schaden' : 'offen';\n\n    items.push({ json: {\n      id, src, title: cleanTitle((roundup && tf !== titleFull ? tf : title).replace(/^[A-ZÄÖÜ]{2,}[A-Za-zÄÖÜäöü\\- ]*\\d*[:,]\\s*/, '')).slice(0, 140), roundup, link: decode(tag(raw, 'link')), date,\n      ort, hint, dienst, cat: cat.id, catLabel: cat.label, color: cat.color,\n      age, amount: status === 'abgewehrt' ? 0 : amount, status,\n    } });\n  }\n}\nitems.sort((a, b) => b.json.date - a.json.date);\nreturn items.length ? items : [{ json: { empty: true } }];\n"
   },
   "name": "Meldungen auswerten",
   "type": "n8n-nodes-base.code",
   "typeVersion": 2,
   "position": [
    1440,
    260
   ]
  },
  {
   "parameters": {
    "jsCode": "// Node: \"Orte finden\" (Code, Run Once for All Items)\n// Geocodiert jeden Meldungsort mit der freien Open-Meteo-Geocoding-API (kein Key).\n// Ergebnisse werden im Workflow-Static-Data gecacht -> pro Ort nur ein einziger Abruf.\nconst sd = $getWorkflowStaticData('global');\nsd.geo = sd.geo || {};\nconst rows = $input.all().map(i => i.json).filter(r => r && r.id);\nconst sleep = ms => new Promise(r => setTimeout(r, ms));\n\nconst clean = s => s\n  .replace(/\\b(Polizeiinspektion|Polizeipräsidium|Polizeidirektion|Kreispolizeibehörde|Landkreis|Lkr\\.?|Kreis|Stadt|Gemeinde|Samtgemeinde)\\b/gi, ' ')\n  .replace(/\\s+/g, ' ').trim();\nconst tokens = h => clean(h).toLowerCase().split(/[\\s,\\/\\-]+/).filter(t => t.length > 3);\n\nasync function lookup(ort, hint) {\n  const name = clean(ort) || ort;\n  let res = [];\n  for (const q of [...new Set([name, name.split('/')[0].trim(), name.split(' ').slice(0, 2).join(' ')])]) {\n    try {\n      const r = await this.helpers.httpRequest({\n        method: 'GET', url: 'https://geocoding-api.open-meteo.com/v1/search', json: true, timeout: 8000,\n        qs: { name: q, count: 10, language: 'de', countryCode: 'DE' },\n      });\n      res = ((r && r.results) || []).filter(c => c.country_code === 'DE' && c.latitude > 47 && c.latitude < 55.2 && c.longitude > 5.5 && c.longitude < 15.2);\n    } catch (e) { res = []; }\n    if (res.length) break;\n  }\n  if (!res.length) return null;\n  let best = res[0];\n  const t = tokens(hint || '');\n  if (t.length) {\n    const hit = res.find(c => t.some(w => [c.admin2, c.admin3, c.admin4, c.name].filter(Boolean).join(' ').toLowerCase().includes(w)));\n    if (hit) best = hit;\n  }\n  return { lat: +best.latitude.toFixed(4), lon: +best.longitude.toFixed(4), state: best.admin1 || '', name: best.name };\n}\n\nlet calls = 0;\nconst todo = [];\nfor (const r of rows) {\n  const key = (r.ort + '|' + (r.hint || '')).toLowerCase();\n  if (!(key in sd.geo) && !todo.find(t => t.key === key)) todo.push({ key, ort: r.ort, hint: r.hint });\n}\nfor (let n = 0; n < todo.length; n += 6) {            // 6 parallel, höflich getaktet\n  await Promise.all(todo.slice(n, n + 6).map(async t => { sd.geo[t.key] = await lookup.call(this, t.ort, t.hint); calls++; }));\n  await sleep(150);\n}\n// Cache klein halten (max. 1500 Orte)\nconst keys = Object.keys(sd.geo);\nif (keys.length > 1500) keys.slice(0, keys.length - 1500).forEach(k => delete sd.geo[k]);\n\nconst out = [];\nlet unlocated = 0;\nfor (const r of rows) {\n  const g = sd.geo[(r.ort + '|' + (r.hint || '')).toLowerCase()];\n  if (!g) { unlocated++; continue; }\n  out.push({ ...r, lat: g.lat, lon: g.lon, state: g.state, place: g.name });\n}\nreturn [{ json: { incidents: out, unlocated, geocodeCalls: calls } }];\n"
   },
   "name": "Orte finden",
   "type": "n8n-nodes-base.code",
   "typeVersion": 2,
   "position": [
    1680,
    260
   ]
  },
  {
   "parameters": {
    "jsCode": "// Node: \"Seite bauen\" – rendert die komplette, eigenständige HTML-Seite (ohne externe Ressourcen)\nconst cfg = $('Konfiguration').first().json;\nconst sd = $getWorkflowStaticData('global');\nconst TPL = \"<!doctype html>\\n<html lang=\\\"de\\\">\\n<head>\\n<meta charset=\\\"utf-8\\\">\\n<meta name=\\\"viewport\\\" content=\\\"width=device-width,initial-scale=1\\\">\\n<title>Betrugs-Live-Karte – was Deutschlands Polizei gerade meldet</title>\\n<meta name=\\\"description\\\" content=\\\"Schockanrufe, falsche Polizisten, Phishing: die aktuellen Betrugsmaschen aus den Polizeimeldungen auf einer Live-Karte. Gebaut mit n8n.\\\">\\n<meta name=\\\"color-scheme\\\" content=\\\"dark\\\">\\n<!--HEAD-->\\n<style>\\n:root{--bg:#04060c;--bg2:#0a1020;--panel:rgba(13,19,35,.78);--panel2:rgba(20,28,50,.7);--line:rgba(120,160,255,.15);--line2:rgba(120,160,255,.3);\\n--txt:#e9efff;--mut:#8996b8;--cy:#4de1ff;--vio:#b46bff;--red:#ff3b5c;--grn:#2ee6a6;--amb:#ffd23f;\\n--mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;--sans:system-ui,-apple-system,\\\"Segoe UI\\\",Roboto,sans-serif}\\n*{box-sizing:border-box}\\nhtml{background:var(--bg)}\\nbody{margin:0;color:var(--txt);font:15px/1.5 var(--sans);min-height:100vh;\\nbackground:radial-gradient(1200px 700px at 15% -10%,rgba(77,225,255,.10),transparent 60%),radial-gradient(900px 600px at 95% 10%,rgba(180,107,255,.12),transparent 60%),radial-gradient(900px 700px at 50% 120%,rgba(255,59,92,.07),transparent 60%),var(--bg);}\\nbody:before{content:\\\"\\\";position:fixed;inset:0;pointer-events:none;background:repeating-linear-gradient(0deg,rgba(255,255,255,.018) 0 1px,transparent 1px 3px);mix-blend-mode:overlay;z-index:50}\\na{color:var(--cy)}\\n.wrap{max-width:1500px;margin:0 auto;padding:18px 16px 40px}\\nheader{display:flex;flex-wrap:wrap;gap:14px 24px;align-items:flex-end;justify-content:space-between;margin-bottom:16px}\\n.live{display:inline-flex;align-items:center;gap:8px;font:600 12px var(--mono);letter-spacing:.14em;color:var(--red);text-transform:uppercase}\\n.live i{width:9px;height:9px;border-radius:50%;background:var(--red);box-shadow:0 0 0 0 rgba(255,59,92,.7);animation:pulse 1.6s infinite}\\n@keyframes pulse{70%{box-shadow:0 0 0 12px rgba(255,59,92,0)}100%{box-shadow:0 0 0 0 rgba(255,59,92,0)}}\\nh1{margin:4px 0 2px;font-size:clamp(28px,4.6vw,54px);line-height:1.02;letter-spacing:-.02em;font-weight:800;\\nbackground:linear-gradient(95deg,#fff 0%,#9fe9ff 40%,#d9b3ff 80%);-webkit-background-clip:text;background-clip:text;color:transparent}\\n.sub{color:var(--mut);max-width:62ch}\\n.stamp{font:12px var(--mono);color:var(--mut)}\\n.btns{display:flex;flex-wrap:wrap;gap:8px}\\n.btn{appearance:none;border:1px solid var(--line2);background:var(--panel2);color:var(--txt);font:600 13px var(--sans);padding:9px 14px;border-radius:10px;cursor:pointer;text-decoration:none;display:inline-flex;gap:7px;align-items:center;transition:.15s}\\n.btn:hover{border-color:var(--cy);box-shadow:0 0 0 3px rgba(77,225,255,.12);transform:translateY(-1px)}\\n.btn.pri{background:linear-gradient(135deg,#1fd2ff,#8a5bff);border-color:transparent;color:#04060c}\\n.grid{display:grid;grid-template-columns:300px minmax(0,1fr) 410px;gap:14px;align-items:start}\\n.card{background:var(--panel);border:1px solid var(--line);border-radius:18px;backdrop-filter:blur(8px);box-shadow:0 20px 60px -30px #000,inset 0 1px 0 rgba(255,255,255,.04)}\\n.card h2{margin:0 0 10px;font:700 11px var(--mono);letter-spacing:.16em;text-transform:uppercase;color:var(--mut)}\\n.pad{padding:16px}\\n.kpis{display:grid;gap:10px}\\n.kpi{padding:14px 16px;border-radius:14px;background:linear-gradient(160deg,rgba(255,255,255,.045),rgba(255,255,255,.01));border:1px solid var(--line)}\\n.kpi b{display:block;font:800 clamp(30px,3.2vw,40px)/1 var(--sans);letter-spacing:-.02em;font-variant-numeric:tabular-nums}\\n.kpi span{font-size:12.5px;color:var(--mut)}\\n.kpi.r b{color:var(--red);text-shadow:0 0 24px rgba(255,59,92,.45)}\\n.kpi.g b{color:var(--grn);text-shadow:0 0 24px rgba(46,230,166,.4)}\\n.kpi.a b{color:var(--amb);text-shadow:0 0 24px rgba(255,210,63,.35)}\\n.kpi.c b{color:var(--cy);text-shadow:0 0 24px rgba(77,225,255,.4)}\\n.bars{display:grid;gap:7px;margin-top:6px}\\n.bar{display:grid;grid-template-columns:118px 1fr 24px;align-items:center;gap:8px;font-size:12.5px;cursor:default}\\n.bar em{font-style:normal;color:var(--txt);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\\n.bar i{display:block;height:8px;border-radius:99px;background:rgba(255,255,255,.07);overflow:hidden}\\n.bar i u{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,var(--cy),var(--vio));transform-origin:left;animation:grow .9s cubic-bezier(.2,.8,.2,1) both}\\n.bar:hover em{color:var(--cy)}\\n.bar span{font:600 12px var(--mono);text-align:right;color:var(--mut)}\\n@keyframes grow{from{transform:scaleX(0)}}\\n/* map */\\n.mapcard{position:relative;overflow:hidden;min-height:560px;height:min(82vh,860px);background:radial-gradient(600px 500px at 50% 45%,rgba(30,50,110,.35),transparent 70%),#050813}\\n#map{position:absolute;inset:0;width:100%;height:100%;display:block;cursor:crosshair}\\n.hud{position:absolute;pointer-events:none;font:11px var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--mut)}\\n.hud.tl{left:16px;top:14px}.hud.tr{right:16px;top:14px;text-align:right}\\n.hud .big{display:block;font:800 clamp(22px,2.6vw,32px) var(--sans);letter-spacing:-.01em;color:var(--txt);text-transform:none}\\n.legend{position:absolute;left:12px;bottom:70px;display:flex;flex-direction:column;gap:4px;pointer-events:none;font-size:11.5px;color:var(--mut)}\\n.legend s{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:7px;text-decoration:none;box-shadow:0 0 10px currentColor}\\n.tip{position:absolute;z-index:5;max-width:290px;padding:10px 12px;border-radius:12px;background:rgba(8,12,24,.94);border:1px solid var(--line2);box-shadow:0 12px 40px #000;font-size:13px;pointer-events:none;opacity:0;transform:translateY(4px);transition:.12s}\\n.tip.on{opacity:1;transform:none}\\n.tip b{display:block;margin-bottom:2px}.tip small{color:var(--mut);display:block}\\n.ctrl{position:absolute;left:0;right:0;bottom:0;padding:10px 14px 12px;background:linear-gradient(0deg,rgba(4,6,12,.96),rgba(4,6,12,.0));display:flex;gap:12px;align-items:center}\\n.play{flex:none;width:40px;height:40px;border-radius:50%;border:1px solid var(--line2);background:linear-gradient(135deg,#1fd2ff,#8a5bff);color:#04060c;font-size:15px;cursor:pointer;display:grid;place-items:center}\\n.play:hover{box-shadow:0 0 0 5px rgba(77,225,255,.16)}\\n.tl{flex:1;min-width:0}\\n.hist{display:flex;align-items:flex-end;gap:2px;height:30px}\\n.hist i{flex:1;background:linear-gradient(0deg,rgba(77,225,255,.25),rgba(180,107,255,.7));border-radius:2px 2px 0 0;min-height:2px;opacity:.55;transition:opacity .15s}\\n.hist i.on{opacity:1;box-shadow:0 0 10px rgba(77,225,255,.5)}\\ninput[type=range]{width:100%;margin:2px 0 0;accent-color:#4de1ff;height:14px;background:transparent}\\n.tlabel{display:flex;justify-content:space-between;font:10.5px var(--mono);color:var(--mut);margin-top:1px}\\n/* list */\\n.side{display:flex;flex-direction:column;max-height:min(82vh,860px)}\\n.chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}\\n.chip{appearance:none;border:1px solid var(--line);background:rgba(255,255,255,.03);color:var(--txt);font:600 12px var(--sans);padding:5px 10px;border-radius:99px;cursor:pointer;display:inline-flex;gap:6px;align-items:center;transition:.15s}\\n.chip s{width:8px;height:8px;border-radius:50%;text-decoration:none;display:inline-block}\\n.chip small{color:var(--mut);font-weight:500}\\n.chip.off{opacity:.38;filter:saturate(.3)}\\n.chip:hover{border-color:var(--line2)}\\n.search{width:100%;margin-bottom:10px;padding:10px 12px;border-radius:10px;border:1px solid var(--line);background:rgba(0,0,0,.35);color:var(--txt);font:14px var(--sans)}\\n.search:focus{outline:none;border-color:var(--cy);box-shadow:0 0 0 3px rgba(77,225,255,.14)}\\n.list{overflow:auto;display:grid;gap:8px;padding-right:4px;scrollbar-width:thin;scrollbar-color:#2a3558 transparent}\\n.it{padding:11px 12px;border-radius:12px;border:1px solid var(--line);background:rgba(255,255,255,.025);transition:.15s;border-left:3px solid var(--c,#888);cursor:pointer}\\n.it:hover,.it.hl{background:rgba(77,225,255,.07);border-color:var(--line2);border-left-color:var(--c)}\\n.it .m{display:flex;justify-content:space-between;gap:8px;font:11px var(--mono);color:var(--mut);letter-spacing:.04em}\\n.it .m b{color:var(--c);letter-spacing:.08em;text-transform:uppercase}\\n.it h3{margin:3px 0 6px;font:600 14px/1.35 var(--sans)}\\n.tags{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:11.5px}\\n.tag{padding:2px 8px;border-radius:99px;background:rgba(255,255,255,.07);color:var(--txt)}\\n.tag.ok{background:rgba(46,230,166,.15);color:#7ff2cd}.tag.bad{background:rgba(255,59,92,.15);color:#ff98aa}\\n.it a{margin-left:auto;font-size:12px;text-decoration:none}.it a:hover{text-decoration:underline}\\n.empty{padding:20px;text-align:center;color:var(--mut)}\\n/* lower */\\n.lower{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px;margin-top:14px}\\n.tipc{padding:16px;border-radius:16px;border:1px solid var(--line);background:var(--panel);position:relative;overflow:hidden}\\n.tipc:before{content:\\\"\\\";position:absolute;inset:0 auto 0 0;width:3px;background:var(--c)}\\n.tipc .ic{font-size:26px}\\n.tipc h3{margin:4px 0 2px;font-size:16px}\\n.tipc .n{font:700 11px var(--mono);color:var(--c);letter-spacing:.1em}\\n.tipc p{margin:6px 0 0;font-size:13.5px;color:#c4cde6}\\n.tipc p b{color:#fff}\\n.help{margin-top:14px;padding:18px 20px;border-radius:18px;border:1px solid rgba(255,59,92,.4);background:linear-gradient(120deg,rgba(255,59,92,.14),rgba(255,59,92,.03));display:flex;flex-wrap:wrap;gap:12px 28px;align-items:center}\\n.help b{font-size:18px}.help ol{margin:0;padding-left:20px;color:#ffd0d8}\\nfooter{margin-top:22px;color:var(--mut);font-size:12.5px;display:grid;gap:6px}\\n.snap{display:none;margin-bottom:12px;padding:10px 14px;border-radius:12px;border:1px dashed var(--line2);color:var(--amb);font-size:13px}\\n.snap.on{display:block}\\n@media(max-width:1500px){.legend{display:none}}\\n@media(max-width:1250px){.grid{grid-template-columns:300px minmax(0,1fr)}.side{grid-column:1/-1;max-height:none}.list{max-height:520px}.mapcard{height:min(78vh,780px)}}\\n@media(max-width:820px){.grid{grid-template-columns:1fr}.mapcard{order:-1;height:auto;aspect-ratio:3/4;min-height:420px}.kpi b{font-size:26px;white-space:nowrap}.kpi{padding:12px}.legend{display:none}.kpis{grid-template-columns:1fr 1fr}.bar{grid-template-columns:104px 1fr 22px}}\\n@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}\\n</style>\\n</head>\\n<body>\\n<div class=\\\"wrap\\\">\\n<header>\\n <div>\\n  <div class=\\\"live\\\"><i></i>Live aus den Polizeimeldungen</div>\\n  <h1 id=\\\"ttl\\\">Betrugs-Live-Karte</h1>\\n  <div class=\\\"sub\\\">Schockanrufe, falsche Polizisten, Phishing: so sieht Deutschland gerade aus, wenn Betrüger zuschlagen &ndash; und wie du sie erkennst.</div>\\n  <div class=\\\"stamp\\\" id=\\\"stamp\\\"></div>\\n </div>\\n <div class=\\\"btns\\\">\\n  <a class=\\\"btn pri\\\" id=\\\"bWa\\\" target=\\\"_blank\\\" rel=\\\"noopener\\\">📲 Per WhatsApp teilen</a>\\n  <button class=\\\"btn\\\" id=\\\"bCopy\\\">🔗 Link kopieren</button>\\n  <a class=\\\"btn\\\" id=\\\"bSave\\\" download=\\\"betrugskarte.html\\\">⬇ Als HTML speichern</a>\\n  <a class=\\\"btn\\\" id=\\\"bJson\\\" download=\\\"betrugskarte.json\\\">{ } Daten (JSON)</a>\\n </div>\\n</header>\\n<div class=\\\"snap\\\" id=\\\"snap\\\"></div>\\n\\n<div class=\\\"grid\\\">\\n <aside class=\\\"card pad\\\">\\n  <h2>Lage auf einen Blick</h2>\\n  <div class=\\\"kpis\\\">\\n   <div class=\\\"kpi r\\\"><b data-n=\\\"total\\\">0</b><span id=\\\"kTotalL\\\">Betrugsmeldungen</span></div>\\n   <div class=\\\"kpi c\\\"><b data-n=\\\"places\\\">0</b><span>Orte betroffen</span></div>\\n   <div class=\\\"kpi a\\\"><b data-n=\\\"states\\\">0</b><span>von 16 Bundesländern</span></div>\\n   <div class=\\\"kpi g\\\"><b data-n=\\\"won\\\">0</b><span>Fälle vom Opfer durchschaut</span></div>\\n   <div class=\\\"kpi\\\"><b data-n=\\\"eur\\\" data-eur=\\\"1\\\">0</b><span>in den Meldungen genannte Schäden (Auszug)</span></div>\\n  </div>\\n  <h2 style=\\\"margin-top:18px\\\">Hotspots nach Bundesland</h2>\\n  <div class=\\\"bars\\\" id=\\\"stateBars\\\"></div>\\n </aside>\\n\\n <section class=\\\"card mapcard\\\" id=\\\"mapcard\\\" aria-label=\\\"Karte der Betrugsmeldungen in Deutschland\\\">\\n  <canvas id=\\\"map\\\" role=\\\"img\\\" aria-label=\\\"Deutschlandkarte mit pulsierenden Punkten für jede Betrugsmeldung\\\"></canvas>\\n  <div class=\\\"hud tl\\\"><span id=\\\"hudLabel\\\">Zeitraum</span><span class=\\\"big\\\" id=\\\"hudBig\\\"></span></div>\\n  <div class=\\\"hud tr\\\"><span>Sichtbar</span><span class=\\\"big\\\" id=\\\"hudCount\\\">0</span></div>\\n  <div class=\\\"legend\\\" id=\\\"legend\\\"></div>\\n  <div class=\\\"tip\\\" id=\\\"tip\\\"></div>\\n  <div class=\\\"ctrl\\\">\\n   <button class=\\\"play\\\" id=\\\"play\\\" aria-label=\\\"Replay abspielen\\\">▶</button>\\n   <div class=\\\"tl\\\">\\n    <div class=\\\"hist\\\" id=\\\"hist\\\"></div>\\n    <input type=\\\"range\\\" id=\\\"scrub\\\" min=\\\"0\\\" max=\\\"1000\\\" value=\\\"1000\\\" aria-label=\\\"Zeitleiste\\\">\\n    <div class=\\\"tlabel\\\"><span id=\\\"tMin\\\"></span><span id=\\\"tMax\\\"></span></div>\\n   </div>\\n  </div>\\n </section>\\n\\n <aside class=\\\"card pad side\\\">\\n  <h2>Meldungen <span id=\\\"listCount\\\"></span></h2>\\n  <div class=\\\"chips\\\" id=\\\"chips\\\"></div>\\n  <input class=\\\"search\\\" id=\\\"q\\\" type=\\\"search\\\" placeholder=\\\"Ort oder Stichwort suchen …\\\" aria-label=\\\"Meldungen durchsuchen\\\">\\n  <div class=\\\"list\\\" id=\\\"list\\\"></div>\\n </aside>\\n</div>\\n\\n<h2 style=\\\"margin:26px 0 4px;font:700 11px var(--mono);letter-spacing:.16em;text-transform:uppercase;color:var(--mut)\\\">So funktionieren die Maschen &ndash; und das tust du</h2>\\n<div class=\\\"lower\\\" id=\\\"tips\\\"></div>\\n\\n<div class=\\\"help\\\">\\n <b>Du bist gerade am Telefon mit einem Verdacht?</b>\\n <ol><li><b>Auflegen.</b> Immer. Die Polizei verlangt nie Geld oder Wertsachen.</li><li><b>Angehörige selbst anrufen</b> – mit der Nummer, die du kennst.</li><li><b>110</b> wählen, wenn schon etwas passiert ist. Karte sperren: <b>116 116</b>.</li></ol>\\n</div>\\n\\n<footer>\\n <div><b>Quelle:</b> Pressemitteilungen der Polizei über Presseportal / news aktuell (Blaulicht, „ots“) sowie direkte Feeds einzelner Polizeien (aktuell Berlin und Brandenburg). Jede Meldung verlinkt auf das Original. Der Punkt zeigt den <i>Ort der Meldung</i>, nicht zwingend den Tatort.</div>\\n <div><b>Stichprobe, keine Vollerhebung:</b> pro Suchbegriff werden die 10 neuesten Meldungen ausgewertet, und nicht jede Dienststelle veröffentlicht jeden Fall. Die Karte zeigt, <i>was gemeldet wird</i>, nicht, wie viel tatsächlich passiert.</div>\\n <div><b>Auswertung:</b> automatisch per Stichwort (Masche, Alter, Beträge, Ausgang) – kann Fehler enthalten und ersetzt keine amtliche Kriminalstatistik. Beträge nur, wo sie im Meldungstext stehen. Geokodierung: Open-Meteo.</div>\\n <div id=\\\"brand\\\"></div>\\n</footer>\\n</div>\\n\\n<script>\\n(function(){\\n\\\"use strict\\\";\\nvar GEO=/*GEO*/null, D=/*DATA*/null;\\nvar $=function(s){return document.querySelector(s)};\\nvar CFG=D.cfg||{}, INC=D.incidents.slice().sort(function(a,b){return b.date-a.date});\\nvar CAT={};D.cats.forEach(function(c){CAT[c.id]=c});\\nvar ICON={schock:'😱',polizei:'👮',enkel:'👵',bank:'🏦',phishing:'📱',gewinn:'🎁',anlage:'📈',love:'💔',handel:'🛒',support:'💻',sonst:'⚠️'};\\nvar TIP={\\n schock:['Ein Anrufer behauptet, ein Angehöriger habe einen schweren Unfall verursacht – nur eine Kaution rettet ihn vor dem Gefängnis.','<b>Auflegen</b> und die Person unter der bekannten Nummer selbst anrufen. Keine Wertsachen an Fremde übergeben.'],\\n polizei:['„Kriminalbeamte“ warnen vor Einbrechern und wollen Geld oder Schmuck „in Sicherheit bringen“. Die Nummer zeigt oft 110.','Die echte Polizei holt <b>nie</b> Wertsachen ab. Auflegen, selbst die 110 wählen.'],\\n enkel:['„Hallo, ich bin’s“ – ein angeblicher Verwandter braucht dringend Geld. Per Telefon oder WhatsApp („Hallo Mama“).','Rückruf unter der <b>alten</b> Nummer. Bei WhatsApp-Nachrichten: Fragen stellen, die nur die echte Person beantworten kann.'],\\n bank:['Ein „Bankmitarbeiter“ meldet verdächtige Abbuchungen und fragt nach TAN, Karte oder PIN.','Banken fragen <b>nie</b> nach TAN oder PIN. Auflegen, Bank selbst anrufen, im Zweifel <b>116 116</b>.'],\\n phishing:['Gefälschte SMS, Mails oder QR-Codes („Paket wartet“, „Konto gesperrt“) führen auf Fake-Seiten.','Nichts anklicken. Absender prüfen, Adresse selbst im Browser eingeben. Gleich löschen.'],\\n gewinn:['Ein „Gewinn“ wartet – man müsse nur vorher Gebühren zahlen oder Gutscheincodes durchgeben.','Wer nichts gespielt hat, kann nichts gewinnen. <b>Nie</b> vorab zahlen.'],\\n anlage:['Traumrenditen mit Krypto oder „Trading-Plattformen“, oft nach Kontakt über Social Media.','Seriöse Anlagen versprechen keine Garantien. Anbieter bei der <b>BaFin</b>-Datenbank prüfen.'],\\n love:['Online-Bekanntschaft, die nach kurzer Zeit in Geldnot gerät – Reise, Zoll, Klinik.','Wer Geld verlangt, ohne sich zu treffen, ist verdächtig. <b>Nie</b> Geld an Online-Bekanntschaften schicken.'],\\n handel:['Fake-Shops, gefälschte Kleinanzeigen und „sichere“ Bezahllinks, die Ware nie liefern.','Nur über die Plattform bezahlen, Preise prüfen, Impressum lesen. Zu billig? <b>Finger weg.</b>'],\\n support:['Ein „Microsoft-Techniker“ will per Fernzugriff einen Virus entfernen – und räumt das Konto leer.','Microsoft ruft <b>nie</b> an. Kein Fernzugriff für Fremde. Auflegen.'],\\n sonst:['Neue Maschen tauchen laufend auf. Gemeinsam: Zeitdruck, Geheimhaltung, Geld oder Daten.','Bei Zeitdruck <b>stoppen</b>. Mit jemandem sprechen, den du kennst. Im Zweifel: 110.']\\n};\\nvar DAYMS=86400000, fmtDay=new Intl.DateTimeFormat('de-DE',{weekday:'short',day:'2-digit',month:'2-digit'}),\\n fmtD=new Intl.DateTimeFormat('de-DE',{day:'2-digit',month:'2-digit'}), fmtT=new Intl.DateTimeFormat('de-DE',{day:'2-digit',month:'2-digit',year:'numeric',hour:'2-digit',minute:'2-digit'});\\nfunction el(t,c,tx){var e=document.createElement(t);if(c)e.className=c;if(tx!=null)e.textContent=tx;return e}\\nfunction safeUrl(u){return /^https:\\\\/\\\\/(www\\\\.presseportal\\\\.de|www\\\\.berlin\\\\.de\\\\/polizei|polizei\\\\.brandenburg\\\\.de)\\\\//.test(u||'')?u:'#'}\\n\\n/* ---------- Kopf ---------- */\\n$('#ttl').textContent=CFG.title||'Betrugs-Live-Karte';\\nvar gen=D.generated, live=/^https?:$/.test(location.protocol);\\n$('#stamp').textContent='Stand '+fmtT.format(gen)+' Uhr · Daten der letzten '+D.days+' Tage · aktualisiert sich alle '+Math.round((CFG.refreshMinutes||180)/60*10)/10+' Std.';\\nvar url=(CFG.liveUrl||(live?location.href.split('?')[0]:''));\\n$('#bWa').href='https://wa.me/?text='+encodeURIComponent('Achtung Betrug: Diese Maschen laufen gerade in Deutschland'+(url?' – live auf der Karte: '+url:''));\\nif(!url)$('#bCopy').style.display='none';\\n$('#bCopy').onclick=function(){var b=this;(navigator.clipboard?navigator.clipboard.writeText(url):Promise.reject()).then(function(){b.textContent='✓ Kopiert'}).catch(function(){prompt('Link kopieren:',url)})};\\nif(live){$('#bSave').href=location.pathname+'?download=1';$('#bJson').href=location.pathname+'?format=json'}\\nelse{$('#bSave').style.display='none';$('#bJson').style.display='none';var s=$('#snap');s.className='snap on';s.textContent='Offline-Snapshot vom '+fmtT.format(gen)+' Uhr.'+(url?' Die Live-Version findest du unter '+url:'')}\\nvar br=$('#brand');br.appendChild(document.createTextNode('Gebaut mit '));var na=el('a',null,'n8n');na.href='https://n8n.io';na.rel='noopener';br.appendChild(na);\\nif(CFG.workflowUrl){br.appendChild(document.createTextNode(' · '));var wa=el('a',null,'Workflow zum Importieren');wa.href=CFG.workflowUrl;wa.rel='noopener';br.appendChild(wa)}\\nif(CFG.brandUrl){br.appendChild(document.createTextNode(' · '));var ba=el('a',null,CFG.brandName||CFG.brandUrl);ba.href=CFG.brandUrl;ba.rel='noopener';br.appendChild(ba)}\\n\\n/* ---------- Zahlen ---------- */\\nvar places={},states={},won=0,eur=0;\\nINC.forEach(function(i){places[i.place||i.ort]=1;if(i.state)states[i.state]=(states[i.state]||0)+1;if(i.status==='abgewehrt')won++;eur+=i.amount||0});\\nvar KP={total:INC.length,places:Object.keys(places).length,states:Object.keys(states).length,won:won,eur:eur};\\n$('#kTotalL').textContent='Betrugsmeldungen in '+D.days+' Tagen';\\nvar t0=performance.now();\\nfunction countUp(now){var p=Math.min(1,(now-t0)/1400),e=1-Math.pow(1-p,3);\\n document.querySelectorAll('[data-n]').forEach(function(n){var v=Math.round(KP[n.dataset.n]*e);n.textContent=n.dataset.eur?v.toLocaleString('de-DE')+' €':v.toLocaleString('de-DE')});\\n if(p<1)requestAnimationFrame(countUp)}\\nrequestAnimationFrame(countUp);\\n\\nvar sb=$('#stateBars'),stArr=Object.keys(states).map(function(k){return[k,states[k]]}).sort(function(a,b){return b[1]-a[1]}).slice(0,9),smax=stArr.length?stArr[0][1]:1;\\nvar hoverState=null;\\nstArr.forEach(function(s,ix){var r=el('div','bar');r.appendChild(el('em',null,s[0]));var i=el('i'),u=el('u');u.style.width=(s[1]/smax*100)+'%';u.style.animationDelay=(ix*70)+'ms';i.appendChild(u);r.appendChild(i);r.appendChild(el('span',null,String(s[1])));\\n r.onmouseenter=function(){hoverState=s[0];need()};r.onmouseleave=function(){hoverState=null;need()};sb.appendChild(r)});\\nif(!stArr.length)sb.appendChild(el('div','empty','Noch keine Daten'));\\n\\n/* ---------- Filter / Liste ---------- */\\nvar active={},catCount={};D.cats.forEach(function(c){active[c.id]=true});INC.forEach(function(i){catCount[i.cat]=(catCount[i.cat]||0)+1});\\nvar qtxt='',hoverId=null,selId=null;\\nvar chips=$('#chips'),leg=$('#legend');\\nD.cats.filter(function(c){return catCount[c.id]}).sort(function(a,b){return catCount[b.id]-catCount[a.id]}).forEach(function(c){\\n var b=el('button','chip');b.type='button';var s=el('s');s.style.background=c.color;s.style.boxShadow='0 0 8px '+c.color;b.appendChild(s);b.appendChild(document.createTextNode(c.label+' '));b.appendChild(el('small',null,String(catCount[c.id])));\\n b.onclick=function(){active[c.id]=!active[c.id];b.classList.toggle('off',!active[c.id]);renderList();need()};chips.appendChild(b);\\n var l=el('div');var ls=el('s');ls.style.background=c.color;ls.style.color=c.color;l.appendChild(ls);l.appendChild(document.createTextNode(c.label));leg.appendChild(l)});\\n$('#q').addEventListener('input',function(){qtxt=this.value.trim().toLowerCase();renderList();need()});\\nvar rp={on:false,t:0,min:0,max:0};\\nINC.forEach(function(i){if(!rp.min||i.date<rp.min)rp.min=i.date;if(i.date>rp.max)rp.max=i.date});\\nrp.min=Math.floor(rp.min/DAYMS)*DAYMS;rp.max=rp.max||gen;rp.t=Infinity;\\nfunction vis(i){if(!active[i.cat])return false;if(qtxt&&(i.ort+' '+i.state+' '+i.title+' '+i.catLabel).toLowerCase().indexOf(qtxt)<0)return false;if(rp.t!==Infinity&&i.date>rp.t)return false;return true}\\nfunction relDay(d){var n=new Date(gen);n.setHours(0,0,0,0);var x=new Date(d);x.setHours(0,0,0,0);var df=Math.round((n-x)/DAYMS);return df===0?'heute':df===1?'gestern':fmtDay.format(d)}\\nvar listEl=$('#list');\\nfunction renderList(){\\n var f=INC.filter(vis);listEl.textContent='';$('#listCount').textContent='('+f.length+' von '+INC.length+')';$('#hudCount').textContent=f.length;\\n if(!f.length)listEl.appendChild(el('div','empty','Keine Meldungen für diese Auswahl.'));\\n var frag=document.createDocumentFragment();\\n f.slice(0,150).forEach(function(i){\\n  var c=el('div','it');c.style.setProperty('--c',i.color);c.dataset.id=i.id;\\n  var m=el('div','m');m.appendChild(el('b',null,(ICON[i.cat]||'')+' '+i.catLabel));m.appendChild(el('span',null,relDay(i.date)+' · '+i.ort+(i.state?' · '+i.state:'')));c.appendChild(m);\\n  c.appendChild(el('h3',null,i.title));\\n  var t=el('div','tags');\\n  if(i.status==='abgewehrt')t.appendChild(el('span','tag ok','✓ durchschaut'));\\n  if(i.status==='schaden')t.appendChild(el('span','tag bad','Schaden'));\\n  if(i.age)t.appendChild(el('span','tag',i.age+' Jahre'));\\n  if(i.amount)t.appendChild(el('span','tag bad',i.amount.toLocaleString('de-DE')+' €'));\\n  if(i.roundup)t.appendChild(el('span','tag','Sammelmeldung'));\\n  if(i.src&&i.src!=='Presseportal')t.appendChild(el('span','tag',i.src));\\n  var a=el('a',null,'Original ↗');a.href=safeUrl(i.link);a.target='_blank';a.rel='noopener noreferrer nofollow';a.onclick=function(e){e.stopPropagation()};t.appendChild(a);c.appendChild(t);\\n  c.onmouseenter=function(){hoverId=i.id;need()};c.onmouseleave=function(){hoverId=null;need()};\\n  c.onclick=function(){selId=selId===i.id?null:i.id;need()};\\n  frag.appendChild(c)});\\n listEl.appendChild(frag)}\\nrenderList();\\n\\n/* ---------- Maßnahmen-Karten ---------- */\\nvar tipsEl=$('#tips');\\nD.cats.filter(function(c){return catCount[c.id]}).sort(function(a,b){return catCount[b.id]-catCount[a.id]}).slice(0,8).forEach(function(c){\\n var k=TIP[c.id]||TIP.sonst,d=el('div','tipc');d.style.setProperty('--c',c.color);\\n d.appendChild(el('div','ic',ICON[c.id]||'⚠️'));d.appendChild(el('div','n',catCount[c.id]+' MELDUNGEN'));d.appendChild(el('h3',null,c.label));\\n var p=el('p',null,k[0]);d.appendChild(p);var p2=el('p');p2.innerHTML=k[1];d.appendChild(p2);tipsEl.appendChild(d)});\\n\\n/* ---------- Zeitleiste ---------- */\\nvar nd=Math.max(1,Math.ceil((rp.max-rp.min)/DAYMS)+1),hist=$('#hist'),hb=[];\\nvar hc=new Array(nd).fill(0);INC.forEach(function(i){hc[Math.min(nd-1,Math.floor((i.date-rp.min)/DAYMS))]++});\\nvar hm=Math.max.apply(null,hc.concat([1]));\\nfor(var h=0;h<nd;h++){var b=el('i');b.style.height=(8+hc[h]/hm*92)+'%';b.title=fmtD.format(rp.min+h*DAYMS)+': '+hc[h];hist.appendChild(b);hb.push(b)}\\n$('#tMin').textContent=fmtD.format(rp.min);$('#tMax').textContent=fmtD.format(rp.max);\\n$('#hudBig').textContent=fmtD.format(rp.min)+' – '+fmtD.format(rp.max);\\nvar scrub=$('#scrub'),playBtn=$('#play'),arrive={},playRaf=0,lastTs=0;\\nfunction setT(frac){var t=rp.min+frac*(rp.max-rp.min+DAYMS);rp.t=frac>=0.999?Infinity:t;\\n var cur=rp.t===Infinity?rp.max:rp.t;var di=Math.min(nd-1,Math.max(0,Math.floor((cur-rp.min)/DAYMS)));hb.forEach(function(b,ix){b.classList.toggle('on',rp.t===Infinity||ix<=di)});\\n $('#hudLabel').textContent=rp.t===Infinity?'Zeitraum':'Replay';$('#hudBig').textContent=rp.t===Infinity?fmtD.format(rp.min)+' – '+fmtD.format(rp.max):fmtDay.format(cur);\\n renderList();need()}\\nscrub.addEventListener('input',function(){stopPlay();arrive={};setT(+this.value/1000)});\\nfunction stopPlay(){rp.on=false;playBtn.textContent='▶';cancelAnimationFrame(playRaf)}\\nplayBtn.onclick=function(){if(rp.on){stopPlay();return}\\n rp.on=true;playBtn.textContent='❚❚';if(+scrub.value>=999)scrub.value=0;arrive={};lastTs=0;\\n (function step(ts){if(!rp.on)return;if(!lastTs)lastTs=ts;var dt=ts-lastTs;lastTs=ts;var v=+scrub.value+dt/16;if(v>=1000){scrub.value=1000;setT(1);stopPlay();return}scrub.value=v;setT(v/1000);playRaf=requestAnimationFrame(step)})(performance.now())};\\n\\n/* ---------- Karte ---------- */\\nvar cv=$('#map'),ctx=cv.getContext('2d'),tip=$('#tip'),card=$('#mapcard');\\nvar reduce=matchMedia('(prefers-reduced-motion: reduce)').matches,W=0,H=0,dpr=1,sc=1,ox=0,oy=0,paths=GEO.states.map(function(s){return{n:s.n,p:new Path2D(s.d)}});\\nvar allPath=new Path2D();paths.forEach(function(s){allPath.addPath(s.p)});\\nvar sMax=Math.max.apply(null,Object.keys(states).map(function(k){return states[k]}).concat([1]));\\nfunction fit(){dpr=Math.min(2,window.devicePixelRatio||1);var r=card.getBoundingClientRect();W=r.width;H=r.height;cv.width=W*dpr;cv.height=H*dpr;\\n var padT=70,padB=88,aw=W-24,ah=H-padT-padB;sc=Math.min(aw/GEO.w,ah/GEO.h);ox=(W-GEO.w*sc)/2;oy=padT+(ah-GEO.h*sc)/2;need()}\\nfunction xy(i){return[ox+(i.lon-GEO.lon0)*GEO.k*GEO.s*sc,oy+(GEO.lat1-i.lat)*GEO.s*sc]}\\nINC.forEach(function(i){var p=xy({lon:i.lon,lat:i.lat});i._x=0;i._y=0});\\nvar dirty=true;function need(){dirty=true;if(reduce)requestAnimationFrame(draw)}\\nfunction hex(c,a){var n=parseInt(c.slice(1),16);return'rgba('+(n>>16)+','+((n>>8)&255)+','+(n&255)+','+a+')'}\\nvar cx0=GEO.w/2,cy0=GEO.h*.5;\\nfunction draw(ts){\\n if(!reduce)requestAnimationFrame(draw);else if(!dirty)return;dirty=false;ts=ts||0;var t=ts/1000;\\n ctx.setTransform(dpr,0,0,dpr,0,0);ctx.clearRect(0,0,W,H);\\n /* Punktraster */\\n ctx.fillStyle='rgba(120,160,255,.10)';for(var gx=14;gx<W;gx+=26)for(var gy=14;gy<H;gy+=26)ctx.fillRect(gx,gy,1.4,1.4);\\n /* Länder */\\n ctx.save();ctx.translate(ox,oy);ctx.scale(sc,sc);var lw=1/sc;\\n paths.forEach(function(s){var n=states[s.n]||0,hv=hoverState===s.n;ctx.fillStyle=hv?'rgba(77,225,255,.30)':'rgba(70,110,255,'+(0.035+0.22*n/sMax)+')';ctx.fill(s.p)});\\n ctx.lineJoin='round';ctx.strokeStyle='rgba(77,225,255,.16)';ctx.lineWidth=7*lw;paths.forEach(function(s){ctx.stroke(s.p)});\\n ctx.strokeStyle='rgba(120,200,255,.28)';ctx.lineWidth=3*lw;paths.forEach(function(s){ctx.stroke(s.p)});\\n ctx.strokeStyle='rgba(190,235,255,.85)';ctx.lineWidth=1.1*lw;paths.forEach(function(s){ctx.stroke(s.p)});\\n /* Radar-Sweep */\\n var ang=reduce?0:(t*0.55)%(Math.PI*2);\\n if(!reduce&&ctx.createConicGradient){ctx.save();ctx.clip(allPath);var g=ctx.createConicGradient(ang+Math.PI*.06,cx0,cy0);\\n  g.addColorStop(0,'rgba(77,225,255,0)');g.addColorStop(.0001,'rgba(77,225,255,.42)');g.addColorStop(.11,'rgba(77,225,255,0)');g.addColorStop(1,'rgba(77,225,255,0)');\\n  ctx.fillStyle=g;ctx.fillRect(0,0,GEO.w,GEO.h);ctx.restore()}\\n ctx.restore();\\n /* Meldungen */\\n var any=false,drawn=[];\\n for(var k=INC.length-1;k>=0;k--){var i=INC[k];if(!vis(i))continue;any=true;\\n  var p=xy(i),px=p[0],py=p[1];i._x=px;i._y=py;\\n  var isH=(hoverId===i.id||selId===i.id),fresh=gen-i.date<DAYMS*1.2;\\n  var r0=3.2+Math.min(7,Math.sqrt(i.amount||0)/16)+(isH?2.5:0);\\n  var ph=((k*0.173)+(reduce?.3:t*0.42))%1;\\n  var d=Math.atan2((i.lat?(GEO.lat1-i.lat)*GEO.s:0)-cy0,(i.lon-GEO.lon0)*GEO.k*GEO.s-cx0)-ang;d=Math.atan2(Math.sin(d),Math.cos(d));\\n  var boost=(!reduce&&d<0&&d>-0.6)?1-(-d)/0.6:0;\\n  if(rp.on||rp.t!==Infinity){if(!arrive[i.id])arrive[i.id]=ts;var ag=(ts-arrive[i.id])/900;if(ag<1){ctx.strokeStyle=hex(i.color,1-ag);ctx.lineWidth=2;ctx.beginPath();ctx.arc(px,py,r0+ag*46,0,7);ctx.stroke()}}\\n  ctx.lineWidth=1.4;ctx.strokeStyle=hex(i.color,(1-ph)*.75);ctx.beginPath();ctx.arc(px,py,r0+ph*(fresh?30:20),0,7);ctx.stroke();\\n  if(fresh){var ph2=(ph+.5)%1;ctx.strokeStyle=hex(i.color,(1-ph2)*.5);ctx.beginPath();ctx.arc(px,py,r0+ph2*30,0,7);ctx.stroke()}\\n  ctx.shadowColor=i.color;ctx.shadowBlur=10+boost*22+(isH?14:0);ctx.fillStyle=boost>0?'#fff':i.color;ctx.beginPath();ctx.arc(px,py,r0*(1+boost*.5),0,7);ctx.fill();ctx.shadowBlur=0;\\n  ctx.fillStyle='rgba(255,255,255,.9)';ctx.beginPath();ctx.arc(px,py,r0*.38,0,7);ctx.fill();\\n  if(isH){ctx.strokeStyle='#fff';ctx.lineWidth=1.5;ctx.beginPath();ctx.arc(px,py,r0+5,0,7);ctx.stroke();drawn.push(i)}}\\n /* Beschriftung selektierter Ort */\\n drawn.forEach(function(i){ctx.font='600 12px system-ui';var txt=i.ort;var w=ctx.measureText(txt).width+14;var bx=Math.min(W-w-6,Math.max(6,i._x+12)),by=i._y-30;ctx.fillStyle='rgba(6,10,22,.92)';ctx.strokeStyle=i.color;ctx.lineWidth=1;ctx.beginPath();ctx.roundRect?ctx.roundRect(bx,by,w,22,8):ctx.rect(bx,by,w,22);ctx.fill();ctx.stroke();ctx.fillStyle='#fff';ctx.fillText(txt,bx+7,by+15)});\\n /* Sweep-Linie */\\n if(!reduce){var cxp=ox+cx0*sc,cyp=oy+cy0*sc,len=Math.max(GEO.w,GEO.h)*sc*.62;ctx.save();ctx.beginPath();ctx.setTransform(dpr,0,0,dpr,0,0);ctx.translate(ox,oy);ctx.scale(sc,sc);ctx.clip(allPath);ctx.setTransform(dpr,0,0,dpr,0,0);ctx.strokeStyle='rgba(180,240,255,.35)';ctx.lineWidth=1;ctx.beginPath();ctx.moveTo(cxp,cyp);ctx.lineTo(cxp+Math.cos(ang)*len,cyp+Math.sin(ang)*len);ctx.stroke();ctx.restore()}\\n if(!any){ctx.fillStyle='#8996b8';ctx.font='600 14px system-ui';ctx.textAlign='center';ctx.fillText('Keine Meldungen für diese Auswahl',W/2,H/2);ctx.textAlign='left'}\\n}\\n/* Hover / Klick auf Karte */\\nfunction hit(e){var r=cv.getBoundingClientRect(),mx=e.clientX-r.left,my=e.clientY-r.top,best=null,bd=18*18;\\n INC.forEach(function(i){if(!vis(i))return;var dx=i._x-mx,dy=i._y-my,dd=dx*dx+dy*dy;if(dd<bd){bd=dd;best=i}});return[best,mx,my]}\\ncv.addEventListener('mousemove',function(e){var h=hit(e),i=h[0];hoverId=i?i.id:null;\\n if(i){tip.textContent='';var b=el('b',null,(ICON[i.cat]||'')+' '+i.catLabel+' · '+i.ort);tip.appendChild(b);tip.appendChild(el('span',null,i.title));tip.appendChild(el('small',null,relDay(i.date)+(i.state?' · '+i.state:'')+(i.age?' · '+i.age+' J.':'')));\\n  tip.style.left=Math.min(W-300,Math.max(8,h[1]+14))+'px';tip.style.top=Math.max(8,h[2]-70)+'px';tip.className='tip on';\\n  document.querySelectorAll('.it').forEach(function(n){n.classList.toggle('hl',n.dataset.id===i.id)});\\n  var n=listEl.querySelector('.it[data-id=\\\"'+i.id.replace(/\\\"/g,'')+'\\\"]');if(n&&!listEl.matches(':hover'))listEl.scrollTo({top:n.offsetTop-listEl.offsetTop-6,behavior:'smooth'})}\\n else{tip.className='tip';document.querySelectorAll('.it.hl').forEach(function(n){n.classList.remove('hl')})}need()});\\ncv.addEventListener('mouseleave',function(){hoverId=null;tip.className='tip';need()});\\ncv.addEventListener('click',function(e){var i=hit(e)[0];if(i&&safeUrl(i.link)!=='#')window.open(safeUrl(i.link),'_blank','noopener,noreferrer')});\\nnew ResizeObserver(fit).observe(card);fit();requestAnimationFrame(draw);\\n})();\\n</script>\\n</body>\\n</html>\\n\";\nconst GEO = {\"w\":874,\"h\":1185,\"lon0\":5.8,\"lat1\":55.1,\"k\":0.6266038113644605,\"s\":150,\"states\":[{\"n\":\"Sachsen\",\"d\":\"M808 613L806 612L804 610L801 609L798 609L795 612L793 618L799 620L798 622L801 624L807 627L806 631L803 633L796 632L793 633L789 638L774 645L767 645L764 648L761 648L759 650L760 654L755 656L749 656L742 658L733 658L729 659L725 661L726 664L726 666L723 669L724 671L719 675L717 676L715 675L713 671L711 671L707 675L705 679L703 680L699 678L695 686L694 689L692 690L687 690L682 691L679 690L678 691L676 700L672 704L669 704L660 699L657 700L652 700L648 706L642 705L631 707L627 710L627 714L620 718L617 723L614 726L614 729L612 732L612 740L611 741L609 741L608 739L607 732L604 730L606 728L605 727L602 726L599 725L599 720L597 718L592 718L592 717L587 716L582 713L581 707L579 706L577 703L574 703L573 701L577 699L578 694L576 692L576 690L582 683L584 683L586 685L587 685L590 681L592 681L594 681L596 681L598 677L598 674L600 671L607 671L611 667L613 664L609 663L608 660L608 657L605 657L606 654L608 653L610 651L607 648L607 646L614 644L618 641L621 641L623 641L626 637L630 634L630 633L632 634L639 633L640 634L644 631L644 630L639 622L633 618L629 611L628 606L614 602L608 602L604 602L603 598L600 594L600 590L597 589L599 585L598 581L596 577L595 571L596 568L600 566L600 563L599 559L597 548L601 544L601 536L604 533L605 531L611 532L616 530L623 529L624 525L625 524L633 525L634 526L643 524L645 525L650 519L656 521L664 515L666 514L668 517L673 519L675 521L678 520L681 522L684 523L688 527L690 527L692 529L692 533L695 536L697 541L696 542L695 544L696 546L695 550L693 554L694 557L697 555L699 555L700 557L715 552L720 554L727 560L729 560L734 562L749 563L765 561L767 561L775 551L777 544L782 538L786 536L791 535L796 535L803 539L806 538L819 531L823 530L827 531L833 534L837 534L837 535L840 538L856 545L860 548L861 550L860 552L861 565L867 574L866 579L867 579L864 587L863 597L861 599L861 605L852 627L847 633L847 636L845 642L842 643L837 643L832 639L828 638L828 634L830 629L830 627L824 629L822 628L825 622L825 619L822 615L818 614L816 609L814 612L811 612Z\"},{\"n\":\"Bayern\",\"d\":\"M592 718L590 718L593 721L593 724L593 725L590 729L591 730L596 733L599 738L600 742L600 747L600 750L605 753L606 758L622 768L625 768L627 769L626 775L631 778L632 779L631 784L628 791L626 790L625 798L624 800L620 801L619 804L622 810L629 815L630 816L629 820L630 821L630 822L634 826L636 832L638 837L641 839L642 846L643 851L649 854L651 856L654 864L656 865L663 867L665 866L665 864L666 864L671 866L677 871L678 875L682 879L691 892L694 897L696 899L702 899L705 901L712 909L713 912L713 916L714 918L720 923L722 924L724 920L725 919L727 920L732 923L734 923L734 926L737 931L740 934L745 935L752 948L753 950L750 958L754 961L752 962L752 964L752 973L750 980L748 981L746 981L744 987L740 985L739 982L735 980L726 977L719 979L718 981L720 988L718 993L718 1000L715 1009L706 1017L703 1019L690 1021L680 1025L670 1034L664 1036L660 1041L652 1048L652 1052L654 1055L661 1063L664 1071L670 1076L673 1084L676 1088L670 1098L669 1102L667 1106L668 1108L673 1109L677 1108L679 1108L681 1111L684 1116L684 1122L682 1125L680 1127L681 1131L679 1134L680 1141L677 1145L674 1144L670 1144L666 1140L661 1134L658 1134L656 1132L655 1128L657 1125L659 1123L653 1118L654 1115L644 1114L639 1116L633 1120L629 1121L625 1117L623 1111L621 1111L616 1113L610 1111L605 1113L604 1111L606 1105L599 1109L602 1114L602 1118L602 1121L599 1124L577 1123L569 1125L566 1129L561 1128L547 1127L544 1129L542 1136L541 1138L534 1140L530 1139L528 1139L523 1145L525 1146L525 1148L517 1150L513 1155L511 1156L509 1156L509 1152L507 1151L505 1151L497 1157L487 1156L485 1154L485 1150L480 1145L475 1142L475 1141L479 1138L475 1135L466 1138L464 1136L452 1131L450 1131L445 1136L440 1135L437 1133L438 1128L435 1128L434 1129L435 1134L434 1141L437 1144L437 1149L435 1156L433 1158L430 1160L427 1165L424 1170L417 1173L410 1174L411 1171L413 1170L414 1159L413 1158L409 1159L407 1161L405 1160L403 1161L400 1154L402 1152L402 1151L402 1149L397 1142L394 1144L393 1143L392 1139L390 1136L390 1134L387 1135L381 1134L379 1135L377 1134L377 1129L374 1127L372 1128L367 1135L364 1137L358 1137L353 1135L359 1127L362 1126L365 1123L368 1124L372 1122L379 1115L382 1114L386 1116L390 1116L396 1114L400 1113L402 1118L403 1113L406 1114L407 1113L406 1101L404 1100L402 1096L403 1095L405 1095L407 1093L405 1086L403 1085L405 1080L405 1075L403 1070L404 1068L407 1060L408 1051L405 1043L400 1019L395 1010L394 1009L393 1008L399 1000L399 997L401 994L407 992L408 995L409 995L418 989L420 986L425 985L424 984L425 978L424 974L426 972L426 972L422 968L420 965L420 963L422 960L425 961L428 962L430 965L435 959L437 960L435 963L436 965L441 960L439 955L436 954L435 952L436 945L438 940L437 938L438 930L437 929L439 928L438 924L434 918L429 913L428 910L421 907L421 905L419 903L419 901L416 900L419 898L420 896L420 893L417 891L415 892L409 884L410 883L408 881L408 877L407 875L407 874L409 875L410 875L409 870L409 867L406 865L406 860L408 857L411 858L408 850L405 849L407 844L406 841L407 839L404 837L404 835L403 834L403 833L401 835L401 839L397 843L390 843L389 843L388 832L387 831L387 829L387 828L383 831L382 833L380 833L380 832L382 830L382 827L384 823L379 818L379 811L375 807L373 808L369 812L367 807L365 809L364 812L361 811L360 810L362 806L362 799L362 797L357 799L355 798L352 798L347 796L342 796L338 797L333 798L330 800L331 803L330 805L335 807L335 810L337 810L338 807L341 808L340 816L341 817L339 819L336 817L328 820L328 821L328 823L325 828L318 828L312 829L311 829L308 823L311 819L310 812L313 810L313 807L315 803L312 801L314 796L310 795L309 789L307 790L303 779L303 767L306 768L303 758L302 758L300 758L299 757L301 755L302 751L303 749L311 746L315 748L315 750L318 747L319 745L323 743L332 744L336 747L339 751L343 751L348 749L349 748L349 744L350 740L348 738L349 730L352 730L353 731L355 731L357 731L363 730L363 727L364 724L371 719L371 713L374 703L376 702L379 705L381 705L393 699L396 696L400 688L407 681L407 683L413 683L415 685L417 688L426 692L427 696L432 702L432 704L432 705L437 705L442 712L444 712L447 711L448 714L450 716L451 721L451 724L452 730L453 731L459 732L462 734L464 728L466 729L470 728L473 729L474 728L474 724L471 723L470 721L467 721L462 717L463 711L466 711L469 707L471 708L473 706L477 706L479 708L483 707L488 713L489 710L491 711L493 713L499 710L503 716L501 719L502 720L507 724L508 722L510 723L513 724L514 719L513 717L514 712L515 711L513 705L513 701L512 694L518 691L519 689L521 687L529 688L530 690L528 692L528 699L531 701L534 701L535 705L538 708L541 708L542 706L547 707L558 705L563 703L566 705L567 706L574 703L576 702L581 707L582 713L587 716L592 717Z\"},{\"n\":\"Rheinland-Pfalz\",\"d\":\"M28 755L29 749L31 745L30 743L30 741L34 739L34 738L34 734L33 733L37 729L43 726L44 725L44 722L46 719L47 719L50 719L53 719L54 718L54 717L56 717L59 715L56 709L56 708L57 708L61 711L62 714L68 710L74 708L77 710L77 712L78 712L82 711L85 713L86 714L94 712L94 710L92 706L92 701L90 699L90 694L96 692L98 695L101 696L102 694L102 687L105 686L107 682L113 680L119 676L122 677L124 674L127 675L130 672L131 669L133 670L134 672L139 672L145 671L148 668L149 659L155 659L163 657L167 655L169 655L171 652L175 650L176 648L178 648L178 646L176 644L182 639L185 640L185 637L184 634L184 629L187 625L188 625L194 627L192 632L193 634L196 635L201 640L204 639L205 645L205 649L210 656L212 661L216 660L219 662L218 668L220 675L222 677L220 684L218 686L216 686L213 683L212 683L207 687L207 695L209 697L204 705L209 707L210 708L212 710L214 715L217 718L218 725L216 726L211 725L210 728L211 730L209 733L206 731L199 735L197 741L198 743L200 745L199 749L197 747L194 747L192 752L185 757L193 763L195 769L199 769L203 768L211 762L223 758L227 758L238 771L240 776L239 781L243 789L243 793L247 800L252 800L248 806L245 807L242 808L241 811L241 815L246 828L245 832L250 844L250 845L248 846L248 847L253 849L254 850L253 853L254 859L250 868L252 869L252 870L243 880L240 899L233 914L228 920L226 921L225 920L215 918L200 910L193 910L186 908L181 910L177 909L172 909L170 906L162 902L157 896L158 894L158 892L152 891L151 890L146 890L144 888L140 884L140 880L141 877L143 877L144 875L146 868L149 864L150 861L148 859L140 857L140 855L137 850L136 848L141 843L142 841L142 840L140 839L140 835L138 828L135 830L132 830L126 825L119 824L113 821L110 822L107 821L100 826L86 832L82 833L76 835L65 835L52 836L52 828L58 819L57 817L58 815L65 810L65 808L66 808L64 805L65 803L66 796L62 794L56 794L50 789L47 790L46 786L40 782L37 774L35 772L34 774L30 766L29 760L28 758L29 755Z\"},{\"n\":\"Saarland\",\"d\":\"M51 847L52 836L65 835L76 835L82 833L86 832L100 826L107 821L110 822L113 821L119 824L126 825L132 830L136 830L138 828L140 835L140 839L142 840L142 841L141 843L136 848L137 850L140 855L140 857L148 859L150 861L149 864L146 868L144 875L142 877L141 877L140 879L140 884L146 890L148 890L146 891L144 895L141 896L139 899L135 898L127 898L120 894L119 895L120 897L117 899L115 897L114 893L114 888L112 888L105 884L97 884L97 886L98 891L96 893L87 892L85 889L85 885L85 883L83 884L81 878L79 877L79 874L71 866L71 863L73 863L73 862L68 855L67 851L65 850L57 845Z\"},{\"n\":\"Schleswig-Holstein\",\"d\":\"M284 29L292 30L299 33L319 37L321 39L322 44L324 45L332 45L337 42L339 44L343 43L349 41L351 39L353 38L355 35L356 40L360 42L366 42L370 44L376 47L378 51L385 50L385 46L387 46L390 48L392 51L394 57L396 60L395 61L392 60L388 62L388 64L394 63L396 65L398 64L398 65L397 81L396 85L392 89L388 91L380 93L380 94L384 96L406 91L408 91L414 96L412 98L413 103L413 105L410 109L408 109L409 110L408 111L409 113L408 116L410 116L412 114L416 103L420 102L425 99L429 99L436 104L451 110L460 118L463 118L468 118L476 111L483 108L491 107L491 108L486 108L488 109L490 108L492 110L499 106L501 107L497 112L495 111L498 122L497 124L497 134L495 137L484 144L479 150L473 152L472 150L470 151L465 157L467 161L470 165L477 166L478 170L480 171L480 176L485 178L481 180L480 178L478 177L471 183L467 185L466 187L465 190L467 196L466 203L471 204L476 210L479 210L482 211L484 213L485 217L485 220L483 221L484 228L483 230L484 230L483 232L482 233L480 229L475 230L473 229L473 230L473 233L472 238L466 242L461 243L460 246L458 246L455 247L453 256L451 259L448 260L444 259L431 251L426 250L425 247L418 242L415 237L412 236L411 229L415 227L416 220L414 218L414 216L410 212L413 207L413 206L411 206L409 208L403 207L400 213L396 214L393 218L390 217L388 218L377 226L377 225L377 222L373 221L370 229L366 229L356 223L353 220L351 208L342 203L340 198L338 190L334 189L325 182L310 181L304 179L302 181L296 178L293 174L285 160L290 158L298 161L301 160L302 156L302 150L298 146L299 143L296 142L293 143L288 146L283 138L286 130L286 127L293 124L297 117L295 118L290 121L290 119L280 121L276 121L271 125L268 124L265 121L263 118L263 114L264 113L267 112L272 111L272 110L268 108L266 110L266 107L268 104L270 105L277 103L290 102L301 95L302 93L302 89L292 78L290 75L287 74L284 75L284 74L287 72L284 64L282 62L272 55L272 51L268 42L267 38L269 31L276 32ZM297 86L297 89L292 94L290 95L284 94L283 93L284 91L283 90L286 87L289 86L293 85ZM513 93L518 103L506 101L505 102L506 103L499 103L498 101L498 97L494 97L492 98L492 98L491 96L490 97L489 95L492 89L496 85L500 85L508 88L511 90ZM238 61L243 69L245 70L240 72L234 65L237 60L241 58ZM254 52L259 52L261 53L263 56L260 62L257 62L255 61L252 62L249 61L244 58L248 53ZM241 23L240 28L243 31L248 32L268 31L266 33L254 32L249 35L242 35L241 33L239 33L235 36L235 40L235 51L234 54L233 52L234 31L242 10L246 5L250 7L245 8L244 8L246 9L247 10L246 13L243 15L241 17L240 20ZM266 84L272 81L273 83L272 87L270 90L267 91L265 91L263 88L263 86ZM198 138L197 138L196 136L195 136L197 136Z\"},{\"n\":\"Niedersachsen\",\"d\":\"M120 339L128 325L130 320L131 310L130 299L129 294L131 287L131 278L135 274L134 271L137 267L140 266L147 270L145 266L141 265L120 264L116 263L115 259L115 247L118 238L118 237L124 238L126 234L125 231L121 229L121 227L122 225L134 215L141 212L156 211L158 213L160 213L174 210L202 207L210 209L209 214L212 220L216 224L219 226L218 229L222 230L223 232L221 236L218 238L214 239L212 240L215 247L216 248L218 247L221 248L226 253L229 254L231 253L234 249L236 244L237 239L234 236L229 236L230 226L232 223L238 222L240 223L243 228L247 230L255 232L259 233L259 235L254 239L253 242L252 255L254 261L254 244L255 241L259 237L261 240L263 241L267 238L267 235L265 227L266 224L260 224L255 222L253 215L252 210L261 186L264 183L268 181L271 182L277 187L280 189L288 190L299 189L302 189L304 187L312 185L319 185L321 184L322 185L327 185L329 188L339 204L346 211L348 216L354 225L357 227L361 228L366 232L373 233L373 239L378 246L381 250L385 248L387 253L390 252L392 253L397 251L398 249L403 247L405 250L407 250L409 253L412 254L417 254L420 251L422 250L428 250L444 259L448 260L451 259L458 259L461 260L464 262L464 269L468 270L474 276L482 281L497 293L503 289L507 294L510 292L513 295L516 300L521 305L525 305L530 302L532 303L535 306L543 309L542 313L537 314L536 315L535 320L536 324L533 324L527 329L513 334L509 330L504 330L499 330L494 328L490 328L489 329L488 333L483 336L478 338L470 338L466 340L466 347L469 353L470 357L473 358L478 367L482 373L485 372L487 373L484 377L484 381L484 383L489 390L486 390L484 391L483 396L490 404L492 406L496 409L495 412L489 414L489 416L491 417L492 419L490 422L493 426L494 426L495 428L496 427L497 428L496 432L492 433L491 437L491 438L494 440L494 443L490 447L484 450L484 451L486 453L486 455L485 456L457 458L456 459L456 461L453 463L448 464L450 469L454 471L455 471L453 473L452 476L454 478L455 482L452 487L449 488L449 494L450 498L453 501L455 507L457 509L458 515L460 519L456 522L454 524L454 525L456 528L456 531L453 529L447 532L443 532L435 526L430 527L430 530L428 535L424 538L422 541L417 544L415 544L414 543L412 544L411 548L409 549L409 550L403 550L401 552L399 550L390 558L386 554L386 552L382 554L383 558L382 559L379 555L376 554L376 555L375 556L368 561L368 562L371 565L374 564L375 564L373 568L369 571L368 571L365 568L354 564L352 561L351 560L354 561L354 558L355 555L361 554L360 546L361 544L359 542L357 537L358 536L359 532L361 532L361 529L364 531L365 529L363 527L362 524L360 522L359 520L356 521L352 519L350 521L348 521L347 520L346 517L345 517L343 518L342 518L338 519L336 519L336 516L337 513L338 505L343 497L343 492L344 490L342 489L344 485L331 487L333 481L331 478L329 477L325 477L327 474L328 469L324 467L321 469L317 467L319 462L317 456L319 453L317 451L314 449L314 446L307 444L300 445L301 442L300 437L305 436L304 432L308 429L300 426L300 417L302 414L305 414L308 413L313 404L311 397L313 396L313 394L309 390L303 393L301 396L297 404L284 407L274 405L273 393L270 388L267 386L260 389L253 389L250 392L249 397L247 398L241 399L235 397L238 405L244 408L248 412L250 419L250 433L250 434L254 437L253 439L252 441L247 444L244 448L232 445L224 453L217 455L214 454L210 454L204 459L199 457L197 452L199 448L206 447L208 439L206 438L202 438L201 436L198 435L197 434L200 430L199 427L202 424L200 420L204 418L198 408L190 411L188 409L180 404L178 397L177 396L169 394L167 400L169 403L168 403L166 409L161 409L152 418L147 420L141 424L124 426L118 429L115 429L114 425L114 422L117 416L117 410L116 406L110 397L108 399L103 400L86 396L84 394L83 386L82 384L89 381L85 378L86 374L85 372L88 370L91 369L100 369L105 370L110 370L115 371L116 368L118 346ZM94 224L87 226L87 227L89 228L90 231L87 228L84 229L82 229L81 225L82 224L93 222ZM125 209L130 206L135 206L145 206L145 207L141 208L129 210ZM147 206L151 204L153 205L154 206L153 206ZM218 207L219 205L221 204L223 204L225 206L223 206L221 208L218 208ZM161 201L170 201L172 202L161 203L161 206L158 206L157 203L157 201L159 201ZM175 201L177 198L181 197L189 198L189 199L183 201L180 201L178 200L176 201ZM195 199L193 197L194 196L197 196L200 196L203 198L195 197Z\"},{\"n\":\"Nordrhein-Westfalen\",\"d\":\"M91 449L97 448L102 441L108 438L111 433L115 430L115 429L118 429L124 426L141 424L147 420L152 418L161 409L166 409L168 403L169 403L167 400L169 395L170 394L177 396L179 404L188 409L190 410L191 411L198 408L204 417L204 418L200 420L202 424L199 427L200 430L197 434L198 435L201 436L202 438L206 438L208 439L206 447L199 448L197 452L199 457L204 459L210 454L214 454L217 455L224 453L232 445L244 448L247 444L252 441L253 439L254 437L250 434L250 433L250 419L248 412L244 408L238 405L235 397L241 399L247 398L249 397L250 392L253 389L260 389L267 386L270 388L273 393L274 405L284 407L297 404L301 396L303 393L308 390L310 391L311 393L313 394L313 396L311 397L313 404L308 413L305 414L302 414L300 417L300 426L308 429L304 432L305 436L300 437L301 442L300 445L307 444L314 446L314 449L317 451L319 453L317 456L319 462L317 467L321 469L324 467L328 469L327 474L325 477L329 477L331 478L333 481L331 487L344 485L342 489L344 490L343 492L343 495L342 500L339 502L338 505L337 513L336 517L336 519L342 518L340 521L332 524L334 526L332 533L329 537L322 542L321 546L319 547L316 549L311 549L309 546L308 542L302 539L292 543L291 545L293 547L293 552L296 553L295 556L291 557L287 559L283 558L275 559L271 561L263 571L261 574L261 575L264 579L266 579L267 577L271 576L274 574L275 575L274 577L276 578L277 588L272 595L273 599L269 602L266 601L256 601L256 602L257 606L258 612L255 618L253 619L251 623L251 627L247 629L244 632L244 634L241 636L237 636L235 633L233 633L225 641L224 643L219 648L220 650L223 654L222 659L221 660L219 662L216 660L212 661L210 656L205 649L205 645L204 639L201 640L196 635L192 633L194 627L188 625L187 625L184 628L184 630L185 637L185 640L182 639L176 644L178 646L178 649L176 648L175 650L171 652L169 655L167 655L163 657L155 659L149 659L148 668L145 671L139 672L134 672L133 670L131 669L130 672L127 675L124 674L122 677L119 676L113 680L107 682L105 686L102 687L102 694L101 696L98 695L96 692L90 694L90 699L92 701L94 711L86 714L85 713L82 711L78 712L77 712L77 710L74 708L68 710L62 714L61 711L56 708L56 709L59 715L56 717L54 717L51 710L52 700L50 698L49 695L50 693L43 691L38 692L36 689L37 688L35 687L35 685L34 683L36 681L41 677L42 673L36 673L34 672L33 669L34 669L26 658L20 659L20 654L18 653L19 651L16 648L16 646L17 646L19 645L19 640L20 639L23 638L24 637L25 634L24 631L25 629L19 626L18 622L19 619L16 619L12 618L7 620L7 616L5 612L5 609L8 607L11 611L13 610L17 604L26 597L31 594L33 592L31 590L34 588L31 587L27 591L25 589L24 583L25 580L33 567L37 563L38 557L37 555L38 546L37 539L27 526L27 524L28 518L22 516L20 513L21 509L20 508L17 506L13 505L13 504L15 502L15 499L14 496L12 494L12 493L14 492L18 491L23 488L27 487L33 489L28 482L31 480L40 486L44 485L46 488L51 489L51 492L55 491L54 486L62 488L68 484L78 480L86 480L89 479L93 472L95 471L95 468L92 465L82 460L82 457L83 456L86 455L89 450Z\"},{\"n\":\"Baden-Württemberg\",\"d\":\"M352 1135L326 1117L319 1117L318 1114L302 1113L299 1116L292 1117L290 1117L287 1114L286 1112L287 1111L282 1107L279 1107L278 1110L279 1111L274 1111L273 1106L274 1103L274 1101L271 1101L269 1097L267 1096L266 1101L265 1101L264 1101L263 1096L262 1095L259 1095L258 1096L259 1098L257 1099L250 1100L248 1107L245 1109L244 1111L244 1114L244 1115L250 1119L252 1119L256 1116L260 1116L264 1117L263 1120L263 1119L261 1119L261 1125L259 1127L256 1122L253 1122L250 1124L249 1127L240 1128L236 1126L234 1123L229 1122L224 1123L222 1124L217 1127L215 1130L211 1131L199 1131L197 1127L190 1126L187 1131L185 1132L177 1133L175 1133L170 1130L173 1130L175 1126L168 1127L168 1124L163 1115L161 1114L161 1109L163 1105L162 1098L164 1091L166 1089L165 1083L167 1079L168 1074L171 1069L171 1065L167 1057L167 1048L170 1038L177 1027L179 1018L182 1016L183 1014L182 1004L186 990L189 987L188 983L189 973L193 966L197 964L203 957L204 951L208 951L210 946L215 944L224 924L226 921L228 920L231 917L240 899L243 880L252 870L252 869L250 868L254 859L253 853L254 850L253 849L248 847L248 846L250 845L250 844L245 832L246 828L249 827L251 827L260 836L265 833L263 824L270 822L272 825L272 829L274 834L279 836L283 836L285 840L290 839L291 841L289 844L287 842L285 845L285 850L283 851L283 854L286 856L291 851L291 848L293 849L295 848L295 846L294 843L296 840L304 840L308 837L310 837L313 839L308 829L310 830L311 829L312 829L318 828L325 828L328 823L328 821L328 820L336 817L339 819L341 817L340 816L341 808L338 807L337 810L335 810L335 807L330 805L331 803L330 800L333 798L338 797L345 796L347 796L352 798L355 798L357 799L362 798L362 806L360 810L362 812L364 812L365 809L367 807L369 812L372 808L375 807L379 811L379 818L384 823L382 827L382 830L380 833L381 834L382 833L383 831L387 828L387 829L387 831L388 832L389 843L397 843L401 839L400 836L403 833L404 835L404 837L407 838L406 841L407 844L405 849L408 850L411 858L408 857L406 860L406 865L409 867L409 870L410 875L409 875L407 874L407 875L408 877L408 881L410 883L409 884L415 892L417 891L420 893L420 896L419 898L416 900L419 901L419 903L421 905L421 907L428 910L429 913L434 918L438 924L439 928L437 929L438 930L437 938L438 940L436 945L435 952L436 954L439 955L441 960L436 965L435 963L437 960L435 959L430 965L428 962L425 961L422 960L420 963L420 965L422 968L426 972L426 972L424 974L425 978L424 984L425 985L420 986L418 989L409 995L408 995L407 992L401 994L399 997L399 1000L393 1008L394 1009L395 1010L400 1019L405 1043L408 1051L407 1060L404 1068L403 1070L405 1075L405 1080L403 1085L405 1086L407 1093L405 1095L403 1095L402 1096L404 1100L406 1101L407 1113L406 1114L403 1113L402 1118L400 1113L396 1114L390 1116L386 1116L382 1114L379 1115L372 1122L368 1124L365 1123L362 1126L359 1127Z\"},{\"n\":\"Brandenburg\",\"d\":\"M828 376L831 378L829 384L828 387L830 389L830 390L826 398L821 402L822 408L826 419L826 421L828 424L836 427L838 430L838 433L836 435L837 438L835 447L836 449L842 453L840 457L839 461L836 466L835 478L832 483L827 489L826 491L826 494L830 500L832 507L838 514L840 516L841 524L838 530L837 534L833 534L825 530L819 531L806 538L803 539L796 535L791 535L786 536L781 539L777 544L775 551L768 561L765 561L749 563L734 562L729 560L727 560L720 554L715 552L700 557L699 555L697 555L694 557L693 554L695 550L696 546L695 544L697 541L696 537L692 533L692 529L690 527L688 527L683 523L684 519L691 514L693 511L694 509L692 504L692 498L699 487L694 486L692 488L689 486L683 487L681 486L676 483L673 479L665 478L663 475L662 474L657 473L645 466L644 466L644 468L640 470L636 469L629 465L627 462L623 464L618 460L617 459L617 456L611 449L607 445L606 443L603 440L601 436L604 430L606 427L605 425L602 423L602 420L605 412L605 407L607 401L606 398L610 392L610 388L607 388L604 384L603 384L601 387L597 388L596 385L598 383L594 382L597 378L598 370L602 369L604 364L604 361L603 360L601 355L602 352L601 348L604 345L605 344L602 335L599 334L593 335L593 333L591 331L581 333L573 330L567 326L569 322L565 321L560 316L556 318L554 317L553 313L547 312L549 309L549 308L548 307L543 309L535 306L532 303L530 302L525 305L521 305L516 300L515 297L522 298L526 299L526 295L528 294L531 294L536 297L538 297L540 295L541 293L539 286L539 284L545 279L550 278L553 277L558 280L559 283L563 281L568 281L567 279L565 277L567 277L570 277L572 275L577 273L579 273L582 270L584 270L585 266L587 264L589 262L594 260L597 262L601 260L602 260L604 264L611 265L615 268L623 275L631 274L641 277L645 280L652 281L652 285L654 286L660 285L664 287L672 286L673 287L672 289L674 290L677 290L681 286L686 282L687 279L690 276L693 277L695 280L698 280L700 274L703 272L708 272L713 274L721 270L723 267L727 256L729 254L734 253L738 248L743 244L750 243L753 242L750 236L750 233L752 234L754 237L758 239L759 242L763 251L775 251L780 252L782 250L784 249L787 251L794 251L793 258L792 261L788 266L781 271L780 274L794 276L795 275L796 273L798 272L801 269L807 265L809 273L812 277L807 287L807 295L804 305L803 308L800 311L784 321L786 331L785 335L782 337L785 341L791 342L794 346L807 354L811 362L814 364L817 367L822 370Z\"},{\"n\":\"Mecklenburg-Vorpommern\",\"d\":\"M796 210L795 217L799 225L799 236L799 239L805 248L807 265L801 269L798 272L796 273L795 275L794 276L780 274L781 271L788 266L792 261L793 258L794 251L787 251L784 249L782 250L780 252L775 251L763 251L759 242L758 239L754 237L752 234L750 233L750 236L753 242L750 243L743 244L738 248L734 253L729 254L727 256L723 267L721 270L713 274L708 272L703 272L700 274L698 280L695 280L693 277L690 276L687 279L686 282L681 286L677 290L674 290L672 289L673 287L672 286L664 287L660 285L654 286L653 285L652 281L651 281L645 280L641 277L631 274L623 275L615 268L611 265L604 264L601 260L597 262L594 260L589 262L587 264L585 266L584 270L582 270L579 273L577 273L576 273L572 275L570 277L567 277L565 277L567 279L568 281L563 281L559 283L558 280L553 277L550 278L545 279L539 284L539 286L541 293L540 295L538 297L536 297L531 294L528 294L526 295L526 299L522 298L515 297L510 292L507 294L503 289L497 293L482 281L474 276L468 270L464 269L464 262L461 260L458 259L451 259L454 255L455 247L458 246L460 246L461 243L466 242L472 238L473 233L473 229L480 229L482 233L484 230L483 230L484 228L483 221L484 220L485 217L483 213L481 210L475 210L471 204L466 203L467 198L465 189L466 185L478 177L480 178L481 180L485 178L480 176L480 171L481 171L485 167L494 164L506 163L508 167L512 168L512 173L516 174L520 171L522 174L526 174L530 179L532 179L534 172L533 170L536 168L535 165L538 162L538 160L541 160L543 159L544 155L547 152L548 149L551 144L554 142L557 141L565 143L588 138L591 136L591 148L594 150L592 143L593 141L595 140L596 138L592 139L593 138L600 128L610 124L615 119L624 106L630 94L633 92L632 93L634 96L638 97L660 97L663 99L665 98L668 98L669 100L667 102L665 102L655 102L648 100L646 102L641 102L640 104L639 103L637 104L638 106L639 106L639 107L637 106L635 106L632 109L629 106L625 106L624 107L622 111L623 113L620 112L620 117L617 118L618 123L617 125L622 127L624 128L626 127L624 127L621 125L623 122L627 118L628 115L635 111L634 110L634 109L635 109L637 109L637 108L638 110L646 106L646 104L647 103L650 103L650 104L648 106L647 109L649 105L652 108L653 107L655 108L657 106L660 111L663 111L665 110L668 105L670 103L678 99L680 100L679 101L679 105L681 106L686 109L684 112L684 114L687 118L688 123L693 124L693 125L690 126L693 125L704 130L707 136L710 138L707 140L709 140L713 138L715 139L713 142L714 143L716 142L719 148L722 151L724 151L724 150L722 147L722 146L733 144L744 139L744 140L742 141L742 142L753 149L749 158L747 160L752 165L756 167L756 172L762 174L762 175L760 178L754 183L753 185L754 187L758 189L761 194L762 193L769 199L772 200L774 202L777 202L781 203L788 204L791 203L793 201L794 201L796 202L796 205L791 209ZM790 174L789 178L787 179L790 183L779 184L775 183L770 187L765 188L759 188L756 187L754 185L760 183L764 180L765 176L761 170L762 166L768 167L767 174L770 171L773 171L772 173L775 174L775 172L776 168L776 164L774 162L772 163L769 157L766 155L764 155L763 157L764 160L762 161L761 163L757 165L759 160L759 158L754 159L751 162L749 162L753 154L753 150L753 148L748 142L750 139L752 138L753 139L757 147L760 150L772 156ZM524 168L525 164L529 162L533 160L536 162L532 171L531 171L531 167L531 165L530 165L530 169L529 170L527 170ZM538 154L539 152L547 148L545 150L541 154L539 156ZM690 75L688 77L686 86L684 89L683 95L683 95L683 89L686 79L687 75L691 74L691 77L691 76L691 78L690 78ZM742 106L746 112L749 113L745 117L745 123L742 122L744 122L744 119L741 121L738 120L738 119L741 118L744 115L739 116L735 117L742 113L742 112L738 112L736 114L733 112L724 113L717 118L715 122L711 124L710 128L711 127L711 126L716 125L716 130L715 131L709 129L706 127L708 122L706 125L706 126L703 126L702 127L700 125L696 124L695 122L696 120L695 120L691 121L690 120L691 119L693 119L693 118L688 114L691 108L693 107L696 109L697 108L698 109L702 107L699 106L699 102L698 102L697 100L691 101L694 97L701 95L702 93L699 91L698 90L699 88L694 89L692 87L692 84L690 84L700 82L704 84L705 87L706 85L705 82L708 79L711 77L709 82L711 84L710 86L712 86L713 85L713 84L711 82L712 80L716 86L715 89L717 91L720 92L724 92L724 91L726 86L724 81L726 80L726 79L725 79L722 81L718 81L717 79L714 78L711 73L702 81L701 80L701 76L703 72L704 69L704 68L698 70L698 67L701 65L716 62L719 63L719 64L713 67L713 70L714 74L717 77L721 78L733 76L737 77L740 80L740 84L738 88L732 92L731 94L732 99L734 103Z\"},{\"n\":\"Bremen\",\"d\":\"M259 237L260 233L255 222L260 224L266 224L265 227L266 230L267 236L265 240L263 242L262 240L261 240ZM256 281L260 283L262 283L270 286L277 286L277 288L280 289L284 290L291 294L293 294L295 291L298 294L297 297L297 298L300 301L298 307L293 311L288 308L288 309L286 310L279 307L273 308L273 302L267 295L266 291L265 288L261 288L255 285L253 281Z\"},{\"n\":\"Hamburg\",\"d\":\"M373 233L378 234L379 233L378 232L374 230L370 229L373 221L377 222L377 225L377 226L388 218L390 217L393 218L396 214L400 213L402 208L403 207L408 208L411 206L413 206L410 212L414 216L414 218L416 219L415 227L411 229L412 236L415 237L418 242L425 247L426 250L421 250L417 254L411 254L403 247L398 249L397 251L393 253L392 253L390 252L387 253L385 248L383 248L382 250L378 246L373 239Z\"},{\"n\":\"Hessen\",\"d\":\"M390 558L388 561L390 569L391 570L393 572L399 574L399 576L401 578L402 581L409 584L411 584L417 588L414 592L413 598L411 593L407 595L408 597L411 598L408 606L413 608L414 610L414 612L413 616L407 616L406 614L400 614L397 616L397 618L399 621L399 624L396 624L391 624L390 625L391 626L392 626L392 629L396 627L398 629L400 633L397 636L397 640L390 643L390 649L388 649L387 650L389 652L388 655L387 659L387 661L384 665L383 668L384 670L386 669L390 671L391 669L390 667L390 666L395 664L400 665L402 672L399 674L400 682L399 687L400 688L399 690L395 698L387 703L380 705L379 705L376 702L374 703L371 713L371 719L364 724L363 727L363 730L357 731L355 731L353 731L352 730L349 730L348 738L350 740L349 744L349 748L348 749L343 751L339 751L336 747L332 744L323 743L319 745L318 747L315 750L315 748L311 746L302 750L301 755L299 757L300 758L302 758L303 758L306 768L303 767L303 779L307 790L309 789L310 795L311 796L313 796L314 797L312 801L312 802L315 803L313 807L313 810L310 812L311 819L308 823L311 829L310 830L308 829L308 830L310 833L313 839L310 837L308 837L304 840L296 840L294 843L295 846L295 848L293 849L291 848L291 851L286 856L283 854L283 851L285 850L285 845L287 842L289 844L291 841L290 839L285 840L283 836L279 836L274 834L272 829L272 825L270 822L263 824L265 832L264 834L260 836L251 827L249 827L246 828L241 815L241 811L242 808L245 807L248 806L252 800L247 800L243 793L243 789L239 781L240 776L238 771L228 759L226 758L223 758L211 762L203 768L199 769L195 769L193 763L185 757L192 752L194 747L197 747L199 749L200 745L198 743L197 741L199 735L206 731L209 733L211 730L210 728L211 726L216 726L218 724L217 718L214 715L211 709L210 708L209 707L204 705L209 697L207 695L207 687L212 683L213 683L216 686L218 686L220 684L222 677L220 675L218 668L220 660L222 659L223 653L220 650L219 648L233 633L235 633L237 636L241 636L244 634L244 632L247 629L249 628L250 628L251 623L253 619L255 618L258 612L257 606L256 602L256 601L266 601L269 602L273 599L272 595L277 588L276 578L274 577L275 575L274 574L271 576L267 577L265 579L263 578L263 576L261 575L261 574L265 568L271 560L283 558L287 559L291 557L295 556L296 553L293 552L293 547L291 545L292 543L302 539L308 542L309 546L311 549L316 549L319 547L321 546L322 542L329 537L332 533L334 526L332 524L340 521L342 518L343 518L345 517L346 517L347 520L348 521L350 521L352 519L356 521L359 520L360 522L362 524L363 527L365 529L364 531L361 529L361 532L359 532L358 536L357 537L359 542L361 544L360 546L361 554L355 555L354 558L354 561L351 560L352 561L354 564L365 568L368 571L369 571L373 568L375 564L374 564L371 565L368 562L368 561L375 556L376 555L376 554L379 555L382 559L383 558L382 554L386 552L386 554Z\"},{\"n\":\"Thüringen\",\"d\":\"M390 570L388 562L388 559L399 550L401 552L403 550L409 550L409 549L411 548L413 543L414 543L415 544L417 544L422 541L423 539L429 534L430 529L430 527L435 526L443 532L447 532L453 529L455 531L456 528L454 525L456 522L460 519L462 520L470 520L475 522L477 522L484 526L484 528L483 529L481 529L480 530L484 537L484 540L486 545L485 551L486 552L489 554L516 557L518 558L523 561L531 574L528 578L526 580L521 581L520 583L521 584L525 587L528 591L529 596L528 597L529 601L536 602L539 600L548 601L552 600L554 602L554 605L557 612L558 613L570 612L576 615L579 619L582 621L583 623L589 622L595 623L597 622L602 626L603 624L603 622L609 614L608 612L606 610L608 602L614 602L628 606L629 611L633 618L639 622L644 631L640 634L639 633L632 634L630 633L630 634L626 637L623 641L621 641L618 641L614 644L607 646L607 648L610 651L608 653L606 654L605 657L608 657L608 660L609 663L613 664L611 667L607 671L600 671L598 674L598 677L596 681L594 681L592 681L590 681L587 685L586 685L584 683L582 683L576 690L576 692L578 694L578 696L577 699L573 701L574 703L567 706L566 705L563 703L558 705L547 707L542 706L541 708L538 708L535 705L534 701L531 701L528 699L528 692L530 690L529 688L521 687L519 689L518 691L512 694L513 701L513 705L515 711L514 712L513 724L510 723L508 722L507 724L501 719L503 716L499 710L493 713L491 711L489 710L488 713L483 707L479 708L477 706L473 706L471 708L469 707L466 711L463 711L462 717L467 721L470 721L471 723L474 724L474 728L473 729L470 728L466 729L464 728L462 734L457 731L453 731L452 730L452 727L451 725L451 721L450 716L448 714L447 711L444 712L441 712L441 710L439 708L437 705L435 706L432 705L432 704L432 702L427 696L426 692L417 688L415 685L413 683L407 683L407 681L399 687L400 682L399 674L402 672L400 665L395 664L390 666L391 669L390 671L386 669L384 670L384 665L387 661L387 659L388 655L389 652L387 650L388 649L390 649L390 643L397 640L397 636L400 633L398 629L396 627L392 629L392 626L390 626L390 624L392 624L396 624L399 624L399 621L397 618L397 616L400 614L406 614L407 616L413 616L414 612L414 610L413 608L408 606L411 598L408 597L407 595L411 593L413 598L414 592L417 588L411 584L409 584L402 581L401 578L399 576L399 574L393 572Z\"},{\"n\":\"Sachsen-Anhalt\",\"d\":\"M462 520L460 519L458 515L457 508L455 507L453 501L450 498L449 488L455 482L454 478L452 476L453 473L455 471L454 471L450 469L448 464L453 463L456 461L456 459L457 458L462 457L475 457L479 456L485 456L486 452L484 450L490 447L493 444L494 442L494 440L491 438L491 436L492 433L496 432L497 430L496 427L495 428L494 426L493 426L490 422L492 419L491 417L489 416L489 414L491 413L495 412L496 409L492 406L490 404L483 396L484 391L486 390L489 390L484 383L484 381L484 377L487 373L485 372L482 373L478 367L473 358L470 357L469 353L466 347L466 339L470 338L478 338L483 336L488 333L489 329L490 328L494 328L499 330L504 330L509 330L513 334L527 329L533 324L536 323L535 320L537 314L538 314L541 314L543 309L548 307L549 308L549 309L547 312L553 313L554 317L556 318L560 316L565 321L569 322L567 326L573 330L581 333L591 331L593 333L593 335L599 334L602 336L605 344L604 345L601 348L602 352L601 355L604 363L602 369L598 370L597 378L594 382L598 383L596 386L597 388L600 388L603 384L607 388L610 388L610 392L606 398L607 401L605 407L605 412L602 420L602 423L605 425L606 427L604 430L601 436L603 440L606 443L607 445L611 449L617 456L618 460L623 463L625 463L626 462L627 462L629 465L636 469L640 470L644 468L644 466L645 466L657 473L662 474L663 475L665 478L673 479L676 483L683 487L689 486L692 488L694 486L699 487L692 498L692 504L694 509L693 511L691 514L684 519L683 523L681 522L678 519L675 521L673 519L668 517L666 514L664 515L656 521L650 519L645 525L643 524L634 526L633 525L625 524L624 525L623 529L616 530L611 532L605 531L604 533L601 536L601 544L597 548L600 565L600 567L596 568L595 571L596 577L598 581L599 585L597 589L600 590L600 594L603 598L603 601L608 602L608 604L606 607L606 610L608 612L609 614L603 622L603 624L601 626L597 622L595 623L589 622L583 623L582 621L579 619L576 615L570 612L558 613L557 612L554 605L554 602L552 600L548 601L539 600L536 602L531 601L529 600L528 597L529 596L528 591L525 587L521 584L520 583L521 581L526 580L528 578L531 574L523 561L518 558L516 557L489 554L486 552L485 551L486 545L484 540L484 537L480 530L481 529L483 529L484 528L483 525L470 520Z\"},{\"n\":\"Berlin\",\"d\":\"M721 365L724 368L724 373L730 380L734 383L738 384L736 392L739 392L747 397L746 402L743 405L743 409L740 411L738 414L737 414L736 408L726 404L722 405L721 403L719 403L717 404L717 408L714 408L709 404L706 405L704 403L700 404L697 402L691 405L688 405L685 403L688 399L687 397L687 394L691 390L690 386L691 376L692 375L697 377L696 374L697 371L701 370L704 366L705 367L706 371L711 371L712 371L715 368L718 369Z\"}]};\nconst CATS = [{\"id\": \"schock\", \"label\": \"Schockanruf\", \"color\": \"#ff3b5c\"}, {\"id\": \"polizei\", \"label\": \"Falsche Polizei\", \"color\": \"#3d8bff\"}, {\"id\": \"enkel\", \"label\": \"Enkeltrick\", \"color\": \"#ff9a1f\"}, {\"id\": \"bank\", \"label\": \"Falsche Bank\", \"color\": \"#ffd23f\"}, {\"id\": \"phishing\", \"label\": \"Phishing & SMS\", \"color\": \"#b46bff\"}, {\"id\": \"gewinn\", \"label\": \"Gewinn-Masche\", \"color\": \"#ffb36b\"}, {\"id\": \"anlage\", \"label\": \"Anlage & Krypto\", \"color\": \"#2ee6a6\"}, {\"id\": \"love\", \"label\": \"Love Scam\", \"color\": \"#ff6ad5\"}, {\"id\": \"handel\", \"label\": \"Online-Handel\", \"color\": \"#4de1ff\"}, {\"id\": \"support\", \"label\": \"Tech-Support-Masche\", \"color\": \"#9be15d\"}, {\"id\": \"sonst\", \"label\": \"Sonstiger Betrug\", \"color\": \"#9aa7c2\"}];\nconst inc = ($input.first().json.incidents || []).filter(i => /^https:\\/\\/(www\\.presseportal\\.de|www\\.berlin\\.de\\/polizei|polizei\\.brandenburg\\.de)\\//.test(i.link));\n// Feed ausgefallen? Dann alte Seite behalten statt leere zu zeigen.\nif (!inc.length && sd.cache && sd.cache.html) { sd.lock = 0; return [{ json: { kept: true } }]; }\nconst slim = inc.map(i => ({ id: i.id, title: i.title, link: i.link, date: i.date, ort: i.ort, place: i.place, state: i.state,\n  lat: i.lat, lon: i.lon, cat: i.cat, catLabel: i.catLabel, color: i.color, age: i.age, amount: i.amount, status: i.status, roundup: !!i.roundup, src: i.src }));\nconst data = { generated: Date.now(), days: cfg.days, cats: CATS, incidents: slim,\n  cfg: { title: cfg.title, refreshMinutes: cfg.refreshMinutes, liveUrl: cfg.liveUrl, brandName: cfg.brandName, brandUrl: cfg.brandUrl, workflowUrl: cfg.workflowUrl } };\nconst safe = JSON.stringify(data).replace(/</g, '\\\\u003c').replace(new RegExp(String.fromCharCode(0x2028) + '|' + String.fromCharCode(0x2029), 'g'), '');\nconst html = TPL.split('/*GEO*/null').join(JSON.stringify(GEO)).split('/*DATA*/null').join(safe);\nconst esc = x => String(x).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\nconst head = /^https:\\/\\//.test(cfg.liveUrl || '') ? ['<link rel=\"canonical\" href=\"' + esc(cfg.liveUrl) + '\">',\n  '<meta property=\"og:type\" content=\"website\">', '<meta property=\"og:title\" content=\"' + esc(cfg.title) + '\">',\n  '<meta property=\"og:description\" content=\"Aktuelle Betrugsmaschen aus den Polizeimeldungen auf einer Live-Karte: Schockanruf, falsche Polizisten, Phishing.\">',\n  '<meta property=\"og:url\" content=\"' + esc(cfg.liveUrl) + '\">', '<meta name=\"twitter:card\" content=\"summary\">'].join('\\n') : '';\nconst page = html.split('<!--HEAD-->').join(head);\nsd.cache = { ts: Date.now(), html: page, json: JSON.stringify(data) };\nsd.lock = 0;\nreturn [{ json: { built: true, incidents: slim.length } }];\n"
   },
   "name": "Seite bauen",
   "type": "n8n-nodes-base.code",
   "typeVersion": 2,
   "position": [
    1920,
    260
   ]
  },
  {
   "parameters": {
    "conditions": {
     "options": {
      "caseSensitive": true,
      "leftValue": "",
      "typeValidation": "strict",
      "version": 2
     },
     "conditions": [
      {
       "id": "b18efade-659d-41b8-bc56-4900093bacf1",
       "leftValue": "={{ $('Webhook').isExecuted }}",
       "rightValue": true,
       "operator": {
        "type": "boolean",
        "operation": "true",
        "singleValue": true
       }
      }
     ],
     "combinator": "and"
    },
    "options": {}
   },
   "name": "Per Webhook?",
   "type": "n8n-nodes-base.if",
   "typeVersion": 2.2,
   "position": [
    2160,
    260
   ]
  },
  {
   "parameters": {
    "jsCode": "// Node: \"Antwort wählen\" – HTML, JSON oder Download je nach ?format= / ?download=\nconst sd = $getWorkflowStaticData('global');\nconst c = sd.cache || { html: '<p>Noch keine Daten – bitte gleich erneut laden.</p>', json: '{}', ts: Date.now() };\nlet q = {};\ntry { q = $('Webhook').first().json.query || {}; } catch (e) {}\nconst asJson = q.format === 'json';\nreturn [{ json: {\n  body: asJson ? c.json : c.html,\n  ct: asJson ? 'application/json; charset=utf-8' : 'text/html; charset=utf-8',\n  cd: q.download ? 'attachment; filename=\"betrugskarte.html\"' : 'inline',\n} }];\n"
   },
   "name": "Antwort wählen",
   "type": "n8n-nodes-base.code",
   "typeVersion": 2,
   "position": [
    2400,
    100
   ]
  },
  {
   "parameters": {
    "respondWith": "text",
    "responseBody": "={{ $json.body }}",
    "options": {
     "responseCode": 200,
     "responseHeaders": {
      "entries": [
       {
        "name": "Content-Type",
        "value": "={{ $json.ct }}"
       },
       {
        "name": "Content-Disposition",
        "value": "={{ $json.cd }}"
       },
       {
        "name": "Cache-Control",
        "value": "public, max-age=300"
       },
       {
        "name": "X-Content-Type-Options",
        "value": "nosniff"
       },
       {
        "name": "Content-Security-Policy",
        "value": "default-src 'none'; style-src 'unsafe-inline'; script-src 'unsafe-inline'; img-src data:; base-uri 'none'; form-action 'none'"
       }
      ]
     }
    }
   },
   "name": "Antwort senden",
   "type": "n8n-nodes-base.respondToWebhook",
   "typeVersion": 1.1,
   "position": [
    2640,
    100
   ]
  },
  {
   "parameters": {
    "content": "## 🗺️ Betrugs-Live-Karte\nPolizeimeldungen zu Betrugsmaschen (Schockanruf, falsche Polizisten, Phishing …) als animierte Deutschlandkarte.\n\n**Keine Zugangsdaten, keine API-Keys, kein LLM.**\n\n### In 60 Sekunden starten\n1. Workflow importieren\n2. **Aktivieren** (oben rechts)\n3. Webhook-URL öffnen: `…/webhook/betrugskarte`\n\nWeitere URLs:\n- `?download=1` → Seite als HTML-Datei (läuft offline)\n- `?format=json` → die Rohdaten\n\n_Quelle: Pressemitteilungen der Polizei via presseportal.de · Geokodierung: Open-Meteo_",
    "height": 400,
    "width": 440,
    "color": 6
   },
   "name": "Info",
   "type": "n8n-nodes-base.stickyNote",
   "typeVersion": 1,
   "position": [
    -20,
    -440
   ]
  },
  {
   "parameters": {
    "content": "### ⚙️ Anpassen\nNur der Node **Konfiguration**: Zeitraum, Suchbegriffe, weitere Polizei-RSS-Feeds (`feeds`), Cache-Zeit, eigene Links für Fußzeile & Teilen-Button.\n\n### Hinweise\n- Cache im Workflow-Speicher (nur bei aktivem Workflow). So bleibt die Last auf den Quellen klein, auch bei vielen Besuchern.\n- Hinter einem Reverse-Proxy mit Rate-Limit betreiben, wenn die URL öffentlich wird.\n- Der Punkt zeigt den **Ort der Meldung**, nicht zwingend den Tatort. Auswertung per Stichwort, kann Fehler enthalten.",
    "height": 300,
    "width": 440,
    "color": 5
   },
   "name": "Konfiguration anpassen",
   "type": "n8n-nodes-base.stickyNote",
   "typeVersion": 1,
   "position": [
    240,
    -240
   ]
  },
  {
   "parameters": {
    "content": "### Ablauf\nBesuch → **Cache prüfen** → frisch? sofort ausliefern.\nSonst: 16 Suchbegriffe (Presseportal) + direkte Polizei-Feeds (Berlin, Brandenburg) holen → auswerten (Masche, Alter, Betrag, Ausgang) → Orte geokodieren → Seite bauen.\nEin Zeitplan (alle 3 h) hält den Cache warm.",
    "height": 150,
    "width": 440,
    "color": 4
   },
   "name": "Ablauf",
   "type": "n8n-nodes-base.stickyNote",
   "typeVersion": 1,
   "position": [
    960,
    60
   ]
  }
 ],
 "connections": {
  "Webhook": {
   "main": [
    [
     {
      "node": "Konfiguration",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Alle 3 Stunden": {
   "main": [
    [
     {
      "node": "Konfiguration",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Konfiguration": {
   "main": [
    [
     {
      "node": "Cache prüfen",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Cache prüfen": {
   "main": [
    [
     {
      "node": "Cache frisch?",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Cache frisch?": {
   "main": [
    [
     {
      "node": "Antwort wählen",
      "type": "main",
      "index": 0
     }
    ],
    [
     {
      "node": "Suchbegriffe & Feeds",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Suchbegriffe & Feeds": {
   "main": [
    [
     {
      "node": "Polizeimeldungen laden",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Polizeimeldungen laden": {
   "main": [
    [
     {
      "node": "Meldungen auswerten",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Meldungen auswerten": {
   "main": [
    [
     {
      "node": "Orte finden",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Orte finden": {
   "main": [
    [
     {
      "node": "Seite bauen",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Seite bauen": {
   "main": [
    [
     {
      "node": "Per Webhook?",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Per Webhook?": {
   "main": [
    [
     {
      "node": "Antwort wählen",
      "type": "main",
      "index": 0
     }
    ],
    []
   ]
  },
  "Antwort wählen": {
   "main": [
    [
     {
      "node": "Antwort senden",
      "type": "main",
      "index": 0
     }
    ]
   ]
  }
 },
 "active": false,
 "settings": {
  "executionOrder": "v1",
  "saveDataSuccessExecution": "none",
  "saveManualExecutions": false
 },
 "pinData": {},
 "tags": [],
 "meta": {
  "templateCredsSetupCompleted": true
 }
}