{# Expanded detail for a single flat, loaded into #flat-detail- via HTMX. #} {% if enrichment_status == 'pending' %}
Analyse läuft – kommt in wenigen Augenblicken zurück…
{% elif enrichment_status == 'failed' %}
Detail-Analyse konnte nicht abgerufen werden. Zur Original-Anzeige →
{% else %}
{% if image_urls %} {% endif %} {% if enrichment and enrichment.description %}

{{ enrichment.description }}

{% endif %} {% if enrichment %}
{% macro kv(label, value) %} {% if value is not none and value != '' %}
{{ label }} {{ value }}
{% endif %} {% endmacro %} {{ kv('Adresse', enrichment.address) }} {{ kv('Zimmer', enrichment.rooms) }} {{ kv('Größe', enrichment.size_sqm ~ ' m²' if enrichment.size_sqm else none) }} {{ kv('Kaltmiete', enrichment.rent_cold ~ ' €' if enrichment.rent_cold else none) }} {{ kv('Nebenkosten', enrichment.utilities ~ ' €' if enrichment.utilities else none) }} {{ kv('Gesamtmiete', enrichment.rent_total ~ ' €' if enrichment.rent_total else none) }} {{ kv('Kaution', enrichment.deposit ~ ' €' if enrichment.deposit else none) }} {{ kv('Bezugsfrei ab', enrichment.available_from) }} {{ kv('Etage', enrichment.floor) }} {{ kv('Heizung', enrichment.heating) }} {{ kv('Energieausweis', enrichment.energy_certificate) }} {{ kv('Energiewert', enrichment.energy_value) }} {{ kv('Baujahr', enrichment.year_built) }} {{ kv('WBS', 'erforderlich' if enrichment.wbs_required else ('nicht erforderlich' if enrichment.wbs_required == false else none)) }} {{ kv('WBS-Typ', enrichment.wbs_type) }}
{% endif %} {% if enrichment and enrichment.features %}
{% for f in enrichment.features %}{{ f }}{% endfor %}
{% endif %}
{% if enrichment and enrichment.pros %}
Pro
    {% for p in enrichment.pros %}
  • + {{ p }}
  • {% endfor %}
{% endif %} {% if enrichment and enrichment.cons %}
Contra
    {% for c in enrichment.cons %}
  • − {{ c }}
  • {% endfor %}
{% endif %}
{% endif %}