function scimmobilien_add_schema_json_ld() {
  if (is_front_page() || is_home()) {
    // LocalBusiness Schema (Startseite)
    echo '' . json_encode(array(
      "@context" => "https://schema.org",
      "@type" => "RealEstateAgent",
      "@id" => "https://www.sc-immobilien.de/#org",
      "name" => "SC Immobilien",
      "url" => "https://www.sc-immobilien.de",
      "image" => "https://www.sc-immobilien.de/path/zu/deinem-logo.png",
      "logo" => "https://www.sc-immobilien.de/path/zu/deinem-logo.png",
      "telephone" => "+49 651 99987600",
      "email" => "info@sc-immobilien.de",
      "priceRange" => "$$",
      "address" => array(
        "@type" => "PostalAddress",
        "streetAddress" => "Maximinstr. 27",
        "postalCode" => "54292",
        "addressLocality" => "Trier",
        "addressCountry" => "DE"
      ),
      "areaServed" => array(
        array("@type" => "City", "name" => "Trier"),
        array("@type" => "AdministrativeArea", "name" => "Rheinland-Pfalz"),
        array("@type" => "Country", "name" => "Deutschland")
      ),
      "openingHoursSpecification" => array(
        array(
          "@type" => "OpeningHoursSpecification",
          "dayOfWeek" => array("Monday","Tuesday","Wednesday","Thursday","Friday"),
          "opens" => "09:00",
          "closes" => "17:00"
        )
      ),
      "sameAs" => array(
        "https://www.facebook.com/DEIN_PROFIL",
        "https://www.instagram.com/DEIN_PROFIL",
        "https://www.linkedin.com/company/DEIN_PROFIL"
      )
    ), JSON_UNESCAPED_SLASHES|JSON_UNESCAPED_UNICODE) . '';
  }

  // FAQ Schema nur auf der FAQ-Seite
  if (is_page('faq')) {
    echo '' . json_encode(array(
      "@context" => "https://schema.org",
      "@type" => "FAQPage",
      "mainEntity" => array(
        array(
          "@type" => "Question",
          "name" => "Für wen eignen sich Pflegeimmobilien als Kapitalanlage?",
          "acceptedAnswer" => array("@type" => "Answer", "text" => "Pflegeimmobilien eignen sich für Anleger, die planbare Mieteinnahmen und langfristige Mietverträge mit professionellen Betreibern schätzen.")
        ),
        array(
          "@type" => "Question",
          "name" => "Welche Renditen sind bei Kapitalanlagewohnungen realistisch?",
          "acceptedAnswer" => array("@type" => "Answer", "text" => "Je nach Lage und Objekt sind 3–4 % Bruttorendite üblich; Nettorendite hängt von Verwaltung und Finanzierung ab.")
        ),
        array(
          "@type" => "Question",
          "name" => "Sind Garagen oder Stellplätze als Anlage sinnvoll?",
          "acceptedAnswer" => array("@type" => "Answer", "text" => "Ja, d
